"use strict";const R=require("three"),a="eac103980f20c0956f2d3215833e73514be08462",I=`https://media.githubusercontent.com/media/takram-design-engineering/three-geospatial/${a}/packages/atmosphere/assets`,A=`https://media.githubusercontent.com/media/takram-design-engineering/three-geospatial/${a}/packages/atmosphere/assets/stars.bin`,S=64,U=16,o=32,s=128,c=32,i=8,N=i*c,u=s,l=o,C=256,X=64,D=1/1e3,G=100,d=new R.Matrix3(3.2406255,-1.537208,-.4986286,-.9689307,1.8757561,.0415175,.0557101,-.2040211,1.0569959),f=new R.Vector3;function m(e,E,T,n){const t=T.projectOnSurface(e,f);return t!=null?T.getOsculatingSphereCenter(t,E,n).negate():n.setScalar(0)}var H=process.env.NODE_ENV==="production",r="Invariant failed";function g(e,E){if(!e){if(H)throw new Error(r);var T=r;throw new Error(T)}}const p=typeof window<"u"&&window.requestIdleCallback!=null?window.requestIdleCallback:function(E,T={}){const t=T.timeout??1,_=performance.now();return setTimeout(()=>{E({get didTimeout(){return T.timeout!=null?!1:performance.now()-_-1>t},timeRemaining(){return Math.max(0,1+(performance.now()-_))}})},1)};exports.DEFAULT_PRECOMPUTED_TEXTURES_URL=I;exports.DEFAULT_STARS_DATA_URL=A;exports.IRRADIANCE_TEXTURE_HEIGHT=U;exports.IRRADIANCE_TEXTURE_WIDTH=S;exports.METER_TO_LENGTH_UNIT=D;exports.SCATTERING_TEXTURE_DEPTH=l;exports.SCATTERING_TEXTURE_HEIGHT=u;exports.SCATTERING_TEXTURE_MU_SIZE=s;exports.SCATTERING_TEXTURE_MU_S_SIZE=c;exports.SCATTERING_TEXTURE_NU_SIZE=i;exports.SCATTERING_TEXTURE_R_SIZE=o;exports.SCATTERING_TEXTURE_WIDTH=N;exports.SKY_RENDER_ORDER=G;exports.TRANSMITTANCE_TEXTURE_HEIGHT=X;exports.TRANSMITTANCE_TEXTURE_WIDTH=C;exports.XYZ_TO_SRGB=d;exports.getAltitudeCorrectionOffset=m;exports.invariant=g;exports.requestIdleCallback=p;
//# sourceMappingURL=shared2.cjs.map
