UNPKG

itowns

Version:

A JS/WebGL framework for 3D geospatial data visualization

1 lines 1.56 MB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("itowns",[],e):"object"==typeof exports?exports.itowns=e():t.itowns=e()}(window,(function(){return function(t){function e(e){for(var n,o,s=e[0],u=e[1],l=e[2],h=0,d=[];h<s.length;h++)o=s[h],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&d.push(i[o][0]),i[o]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(t[n]=u[n]);for(c&&c(e);d.length;)d.shift()();return a.push.apply(a,l||[]),r()}function r(){for(var t,e=0;e<a.length;e++){for(var r=a[e],n=!0,s=1;s<r.length;s++){var u=r[s];0!==i[u]&&(n=!1)}n&&(a.splice(e--,1),t=o(o.s=r[0]))}return t}var n={},i={0:0},a=[];function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=t,o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var s=window.webpackJsonp_name_=window.webpackJsonp_name_||[],u=s.push.bind(s);s.push=e,s=s.slice();for(var l=0;l<s.length;l++)e(s[l]);var c=u;return a.push([344]),r()}([function(t,e,r){"use strict";r.r(e),r.d(e,"ACESFilmicToneMapping",(function(){return ut})),r.d(e,"AddEquation",(function(){return P})),r.d(e,"AddOperation",(function(){return rt})),r.d(e,"AdditiveBlending",(function(){return T})),r.d(e,"AlphaFormat",(function(){return Gt})),r.d(e,"AlwaysDepth",(function(){return X})),r.d(e,"AlwaysStencilFunc",(function(){return ar})),r.d(e,"AmbientLight",(function(){return jc})),r.d(e,"AmbientLightProbe",(function(){return uh})),r.d(e,"AnimationClip",(function(){return ql})),r.d(e,"AnimationLoader",(function(){return tc})),r.d(e,"AnimationMixer",(function(){return zh})),r.d(e,"AnimationObjectGroup",(function(){return Nh})),r.d(e,"AnimationUtils",(function(){return kl})),r.d(e,"ArcCurve",(function(){return uc})),r.d(e,"ArrayCamera",(function(){return as})),r.d(e,"ArrowHelper",(function(){return zd})),r.d(e,"Audio",(function(){return gh})),r.d(e,"AudioAnalyser",(function(){return Sh})),r.d(e,"AudioContext",(function(){return nh})),r.d(e,"AudioListener",(function(){return yh})),r.d(e,"AudioLoader",(function(){return ih})),r.d(e,"AxesHelper",(function(){return jd})),r.d(e,"AxisHelper",(function(){return df})),r.d(e,"BackSide",(function(){return y})),r.d(e,"BasicDepthPacking",(function(){return Ue})),r.d(e,"BasicShadowMap",(function(){return d})),r.d(e,"BinaryTextureLoader",(function(){return yf})),r.d(e,"Bone",(function(){return js})),r.d(e,"BooleanKeyframeTrack",(function(){return jl})),r.d(e,"BoundingBoxHelper",(function(){return ff})),r.d(e,"Box2",(function(){return Xh})),r.d(e,"Box3",(function(){return cn})),r.d(e,"Box3Helper",(function(){return kd})),r.d(e,"BoxBufferGeometry",(function(){return Ni})),r.d(e,"BoxGeometry",(function(){return Di})),r.d(e,"BoxHelper",(function(){return Od})),r.d(e,"BufferAttribute",(function(){return Hn})),r.d(e,"BufferGeometry",(function(){return li})),r.d(e,"BufferGeometryLoader",(function(){return Wc})),r.d(e,"ByteType",(function(){return Rt})),r.d(e,"Cache",(function(){return Yl})),r.d(e,"Camera",(function(){return Vi})),r.d(e,"CameraHelper",(function(){return Cd})),r.d(e,"CanvasRenderer",(function(){return xf})),r.d(e,"CanvasTexture",(function(){return su})),r.d(e,"CatmullRomCurve3",(function(){return pc})),r.d(e,"CineonToneMapping",(function(){return st})),r.d(e,"CircleBufferGeometry",(function(){return bl})),r.d(e,"CircleGeometry",(function(){return xl})),r.d(e,"ClampToEdgeWrapping",(function(){return gt})),r.d(e,"Clock",(function(){return dh})),r.d(e,"ClosedSplineCurve3",(function(){return lf})),r.d(e,"Color",(function(){return Nn})),r.d(e,"ColorKeyframeTrack",(function(){return Ul})),r.d(e,"CompressedTexture",(function(){return ou})),r.d(e,"CompressedTextureLoader",(function(){return ec})),r.d(e,"ConeBufferGeometry",(function(){return gl})),r.d(e,"ConeGeometry",(function(){return yl})),r.d(e,"CubeCamera",(function(){return Xi})),r.d(e,"CubeGeometry",(function(){return Di})),r.d(e,"CubeReflectionMapping",(function(){return ct})),r.d(e,"CubeRefractionMapping",(function(){return ht})),r.d(e,"CubeTexture",(function(){return wa})),r.d(e,"CubeTextureLoader",(function(){return ic})),r.d(e,"CubeUVReflectionMapping",(function(){return mt})),r.d(e,"CubeUVRefractionMapping",(function(){return vt})),r.d(e,"CubicBezierCurve",(function(){return gc})),r.d(e,"CubicBezierCurve3",(function(){return xc})),r.d(e,"CubicInterpolant",(function(){return Dl})),r.d(e,"CullFaceBack",(function(){return s})),r.d(e,"CullFaceFront",(function(){return u})),r.d(e,"CullFaceFrontBack",(function(){return l})),r.d(e,"CullFaceNone",(function(){return o})),r.d(e,"Curve",(function(){return oc})),r.d(e,"CurvePath",(function(){return Tc})),r.d(e,"CustomBlending",(function(){return C})),r.d(e,"CylinderBufferGeometry",(function(){return vl})),r.d(e,"CylinderGeometry",(function(){return ml})),r.d(e,"Cylindrical",(function(){return Wh})),r.d(e,"DataTexture",(function(){return Zi})),r.d(e,"DataTexture2DArray",(function(){return _a})),r.d(e,"DataTexture3D",(function(){return Ma})),r.d(e,"DataTextureLoader",(function(){return rc})),r.d(e,"DecrementStencilOp",(function(){return Ye})),r.d(e,"DecrementWrapStencilOp",(function(){return Je})),r.d(e,"DefaultLoadingManager",(function(){return Jl})),r.d(e,"DepthFormat",(function(){return Yt})),r.d(e,"DepthStencilFormat",(function(){return Zt})),r.d(e,"DepthTexture",(function(){return uu})),r.d(e,"DirectionalLight",(function(){return zc})),r.d(e,"DirectionalLightHelper",(function(){return Td})),r.d(e,"DirectionalLightShadow",(function(){return Fc})),r.d(e,"DiscreteInterpolant",(function(){return Fl})),r.d(e,"DodecahedronBufferGeometry",(function(){return wu})),r.d(e,"DodecahedronGeometry",(function(){return bu})),r.d(e,"DoubleSide",(function(){return g})),r.d(e,"DstAlphaFactor",(function(){return B})),r.d(e,"DstColorFactor",(function(){return V})),r.d(e,"DynamicBufferAttribute",(function(){return Qd})),r.d(e,"EdgesGeometry",(function(){return pl})),r.d(e,"EdgesHelper",(function(){return pf})),r.d(e,"EllipseCurve",(function(){return sc})),r.d(e,"EqualDepth",(function(){return J})),r.d(e,"EqualStencilFunc",(function(){return tr})),r.d(e,"EquirectangularReflectionMapping",(function(){return dt})),r.d(e,"EquirectangularRefractionMapping",(function(){return ft})),r.d(e,"Euler",(function(){return Ir})),r.d(e,"EventDispatcher",(function(){return or})),r.d(e,"ExtrudeBufferGeometry",(function(){return tl})),r.d(e,"ExtrudeGeometry",(function(){return $u})),r.d(e,"Face3",(function(){return Un})),r.d(e,"Face4",(function(){return Ud})),r.d(e,"FaceColors",(function(){return _})),r.d(e,"FaceNormalsHelper",(function(){return _d})),r.d(e,"FileLoader",(function(){return $l})),r.d(e,"FlatShading",(function(){return x})),r.d(e,"Float32Attribute",(function(){return sf})),r.d(e,"Float32BufferAttribute",(function(){return Qn})),r.d(e,"Float64Attribute",(function(){return uf})),r.d(e,"Float64BufferAttribute",(function(){return $n})),r.d(e,"FloatType",(function(){return Nt})),r.d(e,"Fog",(function(){return ps})),r.d(e,"FogExp2",(function(){return fs})),r.d(e,"Font",(function(){return th})),r.d(e,"FontLoader",(function(){return rh})),r.d(e,"FrontFaceDirectionCCW",(function(){return h})),r.d(e,"FrontFaceDirectionCW",(function(){return c})),r.d(e,"FrontSide",(function(){return v})),r.d(e,"Frustum",(function(){return ra})),r.d(e,"GammaEncoding",(function(){return Ie})),r.d(e,"Geometry",(function(){return Ii})),r.d(e,"GeometryUtils",(function(){return gf})),r.d(e,"GreaterDepth",(function(){return Q})),r.d(e,"GreaterEqualDepth",(function(){return K})),r.d(e,"GreaterEqualStencilFunc",(function(){return ir})),r.d(e,"GreaterStencilFunc",(function(){return rr})),r.d(e,"GridHelper",(function(){return vd})),r.d(e,"Group",(function(){return is})),r.d(e,"HalfFloatType",(function(){return Ft})),r.d(e,"HemisphereLight",(function(){return Pc})),r.d(e,"HemisphereLightHelper",(function(){return pd})),r.d(e,"HemisphereLightProbe",(function(){return sh})),r.d(e,"IcosahedronBufferGeometry",(function(){return xu})),r.d(e,"IcosahedronGeometry",(function(){return gu})),r.d(e,"ImageBitmapLoader",(function(){return Qc})),r.d(e,"ImageLoader",(function(){return nc})),r.d(e,"ImageUtils",(function(){return gr})),r.d(e,"ImmediateRenderObject",(function(){return Kh})),r.d(e,"IncrementStencilOp",(function(){return Xe})),r.d(e,"IncrementWrapStencilOp",(function(){return Ze})),r.d(e,"InstancedBufferAttribute",(function(){return Hc})),r.d(e,"InstancedBufferGeometry",(function(){return Vc})),r.d(e,"InstancedInterleavedBuffer",(function(){return Uh})),r.d(e,"InstancedMesh",(function(){return Us})),r.d(e,"Int16Attribute",(function(){return rf})),r.d(e,"Int16BufferAttribute",(function(){return Yn})),r.d(e,"Int32Attribute",(function(){return af})),r.d(e,"Int32BufferAttribute",(function(){return Jn})),r.d(e,"Int8Attribute",(function(){return $d})),r.d(e,"Int8BufferAttribute",(function(){return Wn})),r.d(e,"IntType",(function(){return It})),r.d(e,"InterleavedBuffer",(function(){return ms})),r.d(e,"InterleavedBufferAttribute",(function(){return vs})),r.d(e,"Interpolant",(function(){return Il})),r.d(e,"InterpolateDiscrete",(function(){return Me})),r.d(e,"InterpolateLinear",(function(){return Se})),r.d(e,"InterpolateSmooth",(function(){return Ee})),r.d(e,"InvertStencilOp",(function(){return Ke})),r.d(e,"JSONLoader",(function(){return bf})),r.d(e,"KeepStencilOp",(function(){return We})),r.d(e,"KeyframeTrack",(function(){return zl})),r.d(e,"LOD",(function(){return Is})),r.d(e,"LatheBufferGeometry",(function(){return cl})),r.d(e,"LatheGeometry",(function(){return ll})),r.d(e,"Layers",(function(){return Dr})),r.d(e,"LensFlare",(function(){return _f})),r.d(e,"LessDepth",(function(){return Y})),r.d(e,"LessEqualDepth",(function(){return Z})),r.d(e,"LessEqualStencilFunc",(function(){return er})),r.d(e,"LessStencilFunc",(function(){return $e})),r.d(e,"Light",(function(){return Cc})),r.d(e,"LightProbe",(function(){return oh})),r.d(e,"LightProbeHelper",(function(){return md})),r.d(e,"LightShadow",(function(){return Rc})),r.d(e,"Line",(function(){return Xs})),r.d(e,"Line3",(function(){return Jh})),r.d(e,"LineBasicMaterial",(function(){return Bs})),r.d(e,"LineCurve",(function(){return bc})),r.d(e,"LineCurve3",(function(){return wc})),r.d(e,"LineDashedMaterial",(function(){return Rl})),r.d(e,"LineLoop",(function(){return Ks})),r.d(e,"LinePieces",(function(){return Gd})),r.d(e,"LineSegments",(function(){return Js})),r.d(e,"LineStrip",(function(){return Bd})),r.d(e,"LinearEncoding",(function(){return Oe})),r.d(e,"LinearFilter",(function(){return Et})),r.d(e,"LinearInterpolant",(function(){return Nl})),r.d(e,"LinearMipMapLinearFilter",(function(){return Ct})),r.d(e,"LinearMipMapNearestFilter",(function(){return At})),r.d(e,"LinearMipmapLinearFilter",(function(){return Lt})),r.d(e,"LinearMipmapNearestFilter",(function(){return Tt})),r.d(e,"LinearToneMapping",(function(){return it})),r.d(e,"Loader",(function(){return Kl})),r.d(e,"LoaderUtils",(function(){return Gc})),r.d(e,"LoadingManager",(function(){return Zl})),r.d(e,"LogLuvEncoding",(function(){return Ne})),r.d(e,"LoopOnce",(function(){return be})),r.d(e,"LoopPingPong",(function(){return _e})),r.d(e,"LoopRepeat",(function(){return we})),r.d(e,"LuminanceAlphaFormat",(function(){return qt})),r.d(e,"LuminanceFormat",(function(){return Wt})),r.d(e,"MOUSE",(function(){return i})),r.d(e,"Material",(function(){return Gn})),r.d(e,"MaterialLoader",(function(){return Bc})),r.d(e,"Math",(function(){return lr})),r.d(e,"Matrix3",(function(){return yr})),r.d(e,"Matrix4",(function(){return Rr})),r.d(e,"MaxEquation",(function(){return I})),r.d(e,"Mesh",(function(){return Ai})),r.d(e,"MeshBasicMaterial",(function(){return Vn})),r.d(e,"MeshDepthMaterial",(function(){return Yo})),r.d(e,"MeshDistanceMaterial",(function(){return Zo})),r.d(e,"MeshFaceMaterial",(function(){return Vd})),r.d(e,"MeshLambertMaterial",(function(){return Cl})),r.d(e,"MeshMatcapMaterial",(function(){return Pl})),r.d(e,"MeshNormalMaterial",(function(){return Ll})),r.d(e,"MeshPhongMaterial",(function(){return Tl})),r.d(e,"MeshPhysicalMaterial",(function(){return El})),r.d(e,"MeshStandardMaterial",(function(){return Sl})),r.d(e,"MeshToonMaterial",(function(){return Al})),r.d(e,"MinEquation",(function(){return k})),r.d(e,"MirroredRepeatWrapping",(function(){return xt})),r.d(e,"MixOperation",(function(){return et})),r.d(e,"MultiMaterial",(function(){return Hd})),r.d(e,"MultiplyBlending",(function(){return L})),r.d(e,"MultiplyOperation",(function(){return tt})),r.d(e,"NearestFilter",(function(){return bt})),r.d(e,"NearestMipMapLinearFilter",(function(){return St})),r.d(e,"NearestMipMapNearestFilter",(function(){return _t})),r.d(e,"NearestMipmapLinearFilter",(function(){return Mt})),r.d(e,"NearestMipmapNearestFilter",(function(){return wt})),r.d(e,"NeverDepth",(function(){return q})),r.d(e,"NeverStencilFunc",(function(){return Qe})),r.d(e,"NoBlending",(function(){return S})),r.d(e,"NoColors",(function(){return w})),r.d(e,"NoToneMapping",(function(){return nt})),r.d(e,"NormalBlending",(function(){return E})),r.d(e,"NotEqualDepth",(function(){return $})),r.d(e,"NotEqualStencilFunc",(function(){return nr})),r.d(e,"NumberKeyframeTrack",(function(){return Bl})),r.d(e,"Object3D",(function(){return Zr})),r.d(e,"ObjectLoader",(function(){return Xc})),r.d(e,"ObjectSpaceNormalMap",(function(){return Ve})),r.d(e,"OctahedronBufferGeometry",(function(){return yu})),r.d(e,"OctahedronGeometry",(function(){return vu})),r.d(e,"OneFactor",(function(){return N})),r.d(e,"OneMinusDstAlphaFactor",(function(){return G})),r.d(e,"OneMinusDstColorFactor",(function(){return H})),r.d(e,"OneMinusSrcAlphaFactor",(function(){return U})),r.d(e,"OneMinusSrcColorFactor",(function(){return z})),r.d(e,"OrthographicCamera",(function(){return Nc})),r.d(e,"PCFShadowMap",(function(){return f})),r.d(e,"PCFSoftShadowMap",(function(){return p})),r.d(e,"ParametricBufferGeometry",(function(){return hu})),r.d(e,"ParametricGeometry",(function(){return cu})),r.d(e,"Particle",(function(){return qd})),r.d(e,"ParticleBasicMaterial",(function(){return Zd})),r.d(e,"ParticleSystem",(function(){return Xd})),r.d(e,"ParticleSystemMaterial",(function(){return Jd})),r.d(e,"Path",(function(){return Ac})),r.d(e,"PerspectiveCamera",(function(){return Hi})),r.d(e,"Plane",(function(){return $i})),r.d(e,"PlaneBufferGeometry",(function(){return la})),r.d(e,"PlaneGeometry",(function(){return ua})),r.d(e,"PlaneHelper",(function(){return Id})),r.d(e,"PointCloud",(function(){return Wd})),r.d(e,"PointCloudMaterial",(function(){return Yd})),r.d(e,"PointLight",(function(){return Dc})),r.d(e,"PointLightHelper",(function(){return ld})),r.d(e,"Points",(function(){return nu})),r.d(e,"PointsMaterial",(function(){return Qs})),r.d(e,"PolarGridHelper",(function(){return yd})),r.d(e,"PolyhedronBufferGeometry",(function(){return fu})),r.d(e,"PolyhedronGeometry",(function(){return du})),r.d(e,"PositionalAudio",(function(){return Mh})),r.d(e,"PositionalAudioHelper",(function(){return gd})),r.d(e,"PropertyBinding",(function(){return Dh})),r.d(e,"PropertyMixer",(function(){return Eh})),r.d(e,"QuadraticBezierCurve",(function(){return _c})),r.d(e,"QuadraticBezierCurve3",(function(){return Mc})),r.d(e,"Quaternion",(function(){return hr})),r.d(e,"QuaternionKeyframeTrack",(function(){return Vl})),r.d(e,"QuaternionLinearInterpolant",(function(){return Gl})),r.d(e,"REVISION",(function(){return n})),r.d(e,"RGBADepthPacking",(function(){return Be})),r.d(e,"RGBAFormat",(function(){return Ht})),r.d(e,"RGBA_ASTC_10x10_Format",(function(){return ye})),r.d(e,"RGBA_ASTC_10x5_Format",(function(){return pe})),r.d(e,"RGBA_ASTC_10x6_Format",(function(){return me})),r.d(e,"RGBA_ASTC_10x8_Format",(function(){return ve})),r.d(e,"RGBA_ASTC_12x10_Format",(function(){return ge})),r.d(e,"RGBA_ASTC_12x12_Format",(function(){return xe})),r.d(e,"RGBA_ASTC_4x4_Format",(function(){return oe})),r.d(e,"RGBA_ASTC_5x4_Format",(function(){return se})),r.d(e,"RGBA_ASTC_5x5_Format",(function(){return ue})),r.d(e,"RGBA_ASTC_6x5_Format",(function(){return le})),r.d(e,"RGBA_ASTC_6x6_Format",(function(){return ce})),r.d(e,"RGBA_ASTC_8x5_Format",(function(){return he})),r.d(e,"RGBA_ASTC_8x6_Format",(function(){return de})),r.d(e,"RGBA_ASTC_8x8_Format",(function(){return fe})),r.d(e,"RGBA_PVRTC_2BPPV1_Format",(function(){return ie})),r.d(e,"RGBA_PVRTC_4BPPV1_Format",(function(){return ne})),r.d(e,"RGBA_S3TC_DXT1_Format",(function(){return Qt})),r.d(e,"RGBA_S3TC_DXT3_Format",(function(){return $t})),r.d(e,"RGBA_S3TC_DXT5_Format",(function(){return te})),r.d(e,"RGBDEncoding",(function(){return je})),r.d(e,"RGBEEncoding",(function(){return De})),r.d(e,"RGBEFormat",(function(){return Xt})),r.d(e,"RGBFormat",(function(){return Vt})),r.d(e,"RGBM16Encoding",(function(){return ze})),r.d(e,"RGBM7Encoding",(function(){return Fe})),r.d(e,"RGB_ETC1_Format",(function(){return ae})),r.d(e,"RGB_PVRTC_2BPPV1_Format",(function(){return re})),r.d(e,"RGB_PVRTC_4BPPV1_Format",(function(){return ee})),r.d(e,"RGB_S3TC_DXT1_Format",(function(){return Kt})),r.d(e,"RawShaderMaterial",(function(){return Ml})),r.d(e,"Ray",(function(){return wn})),r.d(e,"Raycaster",(function(){return Bh})),r.d(e,"RectAreaLight",(function(){return Uc})),r.d(e,"RectAreaLightHelper",(function(){return cd})),r.d(e,"RedFormat",(function(){return Jt})),r.d(e,"ReinhardToneMapping",(function(){return at})),r.d(e,"RepeatWrapping",(function(){return yt})),r.d(e,"ReplaceStencilOp",(function(){return qe})),r.d(e,"ReverseSubtractEquation",(function(){return O})),r.d(e,"RingBufferGeometry",(function(){return ul})),r.d(e,"RingGeometry",(function(){return sl})),r.d(e,"Scene",(function(){return Jr})),r.d(e,"SceneUtils",(function(){return wf})),r.d(e,"ShaderChunk",(function(){return na})),r.d(e,"ShaderLib",(function(){return aa})),r.d(e,"ShaderMaterial",(function(){return Gi})),r.d(e,"ShadowMaterial",(function(){return _l})),r.d(e,"Shape",(function(){return Lc})),r.d(e,"ShapeBufferGeometry",(function(){return dl})),r.d(e,"ShapeGeometry",(function(){return hl})),r.d(e,"ShapePath",(function(){return $c})),r.d(e,"ShapeUtils",(function(){return Ju})),r.d(e,"ShortType",(function(){return Ot})),r.d(e,"Skeleton",(function(){return zs})),r.d(e,"SkeletonHelper",(function(){return ud})),r.d(e,"SkinnedMesh",(function(){return Ds})),r.d(e,"SmoothShading",(function(){return b})),r.d(e,"Sphere",(function(){return fn})),r.d(e,"SphereBufferGeometry",(function(){return ol})),r.d(e,"SphereGeometry",(function(){return al})),r.d(e,"Spherical",(function(){return Hh})),r.d(e,"SphericalHarmonics3",(function(){return ah})),r.d(e,"SphericalReflectionMapping",(function(){return pt})),r.d(e,"Spline",(function(){return hf})),r.d(e,"SplineCurve",(function(){return Sc})),r.d(e,"SplineCurve3",(function(){return cf})),r.d(e,"SpotLight",(function(){return kc})),r.d(e,"SpotLightHelper",(function(){return id})),r.d(e,"SpotLightShadow",(function(){return Oc})),r.d(e,"Sprite",(function(){return Ps})),r.d(e,"SpriteMaterial",(function(){return ys})),r.d(e,"SrcAlphaFactor",(function(){return j})),r.d(e,"SrcAlphaSaturateFactor",(function(){return W})),r.d(e,"SrcColorFactor",(function(){return F})),r.d(e,"StereoCamera",(function(){return hh})),r.d(e,"StringKeyframeTrack",(function(){return Hl})),r.d(e,"SubtractEquation",(function(){return R})),r.d(e,"SubtractiveBlending",(function(){return A})),r.d(e,"TOUCH",(function(){return a})),r.d(e,"TangentSpaceNormalMap",(function(){return Ge})),r.d(e,"TetrahedronBufferGeometry",(function(){return mu})),r.d(e,"TetrahedronGeometry",(function(){return pu})),r.d(e,"TextBufferGeometry",(function(){return il})),r.d(e,"TextGeometry",(function(){return nl})),r.d(e,"Texture",(function(){return br})),r.d(e,"TextureLoader",(function(){return ac})),r.d(e,"TorusBufferGeometry",(function(){return Au})),r.d(e,"TorusGeometry",(function(){return Tu})),r.d(e,"TorusKnotBufferGeometry",(function(){return Eu})),r.d(e,"TorusKnotGeometry",(function(){return Su})),r.d(e,"Triangle",(function(){return On})),r.d(e,"TriangleFanDrawMode",(function(){return Re})),r.d(e,"TriangleStripDrawMode",(function(){return Pe})),r.d(e,"TrianglesDrawMode",(function(){return Ce})),r.d(e,"TubeBufferGeometry",(function(){return Mu})),r.d(e,"TubeGeometry",(function(){return _u})),r.d(e,"UVMapping",(function(){return lt})),r.d(e,"Uint16Attribute",(function(){return nf})),r.d(e,"Uint16BufferAttribute",(function(){return Zn})),r.d(e,"Uint32Attribute",(function(){return of})),r.d(e,"Uint32BufferAttribute",(function(){return Kn})),r.d(e,"Uint8Attribute",(function(){return tf})),r.d(e,"Uint8BufferAttribute",(function(){return qn})),r.d(e,"Uint8ClampedAttribute",(function(){return ef})),r.d(e,"Uint8ClampedBufferAttribute",(function(){return Xn})),r.d(e,"Uncharted2ToneMapping",(function(){return ot})),r.d(e,"Uniform",(function(){return jh})),r.d(e,"UniformsLib",(function(){return ia})),r.d(e,"UniformsUtils",(function(){return ji})),r.d(e,"UnsignedByteType",(function(){return Pt})),r.d(e,"UnsignedInt248Type",(function(){return Bt})),r.d(e,"UnsignedIntType",(function(){return Dt})),r.d(e,"UnsignedShort4444Type",(function(){return zt})),r.d(e,"UnsignedShort5551Type",(function(){return jt})),r.d(e,"UnsignedShort565Type",(function(){return Ut})),r.d(e,"UnsignedShortType",(function(){return kt})),r.d(e,"VSMShadowMap",(function(){return m})),r.d(e,"Vector2",(function(){return cr})),r.d(e,"Vector3",(function(){return pr})),r.d(e,"Vector4",(function(){return wr})),r.d(e,"VectorKeyframeTrack",(function(){return Wl})),r.d(e,"Vertex",(function(){return Kd})),r.d(e,"VertexColors",(function(){return M})),r.d(e,"VertexNormalsHelper",(function(){return rd})),r.d(e,"VideoTexture",(function(){return au})),r.d(e,"WebGLMultisampleRenderTarget",(function(){return Mr})),r.d(e,"WebGLRenderTarget",(function(){return _r})),r.d(e,"WebGLRenderTargetCube",(function(){return Yi})),r.d(e,"WebGLRenderer",(function(){return ds})),r.d(e,"WebGLUtils",(function(){return es})),r.d(e,"WireframeGeometry",(function(){return lu})),r.d(e,"WireframeHelper",(function(){return mf})),r.d(e,"WrapAroundEnding",(function(){return Le})),r.d(e,"XHRLoader",(function(){return vf})),r.d(e,"ZeroCurvatureEnding",(function(){return Te})),r.d(e,"ZeroFactor",(function(){return D})),r.d(e,"ZeroSlopeEnding",(function(){return Ae})),r.d(e,"ZeroStencilOp",(function(){return He})),r.d(e,"sRGBEncoding",(function(){return ke})),void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),void 0===Math.sign&&(Math.sign=function(t){return t<0?-1:t>0?1:+t}),"name"in Function.prototype==!1&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e});var n="109",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},a={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},o=0,s=1,u=2,l=3,c=0,h=1,d=0,f=1,p=2,m=3,v=0,y=1,g=2,x=1,b=2,w=0,_=1,M=2,S=0,E=1,T=2,A=3,L=4,C=5,P=100,R=101,O=102,k=103,I=104,D=200,N=201,F=202,z=203,j=204,U=205,B=206,G=207,V=208,H=209,W=210,q=0,X=1,Y=2,Z=3,J=4,K=5,Q=6,$=7,tt=0,et=1,rt=2,nt=0,it=1,at=2,ot=3,st=4,ut=5,lt=300,ct=301,ht=302,dt=303,ft=304,pt=305,mt=306,vt=307,yt=1e3,gt=1001,xt=1002,bt=1003,wt=1004,_t=1004,Mt=1005,St=1005,Et=1006,Tt=1007,At=1007,Lt=1008,Ct=1008,Pt=1009,Rt=1010,Ot=1011,kt=1012,It=1013,Dt=1014,Nt=1015,Ft=1016,zt=1017,jt=1018,Ut=1019,Bt=1020,Gt=1021,Vt=1022,Ht=1023,Wt=1024,qt=1025,Xt=Ht,Yt=1026,Zt=1027,Jt=1028,Kt=33776,Qt=33777,$t=33778,te=33779,ee=35840,re=35841,ne=35842,ie=35843,ae=36196,oe=37808,se=37809,ue=37810,le=37811,ce=37812,he=37813,de=37814,fe=37815,pe=37816,me=37817,ve=37818,ye=37819,ge=37820,xe=37821,be=2200,we=2201,_e=2202,Me=2300,Se=2301,Ee=2302,Te=2400,Ae=2401,Le=2402,Ce=0,Pe=1,Re=2,Oe=3e3,ke=3001,Ie=3007,De=3002,Ne=3003,Fe=3004,ze=3005,je=3006,Ue=3200,Be=3201,Ge=0,Ve=1,He=0,We=7680,qe=7681,Xe=7682,Ye=7683,Ze=34055,Je=34056,Ke=5386,Qe=512,$e=513,tr=514,er=515,rr=516,nr=517,ir=518,ar=519;function or(){}Object.assign(or.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});var r=this._listeners;void 0===r[t]&&(r[t]=[]),-1===r[t].indexOf(e)&&r[t].push(e)},hasEventListener:function(t,e){if(void 0===this._listeners)return!1;var r=this._listeners;return void 0!==r[t]&&-1!==r[t].indexOf(e)},removeEventListener:function(t,e){if(void 0!==this._listeners){var r=this._listeners[t];if(void 0!==r){var n=r.indexOf(e);-1!==n&&r.splice(n,1)}}},dispatchEvent:function(t){if(void 0!==this._listeners){var e=this._listeners[t.type];if(void 0!==e){t.target=this;for(var r=e.slice(0),n=0,i=r.length;n<i;n++)r[n].call(this,t)}}}});for(var sr=[],ur=0;ur<256;ur++)sr[ur]=(ur<16?"0":"")+ur.toString(16);var lr={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,r=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return(sr[255&t]+sr[t>>8&255]+sr[t>>16&255]+sr[t>>24&255]+"-"+sr[255&e]+sr[e>>8&255]+"-"+sr[e>>16&15|64]+sr[e>>24&255]+"-"+sr[63&r|128]+sr[r>>8&255]+"-"+sr[r>>16&255]+sr[r>>24&255]+sr[255&n]+sr[n>>8&255]+sr[n>>16&255]+sr[n>>24&255]).toUpperCase()},clamp:function(t,e,r){return Math.max(e,Math.min(r,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,r,n,i){return n+(t-e)*(i-n)/(r-e)},lerp:function(t,e,r){return(1-r)*t+r*e},smoothstep:function(t,e,r){return t<=e?0:t>=r?1:(t=(t-e)/(r-e))*t*(3-2*t)},smootherstep:function(t,e,r){return t<=e?0:t>=r?1:(t=(t-e)/(r-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*lr.DEG2RAD},radToDeg:function(t){return t*lr.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};function cr(t,e){this.x=t||0,this.y=e||0}function hr(t,e,r,n){this._x=t||0,this._y=e||0,this._z=r||0,this._w=void 0!==n?n:1}Object.defineProperties(cr.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(cr.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,r=this.y,n=t.elements;return this.x=n[0]*e+n[3]*r+n[6],this.y=n[1]*e+n[4]*r+n[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this},clampLength:function(t,e){var r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(t,Math.min(e,r)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,r){return this.subVectors(e,t).multiplyScalar(r).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,r){return void 0!==r&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var r=Math.cos(e),n=Math.sin(e),i=this.x-t.x,a=this.y-t.y;return this.x=i*r-a*n+t.x,this.y=i*n+a*r+t.y,this}}),Object.assign(hr,{slerp:function(t,e,r,n){return r.copy(t).slerp(e,n)},slerpFlat:function(t,e,r,n,i,a,o){var s=r[n+0],u=r[n+1],l=r[n+2],c=r[n+3],h=i[a+0],d=i[a+1],f=i[a+2],p=i[a+3];if(c!==p||s!==h||u!==d||l!==f){var m=1-o,v=s*h+u*d+l*f+c*p,y=v>=0?1:-1,g=1-v*v;if(g>Number.EPSILON){var x=Math.sqrt(g),b=Math.atan2(x,v*y);m=Math.sin(m*b)/x,o=Math.sin(o*b)/x}var w=o*y;if(s=s*m+h*w,u=u*m+d*w,l=l*m+f*w,c=c*m+p*w,m===1-o){var _=1/Math.sqrt(s*s+u*u+l*l+c*c);s*=_,u*=_,l*=_,c*=_}}t[e]=s,t[e+1]=u,t[e+2]=l,t[e+3]=c}}),Object.defineProperties(hr.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this._onChangeCallback()}}}),Object.assign(hr.prototype,{isQuaternion:!0,set:function(t,e,r,n){return this._x=t,this._y=e,this._z=r,this._w=n,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var r=t._x,n=t._y,i=t._z,a=t.order,o=Math.cos,s=Math.sin,u=o(r/2),l=o(n/2),c=o(i/2),h=s(r/2),d=s(n/2),f=s(i/2);return"XYZ"===a?(this._x=h*l*c+u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c-h*d*f):"YXZ"===a?(this._x=h*l*c+u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c+h*d*f):"ZXY"===a?(this._x=h*l*c-u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c-h*d*f):"ZYX"===a?(this._x=h*l*c-u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c+h*d*f):"YZX"===a?(this._x=h*l*c+u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c-h*d*f):"XZY"===a&&(this._x=h*l*c-u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c+h*d*f),!1!==e&&this._onChangeCallback(),this},setFromAxisAngle:function(t,e){var r=e/2,n=Math.sin(r);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(r),this._onChangeCallback(),this},setFromRotationMatrix:function(t){var e,r=t.elements,n=r[0],i=r[4],a=r[8],o=r[1],s=r[5],u=r[9],l=r[2],c=r[6],h=r[10],d=n+s+h;return d>0?(e=.5/Math.sqrt(d+1),this._w=.25/e,this._x=(c-u)*e,this._y=(a-l)*e,this._z=(o-i)*e):n>s&&n>h?(e=2*Math.sqrt(1+n-s-h),this._w=(c-u)/e,this._x=.25*e,this._y=(i+o)/e,this._z=(a+l)/e):s>h?(e=2*Math.sqrt(1+s-n-h),this._w=(a-l)/e,this._x=(i+o)/e,this._y=.25*e,this._z=(u+c)/e):(e=2*Math.sqrt(1+h-n-s),this._w=(o-i)/e,this._x=(a+l)/e,this._y=(u+c)/e,this._z=.25*e),this._onChangeCallback(),this},setFromUnitVectors:function(t,e){var r=t.dot(e)+1;return r<1e-6?(r=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=r):(this._x=0,this._y=-t.z,this._z=t.y,this._w=r)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=r),this.normalize()},angleTo:function(t){return 2*Math.acos(Math.abs(lr.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var r=this.angleTo(t);if(0===r)return this;var n=Math.min(1,e/r);return this.slerp(t,n),this},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var r=t._x,n=t._y,i=t._z,a=t._w,o=e._x,s=e._y,u=e._z,l=e._w;return this._x=r*l+a*o+n*u-i*s,this._y=n*l+a*s+i*o-r*u,this._z=i*l+a*u+r*s-n*o,this._w=a*l-r*o-n*s-i*u,this._onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var r=this._x,n=this._y,i=this._z,a=this._w,o=a*t._w+r*t._x+n*t._y+i*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=r,this._y=n,this._z=i,this;var s=1-o*o;if(s<=Number.EPSILON){var u=1-e;return this._w=u*a+e*this._w,this._x=u*r+e*this._x,this._y=u*n+e*this._y,this._z=u*i+e*this._z,this.normalize(),this._onChangeCallback(),this}var l=Math.sqrt(s),c=Math.atan2(l,o),h=Math.sin((1-e)*c)/l,d=Math.sin(e*c)/l;return this._w=a*h+this._w*d,this._x=r*h+this._x*d,this._y=n*h+this._y*d,this._z=i*h+this._z*d,this._onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},_onChange:function(t){return this._onChangeCallback=t,this},_onChangeCallback:function(){}});var dr=new pr,fr=new hr;function pr(t,e,r){this.x=t||0,this.y=e||0,this.z=r||0}Object.assign(pr.prototype,{isVector3:!0,set:function(t,e,r){return this.x=t,this.y=e,this.z=r,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(fr.setFromEuler(t))},applyAxisAngle:function(t,e){return this.applyQuaternion(fr.setFromAxisAngle(t,e))},applyMatrix3:function(t){var e=this.x,r=this.y,n=this.z,i=t.elements;return this.x=i[0]*e+i[3]*r+i[6]*n,this.y=i[1]*e+i[4]*r+i[7]*n,this.z=i[2]*e+i[5]*r+i[8]*n,this},applyMatrix4:function(t){var e=this.x,r=this.y,n=this.z,i=t.elements,a=1/(i[3]*e+i[7]*r+i[11]*n+i[15]);return this.x=(i[0]*e+i[4]*r+i[8]*n+i[12])*a,this.y=(i[1]*e+i[5]*r+i[9]*n+i[13])*a,this.z=(i[2]*e+i[6]*r+i[10]*n+i[14])*a,this},applyQuaternion:function(t){var e=this.x,r=this.y,n=this.z,i=t.x,a=t.y,o=t.z,s=t.w,u=s*e+a*n-o*r,l=s*r+o*e-i*n,c=s*n+i*r-a*e,h=-i*e-a*r-o*n;return this.x=u*s+h*-i+l*-o-c*-a,this.y=l*s+h*-a+c*-i-u*-o,this.z=c*s+h*-o+u*-a-l*-i,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)},transformDirection:function(t){var e=this.x,r=this.y,n=this.z,i=t.elements;return this.x=i[0]*e+i[4]*r+i[8]*n,this.y=i[1]*e+i[5]*r+i[9]*n,this.z=i[2]*e+i[6]*r+i[10]*n,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this},clampLength:function(t,e){var r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(t,Math.min(e,r)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,r){return this.subVectors(e,t).multiplyScalar(r).add(t)},cross:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var r=t.x,n=t.y,i=t.z,a=e.x,o=e.y,s=e.z;return this.x=n*s-i*o,this.y=i*a-r*s,this.z=r*o-n*a,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(t){return dr.copy(this).projectOnVector(t),this.sub(dr)},reflect:function(t){return this.sub(dr.copy(t).multiplyScalar(2*this.dot(t)))},angleTo:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());0===e&&console.error("THREE.Vector3: angleTo() can't handle zero length vectors.");var r=this.dot(t)/e;return Math.acos(lr.clamp(r,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,r=this.y-t.y,n=this.z-t.z;return e*e+r*r+n*n},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,r){var n=Math.sin(e)*t;return this.x=n*Math.sin(r),this.y=Math.cos(e)*t,this.z=n*Math.cos(r),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,r){return this.x=t*Math.sin(e),this.y=r,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){var e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),r=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=r,this.z=n,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,r){return void 0!==r&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}});var mr,vr=new pr;function yr(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}Object.assign(yr.prototype,{isMatrix3:!0,set:function(t,e,r,n,i,a,o,s,u){var l=this.elements;return l[0]=t,l[1]=n,l[2]=o,l[3]=e,l[4]=i,l[5]=s,l[6]=r,l[7]=a,l[8]=u,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(t){var e=this.elements,r=t.elements;return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},applyToBufferAttribute:function(t){for(var e=0,r=t.count;e<r;e++)vr.x=t.getX(e),vr.y=t.getY(e),vr.z=t.getZ(e),vr.applyMatrix3(this),t.setXYZ(e,vr.x,vr.y,vr.z);return t},multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var r=t.elements,n=e.elements,i=this.elements,a=r[0],o=r[3],s=r[6],u=r[1],l=r[4],c=r[7],h=r[2],d=r[5],f=r[8],p=n[0],m=n[3],v=n[6],y=n[1],g=n[4],x=n[7],b=n[2],w=n[5],_=n[8];return i[0]=a*p+o*y+s*b,i[3]=a*m+o*g+s*w,i[6]=a*v+o*x+s*_,i[1]=u*p+l*y+c*b,i[4]=u*m+l*g+c*w,i[7]=u*v+l*x+c*_,i[2]=h*p+d*y+f*b,i[5]=h*m+d*g+f*w,i[8]=h*v+d*x+f*_,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8];return e*a*l-e*o*u-r*i*l+r*o*s+n*i*u-n*a*s},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var r=t.elements,n=this.elements,i=r[0],a=r[1],o=r[2],s=r[3],u=r[4],l=r[5],c=r[6],h=r[7],d=r[8],f=d*u-l*h,p=l*c-d*s,m=h*s-u*c,v=i*f+a*p+o*m;if(0===v){var y="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(!0===e)throw new Error(y);return console.warn(y),this.identity()}var g=1/v;return n[0]=f*g,n[1]=(o*h-d*a)*g,n[2]=(l*a-o*u)*g,n[3]=p*g,n[4]=(d*i-o*c)*g,n[5]=(o*s-l*i)*g,n[6]=m*g,n[7]=(a*c-h*i)*g,n[8]=(u*i-a*s)*g,this},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return 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],this},setUvTransform:function(t,e,r,n,i,a,o){var s=Math.cos(i),u=Math.sin(i);this.set(r*s,r*u,-r*(s*a+u*o)+a+t,-n*u,n*s,-n*(-u*a+s*o)+o+e,0,0,1)},scale:function(t,e){var r=this.elements;return r[0]*=t,r[3]*=t,r[6]*=t,r[1]*=e,r[4]*=e,r[7]*=e,this},rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=this.elements,i=n[0],a=n[3],o=n[6],s=n[1],u=n[4],l=n[7];return n[0]=e*i+r*s,n[3]=e*a+r*u,n[6]=e*o+r*l,n[1]=-r*i+e*s,n[4]=-r*a+e*u,n[7]=-r*o+e*l,this},translate:function(t,e){var r=this.elements;return r[0]+=t*r[2],r[3]+=t*r[5],r[6]+=t*r[8],r[1]+=e*r[2],r[4]+=e*r[5],r[7]+=e*r[8],this},equals:function(t){for(var e=this.elements,r=t.elements,n=0;n<9;n++)if(e[n]!==r[n])return!1;return!0},fromArray:function(t,e){void 0===e&&(e=0);for(var r=0;r<9;r++)this.elements[r]=t[r+e];return this},toArray:function(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);var r=this.elements;return t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=r[3],t[e+4]=r[4],t[e+5]=r[5],t[e+6]=r[6],t[e+7]=r[7],t[e+8]=r[8],t}});var gr={getDataURL:function(t){var e;if("undefined"==typeof HTMLCanvasElement)return t.src;if(t instanceof HTMLCanvasElement)e=t;else{void 0===mr&&(mr=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),mr.width=t.width,mr.height=t.height;var r=mr.getContext("2d");t instanceof ImageData?r.putImageData(t,0,0):r.drawImage(t,0,0,t.width,t.height),e=mr}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},xr=0;function br(t,e,r,n,i,a,o,s,u,l){Object.defineProperty(this,"id",{value:xr++}),this.uuid=lr.generateUUID(),this.name="",this.image=void 0!==t?t:br.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:br.DEFAULT_MAPPING,this.wrapS=void 0!==r?r:gt,this.wrapT=void 0!==n?n:gt,this.magFilter=void 0!==i?i:Et,this.minFilter=void 0!==a?a:Lt,this.anisotropy=void 0!==u?u:1,this.format=void 0!==o?o:Ht,this.type=void 0!==s?s:Pt,this.offset=new cr(0,0),this.repeat=new cr(1,1),this.center=new cr(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new yr,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==l?l:Oe,this.version=0,this.onUpdate=null}function wr(t,e,r,n){this.x=t||0,this.y=e||0,this.z=r||0,this.w=void 0!==n?n:1}function _r(t,e,r){this.width=t,this.height=e,this.scissor=new wr(0,0,t,e),this.scissorTest=!1,this.viewport=new wr(0,0,t,e),r=r||{},this.texture=new br(void 0,void 0,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.generateMipmaps=void 0!==r.generateMipmaps&&r.generateMipmaps,this.texture.minFilter=void 0!==r.minFilter?r.minFilter:Et,this.depthBuffer=void 0===r.depthBuffer||r.depthBuffer,this.stencilBuffer=void 0===r.stencilBuffer||r.stencilBuffer,this.depthTexture=void 0!==r.depthTexture?r.depthTexture:null}function Mr(t,e,r){_r.call(this,t,e,r),this.samples=4}br.DEFAULT_IMAGE=void 0,br.DEFAULT_M