react-planner-electron
Version:
react-planner-electron is a React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
1 lines • 2.86 MB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(t,e,r){"use strict";t.exports=r(168)},function(t,e,r){t.exports=r(173)()},function(t,e,r){"use strict";function a(){}r.r(e),r.d(e,"WebGLRenderTargetCube",(function(){return lr})),r.d(e,"WebGLRenderTarget",(function(){return sr})),r.d(e,"WebGLRenderer",(function(){return oi})),r.d(e,"ShaderLib",(function(){return wr})),r.d(e,"UniformsLib",(function(){return zr})),r.d(e,"UniformsUtils",(function(){return gr})),r.d(e,"ShaderChunk",(function(){return fr})),r.d(e,"FogExp2",(function(){return ci})),r.d(e,"Fog",(function(){return si})),r.d(e,"Scene",(function(){return li})),r.d(e,"Sprite",(function(){return ui})),r.d(e,"LOD",(function(){return pi})),r.d(e,"SkinnedMesh",(function(){return mi})),r.d(e,"Skeleton",(function(){return di})),r.d(e,"Bone",(function(){return vi})),r.d(e,"Mesh",(function(){return xa})),r.d(e,"LineSegments",(function(){return xi})),r.d(e,"LineLoop",(function(){return Mi})),r.d(e,"Line",(function(){return gi})),r.d(e,"Points",(function(){return zi})),r.d(e,"Group",(function(){return ei})),r.d(e,"VideoTexture",(function(){return wi})),r.d(e,"DataTexture",(function(){return hr})),r.d(e,"CompressedTexture",(function(){return Ci})),r.d(e,"CubeTexture",(function(){return Ta})),r.d(e,"CanvasTexture",(function(){return Jn})),r.d(e,"DepthTexture",(function(){return bi})),r.d(e,"Texture",(function(){return or})),r.d(e,"CompressedTextureLoader",(function(){return tc})),r.d(e,"DataTextureLoader",(function(){return ec})),r.d(e,"CubeTextureLoader",(function(){return ac})),r.d(e,"TextureLoader",(function(){return nc})),r.d(e,"ObjectLoader",(function(){return ss})),r.d(e,"MaterialLoader",(function(){return Zc})),r.d(e,"BufferGeometryLoader",(function(){return $c})),r.d(e,"DefaultLoadingManager",(function(){return Qo})),r.d(e,"LoadingManager",(function(){return Jo})),r.d(e,"JSONLoader",(function(){return cs})),r.d(e,"ImageLoader",(function(){return rc})),r.d(e,"ImageBitmapLoader",(function(){return ds})),r.d(e,"FontLoader",(function(){return gs})),r.d(e,"FileLoader",(function(){return $o})),r.d(e,"Loader",(function(){return is})),r.d(e,"LoaderUtils",(function(){return os})),r.d(e,"Cache",(function(){return Ko})),r.d(e,"AudioLoader",(function(){return _s})),r.d(e,"SpotLightShadow",(function(){return Vc})),r.d(e,"SpotLight",(function(){return Nc})),r.d(e,"PointLight",(function(){return Bc})),r.d(e,"RectAreaLight",(function(){return Rc})),r.d(e,"HemisphereLight",(function(){return _c})),r.d(e,"DirectionalLightShadow",(function(){return Ec})),r.d(e,"DirectionalLight",(function(){return Ac})),r.d(e,"AmbientLight",(function(){return Pc})),r.d(e,"LightShadow",(function(){return Tc})),r.d(e,"Light",(function(){return Lc})),r.d(e,"StereoCamera",(function(){return Ts})),r.d(e,"PerspectiveCamera",(function(){return ri})),r.d(e,"OrthographicCamera",(function(){return Er})),r.d(e,"CubeCamera",(function(){return Vs})),r.d(e,"ArrayCamera",(function(){return ai})),r.d(e,"Camera",(function(){return Br})),r.d(e,"AudioListener",(function(){return Ns})),r.d(e,"PositionalAudio",(function(){return Es})),r.d(e,"AudioContext",(function(){return Ls})),r.d(e,"AudioAnalyser",(function(){return As})),r.d(e,"Audio",(function(){return Bs})),r.d(e,"VectorKeyframeTrack",(function(){return Jc})),r.d(e,"StringKeyframeTrack",(function(){return Oc})),r.d(e,"QuaternionKeyframeTrack",(function(){return Uc})),r.d(e,"NumberKeyframeTrack",(function(){return Wc})),r.d(e,"ColorKeyframeTrack",(function(){return Gc})),r.d(e,"BooleanKeyframeTrack",(function(){return kc})),r.d(e,"PropertyMixer",(function(){return Ps})),r.d(e,"PropertyBinding",(function(){return Qs})),r.d(e,"KeyframeTrack",(function(){return Kc})),r.d(e,"AnimationUtils",(function(){return Yc})),r.d(e,"AnimationObjectGroup",(function(){return Zs})),r.d(e,"AnimationMixer",(function(){return tl})),r.d(e,"AnimationClip",(function(){return Qc})),r.d(e,"Uniform",(function(){return el})),r.d(e,"InstancedBufferGeometry",(function(){return rl})),r.d(e,"BufferGeometry",(function(){return $r})),r.d(e,"Geometry",(function(){return kr})),r.d(e,"InterleavedBufferAttribute",(function(){return al})),r.d(e,"InstancedInterleavedBuffer",(function(){return il})),r.d(e,"InterleavedBuffer",(function(){return nl})),r.d(e,"InstancedBufferAttribute",(function(){return ol})),r.d(e,"Face3",(function(){return Ar})),r.d(e,"Object3D",(function(){return Nr})),r.d(e,"Raycaster",(function(){return cl})),r.d(e,"Layers",(function(){return Sr})),r.d(e,"EventDispatcher",(function(){return a})),r.d(e,"Clock",(function(){return hl})),r.d(e,"QuaternionLinearInterpolant",(function(){return Ic})),r.d(e,"LinearInterpolant",(function(){return qc})),r.d(e,"DiscreteInterpolant",(function(){return Xc})),r.d(e,"CubicInterpolant",(function(){return jc})),r.d(e,"Interpolant",(function(){return Dc})),r.d(e,"Triangle",(function(){return ga})),r.d(e,"Math",(function(){return Ye})),r.d(e,"Spherical",(function(){return ul})),r.d(e,"Cylindrical",(function(){return pl})),r.d(e,"Plane",(function(){return dr})),r.d(e,"Frustum",(function(){return vr})),r.d(e,"Sphere",(function(){return pr})),r.d(e,"Ray",(function(){return ma})),r.d(e,"Matrix4",(function(){return Je})),r.d(e,"Matrix3",(function(){return $e})),r.d(e,"Box3",(function(){return ur})),r.d(e,"Box2",(function(){return dl})),r.d(e,"Line3",(function(){return fa})),r.d(e,"Euler",(function(){return Fr})),r.d(e,"Vector4",(function(){return cr})),r.d(e,"Vector3",(function(){return Ze})),r.d(e,"Vector2",(function(){return Ke})),r.d(e,"Quaternion",(function(){return Qe})),r.d(e,"Color",(function(){return Mr})),r.d(e,"ImmediateRenderObject",(function(){return vl})),r.d(e,"VertexNormalsHelper",(function(){return ml})),r.d(e,"SpotLightHelper",(function(){return fl})),r.d(e,"SkeletonHelper",(function(){return gl})),r.d(e,"PointLightHelper",(function(){return xl})),r.d(e,"RectAreaLightHelper",(function(){return Ml})),r.d(e,"HemisphereLightHelper",(function(){return yl})),r.d(e,"GridHelper",(function(){return zl})),r.d(e,"PolarGridHelper",(function(){return wl})),r.d(e,"FaceNormalsHelper",(function(){return Cl})),r.d(e,"DirectionalLightHelper",(function(){return bl})),r.d(e,"CameraHelper",(function(){return Fl})),r.d(e,"BoxHelper",(function(){return Sl})),r.d(e,"Box3Helper",(function(){return Hl})),r.d(e,"PlaneHelper",(function(){return Ll})),r.d(e,"ArrowHelper",(function(){return _l})),r.d(e,"AxesHelper",(function(){return Tl})),r.d(e,"Shape",(function(){return Hc})),r.d(e,"Path",(function(){return Sc})),r.d(e,"ShapePath",(function(){return vs})),r.d(e,"Font",(function(){return ms})),r.d(e,"CurvePath",(function(){return Fc})),r.d(e,"Curve",(function(){return ic})),r.d(e,"ShapeUtils",(function(){return po})),r.d(e,"WebGLUtils",(function(){return ti})),r.d(e,"WireframeGeometry",(function(){return Fi})),r.d(e,"ParametricGeometry",(function(){return Si})),r.d(e,"ParametricBufferGeometry",(function(){return Hi})),r.d(e,"TetrahedronGeometry",(function(){return Ti})),r.d(e,"TetrahedronBufferGeometry",(function(){return Vi})),r.d(e,"OctahedronGeometry",(function(){return Ni})),r.d(e,"OctahedronBufferGeometry",(function(){return Bi})),r.d(e,"IcosahedronGeometry",(function(){return Ei})),r.d(e,"IcosahedronBufferGeometry",(function(){return Ai})),r.d(e,"DodecahedronGeometry",(function(){return Pi})),r.d(e,"DodecahedronBufferGeometry",(function(){return Ri})),r.d(e,"PolyhedronGeometry",(function(){return Li})),r.d(e,"PolyhedronBufferGeometry",(function(){return _i})),r.d(e,"TubeGeometry",(function(){return Oi})),r.d(e,"TubeBufferGeometry",(function(){return ki})),r.d(e,"TorusKnotGeometry",(function(){return Di})),r.d(e,"TorusKnotBufferGeometry",(function(){return Ii})),r.d(e,"TorusGeometry",(function(){return Ui})),r.d(e,"TorusBufferGeometry",(function(){return Gi})),r.d(e,"TextGeometry",(function(){return yo})),r.d(e,"TextBufferGeometry",(function(){return zo})),r.d(e,"SphereGeometry",(function(){return wo})),r.d(e,"SphereBufferGeometry",(function(){return Co})),r.d(e,"RingGeometry",(function(){return bo})),r.d(e,"RingBufferGeometry",(function(){return Fo})),r.d(e,"PlaneGeometry",(function(){return ra})),r.d(e,"PlaneBufferGeometry",(function(){return aa})),r.d(e,"LatheGeometry",(function(){return So})),r.d(e,"LatheBufferGeometry",(function(){return Ho})),r.d(e,"ShapeGeometry",(function(){return Lo})),r.d(e,"ShapeBufferGeometry",(function(){return _o})),r.d(e,"ExtrudeGeometry",(function(){return fo})),r.d(e,"ExtrudeBufferGeometry",(function(){return go})),r.d(e,"EdgesGeometry",(function(){return Vo})),r.d(e,"ConeGeometry",(function(){return Eo})),r.d(e,"ConeBufferGeometry",(function(){return Ao})),r.d(e,"CylinderGeometry",(function(){return No})),r.d(e,"CylinderBufferGeometry",(function(){return Bo})),r.d(e,"CircleGeometry",(function(){return Po})),r.d(e,"CircleBufferGeometry",(function(){return Ro})),r.d(e,"BoxGeometry",(function(){return ta})),r.d(e,"BoxBufferGeometry",(function(){return ea})),r.d(e,"ShadowMaterial",(function(){return ko})),r.d(e,"SpriteMaterial",(function(){return hi})),r.d(e,"RawShaderMaterial",(function(){return Do})),r.d(e,"ShaderMaterial",(function(){return va})),r.d(e,"PointsMaterial",(function(){return yi})),r.d(e,"MeshPhysicalMaterial",(function(){return Uo})),r.d(e,"MeshStandardMaterial",(function(){return Io})),r.d(e,"MeshPhongMaterial",(function(){return Go})),r.d(e,"MeshToonMaterial",(function(){return Wo})),r.d(e,"MeshNormalMaterial",(function(){return jo})),r.d(e,"MeshLambertMaterial",(function(){return qo})),r.d(e,"MeshDepthMaterial",(function(){return Xn})),r.d(e,"MeshDistanceMaterial",(function(){return Yn})),r.d(e,"MeshBasicMaterial",(function(){return da})),r.d(e,"LineDashedMaterial",(function(){return Xo})),r.d(e,"LineBasicMaterial",(function(){return fi})),r.d(e,"Material",(function(){return pa})),r.d(e,"Float64BufferAttribute",(function(){return Kr})),r.d(e,"Float32BufferAttribute",(function(){return Yr})),r.d(e,"Uint32BufferAttribute",(function(){return Xr})),r.d(e,"Int32BufferAttribute",(function(){return qr})),r.d(e,"Uint16BufferAttribute",(function(){return jr})),r.d(e,"Int16BufferAttribute",(function(){return Wr})),r.d(e,"Uint8ClampedBufferAttribute",(function(){return Gr})),r.d(e,"Uint8BufferAttribute",(function(){return Ur})),r.d(e,"Int8BufferAttribute",(function(){return Ir})),r.d(e,"BufferAttribute",(function(){return Dr})),r.d(e,"ArcCurve",(function(){return cc})),r.d(e,"CatmullRomCurve3",(function(){return dc})),r.d(e,"CubicBezierCurve",(function(){return gc})),r.d(e,"CubicBezierCurve3",(function(){return xc})),r.d(e,"EllipseCurve",(function(){return oc})),r.d(e,"LineCurve",(function(){return Mc})),r.d(e,"LineCurve3",(function(){return yc})),r.d(e,"QuadraticBezierCurve",(function(){return zc})),r.d(e,"QuadraticBezierCurve3",(function(){return wc})),r.d(e,"SplineCurve",(function(){return Cc})),r.d(e,"REVISION",(function(){return m})),r.d(e,"MOUSE",(function(){return f})),r.d(e,"CullFaceNone",(function(){return g})),r.d(e,"CullFaceBack",(function(){return x})),r.d(e,"CullFaceFront",(function(){return M})),r.d(e,"CullFaceFrontBack",(function(){return y})),r.d(e,"FrontFaceDirectionCW",(function(){return z})),r.d(e,"FrontFaceDirectionCCW",(function(){return w})),r.d(e,"BasicShadowMap",(function(){return C})),r.d(e,"PCFShadowMap",(function(){return b})),r.d(e,"PCFSoftShadowMap",(function(){return F})),r.d(e,"FrontSide",(function(){return S})),r.d(e,"BackSide",(function(){return H})),r.d(e,"DoubleSide",(function(){return L})),r.d(e,"FlatShading",(function(){return _})),r.d(e,"SmoothShading",(function(){return T})),r.d(e,"NoColors",(function(){return V})),r.d(e,"FaceColors",(function(){return N})),r.d(e,"VertexColors",(function(){return B})),r.d(e,"NoBlending",(function(){return E})),r.d(e,"NormalBlending",(function(){return A})),r.d(e,"AdditiveBlending",(function(){return P})),r.d(e,"SubtractiveBlending",(function(){return R})),r.d(e,"MultiplyBlending",(function(){return O})),r.d(e,"CustomBlending",(function(){return k})),r.d(e,"AddEquation",(function(){return D})),r.d(e,"SubtractEquation",(function(){return I})),r.d(e,"ReverseSubtractEquation",(function(){return U})),r.d(e,"MinEquation",(function(){return G})),r.d(e,"MaxEquation",(function(){return W})),r.d(e,"ZeroFactor",(function(){return j})),r.d(e,"OneFactor",(function(){return q})),r.d(e,"SrcColorFactor",(function(){return X})),r.d(e,"OneMinusSrcColorFactor",(function(){return Y})),r.d(e,"SrcAlphaFactor",(function(){return K})),r.d(e,"OneMinusSrcAlphaFactor",(function(){return J})),r.d(e,"DstAlphaFactor",(function(){return Q})),r.d(e,"OneMinusDstAlphaFactor",(function(){return Z})),r.d(e,"DstColorFactor",(function(){return $})),r.d(e,"OneMinusDstColorFactor",(function(){return tt})),r.d(e,"SrcAlphaSaturateFactor",(function(){return et})),r.d(e,"NeverDepth",(function(){return rt})),r.d(e,"AlwaysDepth",(function(){return at})),r.d(e,"LessDepth",(function(){return nt})),r.d(e,"LessEqualDepth",(function(){return it})),r.d(e,"EqualDepth",(function(){return ot})),r.d(e,"GreaterEqualDepth",(function(){return ct})),r.d(e,"GreaterDepth",(function(){return st})),r.d(e,"NotEqualDepth",(function(){return lt})),r.d(e,"MultiplyOperation",(function(){return ht})),r.d(e,"MixOperation",(function(){return ut})),r.d(e,"AddOperation",(function(){return pt})),r.d(e,"NoToneMapping",(function(){return dt})),r.d(e,"LinearToneMapping",(function(){return vt})),r.d(e,"ReinhardToneMapping",(function(){return mt})),r.d(e,"Uncharted2ToneMapping",(function(){return ft})),r.d(e,"CineonToneMapping",(function(){return gt})),r.d(e,"UVMapping",(function(){return xt})),r.d(e,"CubeReflectionMapping",(function(){return Mt})),r.d(e,"CubeRefractionMapping",(function(){return yt})),r.d(e,"EquirectangularReflectionMapping",(function(){return zt})),r.d(e,"EquirectangularRefractionMapping",(function(){return wt})),r.d(e,"SphericalReflectionMapping",(function(){return Ct})),r.d(e,"CubeUVReflectionMapping",(function(){return bt})),r.d(e,"CubeUVRefractionMapping",(function(){return Ft})),r.d(e,"RepeatWrapping",(function(){return St})),r.d(e,"ClampToEdgeWrapping",(function(){return Ht})),r.d(e,"MirroredRepeatWrapping",(function(){return Lt})),r.d(e,"NearestFilter",(function(){return _t})),r.d(e,"NearestMipMapNearestFilter",(function(){return Tt})),r.d(e,"NearestMipMapLinearFilter",(function(){return Vt})),r.d(e,"LinearFilter",(function(){return Nt})),r.d(e,"LinearMipMapNearestFilter",(function(){return Bt})),r.d(e,"LinearMipMapLinearFilter",(function(){return Et})),r.d(e,"UnsignedByteType",(function(){return At})),r.d(e,"ByteType",(function(){return Pt})),r.d(e,"ShortType",(function(){return Rt})),r.d(e,"UnsignedShortType",(function(){return Ot})),r.d(e,"IntType",(function(){return kt})),r.d(e,"UnsignedIntType",(function(){return Dt})),r.d(e,"FloatType",(function(){return It})),r.d(e,"HalfFloatType",(function(){return Ut})),r.d(e,"UnsignedShort4444Type",(function(){return Gt})),r.d(e,"UnsignedShort5551Type",(function(){return Wt})),r.d(e,"UnsignedShort565Type",(function(){return jt})),r.d(e,"UnsignedInt248Type",(function(){return qt})),r.d(e,"AlphaFormat",(function(){return Xt})),r.d(e,"RGBFormat",(function(){return Yt})),r.d(e,"RGBAFormat",(function(){return Kt})),r.d(e,"LuminanceFormat",(function(){return Jt})),r.d(e,"LuminanceAlphaFormat",(function(){return Qt})),r.d(e,"RGBEFormat",(function(){return Zt})),r.d(e,"DepthFormat",(function(){return $t})),r.d(e,"DepthStencilFormat",(function(){return te})),r.d(e,"RGB_S3TC_DXT1_Format",(function(){return ee})),r.d(e,"RGBA_S3TC_DXT1_Format",(function(){return re})),r.d(e,"RGBA_S3TC_DXT3_Format",(function(){return ae})),r.d(e,"RGBA_S3TC_DXT5_Format",(function(){return ne})),r.d(e,"RGB_PVRTC_4BPPV1_Format",(function(){return ie})),r.d(e,"RGB_PVRTC_2BPPV1_Format",(function(){return oe})),r.d(e,"RGBA_PVRTC_4BPPV1_Format",(function(){return ce})),r.d(e,"RGBA_PVRTC_2BPPV1_Format",(function(){return se})),r.d(e,"RGB_ETC1_Format",(function(){return le})),r.d(e,"RGBA_ASTC_4x4_Format",(function(){return he})),r.d(e,"RGBA_ASTC_5x4_Format",(function(){return ue})),r.d(e,"RGBA_ASTC_5x5_Format",(function(){return pe})),r.d(e,"RGBA_ASTC_6x5_Format",(function(){return de})),r.d(e,"RGBA_ASTC_6x6_Format",(function(){return ve})),r.d(e,"RGBA_ASTC_8x5_Format",(function(){return me})),r.d(e,"RGBA_ASTC_8x6_Format",(function(){return fe})),r.d(e,"RGBA_ASTC_8x8_Format",(function(){return ge})),r.d(e,"RGBA_ASTC_10x5_Format",(function(){return xe})),r.d(e,"RGBA_ASTC_10x6_Format",(function(){return Me})),r.d(e,"RGBA_ASTC_10x8_Format",(function(){return ye})),r.d(e,"RGBA_ASTC_10x10_Format",(function(){return ze})),r.d(e,"RGBA_ASTC_12x10_Format",(function(){return we})),r.d(e,"RGBA_ASTC_12x12_Format",(function(){return Ce})),r.d(e,"LoopOnce",(function(){return be})),r.d(e,"LoopRepeat",(function(){return Fe})),r.d(e,"LoopPingPong",(function(){return Se})),r.d(e,"InterpolateDiscrete",(function(){return He})),r.d(e,"InterpolateLinear",(function(){return Le})),r.d(e,"InterpolateSmooth",(function(){return _e})),r.d(e,"ZeroCurvatureEnding",(function(){return Te})),r.d(e,"ZeroSlopeEnding",(function(){return Ve})),r.d(e,"WrapAroundEnding",(function(){return Ne})),r.d(e,"TrianglesDrawMode",(function(){return Be})),r.d(e,"TriangleStripDrawMode",(function(){return Ee})),r.d(e,"TriangleFanDrawMode",(function(){return Ae})),r.d(e,"LinearEncoding",(function(){return Pe})),r.d(e,"sRGBEncoding",(function(){return Re})),r.d(e,"GammaEncoding",(function(){return Oe})),r.d(e,"RGBEEncoding",(function(){return ke})),r.d(e,"LogLuvEncoding",(function(){return De})),r.d(e,"RGBM7Encoding",(function(){return Ie})),r.d(e,"RGBM16Encoding",(function(){return Ue})),r.d(e,"RGBDEncoding",(function(){return Ge})),r.d(e,"BasicDepthPacking",(function(){return We})),r.d(e,"RGBADepthPacking",(function(){return je})),r.d(e,"TangentSpaceNormalMap",(function(){return qe})),r.d(e,"ObjectSpaceNormalMap",(function(){return Xe})),r.d(e,"CubeGeometry",(function(){return ta})),r.d(e,"Face4",(function(){return Vl})),r.d(e,"LineStrip",(function(){return Nl})),r.d(e,"LinePieces",(function(){return Bl})),r.d(e,"MeshFaceMaterial",(function(){return El})),r.d(e,"MultiMaterial",(function(){return Al})),r.d(e,"PointCloud",(function(){return Pl})),r.d(e,"Particle",(function(){return Rl})),r.d(e,"ParticleSystem",(function(){return Ol})),r.d(e,"PointCloudMaterial",(function(){return kl})),r.d(e,"ParticleBasicMaterial",(function(){return Dl})),r.d(e,"ParticleSystemMaterial",(function(){return Il})),r.d(e,"Vertex",(function(){return Ul})),r.d(e,"DynamicBufferAttribute",(function(){return Gl})),r.d(e,"Int8Attribute",(function(){return Wl})),r.d(e,"Uint8Attribute",(function(){return jl})),r.d(e,"Uint8ClampedAttribute",(function(){return ql})),r.d(e,"Int16Attribute",(function(){return Xl})),r.d(e,"Uint16Attribute",(function(){return Yl})),r.d(e,"Int32Attribute",(function(){return Kl})),r.d(e,"Uint32Attribute",(function(){return Jl})),r.d(e,"Float32Attribute",(function(){return Ql})),r.d(e,"Float64Attribute",(function(){return Zl})),r.d(e,"ClosedSplineCurve3",(function(){return $l})),r.d(e,"SplineCurve3",(function(){return th})),r.d(e,"Spline",(function(){return eh})),r.d(e,"AxisHelper",(function(){return rh})),r.d(e,"BoundingBoxHelper",(function(){return ah})),r.d(e,"EdgesHelper",(function(){return nh})),r.d(e,"WireframeHelper",(function(){return ih})),r.d(e,"XHRLoader",(function(){return oh})),r.d(e,"BinaryTextureLoader",(function(){return ch})),r.d(e,"GeometryUtils",(function(){return sh})),r.d(e,"ImageUtils",(function(){return lh})),r.d(e,"Projector",(function(){return hh})),r.d(e,"CanvasRenderer",(function(){return uh})),r.d(e,"SceneUtils",(function(){return ph})),r.d(e,"LensFlare",(function(){return dh})),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 a=arguments[r];if(null!=a)for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}),Object.assign(a.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 a=r.indexOf(e);-1!==a&&r.splice(a,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),a=0,n=r.length;a<n;a++)r[a].call(this,t)}}}});var n,i,o,c,s,l,h,u,p,d,v,m="94",f={LEFT:0,MIDDLE:1,RIGHT:2},g=0,x=1,M=2,y=3,z=0,w=1,C=0,b=1,F=2,S=0,H=1,L=2,_=1,T=2,V=0,N=1,B=2,E=0,A=1,P=2,R=3,O=4,k=5,D=100,I=101,U=102,G=103,W=104,j=200,q=201,X=202,Y=203,K=204,J=205,Q=206,Z=207,$=208,tt=209,et=210,rt=0,at=1,nt=2,it=3,ot=4,ct=5,st=6,lt=7,ht=0,ut=1,pt=2,dt=0,vt=1,mt=2,ft=3,gt=4,xt=300,Mt=301,yt=302,zt=303,wt=304,Ct=305,bt=306,Ft=307,St=1e3,Ht=1001,Lt=1002,_t=1003,Tt=1004,Vt=1005,Nt=1006,Bt=1007,Et=1008,At=1009,Pt=1010,Rt=1011,Ot=1012,kt=1013,Dt=1014,It=1015,Ut=1016,Gt=1017,Wt=1018,jt=1019,qt=1020,Xt=1021,Yt=1022,Kt=1023,Jt=1024,Qt=1025,Zt=Kt,$t=1026,te=1027,ee=33776,re=33777,ae=33778,ne=33779,ie=35840,oe=35841,ce=35842,se=35843,le=36196,he=37808,ue=37809,pe=37810,de=37811,ve=37812,me=37813,fe=37814,ge=37815,xe=37816,Me=37817,ye=37818,ze=37819,we=37820,Ce=37821,be=2200,Fe=2201,Se=2202,He=2300,Le=2301,_e=2302,Te=2400,Ve=2401,Ne=2402,Be=0,Ee=1,Ae=2,Pe=3e3,Re=3001,Oe=3007,ke=3002,De=3003,Ie=3004,Ue=3005,Ge=3006,We=3200,je=3201,qe=0,Xe=1,Ye={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var t=[],e=0;e<256;e++)t[e]=(e<16?"0":"")+e.toString(16);return function(){var e=4294967295*Math.random()|0,r=4294967295*Math.random()|0,a=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return(t[255&e]+t[e>>8&255]+t[e>>16&255]+t[e>>24&255]+"-"+t[255&r]+t[r>>8&255]+"-"+t[r>>16&15|64]+t[r>>24&255]+"-"+t[63&a|128]+t[a>>8&255]+"-"+t[a>>16&255]+t[a>>24&255]+t[255&n]+t[n>>8&255]+t[n>>16&255]+t[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,a,n){return a+(t-e)*(n-a)/(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*Ye.DEG2RAD},radToDeg:function(t){return t*Ye.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 Ke(t,e){this.x=t||0,this.y=e||0}function Je(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function Qe(t,e,r,a){this._x=t||0,this._y=e||0,this._z=r||0,this._w=void 0!==a?a:1}function Ze(t,e,r){this.x=t||0,this.y=e||0,this.z=r||0}function $e(){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.defineProperties(Ke.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(Ke.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,a=t.elements;return this.x=a[0]*e+a[3]*r+a[6],this.y=a[1]*e+a[4]*r+a[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:(n=new Ke,i=new Ke,function(t,e){return n.set(t,t),i.set(e,e),this.clamp(n,i)}),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},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),a=Math.sin(e),n=this.x-t.x,i=this.y-t.y;return this.x=n*r-i*a+t.x,this.y=n*a+i*r+t.y,this}}),Object.assign(Je.prototype,{isMatrix4:!0,set:function(t,e,r,a,n,i,o,c,s,l,h,u,p,d,v,m){var f=this.elements;return f[0]=t,f[4]=e,f[8]=r,f[12]=a,f[1]=n,f[5]=i,f[9]=o,f[13]=c,f[2]=s,f[6]=l,f[10]=h,f[14]=u,f[3]=p,f[7]=d,f[11]=v,f[15]=m,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return(new Je).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],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],this},copyPosition:function(t){var e=this.elements,r=t.elements;return e[12]=r[12],e[13]=r[13],e[14]=r[14],this},extractBasis:function(t,e,r){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,r){return this.set(t.x,e.x,r.x,0,t.y,e.y,r.y,0,t.z,e.z,r.z,0,0,0,0,1),this},extractRotation:(d=new Ze,function(t){var e=this.elements,r=t.elements,a=1/d.setFromMatrixColumn(t,0).length(),n=1/d.setFromMatrixColumn(t,1).length(),i=1/d.setFromMatrixColumn(t,2).length();return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=0,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=0,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}),makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,r=t.x,a=t.y,n=t.z,i=Math.cos(r),o=Math.sin(r),c=Math.cos(a),s=Math.sin(a),l=Math.cos(n),h=Math.sin(n);if("XYZ"===t.order){var u=i*l,p=i*h,d=o*l,v=o*h;e[0]=c*l,e[4]=-c*h,e[8]=s,e[1]=p+d*s,e[5]=u-v*s,e[9]=-o*c,e[2]=v-u*s,e[6]=d+p*s,e[10]=i*c}else if("YXZ"===t.order){var m=c*l,f=c*h,g=s*l,x=s*h;e[0]=m+x*o,e[4]=g*o-f,e[8]=i*s,e[1]=i*h,e[5]=i*l,e[9]=-o,e[2]=f*o-g,e[6]=x+m*o,e[10]=i*c}else if("ZXY"===t.order){m=c*l,f=c*h,g=s*l,x=s*h;e[0]=m-x*o,e[4]=-i*h,e[8]=g+f*o,e[1]=f+g*o,e[5]=i*l,e[9]=x-m*o,e[2]=-i*s,e[6]=o,e[10]=i*c}else if("ZYX"===t.order){u=i*l,p=i*h,d=o*l,v=o*h;e[0]=c*l,e[4]=d*s-p,e[8]=u*s+v,e[1]=c*h,e[5]=v*s+u,e[9]=p*s-d,e[2]=-s,e[6]=o*c,e[10]=i*c}else if("YZX"===t.order){var M=i*c,y=i*s,z=o*c,w=o*s;e[0]=c*l,e[4]=w-M*h,e[8]=z*h+y,e[1]=h,e[5]=i*l,e[9]=-o*l,e[2]=-s*l,e[6]=y*h+z,e[10]=M-w*h}else if("XZY"===t.order){M=i*c,y=i*s,z=o*c,w=o*s;e[0]=c*l,e[4]=-h,e[8]=s*l,e[1]=M*h+w,e[5]=i*l,e[9]=y*h-z,e[2]=z*h-y,e[6]=o*l,e[10]=w*h+M}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:(u=new Ze(0,0,0),p=new Ze(1,1,1),function(t){return this.compose(u,t,p)}),lookAt:(s=new Ze,l=new Ze,h=new Ze,function(t,e,r){var a=this.elements;return h.subVectors(t,e),0===h.lengthSq()&&(h.z=1),h.normalize(),s.crossVectors(r,h),0===s.lengthSq()&&(1===Math.abs(r.z)?h.x+=1e-4:h.z+=1e-4,h.normalize(),s.crossVectors(r,h)),s.normalize(),l.crossVectors(h,s),a[0]=s.x,a[4]=l.x,a[8]=h.x,a[1]=s.y,a[5]=l.y,a[9]=h.y,a[2]=s.z,a[6]=l.z,a[10]=h.z,this}),multiply:function(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var r=t.elements,a=e.elements,n=this.elements,i=r[0],o=r[4],c=r[8],s=r[12],l=r[1],h=r[5],u=r[9],p=r[13],d=r[2],v=r[6],m=r[10],f=r[14],g=r[3],x=r[7],M=r[11],y=r[15],z=a[0],w=a[4],C=a[8],b=a[12],F=a[1],S=a[5],H=a[9],L=a[13],_=a[2],T=a[6],V=a[10],N=a[14],B=a[3],E=a[7],A=a[11],P=a[15];return n[0]=i*z+o*F+c*_+s*B,n[4]=i*w+o*S+c*T+s*E,n[8]=i*C+o*H+c*V+s*A,n[12]=i*b+o*L+c*N+s*P,n[1]=l*z+h*F+u*_+p*B,n[5]=l*w+h*S+u*T+p*E,n[9]=l*C+h*H+u*V+p*A,n[13]=l*b+h*L+u*N+p*P,n[2]=d*z+v*F+m*_+f*B,n[6]=d*w+v*S+m*T+f*E,n[10]=d*C+v*H+m*V+f*A,n[14]=d*b+v*L+m*N+f*P,n[3]=g*z+x*F+M*_+y*B,n[7]=g*w+x*S+M*T+y*E,n[11]=g*C+x*H+M*V+y*A,n[15]=g*b+x*L+M*N+y*P,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t=new Ze;return function(e){for(var r=0,a=e.count;r<a;r++)t.x=e.getX(r),t.y=e.getY(r),t.z=e.getZ(r),t.applyMatrix4(this),e.setXYZ(r,t.x,t.y,t.z);return e}}(),determinant:function(){var t=this.elements,e=t[0],r=t[4],a=t[8],n=t[12],i=t[1],o=t[5],c=t[9],s=t[13],l=t[2],h=t[6],u=t[10],p=t[14];return t[3]*(+n*c*h-a*s*h-n*o*u+r*s*u+a*o*p-r*c*p)+t[7]*(+e*c*p-e*s*u+n*i*u-a*i*p+a*s*l-n*c*l)+t[11]*(+e*s*h-e*o*p-n*i*h+r*i*p+n*o*l-r*s*l)+t[15]*(-a*o*l-e*c*h+e*o*u+a*i*h-r*i*u+r*c*l)},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var r=this.elements,a=t.elements,n=a[0],i=a[1],o=a[2],c=a[3],s=a[4],l=a[5],h=a[6],u=a[7],p=a[8],d=a[9],v=a[10],m=a[11],f=a[12],g=a[13],x=a[14],M=a[15],y=d*x*u-g*v*u+g*h*m-l*x*m-d*h*M+l*v*M,z=f*v*u-p*x*u-f*h*m+s*x*m+p*h*M-s*v*M,w=p*g*u-f*d*u+f*l*m-s*g*m-p*l*M+s*d*M,C=f*d*h-p*g*h-f*l*v+s*g*v+p*l*x-s*d*x,b=n*y+i*z+o*w+c*C;if(0===b){var F="THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";if(!0===e)throw new Error(F);return console.warn(F),this.identity()}var S=1/b;return r[0]=y*S,r[1]=(g*v*c-d*x*c-g*o*m+i*x*m+d*o*M-i*v*M)*S,r[2]=(l*x*c-g*h*c+g*o*u-i*x*u-l*o*M+i*h*M)*S,r[3]=(d*h*c-l*v*c-d*o*u+i*v*u+l*o*m-i*h*m)*S,r[4]=z*S,r[5]=(p*x*c-f*v*c+f*o*m-n*x*m-p*o*M+n*v*M)*S,r[6]=(f*h*c-s*x*c-f*o*u+n*x*u+s*o*M-n*h*M)*S,r[7]=(s*v*c-p*h*c+p*o*u-n*v*u-s*o*m+n*h*m)*S,r[8]=w*S,r[9]=(f*d*c-p*g*c-f*i*m+n*g*m+p*i*M-n*d*M)*S,r[10]=(s*g*c-f*l*c+f*i*u-n*g*u-s*i*M+n*l*M)*S,r[11]=(p*l*c-s*d*c-p*i*u+n*d*u+s*i*m-n*l*m)*S,r[12]=C*S,r[13]=(p*g*o-f*d*o+f*i*v-n*g*v-p*i*x+n*d*x)*S,r[14]=(f*l*o-s*g*o-f*i*h+n*g*h+s*i*x-n*l*x)*S,r[15]=(s*d*o-p*l*o+p*i*h-n*d*h-s*i*v+n*l*v)*S,this},scale:function(t){var e=this.elements,r=t.x,a=t.y,n=t.z;return e[0]*=r,e[4]*=a,e[8]*=n,e[1]*=r,e[5]*=a,e[9]*=n,e[2]*=r,e[6]*=a,e[10]*=n,e[3]*=r,e[7]*=a,e[11]*=n,this},getMaxScaleOnAxis:function(){var t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],a=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,r,a))},makeTranslation:function(t,e,r){return this.set(1,0,0,t,0,1,0,e,0,0,1,r,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t),r=Math.sin(t);return this.set(1,0,0,0,0,e,-r,0,0,r,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t),r=Math.sin(t);return this.set(e,0,r,0,0,1,0,0,-r,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t),r=Math.sin(t);return this.set(e,-r,0,0,r,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var r=Math.cos(e),a=Math.sin(e),n=1-r,i=t.x,o=t.y,c=t.z,s=n*i,l=n*o;return this.set(s*i+r,s*o-a*c,s*c+a*o,0,s*o+a*c,l*o+r,l*c-a*i,0,s*c-a*o,l*c+a*i,n*c*c+r,0,0,0,0,1),this},makeScale:function(t,e,r){return this.set(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1),this},makeShear:function(t,e,r){return this.set(1,e,r,0,t,1,r,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,r){var a=this.elements,n=e._x,i=e._y,o=e._z,c=e._w,s=n+n,l=i+i,h=o+o,u=n*s,p=n*l,d=n*h,v=i*l,m=i*h,f=o*h,g=c*s,x=c*l,M=c*h,y=r.x,z=r.y,w=r.z;return a[0]=(1-(v+f))*y,a[1]=(p+M)*y,a[2]=(d-x)*y,a[3]=0,a[4]=(p-M)*z,a[5]=(1-(u+f))*z,a[6]=(m+g)*z,a[7]=0,a[8]=(d+x)*w,a[9]=(m-g)*w,a[10]=(1-(u+v))*w,a[11]=0,a[12]=t.x,a[13]=t.y,a[14]=t.z,a[15]=1,this},decompose:(o=new Ze,c=new Je,function(t,e,r){var a=this.elements,n=o.set(a[0],a[1],a[2]).length(),i=o.set(a[4],a[5],a[6]).length(),s=o.set(a[8],a[9],a[10]).length();this.determinant()<0&&(n=-n),t.x=a[12],t.y=a[13],t.z=a[14],c.copy(this);var l=1/n,h=1/i,u=1/s;return c.elements[0]*=l,c.elements[1]*=l,c.elements[2]*=l,c.elements[4]*=h,c.elements[5]*=h,c.elements[6]*=h,c.elements[8]*=u,c.elements[9]*=u,c.elements[10]*=u,e.setFromRotationMatrix(c),r.x=n,r.y=i,r.z=s,this}),makePerspective:function(t,e,r,a,n,i){void 0===i&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var o=this.elements,c=2*n/(e-t),s=2*n/(r-a),l=(e+t)/(e-t),h=(r+a)/(r-a),u=-(i+n)/(i-n),p=-2*i*n/(i-n);return o[0]=c,o[4]=0,o[8]=l,o[12]=0,o[1]=0,o[5]=s,o[9]=h,o[13]=0,o[2]=0,o[6]=0,o[10]=u,o[14]=p,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this},makeOrthographic:function(t,e,r,a,n,i){var o=this.elements,c=1/(e-t),s=1/(r-a),l=1/(i-n),h=(e+t)*c,u=(r+a)*s,p=(i+n)*l;return o[0]=2*c,o[4]=0,o[8]=0,o[12]=-h,o[1]=0,o[5]=2*s,o[9]=0,o[13]=-u,o[2]=0,o[6]=0,o[10]=-2*l,o[14]=-p,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this},equals:function(t){for(var e=this.elements,r=t.elements,a=0;a<16;a++)if(e[a]!==r[a])return!1;return!0},fromArray:function(t,e){void 0===e&&(e=0);for(var r=0;r<16;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[e+9]=r[9],t[e+10]=r[10],t[e+11]=r[11],t[e+12]=r[12],t[e+13]=r[13],t[e+14]=r[14],t[e+15]=r[15],t}}),Object.assign(Qe,{slerp:function(t,e,r,a){return r.copy(t).slerp(e,a)},slerpFlat:function(t,e,r,a,n,i,o){var c=r[a+0],s=r[a+1],l=r[a+2],h=r[a+3],u=n[i+0],p=n[i+1],d=n[i+2],v=n[i+3];if(h!==v||c!==u||s!==p||l!==d){var m=1-o,f=c*u+s*p+l*d+h*v,g=f>=0?1:-1,x=1-f*f;if(x>Number.EPSILON){var M=Math.sqrt(x),y=Math.atan2(M,f*g);m=Math.sin(m*y)/M,o=Math.sin(o*y)/M}var z=o*g;if(c=c*m+u*z,s=s*m+p*z,l=l*m+d*z,h=h*m+v*z,m===1-o){var w=1/Math.sqrt(c*c+s*s+l*l+h*h);c*=w,s*=w,l*=w,h*=w}}t[e]=c,t[e+1]=s,t[e+2]=l,t[e+3]=h}}),Object.defineProperties(Qe.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(Qe.prototype,{set:function(t,e,r,a){return this._x=t,this._y=e,this._z=r,this._w=a,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,a=t._y,n=t._z,i=t.order,o=Math.cos,c=Math.sin,s=o(r/2),l=o(a/2),h=o(n/2),u=c(r/2),p=c(a/2),d=c(n/2);return"XYZ"===i?(this._x=u*l*h+s*p*d,this._y=s*p*h-u*l*d,this._z=s*l*d+u*p*h,this._w=s*l*h-u*p*d):"YXZ"===i?(this._x=u*l*h+s*p*d,this._y=s*p*h-u*l*d,this._z=s*l*d-u*p*h,this._w=s*l*h+u*p*d):"ZXY"===i?(this._x=u*l*h-s*p*d,this._y=s*p*h+u*l*d,this._z=s*l*d+u*p*h,this._w=s*l*h-u*p*d):"ZYX"===i?(this._x=u*l*h-s*p*d,this._y=s*p*h+u*l*d,this._z=s*l*d-u*p*h,this._w=s*l*h+u*p*d):"YZX"===i?(this._x=u*l*h+s*p*d,this._y=s*p*h+u*l*d,this._z=s*l*d-u*p*h,this._w=s*l*h-u*p*d):"XZY"===i&&(this._x=u*l*h-s*p*d,this._y=s*p*h-u*l*d,this._z=s*l*d+u*p*h,this._w=s*l*h+u*p*d),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var r=e/2,a=Math.sin(r);return this._x=t.x*a,this._y=t.y*a,this._z=t.z*a,this._w=Math.cos(r),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,r=t.elements,a=r[0],n=r[4],i=r[8],o=r[1],c=r[5],s=r[9],l=r[2],h=r[6],u=r[10],p=a+c+u;return p>0?(e=.5/Math.sqrt(p+1),this._w=.25/e,this._x=(h-s)*e,this._y=(i-l)*e,this._z=(o-n)*e):a>c&&a>u?(e=2*Math.sqrt(1+a-c-u),this._w=(h-s)/e,this._x=.25*e,this._y=(n+o)/e,this._z=(i+l)/e):c>u?(e=2*Math.sqrt(1+c-a-u),this._w=(i-l)/e,this._x=(n+o)/e,this._y=.25*e,this._z=(s+h)/e):(e=2*Math.sqrt(1+u-a-c),this._w=(o-n)/e,this._x=(i+l)/e,this._y=(s+h)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e=new Ze;return function(r,a){return void 0===e&&(e=new Ze),(t=r.dot(a)+1)<1e-6?(t=0,Math.abs(r.x)>Math.abs(r.z)?e.set(-r.y,r.x,0):e.set(0,-r.z,r.y)):e.crossVectors(r,a),this._x=e.x,this._y=e.y,this._z=e.z,this._w=t,this.normalize()}}(),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,a=t._y,n=t._z,i=t._w,o=e._x,c=e._y,s=e._z,l=e._w;return this._x=r*l+i*o+a*s-n*c,this._y=a*l+i*c+n*o-r*s,this._z=n*l+i*s+r*c-a*o,this._w=i*l-r*o-a*c-n*s,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var r=this._x,a=this._y,n=this._z,i=this._w,o=i*t._w+r*t._x+a*t._y+n*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=i,this._x=r,this._y=a,this._z=n,this;var c=1-o*o;if(c<=Number.EPSILON){var s=1-e;return this._w=s*i+e*this._w,this._x=s*r+e*this._x,this._y=s*a+e*this._y,this._z=s*n+e*this._z,this.normalize()}var l=Math.sqrt(c),h=Math.atan2(l,o),u=Math.sin((1-e)*h)/l,p=Math.sin(e*h)/l;return this._w=i*u+this._w*p,this._x=r*u+this._x*p,this._y=a*u+this._y*p,this._z=n*u+this._z*p,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(){}}),Object.assign(Ze.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:(v=new Qe,function(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(v.setFromEuler(t))}),applyAxisAngle:function(){var t=new Qe;return function(e,r){return this.applyQuaternion(t.setFromAxisAngle(e,r))}}(),applyMatrix3:function(t){var e=this.x,r=this.y,a=this.z,n=t.elements;return this.x=n[0]*e+n[3]*r+n[6]*a,this.y=n[1]*e+n[4]*r+n[7]*a,this.z=n[2]*e+n[5]*r+n[8]*a,this},applyMatrix4:function(t){var e=this.x,r=this.y,a=this.z,n=t.elements,i=1/(n[3]*e+n[7]*r+n[11]*a+n[15]);return this.x=(n[0]*e+n[4]*r+n[8]*a+n[12])*i,this.y=(n[1]*e+n[5]*r+n[9]*a+n[13])*i,this.z=(n[2]*e+n[6]*r+n[10]*a+n[14])*i,this},applyQuaternion:function(t){var e=this.x,r=this.y,a=this.z,n=t.x,i=t.y,o=t.z,c=t.w,s=c*e+i*a-o*r,l=c*r+o*e-n*a,h=c*a+n*r-i*e,u=-n*e-i*r-o*a;return this.x=s*c+u*-n+l*-o-h*-i,this.y=l*c+u*-i+h*-n-s*-o,this.z=h*c+u*-o+s*-i-l*-n,this},project:function(){var t=new Je;return function(e){return t.multiplyMatrices(e.projectionMatrix,t.getInverse(e.matrixWorld)),this.applyMatrix4(t)}}(),unproject:function(){var t=new Je;return function(e){return t.multiplyMatrices(e.matrixWorld,t.getInverse(e.projectionMatrix)),this.applyMatrix4(t)}}(),transformDirection:function(t){var e=this.x,r=this.y,a=this.z,n=t.elements;return this.x=n[0]*e+n[4]*r+n[8]*a,this.y=n[1]*e+n[5]*r+n[9]*a,this.z=n[2]*e+n[6]*r+n[10]*a,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(){var t=new Ze,e=new Ze;return function(r,a){return t.set(r,r,r),e.set(a,a,a),this.clamp(t,e)}}(),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,a=t.y,n=t.z,i=e.x,o=e.y,c=e.z;return this.x=a*c-n*o,this.y=n*i-r*c,this.z=r*o-a*i,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new Ze;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new Ze;return function(e){return this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){var e=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq());return Math.acos(Ye.clamp(e,-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,a=this.z-t.z;return e*e+r*r+a*a},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){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromCylindrical:function(t){return this.x=t.radius*Math.sin(t.theta),this.y=t.y,this.z=t.radius*Math.cos(t.theta),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(),a=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=r,this.z=a,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}}),Object.assign($e.prototype,{isMatrix3:!0,set:function(t,e,r,a,n,i,o,c,s){var l=this.elements;return l[0]=t,l[1]=a,l[2]=o,l[3]=e,l[4]=n,l