@arcgis/core 6.0.0-next.30 → 6.0.0-next.31
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/00d1c99779bd91b1d10e.js +1 -0
- package/assets/esri/core/workers/chunks/0694c7bcfe71692e2ccf.js +1 -0
- package/assets/esri/core/workers/chunks/{e2c6cd8dac01e129ccfe.js → 0e445ec3523de9f2dfa2.js} +1 -1
- package/assets/esri/core/workers/chunks/0f6c0d42100c21367e5c.js +1 -0
- package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +1 -0
- package/assets/esri/core/workers/chunks/1a3f71c4d97c36050030.js +1 -0
- package/assets/esri/core/workers/chunks/{0b4481b57a611b15f65c.js → 1eaf8bfdd3765a90ccc2.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ca2bb3c0551bb1898b6.js → 3fdcc383bbd9cf0d274c.js} +1 -1
- package/assets/esri/core/workers/chunks/{fefdd10bdd5a4c8d8ed0.js → 4741fac6b6b4202a97c5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad21757d78e372fa2ed6.js → 4a979fce1c971b614a18.js} +1 -1
- package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +1 -0
- package/assets/esri/core/workers/chunks/{865cebc5c982c040ab6f.js → 55a9eaeb152a3abada67.js} +1 -1
- package/assets/esri/core/workers/chunks/572aec57593a08b8045b.js +1 -0
- package/assets/esri/core/workers/chunks/6029773458ab98600f67.js +1 -0
- package/assets/esri/core/workers/chunks/6b5c073dddd89d06ed80.js +1 -0
- package/assets/esri/core/workers/chunks/7cc9d7a88b64e25fce14.js +1 -0
- package/assets/esri/core/workers/chunks/7e211d8a8ad6c6a7cf3e.js +1 -0
- package/assets/esri/core/workers/chunks/{64b360625c68cb863a08.js → 84940d8e14caf5a27e04.js} +1 -1
- package/assets/esri/core/workers/chunks/{c90388932a7825d9d933.js → 85de980c5b296ec69323.js} +1 -1
- package/assets/esri/core/workers/chunks/89dc49e784f7ba3b93ea.js +1 -0
- package/assets/esri/core/workers/chunks/{9d40786c5ceface786ba.js → 8a485130781b49dbf608.js} +1 -1
- package/assets/esri/core/workers/chunks/8d13f11d0bcc8d3a4bdf.js +1 -0
- package/assets/esri/core/workers/chunks/8da2a10318f49d0dc73a.js +1 -0
- package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +1 -0
- package/assets/esri/core/workers/chunks/{1dc6f093028530a492e6.js → 90ba0af9690dc32b2958.js} +1 -1
- package/assets/esri/core/workers/chunks/{71f792a20077aa739f87.js → a607541959169741a943.js} +1 -1
- package/assets/esri/core/workers/chunks/b2d6b1ac9fbb50c7c8ab.js +1 -0
- package/assets/esri/core/workers/chunks/b657363113f4a37e634b.js +1 -0
- package/assets/esri/core/workers/chunks/b9cb92858a576eb6aa06.js +1 -0
- package/assets/esri/core/workers/chunks/{4419732baf3459a80e6d.js → ceb2d5b0a23f0ab81f68.js} +1 -1
- package/assets/esri/core/workers/chunks/{7030a4d0714a35995a58.js → d09d8cd43e846d467827.js} +1 -1
- package/assets/esri/core/workers/chunks/{12b84262dedc6b393136.js → d9a240a3c6bf85124474.js} +1 -1
- package/assets/esri/core/workers/chunks/{8f008eedb11685ee2048.js → e096c1d9d53af74d3207.js} +1 -1
- package/assets/esri/core/workers/chunks/e30fdde253e5521473a2.js +1 -0
- package/assets/esri/core/workers/chunks/e4e2edfdc85dd14e66d4.js +1 -0
- package/assets/esri/core/workers/chunks/{ba4520ddcb6a49988da6.js → f21edbfdcab111d8a6cd.js} +1 -1
- package/assets/esri/core/workers/chunks/f4d91d470ca5fea0bd26.js +1 -0
- package/assets/esri/core/workers/chunks/f717005e14a7e9141df7.js +1 -0
- package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +1 -0
- package/assets/esri/core/workers/chunks/{b5eff28cf482d920b9ea.js → f7fb6cb7f08c16384443.js} +1 -1
- package/assets/esri/core/workers/chunks/fcc3902d6d9eda6f09f5.js +1 -0
- package/assets/esri/core/workers/chunks/{28a821de9dbf10324033.js → fd031150d3a7f896e6b3.js} +1 -1
- package/assets/esri/core/workers/chunks/{cc97e4fd0dacad970a23.js → ffaaa388773e60869df0.js} +1 -1
- package/config.js +1 -1
- package/core/scheduling.js +1 -1
- package/geometry/Mesh.d.ts +2 -125
- package/geometry/Mesh.js +1 -1
- package/geometry/support/meshErrors.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/polygonUtils.js +1 -1
- package/interfaces.d.ts +0 -3
- package/kernel.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/raster/functions/rasterProjectionHelper.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/package.json +2 -2
- package/support/arcadeUtils.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +10 -8
- package/views/3d/environment/VirtualLighting.d.ts +10 -8
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/PlanarPatch.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/webgl-engine/lib/Path.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webscene/Environment.d.ts +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/assets/esri/core/workers/chunks/02335385b1476fe322eb.js +0 -1
- package/assets/esri/core/workers/chunks/07b726a46864501b90a0.js +0 -1
- package/assets/esri/core/workers/chunks/189321d88026bd7e6d3e.js +0 -1
- package/assets/esri/core/workers/chunks/18d47ab571b613fbe719.js +0 -1
- package/assets/esri/core/workers/chunks/1967b9c96045a5802d08.js +0 -1
- package/assets/esri/core/workers/chunks/199a7f97916679e0257c.js +0 -1
- package/assets/esri/core/workers/chunks/1d96fbad881a7d14a950.js +0 -1
- package/assets/esri/core/workers/chunks/2cd60fd062d954322c1f.js +0 -1
- package/assets/esri/core/workers/chunks/2d3e0e4442dbc6ec6def.js +0 -1
- package/assets/esri/core/workers/chunks/2f5d014d6a72108b0b3a.js +0 -1
- package/assets/esri/core/workers/chunks/3105336a05f38a95ebea.js +0 -1
- package/assets/esri/core/workers/chunks/4fb2fcc95f852bf8f86c.js +0 -1
- package/assets/esri/core/workers/chunks/59bc55880e6fd8ce20c0.js +0 -1
- package/assets/esri/core/workers/chunks/5f787809b74eed7b9a91.js +0 -1
- package/assets/esri/core/workers/chunks/6a7de221cea4426cb490.js +0 -1
- package/assets/esri/core/workers/chunks/7a0b4dc0cda190367a39.js +0 -1
- package/assets/esri/core/workers/chunks/7d3f7940815fa5dc244e.js +0 -1
- package/assets/esri/core/workers/chunks/999c23da883eb11cb29e.js +0 -1
- package/assets/esri/core/workers/chunks/9bc3afe7013ef4ae737b.js +0 -1
- package/assets/esri/core/workers/chunks/bab1d010970d98c25470.js +0 -1
- package/assets/esri/core/workers/chunks/c4f78a481f43cfae7b63.js +0 -1
- package/assets/esri/core/workers/chunks/dcf6024dc19428ff2b9d.js +0 -1
- package/assets/esri/core/workers/chunks/ee0dc906cc7979080329.js +0 -1
- package/assets/esri/core/workers/chunks/f0d0ed155275c2e6d3da.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5992],{32198(t,e,n){function r(t,e,n,r){var o,a=arguments.length,u=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(e,n,u):o(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function u(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,e,n){var r=n(32198),o=n(69622),a=(n(44208),n(4718)),u=(n(53966),n(97768)),i=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),s=t=>{var e;let n=t,o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){let e=(0,i.oY)(this);(0,u.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,o={},l=new Map;for(let e in n){let u=n[e],i=r?.originOf(e),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;let s=this[e],f=null;if("function"==typeof c)f=c(s,t);else if("reference"===c)f=s;else if(f=(0,a.TU)(s,t),null!=s&&null==f)continue;0===i?l.set(e,f):o[e]=f}let c=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){let t=(0,i.oY)(c)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=s(o.A);n.d(e,["OU",0,s,"Pw",0,f])},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,u,i,l){return[t,e,n,r,o,a,u,i,l]}n.d(e,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b){return[t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function u(){return a(1,1)}function i(){return a(-1,-1)}function l(){return a(1,0)}function c(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>o,vt:()=>r});const s=u(),f=i(),h=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,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:a,negativeOnes:i,ones:u,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function u(t,e,n){return[t,e,n]}function i(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return a(1,1,1)}function c(){return a(1,0,0)}function s(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(e,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],M=l(),d=c(),b=s(),m=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:b,UNIT_Z:m,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:l,unitX:c,unitY:s,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,m,"Cw",0,d,"JP",0,b,"Un",0,M,"uY",0,h])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=a(),h=u(),M=i(),d=l(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:M,UNIT_Z:d,ZEROS:s,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:a,unitW:c,unitX:u,unitY:i,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,f,"uY",0,s])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function l(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},77690(t,e,n){n.d(e,{B8:()=>i,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t,e,n,r,o,a,u,i,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t}function u(t,e){if(t===e){let n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function i(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;return d?(d=1/d,t[0]=f*d,t[1]=(-s*r+o*c)*d,t[2]=(i*r-o*u)*d,t[3]=h*d,t[4]=(s*n-o*l)*d,t[5]=(-i*n+o*a)*d,t[6]=M*d,t[7]=(-c*n+r*l)*d,t[8]=(u*n-r*a)*d,t):null}function l(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8];return t[0]=u*s-i*c,t[1]=o*c-r*s,t[2]=r*i-o*u,t[3]=i*l-a*s,t[4]=n*s-o*l,t[5]=o*a-n*i,t[6]=a*c-u*l,t[7]=r*l-n*c,t[8]=n*u-r*a,t}function c(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8];return e*(c*a-u*l)+n*(-c*o+u*i)+r*(l*o-a*i)}function s(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1],d=n[2],b=n[3],m=n[4],p=n[5],g=n[6],y=n[7],w=n[8];return t[0]=h*r+M*u+d*c,t[1]=h*o+M*i+d*s,t[2]=h*a+M*l+d*f,t[3]=b*r+m*u+p*c,t[4]=b*o+m*i+p*s,t[5]=b*a+m*l+p*f,t[6]=g*r+y*u+w*c,t[7]=g*o+y*i+w*s,t[8]=g*a+y*l+w*f,t}function f(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=a*e[6],t[7]=a*e[7],t[8]=a*e[8],t}function h(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[3]=s-p,t[6]=h+m,t[1]=s+p,t[4]=1-c-d,t[7]=M-b,t[2]=h-m,t[5]=M+b,t[8]=1-c-f,t}function M(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,U=f*m-h*b,T=f*p-M*b,x=h*p-M*m,E=g*x-y*T+w*U+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*T+c*U)*E,t[1]=(l*O-u*x-c*C)*E,t[2]=(u*T-i*O+c*I)*E,t[3]=(o*T-r*x-a*U)*E,t[4]=(n*x-o*O+a*C)*E,t[5]=(r*O-n*T-a*I)*E,t[6]=(b*S-m*A+p*v)*E,t[7]=(m*w-d*S-p*y)*E,t[8]=(d*A-b*w+p*g)*E,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const b=s,m=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:c,equals:function(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=e[0],M=e[1],d=e[2],b=e[3],m=e[4],p=e[5],g=e[6],y=e[7],w=e[8],v=(0,r.FD)();return Math.abs(n-h)<=v*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-M)<=v*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-d)<=v*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(l-p)<=v*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-g)<=v*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(s-y)<=v*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(o*o+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e},mul:b,multiply:s,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;if(!d)return null;let b=1/d;return t[0]=f*b,t[1]=(-s*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(s*n-o*l)*b,t[5]=(-i*n+o*a)*b,t[6]=M*b,t[7]=(-c*n+r*l)*b,t[8]=(u*n-r*a)*b,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=Math.sin(n),M=Math.cos(n);return t[0]=M*r+h*u,t[1]=M*o+h*i,t[2]=M*a+h*l,t[3]=M*u-h*r,t[4]=M*i-h*o,t[5]=M*l-h*a,t[6]=c,t[7]=s,t[8]=f,t},scale:f,scaleByVec2:function(t,e,n){let r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=l,t[6]=h*r+M*u+c,t[7]=h*o+M*i+s,t[8]=h*a+M*l+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>p,$h:()=>U,B8:()=>s,C:()=>a,D_:()=>i,N9:()=>y,O7:()=>O,Qw:()=>c,Tl:()=>h,X_:()=>S,e$:()=>d,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>M,kN:()=>m,l:()=>I,lw:()=>f,mg:()=>l,o1:()=>C,sC:()=>A,t2:()=>E,t5:()=>T,tZ:()=>_,ut:()=>F});var r=n(51850),o=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function u(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t[9]=s,t[10]=f,t[11]=h,t[12]=M,t[13]=d,t[14]=b,t[15]=m,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){let n=e[1],r=e[2],o=e[3],a=e[6],u=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=u,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return s(t,e)||i(t),t}function s(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,U=f*m-h*b,T=f*p-M*b,x=h*p-M*m,E=g*x-y*T+w*U+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*T+c*U)*E,t[1]=(o*T-r*x-a*U)*E,t[2]=(b*S-m*A+p*v)*E,t[3]=(h*A-f*S-M*v)*E,t[4]=(l*O-u*x-c*C)*E,t[5]=(n*x-o*O+a*C)*E,t[6]=(m*w-d*S-p*y)*E,t[7]=(s*S-h*w+M*y)*E,t[8]=(u*T-i*O+c*I)*E,t[9]=(r*O-n*T-a*I)*E,t[10]=(d*A-b*w+p*g)*E,t[11]=(f*w-s*A-M*g)*E,t[12]=(i*C-u*U-l*I)*E,t[13]=(n*U-r*C+o*I)*E,t[14]=(b*y-d*v-m*g)*E,t[15]=(s*v-f*y+h*g)*E,t):null}function f(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=e[9],M=e[10],d=e[11],b=e[12],m=e[13],p=e[14],g=e[15],y=n[0],w=n[1],v=n[2],A=n[3];return t[0]=y*r+w*i+v*f+A*b,t[1]=y*o+w*l+v*h+A*m,t[2]=y*a+w*c+v*M+A*p,t[3]=y*u+w*s+v*d+A*g,y=n[4],w=n[5],v=n[6],A=n[7],t[4]=y*r+w*i+v*f+A*b,t[5]=y*o+w*l+v*h+A*m,t[6]=y*a+w*c+v*M+A*p,t[7]=y*u+w*s+v*d+A*g,y=n[8],w=n[9],v=n[10],A=n[11],t[8]=y*r+w*i+v*f+A*b,t[9]=y*o+w*l+v*h+A*m,t[10]=y*a+w*c+v*M+A*p,t[11]=y*u+w*s+v*d+A*g,y=n[12],w=n[13],v=n[14],A=n[15],t[12]=y*r+w*i+v*f+A*b,t[13]=y*o+w*l+v*h+A*m,t[14]=y*a+w*c+v*M+A*p,t[15]=y*u+w*s+v*d+A*g,t}function h(t,e,n){let r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{let n=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7],M=e[8],d=e[9],b=e[10],m=e[11];t[0]=n,t[1]=u,t[2]=i,t[3]=l,t[4]=c,t[5]=s,t[6]=f,t[7]=h,t[8]=M,t[9]=d,t[10]=b,t[11]=m,t[12]=n*r+c*o+M*a+e[12],t[13]=u*r+s*o+d*a+e[13],t[14]=i*r+f*o+b*a+e[14],t[15]=l*r+h*o+m*a+e[15]}return t}function M(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let u=r[0],i=r[1],l=r[2],c=Math.sqrt(u*u+i*i+l*l);if(c<=(0,o.FD)())return void a(t,e);c=1/c,u*=c,i*=c,l*=c;let s=Math.sin(n),f=Math.cos(n),h=1-f,M=e[0],d=e[1],b=e[2],m=e[3],p=e[4],g=e[5],y=e[6],w=e[7],v=e[8],A=e[9],S=e[10],I=e[11],C=u*u*h+f,O=i*u*h+l*s,U=l*u*h-i*s,T=u*i*h-l*s,x=i*i*h+f,E=l*i*h+u*s,F=u*l*h+i*s,_=i*l*h-u*s,P=l*l*h+f;t[0]=M*C+p*O+v*U,t[1]=d*C+g*O+A*U,t[2]=b*C+y*O+S*U,t[3]=m*C+w*O+I*U,t[4]=M*T+p*x+v*E,t[5]=d*T+g*x+A*E,t[6]=b*T+y*x+S*E,t[7]=m*T+w*x+I*E,t[8]=M*F+p*_+v*P,t[9]=d*F+g*_+A*P,t[10]=b*F+y*_+S*P,t[11]=m*F+w*_+I*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function b(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[4],u=e[5],i=e[6],l=e[7],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*r,t[5]=u*o+s*r,t[6]=i*o+f*r,t[7]=l*o+h*r,t[8]=c*o-a*r,t[9]=s*o-u*r,t[10]=f*o-i*r,t[11]=h*o-l*r,t}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return i(t);let r=n[0],a=n[1],u=n[2],l=Math.sqrt(r*r+a*a+u*u);if(l<=(0,o.FD)())return null;l=1/l,r*=l,a*=l,u*=l;let c=Math.sin(e),s=Math.cos(e),f=1-s;return t[0]=r*r*f+s,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+s,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function w(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=r+r,l=o+o,c=a+a,s=r*i,f=r*l,h=r*c,M=o*l,d=o*c,b=a*c,m=u*i,p=u*l,g=u*c;return t[0]=1-(M+b),t[1]=f+g,t[2]=h-p,t[3]=0,t[4]=f-g,t[5]=1-(s+b),t[6]=d+m,t[7]=0,t[8]=h+p,t[9]=d-m,t[10]=1-(s+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(l*l+c*c+s*s),t}function I(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function C(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3],l=o+o,c=a+a,s=u+u,f=o*l,h=o*c,M=o*s,d=a*c,b=a*s,m=u*s,p=i*l,g=i*c,y=i*s,w=r[0],v=r[1],A=r[2];return t[0]=(1-(d+m))*w,t[1]=(h+y)*w,t[2]=(M-g)*w,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+m))*v,t[6]=(b+p)*v,t[7]=0,t[8]=(M+g)*A,t[9]=(b-p)*A,t[10]=(1-(f+d))*A,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function O(t,e,n,r,o){let a=e[0],u=e[1],i=e[2],l=e[3],c=a+a,s=u+u,f=i+i,h=a*c,M=a*s,d=a*f,b=u*s,m=u*f,p=i*f,g=l*c,y=l*s,w=l*f,v=r[0],A=r[1],S=r[2],I=o[0],C=o[1],O=o[2],U=(1-(b+p))*v,T=(M+w)*v,x=(d-y)*v,E=(M-w)*A,F=(1-(h+p))*A,_=(m+g)*A,P=(d+y)*S,q=(m-g)*S,D=(1-(h+b))*S;return t[0]=U,t[1]=T,t[2]=x,t[3]=0,t[4]=E,t[5]=F,t[6]=_,t[7]=0,t[8]=P,t[9]=q,t[10]=D,t[11]=0,t[12]=n[0]+I-(U*I+E*C+P*O),t[13]=n[1]+C-(T*I+F*C+q*O),t[14]=n[2]+O-(x*I+_*C+D*O),t[15]=1,t}function U(t,e,n,r,o,a,u){let i=1/(n-e),l=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*l,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function T(t,e,n,r){let a=e[0],u=e[1],l=e[2],c=a-n[0],s=u-n[1],f=l-n[2],h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(s)<h&&Math.abs(f)<h)return void i(t);let M=1/Math.sqrt(c*c+s*s+f*f);c*=M,s*=M,f*=M;let d=r[0],b=r[1],m=r[2],p=b*f-m*s,g=m*c-d*f,y=d*s-b*c;M=Math.sqrt(p*p+g*g+y*y),M?(M=1/M,p*=M,g*=M,y*=M):(p=0,g=0,y=0);let w=s*y-f*g,v=f*p-c*y,A=c*g-s*p;M=Math.sqrt(w*w+v*v+A*A),M?(M=1/M,w*=M,v*=M,A*=M):(w=0,v=0,A=0),t[0]=p,t[1]=w,t[2]=c,t[3]=0,t[4]=g,t[5]=v,t[6]=s,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(p*a+g*u+y*l),t[13]=-(w*a+v*u+A*l),t[14]=-(c*a+s*u+f*l),t[15]=1}function x(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function F(t){let e=(0,o.FD)(),n=t[0],r=t[1],a=t[2],u=t[4],i=t[5],l=t[6],c=t[8],s=t[9],f=t[10];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(r*r+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e}function _(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,q=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15];return t[0]=i*(h*p-M*m)-f*(l*p-c*m)+b*(l*M-c*h),t[1]=-(r*(h*p-M*m)-f*(o*p-a*m)+b*(o*M-a*h)),t[2]=r*(l*p-c*m)-i*(o*p-a*m)+b*(o*c-a*l),t[3]=-(r*(l*M-c*h)-i*(o*M-a*h)+f*(o*c-a*l)),t[4]=-(u*(h*p-M*m)-s*(l*p-c*m)+d*(l*M-c*h)),t[5]=n*(h*p-M*m)-s*(o*p-a*m)+d*(o*M-a*h),t[6]=-(n*(l*p-c*m)-u*(o*p-a*m)+d*(o*c-a*l)),t[7]=n*(l*M-c*h)-u*(o*M-a*h)+s*(o*c-a*l),t[8]=u*(f*p-M*b)-s*(i*p-c*b)+d*(i*M-c*f),t[9]=-(n*(f*p-M*b)-s*(r*p-a*b)+d*(r*M-a*f)),t[10]=n*(i*p-c*b)-u*(r*p-a*b)+d*(r*c-a*i),t[11]=-(n*(i*M-c*f)-u*(r*M-a*f)+s*(r*c-a*i)),t[12]=-(u*(f*m-h*b)-s*(i*m-l*b)+d*(i*h-l*f)),t[13]=n*(f*m-h*b)-s*(r*m-o*b)+d*(r*h-o*f),t[14]=-(n*(i*m-l*b)-u*(r*m-o*b)+d*(r*l-o*i)),t[15]=n*(i*h-l*f)-u*(r*h-o*f)+s*(r*l-o*i),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8],s=t[9],f=t[10],h=t[11],M=t[12],d=t[13],b=t[14],m=t[15];return(e*u-n*a)*(f*m-h*b)-(e*i-r*a)*(s*m-h*d)+(e*l-o*a)*(s*b-f*d)+(n*i-r*u)*(c*m-h*M)-(n*l-o*u)*(c*b-f*M)+(r*l-o*i)*(c*d-s*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=t[9],M=t[10],d=t[11],b=t[12],m=t[13],p=t[14],g=t[15],y=e[0],w=e[1],v=e[2],A=e[3],S=e[4],I=e[5],C=e[6],O=e[7],U=e[8],T=e[9],x=e[10],E=e[11],F=e[12],_=e[13],P=e[14],q=e[15],D=(0,o.FD)();return Math.abs(n-y)<=D*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=D*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=D*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=D*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-S)<=D*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-I)<=D*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(s-O)<=D*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(f-U)<=D*Math.max(1,Math.abs(f),Math.abs(U))&&Math.abs(h-T)<=D*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(M-x)<=D*Math.max(1,Math.abs(M),Math.abs(x))&&Math.abs(d-E)<=D*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(b-F)<=D*Math.max(1,Math.abs(b),Math.abs(F))&&Math.abs(m-_)<=D*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-P)<=D*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(g-q)<=D*Math.max(1,Math.abs(g),Math.abs(q))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[1]=s+p,t[2]=h-m,t[3]=0,t[4]=s-p,t[5]=1-c-d,t[6]=M+b,t[7]=0,t[8]=h+m,t[9]=M-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],o=-e[1],a=-e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=r*r+o*o+a*a+u*u;return f>0?(n[0]=2*(i*u+s*r+l*a-c*o)/f,n[1]=2*(l*u+s*o+c*r-i*a)/f,n[2]=2*(c*u+s*a+i*o-l*r)/f):(n[0]=2*(i*u+s*r+l*a-c*o),n[1]=2*(l*u+s*o+c*r-i*a),n[2]=2*(c*u+s*a+i*o-l*r)),w(t,e,n),t},fromRotation:p,fromRotationTranslation:w,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:O,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:U,getRotation:I,getScale:S,getTranslation:A,hasIdentityRotation:_,identity:i,invert:s,invertOrIdentity:c,isOrthoNormal:F,lookAt:T,mul:P,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,a,u){let i=1/(e-n),l=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*l,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){let a,u=1/Math.tan(e/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(u+i),c=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*l*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:b,rotateY:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*r,t[1]=u*o-s*r,t[2]=i*o-f*r,t[3]=l*o-h*r,t[8]=a*r+c*o,t[9]=u*r+s*o,t[10]=i*r+f*o,t[11]=l*r+h*o,t},rotateZ:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*r,t[1]=u*o+s*r,t[2]=i*o+f*r,t[3]=l*o+h*r,t[4]=c*o-a*r,t[5]=s*o-u*r,t[6]=f*o-i*r,t[7]=h*o-l*r,t},scale:M,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:x,targetTo:function(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=r[0],l=r[1],c=r[2],s=o-n[0],f=a-n[1],h=u-n[2],M=s*s+f*f+h*h;M>0&&(M=1/Math.sqrt(M),s*=M,f*=M,h*=M);let d=l*h-c*f,b=c*s-i*h,m=i*f-l*s;return M=d*d+b*b+m*m,M>0&&(M=1/Math.sqrt(M),d*=M,b*=M,m*=M),t[0]=d,t[1]=b,t[2]=m,t[3]=0,t[4]=f*m-h*b,t[5]=h*d-s*m,t[6]=s*b-f*d,t[7]=0,t[8]=s,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>O,DI:()=>A,Io:()=>g,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>b,WQ:()=>l,Z0:()=>U,_S:()=>M,aI:()=>q,ei:()=>T,fw:()=>E,gL:()=>x,hG:()=>y,hZ:()=>i,hs:()=>m,jk:()=>d,lw:()=>s,m3:()=>w,oW:()=>D,t2:()=>P,tn:()=>h,ze:()=>v});var r=n(51850),o=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function b(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],o=e[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function O(t,e,n,r){let o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function U(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function T(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function x(t,e,n){return E(t,e,n[0],n[1],n[2],n[3])}function E(t,e,n,r,o,a){let u=e[0],i=e[1],l=e[2],c=r*l-o*i,s=o*u-n*l,f=n*i-r*u,h=r*f-o*s,M=o*c-n*f,d=n*s-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+s*b+2*M,t[2]=l+f*b+2*d,t}const F=(0,r.vt)(),_=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],c=(0,o.FD)();return Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const k=c,j=s,R=f,z=g,N=y,B=a,L=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,e){S(F,t),S(_,e);let n=I(F,_);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){let u=1-a,i=u*u,l=a*a,c=i*u,s=3*a*i,f=3*l*u,h=l*a;return t[0]=e[0]*c+n[0]*s+r[0]*f+o[0]*h,t[1]=e[1]*c+n[1]*s+r[1]*f+o[1]*h,t[2]=e[2]*c+n[2]*s+r[2]*f+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:C,crossAndNormalize:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=o*l-a*i,s=a*u-r*l,f=r*i-o*u,h=Math.sqrt(c*c+s*s+f*f);return t[0]=c/h,t[1]=s/h,t[2]=f/h,t},direction:D,dist:z,distance:g,div:R,divide:f,dot:I,equals:q,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){let u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,c=u*(a-1),s=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*c+o[0]*s,t[1]=e[1]*i+n[1]*l+r[1]*c+o[1]*s,t[2]=e[2]*i+n[2]*l+r[2]*c+o[2]*s,t},inverse:A,len:B,length:a,lerp:O,max:b,min:d,mul:j,multiply:s,negate:v,normalize:S,random:function(t,e=1){let n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:p,scaleTo:function(t,e){return m(t,t,e/B(t))},set:i,sign:M,sqrDist:N,sqrLen:L,squaredDistance:y,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:k,subtract:c,transformMat3:T,transformMat4:U,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:x,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,B,"jb",0,k,"lo",0,N,"uE",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>y,S8:()=>g,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>S,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>s,m3:()=>p,t2:()=>A});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}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 c(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 s(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 f(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 h(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 M(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 d(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function m(t){let e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function p(t){let e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function g(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n*n+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=n*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function w(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t[3]=i+r*(n[3]-i),t}function v(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*u,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*u,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*u,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*u,t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=e[0],l=e[1],c=e[2],s=e[3],f=(0,r.FD)();return Math.abs(n-i)<=f*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-s)<=f*Math.max(1,Math.abs(u),Math.abs(s))}const I=i,C=l,O=c,U=d,T=b,x=m,E=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,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:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:U,distance:d,div:O,divide:c,dot:y,equals:S,exactEquals:A,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:x,length:m,lerp:w,max:f,min:s,mul:C,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,o,a,u,i,l,c=r.Ov;do{n=2*c()-1,o=2*c()-1,i=n*n+o*o}while(i>=1);do{a=2*c()-1,u=2*c()-1,l=a*a+u*u}while(l>=1);let s=Math.sqrt((1-i)/l);return t[0]=e*n,t[1]=e*o,t[2]=e*a*s,t[3]=e*u*s,t},round:h,scale:M,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:a,sqrDist:T,sqrLen:E,squaredDistance:b,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:i,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=n[3],s=c*r+i*a-l*o,f=c*o+l*r-u*a,h=c*a+u*o-i*r,M=-u*r-i*o-l*a;return t[0]=s*c+M*-u+f*-l-h*-i,t[1]=f*c+M*-i+h*-u-s*-l,t[2]=h*c+M*-l+s*-i-f*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,n){n.d(e,{$8:()=>I,Cc:()=>i,Hx:()=>m,Io:()=>A,KJ:()=>s,OS:()=>U,Sp:()=>M,XM:()=>f,YN:()=>h,ZH:()=>b,b6:()=>S,cU:()=>o,gg:()=>d,hs:()=>l,kU:()=>c,mP:()=>u,or:()=>O,pF:()=>x,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function a(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e){return 0===e?0:Math.ceil(t/e)*e}function i(t,e,n){return t+(e-t)*n}function l(t,e,n,r,o){return i(r,o,(t-e)/(n-e))}function c(t){return t*Math.PI/180}function s(t){return 180*t/Math.PI}function f(t){return Math.acos(a(t,-1,1))}function h(t){return Math.asin(a(t,-1,1))}function M(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function d(t,e,n=1e-6){return!M(t,e,n)&&t>e}function b(t,e,n=1e-6){return!M(t,e,n)&&t<e}function m(t,e,n=1e-6){return M(t,e,n)||t>e}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function g(t){return p.setFloat64(0,t),p.getBigInt64(0)}const y=1000000n,w=v(1);function v(t){let e=g(t=Math.abs(t)),n=function(t){return p.setBigInt64(0,t),p.getFloat64(0)}(e<=y?y:e-y);return Math.abs(t-n)}function A(t,e,n=w){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&v(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=g(t),o=g(e);return!(r<0!=o<0||(r<o?o-r:r-o)>y)}function S(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),o=Math.abs(t),a=Math.abs(e);if(0===t||0===e||o<1e-12&&a<1e-12){if(r>.01*n)return!1}else if(r/(o+a)>n)return!1;return!0}function I(t){return C(Math.max(-T,Math.min(t,T)))}function C(t){return r[0]=t,r[0]}function O(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(e,1)&&M(n,1)&&M(r,1))}function U(t,e){return(t%e+e)%e}const T=C(34028234663852886e22);function x(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,T])},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(37539);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){let l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;let e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}let c=n+3*i;for(let e=n,r=u;e<c;e+=3,r+=3)l(t,e,o,r);return!0}},37539(t,e,n){n.d(e,{pO:()=>m,jd:()=>h,Tp:()=>M,wy:()=>d,w5:()=>f,s7:()=>w});var r=n(34727),o=n(86211),a=n(73941),u=n(79258);Math.PI;const i=u.$O.radius,l=u.$O.eccentricitySquared,c={a1:i*l,a2:i*l*i*l,a3:i*l*l/2,a4:i*l*i*l*2.5,a5:i*l+i*l*l/2,a6:1-l};u.$O.radius,u.$O.flattening,u.Sw.radius,u.Sw.flattening,u.sH.radius,u.sH.flattening,u.sH.radius;var s=n(21325);const f={2:{5:m,7:null,9:null,10:m,1:U,6:null,8:null,0:null,3:w,11:v,2:m,4:q},5:{5:m,7:null,9:null,10:m,1:U,6:null,8:null,0:null,3:w,11:v,2:m,4:q},7:{5:null,7:m,9:null,10:m,1:null,6:O,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:C,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:g,6:null,8:null,0:null,3:m,11:S,2:p,4:y},4:{5:D,7:null,9:null,10:D,1:k,6:null,8:null,0:null,3:j,11:function(t,e,n,r){D(t,e,n,r),v(n,r,n,r)},2:D,4:m},1:{5:F,7:null,9:null,10:F,1:m,6:null,8:null,0:null,3:_,11:function(t,e,n,r){F(t,e,n,r),v(n,r,n,r)},2:F,4:P},6:{5:null,7:E,9:null,10:E,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:U,6:O,8:C,0:null,3:w,11:v,2:m,4:q},11:{5:A,7:null,9:null,10:A,1:function(t,e,n,r){A(t,e,n,r),U(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),w(n,r,n,r)},11:m,2:A,4:function(t,e,n,r){A(t,e,n,r),q(n,r,n,r)}}};function h(t,e){return M(t,e)?.projector}function M(t,e){if(null==t||null==e)return null;if(R.source.spatialReference===t&&R.dest.spatialReference===e)return R;let n=b(t,R.source),r=b(e,R.dest);return 0===n&&0===r?(0,s.aI)(t,e)?R.projector=m:R.projector=null:R.projector=f[n][r],R}function d(t,e){switch(h(t,e)){case m:return"copy3";case U:return"wgs84ToSphericalECEF";case w:return"wgs84ToWebMercator";case v:return"wgs84ToPlateCarree";case q:return"wgs84ToWGS84ECEF";case p:return"webMercatorToWGS84";case g:return"webMercatorToSphericalECEF";case y:return"webMercatorToWGS84ECEF";case S:return"webMercatorToPlateCarree";case D:return"wgs84ECEFToWGS84";case k:return"wgs84ECEFToSphericalECEF";case j:return"wgs84ECEFToWebMercator";case F:return"sphericalECEFToWGS84";case _:return"sphericalECEFToWebMercator";case E:return"sphericalMarsPCPFToMars2000";case x:return"sphericalMoonPCPFToMoon2000";case P:return"sphericalECEFToWGS84ECEF";case O:return"mars2000ToSphericalPCPF";case C:return"moon2000ToSphericalPCPF";default:return null}}function b(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),e.spatialReferenceId=(0,a.jA)(t)?1:(0,s.oT)(t)?2:(0,s.K8)(t)?3:(0,s.r1)(t)?11:t.wkt===a.Ro.wkt?4:4490===t.wkid?5:t.wkt===a.FY.wkt?6:t.wkt===a.LJ.wkt?8:(0,a.q8)(t)?7:(0,a.KQ)(t)?9:0):0}function m(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function p(t,e,n,r){n[r]=N*(t[e]/L),n[r+1]=N*(B-2*Math.atan(Math.exp(-t[e+1]/L))),n[r+2]=t[e+2]??0}function g(t,e,n,r){let o=t[e]/L,a=B-2*Math.atan(Math.exp(-t[e+1]/L)),u=L+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u}function y(t,e,n,r){p(t,e,n,r),q(n,r,n,r)}function w(t,e,n,o){!function(t,e,n,o,a){let u=.4999999*Math.PI,i=(0,r.qE)(z*t[e+1],-u,u),l=Math.sin(i);n[o++]=z*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function v(t,e,n,r){n[r]=t[e]*Y,n[r+1]=t[e+1]*Y,n[r+2]=t[e+2]??0}function A(t,e,n,r){n[r]=t[e]*Z,n[r+1]=t[e+1]*Z,n[r+2]=t[e+2]??0}function S(t,e,n,r){p(t,e,n,r),v(n,r,n,r)}function I(t,e,n,r,o){let a=o+(t[e+2]??0),u=z*t[e],i=z*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function C(t,e,n,r){I(t,e,n,r,u.Sw.radius)}function O(t,e,n,r){I(t,e,n,r,u.sH.radius)}function U(t,e,n,r){I(t,e,n,r,u.$O.radius)}function T(t,e,n,o,a){let u=t[e],i=t[e+1],l=t[e+2]??0,c=Math.sqrt(u*u+i*i+l*l),s=(0,r.YN)(l/(0===c?1:c)),f=Math.atan2(i,u);n[o++]=N*f,n[o++]=N*s,n[o]=c-a}function x(t,e,n,r){T(t,e,n,r,u.Sw.radius)}function E(t,e,n,r){T(t,e,n,r,u.sH.radius)}function F(t,e,n,r){T(t,e,n,r,u.$O.radius)}function _(t,e,n,r){F(t,e,n,r),w(n,r,n,r)}function P(t,e,n,r){F(t,e,n,r),q(n,r,n,r)}function q(t,e,n,r){!function(t,e,n,r,o){let a=z*t[e],u=z*t[e+1],i=t[e+2]??0,l=Math.sin(u),c=Math.cos(u),s=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(s+i)*c*Math.cos(a),n[r++]=(s+i)*c*Math.sin(a),n[r++]=(s*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function D(t,e,n,r){let o,a,i,l,s,f,h,M,d,b,m,p,g,y,w,v,A,S,I,C,O,U=c,T=t[e],x=t[e+1],E=t[e+2]??0;o=Math.abs(E),a=T*T+x*x,i=Math.sqrt(a),l=a+E*E,s=Math.sqrt(l),C=Math.atan2(x,T),f=E*E/l,h=a/l,y=U.a2/s,w=U.a3-U.a4/s,h>.3?(M=o/s*(1+h*(U.a1+y+f*w)/s),I=Math.asin(M),b=M*M,d=Math.sqrt(1-b)):(d=i/s*(1-f*(U.a5-y-h*w)/s),I=Math.acos(d),b=1-d*d,M=Math.sqrt(b)),m=1-u.$O.eccentricitySquared*b,p=u.$O.radius/Math.sqrt(m),g=U.a6*p,y=i-p*d,w=o-g*M,A=d*y+M*w,v=d*w-M*y,S=v/(g/m+A),I+=S,O=A+v*S/2,E<0&&(I=-I),n[r++]=N*C,n[r++]=N*I,n[r]=O}function k(t,e,n,r){D(t,e,n,r),U(n,r,n,r)}function j(t,e,n,r){D(t,e,n,r),w(n,r,n,r)}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},z=(0,r.kU)(1),N=(0,r.KJ)(1),B=.5*Math.PI,L=u.$O.radius,Y=L*Math.PI/180,Z=180/(L*Math.PI)},98764(t,e,n){n.d(e,{lO:()=>s});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),c=new o.A(r.Ro);function s(t){let e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{let e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{let e=t.wkt2??t.wkt;if(e){let t=e.toUpperCase();t===h?n=i:t===M&&(n=l)}}}return f.set(t,n),n}const f=new Map,h=i.wkt.toUpperCase(),M=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,c])},64798(t,e,n){n.r(e),n.d(e,{default:()=>q});var r=n(4576),o=n(34275),a=n(82534),u=n(35522);function i(){return new Float32Array(3)}function l(t){let e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function c(t,e,n){let r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function d(){return c(0,0,1)}const b=s(),m=f(),p=h(),g=M(),y=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:g,UNIT_Z:y,ZEROS:b,clone:l,create:i,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:d,zeros:s},Symbol.toStringTag,{value:"Module"}));var w=n(51850),v=n(16930),A=n(9762),S=n(63531),I=n(69846),C=n(48425),O=n(59418),U=n(37203);function T(t,e,n){return t?.attributeInfo.useElevation?e?function(t,e){let n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:t?.attributeInfo.storageInfo?(0,O.m0)(t.attributeInfo.storageInfo,t.buffer,n,!0):null}function x(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function E(t){let e=0;for(let n of t||[])e|=1<<n;return e}var F=n(57005);class _{transform(t){let e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(let t of e.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){let e=function(t,e){if(null==t.encoding||""===t.encoding){let n=(0,O.wH)(e,t);if(null==n.vertexAttributes.position)return;let r=(0,O.MA)(e,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,l=new Float64Array(3*i);for(let t=0;t<i;t++)l[3*t]=r[3*t]*u[0]+a[0],l[3*t+1]=r[3*t+1]*u[1]+a[1],l[3*t+2]=r[3*t+2]*u[2]+a[2];return l}if("lepcc-xyz"===t.encoding)return(0,U.Me)(e).result}(t.schema,t.geometryBuffer),n=e.length/3,o=null,a=[],s=T(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&s&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:s});let f=T(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&f&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:f});let h=function(t,e,n,r){let{rendererJSON:o,isRGBRenderer:a}=t,u=null,i=null;if(e&&a)u=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){i=C.A.fromJSON(o);let t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){i=I.A.fromJSON(o);let t=i.stops;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){let n=(r-t[e-1].value)/(t[e].value-t[e-1].value);u[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),u[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),u[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){i=S.A.fromJSON(o);let t=i.colorClassBreakInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(n&&i?.colorModulation){let t=i.colorModulation.minValue,e=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){let r=n[a],i=r>=e?1:r<=t?o:o+.7*(r-t)/(e-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,s,f,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){let u=t.filterAttributesData.filter(r.Ru).map(t=>{let r=T(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(t,e,n,r,o){let a=t.length/3,u=function(t){return t.map(t=>{let{filterJSON:e}=t;switch(e.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(e.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:E(e.requiredClearBits),requiredMask:E(e.requiredSetBits)};default:return t}})}(r),i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){let{clearMask:e,filterJSON:n,requiredMask:i,valuesSet:l}=u[t],c=o[t].values[r];switch(n.type){case"pointCloudValueFilter":{let t="exclude"===n.mode;l.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":((c&i)!==i||0!==(c&e))&&(a=!1);break;case"pointCloudReturnFilter":{let t=15&c,e=c>>>4&15,r=e>1,o=1===t,u=t===e,i=!1;for(let t of n.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(n[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],e[3*i]=e[3*r],e[3*i+1]=e[3*r+1],e[3*i+2]=e[3*r+2],i++)}return i}(e,h,o,t.filterInfo,u)}for(let r of t.userAttributesData){let t=T(r,e,n);a.push({attributeInfo:r.attributeInfo,values:t})}3*n<h.length&&(h=h.slice(0,3*n)),function(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}(e,n,t.elevationOffset);let M=function(t,e,n,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,e))throw Error("Can't reproject");let a=l(n.getCenter((0,w.vt)())),s=i(),f=i(),h=c(n.halfSizeX,n.halfSizeY,n.halfSizeZ);n.getQuaternionConjugate(P);let M=new Float32Array(3*e);for(let n=0;n<e;n++){let e=3*n;s[0]=t[e]-a[0],s[1]=t[e+1]-a[1],s[2]=t[e+2]-a[2],(0,u.gL)(f,s,P),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),M[e++]=s[0],M[e++]=s[1],M[e]=s[2]}return n.setHalfSize(h),M}(e,n,F.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:M,rgb:h,attributes:a,pointIdFilterMap:o}}}const P=(0,a.vt)();function q(){return new _}},59418(t,e,n){n.d(e,{qs:()=>m,wH:()=>b,MA:()=>h,E5:()=>M,m0:()=>g});var r=n(49186),o=n(4718),a=n(53966),u=n(34275),i=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,n){let o="",a=0;for(;a<n;){let u=t[e+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let i=(31&u)<<6|63&t[e+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(15&u)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(7&u)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(i>=65536){let t=55296+(i-65536>>10),e=56320+(1023&i);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(i);a+=4}}}return o}function s(t,e){let n={byteOffset:0,byteCount:0,fields:Object.create(null)},r=0;for(let o=0;o<e.length;o++){let a=e[o],u=a.valueType||a.type,i=w[u];n.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){let o,a=[],u=0,i=0;for(;i<t;i+=1){if(o=e[i],o>0){if(a.push(c(n,u,o-1)),0!==n[u+o-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else a.push(null);u+=o}return a}function h(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function M(t,e){if(!t)return null;let n=t[e];return(0,u.IY)(t)?-32768===n?null:n:(0,u._G)(t)?n===u.h2?null:n:n==n?n:null}function d(t,e,n){if(e!==t&&l().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){let n=s(t,e&&e.header),r=n.byteCount,o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,u=null==a.vertexCount?a.count:a.vertexCount;for(let t of e.ordering){if(!e.vertexAttributes[t])continue;let n={...e.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=n,r+=A(n.valueType)*n.valuesPerElement*u}let i=a.faceCount;if(e.faces&&i){o.faces={};for(let t of e.ordering){if(!e.faces[t])continue;let n={...e.faces[t],byteOffset:r,count:i};o.faces[t]=n,r+=A(n.valueType)*n.valuesPerElement*i}}let l=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&l){o.featureAttributes={};for(let t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;let n={...e.featureAttributes[t],byteOffset:r,count:l};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*l}}return d(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}function m(t,e){return t&&t.compressedAttributes&&"draco"===t.compressedAttributes.encoding?function(t){let e={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t)switch(n){case"position":break;case"normal":e.normal=!0;break;case"uv0":e.uv0=!0;break;case"color":e.color=!0;break;case"uv-region":e.uvRegion=!0;break;case"feature-index":e.featureIndex=!0}return e}(t.compressedAttributes.attributes):t?function(t){return{isDraco:!1,isLegacy:!1,color:null!=t.color,normal:null!=t.normal,uv0:null!=t.uv0,uvRegion:null!=t.uvRegion,featureIndex:null!=t.faceRange&&null!=t.featureId}}(t):function(t){let e={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t.ordering)if(t.vertexAttributes[n])switch(n){case"position":break;case"normal":e.normal=!0;break;case"color":e.color=!0;break;case"uv0":e.uv0=!0;break;case"region":e.uvRegion=!0}return t.featureAttributes&&t.featureAttributeOrder&&(e.featureIndex=!0),e}(e)}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(t,e,n,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(e));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");let u=function(t,e,n){let a=null==e.header?{byteOffset:0,byteCount:0,fields:{count:n}}:s(t,e.header),u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)},i=a.byteCount;for(let t=0;t<e.ordering.length;t++){let n=e.ordering[t],l=(0,o.o8)(e[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=i,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let t=A(l.valueType);i+=i%t===0?0:t-i%t,l.byteOffset=i,l.byteCount=t*l.valuesPerElement*l.count}}i+=l.byteCount??0,u.entries[n]=l}return u.byteCount=i-u.byteOffset,u}(e,t,n);d(u.byteOffset+u.byteCount,e.byteLength,"attribute");let c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){let t=u.entries.attributeByteCounts,n=h(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,c);return c.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{let e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return a?h(e,c):function(t,e){let n=h(t,e);if(n.length>=1024)return n;let r=[];return n.forEach((t,e)=>r.push(M(n,e))),r}(e,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function v(t){return y.hasOwnProperty(t)}function A(t){return v(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,e,n){n.d(e,{Ax:()=>c,Me:()=>a,mb:()=>l});var r=n(49186);function o(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,!0),checksum:e.getUint32(n+12,!0)}}function a(t){let e=new DataView(t,0),n=0,{identifier:a,version:i}=o(t,e,n);if(n+=16,"LEPCC "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),minX:c.getFloat64(s+8,!0),minY:c.getFloat64(s+16,!0),minZ:c.getFloat64(s+24,!0),maxX:c.getFloat64(s+32,!0),maxY:c.getFloat64(s+40,!0),maxZ:c.getFloat64(s+48,!0),errorX:c.getFloat64(s+56,!0),errorY:c.getFloat64(s+64,!0),errorZ:c.getFloat64(s+72,!0),count:c.getUint32(s+80,!0),reserved:c.getUint32(s+84,!0)});var c,s;if(n+=88,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Float64Array(3*l.count),h=[],M=[],d=[],b=[];if(n=u(t,n,h),n=u(t,n,M),n=u(t,n,d),n=u(t,n,b),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,p=0;for(let t=0;t<h.length;t++){p+=h[t];let e=0;for(let n=0;n<M[t];n++){e+=d[m];let t=b[m];f[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*e),f[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*p),f[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*t),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:f}}function u(t,e,n){let r=[];e=i(t,e,r);let o=[];for(let a=0;a<r.length;a++){o.length=0,e=i(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[a])}return e}function i(t,e,n){let o=new DataView(t,e),a=o.getUint8(0),u=31&a,i=!!(32&a),l=(192&a)>>6,c=0;if(0===l)c=o.getUint32(1,!0),e+=5;else if(1===l)c=o.getUint16(1,!0),e+=3;else{if(2!==l)throw new r.A("lepcc-decode-error","Bad count type");c=o.getUint8(1),e+=2}if(i)throw new r.A("lepcc-decode-error","LUT not implemented");let s=Math.ceil(c*u/8),f=new Uint8Array(t,e,s),h=0,M=0,d=0,b=-1>>>32-u;for(let t=0;t<c;t++){for(;M<u;)h|=f[d]<<M,M+=8,d+=1;n[t]=h&b,h>>>=u,M-=u,M+u>32&&(h|=f[d-1]>>8-M)}return e+d}function l(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"ClusterRGB"!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let i=(c=n,{sizeLo:(l=e).getUint32(c+0,!0),sizeHi:l.getUint32(c+4,!0),count:l.getUint32(c+8,!0),colorMapCount:l.getUint16(c+12,!0),lookupMethod:l.getUint8(c+14),compressionMethod:l.getUint8(c+15)});var l,c;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+n!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");let e=new Uint8Array(t,n,3*i.colorMapCount),o=new Uint8Array(t,n+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){let n=o[t];a[3*t]=e[3*n],a[3*t+1]=e[3*n+1],a[3*t+2]=e[3*n+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+n!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(n+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");let o=e.getUint8(n),a=e.getUint8(n+1),u=e.getUint8(n+2),l=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)l[3*t]=o,l[3*t+1]=a,l[3*t+2]=u;return l}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function c(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"Intensity "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),count:c.getUint32(s+8,!0),scaleFactor:c.getUint16(s+12,!0),bitsPerPoint:c.getUint8(s+14),reserved:c.getUint8(s+15)});var c,s;if(n+=16,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint8Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint16Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else{let e=[];if(i(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}return f}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5992],{32198(t,e,n){function r(t,e,n,r){var o,a=arguments.length,u=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(e,n,u):o(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function u(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,e,n){var r=n(32198),o=n(69622),a=(n(44208),n(4718)),u=(n(53966),n(97768)),i=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),s=t=>{var e;let n=t,o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){let e=(0,i.oY)(this);(0,u.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,o={},l=new Map;for(let e in n){let u=n[e],i=r?.originOf(e),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;let s=this[e],f=null;if("function"==typeof c)f=c(s,t);else if("reference"===c)f=s;else if(f=(0,a.TU)(s,t),null!=s&&null==f)continue;0===i?l.set(e,f):o[e]=f}let c=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){let t=(0,i.oY)(c)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=s(o.A);n.d(e,["OU",0,s,"Pw",0,f])},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,u,i,l){return[t,e,n,r,o,a,u,i,l]}n.d(e,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b){return[t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function u(){return a(1,1)}function i(){return a(-1,-1)}function l(){return a(1,0)}function c(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>o,vt:()=>r});const s=u(),f=i(),h=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,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:a,negativeOnes:i,ones:u,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function u(t,e,n){return[t,e,n]}function i(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return a(1,1,1)}function c(){return a(1,0,0)}function s(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(e,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],M=l(),d=c(),b=s(),m=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:b,UNIT_Z:m,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:l,unitX:c,unitY:s,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,m,"Cw",0,d,"JP",0,b,"Un",0,M,"uY",0,h])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=a(),h=u(),M=i(),d=l(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:M,UNIT_Z:d,ZEROS:s,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:a,unitW:c,unitX:u,unitY:i,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,f,"uY",0,s])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function l(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},77690(t,e,n){n.d(e,{B8:()=>i,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t,e,n,r,o,a,u,i,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t}function u(t,e){if(t===e){let n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function i(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;return d?(d=1/d,t[0]=f*d,t[1]=(-s*r+o*c)*d,t[2]=(i*r-o*u)*d,t[3]=h*d,t[4]=(s*n-o*l)*d,t[5]=(-i*n+o*a)*d,t[6]=M*d,t[7]=(-c*n+r*l)*d,t[8]=(u*n-r*a)*d,t):null}function l(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8];return t[0]=u*s-i*c,t[1]=o*c-r*s,t[2]=r*i-o*u,t[3]=i*l-a*s,t[4]=n*s-o*l,t[5]=o*a-n*i,t[6]=a*c-u*l,t[7]=r*l-n*c,t[8]=n*u-r*a,t}function c(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8];return e*(c*a-u*l)+n*(-c*o+u*i)+r*(l*o-a*i)}function s(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1],d=n[2],b=n[3],m=n[4],p=n[5],g=n[6],y=n[7],w=n[8];return t[0]=h*r+M*u+d*c,t[1]=h*o+M*i+d*s,t[2]=h*a+M*l+d*f,t[3]=b*r+m*u+p*c,t[4]=b*o+m*i+p*s,t[5]=b*a+m*l+p*f,t[6]=g*r+y*u+w*c,t[7]=g*o+y*i+w*s,t[8]=g*a+y*l+w*f,t}function f(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=a*e[6],t[7]=a*e[7],t[8]=a*e[8],t}function h(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[3]=s-p,t[6]=h+m,t[1]=s+p,t[4]=1-c-d,t[7]=M-b,t[2]=h-m,t[5]=M+b,t[8]=1-c-f,t}function M(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,U=f*m-h*b,T=f*p-M*b,x=h*p-M*m,E=g*x-y*T+w*U+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*T+c*U)*E,t[1]=(l*O-u*x-c*C)*E,t[2]=(u*T-i*O+c*I)*E,t[3]=(o*T-r*x-a*U)*E,t[4]=(n*x-o*O+a*C)*E,t[5]=(r*O-n*T-a*I)*E,t[6]=(b*S-m*A+p*v)*E,t[7]=(m*w-d*S-p*y)*E,t[8]=(d*A-b*w+p*g)*E,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const b=s,m=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:c,equals:function(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=e[0],M=e[1],d=e[2],b=e[3],m=e[4],p=e[5],g=e[6],y=e[7],w=e[8],v=(0,r.FD)();return Math.abs(n-h)<=v*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-M)<=v*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-d)<=v*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(l-p)<=v*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-g)<=v*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(s-y)<=v*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(o*o+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e},mul:b,multiply:s,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;if(!d)return null;let b=1/d;return t[0]=f*b,t[1]=(-s*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(s*n-o*l)*b,t[5]=(-i*n+o*a)*b,t[6]=M*b,t[7]=(-c*n+r*l)*b,t[8]=(u*n-r*a)*b,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=Math.sin(n),M=Math.cos(n);return t[0]=M*r+h*u,t[1]=M*o+h*i,t[2]=M*a+h*l,t[3]=M*u-h*r,t[4]=M*i-h*o,t[5]=M*l-h*a,t[6]=c,t[7]=s,t[8]=f,t},scale:f,scaleByVec2:function(t,e,n){let r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=l,t[6]=h*r+M*u+c,t[7]=h*o+M*i+s,t[8]=h*a+M*l+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>p,$h:()=>U,B8:()=>s,C:()=>a,D_:()=>i,N9:()=>y,O7:()=>O,Qw:()=>c,Tl:()=>h,X_:()=>S,e$:()=>d,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>M,kN:()=>m,l:()=>I,lw:()=>f,mg:()=>l,o1:()=>C,sC:()=>A,t2:()=>E,t5:()=>T,tZ:()=>_,ut:()=>F});var r=n(51850),o=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function u(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t[9]=s,t[10]=f,t[11]=h,t[12]=M,t[13]=d,t[14]=b,t[15]=m,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){let n=e[1],r=e[2],o=e[3],a=e[6],u=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=u,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return s(t,e)||i(t),t}function s(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,U=f*m-h*b,T=f*p-M*b,x=h*p-M*m,E=g*x-y*T+w*U+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*T+c*U)*E,t[1]=(o*T-r*x-a*U)*E,t[2]=(b*S-m*A+p*v)*E,t[3]=(h*A-f*S-M*v)*E,t[4]=(l*O-u*x-c*C)*E,t[5]=(n*x-o*O+a*C)*E,t[6]=(m*w-d*S-p*y)*E,t[7]=(s*S-h*w+M*y)*E,t[8]=(u*T-i*O+c*I)*E,t[9]=(r*O-n*T-a*I)*E,t[10]=(d*A-b*w+p*g)*E,t[11]=(f*w-s*A-M*g)*E,t[12]=(i*C-u*U-l*I)*E,t[13]=(n*U-r*C+o*I)*E,t[14]=(b*y-d*v-m*g)*E,t[15]=(s*v-f*y+h*g)*E,t):null}function f(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=e[9],M=e[10],d=e[11],b=e[12],m=e[13],p=e[14],g=e[15],y=n[0],w=n[1],v=n[2],A=n[3];return t[0]=y*r+w*i+v*f+A*b,t[1]=y*o+w*l+v*h+A*m,t[2]=y*a+w*c+v*M+A*p,t[3]=y*u+w*s+v*d+A*g,y=n[4],w=n[5],v=n[6],A=n[7],t[4]=y*r+w*i+v*f+A*b,t[5]=y*o+w*l+v*h+A*m,t[6]=y*a+w*c+v*M+A*p,t[7]=y*u+w*s+v*d+A*g,y=n[8],w=n[9],v=n[10],A=n[11],t[8]=y*r+w*i+v*f+A*b,t[9]=y*o+w*l+v*h+A*m,t[10]=y*a+w*c+v*M+A*p,t[11]=y*u+w*s+v*d+A*g,y=n[12],w=n[13],v=n[14],A=n[15],t[12]=y*r+w*i+v*f+A*b,t[13]=y*o+w*l+v*h+A*m,t[14]=y*a+w*c+v*M+A*p,t[15]=y*u+w*s+v*d+A*g,t}function h(t,e,n){let r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{let n=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7],M=e[8],d=e[9],b=e[10],m=e[11];t[0]=n,t[1]=u,t[2]=i,t[3]=l,t[4]=c,t[5]=s,t[6]=f,t[7]=h,t[8]=M,t[9]=d,t[10]=b,t[11]=m,t[12]=n*r+c*o+M*a+e[12],t[13]=u*r+s*o+d*a+e[13],t[14]=i*r+f*o+b*a+e[14],t[15]=l*r+h*o+m*a+e[15]}return t}function M(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let u=r[0],i=r[1],l=r[2],c=Math.sqrt(u*u+i*i+l*l);if(c<=(0,o.FD)())return void a(t,e);c=1/c,u*=c,i*=c,l*=c;let s=Math.sin(n),f=Math.cos(n),h=1-f,M=e[0],d=e[1],b=e[2],m=e[3],p=e[4],g=e[5],y=e[6],w=e[7],v=e[8],A=e[9],S=e[10],I=e[11],C=u*u*h+f,O=i*u*h+l*s,U=l*u*h-i*s,T=u*i*h-l*s,x=i*i*h+f,E=l*i*h+u*s,F=u*l*h+i*s,_=i*l*h-u*s,P=l*l*h+f;t[0]=M*C+p*O+v*U,t[1]=d*C+g*O+A*U,t[2]=b*C+y*O+S*U,t[3]=m*C+w*O+I*U,t[4]=M*T+p*x+v*E,t[5]=d*T+g*x+A*E,t[6]=b*T+y*x+S*E,t[7]=m*T+w*x+I*E,t[8]=M*F+p*_+v*P,t[9]=d*F+g*_+A*P,t[10]=b*F+y*_+S*P,t[11]=m*F+w*_+I*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function b(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[4],u=e[5],i=e[6],l=e[7],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*r,t[5]=u*o+s*r,t[6]=i*o+f*r,t[7]=l*o+h*r,t[8]=c*o-a*r,t[9]=s*o-u*r,t[10]=f*o-i*r,t[11]=h*o-l*r,t}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return i(t);let r=n[0],a=n[1],u=n[2],l=Math.sqrt(r*r+a*a+u*u);if(l<=(0,o.FD)())return null;l=1/l,r*=l,a*=l,u*=l;let c=Math.sin(e),s=Math.cos(e),f=1-s;return t[0]=r*r*f+s,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+s,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function w(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=r+r,l=o+o,c=a+a,s=r*i,f=r*l,h=r*c,M=o*l,d=o*c,b=a*c,m=u*i,p=u*l,g=u*c;return t[0]=1-(M+b),t[1]=f+g,t[2]=h-p,t[3]=0,t[4]=f-g,t[5]=1-(s+b),t[6]=d+m,t[7]=0,t[8]=h+p,t[9]=d-m,t[10]=1-(s+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(l*l+c*c+s*s),t}function I(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function C(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3],l=o+o,c=a+a,s=u+u,f=o*l,h=o*c,M=o*s,d=a*c,b=a*s,m=u*s,p=i*l,g=i*c,y=i*s,w=r[0],v=r[1],A=r[2];return t[0]=(1-(d+m))*w,t[1]=(h+y)*w,t[2]=(M-g)*w,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+m))*v,t[6]=(b+p)*v,t[7]=0,t[8]=(M+g)*A,t[9]=(b-p)*A,t[10]=(1-(f+d))*A,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function O(t,e,n,r,o){let a=e[0],u=e[1],i=e[2],l=e[3],c=a+a,s=u+u,f=i+i,h=a*c,M=a*s,d=a*f,b=u*s,m=u*f,p=i*f,g=l*c,y=l*s,w=l*f,v=r[0],A=r[1],S=r[2],I=o[0],C=o[1],O=o[2],U=(1-(b+p))*v,T=(M+w)*v,x=(d-y)*v,E=(M-w)*A,F=(1-(h+p))*A,_=(m+g)*A,P=(d+y)*S,q=(m-g)*S,D=(1-(h+b))*S;return t[0]=U,t[1]=T,t[2]=x,t[3]=0,t[4]=E,t[5]=F,t[6]=_,t[7]=0,t[8]=P,t[9]=q,t[10]=D,t[11]=0,t[12]=n[0]+I-(U*I+E*C+P*O),t[13]=n[1]+C-(T*I+F*C+q*O),t[14]=n[2]+O-(x*I+_*C+D*O),t[15]=1,t}function U(t,e,n,r,o,a,u){let i=1/(n-e),l=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*l,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function T(t,e,n,r){let a=e[0],u=e[1],l=e[2],c=a-n[0],s=u-n[1],f=l-n[2],h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(s)<h&&Math.abs(f)<h)return void i(t);let M=1/Math.sqrt(c*c+s*s+f*f);c*=M,s*=M,f*=M;let d=r[0],b=r[1],m=r[2],p=b*f-m*s,g=m*c-d*f,y=d*s-b*c;M=Math.sqrt(p*p+g*g+y*y),M?(M=1/M,p*=M,g*=M,y*=M):(p=0,g=0,y=0);let w=s*y-f*g,v=f*p-c*y,A=c*g-s*p;M=Math.sqrt(w*w+v*v+A*A),M?(M=1/M,w*=M,v*=M,A*=M):(w=0,v=0,A=0),t[0]=p,t[1]=w,t[2]=c,t[3]=0,t[4]=g,t[5]=v,t[6]=s,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(p*a+g*u+y*l),t[13]=-(w*a+v*u+A*l),t[14]=-(c*a+s*u+f*l),t[15]=1}function x(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function F(t){let e=(0,o.FD)(),n=t[0],r=t[1],a=t[2],u=t[4],i=t[5],l=t[6],c=t[8],s=t[9],f=t[10];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(r*r+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e}function _(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,q=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15];return t[0]=i*(h*p-M*m)-f*(l*p-c*m)+b*(l*M-c*h),t[1]=-(r*(h*p-M*m)-f*(o*p-a*m)+b*(o*M-a*h)),t[2]=r*(l*p-c*m)-i*(o*p-a*m)+b*(o*c-a*l),t[3]=-(r*(l*M-c*h)-i*(o*M-a*h)+f*(o*c-a*l)),t[4]=-(u*(h*p-M*m)-s*(l*p-c*m)+d*(l*M-c*h)),t[5]=n*(h*p-M*m)-s*(o*p-a*m)+d*(o*M-a*h),t[6]=-(n*(l*p-c*m)-u*(o*p-a*m)+d*(o*c-a*l)),t[7]=n*(l*M-c*h)-u*(o*M-a*h)+s*(o*c-a*l),t[8]=u*(f*p-M*b)-s*(i*p-c*b)+d*(i*M-c*f),t[9]=-(n*(f*p-M*b)-s*(r*p-a*b)+d*(r*M-a*f)),t[10]=n*(i*p-c*b)-u*(r*p-a*b)+d*(r*c-a*i),t[11]=-(n*(i*M-c*f)-u*(r*M-a*f)+s*(r*c-a*i)),t[12]=-(u*(f*m-h*b)-s*(i*m-l*b)+d*(i*h-l*f)),t[13]=n*(f*m-h*b)-s*(r*m-o*b)+d*(r*h-o*f),t[14]=-(n*(i*m-l*b)-u*(r*m-o*b)+d*(r*l-o*i)),t[15]=n*(i*h-l*f)-u*(r*h-o*f)+s*(r*l-o*i),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8],s=t[9],f=t[10],h=t[11],M=t[12],d=t[13],b=t[14],m=t[15];return(e*u-n*a)*(f*m-h*b)-(e*i-r*a)*(s*m-h*d)+(e*l-o*a)*(s*b-f*d)+(n*i-r*u)*(c*m-h*M)-(n*l-o*u)*(c*b-f*M)+(r*l-o*i)*(c*d-s*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=t[9],M=t[10],d=t[11],b=t[12],m=t[13],p=t[14],g=t[15],y=e[0],w=e[1],v=e[2],A=e[3],S=e[4],I=e[5],C=e[6],O=e[7],U=e[8],T=e[9],x=e[10],E=e[11],F=e[12],_=e[13],P=e[14],q=e[15],D=(0,o.FD)();return Math.abs(n-y)<=D*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=D*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=D*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=D*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-S)<=D*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-I)<=D*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(s-O)<=D*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(f-U)<=D*Math.max(1,Math.abs(f),Math.abs(U))&&Math.abs(h-T)<=D*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(M-x)<=D*Math.max(1,Math.abs(M),Math.abs(x))&&Math.abs(d-E)<=D*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(b-F)<=D*Math.max(1,Math.abs(b),Math.abs(F))&&Math.abs(m-_)<=D*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-P)<=D*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(g-q)<=D*Math.max(1,Math.abs(g),Math.abs(q))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[1]=s+p,t[2]=h-m,t[3]=0,t[4]=s-p,t[5]=1-c-d,t[6]=M+b,t[7]=0,t[8]=h+m,t[9]=M-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],o=-e[1],a=-e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=r*r+o*o+a*a+u*u;return f>0?(n[0]=2*(i*u+s*r+l*a-c*o)/f,n[1]=2*(l*u+s*o+c*r-i*a)/f,n[2]=2*(c*u+s*a+i*o-l*r)/f):(n[0]=2*(i*u+s*r+l*a-c*o),n[1]=2*(l*u+s*o+c*r-i*a),n[2]=2*(c*u+s*a+i*o-l*r)),w(t,e,n),t},fromRotation:p,fromRotationTranslation:w,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:O,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:U,getRotation:I,getScale:S,getTranslation:A,hasIdentityRotation:_,identity:i,invert:s,invertOrIdentity:c,isOrthoNormal:F,lookAt:T,mul:P,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,a,u){let i=1/(e-n),l=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*l,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){let a,u=1/Math.tan(e/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(u+i),c=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*l*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:b,rotateY:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*r,t[1]=u*o-s*r,t[2]=i*o-f*r,t[3]=l*o-h*r,t[8]=a*r+c*o,t[9]=u*r+s*o,t[10]=i*r+f*o,t[11]=l*r+h*o,t},rotateZ:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*r,t[1]=u*o+s*r,t[2]=i*o+f*r,t[3]=l*o+h*r,t[4]=c*o-a*r,t[5]=s*o-u*r,t[6]=f*o-i*r,t[7]=h*o-l*r,t},scale:M,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:x,targetTo:function(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=r[0],l=r[1],c=r[2],s=o-n[0],f=a-n[1],h=u-n[2],M=s*s+f*f+h*h;M>0&&(M=1/Math.sqrt(M),s*=M,f*=M,h*=M);let d=l*h-c*f,b=c*s-i*h,m=i*f-l*s;return M=d*d+b*b+m*m,M>0&&(M=1/Math.sqrt(M),d*=M,b*=M,m*=M),t[0]=d,t[1]=b,t[2]=m,t[3]=0,t[4]=f*m-h*b,t[5]=h*d-s*m,t[6]=s*b-f*d,t[7]=0,t[8]=s,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>O,DI:()=>A,Io:()=>g,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>b,WQ:()=>l,Z0:()=>U,_S:()=>M,aI:()=>q,ei:()=>T,fw:()=>E,gL:()=>x,hG:()=>y,hZ:()=>i,hs:()=>m,jk:()=>d,lw:()=>s,m3:()=>w,oW:()=>D,t2:()=>P,tn:()=>h,ze:()=>v});var r=n(51850),o=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function b(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],o=e[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function O(t,e,n,r){let o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function U(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function T(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function x(t,e,n){return E(t,e,n[0],n[1],n[2],n[3])}function E(t,e,n,r,o,a){let u=e[0],i=e[1],l=e[2],c=r*l-o*i,s=o*u-n*l,f=n*i-r*u,h=r*f-o*s,M=o*c-n*f,d=n*s-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+s*b+2*M,t[2]=l+f*b+2*d,t}const F=(0,r.vt)(),_=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],c=(0,o.FD)();return Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const k=c,j=s,R=f,z=g,N=y,B=a,L=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,e){S(F,t),S(_,e);let n=I(F,_);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){let u=1-a,i=u*u,l=a*a,c=i*u,s=3*a*i,f=3*l*u,h=l*a;return t[0]=e[0]*c+n[0]*s+r[0]*f+o[0]*h,t[1]=e[1]*c+n[1]*s+r[1]*f+o[1]*h,t[2]=e[2]*c+n[2]*s+r[2]*f+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:C,crossAndNormalize:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=o*l-a*i,s=a*u-r*l,f=r*i-o*u,h=Math.sqrt(c*c+s*s+f*f);return t[0]=c/h,t[1]=s/h,t[2]=f/h,t},direction:D,dist:z,distance:g,div:R,divide:f,dot:I,equals:q,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){let u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,c=u*(a-1),s=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*c+o[0]*s,t[1]=e[1]*i+n[1]*l+r[1]*c+o[1]*s,t[2]=e[2]*i+n[2]*l+r[2]*c+o[2]*s,t},inverse:A,len:B,length:a,lerp:O,max:b,min:d,mul:j,multiply:s,negate:v,normalize:S,random:function(t,e=1){let n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:p,scaleTo:function(t,e){return m(t,t,e/B(t))},set:i,sign:M,sqrDist:N,sqrLen:L,squaredDistance:y,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:k,subtract:c,transformMat3:T,transformMat4:U,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:x,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,B,"jb",0,k,"lo",0,N,"uE",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>y,S8:()=>g,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>S,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>s,m3:()=>p,t2:()=>A});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}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 c(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 s(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 f(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 h(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 M(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 d(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function m(t){let e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function p(t){let e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function g(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n*n+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=n*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function w(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t[3]=i+r*(n[3]-i),t}function v(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*u,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*u,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*u,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*u,t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=e[0],l=e[1],c=e[2],s=e[3],f=(0,r.FD)();return Math.abs(n-i)<=f*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-s)<=f*Math.max(1,Math.abs(u),Math.abs(s))}const I=i,C=l,O=c,U=d,T=b,x=m,E=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,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:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:U,distance:d,div:O,divide:c,dot:y,equals:S,exactEquals:A,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:x,length:m,lerp:w,max:f,min:s,mul:C,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,o,a,u,i,l,c=r.Ov;do{n=2*c()-1,o=2*c()-1,i=n*n+o*o}while(i>=1);do{a=2*c()-1,u=2*c()-1,l=a*a+u*u}while(l>=1);let s=Math.sqrt((1-i)/l);return t[0]=e*n,t[1]=e*o,t[2]=e*a*s,t[3]=e*u*s,t},round:h,scale:M,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:a,sqrDist:T,sqrLen:E,squaredDistance:b,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:i,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=n[3],s=c*r+i*a-l*o,f=c*o+l*r-u*a,h=c*a+u*o-i*r,M=-u*r-i*o-l*a;return t[0]=s*c+M*-u+f*-l-h*-i,t[1]=f*c+M*-i+h*-u-s*-l,t[2]=h*c+M*-l+s*-i-f*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,n){n.d(e,{$8:()=>S,Cc:()=>u,Hx:()=>b,Io:()=>v,KJ:()=>c,OS:()=>O,Sp:()=>h,XM:()=>s,YN:()=>f,ZH:()=>d,b6:()=>A,cU:()=>o,gg:()=>M,hs:()=>i,kU:()=>l,or:()=>C,pF:()=>T,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function a(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e,n){return t+(e-t)*n}function i(t,e,n,r,o){return u(r,o,(t-e)/(n-e))}function l(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function s(t){return Math.acos(a(t,-1,1))}function f(t){return Math.asin(a(t,-1,1))}function h(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function M(t,e,n=1e-6){return!h(t,e,n)&&t>e}function d(t,e,n=1e-6){return!h(t,e,n)&&t<e}function b(t,e,n=1e-6){return h(t,e,n)||t>e}const m=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(t){return m.setFloat64(0,t),m.getBigInt64(0)}const g=1000000n,y=w(1);function w(t){let e=p(t=Math.abs(t)),n=function(t){return m.setBigInt64(0,t),m.getFloat64(0)}(e<=g?g:e-g);return Math.abs(t-n)}function v(t,e,n=y){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&w(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=p(t),o=p(e);return!(r<0!=o<0||(r<o?o-r:r-o)>g)}function A(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),o=Math.abs(t),a=Math.abs(e);if(0===t||0===e||o<1e-12&&a<1e-12){if(r>.01*n)return!1}else if(r/(o+a)>n)return!1;return!0}function S(t){return I(Math.max(-U,Math.min(t,U)))}function I(t){return r[0]=t,r[0]}function C(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(h(e,1)&&h(n,1)&&h(r,1))}function O(t,e){return(t%e+e)%e}const U=I(34028234663852886e22);function T(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,U])},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(37539);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){let l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;let e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}let c=n+3*i;for(let e=n,r=u;e<c;e+=3,r+=3)l(t,e,o,r);return!0}},37539(t,e,n){n.d(e,{pO:()=>m,jd:()=>h,Tp:()=>M,wy:()=>d,w5:()=>f,s7:()=>w});var r=n(34727),o=n(86211),a=n(73941),u=n(79258);Math.PI;const i=u.$O.radius,l=u.$O.eccentricitySquared,c={a1:i*l,a2:i*l*i*l,a3:i*l*l/2,a4:i*l*i*l*2.5,a5:i*l+i*l*l/2,a6:1-l};u.$O.radius,u.$O.flattening,u.Sw.radius,u.Sw.flattening,u.sH.radius,u.sH.flattening,u.sH.radius;var s=n(21325);const f={2:{5:m,7:null,9:null,10:m,1:U,6:null,8:null,0:null,3:w,11:v,2:m,4:q},5:{5:m,7:null,9:null,10:m,1:U,6:null,8:null,0:null,3:w,11:v,2:m,4:q},7:{5:null,7:m,9:null,10:m,1:null,6:O,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:C,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:g,6:null,8:null,0:null,3:m,11:S,2:p,4:y},4:{5:D,7:null,9:null,10:D,1:k,6:null,8:null,0:null,3:j,11:function(t,e,n,r){D(t,e,n,r),v(n,r,n,r)},2:D,4:m},1:{5:F,7:null,9:null,10:F,1:m,6:null,8:null,0:null,3:_,11:function(t,e,n,r){F(t,e,n,r),v(n,r,n,r)},2:F,4:P},6:{5:null,7:E,9:null,10:E,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:U,6:O,8:C,0:null,3:w,11:v,2:m,4:q},11:{5:A,7:null,9:null,10:A,1:function(t,e,n,r){A(t,e,n,r),U(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),w(n,r,n,r)},11:m,2:A,4:function(t,e,n,r){A(t,e,n,r),q(n,r,n,r)}}};function h(t,e){return M(t,e)?.projector}function M(t,e){if(null==t||null==e)return null;if(R.source.spatialReference===t&&R.dest.spatialReference===e)return R;let n=b(t,R.source),r=b(e,R.dest);return 0===n&&0===r?(0,s.aI)(t,e)?R.projector=m:R.projector=null:R.projector=f[n][r],R}function d(t,e){switch(h(t,e)){case m:return"copy3";case U:return"wgs84ToSphericalECEF";case w:return"wgs84ToWebMercator";case v:return"wgs84ToPlateCarree";case q:return"wgs84ToWGS84ECEF";case p:return"webMercatorToWGS84";case g:return"webMercatorToSphericalECEF";case y:return"webMercatorToWGS84ECEF";case S:return"webMercatorToPlateCarree";case D:return"wgs84ECEFToWGS84";case k:return"wgs84ECEFToSphericalECEF";case j:return"wgs84ECEFToWebMercator";case F:return"sphericalECEFToWGS84";case _:return"sphericalECEFToWebMercator";case E:return"sphericalMarsPCPFToMars2000";case x:return"sphericalMoonPCPFToMoon2000";case P:return"sphericalECEFToWGS84ECEF";case O:return"mars2000ToSphericalPCPF";case C:return"moon2000ToSphericalPCPF";default:return null}}function b(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),e.spatialReferenceId=(0,a.jA)(t)?1:(0,s.oT)(t)?2:(0,s.K8)(t)?3:(0,s.r1)(t)?11:t.wkt===a.Ro.wkt?4:4490===t.wkid?5:t.wkt===a.FY.wkt?6:t.wkt===a.LJ.wkt?8:(0,a.q8)(t)?7:(0,a.KQ)(t)?9:0):0}function m(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function p(t,e,n,r){n[r]=N*(t[e]/L),n[r+1]=N*(B-2*Math.atan(Math.exp(-t[e+1]/L))),n[r+2]=t[e+2]??0}function g(t,e,n,r){let o=t[e]/L,a=B-2*Math.atan(Math.exp(-t[e+1]/L)),u=L+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u}function y(t,e,n,r){p(t,e,n,r),q(n,r,n,r)}function w(t,e,n,o){!function(t,e,n,o,a){let u=.4999999*Math.PI,i=(0,r.qE)(z*t[e+1],-u,u),l=Math.sin(i);n[o++]=z*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function v(t,e,n,r){n[r]=t[e]*Y,n[r+1]=t[e+1]*Y,n[r+2]=t[e+2]??0}function A(t,e,n,r){n[r]=t[e]*Z,n[r+1]=t[e+1]*Z,n[r+2]=t[e+2]??0}function S(t,e,n,r){p(t,e,n,r),v(n,r,n,r)}function I(t,e,n,r,o){let a=o+(t[e+2]??0),u=z*t[e],i=z*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function C(t,e,n,r){I(t,e,n,r,u.Sw.radius)}function O(t,e,n,r){I(t,e,n,r,u.sH.radius)}function U(t,e,n,r){I(t,e,n,r,u.$O.radius)}function T(t,e,n,o,a){let u=t[e],i=t[e+1],l=t[e+2]??0,c=Math.sqrt(u*u+i*i+l*l),s=(0,r.YN)(l/(0===c?1:c)),f=Math.atan2(i,u);n[o++]=N*f,n[o++]=N*s,n[o]=c-a}function x(t,e,n,r){T(t,e,n,r,u.Sw.radius)}function E(t,e,n,r){T(t,e,n,r,u.sH.radius)}function F(t,e,n,r){T(t,e,n,r,u.$O.radius)}function _(t,e,n,r){F(t,e,n,r),w(n,r,n,r)}function P(t,e,n,r){F(t,e,n,r),q(n,r,n,r)}function q(t,e,n,r){!function(t,e,n,r,o){let a=z*t[e],u=z*t[e+1],i=t[e+2]??0,l=Math.sin(u),c=Math.cos(u),s=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(s+i)*c*Math.cos(a),n[r++]=(s+i)*c*Math.sin(a),n[r++]=(s*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function D(t,e,n,r){let o,a,i,l,s,f,h,M,d,b,m,p,g,y,w,v,A,S,I,C,O,U=c,T=t[e],x=t[e+1],E=t[e+2]??0;o=Math.abs(E),a=T*T+x*x,i=Math.sqrt(a),l=a+E*E,s=Math.sqrt(l),C=Math.atan2(x,T),f=E*E/l,h=a/l,y=U.a2/s,w=U.a3-U.a4/s,h>.3?(M=o/s*(1+h*(U.a1+y+f*w)/s),I=Math.asin(M),b=M*M,d=Math.sqrt(1-b)):(d=i/s*(1-f*(U.a5-y-h*w)/s),I=Math.acos(d),b=1-d*d,M=Math.sqrt(b)),m=1-u.$O.eccentricitySquared*b,p=u.$O.radius/Math.sqrt(m),g=U.a6*p,y=i-p*d,w=o-g*M,A=d*y+M*w,v=d*w-M*y,S=v/(g/m+A),I+=S,O=A+v*S/2,E<0&&(I=-I),n[r++]=N*C,n[r++]=N*I,n[r]=O}function k(t,e,n,r){D(t,e,n,r),U(n,r,n,r)}function j(t,e,n,r){D(t,e,n,r),w(n,r,n,r)}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},z=(0,r.kU)(1),N=(0,r.KJ)(1),B=.5*Math.PI,L=u.$O.radius,Y=L*Math.PI/180,Z=180/(L*Math.PI)},98764(t,e,n){n.d(e,{lO:()=>s});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),c=new o.A(r.Ro);function s(t){let e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{let e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{let e=t.wkt2??t.wkt;if(e){let t=e.toUpperCase();t===h?n=i:t===M&&(n=l)}}}return f.set(t,n),n}const f=new Map,h=i.wkt.toUpperCase(),M=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,c])},64798(t,e,n){n.r(e),n.d(e,{default:()=>q});var r=n(4576),o=n(34275),a=n(82534),u=n(35522);function i(){return new Float32Array(3)}function l(t){let e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function c(t,e,n){let r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function d(){return c(0,0,1)}const b=s(),m=f(),p=h(),g=M(),y=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:g,UNIT_Z:y,ZEROS:b,clone:l,create:i,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:d,zeros:s},Symbol.toStringTag,{value:"Module"}));var w=n(51850),v=n(16930),A=n(9762),S=n(63531),I=n(69846),C=n(48425),O=n(59418),U=n(37203);function T(t,e,n){return t?.attributeInfo.useElevation?e?function(t,e){let n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:t?.attributeInfo.storageInfo?(0,O.m0)(t.attributeInfo.storageInfo,t.buffer,n,!0):null}function x(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function E(t){let e=0;for(let n of t||[])e|=1<<n;return e}var F=n(57005);class _{transform(t){let e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(let t of e.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){let e=function(t,e){if(null==t.encoding||""===t.encoding){let n=(0,O.wH)(e,t);if(null==n.vertexAttributes.position)return;let r=(0,O.MA)(e,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,l=new Float64Array(3*i);for(let t=0;t<i;t++)l[3*t]=r[3*t]*u[0]+a[0],l[3*t+1]=r[3*t+1]*u[1]+a[1],l[3*t+2]=r[3*t+2]*u[2]+a[2];return l}if("lepcc-xyz"===t.encoding)return(0,U.Me)(e).result}(t.schema,t.geometryBuffer),n=e.length/3,o=null,a=[],s=T(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&s&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:s});let f=T(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&f&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:f});let h=function(t,e,n,r){let{rendererJSON:o,isRGBRenderer:a}=t,u=null,i=null;if(e&&a)u=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){i=C.A.fromJSON(o);let t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){i=I.A.fromJSON(o);let t=i.stops;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){let n=(r-t[e-1].value)/(t[e].value-t[e-1].value);u[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),u[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),u[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){i=S.A.fromJSON(o);let t=i.colorClassBreakInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(n&&i?.colorModulation){let t=i.colorModulation.minValue,e=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){let r=n[a],i=r>=e?1:r<=t?o:o+.7*(r-t)/(e-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,s,f,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){let u=t.filterAttributesData.filter(r.Ru).map(t=>{let r=T(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(t,e,n,r,o){let a=t.length/3,u=function(t){return t.map(t=>{let{filterJSON:e}=t;switch(e.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(e.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:E(e.requiredClearBits),requiredMask:E(e.requiredSetBits)};default:return t}})}(r),i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){let{clearMask:e,filterJSON:n,requiredMask:i,valuesSet:l}=u[t],c=o[t].values[r];switch(n.type){case"pointCloudValueFilter":{let t="exclude"===n.mode;l.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":((c&i)!==i||0!==(c&e))&&(a=!1);break;case"pointCloudReturnFilter":{let t=15&c,e=c>>>4&15,r=e>1,o=1===t,u=t===e,i=!1;for(let t of n.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(n[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],e[3*i]=e[3*r],e[3*i+1]=e[3*r+1],e[3*i+2]=e[3*r+2],i++)}return i}(e,h,o,t.filterInfo,u)}for(let r of t.userAttributesData){let t=T(r,e,n);a.push({attributeInfo:r.attributeInfo,values:t})}3*n<h.length&&(h=h.slice(0,3*n)),function(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}(e,n,t.elevationOffset);let M=function(t,e,n,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,e))throw Error("Can't reproject");let a=l(n.getCenter((0,w.vt)())),s=i(),f=i(),h=c(n.halfSizeX,n.halfSizeY,n.halfSizeZ);n.getQuaternionConjugate(P);let M=new Float32Array(3*e);for(let n=0;n<e;n++){let e=3*n;s[0]=t[e]-a[0],s[1]=t[e+1]-a[1],s[2]=t[e+2]-a[2],(0,u.gL)(f,s,P),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),M[e++]=s[0],M[e++]=s[1],M[e]=s[2]}return n.setHalfSize(h),M}(e,n,F.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:M,rgb:h,attributes:a,pointIdFilterMap:o}}}const P=(0,a.vt)();function q(){return new _}},59418(t,e,n){n.d(e,{qs:()=>m,wH:()=>b,MA:()=>h,E5:()=>M,m0:()=>g});var r=n(49186),o=n(4718),a=n(53966),u=n(34275),i=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,n){let o="",a=0;for(;a<n;){let u=t[e+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let i=(31&u)<<6|63&t[e+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(15&u)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(7&u)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(i>=65536){let t=55296+(i-65536>>10),e=56320+(1023&i);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(i);a+=4}}}return o}function s(t,e){let n={byteOffset:0,byteCount:0,fields:Object.create(null)},r=0;for(let o=0;o<e.length;o++){let a=e[o],u=a.valueType||a.type,i=w[u];n.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){let o,a=[],u=0,i=0;for(;i<t;i+=1){if(o=e[i],o>0){if(a.push(c(n,u,o-1)),0!==n[u+o-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else a.push(null);u+=o}return a}function h(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function M(t,e){if(!t)return null;let n=t[e];return(0,u.IY)(t)?-32768===n?null:n:(0,u._G)(t)?n===u.h2?null:n:n==n?n:null}function d(t,e,n){if(e!==t&&l().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){let n=s(t,e&&e.header),r=n.byteCount,o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,u=null==a.vertexCount?a.count:a.vertexCount;for(let t of e.ordering){if(!e.vertexAttributes[t])continue;let n={...e.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=n,r+=A(n.valueType)*n.valuesPerElement*u}let i=a.faceCount;if(e.faces&&i){o.faces={};for(let t of e.ordering){if(!e.faces[t])continue;let n={...e.faces[t],byteOffset:r,count:i};o.faces[t]=n,r+=A(n.valueType)*n.valuesPerElement*i}}let l=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&l){o.featureAttributes={};for(let t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;let n={...e.featureAttributes[t],byteOffset:r,count:l};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*l}}return d(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}function m(t,e){return t&&t.compressedAttributes&&"draco"===t.compressedAttributes.encoding?function(t){let e={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t)switch(n){case"position":break;case"normal":e.normal=!0;break;case"uv0":e.uv0=!0;break;case"color":e.color=!0;break;case"uv-region":e.uvRegion=!0;break;case"feature-index":e.featureIndex=!0}return e}(t.compressedAttributes.attributes):t?function(t){return{isDraco:!1,isLegacy:!1,color:null!=t.color,normal:null!=t.normal,uv0:null!=t.uv0,uvRegion:null!=t.uvRegion,featureIndex:null!=t.faceRange&&null!=t.featureId}}(t):function(t){let e={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t.ordering)if(t.vertexAttributes[n])switch(n){case"position":break;case"normal":e.normal=!0;break;case"color":e.color=!0;break;case"uv0":e.uv0=!0;break;case"region":e.uvRegion=!0}return t.featureAttributes&&t.featureAttributeOrder&&(e.featureIndex=!0),e}(e)}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(t,e,n,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(e));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");let u=function(t,e,n){let a=null==e.header?{byteOffset:0,byteCount:0,fields:{count:n}}:s(t,e.header),u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)},i=a.byteCount;for(let t=0;t<e.ordering.length;t++){let n=e.ordering[t],l=(0,o.o8)(e[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=i,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let t=A(l.valueType);i+=i%t===0?0:t-i%t,l.byteOffset=i,l.byteCount=t*l.valuesPerElement*l.count}}i+=l.byteCount??0,u.entries[n]=l}return u.byteCount=i-u.byteOffset,u}(e,t,n);d(u.byteOffset+u.byteCount,e.byteLength,"attribute");let c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){let t=u.entries.attributeByteCounts,n=h(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,c);return c.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{let e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return a?h(e,c):function(t,e){let n=h(t,e);if(n.length>=1024)return n;let r=[];return n.forEach((t,e)=>r.push(M(n,e))),r}(e,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function v(t){return y.hasOwnProperty(t)}function A(t){return v(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,e,n){n.d(e,{Ax:()=>c,Me:()=>a,mb:()=>l});var r=n(49186);function o(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,!0),checksum:e.getUint32(n+12,!0)}}function a(t){let e=new DataView(t,0),n=0,{identifier:a,version:i}=o(t,e,n);if(n+=16,"LEPCC "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),minX:c.getFloat64(s+8,!0),minY:c.getFloat64(s+16,!0),minZ:c.getFloat64(s+24,!0),maxX:c.getFloat64(s+32,!0),maxY:c.getFloat64(s+40,!0),maxZ:c.getFloat64(s+48,!0),errorX:c.getFloat64(s+56,!0),errorY:c.getFloat64(s+64,!0),errorZ:c.getFloat64(s+72,!0),count:c.getUint32(s+80,!0),reserved:c.getUint32(s+84,!0)});var c,s;if(n+=88,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Float64Array(3*l.count),h=[],M=[],d=[],b=[];if(n=u(t,n,h),n=u(t,n,M),n=u(t,n,d),n=u(t,n,b),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,p=0;for(let t=0;t<h.length;t++){p+=h[t];let e=0;for(let n=0;n<M[t];n++){e+=d[m];let t=b[m];f[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*e),f[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*p),f[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*t),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:f}}function u(t,e,n){let r=[];e=i(t,e,r);let o=[];for(let a=0;a<r.length;a++){o.length=0,e=i(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[a])}return e}function i(t,e,n){let o=new DataView(t,e),a=o.getUint8(0),u=31&a,i=!!(32&a),l=(192&a)>>6,c=0;if(0===l)c=o.getUint32(1,!0),e+=5;else if(1===l)c=o.getUint16(1,!0),e+=3;else{if(2!==l)throw new r.A("lepcc-decode-error","Bad count type");c=o.getUint8(1),e+=2}if(i)throw new r.A("lepcc-decode-error","LUT not implemented");let s=Math.ceil(c*u/8),f=new Uint8Array(t,e,s),h=0,M=0,d=0,b=-1>>>32-u;for(let t=0;t<c;t++){for(;M<u;)h|=f[d]<<M,M+=8,d+=1;n[t]=h&b,h>>>=u,M-=u,M+u>32&&(h|=f[d-1]>>8-M)}return e+d}function l(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"ClusterRGB"!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let i=(c=n,{sizeLo:(l=e).getUint32(c+0,!0),sizeHi:l.getUint32(c+4,!0),count:l.getUint32(c+8,!0),colorMapCount:l.getUint16(c+12,!0),lookupMethod:l.getUint8(c+14),compressionMethod:l.getUint8(c+15)});var l,c;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+n!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");let e=new Uint8Array(t,n,3*i.colorMapCount),o=new Uint8Array(t,n+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){let n=o[t];a[3*t]=e[3*n],a[3*t+1]=e[3*n+1],a[3*t+2]=e[3*n+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+n!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(n+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");let o=e.getUint8(n),a=e.getUint8(n+1),u=e.getUint8(n+2),l=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)l[3*t]=o,l[3*t+1]=a,l[3*t+2]=u;return l}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function c(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"Intensity "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),count:c.getUint32(s+8,!0),scaleFactor:c.getUint16(s+12,!0),bitsPerPoint:c.getUint8(s+14),reserved:c.getUint8(s+15)});var c,s;if(n+=16,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint8Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint16Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else{let e=[];if(i(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}return f}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3527],{68197(e,t,r){r.d(t,{A:()=>h});var n=r(40876),i=r(4576),a=r(34727),s=r(78888);function o(e){return(0,a.qE)((0,s.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class h{static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){let r=(0,n.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,n.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){let r=(0,n.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),n=u(this),i=u(r);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,i.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,a=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?a.toUpperCase():a}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){let t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>m,Q6:()=>y,TS:()=>a,V6:()=>i,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function a(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){let i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,s=2*r-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),n]}function u(e){let t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length,s=Number("0x"+e.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return a&&(o=s&n,s>>=r,l[3]=i*o/255),o=s&n,s>>=r,l[2]=i*o,o=s&n,s>>=r,l[1]=i*o,o=s&n,s>>=r,l[0]=i*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=i(e)?a(e):null;return t??=c(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=1/2.2;function y(e){return e**2.2}function v(e){return e**b}r.d(t,["iw",0,b])},85334(e,t,r){r.d(t,{$:()=>b,IB:()=>o,Iy:()=>S,KV:()=>R,N2:()=>y,RH:()=>E,ZD:()=>v,sn:()=>M});var n=r(68197),i=r(4576),a=r(4718),s=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],d=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,n,i=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let a=e.length,s=e[0].length,o=0;for(r=0;r<a;r++){for(o=0,n=0;n<s;n++)o+=e[r][n]*t[n];i.push(o)}return i}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(c,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(d,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function b(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,n=e.s/100,i=e.v/100*255,a=i*n,s=a*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:a,g:s,b:0};break;case 1:t={r:s,g:a,b:0};break;case 2:t={r:0,g:a,b:s};break;case 3:t={r:0,g:s,b:a};break;case 4:t={r:s,g:0,b:a};break;case 5:case 6:t={r:a,g:0,b:s};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+i-a),t.g=Math.round(t.g+i-a),t.b=Math.round(t.b+i-a),t}(e):e}function y(e){return l(e)?e:function(e){let{r:t,g:r,b:n}=e,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=i,o=0===a?0:i===t?(r-n)/a%6:i===r?(n-t)/a+2:(t-r)/a+4,l=0===a?0:a/s;return o<0&&(o+=6),o*=60,l*=100,s*=100/255,{h:o,s:l,v:s}}(b(e))}function v(e){return u(e)?e:function(e){return p(g(e))}(b(e))}function E(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n),a=Math.atan2(n,r);return a=a>0?a:a+2*Math.PI,{l:t,c:i,h:a}}(p(g(e)))}(b(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function M(e){return e.length=4,R(e),e[3]??=1,(0,s.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){let r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,a.o8)(e),r.seed)),e.length>=t){let r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){let t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){let n=[],a=e.length-1,s=Math.ceil((t-e.length)/a);e:for(let i=0;i<a;i++){let a=e[i],o=e[i+1];for(let i=1;i<=s;i++){let l=i/(s+1);if(n.push(x(a,o,l,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const T=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function x(e,t,r,a={}){let s=e.r,o=e.g,l=e.b,u=t.r,h=t.g,c=t.b,d=Math.round(s+(u-s)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(c-l)*r);if(!a.offset)return new n.A([d,f,g]);let m=(0,i.Mo)(a.seed);return new n.A([T(d,m),T(f,m),T(g,m)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:n,fromValues:function(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m){return[e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},58083(e,t,r){r.d(t,{$0:()=>_,$h:()=>I,B8:()=>h,C:()=>a,D_:()=>o,N9:()=>y,O7:()=>x,Qw:()=>u,Tl:()=>d,X_:()=>M,e$:()=>g,eL:()=>m,hM:()=>b,hZ:()=>s,hs:()=>f,kN:()=>p,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>T,sC:()=>R,t2:()=>C,t5:()=>A,tZ:()=>O,ut:()=>N});var n=r(51850),i=r(34304);function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function s(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m,p){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=u,e[9]=h,e[10]=c,e[11]=d,e[12]=f,e[13]=g,e[14]=m,e[15]=p,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){let r=t[1],n=t[2],i=t[3],a=t[6],s=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=s,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return h(e,t)||o(e),e}function h(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],_=t[15],b=r*o-n*s,y=r*l-i*s,v=r*u-a*s,E=n*l-i*o,R=n*u-a*o,M=i*u-a*l,S=h*m-c*g,T=h*p-d*g,x=h*_-f*g,I=c*p-d*m,A=c*_-f*m,w=d*_-f*p,C=b*w-y*A+v*I+E*x-R*T+M*S;return C?(C=1/C,e[0]=(o*w-l*A+u*I)*C,e[1]=(i*A-n*w-a*I)*C,e[2]=(m*M-p*R+_*E)*C,e[3]=(d*R-c*M-f*E)*C,e[4]=(l*x-s*w-u*T)*C,e[5]=(r*w-i*x+a*T)*C,e[6]=(p*v-g*M-_*y)*C,e[7]=(h*M-d*v+f*y)*C,e[8]=(s*A-o*x+u*S)*C,e[9]=(n*x-r*A-a*S)*C,e[10]=(g*R-m*v+_*b)*C,e[11]=(c*v-h*R-f*b)*C,e[12]=(o*T-s*I-l*S)*C,e[13]=(r*I-n*T+i*S)*C,e[14]=(m*y-g*E-p*b)*C,e[15]=(h*E-c*y+d*b)*C,e):null}function c(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],f=t[10],g=t[11],m=t[12],p=t[13],_=t[14],b=t[15],y=r[0],v=r[1],E=r[2],R=r[3];return e[0]=y*n+v*o+E*c+R*m,e[1]=y*i+v*l+E*d+R*p,e[2]=y*a+v*u+E*f+R*_,e[3]=y*s+v*h+E*g+R*b,y=r[4],v=r[5],E=r[6],R=r[7],e[4]=y*n+v*o+E*c+R*m,e[5]=y*i+v*l+E*d+R*p,e[6]=y*a+v*u+E*f+R*_,e[7]=y*s+v*h+E*g+R*b,y=r[8],v=r[9],E=r[10],R=r[11],e[8]=y*n+v*o+E*c+R*m,e[9]=y*i+v*l+E*d+R*p,e[10]=y*a+v*u+E*f+R*_,e[11]=y*s+v*h+E*g+R*b,y=r[12],v=r[13],E=r[14],R=r[15],e[12]=y*n+v*o+E*c+R*m,e[13]=y*i+v*l+E*d+R*p,e[14]=y*a+v*u+E*f+R*_,e[15]=y*s+v*h+E*g+R*b,e}function d(e,t,r){let n=r[0],i=r[1],a=r[2];if(t===e)e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15];else{let r=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7],f=t[8],g=t[9],m=t[10],p=t[11];e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=u,e[5]=h,e[6]=c,e[7]=d,e[8]=f,e[9]=g,e[10]=m,e[11]=p,e[12]=r*n+u*i+f*a+t[12],e[13]=s*n+h*i+g*a+t[13],e[14]=o*n+c*i+m*a+t[14],e[15]=l*n+d*i+p*a+t[15]}return e}function f(e,t,r){let n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function g(e,t,r,n){let s=n[0],o=n[1],l=n[2],u=Math.sqrt(s*s+o*o+l*l);if(u<=(0,i.FD)())return void a(e,t);u=1/u,s*=u,o*=u,l*=u;let h=Math.sin(r),c=Math.cos(r),d=1-c,f=t[0],g=t[1],m=t[2],p=t[3],_=t[4],b=t[5],y=t[6],v=t[7],E=t[8],R=t[9],M=t[10],S=t[11],T=s*s*d+c,x=o*s*d+l*h,I=l*s*d-o*h,A=s*o*d-l*h,w=o*o*d+c,C=l*o*d+s*h,N=s*l*d+o*h,O=o*l*d-s*h,L=l*l*d+c;e[0]=f*T+_*x+E*I,e[1]=g*T+b*x+R*I,e[2]=m*T+y*x+M*I,e[3]=p*T+v*x+S*I,e[4]=f*A+_*w+E*C,e[5]=g*A+b*w+R*C,e[6]=m*A+y*w+M*C,e[7]=p*A+v*w+S*C,e[8]=f*N+_*O+E*L,e[9]=g*N+b*O+R*L,e[10]=m*N+y*O+M*L,e[11]=p*N+v*O+S*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function m(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[4],s=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=s*i+h*n,e[6]=o*i+c*n,e[7]=l*i+d*n,e[8]=u*i-a*n,e[9]=h*i-s*n,e[10]=c*i-o*n,e[11]=d*i-l*n,e}function p(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function _(e,t,r){if(0===t)return o(e);let n=r[0],a=r[1],s=r[2],l=Math.sqrt(n*n+a*a+s*s);if(l<=(0,i.FD)())return null;l=1/l,n*=l,a*=l,s*=l;let u=Math.sin(t),h=Math.cos(t),c=1-h;return e[0]=n*n*c+h,e[1]=a*n*c+s*u,e[2]=s*n*c-a*u,e[3]=0,e[4]=n*a*c-s*u,e[5]=a*a*c+h,e[6]=s*a*c+n*u,e[7]=0,e[8]=n*s*c+a*u,e[9]=a*s*c-n*u,e[10]=s*s*c+h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=n+n,l=i+i,u=a+a,h=n*o,c=n*l,d=n*u,f=i*l,g=i*u,m=a*u,p=s*o,_=s*l,b=s*u;return e[0]=1-(f+m),e[1]=c+b,e[2]=d-_,e[3]=0,e[4]=c-b,e[5]=1-(h+m),e[6]=g+p,e[7]=0,e[8]=d+_,e[9]=g-p,e[10]=1-(h+f),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const E=(0,n.vt)();function R(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function M(e,t){let r=t[0],n=t[1],i=t[2],a=t[4],s=t[5],o=t[6],l=t[8],u=t[9],h=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(a*a+s*s+o*o),e[2]=Math.sqrt(l*l+u*u+h*h),e}function S(e,t){let r=t[0]+t[5]+t[10],n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function T(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=t[3],l=i+i,u=a+a,h=s+s,c=i*l,d=i*u,f=i*h,g=a*u,m=a*h,p=s*h,_=o*l,b=o*u,y=o*h,v=n[0],E=n[1],R=n[2];return e[0]=(1-(g+p))*v,e[1]=(d+y)*v,e[2]=(f-b)*v,e[3]=0,e[4]=(d-y)*E,e[5]=(1-(c+p))*E,e[6]=(m+_)*E,e[7]=0,e[8]=(f+b)*R,e[9]=(m-_)*R,e[10]=(1-(c+g))*R,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function x(e,t,r,n,i){let a=t[0],s=t[1],o=t[2],l=t[3],u=a+a,h=s+s,c=o+o,d=a*u,f=a*h,g=a*c,m=s*h,p=s*c,_=o*c,b=l*u,y=l*h,v=l*c,E=n[0],R=n[1],M=n[2],S=i[0],T=i[1],x=i[2],I=(1-(m+_))*E,A=(f+v)*E,w=(g-y)*E,C=(f-v)*R,N=(1-(d+_))*R,O=(p+b)*R,L=(g+y)*M,P=(p-b)*M,D=(1-(d+m))*M;return e[0]=I,e[1]=A,e[2]=w,e[3]=0,e[4]=C,e[5]=N,e[6]=O,e[7]=0,e[8]=L,e[9]=P,e[10]=D,e[11]=0,e[12]=r[0]+S-(I*S+C*T+L*x),e[13]=r[1]+T-(A*S+N*T+P*x),e[14]=r[2]+x-(w*S+O*T+D*x),e[15]=1,e}function I(e,t,r,n,i,a,s){let o=1/(r-t),l=1/(i-n),u=1/(a-s);return e[0]=2*a*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(i+n)*l,e[10]=(s+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*a*2*u,e[15]=0,e}function A(e,t,r,n){let a=t[0],s=t[1],l=t[2],u=a-r[0],h=s-r[1],c=l-r[2],d=(0,i.FD)();if(Math.abs(u)<d&&Math.abs(h)<d&&Math.abs(c)<d)return void o(e);let f=1/Math.sqrt(u*u+h*h+c*c);u*=f,h*=f,c*=f;let g=n[0],m=n[1],p=n[2],_=m*c-p*h,b=p*u-g*c,y=g*h-m*u;f=Math.sqrt(_*_+b*b+y*y),f?(f=1/f,_*=f,b*=f,y*=f):(_=0,b=0,y=0);let v=h*y-c*b,E=c*_-u*y,R=u*b-h*_;f=Math.sqrt(v*v+E*E+R*R),f?(f=1/f,v*=f,E*=f,R*=f):(v=0,E=0,R=0),e[0]=_,e[1]=v,e[2]=u,e[3]=0,e[4]=b,e[5]=E,e[6]=h,e[7]=0,e[8]=y,e[9]=R,e[10]=c,e[11]=0,e[12]=-(_*a+b*s+y*l),e[13]=-(v*a+E*s+R*l),e[14]=-(u*a+h*s+c*l),e[15]=1}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function C(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function N(e){let t=(0,i.FD)(),r=e[0],n=e[1],a=e[2],s=e[4],o=e[5],l=e[6],u=e[8],h=e[9],c=e[10];return Math.abs(1-(r*r+s*s+u*u))<=t&&Math.abs(1-(n*n+o*o+h*h))<=t&&Math.abs(1-(a*a+l*l+c*c))<=t}function O(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const L=c,P=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],_=t[15];return e[0]=o*(d*_-f*p)-c*(l*_-u*p)+m*(l*f-u*d),e[1]=-(n*(d*_-f*p)-c*(i*_-a*p)+m*(i*f-a*d)),e[2]=n*(l*_-u*p)-o*(i*_-a*p)+m*(i*u-a*l),e[3]=-(n*(l*f-u*d)-o*(i*f-a*d)+c*(i*u-a*l)),e[4]=-(s*(d*_-f*p)-h*(l*_-u*p)+g*(l*f-u*d)),e[5]=r*(d*_-f*p)-h*(i*_-a*p)+g*(i*f-a*d),e[6]=-(r*(l*_-u*p)-s*(i*_-a*p)+g*(i*u-a*l)),e[7]=r*(l*f-u*d)-s*(i*f-a*d)+h*(i*u-a*l),e[8]=s*(c*_-f*m)-h*(o*_-u*m)+g*(o*f-u*c),e[9]=-(r*(c*_-f*m)-h*(n*_-a*m)+g*(n*f-a*c)),e[10]=r*(o*_-u*m)-s*(n*_-a*m)+g*(n*u-a*o),e[11]=-(r*(o*f-u*c)-s*(n*f-a*c)+h*(n*u-a*o)),e[12]=-(s*(c*p-d*m)-h*(o*p-l*m)+g*(o*d-l*c)),e[13]=r*(c*p-d*m)-h*(n*p-i*m)+g*(n*d-i*c),e[14]=-(r*(o*p-l*m)-s*(n*p-i*m)+g*(n*l-i*o)),e[15]=r*(o*d-l*c)-s*(n*d-i*c)+h*(n*l-i*o),e},copy:a,determinant:function(e){let t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11],f=e[12],g=e[13],m=e[14],p=e[15];return(t*s-r*a)*(c*p-d*m)-(t*o-n*a)*(h*p-d*g)+(t*l-i*a)*(h*m-c*g)+(r*o-n*s)*(u*p-d*f)-(r*l-i*s)*(u*m-c*f)+(n*l-i*o)*(u*g-h*f)},equals:function(e,t){if(e===t)return!0;let r=e[0],n=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],f=e[10],g=e[11],m=e[12],p=e[13],_=e[14],b=e[15],y=t[0],v=t[1],E=t[2],R=t[3],M=t[4],S=t[5],T=t[6],x=t[7],I=t[8],A=t[9],w=t[10],C=t[11],N=t[12],O=t[13],L=t[14],P=t[15],D=(0,i.FD)();return Math.abs(r-y)<=D*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(n-v)<=D*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-E)<=D*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(s-R)<=D*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(o-M)<=D*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(l-S)<=D*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-T)<=D*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(h-x)<=D*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(c-I)<=D*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(d-A)<=D*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(f-w)<=D*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(g-C)<=D*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(m-N)<=D*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(_-L)<=D*Math.max(1,Math.abs(_),Math.abs(L))&&Math.abs(b-P)<=D*Math.max(1,Math.abs(b),Math.abs(P))},exactEquals:C,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r+r,o=n+n,l=i+i,u=r*s,h=n*s,c=n*o,d=i*s,f=i*o,g=i*l,m=a*s,p=a*o,_=a*l;return e[0]=1-c-g,e[1]=h+_,e[2]=d-p,e[3]=0,e[4]=h-_,e[5]=1-u-g,e[6]=f+m,e[7]=0,e[8]=d+p,e[9]=f-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){let r=E,n=-t[0],i=-t[1],a=-t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=n*n+i*i+a*a+s*s;return c>0?(r[0]=2*(o*s+h*n+l*a-u*i)/c,r[1]=2*(l*s+h*i+u*n-o*a)/c,r[2]=2*(u*s+h*a+o*i-l*n)/c):(r[0]=2*(o*s+h*n+l*a-u*i),r[1]=2*(l*s+h*i+u*n-o*a),r[2]=2*(u*s+h*a+o*i-l*n)),v(e,t,r),e},fromRotation:_,fromRotationTranslation:v,fromRotationTranslationScale:T,fromRotationTranslationScaleOrigin:x,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:p,fromXRotation:b,fromYRotation:function(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:y,frustum:I,getRotation:S,getScale:M,getTranslation:R,hasIdentityRotation:O,identity:o,invert:h,invertOrIdentity:u,isOrthoNormal:N,lookAt:A,mul:L,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,i,a,s){let o=1/(t-r),l=1/(n-i),u=1/(a-s);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(i+n)*l,e[14]=(s+a)*u,e[15]=1,e},perspective:function(e,t,r,n,i){let a,s=1/Math.tan(t/2);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(n-i),e[10]=(i+n)*a,e[14]=2*i*n*a):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){let i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+o),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(s-o)*l*.5,e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:g,rotateX:m,rotateY:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=s*i-h*n,e[2]=o*i-c*n,e[3]=l*i-d*n,e[8]=a*n+u*i,e[9]=s*n+h*i,e[10]=o*n+c*i,e[11]=l*n+d*i,e},rotateZ:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=s*i+h*n,e[2]=o*i+c*n,e[3]=l*i+d*n,e[4]=u*i-a*n,e[5]=h*i-s*n,e[6]=c*i-o*n,e[7]=d*i-l*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:P,subtract:w,targetTo:function(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=n[0],l=n[1],u=n[2],h=i-r[0],c=a-r[1],d=s-r[2],f=h*h+c*c+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,c*=f,d*=f);let g=l*d-u*c,m=u*h-o*d,p=o*c-l*h;return f=g*g+m*m+p*p,f>0&&(f=1/Math.sqrt(f),g*=f,m*=f,p*=f),e[0]=g,e[1]=m,e[2]=p,e[3]=0,e[4]=c*p-d*m,e[5]=d*g-h*p,e[6]=h*m-c*g,e[7]=0,e[8]=h,e[9]=c,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=s,e[15]=1,e},translate:d,transpose:l},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>o,cr:()=>l,gs:()=>h,r_:()=>c,tc:()=>u}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i=o(1),a=s(1);function s(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(n);if(t){let r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),a="px"===n?o(r):r;return i?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,a,"ps",0,i])},4197(e,t,r){r.d(t,{Vj:()=>s,cj:()=>a,jh:()=>i});var n=r(9093);function i(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function a(e){return[...e]}function s(e){let t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>I,C:()=>s,DC:()=>d,Ej:()=>y,Ie:()=>T,Jt:()=>x,Lu:()=>E,Ne:()=>R,RF:()=>c,TF:()=>_,VL:()=>g,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>b,hZ:()=>S,iT:()=>f,is:()=>A,pg:()=>v,uJ:()=>p,vI:()=>M,vY:()=>l,vt:()=>a,w1:()=>h,yr:()=>m}),r(35522);var n=r(5443),i=(r(19419),r(4197));function a(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,n,i,s,o=a()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=s,o}function l(e,t=a()){return function(e,t,r,n=a()){return S(n,C),function(e,t,r=0,n=t.length/3){let i=e[0],a=e[1],s=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),a=Math.min(a,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=a,e[2]=s,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){let[r,n,a,s,o,l]=e;return t[0]=r,t[1]=n,t[2]=a,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=a,t[9]=r,t[10]=o,t[11]=l,t[12]=s,t[13]=n,t[14]=a,t[15]=s,t[16]=n,t[17]=l,t[18]=s,t[19]=o,t[20]=a,t[21]=s,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=g(e),r=p(e),n=m(e);return t*t+r*r+n*n}function b(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function y(e,t=[0,0,0]){return t[0]=g(e),t[1]=m(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function E(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function R(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function M(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function T(e){return e?S(e,C):a(C)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function I(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=i,e[5]=1/0,e}function A(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];a(),r.d(t,["qv",0,C,"v_",0,N])},50498(e,t,r){var n=r(66552),i=r(5443),a=r(91075),s=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,d])},49013(e,t,r){r.r(t),r.d(t,{default:()=>pt});var n=r(32198),i=r(4576),a=r(60999),s=r(69540),o=r(49186),l=r(36563),u=r(44208),h=r(53966),c=r(25728),d=r(17676),f=r(36708),g=r(91429),m=r(87024),p=r(4146),_=r(52136),b=r(18768),y=r(69208),v=r(34287),E=r(8303),R=r(25036),M=r(58947),S=r(10873),T=r(10292),x=r(58083),I=r(9093),A=r(35522),w=r(51850),C=r(34727),N=r(37539),O=r(79258);function L(e,t,r,n){let i=n+t;if(i<n/2||r>i)return Number.MAX_VALUE;let a=Math.abs(D*e)+Math.asin(r/i);return a>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(a)}const P=(0,w.vt)(),D=(0,C.kU)(1);var q=r(27993),U=(r(73941),r(16930)),F=r(98764),k=r(4341),Q=r(19419),G=r(11964),V=r(27921),j=r(71351),W=r(44280),Z=r(32114);const z=()=>h.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function B(e=ce){return{plane:(0,V.vt)(e.plane),origin:(0,w.o8)(e.origin),basis1:(0,w.o8)(e.basis1),basis2:(0,w.o8)(e.basis2)}}function $(e,t=B()){return H(e.origin,e.basis1,e.basis2,t)}function H(e,t,r,n=B()){return(0,A.C)(n.origin,e),(0,A.C)(n.basis1,t),(0,A.C)(n.basis2,r),Y(n),function(e,t){Math.abs((0,A.Om)(e.basis1,e.basis2)/((0,A.Bw)(e.basis1)*(0,A.Bw)(e.basis2)))>1e-6&&z().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,A.Om)(e.basis1,se(e)))>1e-6&&z().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,A.Om)(se(e),e.origin)-e.plane[3])>1e-6&&z().warn(t,"Plane offset is not consistent with plane origin")}(n,"fromValues()"),n}function Y(e){(0,V.mR)(e.basis2,e.basis1,e.origin,e.plane)}function K(e,t,r){e!==r&&$(e,r);let n=(0,A.hs)(Z.rq.get(),se(e),t);return(0,A.WQ)(r.origin,r.origin,n),r.plane[3]-=t,r}function X(e,t=B()){let r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return(0,A.hZ)(t.origin,e[0]+r,e[1]+n,0),(0,A.hZ)(t.basis1,r,0,0),(0,A.hZ)(t.basis2,0,n,0),(0,V.fA)(0,0,1,0,t.plane),t}function J(e,t,r){return!!(0,V.Ui)(e.plane,t,r)&&oe(e,r)}function ee(e,t,r){let n=de.get();he(e,t,n,de.get());let i=1/0;for(let a of pe){let s=ue(e,a,fe.get()),o=Z.rq.get();if((0,V.T7)(n,s,o)){let e=(0,A.oW)(Z.rq.get(),t.origin,o),n=Math.abs((0,C.XM)((0,A.Om)(t.direction,e)));n<i&&(i=n,(0,A.C)(r,o))}}return i===1/0?te(e,t,r):r}function te(e,t,r){if(J(e,t,r))return r;let n=de.get(),i=de.get();he(e,t,n,i);let a=1/0;for(let s of pe){let o=ue(e,s,fe.get()),l=Z.rq.get();if((0,V.gv)(n,o,l)){let e=(0,j.kb)(t,l);if(!(0,V.BX)(i,l))continue;e<a&&(a=e,(0,A.C)(r,l))}}return ie(e,t.origin)<a&&re(e,t.origin,r),r}function re(e,t,r){let n=(0,V._I)(e.plane,t,Z.rq.get()),i=(0,G.H6)(le(e,e.basis1),n,-1,1,Z.rq.get()),a=(0,G.H6)(le(e,e.basis2),n,-1,1,Z.rq.get());return(0,A.Re)(r,(0,A.WQ)(Z.rq.get(),i,a),e.origin),r}function ne(e,t,r){let{origin:n,basis1:i,basis2:a}=e,s=(0,A.Re)(Z.rq.get(),t,n),o=(0,W.gr)(i,s),l=(0,W.gr)(a,s),u=(0,W.gr)(se(e),s);return(0,A.hZ)(r,o,l,u)}function ie(e,t){let r=ne(e,t,Z.rq.get()),{basis1:n,basis2:i}=e,a=(0,A.Bw)(n),s=(0,A.Bw)(i),o=Math.max(Math.abs(r[0])-a,0),l=Math.max(Math.abs(r[1])-s,0),u=r[2];return o*o+l*l+u*u}function ae(e,t){let r=-e.plane[3];return(0,W.gr)(se(e),t)-r}function se(e){return(0,V.Qj)(e.plane)}function oe(e,t){let r=(0,A.Re)(Z.rq.get(),t,e.origin),n=(0,A.m3)(e.basis1),i=(0,A.m3)(e.basis2),a=(0,A.Om)(e.basis1,r),s=(0,A.Om)(e.basis2,r);return-a-n<0&&a-n<0&&-s-i<0&&s-i<0}function le(e,t){let r=fe.get();return(0,A.C)(r.origin,e.origin),(0,A.C)(r.vector,t),r}function ue(e,t,r){let{basis1:n,basis2:i,origin:a}=e,s=(0,A.hs)(Z.rq.get(),n,t.origin[0]),o=(0,A.hs)(Z.rq.get(),i,t.origin[1]);(0,A.WQ)(r.origin,s,o),(0,A.WQ)(r.origin,r.origin,a);let l=(0,A.hs)(Z.rq.get(),n,t.direction[0]),u=(0,A.hs)(Z.rq.get(),i,t.direction[1]);return(0,A.hs)(r.vector,(0,A.WQ)(l,l,u),2),r}function he(e,t,r,n){let i=se(e);(0,V.mR)(i,t.direction,t.origin,r),(0,V.mR)((0,V.Qj)(r),i,t.origin,n)}const ce={plane:(0,V.vt)(),origin:(0,w.fA)(0,0,0),basis1:(0,w.fA)(1,0,0),basis2:(0,w.fA)(0,1,0)},de=new k.I(V.vt),fe=new k.I(G.vt),ge=(0,w.vt)(),me=new k.I(()=>B()),pe=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],_e=(0,I.vt)(),be=(0,I.vt)();Object.freeze(Object.defineProperty({__proto__:null,altitudeAt:ae,axisAt:function(e,t,r,n){return function(e,t,r){switch(t){case 0:(0,A.C)(r,e.basis1),(0,A.S8)(r,r);break;case 1:(0,A.C)(r,e.basis2),(0,A.S8)(r,r);break;case 2:(0,A.C)(r,se(e))}return r}(e,r,n)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:te,closestPointOnSilhouette:ee,copy:$,copyWithoutVerify:function(e,t){(0,A.C)(t.origin,e.origin),(0,A.C)(t.basis1,e.basis1),(0,A.C)(t.basis2,e.basis2),(0,V.C)(t.plane,e.plane)},create:B,distance:function(e,t){return Math.sqrt(ie(e,t))},distance2:ie,distanceToSilhouette:function(e,t){let r=-1/0;for(let n of pe){let i=ue(e,n,fe.get()),a=(0,G.kb)(i,t);a>r&&(r=a)}return Math.sqrt(r)},elevate:K,equals:function(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&(0,A.t2)(e.basis1,t.basis1)&&(0,A.t2)(e.basis2,t.basis2)&&(0,A.t2)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,V.mN)(e.plane,t)>0&&oe(e,t)},fromAABoundingRect:X,fromValues:H,getExtent:function(e,t){let r=e.basis1[0],n=e.basis2[1],[i,a]=e.origin;return(0,Q.fA)(i-r,a-n,i+r,a+n,t)},intersectRay:J,intersectRayClosestSilhouette:function(e,t,r){if(J(e,t,r))return r;let n=ee(e,t,Z.rq.get());return(0,A.WQ)(r,t.origin,(0,A.hs)(Z.rq.get(),t.direction,(0,A.Io)(t.origin,n)/(0,A.Bw)(t.direction))),r},normal:se,projectPoint:re,projectPointLocal:ne,rotate:function(e,t,r,n){return e!==n&&$(e,n),(0,x.$0)(be,t,r),(0,A.Z0)(n.basis1,e.basis1,be),(0,A.Z0)(n.basis2,e.basis2,be),Y(n),n},setAltitudeAt:function(e,t,r,n){let i=ae(e,t),a=(0,A.hs)(ge,se(e),r-i);return(0,A.WQ)(n,t,a),n},setExtent:function(e,t,r){return X(t,r),K(r,ae(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&$(e,r),(0,x.B8)(_e,t),(0,x.mg)(_e,_e),(0,A.Z0)(r.basis1,e.basis1,_e),(0,A.Z0)(r.basis2,e.basis2,_e),(0,A.Z0)((0,V.Qj)(r.plane),(0,V.Qj)(e.plane),_e),(0,A.Z0)(r.origin,e.origin,t),(0,V.mP)(r.plane,r.plane,r.origin),r},up:ce,updateUnboundedPlane:Y,wrap:function(e,t,r){let n=me.get();return n.origin=e,n.basis1=t,n.basis2=r,n.plane=(0,V.LV)(0,0,0,0),Y(n),n}},Symbol.toStringTag,{value:"Module"}));var ye=r(94008);(0,w.vt)(),(0,w.vt)();var ve=r(89707);class Ee extends ve.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new ye.iy(0,0,0,-1),this._serviceMbsInRenderSR=new ye.iy(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,Q.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,Q.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,Q.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,Q.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class Re extends Ee{constructor(e,t,r,n,i,a,s,o,l,u,h){super(e,r),this.index=t,this.childCount=n,this.level=i,this.resources=a,this.version=s,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new Me,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class Me{constructor(){this._data=[0,0,0,Me.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=Me.invalidRadius}get valid(){return this._data[3]!==Me.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let n=this.getAxis(Se),{center:i,radius:a}=e.boundingSphere,s=a+r;return 1===t?this.radius>Te||function(e,t,r,n){let i=(0,A.Bw)(r);if(i<=n)return!0;let a=(0,A.Om)(e,r);if(a<=0)return-a<=n;let s=(0,C.qE)(a/i,-1,1),o=Math.sqrt(1-s*s),l=(0,C.qE)(n/i,0,1);return o*Math.sqrt(1-l*l)-l*s<=t}(n,this.radius,i,s):function(e,t,r,n){let i=r[0]-e[0],a=r[1]-e[1],s=t+n;return i*i+a*a<=s*s}(n,this.radius,i,s)&&function(e,t,r,n,i){for(let a of i){let i=a[0],s=a[1],o=a[2],l=o>0?r:n;if(i*e[0]+s*e[1]+o*l+a[3]-Math.hypot(i,s)*t>0)return!1}return!0}(n,this.radius,i[2]-s,i[2]+s,e.planes)}}const Se=(0,w.vt)(),Te=.9;var xe=r(25992),Ie=r(66480),Ae=r(57005),we=r(4431),Ce=r(62747),Ne=r(58682),Oe=r(92359);class Le{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Ie.Rm)(e),this._vertexSpatialReference=(0,Ie.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,F.lO)(t):t.isGeographic?U.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,N.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,N.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(Oe.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,d.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],n=function(e,t,r,n,i){let a=(0,w.fA)(e,t,r),s=(0,w.fA)(e,t,r-1e3),o=(0,w.vt)(),l=(0,w.vt)();return(0,q.F)(a,n,o,i)&&(0,q.F)(s,n,l,i)?(0,j.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return n??this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,d.Te)(this._signal),r.z=this._highest===-1/0?qe:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Ae.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Ae.ab.fromJSON(e.obb));let r=new ye.iy;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;let i=(0,N.Tp)(t,n);if(null==i?.projector)return!1;if(i.projector===N.pO)return r.copyFrom(e),!0;let{source:a,dest:s,projector:o}=i;if(3===s.spatialReferenceId){let t=N.w5[a.spatialReferenceId][2];return null!=t&&(t(e.center,0,P,0),(0,N.s7)(P,0,r.center,0),r.radius=L(P[1],e.center[2],e.radius,O.$O.radius),!0)}if(2!==a.spatialReferenceId&&5!==a.spatialReferenceId||11!==s.spatialReferenceId){o(e.center,0,r.center,0);let t=a.metersPerUnit??1,n=s.metersPerUnit??1;r.radius=e.radius*t/n}else{let t=N.w5[a.spatialReferenceId][1],n=N.w5[1][11],i=e.radius;null!=t&&null!=n&&(i=L(e.center[1],e.center[2],e.radius,O.$O.radius)),o(e.center,0,r.center,0),r.radius=i}return!0}(new ye.iy(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,d.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,d.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let n=(0,xe.C)(r,0,Ue,this._indexSpatialReference,this._intersectionSpaceSpatialReference),i={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[Fe],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:Ue,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},a=await this._layer.processElevationQueryGeometry(i,this._signal);return(0,d.Te)(this._signal),a}intersectTransformedGeometry(e,t,r){let n=e.globalTrafo;if(null==(0,x.B8)(ke,n))return t;let i=this._queryRay,a=(0,A.Z0)(Qe,i.origin,ke),s=(0,A.WQ)(Ge,i.origin,i.direction),o=(0,A.Z0)(Ve,s,ke),l=(0,A.jb)(je,o,a),{data:u,indices:h}=e.transformedGeometry.positionData,c=h.length/3,d=t;return(0,Ne.h7)(a,l,0,c,h,u,3,!1,e=>{let t=(0,A.hs)(We,l,e);(0,A.WQ)(t,t,a);let i=(0,A.Z0)(Ze,t,n),s=ze;if((0,q.F)(i,this._intersectionSpaceSpatialReference,s,this._layer.spatialReference)){let e=s[2]+r;d=Math.max(d,e)}}),d}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,d.Te)(this._signal),t}}class Pe extends Le{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;let i=this._pageId(this._rootIndex),a=this._rootIndex-i*this._pageSize,s=Ae.ab.fromJSON(n.rootPage.nodes[a].obb);this._rootRayOriginZ=s.centerZ+s.radius+1,this._loadedPages.set(i,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,d.Te)(this._signal);let n=r.nodes[e-t*this._pageSize],i=Ae.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(i))return;let{children:a}=n;if(null!=a&&a.length>0)return await Promise.all(a.map(e=>this._visitNode(e))),void(0,d.Te)(this._signal);let s=this._createNode(e,n,i);null!=s&&(await this._processLeafNode(s),(0,d.Te)(this._signal))}_createNode(e,t,r){let{mesh:n}=t;if(null==n?.geometry)return null;let i=new ye.iy(r.getCenter((0,w.vt)()),r.radius),{geometry:a,material:s}=n;return new Re(`${e}`,e,i,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${a.resource}`,geometryDefinition:a.definition,materialDefinition:s?.definition??-1},"",0,0,a.featureCount??null,r)}}class De extends Le{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,d.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,d.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Ae.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,d.Te)(this._signal);let n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,d.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let n=null==e.obb?null:Ae.ab.fromJSON(e.obb),i=new ye.iy(e.mbs);return new Re(r,0,i,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const qe=Number.MAX_VALUE,Ue="none",Fe=(0,we.U)((0,Ce.hH)(new Ce.W7(!1,!1,0))),ke=(0,I.vt)(),Qe=(0,w.vt)(),Ge=(0,w.vt)(),Ve=(0,w.vt)(),je=(0,w.vt)(),We=(0,w.vt)(),Ze=(0,w.vt)(),ze=(0,w.vt)();var Be=r(50805),$e=r(58325),He=r(24212),Ye=r(80215),Ke=r(97159),Xe=r(16215),Je=r(98697),et=r(56507),tt=r(97768),rt=r(50075);class nt{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,rt._i)(e)}request(e,t,r){let n=new AbortController,i=(0,d.NY)(r,()=>n.abort()),a={...rt.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},s=(0,et.A)(e,a),o={abortController:n,abortHandle:i};return this._activeRequests.add(o),s.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,tt.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,tt.DC)(e.abortController),e.abortHandle=(0,tt.xt)(e.abortHandle)}),this._activeRequests.clear()}}var it=r(4718),at=r(84952),st=r(59418),ot=r(85334);r(91829),r(76200);var lt=r(74810),ut=r(49788);function ht(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ct={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},dt={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};class ft{constructor(e,t,r,n,i,a){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=i,this._options=a,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let n=new Map,i=(e,t)=>{if(null==e)return-1;let r=n.get(e.id);if(r)return r.usage|=t,r.id;let i=n.size;return n.set(e.id,{id:i,usage:t}),i},a=t.pbrMetallicRoughness,s=a?.baseColorFactor?(0,ot.sn)(a.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===a?.metallicFactor||(0,lt.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:a?.metallicRoughnessTexture,metallicFactor:a?.metallicFactor,roughnessFactor:a?.roughnessFactor}),u=l?lt.Bt[0]:a?.metallicFactor??lt.mb[0],h=l?lt.Bt[1]:a?.roughnessFactor??lt.mb[1],c="mask"===t.alphaMode?33:1,d={baseColorFactor:s?[s[0],s[1],s[2],s[3]]:[1,1,1,1],baseColorTextureId:i(a?.baseColorTexture,c),metallicRoughnessTextureId:i(a?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:i(t.normalTexture,4),emissiveTextureId:i(t.emissiveTexture,16),occlusionTextureId:i(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:d,wrapTextures:!1,hasParametersFromSource:l},g=[];return n.forEach(({usage:t},r)=>{let n=null!=e&&e[r]&&e[r].formats,i=n?ht(n.map(({name:e,format:t})=>({name:e,encoding:ct[t]}))):[];g.push({id:r,usage:t,encodings:i})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,st.m0)(t,e))}async loadAttributes(e,t,r){let n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),i={};for(let r=0;r<t.length;++r){let a=n[r],s=t[r];if("fulfilled"===a.status){let e=a.value;i[s.name]=e}else{let t=a.reason;(0,d.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${s.name}' on node '${e.id}'`,t)}}return i}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,a.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:i}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;let i=n>=0?e[n].geometryBuffers:null;if(null==i)return r;for(let e=0;e<i.length;e++){let t=i[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=i[e]}return r}(this._geometryDefinitions,e),s=!!e.resources.geometry,o=s?(0,a.Ke)(this._loadGeometry(e.resources.geometry,i,t)):null,l=e.resources.hasSharedResource?await this._loadShared(e,t):null,h=e.resources.materialDefinition,c=this._materialAndTextures&&null!=h&&h>=0?this._materialAndTextures[h]:null==l?null:function(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,i=r?e.textureDefinitions?.[r]:null,a={alphaMode:"opaque",alphaCutoff:ut.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0};if(null!=n){let e=n.params;e.diffuse&&((0,ot.KV)(e.diffuse),a.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(a.doubleSided=e.doubleSided,a.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(a.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(a.metallicRoughness.baseColorFactor[3]=(0,C.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||a.metallicRoughness.baseColorFactor[3]<1)&&(a.alphaMode="blend")}let s=[];if(null!=i){i.wrap&&("repeat"===i.wrap[0]||"repeat"===i.wrap[1])&&(a.wrapTextures=!0);let e=1;"rgba"===i.channels&&(a.alphaMode="blend",e|=32);let t=i.images.length-1,r=i.images[t],n=e=>e?.split("/").pop(),o=Array.isArray(i.encoding)?ht(i.encoding.map((e,t)=>({name:n(r.href[t]),encoding:dt[e]||0}))):[{name:n(r.href),encoding:dt[i.encoding]||0}];s.push({id:0,usage:e,encodings:o}),a.metallicRoughness.baseColorTextureId=0}return{material:a,textures:s}}(l),d=c?.material,f=c?.textures??[],g=`${e.id}`,m=!s&&this._options.loadFeatureData,p=m?await this._loadFeatureData(g,t):null,_=m?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(p):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:d}}],featureDataPosition:[0,0,0]},b=null==_?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(p):null,y=f.length>0?(0,a.Ke)(this.loadTextures(e,f,t)):null,v=null,E=null;if(o){v=(0,a.QA)(await o);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,it.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,l);E=(0,st.qs)(n,e)}let R=y?(0,a.QA)(await y):null,M=r?(0,a.QA)(await r):{},S=M?{attributeData:M,loadedAttributes:this._requiredAttributes}:null;if(null!=_)return{geometryData:_,attributeDataInfo:S,geometryBuffer:v,geometryDescriptor:E,requiredTextures:f,textureData:R};if(null!=b)return{pointData:b,attributeDataInfo:S,geometryBuffer:v,geometryDescriptor:E,requiredTextures:f,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let n of r[e].images)n.hrefConcat=Array.isArray(n.href)?n.href.map(e=>(0,at.s2)(e,t)):(0,at.s2)(n.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return ft._fixTextureEncodings(n),ft._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,i){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",i).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",i).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){let n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;let i=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==i)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let a=e.resources.texture||e.id,s=`${this._layerUrl}/nodes/${a}/textures/${i.name}`;return this._loadTexture(s,t.id,t.usage,i.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var gt=r(36005);let mt=class extends((0,M.w6)((0,b.b)((0,v.q)((0,E.A)((0,R.j)((0,c.M)((0,y.d)((0,_.p)((0,s.OU)(p.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,Ke.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Je.Cm((e,t)=>Oe.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let s={stack:[],error:void 0,hasError:!1};try{let u=r?.noDataValue??Number.MAX_VALUE,h=this._elevationQueryWorker,c=new AbortController;e.addHandles((0,l.rE)(c),c),(0,n.mS)(s,(0,l.Bf)((0,l.hA)(()=>e.removeHandles(c))),!1);let f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,c.signal].filter(i.Ru));await this.load({signal:f}),(0,d.Te)(f);let g=T.q.fromGeometry(t),m={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=(0,a.Ke)(h.setLegacySchema(this._elevationQueryWorkerContext,e)))}let p=await async function(e,t,r){let n=await e.indexInfo;if((0,d.Te)(r.signal),null==n)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new Pe(e,t,r,n).promise:new De(e,t,r,n).promise}(this,g,m);(0,d.Te)(f);let _=p.coordinates[0].z===qe;_&&(p.coordinates[0].z=u);let b=await p.project(t.spatialReference,f);(0,d.Te)(f);let y=b??g.clone(),v={geometry:y.export(),noDataValue:u};return r?.returnSampleInfo&&(v.sampleInfo=y.coordinates.map(()=>({demResolution:_?-1:1}))),v}catch(e){s.error=e,s.hasError=!0}finally{(0,n.hk)(s)}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){let r=await this._elevationQueryWorkerSetup;return null!=r&&(0,a.QA)(r),(0,d.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,d.QP)(e)}if((0,d.Te)(t),await this._fetchService(t),(0,d.Te)(t),null!=this._modificationsSource){let r=await $e.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,d.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,d.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,Xe.S)(this.parent)||(0,Ye.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new nt(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new ft(this,this.elevationQueryDataRequester,h.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,He.XF)(h.A.getLogger(this),(0,He.B)(t,"absolute-height",e)),(0,He.XF)(h.A.getLogger(this),(0,He.tW)(t,e))}};(0,n.Cg)([(0,g.MZ)({type:String,readOnly:!0})],mt.prototype,"geometryType",void 0),(0,n.Cg)([(0,g.MZ)({type:["show","hide"]})],mt.prototype,"listMode",void 0),(0,n.Cg)([(0,g.MZ)({type:["IntegratedMeshLayer"]})],mt.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],mt.prototype,"type",void 0),(0,n.Cg)([(0,g.MZ)({type:Be.W4,readOnly:!0,clonable:!1})],mt.prototype,"nodePages",void 0),(0,n.Cg)([(0,g.MZ)({type:[Be.uV],readOnly:!0,clonable:!1})],mt.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,g.MZ)({type:[Be.Ot],readOnly:!0,clonable:!1})],mt.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,g.MZ)({type:[Be.L0],readOnly:!0,clonable:!1})],mt.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,g.MZ)({readOnly:!0})],mt.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,g.MZ)({type:$e.A,clonable:e=>e?.clone()??e}),(0,m.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],mt.prototype,"modifications",void 0),(0,n.Cg)([(0,g.MZ)({clonable:e=>e?{...e}:null})],mt.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,gt.w)(["web-scene","portal-item"],"modifications")],mt.prototype,"readModifications",null),(0,n.Cg)([(0,g.MZ)(S.Yj)],mt.prototype,"elevationInfo",null),(0,n.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],mt.prototype,"path",void 0),(0,n.Cg)([(0,g.MZ)({clonable:!1})],mt.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,g.MZ)()],mt.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,g.MZ)()],mt.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,g.MZ)()],mt.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,g.MZ)()],mt.prototype,"replacesTerrain",null),(0,n.Cg)([(0,g.MZ)({clonable:!1})],mt.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,g.MZ)({clonable:!1})],mt.prototype,"elevationQueryNodeLoader",null),mt=(0,n.Cg)([(0,g.$K)("esri.layers.IntegratedMeshLayer")],mt);const pt=mt},85707(e,t,r){var n=r(32198),i=r(91429),a=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,n.Cg)([(0,i.MZ)({readOnly:!0,type:a.A})],r.prototype,"heightModelInfo",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},10292(e,t,r){r.d(t,{q:()=>o});var n=r(48526),i=r(86738),a=r(82799),s=r(99917);class o{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new o(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,s.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,s.project)(r,e);if(!i)return null;let a=this.coordinates.map((e,t)=>{let r=e.clone(),n=i.points[t];return r.x=n[0],r.y=n[1],r}),o=this.clone(a);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,s.project)(t,e);if(!r)return null;let i=this.coordinates.map((e,t)=>{let n=e.clone(),i=r.points[t];return n.x=i[0],n.y=i[1],n}),a=this.clone(i);return a.spatialReference=e,a}static fromGeometry(e){let t=new o(e);if(e instanceof o)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{let r=e,{hasZ:n,hasM:a}=r;return t.coordinates=n&&a?[new l(r.x,r.y,r.z,r.m)]:n?[new l(r.x,r.y,r.z)]:a?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new i.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new i.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:i,hasM:a}=r;return t.coordinates=i&&a?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):i?r.points.map(e=>new l(e[0],e[1],e[2])):a?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,n=[],i=[],{hasZ:s,hasM:o}=e,u=0;for(let e of r.paths)if(i.push([u,u+e.length]),u+=e.length,s&&o)for(let t of e)n.push(new l(t[0],t[1],t[2],t[3]));else if(s)for(let t of e)n.push(new l(t[0],t[1],t[2]));else if(o)for(let t of e)n.push(new l(t[0],t[1],null,t[2]));else for(let t of e)n.push(new l(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{let n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=i.map(e=>n.slice(e[0],e[1]));return new a.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,n=null,i=null,a=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=i,this.elevationTile=a}clone(){return new l(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),a=r(84952),s=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},a=(0,n.o8)(o.OZ),l=a.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,s.LS)(this,e,r,t,i)}),{...a,set:function(e){if(null==e)return void this._set("url",e);let r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},n=(0,a.An)(e.url);return null!=n&&(null==e.dynamicDataSource?null!=e.layerId&&(n.path=(0,a.fj)(n.path,r??"",e.layerId.toString())):n.path=(0,a.fj)(n.path,"dynamicLayer")),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),i=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,i}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>a,hH:()=>s});var n=r(1843),i=r(65786);i.Y;class a extends i.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function s(e){let t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>d,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),i=(r(36708),r(44794),r(78659)),a=r(32198),s=r(69622),o=r(91429);let l=class extends s.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,a.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,a.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,a.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,i.l5)(6.5),(0,i.l5)(1),(0,i.l5)(30),(0,i.l5)(1e3/30),(0,i.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){let e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){let e=(0,n.NK)();if(r)return r(e);throw e}let i=e(h);for(;;){let e=i.next(h),a=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){let e=(0,n.NK)();if(r){let t=r(e),a=i.return(null);return(0,n.$X)(a)&&await(0,n.QZ)(a),t}let t=i.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(a.done)return a.value}}}const d=new c}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5902],{95902(e,t,n){n.r(t),n.d(t,{TextureCompressionWorkerOutput:()=>T,compress:()=>S,compressRGBADataToKTX2:()=>I,createTextureDataKTX2:()=>N,destroy:()=>u,initializeBasisEncoder:()=>G,initializeDXTEncoder:()=>C});var r=n(2741);let l,a;var _=n(63907);let i,R,E=null,s=null;class T{constructor(e,t){this.internalFormat=e,this.compressedTexture=t}}function u(){E=null,i=null,s=null,R=null,l=null,a=null}async function S(e){let t,n=e.data instanceof ImageBitmap?e.data:null;t=e.data instanceof ImageBitmap?function(e){let t=new OffscreenCanvas(e.width,e.height),n=t.getContext("2d",{willReadFrequently:!0});return n.drawImage(e,0,0),n.getImageData(0,0,t.width,t.height).data}(e.data):function(e,t,n,r,l){let a=new Uint8ClampedArray(e).subarray(0,t*n*r);if(!l)return a;let _=new Uint8ClampedArray(a.length),i=t*r;for(let e=0;e<n;e++){let t=e*i,r=(n-e-1)*i;_.set(a.subarray(t,t+i),r)}return _}(e.data,e.width,e.height,e.components,e.needsFlip);try{let n=e.preMultiplyAlpha&&!e.isOpaque;if(e.hasS3TC){s||await C();let r=s?.encode(t,e.width,e.height,n);if(r){let e=function(e){let t,n,r=new Int32Array(e.buffer,e.byteOffset,31);switch(r[21]){case A:t=8,n=_.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case c:t=16,n=_.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case f:t=16,n=_.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let l=1,a=r[4],i=r[3];(3&a||3&i)&&(a=a+3&-4,i=i+3&-4);let R=a,E=i;131072&r[2]&&(l=Math.max(1,r[7]));let s,T,u=e.byteOffset+r[1]+4,S=[];for(let n=0;n<l;++n)T=(a+3>>2)*(i+3>>2)*t,s=new Uint8Array(e.buffer,u,T),S.push(s),u+=T,a=Math.max(1,a>>1),i=Math.max(1,i>>1);return{textureData:{type:"compressed",levels:S},internalFormat:n,width:R,height:E}}(r),t=[r.buffer];return{result:new T(e?.internalFormat??null,e?.textureData??null),transferList:t}}return{result:new T(null,null)}}if(e.hasETC){if(E||await G(),n&&!s&&await C(),n){let n=new Uint8ClampedArray(t.length);s?.premultiply(new Uint8Array(t),e.width,e.height,n),t=n}let r=I(t,e.width,e.height,e.hasMipmap,void 0,void 0,!1,!1,e.isOpaque),l=r?N(r):null,a=l?.compressedTexture?.levels.map(e=>e.buffer)||[];return{result:new T(l?.internalFormat??null,l?.compressedTexture??null),transferList:a}}return{result:new T(null,null)}}finally{n?.close()}}async function G(){E||(E=await(i??=(l??=(async()=>{let e=await(await n.e(2372).then(()=>n(62372))).default({locateFile:e=>(0,r.s)(`esri/libs/basisu/${e}`)});return e.initializeBasis(),e})(),l)),i=null)}async function C(){s||(s=await(R??=(a??=(async()=>await(await n.e(8714).then(()=>n(98714))).default({locateFile:e=>(0,r.s)(`esri/libs/dxtEncoder/${e}`)}))(),a)),R=null)}function I(e,t,n,r,l=255,a=0,_=!1,i=!1,R=!1){if(!E)return null;let s=new E.BasisEncoder;s.setPerceptual(!i),s.setCheckForAlpha(!R),s.setForceAlpha(!1),s.setRenormalize(i),s.setMipGen(r),s.setMipSRGB(!i),s.setCreateKTX2File(!0),s.setKTX2AndBasisSRGBTransferFunc(!i),s.setQualityLevel(l),s.setETC1SCompressionLevel(a);let T=new Uint8Array(e.byteLength);try{s.setSliceSourceImage(0,new Uint8Array(e),t,n,_);let r=s.encode(T);if(!r)return null;let l=new Uint8Array(T.buffer,0,r),a=new E.KTX2File(new Uint8Array(l));try{if(!a.isValid())return null}finally{a.close(),a.delete()}return l}finally{s.delete()}}function N(e){if(!E)return new T(null,null);let t=new E.KTX2File(new Uint8Array(e));try{if(!t.startTranscoding())return new T(null,null);let[e,n]=t.getHasAlpha()?[1,_.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[0,_.CQ.COMPRESSED_RGB8_ETC2],r=t.getLevels(),l=[];for(let n=0;n<r;n++){let r=new Uint8Array(t.getImageTranscodedSizeInBytes(n,0,0,e));if(!t.transcodeImage(r,n,0,0,e,0,-1,-1))return new T(null,null);l.push(r)}return{internalFormat:n,compressedTexture:{type:"compressed",levels:l}}}finally{t.close(),t.delete()}}function o(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const A=o("DXT1"),c=o("DXT3"),f=o("DXT5")},63907(e,t,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},l={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},a=Object.values(l),_={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(t,["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,l,"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,a,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,_,"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}])}}]);
|