@arcgis/core 6.0.0-next.30 → 6.0.0-next.32

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 (147) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/0694c7bcfe71692e2ccf.js +1 -0
  3. package/assets/esri/core/workers/chunks/{e2c6cd8dac01e129ccfe.js → 0e445ec3523de9f2dfa2.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0f6c0d42100c21367e5c.js +1 -0
  5. package/assets/esri/core/workers/chunks/{242a77066ac5cdb5b7d7.js → 14d81280807a3d3c1b7e.js} +1 -1
  6. package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +1 -0
  7. package/assets/esri/core/workers/chunks/1a3f71c4d97c36050030.js +1 -0
  8. package/assets/esri/core/workers/chunks/{ba4520ddcb6a49988da6.js → 1a8d8274df292d65f82e.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{0b4481b57a611b15f65c.js → 1eaf8bfdd3765a90ccc2.js} +1 -1
  10. package/assets/esri/core/workers/chunks/29cc6b1705418b1be5d7.js +1 -0
  11. package/assets/esri/core/workers/chunks/2de077c7b971f2c215a6.js +1 -0
  12. package/assets/esri/core/workers/chunks/{fefdd10bdd5a4c8d8ed0.js → 360c944c610efa2051fc.js} +3 -3
  13. package/assets/esri/core/workers/chunks/{8ca2bb3c0551bb1898b6.js → 3fdcc383bbd9cf0d274c.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{cc97e4fd0dacad970a23.js → 46453ebfee17b5421d9d.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{64b360625c68cb863a08.js → 487c46d5245cfb35c4bb.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{ad21757d78e372fa2ed6.js → 4a979fce1c971b614a18.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{b5eff28cf482d920b9ea.js → 4d18b48d4a282a0f341c.js} +1 -1
  18. package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +1 -0
  19. package/assets/esri/core/workers/chunks/52a0aa2d19a495e48ab1.js +1 -0
  20. package/assets/esri/core/workers/chunks/{865cebc5c982c040ab6f.js → 55a9eaeb152a3abada67.js} +1 -1
  21. package/assets/esri/core/workers/chunks/572aec57593a08b8045b.js +1 -0
  22. package/assets/esri/core/workers/chunks/{9d40786c5ceface786ba.js → 601e1d020b8115497944.js} +1 -1
  23. package/assets/esri/core/workers/chunks/6029773458ab98600f67.js +1 -0
  24. package/assets/esri/core/workers/chunks/6b5c073dddd89d06ed80.js +1 -0
  25. package/assets/esri/core/workers/chunks/{7030a4d0714a35995a58.js → 6bb191b19ce43a27f205.js} +1 -1
  26. package/assets/esri/core/workers/chunks/6f6d1873753a9c6994aa.js +1 -0
  27. package/assets/esri/core/workers/chunks/7084dd6e10c6c1393e92.js +1 -0
  28. package/assets/esri/core/workers/chunks/7cc9d7a88b64e25fce14.js +1 -0
  29. package/assets/esri/core/workers/chunks/7e211d8a8ad6c6a7cf3e.js +1 -0
  30. package/assets/esri/core/workers/chunks/853563c66ecf58d53d36.js +1 -0
  31. package/assets/esri/core/workers/chunks/{c90388932a7825d9d933.js → 85de980c5b296ec69323.js} +1 -1
  32. package/assets/esri/core/workers/chunks/89dc49e784f7ba3b93ea.js +1 -0
  33. package/assets/esri/core/workers/chunks/8da2a10318f49d0dc73a.js +1 -0
  34. package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +1 -0
  35. package/assets/esri/core/workers/chunks/{71f792a20077aa739f87.js → a607541959169741a943.js} +1 -1
  36. package/assets/esri/core/workers/chunks/b2d6b1ac9fbb50c7c8ab.js +1 -0
  37. package/assets/esri/core/workers/chunks/b657363113f4a37e634b.js +1 -0
  38. package/assets/esri/core/workers/chunks/b9cb92858a576eb6aa06.js +1 -0
  39. package/assets/esri/core/workers/chunks/{12b84262dedc6b393136.js → d9a240a3c6bf85124474.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{8f008eedb11685ee2048.js → e096c1d9d53af74d3207.js} +1 -1
  41. package/assets/esri/core/workers/chunks/e4e2edfdc85dd14e66d4.js +1 -0
  42. package/assets/esri/core/workers/chunks/f4d91d470ca5fea0bd26.js +1 -0
  43. package/assets/esri/core/workers/chunks/f717005e14a7e9141df7.js +1 -0
  44. package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +1 -0
  45. package/assets/esri/core/workers/chunks/fcc3902d6d9eda6f09f5.js +1 -0
  46. package/assets/esri/core/workers/chunks/{28a821de9dbf10324033.js → fd031150d3a7f896e6b3.js} +1 -1
  47. package/config.js +1 -1
  48. package/core/scheduling.js +1 -1
  49. package/geometry/Mesh.d.ts +2 -125
  50. package/geometry/Mesh.js +1 -1
  51. package/geometry/support/GlobalCoordinateSystem.js +2 -0
  52. package/geometry/support/LocalCoordinateSystem.js +2 -0
  53. package/geometry/support/boundedPlane.js +1 -1
  54. package/geometry/support/coordinateSystem.js +1 -1
  55. package/geometry/support/meshErrors.js +1 -1
  56. package/geometry/support/plane.js +1 -1
  57. package/geometry/support/polygonUtils.js +1 -1
  58. package/geometry/support/ray.js +1 -1
  59. package/geometry/support/sphere.js +1 -1
  60. package/interfaces.d.ts +0 -3
  61. package/kernel.js +1 -1
  62. package/layers/SceneLayer.js +1 -1
  63. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  64. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  65. package/layers/mixins/ArcGISImageService.js +1 -1
  66. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  67. package/layers/support/featureLayerUtils.js +1 -1
  68. package/package.json +2 -2
  69. package/support/arcadeUtils.js +1 -1
  70. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  71. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  72. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  73. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  74. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  75. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  76. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  77. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  78. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  79. package/views/3d/analysis/Slice/SliceController.js +1 -1
  80. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  81. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  82. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  83. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  84. package/views/3d/environment/SunLighting.d.ts +10 -8
  85. package/views/3d/environment/VirtualLighting.d.ts +10 -8
  86. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  87. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  88. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  89. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  90. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  91. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  92. package/views/3d/state/ScreenSizePerspective.js +1 -1
  93. package/views/3d/support/RenderCoordsHelper.js +1 -1
  94. package/views/3d/support/ViewSlice.js +1 -1
  95. package/views/3d/support/hitTest.js +1 -1
  96. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  97. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  98. package/views/3d/terrain/PlanarPatch.js +1 -1
  99. package/views/3d/terrain/SphericalPatch.js +1 -1
  100. package/views/3d/webgl-engine/lib/Path.js +1 -1
  101. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  102. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  103. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  104. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  105. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  106. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  107. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  108. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  109. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  110. package/views/support/TextureCompressionWorker.js +1 -1
  111. package/views/webgl/Texture.js +1 -1
  112. package/webscene/Environment.d.ts +1 -1
  113. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  114. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  115. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  116. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  117. package/widgets/BatchAttributeForm.js +1 -1
  118. package/widgets/FeatureForm.js +1 -1
  119. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  120. package/assets/esri/core/workers/chunks/02335385b1476fe322eb.js +0 -1
  121. package/assets/esri/core/workers/chunks/07b726a46864501b90a0.js +0 -1
  122. package/assets/esri/core/workers/chunks/189321d88026bd7e6d3e.js +0 -1
  123. package/assets/esri/core/workers/chunks/18d47ab571b613fbe719.js +0 -1
  124. package/assets/esri/core/workers/chunks/1967b9c96045a5802d08.js +0 -1
  125. package/assets/esri/core/workers/chunks/199a7f97916679e0257c.js +0 -1
  126. package/assets/esri/core/workers/chunks/1d96fbad881a7d14a950.js +0 -1
  127. package/assets/esri/core/workers/chunks/1dc6f093028530a492e6.js +0 -1
  128. package/assets/esri/core/workers/chunks/2cd60fd062d954322c1f.js +0 -1
  129. package/assets/esri/core/workers/chunks/2d3e0e4442dbc6ec6def.js +0 -1
  130. package/assets/esri/core/workers/chunks/2f5d014d6a72108b0b3a.js +0 -1
  131. package/assets/esri/core/workers/chunks/3105336a05f38a95ebea.js +0 -1
  132. package/assets/esri/core/workers/chunks/4419732baf3459a80e6d.js +0 -1
  133. package/assets/esri/core/workers/chunks/4fb2fcc95f852bf8f86c.js +0 -1
  134. package/assets/esri/core/workers/chunks/59bc55880e6fd8ce20c0.js +0 -1
  135. package/assets/esri/core/workers/chunks/5f787809b74eed7b9a91.js +0 -1
  136. package/assets/esri/core/workers/chunks/6a7de221cea4426cb490.js +0 -1
  137. package/assets/esri/core/workers/chunks/7a0b4dc0cda190367a39.js +0 -1
  138. package/assets/esri/core/workers/chunks/7d3f7940815fa5dc244e.js +0 -1
  139. package/assets/esri/core/workers/chunks/999c23da883eb11cb29e.js +0 -1
  140. package/assets/esri/core/workers/chunks/9bc3afe7013ef4ae737b.js +0 -1
  141. package/assets/esri/core/workers/chunks/bab1d010970d98c25470.js +0 -1
  142. package/assets/esri/core/workers/chunks/c4f78a481f43cfae7b63.js +0 -1
  143. package/assets/esri/core/workers/chunks/dcf6024dc19428ff2b9d.js +0 -1
  144. package/assets/esri/core/workers/chunks/e04fb83ab2634bc15cc7.js +0 -1
  145. package/assets/esri/core/workers/chunks/ee0dc906cc7979080329.js +0 -1
  146. package/assets/esri/core/workers/chunks/f0d0ed155275c2e6d3da.js +0 -1
  147. package/chunks/boundedPlane.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4314],{32198(t,e,i){function s(t,e,i,s){var r,n=arguments.length,l=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(l=(n<3?r(l):n>3?r(e,i,l):r(e,i))||l);return n>3&&l&&Object.defineProperty(e,i,l),l}function r(t,e,i){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var s,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");s=e[Symbol.asyncDispose]}if(void 0===s){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");s=e[Symbol.dispose],i&&(r=s)}if("function"!=typeof s)throw new TypeError("Object not disposable.");r&&(s=function(){try{r.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:s,async:i})}else i&&t.stack.push({async:!0});return e}i.d(e,{Cg:()=>s,hk:()=>l,mS:()=>r}),Object.create,Object.create;var n="function"==typeof SuppressedError?SuppressedError:function(t,e,i){var s=new Error(i);return s.name="SuppressedError",s.error=t,s.suppressed=e,s};function l(t){function e(e){t.error=t.hasError?new n(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var i,s=0;return function r(){for(;i=t.stack.pop();)try{if(!i.async&&1===s)return s=0,t.stack.push(i),Promise.resolve().then(r);if(i.dispose){var n=i.dispose.call(i.value);if(i.async)return s|=2,Promise.resolve(n).then(r,function(t){return e(t),r()})}else s|=1}catch(t){e(t)}if(1===s)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},91869(t,e,i){function s(t,e){for(let i of t.values())if(e(i))return!0;return!1}function r(t,e,i){let s=t.get(e);if(void 0!==s)return s;let r=i();return t.set(e,r),r}function n(t){let e=new Map;return i=>(e.has(i)||e.set(i,t(i)),e.get(i))}i.d(e,{Bj:()=>n,Bs:()=>s,tE:()=>r})},34727(t,e,i){i.d(e,{$8:()=>M,Cc:()=>l,Hx:()=>d,Io:()=>x,KJ:()=>h,OS:()=>B,Sp:()=>p,XM:()=>u,YN:()=>f,ZH:()=>g,b6:()=>k,cU:()=>r,gg:()=>c,hs:()=>a,kU:()=>o,or:()=>C,pF:()=>T,qE:()=>n});const s=new Float32Array(1);function r(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function n(t,e,i){return Math.min(Math.max(t,e),i)}function l(t,e,i){return t+(e-t)*i}function a(t,e,i,s,r){return l(s,r,(t-e)/(i-e))}function o(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function u(t){return Math.acos(n(t,-1,1))}function f(t){return Math.asin(n(t,-1,1))}function p(t,e,i=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=i}function c(t,e,i=1e-6){return!p(t,e,i)&&t>e}function g(t,e,i=1e-6){return!p(t,e,i)&&t<e}function d(t,e,i=1e-6){return p(t,e,i)||t>e}const m=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function y(t){return m.setFloat64(0,t),m.getBigInt64(0)}const b=1000000n,A=w(1);function w(t){let e=y(t=Math.abs(t)),i=function(t){return m.setBigInt64(0,t),m.getFloat64(0)}(e<=b?b:e-b);return Math.abs(t-i)}function x(t,e,i=A){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=i&&w(Math.min(Math.abs(t),Math.abs(e)))<i)return Math.abs(t-e)<=i;let s=y(t),r=y(e);return!(s<0!=r<0||(s<r?r-s:s-r)>b)}function k(t,e,i=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let s=Math.abs(t-e),r=Math.abs(t),n=Math.abs(e);if(0===t||0===e||r<1e-12&&n<1e-12){if(s>.01*i)return!1}else if(s/(r+n)>i)return!1;return!0}function M(t){return v(Math.max(-F,Math.min(t,F)))}function v(t){return s[0]=t,s[0]}function C(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],s=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(p(e,1)&&p(i,1)&&p(s,1))}function B(t,e){return(t%e+e)%e}const F=v(34028234663852886e22);function T(t,e,i){if(void 0===i||0==+i)return Math[t](e);if(e=+e,i=+i,isNaN(e)||"number"!=typeof i||i%1!=0)return NaN;let s=e.toString().split("e");return s=(e=Math[t](+(s[0]+"e"+(s[1]?+s[1]-i:-i)))).toString().split("e"),+(s[0]+"e"+(s[1]?+s[1]+i:i))}i.d(e,["pq",0,F])},94778(t,e,i){i.d(e,{$p:()=>o,Sp:()=>h,X1:()=>n,hP:()=>r,yM:()=>a,zw:()=>l});const s={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function r(t){return s[t]??[-34028234663852886e22,34028234663852886e22]}function n(t,e){return null==t||null==e?"s32":t<0?t>=-128&&e<128?"s8":t>=-32768&&e<32768?"s16":"s32":e<256?"u8":e<65536?"u16":"u32"}function l(t){return(t?.startsWith("s")||t?.startsWith("u"))??!1}function a(t,e,i,s){let[n,a]=r(i),o=l(i);return o&&(n-=1e-5,a+=1e-5),o?i.startsWith("u")?function(t,e,i,s){let[r,n]=s;for(let s=0;s<e.length;s++)if(e[s]){let l=t[s];l<r||l>n?e[s]=0:i[s]=l+.5|0}}(t,e,s,[n,a]):function(t,e,i,s){let[r,n]=s;for(let s=0;s<e.length;s++)if(e[s]){let l=t[s];l<r||l>n?e[s]=0:i[s]=l+(l>0?.5:-.5)|0}}(t,e,s,[n,a]):function(t,e,i,s){let[r,n]=s;for(let s=0;s<e.length;s++)if(e[s]){let l=t[s];l<r||l>n?e[s]=0:i[s]=l}}(t,e,s,[n,a])}function o(t,e){for(let i=0;i<e.length;i++)e[i]&&isNaN(t[i])&&(e[i]=0,t[i]=0)}function h(t,e,i){if(t.depthCount&&t.depthCount>1)return;let{pixels:s,statistics:n,pixelType:l}=t,a=s[0].length,o=t.bandMasks??[],h=t.mask??new Uint8Array(a).fill(255),u="f32"===l||"f64"===l,f=r(l),p=!1;for(let t=0;t<s.length;t++){let r="number"==typeof e?e:e[t];if(null==r)continue;let a=n?.[t]?.minValue??f[0],c=n?.[t]?.maxValue??f[1];if(a>r+2**-52||c<r-2**-52)continue;let g=o[t]||h.slice(),d=s[t],m=i?.customFloatTolerance;if(u&&0!==m){let t=m;t||=Math.abs(r)>=9999999e31?2e-7*Math.abs(r):"f32"===l?2**-23:2**-52;for(let e=0;e<d.length;e++)g[e]&&Math.abs(d[e]-r)<t&&(d[e]=0,g[e]=0,h[e]=0,p=!0)}else for(let t=0;t<d.length;t++)g[t]&&d[t]===r&&(d[t]=0,g[t]=0,h[t]=0,p=!0);o[t]=g}if(p){let e=t.bandMasks||t.pixels.length>1?o:null;i?.matchAllNoData?t.mask=e&&e.length>1?function(t){if(t.length<2)return t[0];let e=t[0].length,i=new Uint8Array(e).fill(0);for(let s=0;s<t.length;s++){let r=t[s];for(let t=0;t<e;t++)r[t]&&(i[t]=255)}return i}(e):h:(t.bandMasks=e,t.mask=h)}p&&"updateStatistics"in t&&t.updateStatistics()}},14140(t,e,i){i.d(e,{A:()=>p});var s,r=i(32198),n=i(49186),l=i(25482),a=i(4718),o=i(53966),h=i(91429),u=i(94778),f=i(4151);let p=class extends l.o{static{s=this}static createEmptyBand(t,e){return new(s.getPixelArrayConstructor(t))(e)}static combineBandMasks(t){if(t.length<2)return t[0];let e=t[0].length,i=new Uint8Array(e).fill(255);for(let s=0;s<t.length;s++){let r=t[s];for(let t=0;t<e;t++)r[t]||(i[t]=0)}return i}static getPixelArrayConstructor(t){let e;switch(t){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":e=Float32Array;break;case"f64":e=Float64Array}return e}constructor(t){super(t),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(t){if(!t)return"f32";let e=t.toLowerCase();return["u1","u2","u4"].includes(e)?e="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(e)||(e="f32"),e}getPlaneCount(){return this.pixels?.length}addData(t){if(!t.pixels||t.pixels.length!==this.width*this.height)throw new n.A("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||=[],this.statistics||=[],this.pixels.push(t.pixels),this.statistics.push(t.statistics??new f.A)}getAsRGBA(){let t=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(t);break;default:this._fillFrom8Bit(t)}return new Uint8ClampedArray(t)}getAsRGBAFloat(){let t=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(t),t}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(t=>function(t,e){let i,s=1/0,r=-1/0,n=t.length,l=0;if(null!=e)for(i=0;i<n;i++)e[i]&&(l=t[i],s=l<s?l:s,r=l>r?l:r);else for(i=0;i<n;i++)l=t[i],s=l<s?l:s,r=l>r?l:r;return new f.A(s,r)}(t,this.mask));let t=this.mask,e=0;if(null!=t)for(let i=0;i<t.length;i++)t[i]&&e++;else e=this.width*this.height;this.validPixelCount=e}clamp(t){if(!t||"f64"===t||"f32"===t||!this.pixels)return;let e,i,r,[n,l]=(0,u.hP)(t),a=this.pixels,o=this.width*this.height,h=a.length,f=[];for(let u=0;u<h;u++){r=s.createEmptyBand(t,o),e=a[u];for(let t=0;t<o;t++)i=e[t],r[t]=i>l?l:i<n?n:i;f.push(r)}this.pixels=f,this.pixelType=t}extractBands(t){let{pixels:e,statistics:i}=this;if(null==t||0===t.length||!e||0===e.length)return this;let r=e.length,n=t.some(t=>t>=e.length),l=r===t.length&&!t.some((t,e)=>t!==e);if(n||l)return this;let a=this.bandMasks?.length===r?t.map(t=>this.bandMasks[t]):void 0,{mask:o,validPixelCount:h}=this,{width:u,height:f}=this;return a?.length&&(o=s.combineBandMasks(a),h=o.filter(t=>!!t).length),new s({pixelType:this.pixelType,width:u,height:f,mask:o,bandMasks:a,validPixelCount:h,maskIsAlpha:this.maskIsAlpha,pixels:t.map(t=>e[t]),statistics:i&&t.map(t=>i[t])})}clone(){let t=new s({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});null!=this.mask&&(t.mask=new Uint8Array(this.mask)),this.noDataValues&&(t.noDataValues=[...this.noDataValues]),this.bandMasks&&(t.bandMasks=this.bandMasks.map(t=>new Uint8Array(t)));let e,i=s.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){t.pixels=[];let s=!!this.pixels[0].slice;for(e=0;e<this.pixels.length;e++)t.pixels[e]=s?this.pixels[e].slice():new i(this.pixels[e])}if(this.statistics)for(t.statistics=[],e=0;e<this.statistics.length;e++)t.statistics[e]=(0,a.o8)(this.statistics[e]);return t}getTransferableObject(){let{pixels:t,bandMasks:e,mask:i}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;let s=this.toJSON();this.pixels=t,this.bandMasks=e,this.mask=i,s.pixels=t&&[...t],s.bandMasks=e&&[...e],s.mask=i;let r=[];return[...t??[],i,...e??[]].filter(t=>null!=t&&ArrayBuffer.isView(t)).forEach(t=>{t&&!r.includes(t.buffer)&&r.push(t.buffer)}),{pixelBlock:s,transferList:r}}_fillFrom8Bit(t){let e,i,s,r,{mask:n,maskIsAlpha:l,premultiplyAlpha:a,pixels:h}=this;if(!t||!h?.length)return void o.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");e=i=s=h[0],h.length>=3?(i=h[1],s=h[2]):2===h.length&&(i=h[1]);let u=new Uint32Array(t),f=this.width*this.height;if(e.length!==f)o.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");else if(null!=n&&n.length===f)if(l)for(r=0;r<f;r++){let t=n[r];if(t){let n=t/255;u[r]=a?t<<24|s[r]*n<<16|i[r]*n<<8|e[r]*n:t<<24|s[r]<<16|i[r]<<8|e[r]}}else for(r=0;r<f;r++)n[r]&&(u[r]=255<<24|s[r]<<16|i[r]<<8|e[r]);else for(r=0;r<f;r++)u[r]=255<<24|s[r]<<16|i[r]<<8|e[r]}_fillFromNon8Bit(t){let{pixels:e,mask:i,statistics:s}=this;if(!t||!e?.length)return void o.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let r=this.pixelType,n=1,l=0,a=1;if(s&&s.length>0){for(let t of s)if(null!=t.minValue&&(l=Math.min(l,t.minValue)),null!=t.maxValue&&null!=t.minValue){let e=t.maxValue-t.minValue;a=Math.max(a,e)}n=255/a}else{let t=255;"s8"===r?(l=-128,t=127):"u16"===r?t=65535:"s16"===r?(l=-32768,t=32767):"u32"===r?t=4294967295:"s32"===r?(l=-2147483648,t=2147483647):"f32"===r?(l=-34e38,t=34e38):"f64"===r&&(l=-Number.MAX_VALUE,t=Number.MAX_VALUE),n=255/(t-l)}let h,u,f,p,c,g=new Uint32Array(t),d=this.width*this.height;if(h=u=f=e[0],h.length!==d)return o.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(e.length>=2)if(u=e[1],e.length>=3&&(f=e[2]),null!=i&&i.length===d)for(p=0;p<d;p++)i[p]&&(g[p]=255<<24|(f[p]-l)*n<<16|(u[p]-l)*n<<8|(h[p]-l)*n);else for(p=0;p<d;p++)g[p]=255<<24|(f[p]-l)*n<<16|(u[p]-l)*n<<8|(h[p]-l)*n;else if(null!=i&&i.length===d)for(p=0;p<d;p++)c=(h[p]-l)*n,i[p]&&(g[p]=255<<24|c<<16|c<<8|c);else for(p=0;p<d;p++)c=(h[p]-l)*n,g[p]=255<<24|c<<16|c<<8|c}_fillFrom32Bit(t){let e,i,s,r,{pixels:n,mask:l}=this;if(!t||!n?.length)return o.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");e=i=s=n[0],n.length>=3?(i=n[1],s=n[2]):2===n.length&&(i=n[1]);let a=this.width*this.height;if(e.length!==a)return o.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let h=0;if(null!=l&&l.length===a)for(r=0;r<a;r++)t[h++]=e[r],t[h++]=i[r],t[h++]=s[r],t[h++]=1&l[r];else for(r=0;r<a;r++)t[h++]=e[r],t[h++]=i[r],t[h++]=s[r],t[h++]=1}};(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"width",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"height",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"pixelType",void 0),(0,r.Cg)([(0,h.wg)("pixelType")],p.prototype,"castPixelType",null),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"validPixelCount",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"mask",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"maskIsAlpha",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"pixels",void 0),(0,r.Cg)([(0,h.MZ)()],p.prototype,"premultiplyAlpha",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"statistics",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"depthCount",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"noDataValues",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:!0}})],p.prototype,"bandMasks",void 0),p=s=(0,r.Cg)([(0,h.$K)("esri.layers.support.PixelBlock")],p)},4151(t,e,i){i.d(e,{A:()=>s});class s{constructor(t=null,e=null,i=null){this.minValue=t,this.maxValue=e,this.noDataValue=i}}},96982(t,e,i){i.r(e),i.d(e,{convertPixelBlockToImageData:()=>l,getFacesWithVertexAttributes:()=>n,recomputePositions:()=>a});var s=i(34727),r=i(14140);function n({distance:t,yaw:e,horizontalFieldOfView:i,pitch:r,verticalFieldOfView:n,origin:l=[0,0,0],positionLength:a=25}){let o=a-1,h=a*a,u=new Float32Array(2*h),f=new Float64Array(3*h),p=new Float32Array(3*h).fill(0),c=new Uint32Array(o**2*6);for(let g=0,d=0;g<h;g++){let h=Math.floor(g/a),m=g%a,y=1-m/o,b=h/o,A=2*g,w=3*g;u[A]=y,u[A+1]=b;let x=e-i/2+y*i,k=r+n/2-b*n,M=(0,s.kU)(x),v=(0,s.kU)(k),C=Math.sin(v),B=Math.cos(v),F=[C*Math.sin(M),Math.cos(M)*C,-B];f[w]=l[0]+t*F[0],f[w+1]=l[1]+t*F[1],f[w+2]=l[2]+t*F[2],p[w]=-F[0],p[w+1]=-F[1],p[w+2]=-F[2],h!==o&&m!==o&&(c[d++]=g,c[d++]=g+a,c[d++]=g+a+1,c[d++]=g,c[d++]=g+a+1,c[d++]=g+1)}return{result:{position:f,uv:u,normal:p,faces:c},transferList:[f.buffer,u.buffer,p.buffer,c?.buffer]}}function l(t){let e=r.A.fromJSON(t);e.premultiplyAlpha=!0;let i=e.getAsRGBA(),s=e.width,n=e.height,l=new ImageData(i,s,n);return{result:l,transferList:[l.data.buffer]}}function a({oldDistance:t,newDistance:e,position:i,origin:s=[0,0,0]}){let r=i.length/3;for(let n=0;n<r;n+=3){let r=3*n;i[r]=s[0]+(i[r]-s[0])*(e/t),i[r+1]=s[1]+(i[r+1]-s[1])*(e/t),i[r+2]=s[2]+(i[r+2]-s[2])*(e/t)}return{result:i,transferList:[i.buffer]}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9855],{82534(t,e,n){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function a(){return i(1,1)}function u(){return i(-1,-1)}function s(){return i(1,0)}function l(){return i(0,1)}n.d(e,{fA:()=>i,o8:()=>o,vt:()=>r});const c=a(),f=u(),h=s(),M=l();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:c,UNIT_X:h,UNIT_Y:M,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:u,ones:a,unitX:s,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,c])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function s(){return o(0,0,1,0)}function l(){return o(0,0,0,1)}n.d(e,{_Y:()=>l,fA:()=>o,vt:()=>r});const c=[0,0,0,0],f=i(),h=a(),M=u(),p=s(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:m,UNIT_X:h,UNIT_Y:M,UNIT_Z:p,ZEROS:c,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]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:i,unitW:l,unitX:a,unitY:u,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,f,"uY",0,c])},67026(t,e,n){n.d(e,{A6:()=>m,Xd:()=>c,Xr:()=>M,lw:()=>f,x8:()=>l});var r=n(29242),o=n(82534),i=n(51850),a=n(34304),u=n(35522),s=n(78955);function l(t,e,n){n*=.5;let r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function c(t,e){let n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>(0,a.FD)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function f(t,e,n){let r=e[0],o=e[1],i=e[2],a=e[3],u=n[0],s=n[1],l=n[2],c=n[3];return t[0]=r*c+a*u+o*l-i*s,t[1]=o*c+a*s+i*u-r*l,t[2]=i*c+a*l+r*s-o*u,t[3]=a*c-r*u-o*s-i*l,t}function h(t,e,n,r){let o,i,u,s,l,c=e[0],f=e[1],h=e[2],M=e[3],p=n[0],m=n[1],g=n[2],v=n[3];return i=c*p+f*m+h*g+M*v,i<0&&(i=-i,p=-p,m=-m,g=-g,v=-v),1-i>(0,a.FD)()?(o=Math.acos(i),u=Math.sin(o),s=Math.sin((1-r)*o)/u,l=Math.sin(r*o)/u):(s=1-r,l=r),t[0]=s*c+l*p,t[1]=s*f+l*m,t[2]=s*h+l*g,t[3]=s*M+l*v,t}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function p(t,e){let n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);let o=(r+1)%3,i=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*i+i]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+i]-e[3*i+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[i]=(e[3*i+r]+e[3*r+i])*n}return t}function m(t,e,n,r){let o=.5*Math.PI/180;e*=o,n*=o,r*=o;let i=Math.sin(e),a=Math.cos(e),u=Math.sin(n),s=Math.cos(n),l=Math.sin(r),c=Math.cos(r);return t[0]=i*s*c-a*u*l,t[1]=a*u*c+i*s*l,t[2]=a*s*l-i*u*c,t[3]=a*s*c+i*u*l,t}const g=s.C,v=s.hZ,d=s.WQ,y=f,_=s.hs,A=s.Om,w=s.Cc,b=s.Bw,S=b,O=s.m3,x=O,I=s.S8,N=s.t2,Z=s.aI,T=(0,i.vt)(),C=(0,i.fA)(1,0,0),X=(0,i.fA)(0,1,0),q=(0,o.vt)(),E=(0,o.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:d,calculateW:function(t,e){let n=e[0],r=e[1],o=e[2];return t[0]=n,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),t},conjugate:M,copy:g,dot:A,equals:Z,exactEquals:N,fromEuler:m,fromMat3:p,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){let n=e[0],r=e[1],o=e[2],i=e[3],a=n*n+r*r+o*o+i*i,u=a?1/a:0;return t[0]=-n*u,t[1]=-r*u,t[2]=-o*u,t[3]=i*u,t},len:S,length:b,lerp:w,mul:y,multiply:f,normalize:I,random:function(t){let e=a.Ov,n=e(),r=e(),o=e(),i=Math.sqrt(1-n),u=Math.sqrt(n);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=u*Math.sin(2*Math.PI*o),t[3]=u*Math.cos(2*Math.PI*o),t},rotateX:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],a=e[3],u=Math.sin(n),s=Math.cos(n);return t[0]=r*s+a*u,t[1]=o*s+i*u,t[2]=i*s-o*u,t[3]=a*s-r*u,t},rotateY:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],a=e[3],u=Math.sin(n),s=Math.cos(n);return t[0]=r*s-i*u,t[1]=o*s+a*u,t[2]=i*s+r*u,t[3]=a*s-o*u,t},rotateZ:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],a=e[3],u=Math.sin(n),s=Math.cos(n);return t[0]=r*s+o*u,t[1]=o*s-r*u,t[2]=i*s+a*u,t[3]=a*s-i*u,t},rotationTo:function(t,e,n){let r=(0,u.Om)(e,n);return r<-.999999?((0,u.$A)(T,C,e),(0,u.Il)(T)<1e-6&&(0,u.$A)(T,X,e),(0,u.S8)(T,T),l(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,u.$A)(T,e,n),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,I(t,t))},scale:_,set:v,setAxes:function(t,e,n,r){let o=P;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],I(t,p(t,o))},setAxisAngle:l,slerp:h,sqlerp:function(t,e,n,r,o,i){return h(q,e,o,i),h(E,n,r,i),h(t,q,E,2*i*(1-i)),t},sqrLen:x,squaredLength:O,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),n.d(e,["hZ",0,v,"t2",0,N])},48353(t,e,n){n.d(e,{l:()=>l});var r=n(34727),o=n(58083),i=n(51850);function a(t,e,n){let r=Math.sin(t),o=Math.cos(t),i=Math.sin(e),a=Math.cos(e),u=n;return u[0]=-r,u[4]=-i*o,u[8]=a*o,u[12]=0,u[1]=o,u[5]=-i*r,u[9]=a*r,u[13]=0,u[2]=0,u[6]=a,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=n(37539),s=n(21325);function l(t,e,n,r){let i=(0,u.Tp)(t,r);if(null==i)return!1;let l=i.source.spatialReferenceId,p=i.dest.spatialReferenceId;if(l===p&&!c(p)&&(0!==l||(0,s.aI)(t,r)))return(0,o.kN)(n,e),!0;if(c(p)){let t=u.w5[l][10],r=u.w5[10][p];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,M,0),a(f*h[0],f*h[1],n),n[12]=M[0],n[13]=M[1],n[14]=M[2],!0)}let m=c(l);if((3===p||11===p||2===p||5===p)&&(2===l||m||3===l||5===l)){let t=u.w5[l][10],r=u.w5[10][p];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,M,0),m?function(t,e,n){a(t,e,n),(0,o.mg)(n,n)}(f*h[0],f*h[1],n):(0,o.D_)(n),n[12]=M[0],n[13]=M[1],n[14]=M[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),M=(0,i.vt)()},65806(t,e,n){n.d(e,{g:()=>a});var r=n(51850),o=n(99917),i=n(9762);function a(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,i.projectBuffer)(u,t.spatialReference,0,e,n,0);let a=(0,o.tryProject)(t,n,r);return!!a&&(e[0]=a.x,e[1]=a.y,e[2]=a.z??0,!0)}const u=(0,r.vt)()},73836(t,e,n){n.d(e,{A:()=>M});var r=n(32198),o=n(69540),i=n(25482),a=n(91429),u=n(58083),s=n(9093),l=n(67026),c=n(82534),f=n(51850),h=n(24770);let M=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.translation=(0,f.vt)(),this.rotationAxis=(0,f.ci)(h.up),this.rotationAngle=0,this.scale=(0,f.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,f.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){let t=(0,s.vt)();return(0,l.x8)(p,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,u.o1)(t,p,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.B8)((0,s.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,u.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"translation",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"scale",void 0),(0,r.Cg)([(0,a.MZ)()],M.prototype,"rotation",null),(0,r.Cg)([(0,a.MZ)()],M.prototype,"localMatrix",null),(0,r.Cg)([(0,a.MZ)()],M.prototype,"localMatrixInverse",null),M=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],M);const p=(0,c.vt)()},24770(t,e,n){n.d(e,{$I:()=>g,AU:()=>M,g7:()=>m,i4:()=>c,ui:()=>f,vt:()=>l,yo:()=>p});var r=n(34727),o=n(58083),i=n(67026),a=n(82534),u=n(35522),s=n(51850);function l(t=d){return[t[0],t[1],t[2],t[3]]}function c(t,e,n=l()){return(0,u.C)(n,t),n[3]=e,n}function f(t,e=l()){let n=(0,o.l)(y,t);return v(e,(0,r.KJ)((0,i.Xd)(e,n))),e}function h(t,e,n=l()){return(0,i.x8)(y,t,g(t)),(0,i.x8)(_,e,g(e)),(0,i.lw)(y,_,y),v(n,(0,r.KJ)((0,i.Xd)(n,y)))}function M(t,e,n,r=l()){return c(s.Cw,t,A),c(s.JP,e,w),c(s.Cb,n,b),h(A,w,A),h(A,b,r),r}function p(t){return t}function m(t){return t[3]}function g(t){return(0,r.kU)(t[3])}function v(t,e){return t[3]=e,t}const d=[0,0,1,0],y=(0,a.vt)(),_=(0,a.vt)(),A=(l(),l()),w=l(),b=l();n.d(e,["up",0,d])},27921(t,e,n){n.d(e,{$Q:()=>p,BX:()=>M,C:()=>u,Cr:()=>c,H:()=>g,O_:()=>l,Qj:()=>s,T7:()=>f,mN:()=>v,vE:()=>y,vt:()=>a,wE:()=>d});var r=n(34727),o=n(35522),i=n(51850);function a(t=_){return[t[0],t[1],t[2],t[3]]}function u(t,e){return function(t,e,n,r,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}(e[0],e[1],e[2],e[3],t)}function s(t){return t}function l(t,e,n){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function c(t,e,n,r=a()){let o=n[0]-e[0],i=n[1]-e[1],u=n[2]-e[2],s=t[0]-e[0],l=t[1]-e[1],c=t[2]-e[2],f=i*c-u*l,h=u*s-o*c,M=o*l-i*s,p=f*f+h*h+M*M,m=Math.abs(p-1)>1e-5&&p>1e-12?1/Math.sqrt(p):1;return r[0]=f*m,r[1]=h*m,r[2]=M*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,e,n){return function(t){return 0===t||1===t}(y(t,e.origin,e.vector,0,n))}function h(t,e){return v(t,e)<=0}function M(t,e){return v(t,e)>=0}function p(t,e){return function(t,e,n,r,i,a,u,s){let l=(0,o.Om)(t,n),c=v(t,e);if(l>=-s&&l<=s)return m(c,i,a);let f=-c/l,h=m(l,i,!1);return!(u&&!h&&!m(c,i,a))&&(h?f>r.c0&&(r.c0=f):f<r.c1&&(r.c1=f),r.c0<=r.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0,1e-6)}function m(t,e,n){return n?e?t>=0:t<=0:e?t>0:t<0}function g(t,e,n,r=!1){let i=e.at(-1),a=v(t,i),u=r?a>0:a<=0;for(let s=0;s<e.length;s++){let l=e.at(s),c=v(t,l),f=r?c>0:c<=0;u!==f&&(0,o.Cc)(n(),i,l,a/(a-c)),f&&(0,o.C)(n(),l),i=l,a=c,u=f}}function v(t,e){return(0,o.Om)(t,e)+t[3]}function d(t,e,n){for(let r=0;r<n;++r)if(h(t,e[r]))return!1;return!0}function y(t,e,n,i,a){let u=(0,o.Om)(t,n),s=v(t,e);if(0===u)return s>=0?2:3;let l=-s/u;return 1&i&&(l=(0,r.qE)(l,0,1)),!(4&i)&&l<0||!(8&i)&&l>1?s>=0?2:3:((0,o.WQ)(a,e,(0,o.hs)(a,n,l)),s>=0?0:1)}n(78955),n(44280),n(32114),n(32728),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const _=[0,0,1,0];(0,i.vt)()},44280(t,e,n){n.d(e,{g7:()=>u,gr:()=>a});var r=n(34727),o=n(35522),i=n(51850);function a(t,e){return(0,o.Om)(t,e)/(0,o.Bw)(t)}function u(t,e){let n=(0,o.Om)(t,e)/((0,o.Bw)(t)*(0,o.Bw)(e));return-(0,r.XM)(n)}(0,i.vt)(),(0,i.vt)()},32114(t,e,n){n.d(e,{Rc:()=>M,rq:()=>f,Km:()=>h}),n(44208);var r=n(26390),o=n(29242),i=n(9093),a=n(82534),u=n(48163),s=n(51850),l=n(91829);class c{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new c(u.vt)}static createVec3f64(){return new c(s.vt)}static createVec4f64(){return new c(l.vt)}static createMat3f64(){return new c(o.vt)}static createMat4f64(){return new c(i.vt)}static createQuatf64(){return new c(a.vt)}get test(){}}c.createVec2f64();const f=c.createVec3f64(),h=c.createVec4f64(),M=(c.createMat3f64(),c.createMat4f64());c.createQuatf64()},77793(t,e,n){n.d(e,{V:()=>i,f:()=>a});var r=n(86738),o=n(73836);function i(t,e,n=u){return new r.A({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}function a(t,e=u){return new o.A({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}const u={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},40050(t,e,n){n.r(e),n.d(e,{assetMapFromAssetMapsJSON:()=>g,extractMesh:()=>m,meshFeatureSetFromJSON:()=>p});var r=n(52106),o=n(53966),i=n(91869),a=n(5443),u=n(16930),s=n(98331),l=n(63579),c=n(20557),f=n(22671),h=n(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function p(t,e,n){let o=n.features;n.features=[],delete n.geometryType;let i=f.A.fromJSON(n);if(i.geometryType="mesh",!n.assetMaps)return i;let a=g(e,n.assetMaps),s=t.sourceSpatialReference??u.A.WGS84,l=n.globalIdFieldName,{outFields:c}=t,h=null!=c&&c.length>0?(M=c.includes("*")?null:new Set(c),({attributes:t})=>{if(!t)return{};if(!M)return t;for(let e in t)M.has(e)||delete t[e];return t}):()=>({});var M;for(let t of o){let n=m(t,l,s,e,a);i.features.push(new r.A({geometry:n,attributes:h(t)}))}return i}function m(t,e,n,r,o){let i=t.attributes[e],u=o.get(i);if(null==u||!t.geometry)return null;let c=(0,h.V)(t.attributes,n,r.transformFieldRoles),f=a.A.fromJSON(t.geometry);f.spatialReference=n;let M=(0,h.f)(t.attributes,r.transformFieldRoles),p=n.isGeographic?"local":"georeferenced",m=function(t){let e=Array.from(t.files.values()),n=[];for(let t of e){if(2!==t.status)return null;let e=[];for(let n of t.parts){if(!n)return null;e.push(new l.Bq(n.url,n.hash))}n.push(new l.Qp(t.name,t.mimeType,e))}return{type:"service",assets:n}}(u);return m?(0,s.createWithExternalSource)(c,m,{extent:f,transform:M,vertexSpace:p,unitConversionDisabled:!0}):(0,s.H5)(c,{transform:M,vertexSpace:p})}function g(t,e){let n=new Map;for(let r of e){let e=r.parentGlobalId;if(null==e)continue;let o=r.assetName,a=r.assetType,u=r.assetHash,s=r.assetURL,l=r.conversionStatus,f=r.seqNo,h=(0,c.Fm)(a,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${a}, but it does not list it as a supported type`);continue}let p=(0,i.tE)(n,e,()=>({files:new Map}));(0,i.tE)(p.files,o,()=>({name:o,type:a,mimeType:h,status:v(l),parts:[]})).parts[f]={hash:u,url:s}}return n}function v(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},32728(t,e,n){n.d(e,{YH:()=>a,nu:()=>u,wp:()=>i}),n(34727);var r=n(35522),o=n(51850);function i(t,e){let n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,o,i),t}function a(t,e,n){n||=t;let o=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-o*e[0],t[1]-o*e[1],t[2]-o*e[2]),(0,r.S8)(n,n)}function u(t,e,n,i=(0,o.vt)()){let a=(0,r.Bw)(t),u=(0,r.Bw)(e),c=(0,r.Om)(t,e)/(a*u);if(c<.9999999999999999){let o=Math.acos(c),f=((1-n)*a+n*u)/Math.sin(o),h=f/a*Math.sin((1-n)*o),M=f/u*Math.sin(n*o);return(0,r.hs)(s,t,h),(0,r.hs)(l,e,M),(0,r.WQ)(i,s,l)}return(0,r.Cc)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const s=(0,o.vt)(),l=(0,o.vt)()}}]);