From c3d4379d7deeac3c3dc1f367e2f7829e7699a664 Mon Sep 17 00:00:00 2001 From: xxf <876029169@qq.com> Date: Mon, 24 Oct 2022 16:23:32 +0800 Subject: [PATCH] docs --- README.md | 6 +-- dist/esm/Collada/index.d.ts | 7 +++ dist/esm/Collada/index.js | 52 +++++++++++++++++++ dist/esm/FBX/index.d.ts | 6 +++ dist/esm/FBX/index.js | 51 ++++++++++++++++++ dist/esm/GLTF/index.d.ts | 6 +++ dist/esm/GLTF/index.js | 47 +++++++++++++++++ dist/esm/OBJ/index.d.ts | 6 +++ dist/esm/OBJ/index.js | 51 ++++++++++++++++++ dist/esm/PLY/index.d.ts | 5 ++ dist/esm/PLY/index.js | 42 +++++++++++++++ dist/esm/STL/index.d.ts | 5 ++ dist/esm/STL/index.js | 41 +++++++++++++++ dist/esm/index.d.ts | 24 +++++++++ dist/esm/index.js | 14 +++++ dist/esm/useScene.d.ts | 9 ++++ dist/esm/useScene.js | 101 ++++++++++++++++++++++++++++++++++++ docs/index.md | 2 +- docs/umi.js | 2 +- package.json | 6 ++- src/Collada/index.md | 2 +- src/FBX/index.md | 2 +- src/GLTF/index.md | 2 +- src/OBJ/index.md | 2 +- src/PLY/index.md | 2 +- src/STL/index.md | 2 +- src/guide/background.md | 2 +- src/guide/installation.md | 6 +-- src/guide/rotation.md | 2 +- src/guide/snapshot.md | 2 +- 30 files changed, 488 insertions(+), 19 deletions(-) create mode 100644 dist/esm/Collada/index.d.ts create mode 100644 dist/esm/Collada/index.js create mode 100644 dist/esm/FBX/index.d.ts create mode 100644 dist/esm/FBX/index.js create mode 100644 dist/esm/GLTF/index.d.ts create mode 100644 dist/esm/GLTF/index.js create mode 100644 dist/esm/OBJ/index.d.ts create mode 100644 dist/esm/OBJ/index.js create mode 100644 dist/esm/PLY/index.d.ts create mode 100644 dist/esm/PLY/index.js create mode 100644 dist/esm/STL/index.d.ts create mode 100644 dist/esm/STL/index.js create mode 100644 dist/esm/index.d.ts create mode 100644 dist/esm/index.js create mode 100644 dist/esm/useScene.d.ts create mode 100644 dist/esm/useScene.js diff --git a/README.md b/README.md index 23bd6e8..fc17a60 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# react-3d-model +# react-3dmodelx > 3D models viewer with react.js。文档地址:https://xiaxiangfeng.github.io/react-3d-model/index.html#/ @@ -7,14 +7,14 @@ ## 从 NPM 下载包 ```npm -npm i react-3d-model +npm i react-3dmodelx ``` ## Basic usage ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/dist/esm/Collada/index.d.ts b/dist/esm/Collada/index.d.ts new file mode 100644 index 0000000..bb84f54 --- /dev/null +++ b/dist/esm/Collada/index.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +declare const _default: React.ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; + isRotation?: boolean | undefined; +} & React.RefAttributes>; +export default _default; diff --git a/dist/esm/Collada/index.js b/dist/esm/Collada/index.js new file mode 100644 index 0000000..e6b0c51 --- /dev/null +++ b/dist/esm/Collada/index.js @@ -0,0 +1,52 @@ +import React, { useRef, useEffect, useImperativeHandle, forwardRef } from 'react'; +import * as THREE from 'three'; +import { ColladaLoader } from 'three/examples/jsm/loaders/ColladaLoader'; +import useScene from "../useScene"; + +function Collada(_ref, ref) { + var src = _ref.src, + backgroundColor = _ref.backgroundColor, + isRotation = _ref.isRotation; + var canvasRef = useRef(null); + + var _useScene = useScene(canvasRef, backgroundColor, isRotation), + add2Scene = _useScene.add2Scene, + scene = _useScene.scene, + animate = _useScene.animate, + renderer = _useScene.renderer, + render = _useScene.render; + + useImperativeHandle(ref, function () { + return { + getSnapshot: function getSnapshot() { + var _renderer$current; + + render(); + return (_renderer$current = renderer.current) === null || _renderer$current === void 0 ? void 0 : _renderer$current.domElement.toDataURL('image/png', 1); + } + }; + }); + useEffect(function () { + var _scene$current, _scene$current2; + + var ambientLight = new THREE.AmbientLight(0xcccccc, 0.4); + (_scene$current = scene.current) === null || _scene$current === void 0 ? void 0 : _scene$current.add(ambientLight); + var directionalLight = new THREE.DirectionalLight(0xffffff, 0.8); + directionalLight.position.set(1, 1, 0).normalize(); + (_scene$current2 = scene.current) === null || _scene$current2 === void 0 ? void 0 : _scene$current2.add(directionalLight); + var loader = new ColladaLoader(); + loader.load(src, function (data) { + add2Scene(data.scene); + animate(); + }); + }, []); + return /*#__PURE__*/React.createElement("canvas", { + ref: canvasRef, + style: { + width: '100%', + height: '100%' + } + }); +} + +export default /*#__PURE__*/forwardRef(Collada); \ No newline at end of file diff --git a/dist/esm/FBX/index.d.ts b/dist/esm/FBX/index.d.ts new file mode 100644 index 0000000..b61e34d --- /dev/null +++ b/dist/esm/FBX/index.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +declare const _default: React.ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; +} & React.RefAttributes>; +export default _default; diff --git a/dist/esm/FBX/index.js b/dist/esm/FBX/index.js new file mode 100644 index 0000000..1d1f49f --- /dev/null +++ b/dist/esm/FBX/index.js @@ -0,0 +1,51 @@ +import React, { useRef, useEffect, useImperativeHandle, forwardRef } from 'react'; +import * as THREE from 'three'; +import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader'; +import useScene from "../useScene"; + +function FBX(_ref, ref) { + var src = _ref.src, + backgroundColor = _ref.backgroundColor; + var canvasRef = useRef(null); + + var _useScene = useScene(canvasRef, backgroundColor), + add2Scene = _useScene.add2Scene, + scene = _useScene.scene, + animate = _useScene.animate, + renderer = _useScene.renderer, + render = _useScene.render; + + useImperativeHandle(ref, function () { + return { + getSnapshot: function getSnapshot() { + var _renderer$current; + + render(); + return (_renderer$current = renderer.current) === null || _renderer$current === void 0 ? void 0 : _renderer$current.domElement.toDataURL('image/png', 1); + } + }; + }); + useEffect(function () { + var _scene$current, _scene$current2; + + var ambientLight = new THREE.AmbientLight(0xcccccc, 0.4); + (_scene$current = scene.current) === null || _scene$current === void 0 ? void 0 : _scene$current.add(ambientLight); + var directionalLight = new THREE.DirectionalLight(0xffffff, 0.8); + directionalLight.position.set(1, 1, 0).normalize(); + (_scene$current2 = scene.current) === null || _scene$current2 === void 0 ? void 0 : _scene$current2.add(directionalLight); + var loader = new FBXLoader(); + loader.load(src, function (data) { + add2Scene(data); + animate(); + }); + }, []); + return /*#__PURE__*/React.createElement("canvas", { + ref: canvasRef, + style: { + width: '100%', + height: '100%' + } + }); +} + +export default /*#__PURE__*/forwardRef(FBX); \ No newline at end of file diff --git a/dist/esm/GLTF/index.d.ts b/dist/esm/GLTF/index.d.ts new file mode 100644 index 0000000..b61e34d --- /dev/null +++ b/dist/esm/GLTF/index.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +declare const _default: React.ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; +} & React.RefAttributes>; +export default _default; diff --git a/dist/esm/GLTF/index.js b/dist/esm/GLTF/index.js new file mode 100644 index 0000000..9f14e4b --- /dev/null +++ b/dist/esm/GLTF/index.js @@ -0,0 +1,47 @@ +import React, { useRef, useEffect, useImperativeHandle, forwardRef } from 'react'; +import * as THREE from 'three'; +import { RoomEnvironment } from 'three/examples/jsm/environments/RoomEnvironment.js'; +import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; +import useScene from "../useScene"; + +function GLTF(_ref, ref) { + var src = _ref.src, + backgroundColor = _ref.backgroundColor; + var canvasRef = useRef(null); + + var _useScene = useScene(canvasRef, backgroundColor), + add2Scene = _useScene.add2Scene, + scene = _useScene.scene, + renderer = _useScene.renderer, + render = _useScene.render; + + useImperativeHandle(ref, function () { + return { + getSnapshot: function getSnapshot() { + var _renderer$current; + + render(); + return (_renderer$current = renderer.current) === null || _renderer$current === void 0 ? void 0 : _renderer$current.domElement.toDataURL('image/png', 1); + } + }; + }); + useEffect(function () { + var environment = new RoomEnvironment(); + var pmremGenerator = new THREE.PMREMGenerator(renderer.current); + scene.current && (scene.current.environment = pmremGenerator.fromScene(environment, 0.04).texture); + var loader = new GLTFLoader(); + loader.load(src, function (gltf) { + add2Scene(gltf.scene); + render(); + }); + }, []); + return /*#__PURE__*/React.createElement("canvas", { + ref: canvasRef, + style: { + width: '100%', + height: '100%' + } + }); +} + +export default /*#__PURE__*/forwardRef(GLTF); \ No newline at end of file diff --git a/dist/esm/OBJ/index.d.ts b/dist/esm/OBJ/index.d.ts new file mode 100644 index 0000000..b61e34d --- /dev/null +++ b/dist/esm/OBJ/index.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +declare const _default: React.ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; +} & React.RefAttributes>; +export default _default; diff --git a/dist/esm/OBJ/index.js b/dist/esm/OBJ/index.js new file mode 100644 index 0000000..d85d742 --- /dev/null +++ b/dist/esm/OBJ/index.js @@ -0,0 +1,51 @@ +import React, { useRef, useEffect, useImperativeHandle, forwardRef } from 'react'; +import * as THREE from 'three'; +import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader'; +import useScene from "../useScene"; + +function OBJ(_ref, ref) { + var src = _ref.src, + backgroundColor = _ref.backgroundColor; + var canvasRef = useRef(null); + + var _useScene = useScene(canvasRef, backgroundColor), + add2Scene = _useScene.add2Scene, + scene = _useScene.scene, + animate = _useScene.animate, + render = _useScene.render, + renderer = _useScene.renderer; + + useImperativeHandle(ref, function () { + return { + getSnapshot: function getSnapshot() { + var _renderer$current; + + render(); + return (_renderer$current = renderer.current) === null || _renderer$current === void 0 ? void 0 : _renderer$current.domElement.toDataURL('image/png', 1); + } + }; + }); + useEffect(function () { + var _scene$current, _scene$current2; + + var ambientLight = new THREE.AmbientLight(0xcccccc, 0.4); + (_scene$current = scene.current) === null || _scene$current === void 0 ? void 0 : _scene$current.add(ambientLight); + var directionalLight = new THREE.DirectionalLight(0xffffff, 0.8); + directionalLight.position.set(1, 1, 0).normalize(); + (_scene$current2 = scene.current) === null || _scene$current2 === void 0 ? void 0 : _scene$current2.add(directionalLight); + var loader = new OBJLoader(); + loader.load(src, function (data) { + add2Scene(data); + animate(); + }); + }, []); + return /*#__PURE__*/React.createElement("canvas", { + ref: canvasRef, + style: { + width: '100%', + height: '100%' + } + }); +} + +export default /*#__PURE__*/forwardRef(OBJ); \ No newline at end of file diff --git a/dist/esm/PLY/index.d.ts b/dist/esm/PLY/index.d.ts new file mode 100644 index 0000000..6aec91e --- /dev/null +++ b/dist/esm/PLY/index.d.ts @@ -0,0 +1,5 @@ +declare function PLY({ src, backgroundColor }: { + src: string; + backgroundColor: string; +}): JSX.Element; +export default PLY; diff --git a/dist/esm/PLY/index.js b/dist/esm/PLY/index.js new file mode 100644 index 0000000..7e7e32a --- /dev/null +++ b/dist/esm/PLY/index.js @@ -0,0 +1,42 @@ +import React, { useRef, useEffect } from 'react'; +import * as THREE from 'three'; +import { PLYLoader } from 'three/examples/jsm/loaders/PLYLoader'; +import useScene from "../useScene"; + +function PLY(_ref) { + var src = _ref.src, + backgroundColor = _ref.backgroundColor; + var canvasRef = useRef(null); + + var _useScene = useScene(canvasRef, backgroundColor), + add2Scene = _useScene.add2Scene, + scene = _useScene.scene, + animate = _useScene.animate; + + useEffect(function () { + var _scene$current, _scene$current2; + + var ambientLight = new THREE.AmbientLight(0xcccccc, 0.4); + (_scene$current = scene.current) === null || _scene$current === void 0 ? void 0 : _scene$current.add(ambientLight); + var directionalLight = new THREE.DirectionalLight(0xffffff, 0.8); + directionalLight.position.set(1, 1, 0).normalize(); + (_scene$current2 = scene.current) === null || _scene$current2 === void 0 ? void 0 : _scene$current2.add(directionalLight); + var loader = new PLYLoader(); + loader.load(src, function (geometry) { + geometry.computeVertexNormals(); + var material = new THREE.MeshStandardMaterial(); + var mesh = new THREE.Mesh(geometry, material); + add2Scene(mesh); + animate(); + }); + }, []); + return /*#__PURE__*/React.createElement("canvas", { + ref: canvasRef, + style: { + width: '100%', + height: '100%' + } + }); +} + +export default PLY; \ No newline at end of file diff --git a/dist/esm/STL/index.d.ts b/dist/esm/STL/index.d.ts new file mode 100644 index 0000000..3c2b68f --- /dev/null +++ b/dist/esm/STL/index.d.ts @@ -0,0 +1,5 @@ +declare function STL({ src, backgroundColor }: { + src: string; + backgroundColor: string; +}): JSX.Element; +export default STL; diff --git a/dist/esm/STL/index.js b/dist/esm/STL/index.js new file mode 100644 index 0000000..b427718 --- /dev/null +++ b/dist/esm/STL/index.js @@ -0,0 +1,41 @@ +import React, { useRef, useEffect } from 'react'; +import * as THREE from 'three'; +import { STLLoader } from 'three/examples/jsm/loaders/STLLoader'; +import useScene from "../useScene"; + +function STL(_ref) { + var src = _ref.src, + backgroundColor = _ref.backgroundColor; + var canvasRef = useRef(null); + + var _useScene = useScene(canvasRef, backgroundColor), + add2Scene = _useScene.add2Scene, + scene = _useScene.scene, + animate = _useScene.animate; + + useEffect(function () { + var _scene$current, _scene$current2; + + var ambientLight = new THREE.AmbientLight(0xcccccc, 0.4); + (_scene$current = scene.current) === null || _scene$current === void 0 ? void 0 : _scene$current.add(ambientLight); + var directionalLight = new THREE.DirectionalLight(0xffffff, 0.8); + directionalLight.position.set(1, 1, 0).normalize(); + (_scene$current2 = scene.current) === null || _scene$current2 === void 0 ? void 0 : _scene$current2.add(directionalLight); + var loader = new STLLoader(); + loader.load(src, function (geometry) { + var material = new THREE.MeshStandardMaterial(); + var mesh = new THREE.Mesh(geometry, material); + add2Scene(mesh); + animate(); + }); + }, []); + return /*#__PURE__*/React.createElement("canvas", { + ref: canvasRef, + style: { + width: '100%', + height: '100%' + } + }); +} + +export default STL; \ No newline at end of file diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts new file mode 100644 index 0000000..2695273 --- /dev/null +++ b/dist/esm/index.d.ts @@ -0,0 +1,24 @@ +import PLY from './PLY'; +import STL from './STL'; +declare const _default: { + GLTF: import("react").ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; + } & import("react").RefAttributes>; + Collada: import("react").ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; + isRotation?: boolean | undefined; + } & import("react").RefAttributes>; + FBX: import("react").ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; + } & import("react").RefAttributes>; + OBJ: import("react").ForwardRefExoticComponent<{ + src: string; + backgroundColor: string; + } & import("react").RefAttributes>; + PLY: typeof PLY; + STL: typeof STL; +}; +export default _default; diff --git a/dist/esm/index.js b/dist/esm/index.js new file mode 100644 index 0000000..9da53bf --- /dev/null +++ b/dist/esm/index.js @@ -0,0 +1,14 @@ +import GLTF from "./GLTF"; +import Collada from "./Collada"; +import FBX from "./FBX"; +import OBJ from "./OBJ"; +import PLY from "./PLY"; +import STL from "./STL"; +export default { + GLTF: GLTF, + Collada: Collada, + FBX: FBX, + OBJ: OBJ, + PLY: PLY, + STL: STL +}; \ No newline at end of file diff --git a/dist/esm/useScene.d.ts b/dist/esm/useScene.d.ts new file mode 100644 index 0000000..a83992b --- /dev/null +++ b/dist/esm/useScene.d.ts @@ -0,0 +1,9 @@ +import * as THREE from 'three'; +declare function useScene(canvas: any, backgroundColor: string, isRotation?: boolean): { + add2Scene: (scene: any) => void; + scene: import("react").MutableRefObject; + renderer: import("react").MutableRefObject; + render: () => void; + animate: () => void; +}; +export default useScene; diff --git a/dist/esm/useScene.js b/dist/esm/useScene.js new file mode 100644 index 0000000..464e07f --- /dev/null +++ b/dist/esm/useScene.js @@ -0,0 +1,101 @@ +import { useEffect, useCallback, useRef, useMemo } from 'react'; +import * as THREE from 'three'; +import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; +var box = new THREE.Box3(); + +function getSize(object) { + box.setFromObject(object); + return box.getSize(new THREE.Vector3()); +} + +function getCenter(object) { + box.setFromObject(object); + return box.getCenter(new THREE.Vector3()); +} + +function useScene(canvas, backgroundColor, isRotation) { + var sceneRef = useRef(); + var rendererRef = useRef(); + var cameraRef = useRef(); + var timer = useRef(); + var mixer = useRef(); + var model = useRef(); + var clock = useMemo(function () { + return new THREE.Clock(); + }, []); + var render = useCallback(function () { + var _rendererRef$current; + + (_rendererRef$current = rendererRef.current) === null || _rendererRef$current === void 0 ? void 0 : _rendererRef$current.render(sceneRef.current, cameraRef.current); + }, []); + useEffect(function () { + var _canvas$current = canvas.current, + offsetHeight = _canvas$current.offsetHeight, + offsetWidth = _canvas$current.offsetWidth; + var camera = new THREE.PerspectiveCamera(45, offsetWidth / offsetHeight, 0.01, 100000); + cameraRef.current = camera; + camera.position.set(0, 0, 0); + var scene = new THREE.Scene(); + scene.background = new THREE.Color(backgroundColor || 0xbbbbbb); + sceneRef.current = scene; + var renderer = new THREE.WebGLRenderer({ + antialias: true, + canvas: canvas.current + }); + rendererRef.current = renderer; + renderer.setPixelRatio(window.devicePixelRatio); + renderer.setSize(offsetWidth, offsetHeight); + renderer.toneMapping = THREE.ACESFilmicToneMapping; + renderer.toneMappingExposure = 1; + renderer.outputEncoding = THREE.sRGBEncoding; + var controls = new OrbitControls(camera, renderer.domElement); + controls.addEventListener('change', render); // use if there is no animation loop + + controls.update(); + return function () { + cancelAnimationFrame(timer.current); + scene.clear(); + renderer.dispose(); + controls.dispose(); + }; + }, []); + var add2Scene = useCallback(function (scene) { + var _sceneRef$current; + + var distance = getSize(scene).length(); + var center = getCenter(scene); + model.current = scene; + + if (scene.animations[0]) { + mixer.current = new THREE.AnimationMixer(scene); + var action = mixer.current.clipAction(scene.animations[0]); + action.play(); + } + + cameraRef.current && (cameraRef.current.position.z = distance); + scene.position.copy(center.negate()); + (_sceneRef$current = sceneRef.current) === null || _sceneRef$current === void 0 ? void 0 : _sceneRef$current.add(scene); + }, []); + var animate = useCallback(function () { + var _mixer$current; + + timer.current = requestAnimationFrame(animate); + var delta = clock.getDelta(); + (_mixer$current = mixer.current) === null || _mixer$current === void 0 ? void 0 : _mixer$current.update(delta); + + if (isRotation && model.current) { + model.current.rotation.z += delta * 0.5; + } + + render(); + }, []); + return { + add2Scene: add2Scene, + scene: sceneRef, + renderer: rendererRef, + render: render, + animate: animate + }; +} + +export default useScene; \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 703b06d..a918e9e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -10,7 +10,7 @@ footer: Open-source MIT Licensed | Copyright © 2022
```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/docs/umi.js b/docs/umi.js index 897075c..bb68a05 100644 --- a/docs/umi.js +++ b/docs/umi.js @@ -1 +1 @@ -(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=0)})({"++zV":function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:o(arguments[3]);s(e,t,a(n),r)}})},"+2oP":function(e,t,n){"use strict";var r=n("I+eb"),i=n("hh1v"),a=n("6LWA"),o=n("I8vh"),s=n("UMSQ"),u=n("/GqU"),l=n("hBjN"),c=n("tiKp"),f=n("Hd5f"),d=n("rkAj"),h=f("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),v=c("species"),m=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!h||!p},{slice:function(e,t){var n,r,c,f=u(this),d=s(f.length),h=o(e,d),p=o(void 0===t?d:t,d);if(a(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?i(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(f,h,p);for(r=new(void 0===n?Array:n)(g(p-h,0)),c=0;h-1}e.exports=i},"+M1K":function(e,t,n){var r=n("ppGB");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},"+ywr":function(e,t,n){var r=n("dOgj");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"/7QA":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"Deflate",(function(){return xy})),n.d(r,"AsyncDeflate",(function(){return wy})),n.d(r,"deflate",(function(){return _y})),n.d(r,"deflateSync",(function(){return Ey})),n.d(r,"Inflate",(function(){return Sy})),n.d(r,"AsyncInflate",(function(){return ky})),n.d(r,"inflate",(function(){return My})),n.d(r,"inflateSync",(function(){return Ty})),n.d(r,"Gzip",(function(){return Ay})),n.d(r,"AsyncGzip",(function(){return Oy})),n.d(r,"gzip",(function(){return Ry})),n.d(r,"gzipSync",(function(){return Cy})),n.d(r,"Gunzip",(function(){return Ly})),n.d(r,"AsyncGunzip",(function(){return Py})),n.d(r,"gunzip",(function(){return Iy})),n.d(r,"gunzipSync",(function(){return Ny})),n.d(r,"Zlib",(function(){return Dy})),n.d(r,"AsyncZlib",(function(){return jy})),n.d(r,"zlib",(function(){return Fy})),n.d(r,"zlibSync",(function(){return Uy})),n.d(r,"Unzlib",(function(){return By})),n.d(r,"AsyncUnzlib",(function(){return zy})),n.d(r,"unzlib",(function(){return Hy})),n.d(r,"unzlibSync",(function(){return Gy})),n.d(r,"compress",(function(){return Ry})),n.d(r,"AsyncCompress",(function(){return Oy})),n.d(r,"compressSync",(function(){return Cy})),n.d(r,"Compress",(function(){return Ay})),n.d(r,"Decompress",(function(){return Vy})),n.d(r,"AsyncDecompress",(function(){return Wy})),n.d(r,"decompress",(function(){return qy})),n.d(r,"decompressSync",(function(){return Xy})),n.d(r,"DecodeUTF8",(function(){return Qy})),n.d(r,"EncodeUTF8",(function(){return eb})),n.d(r,"strToU8",(function(){return tb})),n.d(r,"strFromU8",(function(){return nb})),n.d(r,"ZipPassThrough",(function(){return cb})),n.d(r,"ZipDeflate",(function(){return fb})),n.d(r,"AsyncZipDeflate",(function(){return db})),n.d(r,"Zip",(function(){return hb})),n.d(r,"zip",(function(){return pb})),n.d(r,"zipSync",(function(){return vb})),n.d(r,"UnzipPassThrough",(function(){return mb})),n.d(r,"UnzipInflate",(function(){return gb})),n.d(r,"AsyncUnzipInflate",(function(){return yb})),n.d(r,"Unzip",(function(){return bb})),n.d(r,"unzip",(function(){return xb})),n.d(r,"unzipSync",(function(){return wb}));var i=n("q1tI"),a=n.n(i);function o(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)}))}}var u=n("Qw5x");function l(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(u["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=n("tJVT"),d=n("QyJ8");function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){if(t&&("object"===Object(d["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=v(e),null===e)break;return e}function g(){return g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=m(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},g.apply(this,arguments)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t>8&255]+Pn[e>>16&255]+Pn[e>>24&255]+"-"+Pn[255&t]+Pn[t>>8&255]+"-"+Pn[t>>16&15|64]+Pn[t>>24&255]+"-"+Pn[63&n|128]+Pn[n>>8&255]+"-"+Pn[n>>16&255]+Pn[n>>24&255]+Pn[255&r]+Pn[r>>8&255]+Pn[r>>16&255]+Pn[r>>24&255];return i.toUpperCase()}function Un(e,t,n){return Math.max(t,Math.min(n,e))}function Bn(e,t){return(e%t+t)%t}function zn(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Hn(e,t,n){return e!==t?(n-e)/(t-e):0}function Gn(e,t,n){return(1-n)*e+n*t}function Vn(e,t,n,r){return Gn(e,t,1-Math.exp(-n*r))}function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t-Math.abs(Bn(e,2*t)-t)}function qn(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Xn(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(6*e-15)+10))}function Yn(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Kn(e,t){return e+Math.random()*(t-e)}function Zn(e){return e*(.5-Math.random())}function Jn(e){return void 0!==e&&(Nn=e%2147483647),Nn=16807*Nn%2147483647,(Nn-1)/2147483646}function $n(e){return e*Dn}function Qn(e){return e*jn}function er(e){return 0===(e&e-1)&&0!==e}function tr(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function nr(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function rr(e,t,n,r,i){var a=Math.cos,o=Math.sin,s=a(n/2),u=o(n/2),l=a((t+r)/2),c=o((t+r)/2),f=a((t-r)/2),d=o((t-r)/2),h=a((r-t)/2),p=o((r-t)/2);switch(i){case"XYX":e.set(s*c,u*f,u*d,s*l);break;case"YZY":e.set(u*d,s*c,u*f,s*l);break;case"ZXZ":e.set(u*f,u*d,s*c,s*l);break;case"XZX":e.set(s*c,u*p,u*h,s*l);break;case"YXY":e.set(u*h,s*c,u*p,s*l);break;case"ZYZ":e.set(u*p,u*h,s*c,s*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}var ir=Object.freeze({__proto__:null,DEG2RAD:Dn,RAD2DEG:jn,generateUUID:Fn,clamp:Un,euclideanModulo:Bn,mapLinear:zn,inverseLerp:Hn,lerp:Gn,damp:Vn,pingpong:Wn,smoothstep:qn,smootherstep:Xn,randInt:Yn,randFloat:Kn,randFloatSpread:Zn,seededRandom:Jn,degToRad:$n,radToDeg:Qn,isPowerOfTwo:er,ceilPowerOfTwo:tr,floorPowerOfTwo:nr,setQuaternionFromProperEuler:rr}),ar=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;M(this,t),this.x=e,this.y=n}return A(t,[{key:"width",get:function(){return this.x},set:function(e){this.x=e}},{key:"height",get:function(){return this.y},set:function(e){this.y=e}},{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value: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}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"cross",value:function(e){return this.x*e.y-this.y*e.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){var e=Math.atan2(-this.y,-this.x)+Math.PI;return e}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this}},{key:"rotateAround",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:e,value:Object(k["a"])().mark((function e(){return Object(k["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:case"end":return e.stop()}}),e,this)}))}]),t}(Symbol.iterator);ar.prototype.isVector2=!0;var or=function(){function e(){M(this,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.")}return A(e,[{key:"set",value:function(e,t,n,r,i,a,o,s,u){var l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=u,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],u=n[1],l=n[4],c=n[7],f=n[2],d=n[5],h=n[8],p=r[0],v=r[3],m=r[6],g=r[1],y=r[4],b=r[7],x=r[2],w=r[5],_=r[8];return i[0]=a*p+o*g+s*x,i[3]=a*v+o*y+s*w,i[6]=a*m+o*b+s*_,i[1]=u*p+l*g+c*x,i[4]=u*v+l*y+c*w,i[7]=u*m+l*b+c*_,i[2]=f*p+d*g+h*x,i[5]=f*v+d*y+h*w,i[8]=f*m+d*b+h*_,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8];return t*a*l-t*o*u-n*i*l+n*o*s+r*i*u-r*a*s}},{key:"invert",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],c=l*a-o*u,f=o*s-l*i,d=u*i-a*s,h=t*c+n*f+r*d;if(0===h)return this.set(0,0,0,0,0,0,0,0,0);var p=1/h;return e[0]=c*p,e[1]=(r*u-l*n)*p,e[2]=(o*n-r*a)*p,e[3]=f*p,e[4]=(l*t-r*s)*p,e[5]=(r*i-o*t)*p,e[6]=d*p,e[7]=(n*s-u*t)*p,e[8]=(a*t-n*i)*p,this}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}},{key:"getNormalMatrix",value:function(e){return this.setFromMatrix4(e).invert().transpose()}},{key:"transposeIntoArray",value:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}},{key:"setUvTransform",value:function(e,t,n,r,i,a,o){var s=Math.cos(i),u=Math.sin(i);return this.set(n*s,n*u,-n*(s*a+u*o)+a+e,-r*u,r*s,-r*(-u*a+s*o)+o+t,0,0,1),this}},{key:"scale",value:function(e,t){var n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this}},{key:"rotate",value:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.elements,i=r[0],a=r[3],o=r[6],s=r[1],u=r[4],l=r[7];return r[0]=t*i+n*s,r[3]=t*a+n*u,r[6]=t*o+n*l,r[1]=-n*i+t*s,r[4]=-n*a+t*u,r[7]=-n*o+t*l,this}},{key:"translate",value:function(e,t){var n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<9;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}]),e}();function sr(e){if(0===e.length)return-1/0;for(var t=e[0],n=1,r=e.length;nt&&(t=e[n]);return t}or.prototype.isMatrix3=!0;var ur;Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function lr(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function cr(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=3735928559^n,i=1103547991^n,a=0;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)}var fr=function(){function e(){M(this,e)}return A(e,null,[{key:"getDataURL",value:function(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;var t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===ur&&(ur=lr("canvas")),ur.width=e.width,ur.height=e.height;var n=ur.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=ur}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}}]),e}(),dr=0,hr=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.DEFAULT_IMAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.DEFAULT_MAPPING,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ne,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ne,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Be,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:He,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:rt,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:Ge,f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:mn;return M(this,n),e=t.call(this),Object.defineProperty(h(e),"id",{value:dr++}),e.uuid=Fn(),e.name="",e.image=r,e.mipmaps=[],e.mapping=i,e.wrapS=a,e.wrapT=o,e.magFilter=s,e.minFilter=u,e.anisotropy=f,e.format=l,e.internalFormat=null,e.type=c,e.offset=new ar(0,0),e.repeat=new ar(1,1),e.center=new ar(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new or,e.generateMipmaps=!0,e.premultiplyAlpha=!1,e.flipY=!0,e.unpackAlignment=4,e.encoding=d,e.userData={},e.version=0,e.onUpdate=null,e.isRenderTargetTexture=!1,e}return A(n,[{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.name=e.name,this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"toJSON",value:function(e){var t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){var r=this.image;if(void 0===r.uuid&&(r.uuid=Fn()),!t&&void 0===e.images[r.uuid]){var i;if(Array.isArray(r)){i=[];for(var a=0,o=r.length;a1)switch(this.wrapS){case Ie:e.x=e.x-Math.floor(e.x);break;case Ne:e.x=e.x<0?0:1;break;case De:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ie:e.y=e.y-Math.floor(e.y);break;case Ne:e.y=e.y<0?0:1;break;case De:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),n}(Ln);function pr(e){return"undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap?fr.getDataURL(e):e.data?{data:Array.prototype.slice.call(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}hr.DEFAULT_IMAGE=void 0,hr.DEFAULT_MAPPING=Te,hr.prototype.isTexture=!0;var vr=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;M(this,t),this.x=e,this.y=n,this.z=r,this.w=i}return A(t,[{key:"width",get:function(){return this.z},set:function(e){this.z=e}},{key:"height",get:function(){return this.w},set:function(e){this.w=e}},{key:"set",value:function(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"setAxisAngleFromQuaternion",value:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}},{key:"setAxisAngleFromRotationMatrix",value:function(e){var t,n,r,i,a=.01,o=.1,s=e.elements,u=s[0],l=s[4],c=s[8],f=s[1],d=s[5],h=s[9],p=s[2],v=s[6],m=s[10];if(Math.abs(l-f)y&&g>b?gb?y1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}},{key:e,value:Object(k["a"])().mark((function e(){return Object(k["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:return e.next=8,this.w;case 8:case"end":return e.stop()}}),e,this)}))}]),t}(Symbol.iterator);vr.prototype.isVector4=!0;var mr=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return M(this,n),i=t.call(this),i.width=e,i.height=r,i.depth=1,i.scissor=new vr(0,0,e,r),i.scissorTest=!1,i.viewport=new vr(0,0,e,r),i.texture=new hr(void 0,a.mapping,a.wrapS,a.wrapT,a.magFilter,a.minFilter,a.format,a.type,a.anisotropy,a.encoding),i.texture.isRenderTargetTexture=!0,i.texture.image={width:e,height:r,depth:1},i.texture.generateMipmaps=void 0!==a.generateMipmaps&&a.generateMipmaps,i.texture.internalFormat=void 0!==a.internalFormat?a.internalFormat:null,i.texture.minFilter=void 0!==a.minFilter?a.minFilter:Be,i.depthBuffer=void 0===a.depthBuffer||a.depthBuffer,i.stencilBuffer=void 0!==a.stencilBuffer&&a.stencilBuffer,i.depthTexture=void 0!==a.depthTexture?a.depthTexture:null,i}return A(n,[{key:"setTexture",value:function(e){e.image={width:this.width,height:this.height,depth:this.depth},this.texture=e}},{key:"setSize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.width===e&&this.height===t&&this.depth===n||(this.width=e,this.height=t,this.depth=n,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.image=b({},this.texture.image),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}}]),n}(Ln);mr.prototype.isWebGLRenderTarget=!0;var gr=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;M(this,n),a=t.call(this,e,r);var o=a.texture;a.texture=[];for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:1;if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(var r=0,i=this.texture.length;r2&&void 0!==arguments[2]?arguments[2]:{};return M(this,n),i=t.call(this,e,r,a),i.samples=4,i.ignoreDepthForMultisampleCopy=void 0===a.ignoreDepth||a.ignoreDepth,i.useRenderToTexture=void 0!==a.useRenderToTexture&&a.useRenderToTexture,i.useRenderbuffer=!1===i.useRenderToTexture,i}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.samples=e.samples,this.useRenderToTexture=e.useRenderToTexture,this.useRenderbuffer=e.useRenderbuffer,this}}]),n}(mr);yr.prototype.isWebGLMultisampleRenderTarget=!0;var br=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;M(this,e),this._x=t,this._y=n,this._z=r,this._w=i}return A(e,[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(e){this._w=e,this._onChangeCallback()}},{key:"set",value:function(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,u=o(n/2),l=o(r/2),c=o(i/2),f=s(n/2),d=s(r/2),h=s(i/2);switch(a){case"XYZ":this._x=f*l*c+u*d*h,this._y=u*d*c-f*l*h,this._z=u*l*h+f*d*c,this._w=u*l*c-f*d*h;break;case"YXZ":this._x=f*l*c+u*d*h,this._y=u*d*c-f*l*h,this._z=u*l*h-f*d*c,this._w=u*l*c+f*d*h;break;case"ZXY":this._x=f*l*c-u*d*h,this._y=u*d*c+f*l*h,this._z=u*l*h+f*d*c,this._w=u*l*c-f*d*h;break;case"ZYX":this._x=f*l*c-u*d*h,this._y=u*d*c+f*l*h,this._z=u*l*h-f*d*c,this._w=u*l*c+f*d*h;break;case"YZX":this._x=f*l*c+u*d*h,this._y=u*d*c+f*l*h,this._z=u*l*h-f*d*c,this._w=u*l*c-f*d*h;break;case"XZY":this._x=f*l*c-u*d*h,this._y=u*d*c-f*l*h,this._z=u*l*h+f*d*c,this._w=u*l*c+f*d*h;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!1!==t&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(e,t){var n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],u=t[2],l=t[6],c=t[10],f=n+o+c;if(f>0){var d=.5/Math.sqrt(f+1);this._w=.25/d,this._x=(l-s)*d,this._y=(i-u)*d,this._z=(a-r)*d}else if(n>o&&n>c){var h=2*Math.sqrt(1+n-o-c);this._w=(l-s)/h,this._x=.25*h,this._y=(r+a)/h,this._z=(i+u)/h}else if(o>c){var p=2*Math.sqrt(1+o-n-c);this._w=(i-u)/p,this._x=(r+a)/p,this._y=.25*p,this._z=(s+l)/p}else{var v=2*Math.sqrt(1+c-n-o);this._w=(a-r)/v,this._x=(i+u)/v,this._y=(s+l)/v,this._z=.25*v}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(e,t){var n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}},{key:"angleTo",value:function(e){return 2*Math.acos(Math.abs(Un(this.dot(e),-1,1)))}},{key:"rotateTowards",value:function(e,t){var n=this.angleTo(e);if(0===n)return this;var r=Math.min(1,t/n);return this.slerp(e,r),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)}},{key:"premultiply",value:function(e){return this.multiplyQuaternions(e,this)}},{key:"multiplyQuaternions",value:function(e,t){var n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,u=t._z,l=t._w;return this._x=n*l+a*o+r*u-i*s,this._y=r*l+a*s+i*o-n*u,this._z=i*l+a*u+n*s-r*o,this._w=a*l-n*o-r*s-i*u,this._onChangeCallback(),this}},{key:"slerp",value:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,r=this._y,i=this._z,a=this._w,o=a*e._w+n*e._x+r*e._y+i*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;var s=1-o*o;if(s<=Number.EPSILON){var u=1-t;return this._w=u*a+t*this._w,this._x=u*n+t*this._x,this._y=u*r+t*this._y,this._z=u*i+t*this._z,this.normalize(),this._onChangeCallback(),this}var l=Math.sqrt(s),c=Math.atan2(l,o),f=Math.sin((1-t)*c)/l,d=Math.sin(t*c)/l;return this._w=a*f+this._w*d,this._x=n*f+this._x*d,this._y=r*f+this._y*d,this._z=i*f+this._z*d,this._onChangeCallback(),this}},{key:"slerpQuaternions",value:function(e,t,n){this.copy(e).slerp(t,n)}},{key:"random",value:function(){var e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}},{key:"fromBufferAttribute",value:function(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}}],[{key:"slerp",value:function(e,t,n,r){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(e,t,r)}},{key:"slerpFlat",value:function(e,t,n,r,i,a,o){var s=n[r+0],u=n[r+1],l=n[r+2],c=n[r+3],f=i[a+0],d=i[a+1],h=i[a+2],p=i[a+3];if(0===o)return e[t+0]=s,e[t+1]=u,e[t+2]=l,void(e[t+3]=c);if(1===o)return e[t+0]=f,e[t+1]=d,e[t+2]=h,void(e[t+3]=p);if(c!==p||s!==f||u!==d||l!==h){var v=1-o,m=s*f+u*d+l*h+c*p,g=m>=0?1:-1,y=1-m*m;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,m*g);v=Math.sin(v*x)/b,o=Math.sin(o*x)/b}var w=o*g;if(s=s*v+f*w,u=u*v+d*w,l=l*v+h*w,c=c*v+p*w,v===1-o){var _=1/Math.sqrt(s*s+u*u+l*l+c*c);s*=_,u*=_,l*=_,c*=_}}e[t]=s,e[t+1]=u,e[t+2]=l,e[t+3]=c}},{key:"multiplyQuaternionsFlat",value:function(e,t,n,r,i,a){var o=n[r],s=n[r+1],u=n[r+2],l=n[r+3],c=i[a],f=i[a+1],d=i[a+2],h=i[a+3];return e[t]=o*h+l*c+s*d-u*f,e[t+1]=s*h+l*f+u*c-o*d,e[t+2]=u*h+l*d+o*f-s*c,e[t+3]=l*h-o*c-s*f-u*d,e}}]),e}();br.prototype.isQuaternion=!0;var xr=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;M(this,t),this.x=e,this.y=n,this.z=r}return A(t,[{key:"set",value:function(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"multiplyVectors",value:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}},{key:"applyEuler",value:function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(_r.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(_r.setFromAxisAngle(e,t))}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}},{key:"applyNormalMatrix",value:function(e){return this.applyMatrix3(e).normalize()}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}},{key:"applyQuaternion",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,u=s*t+a*r-o*n,l=s*n+o*t-i*r,c=s*r+i*n-a*t,f=-i*t-a*n-o*r;return this.x=u*s+f*-i+l*-o-c*-a,this.y=l*s+f*-a+c*-i-u*-o,this.z=c*s+f*-o+u*-a-l*-i,this}},{key:"project",value:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}},{key:"unproject",value:function(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}},{key:"transformDirection",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value: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}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}},{key:"cross",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)}},{key:"crossVectors",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}},{key:"projectOnVector",value:function(e){var t=e.lengthSq();if(0===t)return this.set(0,0,0);var n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}},{key:"projectOnPlane",value:function(e){return wr.copy(this).projectOnVector(e),this.sub(wr)}},{key:"reflect",value:function(e){return this.sub(wr.copy(e).multiplyScalar(2*this.dot(e)))}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var n=this.dot(e)/t;return Math.acos(Un(n,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}},{key:"setFromSpherical",value:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}},{key:"setFromSphericalCoords",value:function(e,t,n){var r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}},{key:"setFromCylindrical",value:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}},{key:"setFromCylindricalCoords",value:function(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}},{key:"setFromMatrixPosition",value:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}},{key:"setFromMatrixScale",value:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}},{key:"setFromMatrixColumn",value:function(e,t){return this.fromArray(e.elements,4*t)}},{key:"setFromMatrix3Column",value:function(e,t){return this.fromArray(e.elements,3*t)}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}},{key:"randomDirection",value:function(){var e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-Math.pow(e,2));return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}},{key:e,value:Object(k["a"])().mark((function e(){return Object(k["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:case"end":return e.stop()}}),e,this)}))}]),t}(Symbol.iterator);xr.prototype.isVector3=!0;var wr=new xr,_r=new br,Er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr(1/0,1/0,1/0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr(-1/0,-1/0,-1/0);M(this,e),this.min=t,this.max=n}return A(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromArray",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0,s=0,u=e.length;si&&(i=l),c>a&&(a=c),f>o&&(o=f)}return this.min.set(t,n,r),this.max.set(i,a,o),this}},{key:"setFromBufferAttribute",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0,s=0,u=e.count;si&&(i=l),c>a&&(a=c),f>o&&(o=f)}return this.min.set(t,n,r),this.max.set(i,a,o),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}},{key:"intersectsSphere",value:function(e){return this.clampPoint(e.center,kr),kr.distanceToSquared(e.center)<=e.radius*e.radius}},{key:"intersectsPlane",value:function(e){var t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}},{key:"intersectsTriangle",value:function(e){if(this.isEmpty())return!1;this.getCenter(Pr),Ir.subVectors(this.max,Pr),Tr.subVectors(e.a,Pr),Ar.subVectors(e.b,Pr),Or.subVectors(e.c,Pr),Rr.subVectors(Ar,Tr),Cr.subVectors(Or,Ar),Lr.subVectors(Tr,Or);var t=[0,-Rr.z,Rr.y,0,-Cr.z,Cr.y,0,-Lr.z,Lr.y,Rr.z,0,-Rr.x,Cr.z,0,-Cr.x,Lr.z,0,-Lr.x,-Rr.y,Rr.x,0,-Cr.y,Cr.x,0,-Lr.y,Lr.x,0];return!!jr(t,Tr,Ar,Or,Ir)&&(t=[1,0,0,0,1,0,0,0,1],!!jr(t,Tr,Ar,Or,Ir)&&(Nr.crossVectors(Rr,Cr),t=[Nr.x,Nr.y,Nr.z],jr(t,Tr,Ar,Or,Ir)))}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){var t=kr.copy(e).clamp(this.min,this.max);return t.sub(e).length()}},{key:"getBoundingSphere",value:function(e){return this.getCenter(e.center),e.radius=.5*this.getSize(kr).length(),e}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"applyMatrix4",value:function(e){return this.isEmpty()||(Sr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Sr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Sr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Sr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Sr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Sr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Sr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Sr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Sr)),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}();Er.prototype.isBox3=!0;var Sr=[new xr,new xr,new xr,new xr,new xr,new xr,new xr,new xr],kr=new xr,Mr=new Er,Tr=new xr,Ar=new xr,Or=new xr,Rr=new xr,Cr=new xr,Lr=new xr,Pr=new xr,Ir=new xr,Nr=new xr,Dr=new xr;function jr(e,t,n,r,i){for(var a=0,o=e.length-3;a<=o;a+=3){Dr.fromArray(e,a);var s=i.x*Math.abs(Dr.x)+i.y*Math.abs(Dr.y)+i.z*Math.abs(Dr.z),u=t.dot(Dr),l=n.dot(Dr),c=r.dot(Dr);if(Math.max(-Math.max(u,l,c),Math.min(u,l,c))>s)return!1}return!0}var Fr=new Er,Ur=new xr,Br=new xr,zr=new xr,Hr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;M(this,e),this.center=t,this.radius=n}return A(e,[{key:"set",value:function(e,t){return this.center.copy(e),this.radius=t,this}},{key:"setFromPoints",value:function(e,t){var n=this.center;void 0!==t?n.copy(t):Fr.setFromPoints(e).getCenter(n);for(var r=0,i=0,a=e.length;ithis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}},{key:"getBoundingBox",value:function(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}},{key:"applyMatrix4",value:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}},{key:"translate",value:function(e){return this.center.add(e),this}},{key:"expandByPoint",value:function(e){zr.subVectors(e,this.center);var t=zr.lengthSq();if(t>this.radius*this.radius){var n=Math.sqrt(t),r=.5*(n-this.radius);this.center.add(zr.multiplyScalar(r/n)),this.radius+=r}return this}},{key:"union",value:function(e){return Br.subVectors(e.center,this.center).normalize().multiplyScalar(e.radius),this.expandByPoint(Ur.copy(e.center).add(Br)),this.expandByPoint(Ur.copy(e.center).sub(Br)),this}},{key:"equals",value:function(e){return e.center.equals(this.center)&&e.radius===this.radius}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Gr=new xr,Vr=new xr,Wr=new xr,qr=new xr,Xr=new xr,Yr=new xr,Kr=new xr,Zr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr(0,0,-1);M(this,e),this.origin=t,this.direction=n}return A(e,[{key:"set",value:function(e,t){return this.origin.copy(e),this.direction.copy(t),this}},{key:"copy",value:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}},{key:"at",value:function(e,t){return t.copy(this.direction).multiplyScalar(e).add(this.origin)}},{key:"lookAt",value:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this}},{key:"recast",value:function(e){return this.origin.copy(this.at(e,Gr)),this}},{key:"closestPointToPoint",value:function(e,t){t.subVectors(e,this.origin);var n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}},{key:"distanceToPoint",value:function(e){return Math.sqrt(this.distanceSqToPoint(e))}},{key:"distanceSqToPoint",value:function(e){var t=Gr.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Gr.copy(this.direction).multiplyScalar(t).add(this.origin),Gr.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,n,r){Vr.copy(e).add(t).multiplyScalar(.5),Wr.copy(t).sub(e).normalize(),qr.copy(this.origin).sub(Vr);var i,a,o,s,u=.5*e.distanceTo(t),l=-this.direction.dot(Wr),c=qr.dot(this.direction),f=-qr.dot(Wr),d=qr.lengthSq(),h=Math.abs(1-l*l);if(h>0)if(i=l*f-c,a=l*c-f,s=u*h,i>=0)if(a>=-s)if(a<=s){var p=1/h;i*=p,a*=p,o=i*(i+l*a+2*c)+a*(l*i+a+2*f)+d}else a=u,i=Math.max(0,-(l*a+c)),o=-i*i+a*(a+2*f)+d;else a=-u,i=Math.max(0,-(l*a+c)),o=-i*i+a*(a+2*f)+d;else a<=-s?(i=Math.max(0,-(-l*u+c)),a=i>0?-u:Math.min(Math.max(-u,-f),u),o=-i*i+a*(a+2*f)+d):a<=s?(i=0,a=Math.min(Math.max(-u,-f),u),o=a*(a+2*f)+d):(i=Math.max(0,-(l*u+c)),a=i>0?u:Math.min(Math.max(-u,-f),u),o=-i*i+a*(a+2*f)+d);else a=l>0?-u:u,i=Math.max(0,-(l*a+c)),o=-i*i+a*(a+2*f)+d;return n&&n.copy(this.direction).multiplyScalar(i).add(this.origin),r&&r.copy(Wr).multiplyScalar(a).add(Vr),o}},{key:"intersectSphere",value:function(e,t){Gr.subVectors(e.center,this.origin);var n=Gr.dot(this.direction),r=Gr.dot(Gr)-n*n,i=e.radius*e.radius;if(r>i)return null;var a=Math.sqrt(i-r),o=n-a,s=n+a;return o<0&&s<0?null:o<0?this.at(s,t):this.at(o,t)}},{key:"intersectsSphere",value:function(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}},{key:"distanceToPlane",value:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}},{key:"intersectPlane",value:function(e,t){var n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}},{key:"intersectsPlane",value:function(e){var t=e.distanceToPoint(this.origin);if(0===t)return!0;var n=e.normal.dot(this.direction);return n*t<0}},{key:"intersectBox",value:function(e,t){var n,r,i,a,o,s,u=1/this.direction.x,l=1/this.direction.y,c=1/this.direction.z,f=this.origin;return u>=0?(n=(e.min.x-f.x)*u,r=(e.max.x-f.x)*u):(n=(e.max.x-f.x)*u,r=(e.min.x-f.x)*u),l>=0?(i=(e.min.y-f.y)*l,a=(e.max.y-f.y)*l):(i=(e.max.y-f.y)*l,a=(e.min.y-f.y)*l),n>a||i>r?null:((i>n||n!==n)&&(n=i),(a=0?(o=(e.min.z-f.z)*c,s=(e.max.z-f.z)*c):(o=(e.max.z-f.z)*c,s=(e.min.z-f.z)*c),n>s||o>r?null:((o>n||n!==n)&&(n=o),(s=0?n:r,t)))}},{key:"intersectsBox",value:function(e){return null!==this.intersectBox(e,Gr)}},{key:"intersectTriangle",value:function(e,t,n,r,i){Xr.subVectors(t,e),Yr.subVectors(n,e),Kr.crossVectors(Xr,Yr);var a,o=this.direction.dot(Kr);if(o>0){if(r)return null;a=1}else{if(!(o<0))return null;a=-1,o=-o}qr.subVectors(this.origin,e);var s=a*this.direction.dot(Yr.crossVectors(qr,Yr));if(s<0)return null;var u=a*this.direction.dot(Xr.cross(qr));if(u<0)return null;if(s+u>o)return null;var l=-a*qr.dot(Kr);return l<0?null:this.at(l/o,i)}},{key:"applyMatrix4",value:function(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}},{key:"equals",value:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Jr=function(){function e(){M(this,e),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.")}return A(e,[{key:"set",value:function(e,t,n,r,i,a,o,s,u,l,c,f,d,h,p,v){var m=this.elements;return m[0]=e,m[4]=t,m[8]=n,m[12]=r,m[1]=i,m[5]=a,m[9]=o,m[13]=s,m[2]=u,m[6]=l,m[10]=c,m[14]=f,m[3]=d,m[7]=h,m[11]=p,m[15]=v,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new e).fromArray(this.elements)}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}},{key:"copyPosition",value:function(e){var t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}},{key:"setFromMatrix3",value:function(e){var t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(e){var t=this.elements,n=e.elements,r=1/$r.setFromMatrixColumn(e,0).length(),i=1/$r.setFromMatrixColumn(e,1).length(),a=1/$r.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromEuler",value:function(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),u=Math.sin(r),l=Math.cos(i),c=Math.sin(i);if("XYZ"===e.order){var f=a*l,d=a*c,h=o*l,p=o*c;t[0]=s*l,t[4]=-s*c,t[8]=u,t[1]=d+h*u,t[5]=f-p*u,t[9]=-o*s,t[2]=p-f*u,t[6]=h+d*u,t[10]=a*s}else if("YXZ"===e.order){var v=s*l,m=s*c,g=u*l,y=u*c;t[0]=v+y*o,t[4]=g*o-m,t[8]=a*u,t[1]=a*c,t[5]=a*l,t[9]=-o,t[2]=m*o-g,t[6]=y+v*o,t[10]=a*s}else if("ZXY"===e.order){var b=s*l,x=s*c,w=u*l,_=u*c;t[0]=b-_*o,t[4]=-a*c,t[8]=w+x*o,t[1]=x+w*o,t[5]=a*l,t[9]=_-b*o,t[2]=-a*u,t[6]=o,t[10]=a*s}else if("ZYX"===e.order){var E=a*l,S=a*c,k=o*l,M=o*c;t[0]=s*l,t[4]=k*u-S,t[8]=E*u+M,t[1]=s*c,t[5]=M*u+E,t[9]=S*u-k,t[2]=-u,t[6]=o*s,t[10]=a*s}else if("YZX"===e.order){var T=a*s,A=a*u,O=o*s,R=o*u;t[0]=s*l,t[4]=R-T*c,t[8]=O*c+A,t[1]=c,t[5]=a*l,t[9]=-o*l,t[2]=-u*l,t[6]=A*c+O,t[10]=T-R*c}else if("XZY"===e.order){var C=a*s,L=a*u,P=o*s,I=o*u;t[0]=s*l,t[4]=-c,t[8]=u*l,t[1]=C*c+I,t[5]=a*l,t[9]=L*c-P,t[2]=P*c-L,t[6]=o*l,t[10]=I*c+C}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(e){return this.compose(ei,e,ti)}},{key:"lookAt",value:function(e,t,n){var r=this.elements;return ii.subVectors(e,t),0===ii.lengthSq()&&(ii.z=1),ii.normalize(),ni.crossVectors(n,ii),0===ni.lengthSq()&&(1===Math.abs(n.z)?ii.x+=1e-4:ii.z+=1e-4,ii.normalize(),ni.crossVectors(n,ii)),ni.normalize(),ri.crossVectors(ii,ni),r[0]=ni.x,r[4]=ri.x,r[8]=ii.x,r[1]=ni.y,r[5]=ri.y,r[9]=ii.y,r[2]=ni.z,r[6]=ri.z,r[10]=ii.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],u=n[12],l=n[1],c=n[5],f=n[9],d=n[13],h=n[2],p=n[6],v=n[10],m=n[14],g=n[3],y=n[7],b=n[11],x=n[15],w=r[0],_=r[4],E=r[8],S=r[12],k=r[1],M=r[5],T=r[9],A=r[13],O=r[2],R=r[6],C=r[10],L=r[14],P=r[3],I=r[7],N=r[11],D=r[15];return i[0]=a*w+o*k+s*O+u*P,i[4]=a*_+o*M+s*R+u*I,i[8]=a*E+o*T+s*C+u*N,i[12]=a*S+o*A+s*L+u*D,i[1]=l*w+c*k+f*O+d*P,i[5]=l*_+c*M+f*R+d*I,i[9]=l*E+c*T+f*C+d*N,i[13]=l*S+c*A+f*L+d*D,i[2]=h*w+p*k+v*O+m*P,i[6]=h*_+p*M+v*R+m*I,i[10]=h*E+p*T+v*C+m*N,i[14]=h*S+p*A+v*L+m*D,i[3]=g*w+y*k+b*O+x*P,i[7]=g*_+y*M+b*R+x*I,i[11]=g*E+y*T+b*C+x*N,i[15]=g*S+y*A+b*L+x*D,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],u=e[13],l=e[2],c=e[6],f=e[10],d=e[14],h=e[3],p=e[7],v=e[11],m=e[15];return h*(+i*s*c-r*u*c-i*o*f+n*u*f+r*o*d-n*s*d)+p*(+t*s*d-t*u*f+i*a*f-r*a*d+r*u*l-i*s*l)+v*(+t*u*c-t*o*d-i*a*c+n*a*d+i*o*l-n*u*l)+m*(-r*o*l-t*s*c+t*o*f+r*a*c-n*a*f+n*s*l)}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}},{key:"setPosition",value:function(e,t,n){var r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}},{key:"invert",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],c=e[9],f=e[10],d=e[11],h=e[12],p=e[13],v=e[14],m=e[15],g=c*v*u-p*f*u+p*s*d-o*v*d-c*s*m+o*f*m,y=h*f*u-l*v*u-h*s*d+a*v*d+l*s*m-a*f*m,b=l*p*u-h*c*u+h*o*d-a*p*d-l*o*m+a*c*m,x=h*c*s-l*p*s-h*o*f+a*p*f+l*o*v-a*c*v,w=t*g+n*y+r*b+i*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var _=1/w;return e[0]=g*_,e[1]=(p*f*i-c*v*i-p*r*d+n*v*d+c*r*m-n*f*m)*_,e[2]=(o*v*i-p*s*i+p*r*u-n*v*u-o*r*m+n*s*m)*_,e[3]=(c*s*i-o*f*i-c*r*u+n*f*u+o*r*d-n*s*d)*_,e[4]=y*_,e[5]=(l*v*i-h*f*i+h*r*d-t*v*d-l*r*m+t*f*m)*_,e[6]=(h*s*i-a*v*i-h*r*u+t*v*u+a*r*m-t*s*m)*_,e[7]=(a*f*i-l*s*i+l*r*u-t*f*u-a*r*d+t*s*d)*_,e[8]=b*_,e[9]=(h*c*i-l*p*i-h*n*d+t*p*d+l*n*m-t*c*m)*_,e[10]=(a*p*i-h*o*i+h*n*u-t*p*u-a*n*m+t*o*m)*_,e[11]=(l*o*i-a*c*i-l*n*u+t*c*u+a*n*d-t*o*d)*_,e[12]=x*_,e[13]=(l*p*r-h*c*r+h*n*f-t*p*f-l*n*v+t*c*v)*_,e[14]=(h*o*r-a*p*r-h*n*s+t*p*s+a*n*v-t*o*v)*_,e[15]=(a*c*r-l*o*r+l*n*s-t*c*s-a*n*f+t*o*f)*_,this}},{key:"scale",value:function(e){var t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}},{key:"getMaxScaleOnAxis",value:function(){var e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}},{key:"makeTranslation",value:function(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}},{key:"makeRotationX",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}},{key:"makeRotationY",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,u=i*a,l=i*o;return this.set(u*a+n,u*o-r*s,u*s+r*o,0,u*o+r*s,l*o+n,l*s-r*a,0,u*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}},{key:"makeScale",value:function(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}},{key:"makeShear",value:function(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}},{key:"compose",value:function(e,t,n){var r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,u=i+i,l=a+a,c=o+o,f=i*u,d=i*l,h=i*c,p=a*l,v=a*c,m=o*c,g=s*u,y=s*l,b=s*c,x=n.x,w=n.y,_=n.z;return r[0]=(1-(p+m))*x,r[1]=(d+b)*x,r[2]=(h-y)*x,r[3]=0,r[4]=(d-b)*w,r[5]=(1-(f+m))*w,r[6]=(v+g)*w,r[7]=0,r[8]=(h+y)*_,r[9]=(v-g)*_,r[10]=(1-(f+p))*_,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}},{key:"decompose",value:function(e,t,n){var r=this.elements,i=$r.set(r[0],r[1],r[2]).length(),a=$r.set(r[4],r[5],r[6]).length(),o=$r.set(r[8],r[9],r[10]).length(),s=this.determinant();s<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],Qr.copy(this);var u=1/i,l=1/a,c=1/o;return Qr.elements[0]*=u,Qr.elements[1]*=u,Qr.elements[2]*=u,Qr.elements[4]*=l,Qr.elements[5]*=l,Qr.elements[6]*=l,Qr.elements[8]*=c,Qr.elements[9]*=c,Qr.elements[10]*=c,t.setFromRotationMatrix(Qr),n.x=i,n.y=a,n.z=o,this}},{key:"makePerspective",value:function(e,t,n,r,i,a){void 0===a&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var o=this.elements,s=2*i/(t-e),u=2*i/(n-r),l=(t+e)/(t-e),c=(n+r)/(n-r),f=-(a+i)/(a-i),d=-2*a*i/(a-i);return o[0]=s,o[4]=0,o[8]=l,o[12]=0,o[1]=0,o[5]=u,o[9]=c,o[13]=0,o[2]=0,o[6]=0,o[10]=f,o[14]=d,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}},{key:"makeOrthographic",value:function(e,t,n,r,i,a){var o=this.elements,s=1/(t-e),u=1/(n-r),l=1/(a-i),c=(t+e)*s,f=(n+r)*u,d=(a+i)*l;return o[0]=2*s,o[4]=0,o[8]=0,o[12]=-c,o[1]=0,o[5]=2*u,o[9]=0,o[13]=-f,o[2]=0,o[6]=0,o[10]=-2*l,o[14]=-d,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<16;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}]),e}();Jr.prototype.isMatrix4=!0;var $r=new xr,Qr=new Jr,ei=new xr(0,0,0),ti=new xr(1,1,1),ni=new xr,ri=new xr,ii=new xr,ai=new Jr,oi=new br,si=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.DefaultOrder;M(this,e),this._x=t,this._y=n,this._z=r,this._order=i}return A(e,[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(e){this._order=e,this._onChangeCallback()}},{key:"set",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],u=r[5],l=r[9],c=r[2],f=r[6],d=r[10];switch(t){case"XYZ":this._y=Math.asin(Un(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,d),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Un(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,d),this._z=Math.atan2(s,u)):(this._y=Math.atan2(-c,i),this._z=0);break;case"ZXY":this._x=Math.asin(Un(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-c,d),this._z=Math.atan2(-a,u)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Un(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(f,d),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,u));break;case"YZX":this._z=Math.asin(Un(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,u),this._y=Math.atan2(-c,i)):(this._x=0,this._y=Math.atan2(o,d));break;case"XZY":this._z=Math.asin(-Un(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(e,t,n){return ai.makeRotationFromQuaternion(e),this.setFromRotationMatrix(ai,t,n)}},{key:"setFromVector3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(e.x,e.y,e.z,t)}},{key:"reorder",value:function(e){return oi.setFromEuler(this),this.setFromQuaternion(oi,e)}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}},{key:"fromArray",value:function(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}},{key:"toVector3",value:function(e){return e?e.set(this._x,this._y,this._z):new xr(this._x,this._y,this._z)}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}}]),e}();si.prototype.isEuler=!0,si.DefaultOrder="XYZ",si.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];var ui=function(){function e(){M(this,e),this.mask=1}return A(e,[{key:"set",value:function(e){this.mask=(1<>>0}},{key:"enable",value:function(e){this.mask|=1<1){for(var t=0;t1){for(var t=0;t0){r.children=[];for(var h=0;h0){r.animations=[];for(var p=0;p0&&(n.geometries=m),g.length>0&&(n.materials=g),y.length>0&&(n.textures=y),b.length>0&&(n.images=b),x.length>0&&(n.shapes=x),w.length>0&&(n.skeletons=w),_.length>0&&(n.animations=_)}return n.object=r,n;function E(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}}},{key:"clone",value:function(e){return(new this.constructor).copy(this,e)}},{key:"copy",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new xr;M(this,e),this.a=t,this.b=n,this.c=r}return A(e,[{key:"set",value:function(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}},{key:"setFromPointsAndIndices",value:function(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}},{key:"setFromAttributeAndIndices",value:function(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}},{key:"getArea",value:function(){return Ei.subVectors(this.c,this.b),Si.subVectors(this.a,this.b),.5*Ei.cross(Si).length()}},{key:"getMidpoint",value:function(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(t){return e.getNormal(this.a,this.b,this.c,t)}},{key:"getPlane",value:function(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}},{key:"getUV",value:function(t,n,r,i,a){return e.getUV(t,this.a,this.b,this.c,n,r,i,a)}},{key:"containsPoint",value:function(t){return e.containsPoint(t,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(t){return e.isFrontFacing(this.a,this.b,this.c,t)}},{key:"intersectsBox",value:function(e){return e.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(e,t){var n,r,i=this.a,a=this.b,o=this.c;Ti.subVectors(a,i),Ai.subVectors(o,i),Ri.subVectors(e,i);var s=Ti.dot(Ri),u=Ai.dot(Ri);if(s<=0&&u<=0)return t.copy(i);Ci.subVectors(e,a);var l=Ti.dot(Ci),c=Ai.dot(Ci);if(l>=0&&c<=l)return t.copy(a);var f=s*c-l*u;if(f<=0&&s>=0&&l<=0)return n=s/(s-l),t.copy(i).addScaledVector(Ti,n);Li.subVectors(e,o);var d=Ti.dot(Li),h=Ai.dot(Li);if(h>=0&&d<=h)return t.copy(o);var p=d*u-s*h;if(p<=0&&u>=0&&h<=0)return r=u/(u-h),t.copy(i).addScaledVector(Ai,r);var v=l*h-d*c;if(v<=0&&c-l>=0&&d-h>=0)return Oi.subVectors(o,a),r=(c-l)/(c-l+(d-h)),t.copy(a).addScaledVector(Oi,r);var m=1/(v+p+f);return n=p*m,r=f*m,t.copy(i).addScaledVector(Ti,n).addScaledVector(Ai,r)}},{key:"equals",value:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}],[{key:"getNormal",value:function(e,t,n,r){r.subVectors(n,t),Ei.subVectors(e,t),r.cross(Ei);var i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}},{key:"getBarycoord",value:function(e,t,n,r,i){Ei.subVectors(r,t),Si.subVectors(n,t),ki.subVectors(e,t);var a=Ei.dot(Ei),o=Ei.dot(Si),s=Ei.dot(ki),u=Si.dot(Si),l=Si.dot(ki),c=a*u-o*o;if(0===c)return i.set(-2,-1,-1);var f=1/c,d=(u*s-o*l)*f,h=(a*l-o*s)*f;return i.set(1-d-h,h,d)}},{key:"containsPoint",value:function(e,t,n,r){return this.getBarycoord(e,t,n,r,Mi),Mi.x>=0&&Mi.y>=0&&Mi.x+Mi.y<=1}},{key:"getUV",value:function(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Mi),s.set(0,0),s.addScaledVector(i,Mi.x),s.addScaledVector(a,Mi.y),s.addScaledVector(o,Mi.z),s}},{key:"isFrontFacing",value:function(e,t,n,r){return Ei.subVectors(n,t),Si.subVectors(e,t),Ei.cross(Si).dot(r)<0}}]),e}(),Ii=0,Ni=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),Object.defineProperty(h(e),"id",{value:Ii++}),e.uuid=Fn(),e.name="",e.type="Material",e.fog=!0,e.blending=G,e.side=F,e.vertexColors=!1,e.opacity=1,e.format=rt,e.transparent=!1,e.blendSrc=re,e.blendDst=ie,e.blendEquation=Y,e.blendSrcAlpha=null,e.blendDstAlpha=null,e.blendEquationAlpha=null,e.depthFunc=he,e.depthTest=!0,e.depthWrite=!0,e.stencilWriteMask=255,e.stencilFunc=An,e.stencilRef=0,e.stencilFuncMask=255,e.stencilFail=Tn,e.stencilZFail=Tn,e.stencilZPass=Tn,e.stencilWrite=!1,e.clippingPlanes=null,e.clipIntersection=!1,e.clipShadows=!1,e.shadowSide=null,e.colorWrite=!0,e.precision=null,e.polygonOffset=!1,e.polygonOffsetFactor=0,e.polygonOffsetUnits=0,e.dithering=!1,e.alphaToCoverage=!1,e.premultipliedAlpha=!1,e.visible=!0,e.toneMapped=!0,e.userData={},e.version=0,e._alphaTest=0,e}return A(n,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(e){this._alphaTest>0!==e>0&&this.version++,this._alphaTest=e}},{key:"onBuild",value:function(){}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(e){if(void 0!==e)for(var t in e){var n=e[t];if(void 0!==n)if("shading"!==t){var r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}else console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===z;else console.warn("THREE.Material: '"+t+"' parameter is undefined.")}}},{key:"toJSON",value:function(e){var t=void 0===e||"string"===typeof e;t&&(e={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==G&&(n.blending=this.blending),this.side!==F&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.format!==rt&&(n.format=this.format),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t){var i=r(e.textures),a=r(e.images);i.length>0&&(n.textures=i),a.length>0&&(n.images=a)}return n}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.format=e.format,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;var t=e.clippingPlanes,n=null;if(null!==t){var r=t.length;n=new Array(r);for(var i=0;i!==r;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),n}(Ln);Ni.prototype.isMaterial=!0;var Di={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ji={h:0,s:0,l:0},Fi={h:0,s:0,l:0};function Ui(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function Bi(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function zi(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var Hi=function(){function e(t,n,r){return M(this,e),void 0===n&&void 0===r?this.set(t):this.setRGB(t,n,r)}return A(e,[{key:"set",value:function(e){return e&&e.isColor?this.copy(e):"number"===typeof e?this.setHex(e):"string"===typeof e&&this.setStyle(e),this}},{key:"setScalar",value:function(e){return this.r=e,this.g=e,this.b=e,this}},{key:"setHex",value:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this}},{key:"setRGB",value:function(e,t,n){return this.r=e,this.g=t,this.b=n,this}},{key:"setHSL",value:function(e,t,n){if(e=Bn(e,1),t=Un(t,0,1),n=Un(n,0,1),0===t)this.r=this.g=this.b=n;else{var r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Ui(i,r,e+1/3),this.g=Ui(i,r,e),this.b=Ui(i,r,e-1/3)}return this}},{key:"setStyle",value:function(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){var r,i=n[1],a=n[2];switch(i){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,t(r[4]),this;if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,t(r[4]),this;break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){var o=parseFloat(r[1])/360,s=parseInt(r[2],10)/100,u=parseInt(r[3],10)/100;return t(r[4]),this.setHSL(o,s,u)}break}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(e)){var l=n[1],c=l.length;if(3===c)return this.r=parseInt(l.charAt(0)+l.charAt(0),16)/255,this.g=parseInt(l.charAt(1)+l.charAt(1),16)/255,this.b=parseInt(l.charAt(2)+l.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(l.charAt(0)+l.charAt(1),16)/255,this.g=parseInt(l.charAt(2)+l.charAt(3),16)/255,this.b=parseInt(l.charAt(4)+l.charAt(5),16)/255,this}return e&&e.length>0?this.setColorName(e):this}},{key:"setColorName",value:function(e){var t=Di[e.toLowerCase()];return void 0!==t?this.setHex(t):console.warn("THREE.Color: Unknown color "+e),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}},{key:"copyGammaToLinear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return this.r=Math.pow(e.r,t),this.g=Math.pow(e.g,t),this.b=Math.pow(e.b,t),this}},{key:"copyLinearToGamma",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=t>0?1/t:1;return this.r=Math.pow(e.r,n),this.g=Math.pow(e.g,n),this.b=Math.pow(e.b,n),this}},{key:"convertGammaToLinear",value:function(e){return this.copyGammaToLinear(this,e),this}},{key:"convertLinearToGamma",value:function(e){return this.copyLinearToGamma(this,e),this}},{key:"copySRGBToLinear",value:function(e){return this.r=Bi(e.r),this.g=Bi(e.g),this.b=Bi(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=zi(e.r),this.g=zi(e.g),this.b=zi(e.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}},{key:"getHexString",value:function(){return("000000"+this.getHex().toString(16)).slice(-6)}},{key:"getHSL",value:function(e){var t,n,r=this.r,i=this.g,a=this.b,o=Math.max(r,i,a),s=Math.min(r,i,a),u=(s+o)/2;if(s===o)t=0,n=0;else{var l=o-s;switch(n=u<=.5?l/(o+s):l/(2-o-s),o){case r:t=(i-a)/l+(i1&&void 0!==arguments[1]?arguments[1]:0;return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}},{key:"fromBufferAttribute",value:function(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),!0===e.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}},{key:"toJSON",value:function(){return this.getHex()}}]),e}();Hi.NAMES=Di,Hi.prototype.isColor=!0,Hi.prototype.r=1,Hi.prototype.g=1,Hi.prototype.b=1;var Gi=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshBasicMaterial",r.color=new Hi(16777215),r.map=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.specularMap=null,r.alphaMap=null,r.envMap=null,r.combine=ye,r.reflectivity=1,r.refractionRatio=.98,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),n}(Ni);Gi.prototype.isMeshBasicMaterial=!0;var Vi=new xr,Wi=new ar,qi=function(){function e(t,n,r){if(M(this,e),Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=n,this.count=void 0!==t?t.length/n:0,this.normalized=!0===r,this.usage=On,this.updateRange={offset:0,count:-1},this.version=0}return A(e,[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"copy",value:function(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}},{key:"copyAt",value:function(e,t,n){e*=this.itemSize,n*=t.itemSize;for(var r=0,i=this.itemSize;r1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"getX",value:function(e){return this.array[e*this.itemSize]}},{key:"setX",value:function(e,t){return this.array[e*this.itemSize]=t,this}},{key:"getY",value:function(e){return this.array[e*this.itemSize+1]}},{key:"setY",value:function(e,t){return this.array[e*this.itemSize+1]=t,this}},{key:"getZ",value:function(e){return this.array[e*this.itemSize+2]}},{key:"setZ",value:function(e,t){return this.array[e*this.itemSize+2]=t,this}},{key:"getW",value:function(e){return this.array[e*this.itemSize+3]}},{key:"setW",value:function(e,t){return this.array[e*this.itemSize+3]=t,this}},{key:"setXY",value:function(e,t,n){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this}},{key:"setXYZ",value:function(e,t,n,r){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}},{key:"setXYZW",value:function(e,t,n,r,i){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==On&&(e.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(e.updateRange=this.updateRange),e}}]),e}();qi.prototype.isBufferAttribute=!0;var Xi=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Uint16Array(e),r,i)}return A(n)}(qi),Yi=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Uint32Array(e),r,i)}return A(n)}(qi),Ki=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Uint16Array(e),r,i)}return A(n)}(qi);Ki.prototype.isFloat16BufferAttribute=!0;var Zi=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Float32Array(e),r,i)}return A(n)}(qi),Ji=0,$i=new Jr,Qi=new _i,ea=new xr,ta=new Er,na=new Er,ra=new xr,ia=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),Object.defineProperty(h(e),"id",{value:Ji++}),e.uuid=Fn(),e.name="",e.type="BufferGeometry",e.index=null,e.attributes={},e.morphAttributes={},e.morphTargetsRelative=!1,e.groups=[],e.boundingBox=null,e.boundingSphere=null,e.drawRange={start:0,count:1/0},e.userData={},e}return A(n,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){return Array.isArray(e)?this.index=new(sr(e)>65535?Yi:Xi)(e,1):this.index=e,this}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setAttribute",value:function(e,t){return this.attributes[e]=t,this}},{key:"deleteAttribute",value:function(e){return delete this.attributes[e],this}},{key:"hasAttribute",value:function(e){return void 0!==this.attributes[e]}},{key:"addGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:e,count:t,materialIndex:n})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(e,t){this.drawRange.start=e,this.drawRange.count=t}},{key:"applyMatrix4",value:function(e){var t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){var r=(new or).getNormalMatrix(e);n.applyNormalMatrix(r),n.needsUpdate=!0}var i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(e){return $i.makeRotationFromQuaternion(e),this.applyMatrix4($i),this}},{key:"rotateX",value:function(e){return $i.makeRotationX(e),this.applyMatrix4($i),this}},{key:"rotateY",value:function(e){return $i.makeRotationY(e),this.applyMatrix4($i),this}},{key:"rotateZ",value:function(e){return $i.makeRotationZ(e),this.applyMatrix4($i),this}},{key:"translate",value:function(e,t,n){return $i.makeTranslation(e,t,n),this.applyMatrix4($i),this}},{key:"scale",value:function(e,t,n){return $i.makeScale(e,t,n),this.applyMatrix4($i),this}},{key:"lookAt",value:function(e){return Qi.lookAt(e),Qi.updateMatrix(),this.applyMatrix4(Qi.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(ea).negate(),this.translate(ea.x,ea.y,ea.z),this}},{key:"setFromPoints",value:function(e){for(var t=[],n=0,r=e.length;n0&&(e.userData=this.userData),void 0!==this.parameters){var t=this.parameters;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};var r=this.index;null!==r&&(e.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var i=this.attributes;for(var a in i){var o=i[a];e.data.attributes[a]=o.toJSON(e.data)}var s={},u=!1;for(var l in this.morphAttributes){for(var c=this.morphAttributes[l],f=[],d=0,h=c.length;d0&&(s[l]=f,u=!0)}u&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);var v=this.groups;v.length>0&&(e.data.groups=JSON.parse(JSON.stringify(v)));var m=this.boundingSphere;return null!==m&&(e.data.boundingSphere={center:m.center.toArray(),radius:m.radius}),e}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var t={};this.name=e.name;var n=e.index;null!==n&&this.setIndex(n.clone(t));var r=e.attributes;for(var i in r){var a=r[i];this.setAttribute(i,a.clone(t))}var o=e.morphAttributes;for(var s in o){for(var u=[],l=o[s],c=0,f=l.length;c0&&void 0!==arguments[0]?arguments[0]:new ia,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Gi;return M(this,n),e=t.call(this),e.type="Mesh",e.geometry=r,e.material=i,e.updateMorphTargets(),e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}},{key:"updateMorphTargets",value:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}},{key:"raycast",value:function(e,t){var n,r=this.geometry,i=this.material,a=this.matrixWorld;if(void 0!==i&&(null===r.boundingSphere&&r.computeBoundingSphere(),sa.copy(r.boundingSphere),sa.applyMatrix4(a),!1!==e.ray.intersectsSphere(sa)&&(aa.copy(a).invert(),oa.copy(e.ray).applyMatrix4(aa),null===r.boundingBox||!1!==oa.intersectsBox(r.boundingBox))))if(r.isBufferGeometry){var o=r.index,s=r.attributes.position,u=r.morphAttributes.position,l=r.morphTargetsRelative,c=r.attributes.uv,f=r.attributes.uv2,d=r.groups,h=r.drawRange;if(null!==o)if(Array.isArray(i))for(var p=0,v=d.length;pn.far?null:{distance:l,point:wa.clone(),object:e}}function Sa(e,t,n,r,i,a,o,s,u,l,c,f){ua.fromBufferAttribute(i,l),la.fromBufferAttribute(i,c),ca.fromBufferAttribute(i,f);var d=e.morphTargetInfluences;if(a&&d){pa.set(0,0,0),va.set(0,0,0),ma.set(0,0,0);for(var h=0,p=a.length;h0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;M(this,n),e=t.call(this),e.type="BoxGeometry",e.parameters={width:r,height:i,depth:a,widthSegments:o,heightSegments:s,depthSegments:u};var l=h(e);o=Math.floor(o),s=Math.floor(s),u=Math.floor(u);var c=[],f=[],d=[],p=[],v=0,m=0;function g(e,t,n,r,i,a,o,s,u,h,g){for(var y=a/u,b=o/h,x=a/2,w=o/2,_=s/2,E=u+1,S=h+1,k=0,M=0,T=new xr,A=0;A0?1:-1,d.push(T.x,T.y,T.z),p.push(R/u),p.push(1-A/h),k+=1}for(var L=0;L0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;var o={};for(var s in this.extensions)!0===this.extensions[s]&&(o[s]=!0);return Object.keys(o).length>0&&(t.extensions=o),t}}]),n}(Ni);Ca.prototype.isShaderMaterial=!0;var La=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),e.type="Camera",e.matrixWorldInverse=new Jr,e.projectionMatrix=new Jr,e.projectionMatrixInverse=new Jr,e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}},{key:"getWorldDirection",value:function(e){this.updateWorldMatrix(!0,!1);var t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}},{key:"updateMatrixWorld",value:function(e){g(v(n.prototype),"updateMatrixWorld",this).call(this,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}},{key:"updateWorldMatrix",value:function(e,t){g(v(n.prototype),"updateWorldMatrix",this).call(this,e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),n}(_i);La.prototype.isCamera=!0;var Pa=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2e3;return M(this,n),e=t.call(this),e.type="PerspectiveCamera",e.fov=r,e.zoom=1,e.near=a,e.far=o,e.focus=10,e.aspect=i,e.view=null,e.filmGauge=35,e.filmOffset=0,e.updateProjectionMatrix(),e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}},{key:"setFocalLength",value:function(e){var t=.5*this.getFilmHeight()/e;this.fov=2*jn*Math.atan(t),this.updateProjectionMatrix()}},{key:"getFocalLength",value:function(){var e=Math.tan(.5*Dn*this.fov);return.5*this.getFilmHeight()/e}},{key:"getEffectiveFOV",value:function(){return 2*jn*Math.atan(Math.tan(.5*Dn*this.fov)/this.zoom)}},{key:"getFilmWidth",value:function(){return this.filmGauge*Math.min(this.aspect,1)}},{key:"getFilmHeight",value:function(){return this.filmGauge/Math.max(this.aspect,1)}},{key:"setViewOffset",value:function(e,t,n,r,i,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=this.near,t=e*Math.tan(.5*Dn*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(null!==this.view&&this.view.enabled){var o=a.fullWidth,s=a.fullHeight;i+=a.offsetX*r/o,t-=a.offsetY*n/s,r*=a.width/o,n*=a.height/s}var u=this.filmOffset;0!==u&&(i+=e*u/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}]),n}(La);Pa.prototype.isPerspectiveCamera=!0;var Ia=90,Na=1,Da=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;if(M(this,n),a=t.call(this),a.type="CubeCamera",!0!==i.isWebGLCubeRenderTarget)return console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter."),p(a);a.renderTarget=i;var o=new Pa(Ia,Na,e,r);o.layers=a.layers,o.up.set(0,-1,0),o.lookAt(new xr(1,0,0)),a.add(o);var s=new Pa(Ia,Na,e,r);s.layers=a.layers,s.up.set(0,-1,0),s.lookAt(new xr(-1,0,0)),a.add(s);var u=new Pa(Ia,Na,e,r);u.layers=a.layers,u.up.set(0,0,1),u.lookAt(new xr(0,1,0)),a.add(u);var l=new Pa(Ia,Na,e,r);l.layers=a.layers,l.up.set(0,0,-1),l.lookAt(new xr(0,-1,0)),a.add(l);var c=new Pa(Ia,Na,e,r);c.layers=a.layers,c.up.set(0,-1,0),c.lookAt(new xr(0,0,1)),a.add(c);var f=new Pa(Ia,Na,e,r);return f.layers=a.layers,f.up.set(0,-1,0),f.lookAt(new xr(0,0,-1)),a.add(f),a}return A(n,[{key:"update",value:function(e,t){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,r=Object(f["a"])(this.children,6),i=r[0],a=r[1],o=r[2],s=r[3],u=r[4],l=r[5],c=e.xr.enabled,d=e.getRenderTarget();e.xr.enabled=!1;var h=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,i),e.setRenderTarget(n,1),e.render(t,a),e.setRenderTarget(n,2),e.render(t,o),e.setRenderTarget(n,3),e.render(t,s),e.setRenderTarget(n,4),e.render(t,u),n.texture.generateMipmaps=h,e.setRenderTarget(n,5),e.render(t,l),e.setRenderTarget(d),e.xr.enabled=c}}]),n}(_i),ja=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c,f){var d;return M(this,n),e=void 0!==e?e:[],r=void 0!==r?r:Ae,d=t.call(this,e,r,i,a,o,s,u,l,c,f),d.flipY=!1,d}return A(n,[{key:"images",get:function(){return this.image},set:function(e){this.image=e}}]),n}(hr);ja.prototype.isCubeTexture=!0;var Fa=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;return M(this,n),Number.isInteger(r)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),r=i),a=t.call(this,e,e,r),r=r||{},a.texture=new ja(void 0,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.encoding),a.texture.isRenderTargetTexture=!0,a.texture.generateMipmaps=void 0!==r.generateMipmaps&&r.generateMipmaps,a.texture.minFilter=void 0!==r.minFilter?r.minFilter:Be,a.texture._needsFlipEnvMap=!1,a}return A(n,[{key:"fromEquirectangularTexture",value:function(e,t){this.texture.type=t.type,this.texture.format=rt,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;var n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new ka(5,5,5),i=new Ca({name:"CubemapFromEquirect",uniforms:Ma(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:U,blending:H});i.uniforms.tEquirect.value=t;var a=new _a(r,i),o=t.minFilter;t.minFilter===He&&(t.minFilter=Be);var s=new Da(1,10,this);return s.update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}},{key:"clear",value:function(e,t,n,r){for(var i=e.getRenderTarget(),a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,r);e.setRenderTarget(i)}}]),n}(mr);Fa.prototype.isWebGLCubeRenderTarget=!0;var Ua=new xr,Ba=new xr,za=new or,Ha=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr(1,0,0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;M(this,e),this.normal=t,this.constant=n}return A(e,[{key:"set",value:function(e,t){return this.normal.copy(e),this.constant=t,this}},{key:"setComponents",value:function(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}},{key:"setFromNormalAndCoplanarPoint",value:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(e,t,n){var r=Ua.subVectors(n,t).cross(Ba.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}},{key:"copy",value:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this}},{key:"normalize",value:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(e){return this.normal.dot(e)+this.constant}},{key:"distanceToSphere",value:function(e){return this.distanceToPoint(e.center)-e.radius}},{key:"projectPoint",value:function(e,t){return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}},{key:"intersectLine",value:function(e,t){var n=e.delta(Ua),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;var i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(n).multiplyScalar(i).add(e.start)}},{key:"intersectsLine",value:function(e){var t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}},{key:"intersectsBox",value:function(e){return e.intersectsPlane(this)}},{key:"intersectsSphere",value:function(e){return e.intersectsPlane(this)}},{key:"coplanarPoint",value:function(e){return e.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(e,t){var n=t||za.getNormalMatrix(e),r=this.coplanarPoint(Ua).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}},{key:"translate",value:function(e){return this.constant-=e.dot(this.normal),this}},{key:"equals",value:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}();Ha.prototype.isPlane=!0;var Ga=new Hr,Va=new xr,Wa=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ha,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ha,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Ha,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Ha,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Ha,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Ha;M(this,e),this.planes=[t,n,r,i,a,o]}return A(e,[{key:"set",value:function(e,t,n,r,i,a){var o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}},{key:"copy",value:function(e){for(var t=this.planes,n=0;n<6;n++)t[n].copy(e.planes[n]);return this}},{key:"setFromProjectionMatrix",value:function(e){var t=this.planes,n=e.elements,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],l=n[6],c=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],m=n[13],g=n[14],y=n[15];return t[0].setComponents(o-r,c-s,p-f,y-v).normalize(),t[1].setComponents(o+r,c+s,p+f,y+v).normalize(),t[2].setComponents(o+i,c+u,p+d,y+m).normalize(),t[3].setComponents(o-i,c-u,p-d,y-m).normalize(),t[4].setComponents(o-a,c-l,p-h,y-g).normalize(),t[5].setComponents(o+a,c+l,p+h,y+g).normalize(),this}},{key:"intersectsObject",value:function(e){var t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Ga.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Ga)}},{key:"intersectsSprite",value:function(e){return Ga.center.set(0,0,0),Ga.radius=.7071067811865476,Ga.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ga)}},{key:"intersectsSphere",value:function(e){for(var t=this.planes,n=e.center,r=-e.radius,i=0;i<6;i++){var a=t[i].distanceToPoint(n);if(a0?e.max.x:e.min.x,Va.y=r.normal.y>0?e.max.y:e.min.y,Va.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Va)<0)return!1}return!0}},{key:"containsPoint",value:function(e){for(var t=this.planes,n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}();function qa(){var e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Xa(e,t){var n=t.isWebGL2,r=new WeakMap;function i(t,r){var i=t.array,a=t.usage,o=e.createBuffer();e.bindBuffer(r,o),e.bufferData(r,i,a),t.onUploadCallback();var s=5126;return i instanceof Float32Array?s=5126:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?t.isFloat16BufferAttribute?n?s=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):s=5123:i instanceof Int16Array?s=5122:i instanceof Uint32Array?s=5125:i instanceof Int32Array?s=5124:i instanceof Int8Array?s=5120:(i instanceof Uint8Array||i instanceof Uint8ClampedArray)&&(s=5121),{buffer:o,type:s,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}function a(t,r,i){var a=r.array,o=r.updateRange;e.bindBuffer(i,t),-1===o.count?e.bufferSubData(i,0,a):(n?e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a,o.offset,o.count):e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a.subarray(o.offset,o.offset+o.count)),o.count=-1)}function o(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)}function s(t){t.isInterleavedBufferAttribute&&(t=t.data);var n=r.get(t);n&&(e.deleteBuffer(n.buffer),r["delete"](t))}function u(e,t){if(e.isGLBufferAttribute){var n=r.get(e);(!n||n.version0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;M(this,n),e=t.call(this),e.type="PlaneGeometry",e.parameters={width:r,height:i,widthSegments:a,heightSegments:o};for(var s=r/2,u=i/2,l=Math.floor(a),c=Math.floor(o),f=l+1,d=c+1,h=r/l,p=i/c,v=[],m=[],g=[],y=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:1;s.set(e),u=t,h(s,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,h(s,u)},render:d}}function Mu(e,t,n,r){var i=e.getParameter(34921),a=r.isWebGL2?null:t.get("OES_vertex_array_object"),o=r.isWebGL2||null!==a,s={},u=v(null),l=u;function c(t,r,i,a,s){var u=!1;if(o){var c=p(a,i,r);l!==c&&(l=c,d(l.object)),u=m(a,s),u&&g(a,s)}else{var f=!0===r.wireframe;l.geometry===a.id&&l.program===i.id&&l.wireframe===f||(l.geometry=a.id,l.program=i.id,l.wireframe=f,u=!0)}!0===t.isInstancedMesh&&(u=!0),null!==s&&n.update(s,34963),u&&(E(t,r,i,a),null!==s&&e.bindBuffer(34963,n.get(s).buffer))}function f(){return r.isWebGL2?e.createVertexArray():a.createVertexArrayOES()}function d(t){return r.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function h(t){return r.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function p(e,t,n){var r=!0===n.wireframe,i=s[e.id];void 0===i&&(i={},s[e.id]=i);var a=i[t.id];void 0===a&&(a={},i[t.id]=a);var o=a[r];return void 0===o&&(o=v(f()),a[r]=o),o}function v(e){for(var t=[],n=[],r=[],a=0;a=0){var h=u[f];if(void 0===h&&("instanceMatrix"===f&&i.instanceMatrix&&(h=i.instanceMatrix),"instanceColor"===f&&i.instanceColor&&(h=i.instanceColor)),void 0!==h){var p=h.normalized,v=h.itemSize,m=n.get(h);if(void 0===m)continue;var g=m.buffer,E=m.type,S=m.bytesPerElement;if(h.isInterleavedBufferAttribute){var k=h.data,M=k.stride,T=h.offset;if(k&&k.isInstancedInterleavedBuffer){for(var A=0;A0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}var o="undefined"!==typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext,s=void 0!==n.precision?n.precision:"highp",u=a(s);u!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",u,"instead."),s=u);var l=o||t.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,f=e.getParameter(34930),d=e.getParameter(35660),h=e.getParameter(3379),p=e.getParameter(34076),v=e.getParameter(34921),m=e.getParameter(36347),g=e.getParameter(36348),y=e.getParameter(36349),b=d>0,x=o||t.has("OES_texture_float"),w=b&&x,_=o?e.getParameter(36183):0;return{isWebGL2:o,drawBuffers:l,getMaxAnisotropy:i,getMaxPrecision:a,precision:s,logarithmicDepthBuffer:c,maxTextures:f,maxVertexTextures:d,maxTextureSize:h,maxCubemapSize:p,maxAttributes:v,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:y,vertexTextures:b,floatFragmentTextures:x,floatVertexTextures:w,maxSamples:_}}function Ou(e){var t=this,n=null,r=0,i=!1,a=!1,o=new Ha,s=new or,u={value:null,needsUpdate:!1};function l(){u.value!==n&&(u.value=n,u.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function c(e,n,r,i){var a=null!==e?e.length:0,l=null;if(0!==a){if(l=u.value,!0!==i||null===l){var c=r+4*a,f=n.matrixWorldInverse;s.getNormalMatrix(f),(null===l||l.length0){var u=e.getRenderTarget(),l=new Fa(s.height/2);return l.fromEquirectangularTexture(e,r),t.set(r,l),e.setRenderTarget(u),r.addEventListener("dispose",i),n(l.texture,r.mapping)}return null}}return r}function i(e){var n=e.target;n.removeEventListener("dispose",i);var r=t.get(n);void 0!==r&&(t["delete"](n),r.dispose())}function a(){t=new WeakMap}return{get:r,dispose:a}}Su.physical={uniforms:Ta([Su.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new ar(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new Hi(0)},sheenColorMap:{value:null},sheenRoughness:{value:0},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new ar},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new Hi(0)},specularIntensity:{value:0},specularIntensityMap:{value:null},specularColor:{value:new Hi(1,1,1)},specularColorMap:{value:null}}]),vertexShader:_u.meshphysical_vert,fragmentShader:_u.meshphysical_frag};var Cu=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;return M(this,n),e=t.call(this),e.type="OrthographicCamera",e.zoom=1,e.view=null,e.left=r,e.right=i,e.top=a,e.bottom=o,e.near=s,e.far=u,e.updateProjectionMatrix(),e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}},{key:"setViewOffset",value:function(e,t,n,r,i,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,a=n+e,o=r+t,s=r-t;if(null!==this.view&&this.view.enabled){var u=(this.right-this.left)/this.view.fullWidth/this.zoom,l=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=u*this.view.offsetX,a=i+u*this.view.width,o-=l*this.view.offsetY,s=o-l*this.view.height}this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}]),n}(La);Cu.prototype.isOrthographicCamera=!0;var Lu=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.type="RawShaderMaterial",r}return A(n)}(Ca);Lu.prototype.isRawShaderMaterial=!0;var Pu=4,Iu=8,Nu=Math.pow(2,Iu),Du=[.125,.215,.35,.446,.526,.582],ju=Iu-Pu+1+Du.length,Fu=20,Uu=(S={},c(S,mn,0),c(S,gn,1),c(S,bn,2),c(S,xn,3),c(S,wn,4),c(S,_n,5),c(S,yn,6),S),Bu=new Cu,zu=$u(),Hu=zu._lodPlanes,Gu=zu._sizeLods,Vu=zu._sigmas,Wu=new Hi,qu=null,Xu=(1+Math.sqrt(5))/2,Yu=1/Xu,Ku=[new xr(1,1,1),new xr(-1,1,1),new xr(1,1,-1),new xr(-1,1,-1),new xr(0,Xu,Yu),new xr(0,Xu,-Yu),new xr(Yu,0,Xu),new xr(-Yu,0,Xu),new xr(Xu,Yu,0),new xr(-Xu,Yu,0)],Zu=function(){function e(t){M(this,e),this._renderer=t,this._pingPongRenderTarget=null,this._blurMaterial=tl(Fu),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}return A(e,[{key:"fromScene",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;qu=this._renderer.getRenderTarget();var i=this._allocateTargets();return this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}},{key:"fromEquirectangular",value:function(e){return this._fromTexture(e)}},{key:"fromCubemap",value:function(e){return this._fromTexture(e)}},{key:"compileCubemapShader",value:function(){null===this._cubemapShader&&(this._cubemapShader=rl(),this._compileMaterial(this._cubemapShader))}},{key:"compileEquirectangularShader",value:function(){null===this._equirectShader&&(this._equirectShader=nl(),this._compileMaterial(this._equirectShader))}},{key:"dispose",value:function(){this._blurMaterial.dispose(),null!==this._cubemapShader&&this._cubemapShader.dispose(),null!==this._equirectShader&&this._equirectShader.dispose();for(var e=0;e2?Nu:0,Nu,Nu),l.setRenderTarget(r),v&&l.render(p,o),l.render(e,o)}p.geometry.dispose(),p.material.dispose(),l.toneMapping=d,l.outputEncoding=f,l.autoClear=c,e.background=m}},{key:"_setEncoding",value:function(e,t){e.value=Uu[t.encoding]}},{key:"_textureToCubeUV",value:function(e,t){var n=this._renderer,r=e.mapping===Ae||e.mapping===Oe;r?null==this._cubemapShader&&(this._cubemapShader=rl()):null==this._equirectShader&&(this._equirectShader=nl());var i=r?this._cubemapShader:this._equirectShader,a=new _a(Hu[0],i),o=i.uniforms;o["envMap"].value=e,r||o["texelSize"].value.set(1/e.image.width,1/e.image.height),this._setEncoding(o["inputEncoding"],e),this._setEncoding(o["outputEncoding"],t.texture),el(t,0,0,3*Nu,2*Nu),n.setRenderTarget(t),n.render(a,Bu)}},{key:"_applyPMREM",value:function(e){var t=this._renderer,n=t.autoClear;t.autoClear=!1;for(var r=1;rFu&&console.warn("sigmaRadians, ".concat(i,", is too large and will clip, as it requested ").concat(v," samples when the maximum is set to ").concat(Fu));for(var m=[],g=0,y=0;yIu-Pu?r-Iu+Pu:0);el(t,E,S,3*_,2*_),s.setRenderTarget(t),s.render(c,Bu)}}]),e}();function Ju(e){return void 0!==e&&e.type===Ge&&(e.encoding===mn||e.encoding===gn||e.encoding===yn)}function $u(){for(var e=[],t=[],n=[],r=Iu,i=0;iIu-Pu?o=Du[i-Iu+Pu-1]:0==i&&(o=0),n.push(o);for(var s=1/(a-1),u=-s/2,l=1+s/2,c=[u,u,l,u,l,l,u,u,l,l,u,l],f=6,d=6,h=3,p=2,v=1,m=new Float32Array(h*d*f),g=new Float32Array(p*d*f),y=new Float32Array(v*d*f),b=0;b2?0:-1,_=[x,w,0,x+2/3,w,0,x+2/3,w+1,0,x,w,0,x+2/3,w+1,0,x,w+1,0];m.set(_,h*d*b),g.set(c,p*d*b);var E=[b,b,b,b,b,b];y.set(E,v*d*b)}var S=new ia;S.setAttribute("position",new qi(m,h)),S.setAttribute("uv",new qi(g,p)),S.setAttribute("faceIndex",new qi(y,v)),e.push(S),r>Pu&&r--}return{_lodPlanes:e,_sizeLods:t,_sigmas:n}}function Qu(e){var t=new mr(3*Nu,3*Nu,e);return t.texture.mapping=Le,t.texture.name="PMREM.cubeUv",t.scissorTest=!0,t}function el(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function tl(e){var t=new Float32Array(e),n=new xr(0,1,0),r=new Lu({name:"SphericalGaussianBlur",defines:{n:e},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:t},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:n},inputEncoding:{value:Uu[mn]},outputEncoding:{value:Uu[mn]}},vertexShader:il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t".concat(al(),"\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t"),blending:H,depthTest:!1,depthWrite:!1});return r}function nl(){var e=new ar(1,1),t=new Lu({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:e},inputEncoding:{value:Uu[mn]},outputEncoding:{value:Uu[mn]}},vertexShader:il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t".concat(al(),"\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t"),blending:H,depthTest:!1,depthWrite:!1});return t}function rl(){var e=new Lu({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:Uu[mn]},outputEncoding:{value:Uu[mn]}},vertexShader:il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\t".concat(al(),"\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb;\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t"),blending:H,depthTest:!1,depthWrite:!1});return e}function il(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function al(){return"\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include \n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t"}function ol(e){var t=new WeakMap,n=null;function r(r){if(r&&r.isTexture&&!1===r.isRenderTargetTexture){var o=r.mapping,s=o===Re||o===Ce,u=o===Ae||o===Oe;if(s||u){if(t.has(r))return t.get(r).texture;var l=r.image;if(s&&l&&l.height>0||u&&l&&i(l)){var c=e.getRenderTarget();null===n&&(n=new Zu(e));var f=s?n.fromEquirectangular(r):n.fromCubemap(r);return t.set(r,f),e.setRenderTarget(c),r.addEventListener("dispose",a),f.texture}return null}}return r}function i(e){for(var t=0,n=6,r=0;r65535?Yi:Xi)(n,1);b.version=o;var x=a.get(e);x&&t.remove(x),a.set(e,b)}function c(e){var t=a.get(e);if(t){var n=e.index;null!==n&&t.version0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),e=t.call(this,null),e.image={data:r,width:i,height:a,depth:o},e.magFilter=je,e.minFilter=je,e.wrapR=Ne,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e.needsUpdate=!0,e}return A(n)}(hr);function dl(e,t){return e[0]-t[0]}function hl(e,t){return Math.abs(t[1])-Math.abs(e[1])}function pl(e,t){var n=1,r=t.isInterleavedBufferAttribute?t.data.array:t.array;r instanceof Int8Array?n=127:r instanceof Int16Array?n=32767:r instanceof Int32Array?n=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",r),e.divideScalar(n)}function vl(e,t,n){for(var r={},i=new Float32Array(8),a=new WeakMap,o=new xr,s=[],u=0;u<8;u++)s[u]=[u,0];function l(u,l,c,f){var d=u.morphTargetInfluences;if(!0===t.isWebGL2){var h=l.morphAttributes.position.length,p=a.get(l);if(void 0===p||p.count!==h){void 0!==p&&p.texture.dispose();var v=void 0!==l.morphAttributes.normal,m=l.morphAttributes.position,g=l.morphAttributes.normal||[],y=l.attributes.position.count,b=!0===v?2:1,x=y*b,w=1;x>t.maxTextureSize&&(w=Math.ceil(x/t.maxTextureSize),x=t.maxTextureSize);var _=new Float32Array(x*w*4*h),E=new fl(_,x,w,h);E.format=rt,E.type=Ke;for(var S=4*b,k=0;k0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),e=t.call(this,null),e.image={data:r,width:i,height:a,depth:o},e.magFilter=je,e.minFilter=je,e.wrapR=Ne,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e.needsUpdate=!0,e}return A(n)}(hr);gl.prototype.isDataTexture3D=!0;var yl=new hr,bl=new fl,xl=new gl,wl=new ja,_l=[],El=[],Sl=new Float32Array(16),kl=new Float32Array(9),Ml=new Float32Array(4);function Tl(e,t,n){var r=e[0];if(r<=0||r>0)return e;var i=t*n,a=_l[i];if(void 0===a&&(a=new Float32Array(i),_l[i]=a),0!==t){r.toArray(a,0);for(var o=1,s=0;o!==t;++o)s+=n,e[o].toArray(a,s)}return a}function Al(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n/gm;function Uc(e){return e.replace(Fc,Bc)}function Bc(e,t){var n=_u[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return Uc(n)}var zc=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Hc=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Gc(e){return e.replace(Hc,Wc).replace(zc,Vc)}function Vc(e,t,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Wc(e,t,n,r)}function Wc(e,t,n,r){for(var i="",a=parseInt(t);a0?e.gammaFactor:1,v=n.isWebGL2?"":Lc(n),m=Pc(s),g=o.createProgram(),y=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(i=[m].filter(Nc).join("\n"),i.length>0&&(i+="\n"),a=[v,m].filter(Nc).join("\n"),a.length>0&&(a+="\n")):(i=[qc(n),"#define SHADER_NAME "+n.shaderName,m,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+p,"#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Nc).join("\n"),a=[v,qc(n),"#define SHADER_NAME "+n.shaderName,m,"#define GAMMA_FACTOR "+p,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.envMap?"#define "+d:"",n.envMap?"#define "+h:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==we?"#define TONE_MAPPING":"",n.toneMapping!==we?_u["tonemapping_pars_fragment"]:"",n.toneMapping!==we?Cc("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.format===nt?"#define OPAQUE":"",_u["encodings_pars_fragment"],n.map?Oc("mapTexelToLinear",n.mapEncoding):"",n.matcap?Oc("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?Oc("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?Oc("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.specularColorMap?Oc("specularColorMapTexelToLinear",n.specularColorMapEncoding):"",n.sheenColorMap?Oc("sheenColorMapTexelToLinear",n.sheenColorMapEncoding):"",n.lightMap?Oc("lightMapTexelToLinear",n.lightMapEncoding):"",Rc("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Nc).join("\n")),u=Uc(u),u=Dc(u,n),u=jc(u,n),l=Uc(l),l=Dc(l,n),l=jc(l,n),u=Gc(u),l=Gc(l),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(y="#version 300 es\n",i=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+i,a=["#define varying in",n.glslVersion===Cn?"":"out highp vec4 pc_fragColor;",n.glslVersion===Cn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+a);var b,x,w=y+i+u,_=y+a+l,E=Sc(o,35633,w),S=Sc(o,35632,_);if(o.attachShader(g,E),o.attachShader(g,S),void 0!==n.index0AttributeName?o.bindAttribLocation(g,0,n.index0AttributeName):!0===n.morphTargets&&o.bindAttribLocation(g,0,"position"),o.linkProgram(g),e.debug.checkShaderErrors){var k=o.getProgramInfoLog(g).trim(),M=o.getShaderInfoLog(E).trim(),T=o.getShaderInfoLog(S).trim(),A=!0,O=!0;if(!1===o.getProgramParameter(g,35714)){A=!1;var R=Ac(o,E,"vertex"),C=Ac(o,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+o.getError()+" - VALIDATE_STATUS "+o.getProgramParameter(g,35715)+"\n\nProgram Info Log: "+k+"\n"+R+"\n"+C)}else""!==k?console.warn("THREE.WebGLProgram: Program Info Log:",k):""!==M&&""!==T||(O=!1);O&&(this.diagnostics={runnable:A,programLog:k,vertexShader:{log:M,prefix:i},fragmentShader:{log:T,prefix:a}})}return o.deleteShader(E),o.deleteShader(S),this.getUniforms=function(){return void 0===b&&(b=new Ec(o,g)),b},this.getAttributes=function(){return void 0===x&&(x=Ic(o,g)),x},this.destroy=function(){r.releaseStatesOfProgram(this),o.deleteProgram(g),this.program=void 0},this.name=n.shaderName,this.id=kc++,this.cacheKey=t,this.usedTimes=1,this.program=g,this.vertexShader=E,this.fragmentShader=S,this}function $c(e,t,n,r,i,a,o){var s=[],u=i.isWebGL2,l=i.logarithmicDepthBuffer,c=i.floatVertexTextures,f=i.maxVertexUniforms,d=i.vertexTextures,h=i.precision,p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},v=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","instancingColor","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoat","clearcoatMap","clearcoatRoughnessMap","clearcoatNormalMap","displacementMap","specularMap",,"roughnessMap","metalnessMap","gradientMap","alphaMap","alphaTest","combine","vertexColors","vertexAlphas","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","morphTargetsCount","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","format","specularIntensityMap","specularColorMap","specularColorMapEncoding","transmission","transmissionMap","thicknessMap","sheen","sheenColorMap","sheenColorMapEncoding","sheenRoughnessMap"];function m(e){var t=e.skeleton,n=t.bones;if(c)return 1024;var r=f,i=Math.floor((r-20)/4),a=Math.min(i,n.length);return a0,O=a.clearcoat>0,R={isWebGL2:u,shaderID:S,shaderName:a.type,vertexShader:b,fragmentShader:x,defines:a.defines,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:h,instancing:!0===y.isInstancedMesh,instancingColor:!0===y.isInstancedMesh&&null!==y.instanceColor,supportsVertexTextures:d,outputEncoding:null!==T?g(T.texture):e.outputEncoding,map:!!a.map,mapEncoding:g(a.map),matcap:!!a.matcap,matcapEncoding:g(a.matcap),envMap:!!E,envMapMode:E&&E.mapping,envMapEncoding:g(E),envMapCubeUV:!!E&&(E.mapping===Le||E.mapping===Pe),lightMap:!!a.lightMap,lightMapEncoding:g(a.lightMap),aoMap:!!a.aoMap,emissiveMap:!!a.emissiveMap,emissiveMapEncoding:g(a.emissiveMap),bumpMap:!!a.bumpMap,normalMap:!!a.normalMap,objectSpaceNormalMap:a.normalMapType===Mn,tangentSpaceNormalMap:a.normalMapType===kn,clearcoat:O,clearcoatMap:O&&!!a.clearcoatMap,clearcoatRoughnessMap:O&&!!a.clearcoatRoughnessMap,clearcoatNormalMap:O&&!!a.clearcoatNormalMap,displacementMap:!!a.displacementMap,roughnessMap:!!a.roughnessMap,metalnessMap:!!a.metalnessMap,specularMap:!!a.specularMap,specularIntensityMap:!!a.specularIntensityMap,specularColorMap:!!a.specularColorMap,specularColorMapEncoding:g(a.specularColorMap),alphaMap:!!a.alphaMap,alphaTest:A,gradientMap:!!a.gradientMap,sheen:a.sheen>0,sheenColorMap:!!a.sheenColorMap,sheenColorMapEncoding:g(a.sheenColorMap),sheenRoughnessMap:!!a.sheenRoughnessMap,transmission:a.transmission>0,transmissionMap:!!a.transmissionMap,thicknessMap:!!a.thicknessMap,combine:a.combine,vertexTangents:!!a.normalMap&&!!y.geometry&&!!y.geometry.attributes.tangent,vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!y.geometry&&!!y.geometry.attributes.color&&4===y.geometry.attributes.color.itemSize,vertexUvs:!!a.map||!!a.bumpMap||!!a.normalMap||!!a.specularMap||!!a.alphaMap||!!a.emissiveMap||!!a.roughnessMap||!!a.metalnessMap||!!a.clearcoatMap||!!a.clearcoatRoughnessMap||!!a.clearcoatNormalMap||!!a.displacementMap||!!a.transmissionMap||!!a.thicknessMap||!!a.specularIntensityMap||!!a.specularColorMap||!!a.sheenColorMap||a.sheenRoughnessMap,uvsVertexOnly:!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatNormalMap||a.transmission>0||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheen>0||a.sheenColorMap||a.sheenRoughnessMap)&&!!a.displacementMap,fog:!!w,useFog:a.fog,fogExp2:w&&w.isFogExp2,flatShading:!!a.flatShading,sizeAttenuation:a.sizeAttenuation,logarithmicDepthBuffer:l,skinning:!0===y.isSkinnedMesh&&k>0,maxBones:k,useVertexTexture:c,morphTargets:!!y.geometry&&!!y.geometry.morphAttributes.position,morphNormals:!!y.geometry&&!!y.geometry.morphAttributes.normal,morphTargetsCount:y.geometry&&y.geometry.morphAttributes.position?y.geometry.morphAttributes.position.length:0,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,format:a.format,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&f.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:we,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===B,flipSided:a.side===U,depthPacking:void 0!==a.depthPacking&&a.depthPacking,index0AttributeName:a.index0AttributeName,extensionDerivatives:a.extensions&&a.extensions.derivatives,extensionFragDepth:a.extensions&&a.extensions.fragDepth,extensionDrawBuffers:a.extensions&&a.extensions.drawBuffers,extensionShaderTextureLOD:a.extensions&&a.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()};return R}function b(t){var n=[];if(t.shaderID?n.push(t.shaderID):(n.push(cr(t.fragmentShader)),n.push(cr(t.vertexShader))),void 0!==t.defines)for(var r in t.defines)n.push(r),n.push(t.defines[r]);if(!1===t.isRawShaderMaterial){for(var i=0;i0?i.push(c):!0===n.transparent?a.push(c):r.push(c)}function c(e,t,n,o,s,l){var c=u(e,t,n,o,s,l);n.transmission>0?i.unshift(c):!0===n.transparent?a.unshift(c):r.unshift(c)}function f(e,t){r.length>1&&r.sort(e||ef),i.length>1&&i.sort(t||tf),a.length>1&&a.sort(t||tf)}function d(){for(var e=n,r=t.length;e=t.get(n).length?(i=new nf(e),t.get(n).push(i)):i=t.get(n)[r],i}function r(){t=new WeakMap}return{get:n,dispose:r}}function af(){var e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":n={direction:new xr,color:new Hi};break;case"SpotLight":n={position:new xr,direction:new xr,color:new Hi,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new xr,color:new Hi,distance:0,decay:0};break;case"HemisphereLight":n={direction:new xr,skyColor:new Hi,groundColor:new Hi};break;case"RectAreaLight":n={color:new Hi,position:new xr,halfWidth:new xr,halfHeight:new xr};break}return e[t.id]=n,n}}}function of(){var e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ar};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ar};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ar,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}var sf=0;function uf(e,t){return(t.castShadow?1:0)-(e.castShadow?1:0)}function lf(e,t){for(var n=new af,r=of(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},a=0;a<9;a++)i.probe.push(new xr);var o=new xr,s=new Jr,u=new Jr;function l(a,o){for(var s=0,u=0,l=0,c=0;c<9;c++)i.probe[c].set(0,0,0);var f=0,d=0,h=0,p=0,v=0,m=0,g=0,y=0;a.sort(uf);for(var b=!0!==o?Math.PI:1,x=0,w=a.length;x0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Eu.LTC_FLOAT_1,i.rectAreaLTC2=Eu.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Eu.LTC_HALF_1,i.rectAreaLTC2=Eu.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=u,i.ambient[2]=l;var U=i.hash;U.directionalLength===f&&U.pointLength===d&&U.spotLength===h&&U.rectAreaLength===p&&U.hemiLength===v&&U.numDirectionalShadows===m&&U.numPointShadows===g&&U.numSpotShadows===y||(i.directional.length=f,i.spot.length=h,i.rectArea.length=p,i.point.length=d,i.hemi.length=v,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=y,i.spotShadowMap.length=y,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotShadowMatrix.length=y,U.directionalLength=f,U.pointLength=d,U.spotLength=h,U.rectAreaLength=p,U.hemiLength=v,U.numDirectionalShadows=m,U.numPointShadows=g,U.numSpotShadows=y,i.version=sf++)}function c(e,t){for(var n=0,r=0,a=0,l=0,c=0,f=t.matrixWorldInverse,d=0,h=e.length;d1&&void 0!==arguments[1]?arguments[1]:0;return!1===n.has(r)?(i=new cf(e,t),n.set(r,[i])):a>=n.get(r).length?(i=new cf(e,t),n.get(r).push(i)):i=n.get(r)[a],i}function i(){n=new WeakMap}return{get:r,dispose:i}}var df=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshDepthMaterial",r.depthPacking=En,r.map=null,r.alphaMap=null,r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.wireframe=!1,r.wireframeLinewidth=1,r.fog=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}]),n}(Ni);df.prototype.isMeshDepthMaterial=!0;var hf=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshDistanceMaterial",r.referencePosition=new xr,r.nearDistance=1,r.farDistance=1e3,r.map=null,r.alphaMap=null,r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.fog=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}]),n}(Ni);hf.prototype.isMeshDistanceMaterial=!0;var pf="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",vf="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function mf(e,t,n){var r=new Wa,i=new ar,a=new ar,o=new vr,s=new df({depthPacking:Sn}),u=new hf,l={},c=n.maxTextureSize,f={0:U,1:F,2:B},d=new Ca({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new ar},radius:{value:4}},vertexShader:pf,fragmentShader:vf}),h=d.clone();h.defines.HORIZONTAL_PASS=1;var p=new ia;p.setAttribute("position",new qi(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));var v=new _a(p,d),m=this;function g(n,r){var i=t.update(v);d.defines.VSM_SAMPLES!==n.blurSamples&&(d.defines.VSM_SAMPLES=n.blurSamples,h.defines.VSM_SAMPLES=n.blurSamples,d.needsUpdate=!0,h.needsUpdate=!0),d.uniforms.shadow_pass.value=n.map.texture,d.uniforms.resolution.value=n.mapSize,d.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,i,d,v,null),h.uniforms.shadow_pass.value=n.mapPass.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,i,h,v,null)}function y(t,n,r,i,a,o,c){var d=null,h=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(d=void 0!==h?h:!0===i.isPointLight?u:s,e.localClippingEnabled&&!0===r.clipShadows&&0!==r.clippingPlanes.length||r.displacementMap&&0!==r.displacementScale||r.alphaMap&&r.alphaTest>0){var p=d.uuid,v=r.uuid,m=l[p];void 0===m&&(m={},l[p]=m);var g=m[v];void 0===g&&(g=d.clone(),m[v]=g),d=g}return d.visible=r.visible,d.wireframe=r.wireframe,d.side=c===j?null!==r.shadowSide?r.shadowSide:r.side:null!==r.shadowSide?r.shadowSide:f[r.side],d.alphaMap=r.alphaMap,d.alphaTest=r.alphaTest,d.clipShadows=r.clipShadows,d.clippingPlanes=r.clippingPlanes,d.clipIntersection=r.clipIntersection,d.displacementMap=r.displacementMap,d.displacementScale=r.displacementScale,d.displacementBias=r.displacementBias,d.wireframeLinewidth=r.wireframeLinewidth,d.linewidth=r.linewidth,!0===i.isPointLight&&!0===d.isMeshDistanceMaterial&&(d.referencePosition.setFromMatrixPosition(i.matrixWorld),d.nearDistance=a,d.farDistance=o),d}function b(n,i,a,o,s){if(!1!==n.visible){var u=n.layers.test(i.layers);if(u&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===j)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);var l=t.update(n),c=n.material;if(Array.isArray(c))for(var f=l.groups,d=0,h=f.length;dc||i.y>c)&&(i.x>c&&(a.x=Math.floor(c/x.x),i.x=a.x*x.x,y.mapSize.x=a.x),i.y>c&&(a.y=Math.floor(c/x.y),i.y=a.y*x.y,y.mapSize.y=a.y)),null===y.map&&!y.isPointLightShadow&&this.type===j){var w={minFilter:Be,magFilter:Be,format:rt};y.map=new mr(i.x,i.y,w),y.map.texture.name=v.name+".shadowMap",y.mapPass=new mr(i.x,i.y,w),y.camera.updateProjectionMatrix()}if(null===y.map){var _={minFilter:je,magFilter:je,format:rt};y.map=new mr(i.x,i.y,_),y.map.texture.name=v.name+".shadowMap",y.camera.updateProjectionMatrix()}e.setRenderTarget(y.map),e.clear();for(var E=y.getViewportCount(),S=0;S=1):-1!==D.indexOf("OpenGL ES")&&(N=parseFloat(/^OpenGL ES (\d)/.exec(D)[1]),C=N>=2);var j=null,F={},z=e.getParameter(3088),ye=e.getParameter(2978),be=(new vr).fromArray(z),xe=(new vr).fromArray(ye);function we(t,n,r){var i=new Uint8Array(4),a=e.createTexture();e.bindTexture(t,a),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(var o=0;or||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){var a=t?nr:Math.floor,o=a(i*e.width),s=a(i*e.height);void 0===l&&(l=x(o,s));var u=n?x(o,s):l;u.width=o,u.height=s;var c=u.getContext("2d");return c.drawImage(e,0,0,o,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+o+"x"+s+")."),u}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function _(e){return er(e.width)&&er(e.height)}function E(e){return!f&&(e.wrapS!==Ne||e.wrapT!==Ne||e.minFilter!==je&&e.minFilter!==Be)}function S(e,t){return e.generateMipmaps&&t&&e.minFilter!==je&&e.minFilter!==Be}function k(t){e.generateMipmap(t)}function M(n,r,i){if(!1===f)return r;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}var a=r;return 6403===r&&(5126===i&&(a=33326),5131===i&&(a=33325),5121===i&&(a=33321)),6407===r&&(5126===i&&(a=34837),5131===i&&(a=34843),5121===i&&(a=32849)),6408===r&&(5126===i&&(a=34836),5131===i&&(a=34842),5121===i&&(a=32856)),33325!==a&&33326!==a&&34842!==a&&34836!==a||t.get("EXT_color_buffer_float"),a}function T(e,t,n){return!0===S(e,n)?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps.length>0?e.mipmaps.length:1}function A(e){return e===je||e===Fe||e===Ue?9728:9729}function O(e){var t=e.target;t.removeEventListener("dispose",O),C(t),t.isVideoTexture&&y["delete"](t),o.memory.textures--}function R(e){var t=e.target;t.removeEventListener("dispose",R),L(t)}function C(t){var n=r.get(t);void 0!==n.__webglInit&&(e.deleteTexture(n.__webglTexture),r.remove(t))}function L(t){var n=t.texture,i=r.get(t),a=r.get(n);if(t){if(void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),o.memory.textures--),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(var s=0;s<6;s++)e.deleteFramebuffer(i.__webglFramebuffer[s]),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer[s]);else e.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&e.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer&&e.deleteRenderbuffer(i.__webglColorRenderbuffer),i.__webglDepthRenderbuffer&&e.deleteRenderbuffer(i.__webglDepthRenderbuffer);if(t.isWebGLMultipleRenderTargets)for(var u=0,l=n.length;u=d&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+d),P+=1,e}function D(e,t){var i=r.get(e);if(e.isVideoTexture&&te(e),e.version>0&&i.__version!==e.version){var a=e.image;if(void 0===a)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==a.complete)return void V(i,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+t),n.bindTexture(3553,i.__webglTexture)}function j(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?V(i,e,t):(n.activeTexture(33984+t),n.bindTexture(35866,i.__webglTexture))}function F(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?V(i,e,t):(n.activeTexture(33984+t),n.bindTexture(32879,i.__webglTexture))}function U(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?W(i,e,t):(n.activeTexture(33984+t),n.bindTexture(34067,i.__webglTexture))}var B=(s={},c(s,Ie,10497),c(s,Ne,33071),c(s,De,33648),s),z=(u={},c(u,je,9728),c(u,Fe,9984),c(u,Ue,9986),c(u,Be,9729),c(u,ze,9985),c(u,He,9987),u);function H(n,a,o){if(o?(e.texParameteri(n,10242,B[a.wrapS]),e.texParameteri(n,10243,B[a.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,B[a.wrapR]),e.texParameteri(n,10240,z[a.magFilter]),e.texParameteri(n,10241,z[a.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),a.wrapS===Ne&&a.wrapT===Ne||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,A(a.magFilter)),e.texParameteri(n,10241,A(a.minFilter)),a.minFilter!==je&&a.minFilter!==Be&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===t.has("EXT_texture_filter_anisotropic")){var s=t.get("EXT_texture_filter_anisotropic");if(a.type===Ke&&!1===t.has("OES_texture_float_linear"))return;if(!1===f&&a.type===Ze&&!1===t.has("OES_texture_half_float_linear"))return;(a.anisotropy>1||r.get(a).__currentAnisotropy)&&(e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy)}}function G(t,n){void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",O),t.__webglTexture=e.createTexture(),o.memory.textures++)}function V(t,r,i){var o=3553;r.isDataTexture2DArray&&(o=35866),r.isDataTexture3D&&(o=32879),G(t,r),n.activeTexture(33984+i),n.bindTexture(o,t.__webglTexture),e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);var s,u=E(r)&&!1===_(r.image),l=w(r.image,u,!1,p),c=_(l)||f,d=a.convert(r.format),h=a.convert(r.type),v=M(r.internalFormat,d,h,r.encoding);H(o,r,c);var m=r.mipmaps;if(r.isDepthTexture)v=6402,f?v=r.type===Ke?36012:r.type===Ye?33190:r.type===et?35056:33189:r.type===Ke&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===st&&6402===v&&r.type!==qe&&r.type!==Ye&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=qe,h=a.convert(r.type)),r.format===ut&&6402===v&&(v=34041,r.type!==et&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=et,h=a.convert(r.type))),n.texImage2D(3553,0,v,l.width,l.height,0,d,h,null);else if(r.isDataTexture)if(m.length>0&&c){for(var g=0,y=m.length;g0&&c){O&&R&&n.texStorage2D(3553,A,v,m[0].width,m[0].height);for(var C=0,L=m.length;C0&&void 0!==arguments[0]?arguments[0]:[];return M(this,n),e=t.call(this),e.cameras=r,e}return A(n)}(Pa);xf.prototype.isArrayCamera=!0;var wf=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),e.type="Group",e}return A(n)}(_i);wf.prototype.isGroup=!0;var _f={type:"move"},Ef=function(){function e(){M(this,e),this._targetRay=null,this._grip=null,this._hand=null}return A(e,[{key:"getHandSpace",value:function(){return null===this._hand&&(this._hand=new wf,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}},{key:"getTargetRaySpace",value:function(){return null===this._targetRay&&(this._targetRay=new wf,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new xr,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new xr),this._targetRay}},{key:"getGripSpace",value:function(){return null===this._grip&&(this._grip=new wf,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new xr,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new xr),this._grip}},{key:"dispatchEvent",value:function(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}},{key:"disconnect",value:function(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}},{key:"update",value:function(e,t,n){var r=null,i=null,a=null,o=this._targetRay,s=this._grip,u=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState)if(null!==o&&(r=t.getPose(e.targetRaySpace,n),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(_f))),u&&e.hand){a=!0;var c,f=l(e.hand.values());try{for(f.s();!(c=f.n()).done;){var d=c.value,h=t.getJointPose(d,n);if(void 0===u.joints[d.jointName]){var p=new wf;p.matrixAutoUpdate=!1,p.visible=!1,u.joints[d.jointName]=p,u.add(p)}var v=u.joints[d.jointName];null!==h&&(v.matrix.fromArray(h.transform.matrix),v.matrix.decompose(v.position,v.rotation,v.scale),v.jointRadius=h.radius),v.visible=null!==h}}catch(w){f.e(w)}finally{f.f()}var m=u.joints["index-finger-tip"],g=u.joints["thumb-tip"],y=m.position.distanceTo(g.position),b=.02,x=.005;u.inputState.pinching&&y>b+x?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&y<=b-x&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));return null!==o&&(o.visible=null!==r),null!==s&&(s.visible=null!==i),null!==u&&(u.visible=null!==a),this}}]),e}(),Sf=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c,f){var d;if(M(this,n),f=void 0!==f?f:st,f!==st&&f!==ut)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");return void 0===i&&f===st&&(i=qe),void 0===i&&f===ut&&(i=et),d=t.call(this,null,a,o,s,u,l,f,i,c),d.image={width:e,height:r},d.magFilter=void 0!==u?u:je,d.minFilter=void 0!==l?l:je,d.flipY=!1,d.generateMipmaps=!1,d}return A(n)}(hr);Sf.prototype.isDepthTexture=!0;var kf=function(e){w(n,e);var t=E(n);function n(e,r){var i;M(this,n),i=t.call(this);var a=h(i),o=null,u=1,l=null,c="local-floor",f=e.extensions.has("WEBGL_multisampled_render_to_texture"),d=null,p=null,v=null,m=null,g=!1,y=null,b=r.getContextAttributes(),x=null,w=null,_=[],E=new Map,S=new Pa;S.layers.enable(1),S.viewport=new vr;var T=new Pa;T.layers.enable(2),T.viewport=new vr;var A=[S,T],O=new xf;O.layers.enable(1),O.layers.enable(2);var R=null,C=null;function L(e){var t=E.get(e.inputSource);t&&t.dispatchEvent({type:e.type,data:e.inputSource})}function P(){E.forEach((function(e,t){e.disconnect(t)})),E.clear(),R=null,C=null,e.setRenderTarget(x),m=null,v=null,p=null,o=null,w=null,z.stop(),a.isPresenting=!1,a.dispatchEvent({type:"sessionend"})}function I(e){for(var t=o.inputSources,n=0;n<_.length;n++)E.set(t[n],_[n]);for(var r=0;r0&&(t.alphaTest.value=n.alphaTest);var r,i,a=e.get(n).envMap;a&&(t.envMap.value=a,t.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,t.reflectivity.value=n.reflectivity,t.ior.value=n.ior,t.refractionRatio.value=n.refractionRatio),n.lightMap&&(t.lightMap.value=n.lightMap,t.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(t.aoMap.value=n.aoMap,t.aoMapIntensity.value=n.aoMapIntensity),n.map?r=n.map:n.specularMap?r=n.specularMap:n.displacementMap?r=n.displacementMap:n.normalMap?r=n.normalMap:n.bumpMap?r=n.bumpMap:n.roughnessMap?r=n.roughnessMap:n.metalnessMap?r=n.metalnessMap:n.alphaMap?r=n.alphaMap:n.emissiveMap?r=n.emissiveMap:n.clearcoatMap?r=n.clearcoatMap:n.clearcoatNormalMap?r=n.clearcoatNormalMap:n.clearcoatRoughnessMap?r=n.clearcoatRoughnessMap:n.specularIntensityMap?r=n.specularIntensityMap:n.specularColorMap?r=n.specularColorMap:n.transmissionMap?r=n.transmissionMap:n.thicknessMap?r=n.thicknessMap:n.sheenColorMap?r=n.sheenColorMap:n.sheenRoughnessMap&&(r=n.sheenRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix)),n.aoMap?i=n.aoMap:n.lightMap&&(i=n.lightMap),void 0!==i&&(i.isWebGLRenderTarget&&(i=i.texture),!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uv2Transform.value.copy(i.matrix))}function i(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}function a(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function o(e,t,n,r){var i;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?i=t.map:t.alphaMap&&(i=t.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}function s(e,t){var n;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?n=t.map:t.alphaMap&&(n=t.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}function u(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}function l(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function c(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function f(t,n){t.roughness.value=n.roughness,t.metalness.value=n.metalness,n.roughnessMap&&(t.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(t.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(t.emissiveMap.value=n.emissiveMap),n.bumpMap&&(t.bumpMap.value=n.bumpMap,t.bumpScale.value=n.bumpScale,n.side===U&&(t.bumpScale.value*=-1)),n.normalMap&&(t.normalMap.value=n.normalMap,t.normalScale.value.copy(n.normalScale),n.side===U&&t.normalScale.value.negate()),n.displacementMap&&(t.displacementMap.value=n.displacementMap,t.displacementScale.value=n.displacementScale,t.displacementBias.value=n.displacementBias);var r=e.get(n).envMap;r&&(t.envMapIntensity.value=n.envMapIntensity)}function d(e,t,n){f(e,t),e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap)),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===U&&e.clearcoatNormalScale.value.negate())),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=n.texture,e.transmissionSamplerSize.value.set(n.width,n.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}function h(e,t){t.matcap&&(e.matcap.value=t.matcap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function p(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function v(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias),e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}function m(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}return{refreshFogUniforms:t,refreshMaterialUniforms:n}}function Tf(){var e=lr("canvas");return e.style.display="block",e}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0!==e.canvas?e.canvas:Tf(),n=void 0!==e.context?e.context:null,r=void 0!==e.alpha&&e.alpha,i=void 0===e.depth||e.depth,a=void 0===e.stencil||e.stencil,o=void 0!==e.antialias&&e.antialias,s=void 0===e.premultipliedAlpha||e.premultipliedAlpha,u=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,l=void 0!==e.powerPreference?e.powerPreference:"default",c=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat,f=null,d=null,h=[],p=[];this.domElement=t,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=mn,this.physicallyCorrectLights=!1,this.toneMapping=we,this.toneMappingExposure=1;var v=this,m=!1,g=0,y=0,b=null,x=-1,w=null,_=new vr,E=new vr,S=null,k=t.width,M=t.height,T=1,A=null,R=null,C=new vr(0,0,k,M),L=new vr(0,0,k,M),P=!1,I=[],N=new Wa,D=!1,j=!1,z=null,H=new Jr,G=new xr,V={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function W(){return null===b?T:1}var q,X,Y,K,Z,J,$,Q,ee,te,ne,re,ie,ae,oe,se,ue,le,ce,fe,de,he,pe,ve=n;function me(e,n){for(var r=0;r0&&Ie(i,t,n),r&&Y.viewport(_.copy(r)),i.length>0&&De(i,t,n),a.length>0&&De(a,t,n),o.length>0&&De(o,t,n)}function Ie(e,t,n){if(null===z){var r=!0===o&&!0===X.isWebGL2,i=r?yr:mr;z=new i(1024,1024,{generateMipmaps:!0,type:null!==he.convert(Ze)?Ze:Ge,minFilter:He,magFilter:je,wrapS:Ne,wrapT:Ne,useRenderToTexture:q.has("WEBGL_multisampled_render_to_texture")})}var a=v.getRenderTarget();v.setRenderTarget(z),v.clear();var s=v.toneMapping;v.toneMapping=we,De(e,t,n),v.toneMapping=s,J.updateMultisampleRenderTarget(z),J.updateRenderTargetMipmap(z),v.setRenderTarget(a)}function De(e,t,n){for(var r=!0===t.isScene?t.overrideMaterial:null,i=0,a=e.length;i0?p[p.length-1]:null,h.pop(),f=h.length>0?h[h.length-1]:null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.getActiveCubeFace=function(){return g},this.getActiveMipmapLevel=function(){return y},this.getRenderTarget=function(){return b},this.setRenderTargetTextures=function(e,t,n){Z.get(e.texture).__webglTexture=t,Z.get(e.depthTexture).__webglTexture=n;var r=Z.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||e.useRenderToTexture&&(console.warn("render-to-texture extension was disabled because an external texture was provided"),e.useRenderToTexture=!1,e.useRenderbuffer=!0))},this.setRenderTargetFramebuffer=function(e,t){var n=Z.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;b=e,g=t,y=n;var r=!0;if(e){var i=Z.get(e);void 0!==i.__useDefaultFramebuffer?(Y.bindFramebuffer(36160,null),r=!1):void 0===i.__webglFramebuffer?J.setupRenderTarget(e):i.__hasExternalTextures&&J.rebindTextures(e,Z.get(e.texture).__webglTexture,Z.get(e.depthTexture).__webglTexture)}var a=null,o=!1,s=!1;if(e){var u=e.texture;(u.isDataTexture3D||u.isDataTexture2DArray)&&(s=!0);var l=Z.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(a=l[t],o=!0):a=e.useRenderbuffer?Z.get(e).__webglMultisampledFramebuffer:l,_.copy(e.viewport),E.copy(e.scissor),S=e.scissorTest}else _.copy(C).multiplyScalar(T).floor(),E.copy(L).multiplyScalar(T).floor(),S=P;var c=Y.bindFramebuffer(36160,a);if(c&&X.drawBuffers&&r){var f=!1;if(e)if(e.isWebGLMultipleRenderTargets){var d=e.texture;if(I.length!==d.length||36064!==I[0]){for(var h=0,p=d.length;h=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ve.readPixels(t,n,r,i,he.convert(l),he.convert(c),a):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{var d=null!==b?Z.get(b).__webglFramebuffer:null;Y.bindFramebuffer(36160,d)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.pow(2,-n),i=Math.floor(t.image.width*r),a=Math.floor(t.image.height*r),o=he.convert(t.format);X.isWebGL2&&(6407===o&&(o=32849),6408===o&&(o=32856)),J.setTexture2D(t,0),ve.copyTexImage2D(3553,n,o,e.x,e.y,i,a,0),Y.unbindTexture()},this.copyTextureToTexture=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=t.image.width,a=t.image.height,o=he.convert(n.format),s=he.convert(n.type);J.setTexture2D(n,0),ve.pixelStorei(37440,n.flipY),ve.pixelStorei(37441,n.premultiplyAlpha),ve.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?ve.texSubImage2D(3553,r,e.x,e.y,i,a,o,s,t.image.data):t.isCompressedTexture?ve.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,o,t.mipmaps[0].data):ve.texSubImage2D(3553,r,e.x,e.y,o,s,t.image),0===r&&n.generateMipmaps&&ve.generateMipmap(3553),Y.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(v.isWebGL1Renderer)console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");else{var a,o=e.max.x-e.min.x+1,s=e.max.y-e.min.y+1,u=e.max.z-e.min.z+1,l=he.convert(r.format),c=he.convert(r.type);if(r.isDataTexture3D)J.setTexture3D(r,0),a=32879;else{if(!r.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");J.setTexture2DArray(r,0),a=35866}ve.pixelStorei(37440,r.flipY),ve.pixelStorei(37441,r.premultiplyAlpha),ve.pixelStorei(3317,r.unpackAlignment);var f=ve.getParameter(3314),d=ve.getParameter(32878),h=ve.getParameter(3316),p=ve.getParameter(3315),m=ve.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;ve.pixelStorei(3314,g.width),ve.pixelStorei(32878,g.height),ve.pixelStorei(3316,e.min.x),ve.pixelStorei(3315,e.min.y),ve.pixelStorei(32877,e.min.z),n.isDataTexture||n.isDataTexture3D?ve.texSubImage3D(a,i,t.x,t.y,t.z,o,s,u,l,c,g.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),ve.compressedTexSubImage3D(a,i,t.x,t.y,t.z,o,s,u,l,g.data)):ve.texSubImage3D(a,i,t.x,t.y,t.z,o,s,u,l,c,g),ve.pixelStorei(3314,f),ve.pixelStorei(32878,d),ve.pixelStorei(3316,h),ve.pixelStorei(3315,p),ve.pixelStorei(32877,m),0===i&&r.generateMipmaps&&ve.generateMipmap(a),Y.unbindTexture()}},this.initTexture=function(e){J.setTexture2D(e,0),Y.unbindTexture()},this.resetState=function(){g=0,y=0,b=null,Y.reset(),pe.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Af.prototype.isWebGLRenderer=!0;var Of=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(Af);Of.prototype.isWebGL1Renderer=!0;var Rf=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25e-5;M(this,e),this.name="",this.color=new Hi(t),this.density=n}return A(e,[{key:"clone",value:function(){return new e(this.color,this.density)}},{key:"toJSON",value:function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}]),e}();Rf.prototype.isFogExp2=!0;var Cf=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;M(this,e),this.name="",this.color=new Hi(t),this.near=n,this.far=r}return A(e,[{key:"clone",value:function(){return new e(this.color,this.near,this.far)}},{key:"toJSON",value:function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}]),e}();Cf.prototype.isFog=!0;var Lf=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),e.type="Scene",e.background=null,e.environment=null,e.fog=null,e.overrideMaterial=null,e.autoUpdate=!0,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:h(e)})),e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),t}}]),n}(_i);Lf.prototype.isScene=!0;var Pf=function(){function e(t,n){M(this,e),this.array=t,this.stride=n,this.count=void 0!==t?t.length/n:0,this.usage=On,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Fn()}return A(e,[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"copy",value:function(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}},{key:"copyAt",value:function(e,t,n){e*=this.stride,n*=t.stride;for(var r=0,i=this.stride;r1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"clone",value:function(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Fn()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);var t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"toJSON",value:function(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Fn()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}]),e}();Pf.prototype.isInterleavedBuffer=!0;var If=new xr,Nf=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];M(this,e),this.name="",this.data=t,this.itemSize=n,this.offset=r,this.normalized=!0===i}return A(e,[{key:"count",get:function(){return this.data.count}},{key:"array",get:function(){return this.data.array}},{key:"needsUpdate",set:function(e){this.data.needsUpdate=e}},{key:"applyMatrix4",value:function(e){for(var t=0,n=this.data.count;te.far||t.push({distance:s,point:Ff.clone(),uv:Pi.getUV(Ff,Vf,Wf,qf,Xf,Yf,Kf,new ar),face:null,object:this})}}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}]),n}(_i);function Jf(e,t,n,r,i,a){zf.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(Hf.x=a*zf.x-i*zf.y,Hf.y=i*zf.x+a*zf.y):Hf.copy(zf),e.copy(t),e.x+=Hf.x,e.y+=Hf.y,e.applyMatrix4(Gf)}Zf.prototype.isSprite=!0;var $f=new xr,Qf=new vr,ed=new vr,td=new xr,nd=new Jr,rd=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="SkinnedMesh",i.bindMode="attached",i.bindMatrix=new Jr,i.bindMatrixInverse=new Jr,i}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}},{key:"bind",value:function(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}},{key:"pose",value:function(){this.skeleton.pose()}},{key:"normalizeSkinWeights",value:function(){for(var e=new vr,t=this.geometry.attributes.skinWeight,n=0,r=t.count;n0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:je,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:je,h=arguments.length>10?arguments[10]:void 0,p=arguments.length>11?arguments[11]:void 0;return M(this,n),e=t.call(this,null,u,l,c,f,d,o,s,h,p),e.image={data:r,width:i,height:a},e.magFilter=f,e.minFilter=d,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e.needsUpdate=!0,e}return A(n)}(hr);ad.prototype.isDataTexture=!0;var od=new Jr,sd=new Jr,ud=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];M(this,e),this.uuid=Fn(),this.bones=t.slice(0),this.boneInverses=n,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}return A(e,[{key:"init",value:function(){var e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(var n=0,r=this.bones.length;n3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),"number"===typeof i&&(o=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),a=t.call(this,e,r,i),a.meshPerAttribute=o,a}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}]),n}(qi);ld.prototype.isInstancedBufferAttribute=!0;var cd=new Jr,fd=new Jr,dd=[],hd=new _a,pd=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;return M(this,n),a=t.call(this,e,r),a.instanceMatrix=new ld(new Float32Array(16*i),16),a.instanceColor=null,a.count=i,a.frustumCulled=!1,a}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,this}},{key:"getColorAt",value:function(e,t){t.fromArray(this.instanceColor.array,3*e)}},{key:"getMatrixAt",value:function(e,t){t.fromArray(this.instanceMatrix.array,16*e)}},{key:"raycast",value:function(e,t){var n=this.matrixWorld,r=this.count;if(hd.geometry=this.geometry,hd.material=this.material,void 0!==hd.material)for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new ia,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new vd;return M(this,n),e=t.call(this),e.type="Line",e.geometry=r,e.material=i,e.updateMorphTargets(),e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.material=e.material,this.geometry=e.geometry,this}},{key:"computeLineDistances",value:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[0],r=1,i=t.count;rs)){f.applyMatrix4(this.matrixWorld);var E=e.ray.origin.distanceTo(f);Ee.far||t.push({distance:E,point:c.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else for(var S=Math.max(0,a.start),k=Math.min(v.count,a.start+a.count),M=S,T=k-1;Ms)){f.applyMatrix4(this.matrixWorld);var O=e.ray.origin.distanceTo(f);Oe.far||t.push({distance:O,point:c.clone().applyMatrix4(this.matrixWorld),index:M,face:null,faceIndex:null,object:this})}}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}},{key:"updateMorphTargets",value:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}]),n}(_i);wd.prototype.isLine=!0;var _d=new xr,Ed=new xr,Sd=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="LineSegments",i}return A(n,[{key:"computeLineDistances",value:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[],r=0,i=t.count;r0&&void 0!==arguments[0]?arguments[0]:new ia,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Md;return M(this,n),e=t.call(this),e.type="Points",e.geometry=r,e.material=i,e.updateMorphTargets(),e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.material=e.material,this.geometry=e.geometry,this}},{key:"raycast",value:function(e,t){var n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Od.copy(n.boundingSphere),Od.applyMatrix4(r),Od.radius+=i,!1!==e.ray.intersectsSphere(Od)){Td.copy(r).invert(),Ad.copy(e.ray).applyMatrix4(Td);var o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o;if(n.isBufferGeometry){var u=n.index,l=n.attributes,c=l.position;if(null!==u)for(var f=Math.max(0,a.start),d=Math.min(u.count,a.start+a.count),h=f,p=d;h0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}]),n}(_i);function Ld(e,t,n,r,i,a,o){var s=Ad.distanceSqToPoint(e);if(si.far)return;a.push({distance:l,distanceToRay:Math.sqrt(s),point:u,index:t,face:null,object:o})}}Cd.prototype.isPoints=!0;var Pd=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c){var f;M(this,n),f=t.call(this,e,r,i,a,o,s,u,l,c),f.format=void 0!==u?u:nt,f.minFilter=void 0!==s?s:Be,f.magFilter=void 0!==o?o:Be,f.generateMipmaps=!1;var d=h(f);function p(){d.needsUpdate=!0,e.requestVideoFrameCallback(p)}return"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(p),f}return A(n,[{key:"clone",value:function(){return new this.constructor(this.image).copy(this)}},{key:"update",value:function(){var e=this.image,t="requestVideoFrameCallback"in e;!1===t&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}]),n}(hr);Pd.prototype.isVideoTexture=!0;var Id=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c,f,d,h){var p;return M(this,n),p=t.call(this,null,s,u,l,c,f,a,o,d,h),p.image={width:r,height:i},p.mipmaps=e,p.flipY=!1,p.generateMipmaps=!1,p}return A(n)}(hr);Id.prototype.isCompressedTexture=!0;var Nd=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c){var f;return M(this,n),f=t.call(this,e,r,i,a,o,s,u,l,c),f.needsUpdate=!0,f}return A(n)}(hr);Nd.prototype.isCanvasTexture=!0;new xr,new xr,new xr,new Pi;var Dd=function(){function e(){M(this,e),this.type="Curve",this.arcLengthDivisions=200}return A(e,[{key:"getPoint",value:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}},{key:"getPointAt",value:function(e,t){var n=this.getUtoTmapping(e);return this.getPoint(n,t)}},{key:"getPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}},{key:"getSpacedPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}},{key:"getLength",value:function(){var e=this.getLengths();return e[e.length-1]}},{key:"getLengths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,n=[],r=this.getPoint(0),i=0;n.push(0);for(var a=1;a<=e;a++)t=this.getPoint(a/e),i+=t.distanceTo(r),n.push(i),r=t;return this.cacheArcLengths=n,n}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.getLengths()}},{key:"getUtoTmapping",value:function(e,t){var n,r=this.getLengths(),i=0,a=r.length;n=t||e*r[a-1];var o,s=0,u=a-1;while(s<=u)if(i=Math.floor(s+(u-s)/2),o=r[i]-n,o<0)s=i+1;else{if(!(o>0)){u=i;break}u=i-1}if(i=u,r[i]===n)return i/(a-1);var l=r[i],c=r[i+1],f=c-l,d=(n-l)/f,h=(i+d)/(a-1);return h}},{key:"getTangent",value:function(e,t){var n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);var a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new ar:new xr);return s.copy(o).sub(a).normalize(),s}},{key:"getTangentAt",value:function(e,t){var n=this.getUtoTmapping(e);return this.getTangent(n,t)}},{key:"computeFrenetFrames",value:function(e,t){for(var n=new xr,r=[],i=[],a=[],o=new xr,s=new Jr,u=0;u<=e;u++){var l=u/e;r[u]=this.getTangentAt(l,new xr)}i[0]=new xr,a[0]=new xr;var c=Number.MAX_VALUE,f=Math.abs(r[0].x),d=Math.abs(r[0].y),h=Math.abs(r[0].z);f<=c&&(c=f,n.set(1,0,0)),d<=c&&(c=d,n.set(0,1,0)),h<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(var p=1;p<=e;p++){if(i[p]=i[p-1].clone(),a[p]=a[p-1].clone(),o.crossVectors(r[p-1],r[p]),o.length()>Number.EPSILON){o.normalize();var v=Math.acos(Un(r[p-1].dot(r[p]),-1,1));i[p].applyMatrix4(s.makeRotationAxis(o,v))}a[p].crossVectors(r[p],i[p])}if(!0===t){var m=Math.acos(Un(i[0].dot(i[e]),-1,1));m/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(m=-m);for(var g=1;g<=e;g++)i[g].applyMatrix4(s.makeRotationAxis(r[g],m*g)),a[g].crossVectors(r[g],i[g])}return{tangents:r,normals:i,binormals:a}}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},{key:"toJSON",value:function(){var e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}},{key:"fromJSON",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}]),e}(),jd=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;return M(this,n),e=t.call(this),e.type="EllipseCurve",e.aX=r,e.aY=i,e.xRadius=a,e.yRadius=o,e.aStartAngle=s,e.aEndAngle=u,e.aClockwise=l,e.aRotation=c,e}return A(n,[{key:"getPoint",value:function(e,t){var n=t||new ar,r=2*Math.PI,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)r)i-=r;i0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return M(this,n),e=t.call(this),e.type="CatmullRomCurve3",e.points=r,e.closed=i,e.curveType=a,e.tension=o,e}return A(n,[{key:"getPoint",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,i=r,a=this.points,o=a.length,s=(o-(this.closed?0:1))*e,u=Math.floor(s),l=s-u;this.closed?u+=u>0?0:(Math.floor(Math.abs(u)/o)+1)*o:0===l&&u===o-1&&(u=o-2,l=1),this.closed||u>0?t=a[(u-1)%o]:(Bd.subVectors(a[0],a[1]).add(a[0]),t=Bd);var c=a[u%o],f=a[(u+1)%o];if(this.closed||u+20&&void 0!==arguments[0]?arguments[0]:new ar,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ar,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ar;return M(this,n),e=t.call(this),e.type="CubicBezierCurve",e.v0=r,e.v1=i,e.v2=a,e.v3=o,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(eh(e,r.x,i.x,a.x,o.x),eh(e,r.y,i.y,a.y,o.y)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}]),n}(Dd);th.prototype.isCubicBezierCurve=!0;var nh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new xr,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new xr;return M(this,n),e=t.call(this),e.type="CubicBezierCurve3",e.v0=r,e.v1=i,e.v2=a,e.v3=o,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(eh(e,r.x,i.x,a.x,o.x),eh(e,r.y,i.y,a.y,o.y),eh(e,r.z,i.z,a.z,o.z)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}]),n}(Dd);nh.prototype.isCubicBezierCurve3=!0;var rh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ar,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar;return M(this,n),e=t.call(this),e.type="LineCurve",e.v1=r,e.v2=i,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"getTangent",value:function(e,t){var n=t||new ar;return n.copy(this.v2).sub(this.v1).normalize(),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd);rh.prototype.isLineCurve=!0;var ih=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr;return M(this,n),e=t.call(this),e.type="LineCurve3",e.isLineCurve3=!0,e.v1=r,e.v2=i,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd),ah=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ar,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ar;return M(this,n),e=t.call(this),e.type="QuadraticBezierCurve",e.v0=r,e.v1=i,e.v2=a,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Kd(e,r.x,i.x,a.x),Kd(e,r.y,i.y,a.y)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd);ah.prototype.isQuadraticBezierCurve=!0;var oh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new xr;return M(this,n),e=t.call(this),e.type="QuadraticBezierCurve3",e.v0=r,e.v1=i,e.v2=a,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Kd(e,r.x,i.x,a.x),Kd(e,r.y,i.y,a.y),Kd(e,r.z,i.z,a.z)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd);oh.prototype.isQuadraticBezierCurve3=!0;var sh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return M(this,n),e=t.call(this),e.type="SplineCurve",e.points=r,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t,r=this.points,i=(r.length-1)*e,a=Math.floor(i),o=i-a,s=r[0===a?a:a-1],u=r[a],l=r[a>r.length-2?r.length-1:a+1],c=r[a>r.length-3?r.length-1:a+2];return n.set(Wd(o,s.x,u.x,l.x,c.x),Wd(o,s.y,u.y,l.y,c.y)),n}},{key:"copy",value:function(e){g(v(n.prototype),"copy",this).call(this,e),this.points=[];for(var t=0,r=e.points.length;t=n){var a=r[i]-n,o=this.curves[i],s=o.getLength(),u=0===s?0:1-a/s;return o.getPointAt(u,t)}i++}return null}},{key:"getLength",value:function(){var e=this.getCurveLengths();return e[e.length-1]}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}},{key:"getCurveLengths",value:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,n=0,r=this.curves.length;n0&&void 0!==arguments[0]?arguments[0]:40,t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}},{key:"getPoints",value:function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,n=[],r=0,i=this.curves;r1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}},{key:"copy",value:function(e){g(v(n.prototype),"copy",this).call(this,e),this.curves=[];for(var t=0,r=e.curves.length;t0){var l=u.getPoint(0);l.equals(this.currentPoint)||this.lineTo(l.x,l.y)}this.curves.push(u);var c=u.getPoint(1);return this.currentPoint.copy(c),this}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.currentPoint.copy(e.currentPoint),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.currentPoint=this.currentPoint.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.currentPoint.fromArray(e.currentPoint),this}}]),n}(lh),fh=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.uuid=Fn(),r.type="Shape",r.holes=[],r}return A(n,[{key:"getPointsHoles",value:function(e){for(var t=[],n=0,r=this.holes.length;n2&&void 0!==arguments[2]?arguments[2]:2,c=t&&t.length,f=c?t[0]*l:e.length,d=hh(e,0,f,l,!0),h=[];if(!d||d.next===d.prev)return h;if(c&&(d=xh(e,t,d,l)),e.length>80*l){n=i=e[0],r=a=e[1];for(var p=l;pi&&(i=o),s>a&&(a=s);u=Math.max(i-n,a-r),u=0!==u?1/u:0}return vh(d,h,l,n,r,u),h}};function hh(e,t,n,r,i){var a,o;if(i===Gh(e,t,n,r)>0)for(a=t;a=t;a-=r)o=Bh(a,e[a],e[a+1],o);return o&&Lh(o,o.next)&&(zh(o),o=o.next),o}function ph(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Lh(r,r.next)&&0!==Ch(r.prev,r,r.next))r=r.next;else{if(zh(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function vh(e,t,n,r,i,a,o){if(e){!o&&a&&kh(e,r,i,a);var s,u,l=e;while(e.prev!==e.next)if(s=e.prev,u=e.next,a?gh(e,r,i,a):mh(e))t.push(s.i/n),t.push(e.i/n),t.push(u.i/n),zh(e),e=u.next,l=u.next;else if(e=u,e===l){o?1===o?(e=yh(ph(e),t,n),vh(e,t,n,r,i,a,2)):2===o&&bh(e,t,n,r,i,a):vh(ph(e),t,n,r,i,a,1);break}}}function mh(e){var t=e.prev,n=e,r=e.next;if(Ch(t,n,r)>=0)return!1;var i=e.next.next;while(i!==e.prev){if(Oh(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ch(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function gh(e,t,n,r){var i=e.prev,a=e,o=e.next;if(Ch(i,a,o)>=0)return!1;var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=Th(s,u,t,n,r),d=Th(l,c,t,n,r),h=e.prevZ,p=e.nextZ;while(h&&h.z>=f&&p&&p.z<=d){if(h!==e.prev&&h!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Ch(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,p!==e.prev&&p!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ch(p.prev,p,p.next)>=0)return!1;p=p.nextZ}while(h&&h.z>=f){if(h!==e.prev&&h!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Ch(h.prev,h,h.next)>=0)return!1;h=h.prevZ}while(p&&p.z<=d){if(p!==e.prev&&p!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ch(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function yh(e,t,n){var r=e;do{var i=r.prev,a=r.next.next;!Lh(i,a)&&Ph(i,r,r.next,a)&&jh(i,a)&&jh(a,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(a.i/n),zh(r),zh(r.next),r=e=a),r=r.next}while(r!==e);return ph(r)}function bh(e,t,n,r,i,a){var o=e;do{var s=o.next.next;while(s!==o.prev){if(o.i!==s.i&&Rh(o,s)){var u=Uh(o,s);return o=ph(o,o.next),u=ph(u,u.next),vh(o,t,n,r,i,a),void vh(u,t,n,r,i,a)}s=s.next}o=o.next}while(o!==e)}function xh(e,t,n,r){var i,a,o,s,u,l=[];for(i=0,a=t.length;i=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>o){if(o=s,s===i){if(a===r.y)return r;if(a===r.next.y)return r.next}n=r.x=r.x&&r.x>=c&&i!==r.x&&Oh(an.x||r.x===n.x&&Sh(n,r)))&&(n=r,d=u)),r=r.next}while(r!==l);return n}function Sh(e,t){return Ch(e.prev,e,t.prev)<0&&Ch(t.next,e,e.next)<0}function kh(e,t,n,r){var i=e;do{null===i.z&&(i.z=Th(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Mh(i)}function Mh(e){var t,n,r,i,a,o,s,u,l=1;do{n=e,e=null,a=null,o=0;while(n){for(o++,r=n,s=0,t=0;t0||u>0&&r)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,l*=2}while(o>1);return e}function Th(e,t,n,r,i){return e=32767*(e-n)*i,t=32767*(t-r)*i,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1}function Ah(e){var t=e,n=e;do{(t.x=0&&(e-o)*(r-s)-(n-o)*(t-s)>=0&&(n-o)*(a-s)-(i-o)*(r-s)>=0}function Rh(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Dh(e,t)&&(jh(e,t)&&jh(t,e)&&Fh(e,t)&&(Ch(e.prev,e,t.prev)||Ch(e,t.prev,t))||Lh(e,t)&&Ch(e.prev,e,e.next)>0&&Ch(t.prev,t,t.next)>0)}function Ch(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Lh(e,t){return e.x===t.x&&e.y===t.y}function Ph(e,t,n,r){var i=Nh(Ch(e,t,n)),a=Nh(Ch(e,t,r)),o=Nh(Ch(n,r,e)),s=Nh(Ch(n,r,t));return i!==a&&o!==s||(!(0!==i||!Ih(e,n,t))||(!(0!==a||!Ih(e,r,t))||(!(0!==o||!Ih(n,e,r))||!(0!==s||!Ih(n,t,r)))))}function Ih(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Nh(e){return e>0?1:e<0?-1:0}function Dh(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Ph(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function jh(e,t){return Ch(e.prev,e,e.next)<0?Ch(e,t,e.next)>=0&&Ch(e,e.prev,t)>=0:Ch(e,t,e.prev)<0||Ch(e,e.next,t)<0}function Fh(e,t){var n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!==n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}function Uh(e,t){var n=new Hh(e.i,e.x,e.y),r=new Hh(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function Bh(e,t,n,r){var i=new Hh(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function zh(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Hh(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Gh(e,t,n,r){for(var i=0,a=t,o=n-r;a2&&e[t-1].equals(e[0])&&e.pop()}function qh(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:new fh([new ar(.5,.5),new ar(-.5,.5),new ar(-.5,-.5),new ar(.5,-.5)]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,n),e=t.call(this),e.type="ExtrudeGeometry",e.parameters={shapes:r,options:i},r=Array.isArray(r)?r:[r];for(var a=h(e),o=[],s=[],u=0,l=r.length;uNumber.EPSILON){var d=Math.sqrt(c),h=Math.sqrt(u*u+l*l),p=t.x-s/d,v=t.y+o/d,m=n.x-l/h,g=n.y+u/h,y=((m-p)*l-(g-v)*u)/(o*l-s*u);r=p+o*y-e.x,i=v+s*y-e.y;var b=r*r+i*i;if(b<=2)return new ar(r,i);a=Math.sqrt(b/2)}else{var x=!1;o>Number.EPSILON?u>Number.EPSILON&&(x=!0):o<-Number.EPSILON?u<-Number.EPSILON&&(x=!0):Math.sign(s)===Math.sign(l)&&(x=!0),x?(r=-s,i=o,a=Math.sqrt(c)):(r=o,i=s,a=Math.sqrt(c/2))}return new ar(r/a,i/a)}for(var F=[],U=0,B=R.length,z=B-1,H=U+1;U=0;ye--){for(var be=ye/h,xe=c*Math.cos(be*Math.PI/2),we=f*Math.sin(be*Math.PI/2)+d,_e=0,Ee=R.length;_e=0){var i=n,a=n-1;a<0&&(a=e.length-1);for(var o=0,s=r+2*h;o0&&void 0!==arguments[0]?arguments[0]:new fh([new ar(0,.5),new ar(-.5,-.5),new ar(.5,-.5)]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;M(this,n),e=t.call(this),e.type="ShapeGeometry",e.parameters={shapes:r,curveSegments:i};var a=[],o=[],s=[],u=[],l=0,c=0;if(!1===Array.isArray(r))d(r);else for(var f=0;f0!==e>0&&this.version++,this._sheen=e}},{key:"clearcoat",get:function(){return this._clearcoat},set:function(e){this._clearcoat>0!==e>0&&this.version++,this._clearcoat=e}},{key:"transmission",get:function(){return this._transmission},set:function(e){this._transmission>0!==e>0&&this.version++,this._transmission=e}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}]),n}(Qh);ep.prototype.isMeshPhysicalMaterial=!0;var tp=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshPhongMaterial",r.color=new Hi(16777215),r.specular=new Hi(1118481),r.shininess=30,r.map=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.emissive=new Hi(0),r.emissiveIntensity=1,r.emissiveMap=null,r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.specularMap=null,r.alphaMap=null,r.envMap=null,r.combine=ye,r.reflectivity=1,r.refractionRatio=.98,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.flatShading=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}]),n}(Ni);tp.prototype.isMeshPhongMaterial=!0;var np=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.defines={TOON:""},r.type="MeshToonMaterial",r.color=new Hi(16777215),r.map=null,r.gradientMap=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.emissive=new Hi(0),r.emissiveIntensity=1,r.emissiveMap=null,r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.alphaMap=null,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),n}(Ni);np.prototype.isMeshToonMaterial=!0;var rp=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshNormalMaterial",r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.wireframe=!1,r.wireframeLinewidth=1,r.fog=!1,r.flatShading=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}]),n}(Ni);rp.prototype.isMeshNormalMaterial=!0;var ip=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshLambertMaterial",r.color=new Hi(16777215),r.map=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.emissive=new Hi(0),r.emissiveIntensity=1,r.emissiveMap=null,r.specularMap=null,r.alphaMap=null,r.envMap=null,r.combine=ye,r.reflectivity=1,r.refractionRatio=.98,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),n}(Ni);ip.prototype.isMeshLambertMaterial=!0;var ap=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.defines={MATCAP:""},r.type="MeshMatcapMaterial",r.color=new Hi(16777215),r.matcap=null,r.map=null,r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.alphaMap=null,r.flatShading=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this}}]),n}(Ni);ap.prototype.isMeshMatcapMaterial=!0;var op=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="LineDashedMaterial",r.scale=1,r.dashSize=3,r.gapSize=1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}]),n}(vd);op.prototype.isLineDashedMaterial=!0;var sp={arraySlice:function(e,t,n){return sp.isTypedArray(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:"number"===typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){function t(t,n){return e[t]-e[n]}for(var n=e.length,r=new Array(n),i=0;i!==n;++i)r[i]=i;return r.sort(t),r},sortedArray:function(e,t,n){for(var r=e.length,i=new e.constructor(r),a=0,o=0;o!==r;++a)for(var s=n[a]*t,u=0;u!==t;++u)i[o++]=e[s+u];return i},flattenJSON:function(e,t,n,r){var i=1,a=e[0];while(void 0!==a&&void 0===a[r])a=e[i++];if(void 0!==a){var o=a[r];if(void 0!==o)if(Array.isArray(o))do{o=a[r],void 0!==o&&(t.push(a.time),n.push.apply(n,o)),a=e[i++]}while(void 0!==a);else if(void 0!==o.toArray)do{o=a[r],void 0!==o&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++]}while(void 0!==a);else do{o=a[r],void 0!==o&&(t.push(a.time),n.push(o)),a=e[i++]}while(void 0!==a)}},subclip:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30,a=e.clone();a.name=t;for(var o=[],s=0;s=r)){c.push(u.times[d]);for(var p=0;pa.tracks[m].times[0]&&(v=a.tracks[m].times[0]);for(var g=0;g1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;r<=0&&(r=30);for(var i=n.tracks.length,a=t/r,o=function(t){var r=n.tracks[t],i=r.ValueTypeName;if("bool"===i||"string"===i)return"continue";var o=e.tracks.find((function(e){return e.name===r.name&&e.ValueTypeName===i}));if(void 0===o)return"continue";var s=0,u=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=u/3);var l=0,c=o.getValueSize();o.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(l=c/3);var f=r.times.length-1,d=void 0;if(a<=r.times[0]){var h=s,p=u-s;d=sp.arraySlice(r.values,h,p)}else if(a>=r.times[f]){var v=f*u+s,m=v+u-s;d=sp.arraySlice(r.values,v,m)}else{var g=r.createInterpolant(),y=s,b=u-s;g.evaluate(a),d=sp.arraySlice(g.resultBuffer,y,b)}if("quaternion"===i){var x=(new br).fromArray(d).normalize().conjugate();x.toArray(d)}for(var w=o.times.length,_=0;_=i)break e;var s=t[1];e=i)break t}a=n,n=0}while(n>>1;et)--a;if(++a,0!==i||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);var o=this.getValueSize();this.times=sp.arraySlice(n,i,a),this.values=sp.arraySlice(this.values,i*o,a*o)}return this}},{key:"validate",value:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var a=null,o=0;o!==i;o++){var s=n[o];if("number"===typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,s),e=!1;break}if(null!==a&&a>s){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,s,a),e=!1;break}a=s}if(void 0!==r&&sp.isTypedArray(r))for(var u=0,l=r.length;u!==l;++u){var c=r[u];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,u,c),e=!1;break}}return e}},{key:"optimize",value:function(){for(var e=sp.arraySlice(this.times),t=sp.arraySlice(this.values),n=this.getValueSize(),r=this.getInterpolation()===sn,i=e.length-1,a=1,o=1;o0){e[a]=e[i];for(var y=i*n,b=a*n,x=0;x!==n;++x)t[b+x]=t[y+x];++a}return a!==e.length?(this.times=sp.arraySlice(e,0,a),this.values=sp.arraySlice(t,0,a*n)):(this.times=e,this.values=t),this}},{key:"clone",value:function(){var e=sp.arraySlice(this.times,0),t=sp.arraySlice(this.values,0),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}],[{key:"toJSON",value:function(e){var t,n=e.constructor;if(n.toJSON!==this.toJSON)t=n.toJSON(e);else{t={name:e.name,times:sp.convertArray(e.times,Array),values:sp.convertArray(e.values,Array)};var r=e.getInterpolation();r!==e.DefaultInterpolation&&(t.interpolation=r)}return t.type=e.ValueTypeName,t}}]),e}();dp.prototype.TimeBufferType=Float32Array,dp.prototype.ValueBufferType=Float32Array,dp.prototype.DefaultInterpolation=on;var hp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);hp.prototype.ValueTypeName="bool",hp.prototype.ValueBufferType=Array,hp.prototype.DefaultInterpolation=an,hp.prototype.InterpolantFactoryMethodLinear=void 0,hp.prototype.InterpolantFactoryMethodSmooth=void 0;var pp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);pp.prototype.ValueTypeName="color";var vp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);vp.prototype.ValueTypeName="number";var mp=function(e){w(n,e);var t=E(n);function n(e,r,i,a){return M(this,n),t.call(this,e,r,i,a)}return A(n,[{key:"interpolate_",value:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),u=e*o,l=u+o;u!==l;u+=4)br.slerpFlat(i,0,a,u-o,a,u,s);return i}}]),n}(up),gp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"InterpolantFactoryMethodLinear",value:function(e){return new mp(this.times,this.values,this.getValueSize(),e)}}]),n}(dp);gp.prototype.ValueTypeName="quaternion",gp.prototype.DefaultInterpolation=on,gp.prototype.InterpolantFactoryMethodSmooth=void 0;var yp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);yp.prototype.ValueTypeName="string",yp.prototype.ValueBufferType=Array,yp.prototype.DefaultInterpolation=an,yp.prototype.InterpolantFactoryMethodLinear=void 0,yp.prototype.InterpolantFactoryMethodSmooth=void 0;var bp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);bp.prototype.ValueTypeName="vector";var xp=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fn;M(this,e),this.name=t,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=Fn(),this.duration<0&&this.resetDuration()}return A(e,[{key:"resetDuration",value:function(){for(var e=this.tracks,t=0,n=0,r=e.length;n!==r;++n){var i=this.tracks[n];t=Math.max(t,i.times[i.times.length-1])}return this.duration=t,this}},{key:"trim",value:function(){for(var e=0;e1){var l=u[1],c=r[l];c||(r[l]=c=[]),c.push(s)}}var f=[];for(var d in r)f.push(this.CreateFromMorphTargetSequence(d,r[d],t,n));return f}},{key:"parseAnimation",value:function(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(e,t,n,r,i){if(0!==n.length){var a=[],o=[];sp.flattenJSON(n,a,o,r),0!==a.length&&i.push(new e(t,a,o))}},r=[],i=e.name||"default",a=e.fps||30,o=e.blendMode,s=e.length||-1,u=e.hierarchy||[],l=0;l1&&void 0!==arguments[1]?arguments[1]:1;return M(this,n),r=t.call(this),r.type="Light",r.color=new Hi(e),r.intensity=i,r}return A(n,[{key:"dispose",value:function(){}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}]),n}(_i);Pp.prototype.isLight=!0;var Ip=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;return M(this,n),a=t.call(this,e,i),a.type="HemisphereLight",a.position.copy(_i.DefaultUp),a.updateMatrix(),a.groundColor=new Hi(r),a}return A(n,[{key:"copy",value:function(e){return Pp.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}]),n}(Pp);Ip.prototype.isHemisphereLight=!0;var Np=new Jr,Dp=new xr,jp=new xr,Fp=function(){function e(t){M(this,e),this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new ar(512,512),this.map=null,this.mapPass=null,this.matrix=new Jr,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Wa,this._frameExtents=new ar(1,1),this._viewportCount=1,this._viewports=[new vr(0,0,1,1)]}return A(e,[{key:"getViewportCount",value:function(){return this._viewportCount}},{key:"getFrustum",value:function(){return this._frustum}},{key:"updateMatrices",value:function(e){var t=this.camera,n=this.matrix;Dp.setFromMatrixPosition(e.matrixWorld),t.position.copy(Dp),jp.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(jp),t.updateMatrixWorld(),Np.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Np),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(t.projectionMatrix),n.multiply(t.matrixWorldInverse)}},{key:"getViewport",value:function(e){return this._viewports[e]}},{key:"getFrameExtents",value:function(){return this._frameExtents}},{key:"dispose",value:function(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}},{key:"copy",value:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"toJSON",value:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}]),e}(),Up=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this,new Pa(50,1,.5,500)),e.focus=1,e}return A(n,[{key:"updateMatrices",value:function(e){var t=this.camera,r=2*jn*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,a=e.distance||t.far;r===t.fov&&i===t.aspect&&a===t.far||(t.fov=r,t.aspect=i,t.far=a,t.updateProjectionMatrix()),g(v(n.prototype),"updateMatrices",this).call(this,e)}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.focus=e.focus,this}}]),n}(Fp);Up.prototype.isSpotLightShadow=!0;var Bp=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.PI/3,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;return M(this,n),i=t.call(this,e,r),i.type="SpotLight",i.position.copy(_i.DefaultUp),i.updateMatrix(),i.target=new _i,i.distance=a,i.angle=o,i.penumbra=s,i.decay=u,i.shadow=new Up,i}return A(n,[{key:"power",get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}},{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}]),n}(Pp);Bp.prototype.isSpotLight=!0;var zp=new Jr,Hp=new xr,Gp=new xr,Vp=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this,new Pa(90,1,.5,500)),e._frameExtents=new ar(4,2),e._viewportCount=6,e._viewports=[new vr(2,1,1,1),new vr(0,1,1,1),new vr(3,1,1,1),new vr(1,1,1,1),new vr(3,0,1,1),new vr(1,0,1,1)],e._cubeDirections=[new xr(1,0,0),new xr(-1,0,0),new xr(0,0,1),new xr(0,0,-1),new xr(0,1,0),new xr(0,-1,0)],e._cubeUps=[new xr(0,1,0),new xr(0,1,0),new xr(0,1,0),new xr(0,1,0),new xr(0,0,1),new xr(0,0,-1)],e}return A(n,[{key:"updateMatrices",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),Hp.setFromMatrixPosition(e.matrixWorld),n.position.copy(Hp),Gp.copy(n.position),Gp.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Gp),n.updateMatrixWorld(),r.makeTranslation(-Hp.x,-Hp.y,-Hp.z),zp.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(zp)}}]),n}(Fp);Vp.prototype.isPointLightShadow=!0;var Wp=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),i=t.call(this,e,r),i.type="PointLight",i.distance=a,i.decay=o,i.shadow=new Vp,i}return A(n,[{key:"power",get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}},{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}]),n}(Pp);Wp.prototype.isPointLight=!0;var qp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.call(this,new Cu(-5,5,5,-5,.5,500))}return A(n)}(Fp);qp.prototype.isDirectionalLightShadow=!0;var Xp=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="DirectionalLight",i.position.copy(_i.DefaultUp),i.updateMatrix(),i.target=new _i,i.shadow=new qp,i}return A(n,[{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}]),n}(Pp);Xp.prototype.isDirectionalLight=!0;var Yp=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="AmbientLight",i}return A(n)}(Pp);Yp.prototype.isAmbientLight=!0;var Kp=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return M(this,n),i=t.call(this,e,r),i.type="RectAreaLight",i.width=a,i.height=o,i}return A(n,[{key:"power",get:function(){return this.intensity*this.width*this.height*Math.PI},set:function(e){this.intensity=e/(this.width*this.height*Math.PI)}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.width=e.width,this.height=e.height,this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.width=this.width,t.object.height=this.height,t}}]),n}(Pp);Kp.prototype.isRectAreaLight=!0;var Zp=function(){function e(){M(this,e),this.coefficients=[];for(var t=0;t<9;t++)this.coefficients.push(new xr)}return A(e,[{key:"set",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}},{key:"zero",value:function(){for(var e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}},{key:"getAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScaledVector(a[1],.488603*r),t.addScaledVector(a[2],.488603*i),t.addScaledVector(a[3],.488603*n),t.addScaledVector(a[4],n*r*1.092548),t.addScaledVector(a[5],r*i*1.092548),t.addScaledVector(a[6],.315392*(3*i*i-1)),t.addScaledVector(a[7],n*i*1.092548),t.addScaledVector(a[8],.546274*(n*n-r*r)),t}},{key:"getIrradianceAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScaledVector(a[1],1.023328*r),t.addScaledVector(a[2],1.023328*i),t.addScaledVector(a[3],1.023328*n),t.addScaledVector(a[4],.858086*n*r),t.addScaledVector(a[5],.858086*r*i),t.addScaledVector(a[6],.743125*i*i-.247708),t.addScaledVector(a[7],.858086*n*i),t.addScaledVector(a[8],.429043*(n*n-r*r)),t}},{key:"add",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}},{key:"addScaledSH",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}},{key:"scale",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}},{key:"lerp",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}},{key:"equals",value:function(e){for(var t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}},{key:"copy",value:function(e){return this.set(e.coefficients)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.coefficients,r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}},{key:"toArray",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.coefficients,r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}}],[{key:"getBasisAt",value:function(e,t){var n=e.x,r=e.y,i=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}}]),e}();Zp.prototype.isSphericalHarmonics3=!0;var Jp=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Zp,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return M(this,n),e=t.call(this,void 0,i),e.sh=r,e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.sh.copy(e.sh),this}},{key:"fromJSON",value:function(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.sh=this.sh.toArray(),t}}]),n}(Pp);Jp.prototype.isLightProbe=!0;var $p=function(){function e(){M(this,e)}return A(e,null,[{key:"decodeText",value:function(e){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(e);for(var t="",n=0,r=e.length;n2&&void 0!==arguments[2]?arguments[2]:1;M(this,n),i=t.call(this,void 0,a);var o=(new Hi).set(e),s=(new Hi).set(r),u=new xr(o.r,o.g,o.b),l=new xr(s.r,s.g,s.b),c=Math.sqrt(Math.PI),f=c*Math.sqrt(.75);return i.sh.coefficients[0].copy(u).add(l).multiplyScalar(c),i.sh.coefficients[1].copy(u).sub(l).multiplyScalar(f),i}return A(n)}(Jp);iv.prototype.isHemisphereLightProbe=!0;var av=function(e){w(n,e);var t=E(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;M(this,n),r=t.call(this,void 0,i);var a=(new Hi).set(e);return r.sh.coefficients[0].set(a.r,a.g,a.b).multiplyScalar(2*Math.sqrt(Math.PI)),r}return A(n)}(Jp);av.prototype.isAmbientLightProbe=!0;var ov=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];M(this,e),this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}return A(e,[{key:"start",value:function(){this.startTime=sv(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var t=sv();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}]),e}();function sv(){return("undefined"===typeof performance?Date:performance).now()}var uv=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="Audio",r.listener=e,r.context=e.context,r.gain=r.context.createGain(),r.gain.connect(e.getInput()),r.autoplay=!1,r.buffer=null,r.detune=0,r.loop=!1,r.loopStart=0,r.loopEnd=0,r.offset=0,r.duration=void 0,r.playbackRate=1,r.isPlaying=!1,r.hasPlaybackControl=!0,r.source=null,r.sourceType="empty",r._startedAt=0,r._progress=0,r._connected=!1,r.filters=[],r}return A(n,[{key:"getOutput",value:function(){return this.gain}},{key:"setNodeSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}},{key:"setMediaElementSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}},{key:"setMediaStreamSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}},{key:"setBuffer",value:function(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!0!==this.isPlaying){if(!1!==this.hasPlaybackControl){this._startedAt=this.context.currentTime+e;var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")}},{key:"pause",value:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"stop",value:function(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"connect",value:function(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e1&&void 0!==arguments[1]?arguments[1]:2048;M(this,e),this.analyser=t.context.createAnalyser(),this.analyser.fftSize=n,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}return A(e,[{key:"getFrequencyData",value:function(){return this.analyser.getByteFrequencyData(this.data),this.data}},{key:"getAverageFrequency",value:function(){for(var e=0,t=this.getFrequencyData(),n=0;n0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(var u=t,l=t+t;u!==l;++u)if(n[u]!==n[u+t]){o.setValue(n,r);break}}},{key:"saveOriginalState",value:function(){var e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(var i=n,a=r;i!==a;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}},{key:"restoreOriginalState",value:function(){var e=3*this.valueSize;this.binding.setValue(this.buffer,e)}},{key:"_setAdditiveIdentityNumeric",value:function(){for(var e=this._addIndex*this.valueSize,t=e+this.valueSize,n=e;n=.5)for(var a=0;a!==i;++a)e[t+a]=e[n+a]}},{key:"_slerp",value:function(e,t,n,r){br.slerpFlat(e,t,e,t,e,n,r)}},{key:"_slerpAdditive",value:function(e,t,n,r,i){var a=this._workIndex*i;br.multiplyQuaternionsFlat(e,a,e,t,e,n),br.slerpFlat(e,t,e,t,e,a,r)}},{key:"_lerp",value:function(e,t,n,r,i){for(var a=1-r,o=0;o!==i;++o){var s=t+o;e[s]=e[s]*a+e[n+o]*r}}},{key:"_lerpAdditive",value:function(e,t,n,r,i){for(var a=0;a!==i;++a){var o=t+a;e[o]=e[o]+e[n+a]*r}}}]),e}(),fv="\\[\\]\\.:\\/",dv=new RegExp("["+fv+"]","g"),hv="[^"+fv+"]",pv="[^"+fv.replace("\\.","")+"]",vv=/((?:WC+[\/:])*)/.source.replace("WC",hv),mv=/(WCOD+)?/.source.replace("WCOD",pv),gv=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",hv),yv=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",hv),bv=new RegExp("^"+vv+mv+gv+yv+"$"),xv=["material","materials","bones"],wv=function(){function e(t,n,r){M(this,e);var i=r||_v.parseTrackName(n);this._targetGroup=t,this._bindings=t.subscribe_(n,i)}return A(e,[{key:"getValue",value:function(e,t){this.bind();var n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}},{key:"setValue",value:function(e,t){for(var n=this._bindings,r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}},{key:"bind",value:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}},{key:"unbind",value:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}]),e}(),_v=function(){function e(t,n,r){M(this,e),this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}return A(e,[{key:"_getValue_unavailable",value:function(){}},{key:"_setValue_unavailable",value:function(){}},{key:"_getValue_direct",value:function(e,t){e[t]=this.targetObject[this.propertyName]}},{key:"_getValue_array",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)e[t++]=n[r]}},{key:"_getValue_arrayElement",value:function(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}},{key:"_getValue_toArray",value:function(e,t){this.resolvedProperty.toArray(e,t)}},{key:"_setValue_direct",value:function(e,t){this.targetObject[this.propertyName]=e[t]}},{key:"_setValue_direct_setNeedsUpdate",value:function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}},{key:"_setValue_direct_setMatrixWorldNeedsUpdate",value:function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_array",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++]}},{key:"_setValue_array_setNeedsUpdate",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}},{key:"_setValue_array_setMatrixWorldNeedsUpdate",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_arrayElement",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}},{key:"_setValue_arrayElement_setNeedsUpdate",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}},{key:"_setValue_arrayElement_setMatrixWorldNeedsUpdate",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_fromArray",value:function(e,t){this.resolvedProperty.fromArray(e,t)}},{key:"_setValue_fromArray_setNeedsUpdate",value:function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}},{key:"_setValue_fromArray_setMatrixWorldNeedsUpdate",value:function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_getValue_unbound",value:function(e,t){this.bind(),this.getValue(e,t)}},{key:"_setValue_unbound",value:function(e,t){this.bind(),this.setValue(e,t)}},{key:"bind",value:function(){var t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(r){var o=n.objectIndex;switch(r){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(var s=0;s=i){var c=i++,f=e[c];t[f.uuid]=l,e[l]=f,t[u]=c,e[c]=s;for(var d=0,h=r;d!==h;++d){var p=n[d],v=p[c],m=p[l];p[l]=v,p[c]=m}}}this.nCachedObjects_=i}},{key:"uncache",value:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,a=e.length,o=0,s=arguments.length;o!==s;++o){var u=arguments[o],l=u.uuid,c=t[l];if(void 0!==c)if(delete t[l],c0&&(t[w.uuid]=c),e[c]=w,e.pop();for(var _=0,E=r;_!==E;++_){var S=n[_];S[c]=S[x],S.pop()}}}this.nCachedObjects_=i}},{key:"subscribe_",value:function(e,t){var n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(void 0!==r)return i[r];var a=this._paths,o=this._parsedPaths,s=this._objects,u=s.length,l=this.nCachedObjects_,c=new Array(u);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(c);for(var f=l,d=s.length;f!==d;++f){var h=s[f];c[f]=new _v(h,e,t)}return c}},{key:"unsubscribe_",value:function(e){var t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){var r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o],u=e[o];t[u]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}}]),e}();Ev.prototype.isAnimationObjectGroup=!0;var Sv=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.blendMode;M(this,e),this._mixer=t,this._clip=n,this._localRoot=r,this.blendMode=i;for(var a=n.tracks,o=a.length,s=new Array(o),u={endingStart:un,endingEnd:un},l=0;l!==o;++l){var c=a[l].createInterpolant(null);s[l]=c,c.settings=u}this._interpolantSettings=u,this._interpolants=s,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=nn,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}return A(e,[{key:"play",value:function(){return this._mixer._activateAction(this),this}},{key:"stop",value:function(){return this._mixer._deactivateAction(this),this.reset()}},{key:"reset",value:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}},{key:"isRunning",value:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}},{key:"isScheduled",value:function(){return this._mixer._isActiveAction(this)}},{key:"startAt",value:function(e){return this._startTime=e,this}},{key:"setLoop",value:function(e,t){return this.loop=e,this.repetitions=t,this}},{key:"setEffectiveWeight",value:function(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}},{key:"getEffectiveWeight",value:function(){return this._effectiveWeight}},{key:"fadeIn",value:function(e){return this._scheduleFading(e,0,1)}},{key:"fadeOut",value:function(e){return this._scheduleFading(e,1,0)}},{key:"crossFadeFrom",value:function(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){var r=this._clip.duration,i=e._clip.duration,a=i/r,o=r/i;e.warp(1,a,t),this.warp(o,1,t)}return this}},{key:"crossFadeTo",value:function(e,t,n){return e.crossFadeFrom(this,t,n)}},{key:"stopFading",value:function(){var e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"setEffectiveTimeScale",value:function(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}},{key:"getEffectiveTimeScale",value:function(){return this._effectiveTimeScale}},{key:"setDuration",value:function(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}},{key:"syncWith",value:function(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}},{key:"halt",value:function(e){return this.warp(this._effectiveTimeScale,0,e)}},{key:"warp",value:function(e,t,n){var r=this._mixer,i=r.time,a=this.timeScale,o=this._timeScaleInterpolant;null===o&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);var s=o.parameterPositions,u=o.sampleValues;return s[0]=i,s[1]=i+n,u[0]=e/a,u[1]=t/a,this}},{key:"stopWarping",value:function(){var e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"getMixer",value:function(){return this._mixer}},{key:"getClip",value:function(){return this._clip}},{key:"getRoot",value:function(){return this._localRoot||this._mixer._root}},{key:"_update",value:function(e,t,n,r){if(this.enabled){var i=this._startTime;if(null!==i){var a=(e-i)*n;if(a<0||0===n)return;this._startTime=null,t=n*a}t*=this._updateTimeScale(e);var o=this._updateTime(t),s=this._updateWeight(e);if(s>0){var u=this._interpolants,l=this._propertyBindings;switch(this.blendMode){case dn:for(var c=0,f=u.length;c!==f;++c)u[c].evaluate(o),l[c].accumulateAdditive(s);break;case fn:default:for(var d=0,h=u.length;d!==h;++d)u[d].evaluate(o),l[d].accumulate(r,s)}}}else this._updateWeight(e)}},{key:"_updateWeight",value:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}},{key:"_updateTimeScale",value:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}},{key:"_updateTime",value:function(e){var t=this._clip.duration,n=this.loop,r=this.time+e,i=this._loopCount,a=n===rn;if(0===e)return-1===i?r:a&&1===(1&i)?t-r:r;if(n===tn){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),r>=t||r<0){var o=Math.floor(r/t);r-=t*o,i+=Math.abs(o);var s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){var u=e<0;this._setEndings(u,!u,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o})}}else this.time=r;if(a&&1===(1&i))return t-r}return r}},{key:"_setEndings",value:function(e,t,n){var r=this._interpolantSettings;n?(r.endingStart=ln,r.endingEnd=ln):(r.endingStart=e?this.zeroSlopeAtStart?ln:un:cn,r.endingEnd=t?this.zeroSlopeAtEnd?ln:un:cn)}},{key:"_scheduleFading",value:function(e,t,n){var r=this._mixer,i=r.time,a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);var o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}}]),e}(),kv=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r._root=e,r._initMemoryManager(),r._accuIndex=0,r.time=0,r.timeScale=1,r}return A(n,[{key:"_bindAction",value:function(e,t){var n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,u=this._bindingsByRootAndName,l=u[s];void 0===l&&(l={},u[s]=l);for(var c=0;c!==i;++c){var f=r[c],d=f.name,h=l[d];if(void 0!==h)a[c]=h;else{if(h=a[c],void 0!==h){null===h._cacheIndex&&(++h.referenceCount,this._addInactiveBinding(h,s,d));continue}var p=t&&t._propertyBindings[c].binding.parsedPath;h=new cv(_v.create(n,d,p),f.ValueTypeName,f.getValueSize()),++h.referenceCount,this._addInactiveBinding(h,s,d),a[c]=h}o[c].resultBuffer=h.buffer}}},{key:"_activateAction",value:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}for(var i=e._propertyBindings,a=0,o=i.length;a!==o;++a){var s=i[a];0===s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}}},{key:"_deactivateAction",value:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0===--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(e)}}},{key:"_initMemoryManager",value:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}},{key:"_isActiveAction",value:function(e){var t=e._cacheIndex;return null!==t&&t=0;--n)e[n].stop();return this}},{key:"update",value:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1,o=0;o!==n;++o){var s=t[o];s._update(r,e,i,a)}for(var u=this._bindings,l=this._nActiveBindings,c=0;c!==l;++c)u[c].apply(a);return this}},{key:"setTime",value:function(e){this.time=0;for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:1;return M(this,n),i=t.call(this,e,r),i.meshPerAttribute=a,i}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}},{key:"clone",value:function(e){var t=g(v(n.prototype),"clone",this).call(this,e);return t.meshPerAttribute=this.meshPerAttribute,t}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}}]),n}(Pf);Tv.prototype.isInstancedInterleavedBuffer=!0;var Av=function(){function e(t,n,r,i,a){M(this,e),this.buffer=t,this.type=n,this.itemSize=r,this.elementSize=i,this.count=a,this.version=0}return A(e,[{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"setBuffer",value:function(e){return this.buffer=e,this}},{key:"setType",value:function(e,t){return this.type=e,this.elementSize=t,this}},{key:"setItemSize",value:function(e){return this.itemSize=e,this}},{key:"setCount",value:function(e){return this.count=e,this}}]),e}();Av.prototype.isGLBufferAttribute=!0;var Ov=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return M(this,e),this.radius=t,this.phi=n,this.theta=r,this}return A(e,[{key:"set",value:function(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}},{key:"copy",value:function(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}},{key:"makeSafe",value:function(){var e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this}},{key:"setFromVector3",value:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}},{key:"setFromCartesianCoords",value:function(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(Un(t/this.radius,-1,1))),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Rv=new ar,Cv=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ar(1/0,1/0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar(-1/0,-1/0);M(this,e),this.min=t,this.max=n}return A(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;tthis.max.x||e.ythis.max.y)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}},{key:"intersectsBox",value:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){var t=Rv.copy(e).clamp(this.min,this.max);return t.sub(e).length()}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}();Cv.prototype.isBox2=!0;var Lv=new xr,Pv=new xr,Iv=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr;M(this,e),this.start=t,this.end=n}return A(e,[{key:"set",value:function(e,t){return this.start.copy(e),this.end.copy(t),this}},{key:"copy",value:function(e){return this.start.copy(e.start),this.end.copy(e.end),this}},{key:"getCenter",value:function(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}},{key:"delta",value:function(e){return e.subVectors(this.end,this.start)}},{key:"distanceSq",value:function(){return this.start.distanceToSquared(this.end)}},{key:"distance",value:function(){return this.start.distanceTo(this.end)}},{key:"at",value:function(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}},{key:"closestPointToPointParameter",value:function(e,t){Lv.subVectors(e,this.start),Pv.subVectors(this.end,this.start);var n=Pv.dot(Pv),r=Pv.dot(Lv),i=r/n;return t&&(i=Un(i,0,1)),i}},{key:"closestPointToPoint",value:function(e,t,n){var r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}},{key:"applyMatrix4",value:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}},{key:"equals",value:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Nv=new xr,Dv=new Jr,jv=new Jr,Fv=function(e){w(n,e);var t=E(n);function n(e){var r;M(this,n);for(var i=Uv(e),a=new ia,o=[],s=[],u=new Hi(0,0,1),l=new Hi(0,1,0),c=0;c0&&void 0!==arguments[0]?arguments[0]:10,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4473924,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8947848;M(this,n),a=new Hi(a),o=new Hi(o);for(var s=i/2,u=r/i,l=r/2,c=[],f=[],d=0,h=0,p=-l;d<=i;d++,p+=u){c.push(-l,0,p,l,0,p),c.push(p,0,-l,p,0,l);var v=d===s?a:o;v.toArray(f,h),h+=3,v.toArray(f,h),h+=3,v.toArray(f,h),h+=3,v.toArray(f,h),h+=3}var m=new ia;m.setAttribute("position",new Zi(c,3)),m.setAttribute("color",new Zi(f,3));var g=new vd({vertexColors:!0,toneMapped:!1});return e=t.call(this,m,g),e.type="GridHelper",e}return A(n)}(Sd);var zv=new Float32Array(1);new Int32Array(zv.buffer);Dd.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(Dd.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},ch.prototype.fromPoints=function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)},Bv.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Fv.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Mp.prototype.extractUrlBase=function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),$p.extractUrlBase(e)},Mp.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Cv.prototype.center=function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},Cv.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Cv.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Cv.prototype.size=function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)},Er.prototype.center=function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Er.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Er.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Er.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},Er.prototype.size=function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)},Hr.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Wa.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},Iv.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},or.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},or.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},or.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},or.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},or.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},or.prototype.getInverse=function(e){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Jr.prototype.extractPosition=function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},Jr.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},Jr.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new xr).setFromMatrixColumn(this,3)},Jr.prototype.setRotationFromQuaternion=function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},Jr.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Jr.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.multiplyVector4=function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Jr.prototype.rotateAxis=function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},Jr.prototype.crossVector=function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Jr.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Jr.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Jr.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Jr.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Jr.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Jr.prototype.makeFrustum=function(e,t,n,r,i,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,r,n,i,a)},Jr.prototype.getInverse=function(e){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Ha.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},br.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},br.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Zr.prototype.isIntersectionBox=function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Zr.prototype.isIntersectionPlane=function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},Zr.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},Pi.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},Pi.prototype.barycoordFromPoint=function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},Pi.prototype.midpoint=function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},Pi.prototypenormal=function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},Pi.prototype.plane=function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)},Pi.barycoordFromPoint=function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Pi.getBarycoord(e,t,n,r,i)},Pi.normal=function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Pi.getNormal(e,t,n,r)},fh.prototype.extractAllPoints=function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},fh.prototype.extrude=function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Xh(this,e)},fh.prototype.makeGeometry=function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Zh(this,e)},ar.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},ar.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},ar.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},xr.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},xr.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},xr.prototype.getPositionFromMatrix=function(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},xr.prototype.getScaleFromMatrix=function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},xr.prototype.getColumnFromMatrix=function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},xr.prototype.applyProjection=function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},xr.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},xr.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},xr.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},vr.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},vr.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},_i.prototype.getChildByName=function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},_i.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},_i.prototype.translate=function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},_i.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},_i.prototype.applyMatrix=function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(_i.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),_a.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(_a.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),hn},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),rd.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Pa.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(Pp.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(qi.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Rn},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Rn)}}}),qi.prototype.setDynamic=function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Rn:On),this},qi.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},qi.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},ia.prototype.addIndex=function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},ia.prototype.addAttribute=function(e,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(e,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(e,new qi(arguments[1],arguments[2])))},ia.prototype.addDrawCall=function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},ia.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},ia.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},ia.prototype.removeAttribute=function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},ia.prototype.applyMatrix=function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(ia.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Pf.prototype.setDynamic=function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Rn:On),this},Pf.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Xh.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Xh.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Xh.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Lf.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Mv.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(Ni.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Hi}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=e===z}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(e){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=e}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}}),Object.defineProperties(Ca.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),Af.prototype.clearTarget=function(e,t,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,r)},Af.prototype.animate=function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},Af.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Af.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Af.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Af.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Af.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Af.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Af.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Af.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Af.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Af.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Af.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Af.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Af.prototype.enableScissorTest=function(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},Af.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Af.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Af.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Af.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Af.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Af.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Af.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Af.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Af.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Af.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Af.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(e){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===e?gn:mn}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(mf.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(mr.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),uv.prototype.load=function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this,n=new rv;return n.load(e,(function(e){t.setBuffer(e)})),this},lv.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Da.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)},Da.prototype.clear=function(e,t,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(e,t,n,r)},fr.crossOrigin=void 0,fr.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var i=new Lp;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},fr.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var i=new Rp;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},fr.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},fr.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:O}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=O);var Hv=function(e){w(n,e);var t=E(n);function n(){var e;M(this,n),e=t.call(this);var r=new ka;r.deleteAttribute("uv");var i=new Qh({side:U}),a=new Qh,o=new Wp(16777215,5,28,2);o.position.set(.418,16.199,.3),e.add(o);var s=new _a(r,i);s.position.set(-.757,13.219,.717),s.scale.set(31.713,28.305,28.591),e.add(s);var u=new _a(r,a);u.position.set(-10.906,2.009,1.846),u.rotation.set(0,-.195,0),u.scale.set(2.328,7.905,4.651),e.add(u);var l=new _a(r,a);l.position.set(-5.607,-.754,-.758),l.rotation.set(0,.994,0),l.scale.set(1.97,1.534,3.955),e.add(l);var c=new _a(r,a);c.position.set(6.167,.857,7.803),c.rotation.set(0,.561,0),c.scale.set(3.927,6.285,3.687),e.add(c);var f=new _a(r,a);f.position.set(-2.017,.018,6.124),f.rotation.set(0,.333,0),f.scale.set(2.002,4.566,2.064),e.add(f);var d=new _a(r,a);d.position.set(2.291,-.756,-2.621),d.rotation.set(0,-.286,0),d.scale.set(1.546,1.552,1.496),e.add(d);var h=new _a(r,a);h.position.set(-2.193,-.369,-5.547),h.rotation.set(0,.516,0),h.scale.set(3.875,3.487,2.986),e.add(h);var p=new _a(r,Gv(50));p.position.set(-16.116,14.37,8.208),p.scale.set(.1,2.428,2.739),e.add(p);var v=new _a(r,Gv(50));v.position.set(-16.109,18.021,-8.207),v.scale.set(.1,2.425,2.751),e.add(v);var m=new _a(r,Gv(17));m.position.set(14.904,12.198,-1.832),m.scale.set(.15,4.265,6.331),e.add(m);var g=new _a(r,Gv(43));g.position.set(-.462,8.89,14.52),g.scale.set(4.38,5.441,.088),e.add(g);var y=new _a(r,Gv(20));y.position.set(3.235,11.486,-12.541),y.scale.set(2.5,2,.1),e.add(y);var b=new _a(r,Gv(100));return b.position.set(0,20,0),b.scale.set(1,.1,1),e.add(b),e}return A(n)}(Lf);function Gv(e){var t=new Gi;return t.color.setScalar(e),t}var Vv=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.dracoLoader=null,r.ktx2Loader=null,r.meshoptDecoder=null,r.pluginCallbacks=[],r.register((function(e){return new Kv(e)})),r.register((function(e){return new tm(e)})),r.register((function(e){return new nm(e)})),r.register((function(e){return new Zv(e)})),r.register((function(e){return new Jv(e)})),r.register((function(e){return new $v(e)})),r.register((function(e){return new Qv(e)})),r.register((function(e){return new em(e)})),r.register((function(e){return new Xv(e)})),r.register((function(e){return new rm(e)})),r}return A(n,[{key:"load",value:function(e,t,n,r){var i,a=this;i=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:$p.extractUrlBase(e),this.manager.itemStart(e);var o=function(t){r?r(t):console.error(t),a.manager.itemError(e),a.manager.itemEnd(e)},s=new Ap(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,(function(n){try{a.parse(n,i,(function(n){t(n),a.manager.itemEnd(e)}),o)}catch(r){o(r)}}),n,o)}},{key:"setDRACOLoader",value:function(e){return this.dracoLoader=e,this}},{key:"setDDSLoader",value:function(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}},{key:"setKTX2Loader",value:function(e){return this.ktx2Loader=e,this}},{key:"setMeshoptDecoder",value:function(e){return this.meshoptDecoder=e,this}},{key:"register",value:function(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}},{key:"unregister",value:function(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}},{key:"parse",value:function(e,t,n,r){var i,a={},o={};if("string"===typeof e)i=e;else{var s=$p.decodeText(new Uint8Array(e,0,4));if(s===im){try{a[qv.KHR_BINARY_GLTF]=new sm(e)}catch(v){return void(r&&r(v))}i=a[qv.KHR_BINARY_GLTF].content}else i=$p.decodeText(new Uint8Array(e))}var u=JSON.parse(i);if(void 0===u.asset||u.asset.version[0]<2)r&&r(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));else{var l=new Pm(u,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});l.fileLoader.setRequestHeader(this.requestHeader);for(var c=0;c=0&&void 0===o[h]&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}l.setExtensions(a),l.setPlugins(o),l.parse(n,r)}}},{key:"parseAsync",value:function(e,t){var n=this;return new Promise((function(r,i){n.parse(e,t,r,i)}))}}]),n}(Mp);function Wv(){var e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}var qv={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:"KHR_materials_pbrSpecularGlossiness",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression"},Xv=function(){function e(t){M(this,e),this.parser=t,this.name=qv.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}return A(e,[{key:"_markDefs",value:function(){for(var e=this.parser,t=this.parser.json.nodes||[],n=0,r=t.length;n=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,a,o)}}]),e}(),nm=function(){function e(t){M(this,e),this.parser=t,this.name=qv.EXT_TEXTURE_WEBP,this.isSupported=null}return A(e,[{key:"loadTexture",value:function(e){var t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;var a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){var u=n.options.manager.getHandler(o.uri);null!==u&&(s=u)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(e,o,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)}))}},{key:"detectSupport",value:function(){return this.isSupported||(this.isSupported=new Promise((function(e){var t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}]),e}(),rm=function(){function e(t){M(this,e),this.name=qv.EXT_MESHOPT_COMPRESSION,this.parser=t}return A(e,[{key:"loadBufferView",value:function(e){var t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){var r=n.extensions[this.name],i=this.parser.getDependency("buffer",r.buffer),a=this.parser.options.meshoptDecoder;if(!a||!a.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return Promise.all([i,a.ready]).then((function(e){var t=r.byteOffset||0,n=r.byteLength||0,i=r.count,o=r.byteStride,s=new ArrayBuffer(i*o),u=new Uint8Array(e[0],t,n);return a.decodeGltfBuffer(new Uint8Array(s),i,o,u,r.mode,r.filter),s}))}return null}}]),e}(),im="glTF",am=12,om={JSON:1313821514,BIN:5130562},sm=A((function e(t){M(this,e),this.name=qv.KHR_BINARY_GLTF,this.content=null,this.body=null;var n=new DataView(t,0,am);if(this.header={magic:$p.decodeText(new Uint8Array(t.slice(0,4))),version:n.getUint32(4,!0),length:n.getUint32(8,!0)},this.header.magic!==im)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");var r=this.header.length-am,i=new DataView(t,am),a=0;while(a",i).replace("#include ",a).replace("#include ",o).replace("#include ",s).replace("#include ",u)},Object.defineProperties(h(r),{specular:{get:function(){return l.specular.value},set:function(e){l.specular.value=e}},specularMap:{get:function(){return l.specularMap.value},set:function(e){l.specularMap.value=e,e?this.defines.USE_SPECULARMAP="":delete this.defines.USE_SPECULARMAP}},glossiness:{get:function(){return l.glossiness.value},set:function(e){l.glossiness.value=e}},glossinessMap:{get:function(){return l.glossinessMap.value},set:function(e){l.glossinessMap.value=e,e?(this.defines.USE_GLOSSINESSMAP="",this.defines.USE_UV=""):(delete this.defines.USE_GLOSSINESSMAP,delete this.defines.USE_UV)}}}),delete r.metalness,delete r.roughness,delete r.metalnessMap,delete r.roughnessMap,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.specularMap=e.specularMap,this.specular.copy(e.specular),this.glossinessMap=e.glossinessMap,this.glossiness=e.glossiness,delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this}}]),n}(Qh),fm=function(){function e(){M(this,e),this.name=qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,this.specularGlossinessParams=["color","map","lightMap","lightMapIntensity","aoMap","aoMapIntensity","emissive","emissiveIntensity","emissiveMap","bumpMap","bumpScale","normalMap","normalMapType","displacementMap","displacementScale","displacementBias","specularMap","specular","glossinessMap","glossiness","alphaMap","envMap","envMapIntensity","refractionRatio"]}return A(e,[{key:"getMaterialType",value:function(){return cm}},{key:"extendParams",value:function(e,t,n){var r=t.extensions[this.name];e.color=new Hi(1,1,1),e.opacity=1;var i=[];if(Array.isArray(r.diffuseFactor)){var a=r.diffuseFactor;e.color.fromArray(a),e.opacity=a[3]}if(void 0!==r.diffuseTexture&&i.push(n.assignTexture(e,"map",r.diffuseTexture)),e.emissive=new Hi(0,0,0),e.glossiness=void 0!==r.glossinessFactor?r.glossinessFactor:1,e.specular=new Hi(1,1,1),Array.isArray(r.specularFactor)&&e.specular.fromArray(r.specularFactor),void 0!==r.specularGlossinessTexture){var o=r.specularGlossinessTexture;i.push(n.assignTexture(e,"glossinessMap",o)),i.push(n.assignTexture(e,"specularMap",o))}return Promise.all(i)}},{key:"createMaterial",value:function(e){var t=new cm(e);return t.fog=!0,t.color=e.color,t.map=void 0===e.map?null:e.map,t.lightMap=null,t.lightMapIntensity=1,t.aoMap=void 0===e.aoMap?null:e.aoMap,t.aoMapIntensity=1,t.emissive=e.emissive,t.emissiveIntensity=1,t.emissiveMap=void 0===e.emissiveMap?null:e.emissiveMap,t.bumpMap=void 0===e.bumpMap?null:e.bumpMap,t.bumpScale=1,t.normalMap=void 0===e.normalMap?null:e.normalMap,t.normalMapType=kn,e.normalScale&&(t.normalScale=e.normalScale),t.displacementMap=null,t.displacementScale=1,t.displacementBias=0,t.specularMap=void 0===e.specularMap?null:e.specularMap,t.specular=e.specular,t.glossinessMap=void 0===e.glossinessMap?null:e.glossinessMap,t.glossiness=e.glossiness,t.alphaMap=null,t.envMap=void 0===e.envMap?null:e.envMap,t.envMapIntensity=1,t.refractionRatio=.98,t}}]),e}(),dm=A((function e(){M(this,e),this.name=qv.KHR_MESH_QUANTIZATION})),hm=function(e){w(n,e);var t=E(n);function n(e,r,i,a){return M(this,n),t.call(this,e,r,i,a)}return A(n,[{key:"copySampleValue_",value:function(e){for(var t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r,a=0;a!==r;a++)t[a]=n[i+a];return t}}]),n}(up);hm.prototype.beforeStart_=hm.prototype.copySampleValue_,hm.prototype.afterEnd_=hm.prototype.copySampleValue_,hm.prototype.interpolate_=function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=2*o,u=3*o,l=r-t,c=(n-t)/l,f=c*c,d=f*c,h=e*u,p=h-u,v=-2*d+3*f,m=d-f,g=1-v,y=m-f+c,b=0;b!==o;b++){var x=a[p+b+o],w=a[p+b+s]*l,_=a[h+b+o],E=a[h+b]*l;i[b]=g*x+y*w+v*_+m*E}return i};var pm=new br,vm=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"interpolate_",value:function(e,t,r,i){var a=g(v(n.prototype),"interpolate_",this).call(this,e,t,r,i);return pm.fromArray(a).normalize().toArray(a),a}}]),n}(hm),mm={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},gm={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},ym={9728:je,9729:Be,9984:Fe,9985:ze,9986:Ue,9987:He},bm={33071:Ne,33648:De,10497:Ie},xm={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},wm={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},_m={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},Em={CUBICSPLINE:void 0,LINEAR:on,STEP:an},Sm={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function km(e){return void 0===e["DefaultMaterial"]&&(e["DefaultMaterial"]=new Qh({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:F})),e["DefaultMaterial"]}function Mm(e,t,n){for(var r in n.extensions)void 0===e[r]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}function Tm(e,t){void 0!==t.extras&&("object"===typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function Am(e,t,n){for(var r=!1,i=!1,a=0,o=t.length;a0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,e),this.json=t,this.extensions={},this.plugins={},this.options=n,this.cache=new Wv,this.associations=new Map,this.primitiveCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.textureCache={},this.nodeNamesUsed={},"undefined"!==typeof createImageBitmap&&!1===/Firefox/.test(navigator.userAgent)?this.textureLoader=new tv(this.options.manager):this.textureLoader=new Lp(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Ap(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}return A(e,[{key:"setExtensions",value:function(e){this.extensions=e}},{key:"setPlugins",value:function(e){this.plugins=e}},{key:"parse",value:function(e,t){var n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this._invokeAll((function(e){return e._markDefs&&e._markDefs()})),Promise.all(this._invokeAll((function(e){return e.beforeRoot&&e.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(t){var a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};Mm(i,a,r),Tm(a,r),Promise.all(n._invokeAll((function(e){return e.afterRoot&&e.afterRoot(a)}))).then((function(){e(a)}))}))["catch"](t)}},{key:"_markDefs",value:function(){for(var e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[],r=0,i=t.length;r=2&&a.setY(k,_[E*s+1]),s>=3&&a.setZ(k,_[E*s+2]),s>=4&&a.setW(k,_[E*s+3]),s>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return a}))}},{key:"loadTexture",value:function(e){var t=this.json,n=this.options,r=t.textures[e],i=t.images[r.source],a=this.textureLoader;if(i.uri){var o=n.manager.getHandler(i.uri);null!==o&&(a=o)}return this.loadTextureImage(e,i,a)}},{key:"loadTextureImage",value:function(e,t,n){var r=this,i=this.json,a=this.options,o=i.textures[e],s=(t.uri||t.bufferView)+":"+o.sampler;if(this.textureCache[s])return this.textureCache[s];var u=self.URL||self.webkitURL,l=t.uri||"",c=!1;if(void 0!==t.bufferView)l=r.getDependency("bufferView",t.bufferView).then((function(e){c=!0;var n=new Blob([e],{type:t.mimeType});return l=u.createObjectURL(n),l}));else if(void 0===t.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");var f=Promise.resolve(l).then((function(e){return new Promise((function(t,r){var i=t;!0===n.isImageBitmapLoader&&(i=function(e){var n=new hr(e);n.needsUpdate=!0,t(n)}),n.load($p.resolveURL(e,a.path),i,void 0,r)}))})).then((function(t){!0===c&&u.revokeObjectURL(l),t.flipY=!1,o.name&&(t.name=o.name);var n=i.samplers||{},a=n[o.sampler]||{};return t.magFilter=ym[a.magFilter]||Be,t.minFilter=ym[a.minFilter]||He,t.wrapS=bm[a.wrapS]||Ie,t.wrapT=bm[a.wrapT]||Ie,r.associations.set(t,{textures:e}),t}))["catch"]((function(){return console.error("THREE.GLTFLoader: Couldn't load texture",l),null}));return this.textureCache[s]=f,f}},{key:"assignTexture",value:function(e,t,n){var r=this;return this.getDependency("texture",n.index).then((function(i){if(void 0===n.texCoord||0==n.texCoord||"aoMap"===t&&1==n.texCoord||console.warn("THREE.GLTFLoader: Custom UV set "+n.texCoord+" for texture "+t+" not yet supported."),r.extensions[qv.KHR_TEXTURE_TRANSFORM]){var a=void 0!==n.extensions?n.extensions[qv.KHR_TEXTURE_TRANSFORM]:void 0;if(a){var o=r.associations.get(i);i=r.extensions[qv.KHR_TEXTURE_TRANSFORM].extendTexture(i,a),r.associations.set(i,o)}}return e[t]=i,i}))}},{key:"assignFinalMaterial",value:function(e){var t=e.geometry,n=e.material,r=void 0===t.attributes.tangent,i=void 0!==t.attributes.color,a=void 0===t.attributes.normal;if(e.isPoints){var o="PointsMaterial:"+n.uuid,s=this.cache.get(o);s||(s=new Md,Ni.prototype.copy.call(s,n),s.color.copy(n.color),s.map=n.map,s.sizeAttenuation=!1,this.cache.add(o,s)),n=s}else if(e.isLine){var u="LineBasicMaterial:"+n.uuid,l=this.cache.get(u);l||(l=new vd,Ni.prototype.copy.call(l,n),l.color.copy(n.color),this.cache.add(u,l)),n=l}if(r||i||a){var c="ClonedMaterial:"+n.uuid+":";n.isGLTFSpecularGlossinessMaterial&&(c+="specular-glossiness:"),r&&(c+="derivative-tangents:"),i&&(c+="vertex-colors:"),a&&(c+="flat-shading:");var f=this.cache.get(c);f||(f=n.clone(),i&&(f.vertexColors=!0),a&&(f.flatShading=!0),r&&(f.normalScale&&(f.normalScale.y*=-1),f.clearcoatNormalScale&&(f.clearcoatNormalScale.y*=-1)),this.cache.add(c,f),this.associations.set(f,this.associations.get(n))),n=f}n.aoMap&&void 0===t.attributes.uv2&&void 0!==t.attributes.uv&&t.setAttribute("uv2",t.attributes.uv),e.material=n}},{key:"getMaterialType",value:function(){return Qh}},{key:"loadMaterial",value:function(e){var t,n=this,r=this.json,i=this.extensions,a=r.materials[e],o={},s=a.extensions||{},u=[];if(s[qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){var l=i[qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];t=l.getMaterialType(),u.push(l.extendParams(o,a,n))}else if(s[qv.KHR_MATERIALS_UNLIT]){var c=i[qv.KHR_MATERIALS_UNLIT];t=c.getMaterialType(),u.push(c.extendParams(o,a,n))}else{var f=a.pbrMetallicRoughness||{};if(o.color=new Hi(1,1,1),o.opacity=1,Array.isArray(f.baseColorFactor)){var d=f.baseColorFactor;o.color.fromArray(d),o.opacity=d[3]}void 0!==f.baseColorTexture&&u.push(n.assignTexture(o,"map",f.baseColorTexture)),o.metalness=void 0!==f.metallicFactor?f.metallicFactor:1,o.roughness=void 0!==f.roughnessFactor?f.roughnessFactor:1,void 0!==f.metallicRoughnessTexture&&(u.push(n.assignTexture(o,"metalnessMap",f.metallicRoughnessTexture)),u.push(n.assignTexture(o,"roughnessMap",f.metallicRoughnessTexture))),t=this._invokeOne((function(t){return t.getMaterialType&&t.getMaterialType(e)})),u.push(Promise.all(this._invokeAll((function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)}))))}!0===a.doubleSided&&(o.side=B);var h=a.alphaMode||Sm.OPAQUE;if(h===Sm.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.format=nt,o.transparent=!1,h===Sm.MASK&&(o.alphaTest=void 0!==a.alphaCutoff?a.alphaCutoff:.5)),void 0!==a.normalTexture&&t!==Gi&&(u.push(n.assignTexture(o,"normalMap",a.normalTexture)),o.normalScale=new ar(1,1),void 0!==a.normalTexture.scale)){var p=a.normalTexture.scale;o.normalScale.set(p,p)}return void 0!==a.occlusionTexture&&t!==Gi&&(u.push(n.assignTexture(o,"aoMap",a.occlusionTexture)),void 0!==a.occlusionTexture.strength&&(o.aoMapIntensity=a.occlusionTexture.strength)),void 0!==a.emissiveFactor&&t!==Gi&&(o.emissive=(new Hi).fromArray(a.emissiveFactor)),void 0!==a.emissiveTexture&&t!==Gi&&u.push(n.assignTexture(o,"emissiveMap",a.emissiveTexture)),Promise.all(u).then((function(){var r;return r=t===cm?i[qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(o):new t(o),a.name&&(r.name=a.name),r.map&&(r.map.encoding=gn),r.emissiveMap&&(r.emissiveMap.encoding=gn),Tm(r,a),n.associations.set(r,{materials:e}),a.extensions&&Mm(i,r,a),r}))}},{key:"createUniqueName",value:function(e){for(var t=_v.sanitizeNodeName(e||""),n=t,r=1;this.nodeNamesUsed[n];++r)n=t+"_"+r;return this.nodeNamesUsed[n]=!0,n}},{key:"loadGeometries",value:function(e){var t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[qv.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then((function(n){return Dm(n,e,t)}))}for(var a=[],o=0,s=e.length;o0&&Om(h,i),h.name=t.createUniqueName(i.name||"mesh_"+e),Tm(h,i),d.extensions&&Mm(r,h,d),t.assignFinalMaterial(h),u.push(h)}for(var v=0,m=u.length;v1?new wf:1===t.length?t[0]:new _i,o!==t[0])for(var s=0,u=t.length;sMath.PI&&(m-=v),g<-Math.PI?g+=v:g>Math.PI&&(g-=v),l.theta=m<=g?Math.max(m,Math.min(g,l.theta)):l.theta>(m+g)/2?Math.max(m,l.theta):Math.min(g,l.theta)),l.phi=Math.max(a.minPolarAngle,Math.min(a.maxPolarAngle,l.phi)),l.makeSafe(),l.radius*=f,l.radius=Math.max(a.minDistance,Math.min(a.maxDistance,l.radius)),!0===a.enableDamping?a.target.addScaledVector(d,a.dampingFactor):a.target.add(d),t.setFromSpherical(l),t.applyQuaternion(r),e.copy(a.target).add(t),a.object.lookAt(a.target),!0===a.enableDamping?(c.theta*=1-a.dampingFactor,c.phi*=1-a.dampingFactor,d.multiplyScalar(1-a.dampingFactor)):(c.set(0,0,0),d.set(0,0,0)),f=1,!!(p||i.distanceToSquared(a.object.position)>u||8*(1-h.dot(a.object.quaternion))>u)&&(a.dispatchEvent(Fm),i.copy(a.object.position),h.copy(a.object.quaternion),p=!1,!0)}}(),i.dispose=function(){a.domElement.removeEventListener("contextmenu",de),a.domElement.removeEventListener("pointerdown",ne),a.domElement.removeEventListener("pointercancel",ae),a.domElement.removeEventListener("wheel",ue),a.domElement.removeEventListener("pointermove",re),a.domElement.removeEventListener("pointerup",ie),null!==a._domElementKeyEvents&&a._domElementKeyEvents.removeEventListener("keydown",le)};var a=h(i),o={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},s=o.NONE,u=1e-6,l=new Ov,c=new Ov,f=1,d=new xr,p=!1,v=new ar,m=new ar,g=new ar,y=new ar,b=new ar,x=new ar,w=new ar,_=new ar,E=new ar,S=[],k={};function T(){return 2*Math.PI/60/60*a.autoRotateSpeed}function A(){return Math.pow(.95,a.zoomSpeed)}function O(e){c.theta-=e}function L(e){c.phi-=e}var P=function(){var e=new xr;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),d.add(e)}}(),I=function(){var e=new xr;return function(t,n){!0===a.screenSpacePanning?e.setFromMatrixColumn(n,1):(e.setFromMatrixColumn(n,0),e.crossVectors(a.object.up,e)),e.multiplyScalar(t),d.add(e)}}(),N=function(){var e=new xr;return function(t,n){var r=a.domElement;if(a.object.isPerspectiveCamera){var i=a.object.position;e.copy(i).sub(a.target);var o=e.length();o*=Math.tan(a.object.fov/2*Math.PI/180),P(2*t*o/r.clientHeight,a.object.matrix),I(2*n*o/r.clientHeight,a.object.matrix)}else a.object.isOrthographicCamera?(P(t*(a.object.right-a.object.left)/a.object.zoom/r.clientWidth,a.object.matrix),I(n*(a.object.top-a.object.bottom)/a.object.zoom/r.clientHeight,a.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),a.enablePan=!1)}}();function D(e){a.object.isPerspectiveCamera?f/=e:a.object.isOrthographicCamera?(a.object.zoom=Math.max(a.minZoom,Math.min(a.maxZoom,a.object.zoom*e)),a.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),a.enableZoom=!1)}function j(e){a.object.isPerspectiveCamera?f*=e:a.object.isOrthographicCamera?(a.object.zoom=Math.max(a.minZoom,Math.min(a.maxZoom,a.object.zoom/e)),a.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),a.enableZoom=!1)}function F(e){v.set(e.clientX,e.clientY)}function U(e){w.set(e.clientX,e.clientY)}function B(e){y.set(e.clientX,e.clientY)}function z(e){m.set(e.clientX,e.clientY),g.subVectors(m,v).multiplyScalar(a.rotateSpeed);var t=a.domElement;O(2*Math.PI*g.x/t.clientHeight),L(2*Math.PI*g.y/t.clientHeight),v.copy(m),a.update()}function H(e){_.set(e.clientX,e.clientY),E.subVectors(_,w),E.y>0?D(A()):E.y<0&&j(A()),w.copy(_),a.update()}function G(e){b.set(e.clientX,e.clientY),x.subVectors(b,y).multiplyScalar(a.panSpeed),N(x.x,x.y),y.copy(b),a.update()}function V(e){e.deltaY<0?j(A()):e.deltaY>0&&D(A()),a.update()}function W(e){var t=!1;switch(e.code){case a.keys.UP:N(0,a.keyPanSpeed),t=!0;break;case a.keys.BOTTOM:N(0,-a.keyPanSpeed),t=!0;break;case a.keys.LEFT:N(a.keyPanSpeed,0),t=!0;break;case a.keys.RIGHT:N(-a.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),a.update())}function q(){if(1===S.length)v.set(S[0].pageX,S[0].pageY);else{var e=.5*(S[0].pageX+S[1].pageX),t=.5*(S[0].pageY+S[1].pageY);v.set(e,t)}}function X(){if(1===S.length)y.set(S[0].pageX,S[0].pageY);else{var e=.5*(S[0].pageX+S[1].pageX),t=.5*(S[0].pageY+S[1].pageY);y.set(e,t)}}function Y(){var e=S[0].pageX-S[1].pageX,t=S[0].pageY-S[1].pageY,n=Math.sqrt(e*e+t*t);w.set(0,n)}function K(){a.enableZoom&&Y(),a.enablePan&&X()}function Z(){a.enableZoom&&Y(),a.enableRotate&&q()}function J(e){if(1==S.length)m.set(e.pageX,e.pageY);else{var t=me(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}g.subVectors(m,v).multiplyScalar(a.rotateSpeed);var i=a.domElement;O(2*Math.PI*g.x/i.clientHeight),L(2*Math.PI*g.y/i.clientHeight),v.copy(m)}function $(e){if(1===S.length)b.set(e.pageX,e.pageY);else{var t=me(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);b.set(n,r)}x.subVectors(b,y).multiplyScalar(a.panSpeed),N(x.x,x.y),y.copy(b)}function Q(e){var t=me(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);_.set(0,i),E.set(0,Math.pow(_.y/w.y,a.zoomSpeed)),D(E.y),w.copy(_)}function ee(e){a.enableZoom&&Q(e),a.enablePan&&$(e)}function te(e){a.enableZoom&&Q(e),a.enableRotate&&J(e)}function ne(e){!1!==a.enabled&&(0===S.length&&(a.domElement.setPointerCapture(e.pointerId),a.domElement.addEventListener("pointermove",re),a.domElement.addEventListener("pointerup",ie)),he(e),"touch"===e.pointerType?ce(e):oe(e))}function re(e){!1!==a.enabled&&("touch"===e.pointerType?fe(e):se(e))}function ie(e){pe(e),0===S.length&&(a.domElement.releasePointerCapture(e.pointerId),a.domElement.removeEventListener("pointermove",re),a.domElement.removeEventListener("pointerup",ie)),a.dispatchEvent(Bm),s=o.NONE}function ae(e){pe(e)}function oe(e){var t;switch(e.button){case 0:t=a.mouseButtons.LEFT;break;case 1:t=a.mouseButtons.MIDDLE;break;case 2:t=a.mouseButtons.RIGHT;break;default:t=-1}switch(t){case R.DOLLY:if(!1===a.enableZoom)return;U(e),s=o.DOLLY;break;case R.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===a.enablePan)return;B(e),s=o.PAN}else{if(!1===a.enableRotate)return;F(e),s=o.ROTATE}break;case R.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===a.enableRotate)return;F(e),s=o.ROTATE}else{if(!1===a.enablePan)return;B(e),s=o.PAN}break;default:s=o.NONE}s!==o.NONE&&a.dispatchEvent(Um)}function se(e){if(!1!==a.enabled)switch(s){case o.ROTATE:if(!1===a.enableRotate)return;z(e);break;case o.DOLLY:if(!1===a.enableZoom)return;H(e);break;case o.PAN:if(!1===a.enablePan)return;G(e);break}}function ue(e){!1!==a.enabled&&!1!==a.enableZoom&&s===o.NONE&&(e.preventDefault(),a.dispatchEvent(Um),V(e),a.dispatchEvent(Bm))}function le(e){!1!==a.enabled&&!1!==a.enablePan&&W(e)}function ce(e){switch(ve(e),S.length){case 1:switch(a.touches.ONE){case C.ROTATE:if(!1===a.enableRotate)return;q(),s=o.TOUCH_ROTATE;break;case C.PAN:if(!1===a.enablePan)return;X(),s=o.TOUCH_PAN;break;default:s=o.NONE}break;case 2:switch(a.touches.TWO){case C.DOLLY_PAN:if(!1===a.enableZoom&&!1===a.enablePan)return;K(),s=o.TOUCH_DOLLY_PAN;break;case C.DOLLY_ROTATE:if(!1===a.enableZoom&&!1===a.enableRotate)return;Z(),s=o.TOUCH_DOLLY_ROTATE;break;default:s=o.NONE}break;default:s=o.NONE}s!==o.NONE&&a.dispatchEvent(Um)}function fe(e){switch(ve(e),s){case o.TOUCH_ROTATE:if(!1===a.enableRotate)return;J(e),a.update();break;case o.TOUCH_PAN:if(!1===a.enablePan)return;$(e),a.update();break;case o.TOUCH_DOLLY_PAN:if(!1===a.enableZoom&&!1===a.enablePan)return;ee(e),a.update();break;case o.TOUCH_DOLLY_ROTATE:if(!1===a.enableZoom&&!1===a.enableRotate)return;te(e),a.update();break;default:s=o.NONE}}function de(e){!1!==a.enabled&&e.preventDefault()}function he(e){S.push(e)}function pe(e){delete k[e.pointerId];for(var t=0;tnew ov),[]),f=Object(i["useCallback"])((()=>{var e;null===(e=a.current)||void 0===e||e.render(r.current,o.current)}),[]);Object(i["useEffect"])((()=>{var n=e.current,i=n.offsetHeight,u=n.offsetWidth,l=new Pa(45,u/i,.01,1e5);o.current=l,l.position.set(0,0,0);var c=new Lf;c.background=new Hi(t||12303291),r.current=c;var d=new Af({antialias:!0,canvas:e.current});a.current=d,d.setPixelRatio(window.devicePixelRatio),d.setSize(u,i),d.toneMapping=ke,d.toneMappingExposure=1,d.outputEncoding=gn;var h=new zm(l,d.domElement);return h.addEventListener("change",f),h.update(),()=>{cancelAnimationFrame(s.current),c.clear(),d.dispose(),h.dispose()}}),[]);var d=Object(i["useCallback"])((e=>{var t,n=Gm(e).length(),i=Vm(e);if(l.current=e,e.animations[0]){u.current=new kv(e);var a=u.current.clipAction(e.animations[0]);a.play()}o.current&&(o.current.position.z=n),e.position.copy(i.negate()),null===(t=r.current)||void 0===t||t.add(e)}),[]),h=Object(i["useCallback"])((()=>{var e;s.current=requestAnimationFrame(h);var t=c.getDelta();null===(e=u.current)||void 0===e||e.update(t),n&&l.current&&(l.current.rotation.z+=.5*t),f()}),[]);return{add2Scene:d,scene:r,renderer:a,render:f,animate:h}}var qm=Wm;function Xm(e,t){var n=e.src,r=e.backgroundColor,o=Object(i["useRef"])(null),s=qm(o,r),u=s.add2Scene,l=s.scene,c=s.renderer,f=s.render;return Object(i["useImperativeHandle"])(t,(()=>({getSnapshot:()=>{var e;return f(),null===(e=c.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e=new Hv,t=new Zu(c.current);l.current&&(l.current.environment=t.fromScene(e,.04).texture);var r=new Vv;r.load(n,(function(e){u(e.scene),f()}))}),[]),a.a.createElement("canvas",{ref:o,style:{width:"100%",height:"100%"}})}var Ym=Object(i["forwardRef"])(Xm),Km=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"parse",value:function(e){function t(e){switch(e.image_type){case f:case p:(e.colormap_length>256||24!==e.colormap_size||1!==e.colormap_type)&&console.error("THREE.TGALoader: Invalid type colormap data for indexed type.");break;case d:case h:case v:case m:e.colormap_type&&console.error("THREE.TGALoader: Invalid type colormap data for colormap type.");break;case c:console.error("THREE.TGALoader: No data.");default:console.error('THREE.TGALoader: Invalid type "%s".',e.image_type)}(e.width<=0||e.height<=0)&&console.error("THREE.TGALoader: Invalid image size."),8!==e.pixel_size&&16!==e.pixel_size&&24!==e.pixel_size&&32!==e.pixel_size&&console.error('THREE.TGALoader: Invalid pixel size "%s".',e.pixel_size)}function n(e,t,n,r,i){var a,o,s=n.pixel_size>>3,u=n.width*n.height*s;if(t&&(o=i.subarray(r,r+=n.colormap_length*(n.colormap_size>>3))),e){var l,c,f;a=new Uint8Array(u);var d=0,h=new Uint8Array(s);while(d>7,e[4*(l+d*c)+1]=(992&u)>>2,e[4*(l+d*c)+2]=(31&u)<<3,e[4*(l+d*c)+3]=32768&u?0:255;return e}function a(e,t,n,r,i,a,o,s){var u,l,c=0,f=k.width;for(l=t;l!==r;l+=n)for(u=i;u!==o;u+=a,c+=3)e[4*(u+f*l)+3]=255,e[4*(u+f*l)+2]=s[c+0],e[4*(u+f*l)+1]=s[c+1],e[4*(u+f*l)+0]=s[c+2];return e}function o(e,t,n,r,i,a,o,s){var u,l,c=0,f=k.width;for(l=t;l!==r;l+=n)for(u=i;u!==o;u+=a,c+=4)e[4*(u+f*l)+2]=s[c+0],e[4*(u+f*l)+1]=s[c+1],e[4*(u+f*l)+0]=s[c+2],e[4*(u+f*l)+3]=s[c+3];return e}function s(e,t,n,r,i,a,o,s){var u,l,c,f=0,d=k.width;for(c=t;c!==r;c+=n)for(l=i;l!==o;l+=a,f++)u=s[f],e[4*(l+d*c)+0]=u,e[4*(l+d*c)+1]=u,e[4*(l+d*c)+2]=u,e[4*(l+d*c)+3]=255;return e}function u(e,t,n,r,i,a,o,s){var u,l,c=0,f=k.width;for(l=t;l!==r;l+=n)for(u=i;u!==o;u+=a,c+=2)e[4*(u+f*l)+0]=s[c+0],e[4*(u+f*l)+1]=s[c+0],e[4*(u+f*l)+2]=s[c+0],e[4*(u+f*l)+3]=s[c+1];return e}function l(e,t,n,l,c){var f,d,h,p,v,m;switch((k.flags&g)>>y){default:case w:f=0,h=1,v=t,d=0,p=1,m=n;break;case b:f=0,h=1,v=t,d=n-1,p=-1,m=-1;break;case _:f=t-1,h=-1,v=-1,d=0,p=1,m=n;break;case x:f=t-1,h=-1,v=-1,d=n-1,p=-1,m=-1;break}if(A)switch(k.pixel_size){case 8:s(e,d,p,m,f,h,v,l);break;case 16:u(e,d,p,m,f,h,v,l);break;default:console.error("THREE.TGALoader: Format not supported.");break}else switch(k.pixel_size){case 8:r(e,d,p,m,f,h,v,l,c);break;case 16:i(e,d,p,m,f,h,v,l);break;case 24:a(e,d,p,m,f,h,v,l);break;case 32:o(e,d,p,m,f,h,v,l);break;default:console.error("THREE.TGALoader: Format not supported.");break}return e}var c=0,f=1,d=2,h=3,p=9,v=10,m=11,g=48,y=4,b=0,x=1,w=2,_=3;e.length<19&&console.error("THREE.TGALoader: Not enough data to contain header.");var E=0,S=new Uint8Array(e),k={id_length:S[E++],colormap_type:S[E++],image_type:S[E++],colormap_index:S[E++]|S[E++]<<8,colormap_length:S[E++]|S[E++]<<8,colormap_size:S[E++],origin:[S[E++]|S[E++]<<8,S[E++]|S[E++]<<8],width:S[E++]|S[E++]<<8,height:S[E++]|S[E++]<<8,pixel_size:S[E++],flags:S[E++]};t(k),k.id_length+E>e.length&&console.error("THREE.TGALoader: No data."),E+=k.id_length;var M=!1,T=!1,A=!1;switch(k.image_type){case p:M=!0,T=!0;break;case f:T=!0;break;case v:M=!0;break;case d:break;case m:M=!0,A=!0;break;case h:A=!0;break}var O=new Uint8Array(k.width*k.height*4),R=n(M,T,k,E,S);return l(O,k.width,k.height,R.pixel_data,R.palettes),{data:O,width:k.width,height:k.height,flipY:!0,generateMipmaps:!0,minFilter:He}}}]),n}(Cp),Zm=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=""===i.path?$p.extractUrlBase(e):i.path,o=new Ap(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(e,(function(n){try{t(i.parse(n,a))}catch(o){r?r(o):console.error(o),i.manager.itemError(e)}}),n,r)}},{key:"parse",value:function(e,t){function n(e,t){for(var n=[],r=e.childNodes,i=0,a=r.length;i0&&t.push(new bp(r+".position",i,a)),o.length>0&&t.push(new gp(r+".quaternion",i,o)),s.length>0&&t.push(new bp(r+".scale",i,s)),t}function M(e,t,n){var r,i,a,o=!0;for(i=0,a=e.length;i=0){var r=e[t];if(null!==r.value[n])return r;t--}return null}function O(e,t,n){while(t>>0));switch(n=n.toLowerCase(),n){case"tga":t=kt;break;default:t=Tt}return t}function ce(e){var t,n=se(e.url),r=n.profile.technique;switch(r.type){case"phong":case"blinn":t=new tp;break;case"lambert":t=new ip;break;default:t=new Gi;break}function i(e){var t=n.profile.samplers[e.id],r=null;if(void 0!==t){var i=n.profile.surfaces[t.source];r=W(i.init_from)}else console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),r=W(e.id);if(null!==r){var a=le(r);if(void 0!==a){var o=a.load(r),s=e.extra;if(void 0!==s&&void 0!==s.technique&&!1===u(s.technique)){var l=s.technique;o.wrapS=l.wrapU?Ie:Ne,o.wrapT=l.wrapV?Ie:Ne,o.offset.set(l.offsetU||0,l.offsetV||0),o.repeat.set(l.repeatU||1,l.repeatV||1)}else o.wrapS=Ie,o.wrapT=Ie;return o}return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",r),null}return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",e.id),null}t.name=e.name||"";var a=r.parameters;for(var o in a){var s=a[o];switch(o){case"diffuse":s.color&&t.color.fromArray(s.color),s.texture&&(t.map=i(s.texture));break;case"specular":s.color&&t.specular&&t.specular.fromArray(s.color),s.texture&&(t.specularMap=i(s.texture));break;case"bump":s.texture&&(t.normalMap=i(s.texture));break;case"ambient":s.texture&&(t.lightMap=i(s.texture));break;case"shininess":s["float"]&&t.shininess&&(t.shininess=s["float"]);break;case"emission":s.color&&t.emissive&&t.emissive.fromArray(s.color),s.texture&&(t.emissiveMap=i(s.texture));break}}var l=a["transparent"],c=a["transparency"];if(void 0===c&&l&&(c={float:1}),void 0===l&&c&&(l={opaque:"A_ONE",data:{color:[1,1,1,1]}}),l&&c)if(l.data.texture)t.transparent=!0;else{var f=l.data.color;switch(l.opaque){case"A_ONE":t.opacity=f[3]*c["float"];break;case"RGB_ZERO":t.opacity=1-f[0]*c["float"];break;case"A_ZERO":t.opacity=1-f[3]*c["float"];break;case"RGB_ONE":t.opacity=f[0]*c["float"];break;default:t.opacity=1-c["float"],console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',l.opaque)}t.opacity<1&&(t.transparent=!0)}if(void 0!==r.extra&&void 0!==r.extra.technique){var d=r.extra.technique;for(var h in d){var p=d[h];switch(h){case"double_sided":t.side=1===p?B:F;break;case"bump":t.normalMap=i(p.texture),t.normalScale=new ar(1,1);break}}}return t}function fe(e){return p(Ct.materials[e],ce)}function de(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n0?u+c:u;t.inputs[f]={id:s,offset:l},t.stride=Math.max(t.stride,l+1),"TEXCOORD"===u&&(t.hasUV=!0);break;case"vcount":t.vcount=a(i.textContent);break;case"p":t.p=a(i.textContent);break}}return t}function Te(e){for(var t={},n=0;n0&&t0&&f.setAttribute("position",new Zi(i.array,i.stride)),a.array.length>0&&f.setAttribute("normal",new Zi(a.array,a.stride)),u.array.length>0&&f.setAttribute("color",new Zi(u.array,u.stride)),o.array.length>0&&f.setAttribute("uv",new Zi(o.array,o.stride)),s.array.length>0&&f.setAttribute("uv2",new Zi(s.array,s.stride)),l.array.length>0&&f.setAttribute("skinIndex",new Zi(l.array,l.stride)),c.array.length>0&&f.setAttribute("skinWeight",new Zi(c.array,c.stride)),r.data=f,r.type=e[0].type,r.materialKeys=d,r}function Ce(e,t,n,r){var i=e.p,a=e.stride,o=e.vcount;function s(e){for(var t=i[e+n]*l,a=t+l;t4)for(var w=1,_=h-2;w<=_;w++){var E=c+0*a,S=c+a*w,k=c+a*(w+1);s(E),s(S),s(k)}c+=a*h}else for(var M=0,T=i.length;M=t.limits.max&&(t["static"]=!0),t.middlePosition=(t.limits.min+t.limits.max)/2,t}function ze(e){for(var t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",attachments:[],transforms:[]},n=0;nr.limits.max||t({getSnapshot:()=>{var e;return h(),null===(e=d.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e,t,r=new Yp(13421772,.4);null===(e=c.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(t=c.current)||void 0===t||t.add(i);var a=new Zm;a.load(n,(function(e){l(e.scene),f()}))}),[]),a.a.createElement("canvas",{ref:s,style:{width:"100%",height:"100%"}})}var $m=Object(i["forwardRef"])(Jm),Qm={},eg=function(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))},tg=function(e){return new Worker(e)};try{URL.revokeObjectURL(eg(""))}catch(Sx){eg=function(e){return"data:application/javascript;charset=UTF-8,"+encodeURI(e)},tg=function(e){return new Worker(e,{type:"module"})}}var ng=function(e,t,n,r,i){var a=tg(Qm[t]||(Qm[t]=eg(e)));return a.onerror=function(e){return i(e.error,null)},a.onmessage=function(e){return i(null,e.data)},a.postMessage(n,r),a},rg=Uint8Array,ig=Uint16Array,ag=Uint32Array,og=new rg([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),sg=new rg([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ug=new rg([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lg=function(e,t){for(var n=new ig(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&gg)<<1;yg=(52428&yg)>>>2|(13107&yg)<<2,yg=(61680&yg)>>>4|(3855&yg)<<4,mg[gg]=((65280&yg)>>>8|(255&yg)<<8)>>>1}var bg=function(e,t,n){for(var r=e.length,i=0,a=new ig(t);i>>u]=l}else for(o=new ig(r),i=0;i>>15-e[i]);return o},xg=new rg(288);for(gg=0;gg<144;++gg)xg[gg]=8;for(gg=144;gg<256;++gg)xg[gg]=9;for(gg=256;gg<280;++gg)xg[gg]=7;for(gg=280;gg<288;++gg)xg[gg]=8;var wg=new rg(32);for(gg=0;gg<32;++gg)wg[gg]=5;var _g=bg(xg,9,0),Eg=bg(xg,9,1),Sg=bg(wg,5,0),kg=bg(wg,5,1),Mg=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},Tg=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},Ag=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Og=function(e){return(e/8|0)+(7&e&&1)},Rg=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof ig?ig:e instanceof ag?ag:rg)(n-t);return r.set(e.subarray(t,n)),r},Cg=function(e,t,n){var r=e.length;if(!r||n&&!n.l&&r<5)return t||new rg(0);var i=!t||n,a=!n||n.i;n||(n={}),t||(t=new rg(3*r));var o=function(e){var n=t.length;if(e>n){var r=new rg(Math.max(2*n,e));r.set(t),t=r}},s=n.f||0,u=n.p||0,l=n.b||0,c=n.l,f=n.d,d=n.m,h=n.n,p=8*r;do{if(!c){n.f=s=Tg(e,u,1);var v=Tg(e,u+1,3);if(u+=3,!v){var m=Og(u)+4,g=e[m-4]|e[m-3]<<8,y=m+g;if(y>r){if(a)throw"unexpected EOF";break}i&&o(l+g),t.set(e.subarray(m,y),l),n.b=l+=g,n.p=u=8*y;continue}if(1==v)c=Eg,f=kg,d=9,h=5;else{if(2!=v)throw"invalid block type";var b=Tg(e,u,31)+257,x=Tg(e,u+10,15)+4,w=b+Tg(e,u+5,31)+1;u+=14;for(var _=new rg(w),E=new rg(19),S=0;S>>4;if(m<16)_[S++]=m;else{var O=0,R=0;16==m?(R=3+Tg(e,u,3),u+=2,O=_[S-1]):17==m?(R=3+Tg(e,u,7),u+=3):18==m&&(R=11+Tg(e,u,127),u+=7);while(R--)_[S++]=O}}var C=_.subarray(0,b),L=_.subarray(b);d=Mg(C),h=Mg(L),c=bg(C,d,1),f=bg(L,h,1)}if(u>p){if(a)throw"unexpected EOF";break}}i&&o(l+131072);for(var P=(1<>>4;if(u+=15&O,u>p){if(a)throw"unexpected EOF";break}if(!O)throw"invalid length/literal";if(D<256)t[l++]=D;else{if(256==D){N=u,c=null;break}var j=D-254;if(D>264){S=D-257;var F=og[S];j=Tg(e,u,(1<>>4;if(!U)throw"invalid distance";u+=15&U;L=pg[B];if(B>3){F=sg[B];L+=Ag(e,u)&(1<p){if(a)throw"unexpected EOF";break}i&&o(l+131072);for(var z=l+j;l>>8},Pg=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Ig=function(e,t){for(var n=[],r=0;rd&&(d=a[r].s);var h=new ig(d+1),p=Ng(n[c-1],h,0);if(p>t){r=0;var v=0,m=p-t,g=1<t))break;v+=g-(1<>>=m;while(v>0){var b=a[r].s;h[b]=0&&v;--r){var x=a[r].s;h[x]==t&&(--h[x],++v)}p=t}return[new rg(h),p]},Ng=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},Dg=function(e){var t=e.length;while(t&&!e[--t]);for(var n=new ig(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}while(a--)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},jg=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!M[ug[A-1]];--A);var O,R,C,L,P=l+5<<3,I=jg(i,xg)+jg(a,wg)+o,N=jg(i,d)+jg(a,v)+o+14+3*A+jg(E,M)+(2*E[16]+3*E[17]+7*E[18]);if(P<=I&&P<=N)return Fg(t,c,e.subarray(u,u+l));if(Lg(t,c,1+(N15&&(Lg(t,c,U[S]>>>5&127),c+=U[S]>>>12)}}}else O=_g,R=xg,C=Sg,L=wg;for(S=0;S255){B=r[S]>>>18&31;Pg(t,c,O[B+257]),c+=R[B+257],B>7&&(Lg(t,c,r[S]>>>23&31),c+=og[B]);var z=31&r[S];Pg(t,c,C[z]),c+=L[z],z>3&&(Pg(t,c,r[S]>>>5&8191),c+=sg[z])}else Pg(t,c,O[r[S]]),c+=R[r[S]];return Pg(t,c,O[256]),c+R[256]},Bg=new ag([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zg=new rg(0),Hg=function(e,t,n,r,i,a){var o=e.length,s=new rg(r+o+5*(1+Math.ceil(o/7e3))+i),u=s.subarray(r,s.length-i),l=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var f=c+65535;f>>13,p=8191&d,v=(1<7e3||M>24576)&&L>423){l=Ug(e,u,0,w,_,E,k,M,A,c-A,l),M=S=k=0,A=c;for(var P=0;P<286;++P)_[P]=0;for(P=0;P<30;++P)E[P]=0}var I=2,N=0,D=p,j=R-C&32767;if(L>2&&O==x(c-j)){var F=Math.min(h,L)-1,U=Math.min(32767,c),B=Math.min(258,L);while(j<=U&&--D&&R!=C){if(e[c+I]==e[c+I-j]){for(var z=0;zI){if(I=z,N=j,z>F)break;var H=Math.min(j,z-2),G=0;for(P=0;PG&&(G=q,C=V)}}}R=C,C=m[R],j+=R-C+32768&32767}}if(N){w[M++]=268435456|dg[I]<<18|vg[N];var X=31&dg[I],Y=31&vg[N];k+=og[X]+sg[Y],++_[257+X],++E[Y],T=c+I,++S}else w[M++]=e[c],++_[e[c]]}}l=Ug(e,u,a,w,_,E,k,M,A,c-A,l),!a&&7&l&&(l=Fg(u,l+1,zg))}return Rg(s,0,r+Og(l)+i)},Gg=function(){for(var e=new ag(256),t=0;t<256;++t){var n=t,r=9;while(--r)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),Vg=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return~e}}},Wg=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length,o=0;o!=a;){for(var s=Math.min(o+2655,a);o>16),i=(65535&i)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(255&e)<<24|e>>>8<<16|(255&t)<<8|t>>>8}}},qg=function(e,t,n,r,i){return Hg(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Xg=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Yg=function(e,t,n){for(var r=e(),i=e.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/ /g,"").split(","),o=0;o>>0},fy=function(e,t){return cy(e,t)+4294967296*cy(e,t+4)},dy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},hy=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&dy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},py=function(e){if(31!=e[0]||139!=e[1]||8!=e[2])throw"invalid gzip data";var t=e[3],n=10;4&t&&(n+=e[10]|2+(e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},vy=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},my=function(e){return 10+(e.filename&&e.filename.length+1||0)},gy=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},yy=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function by(e,t){return t||"function"!=typeof e||(t=e,e={}),this.ondata=t,e}var xy=function(){function e(e,t){t||"function"!=typeof e||(t=e,e={}),this.ondata=t,this.o=e||{}}return e.prototype.p=function(e,t){this.ondata(qg(e,this.o,0,0,!t),t)},e.prototype.push=function(e,t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=t,this.p(e,t||!1)},e}(),wy=function(){function e(e,t){uy([Qg,function(){return[sy,xy]}],this,by.call(this,e,t),(function(e){var t=new xy(e.data);onmessage=sy(t)}),6)}return e}();function _y(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[Qg],(function(e){return iy(Ey(e.data[0],e.data[1]))}),0,n)}function Ey(e,t){return qg(e,t||{},0,0)}var Sy=function(){function e(e){this.s={},this.p=new rg(0),this.ondata=e}return e.prototype.e=function(e){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var t=this.p.length,n=new rg(t+e.length);n.set(this.p),n.set(e,t),this.p=n},e.prototype.c=function(e){this.d=this.s.i=e||!1;var t=this.s.b,n=Cg(this.p,this.o,this.s);this.ondata(Rg(n,t,this.s.b),this.d),this.o=Rg(n,this.s.b-32768),this.s.b=this.o.length,this.p=Rg(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),ky=function(){function e(e){this.ondata=e,uy([$g,function(){return[sy,Sy]}],this,0,(function(){var e=new Sy;onmessage=sy(e)}),7)}return e}();function My(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[$g],(function(e){return iy(Ty(e.data[0],ay(e.data[1])))}),1,n)}function Ty(e,t){return Cg(e,t)}var Ay=function(){function e(e,t){this.c=Vg(),this.l=0,this.v=1,xy.call(this,e,t)}return e.prototype.push=function(e,t){xy.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e),this.l+=e.length;var n=qg(e,this.o,this.v&&my(this.o),t&&8,!t);this.v&&(hy(n,this.o),this.v=0),t&&(dy(n,n.length-8,this.c.d()),dy(n,n.length-4,this.l)),this.ondata(n,t)},e}(),Oy=function(){function e(e,t){uy([Qg,ey,function(){return[sy,xy,Ay]}],this,by.call(this,e,t),(function(e){var t=new Ay(e.data);onmessage=sy(t)}),8)}return e}();function Ry(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[Qg,ey,function(){return[Cy]}],(function(e){return iy(Cy(e.data[0],e.data[1]))}),2,n)}function Cy(e,t){t||(t={});var n=Vg(),r=e.length;n.p(e);var i=qg(e,t,my(t),8),a=i.length;return hy(i,t),dy(i,a-8,n.d()),dy(i,a-4,r),i}var Ly=function(){function e(e){this.v=1,Sy.call(this,e)}return e.prototype.push=function(e,t){if(Sy.prototype.e.call(this,e),this.v){var n=this.p.length>3?py(this.p):4;if(n>=this.p.length&&!t)return;this.p=this.p.subarray(n),this.v=0}if(t){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Sy.prototype.c.call(this,t)},e}(),Py=function(){function e(e){this.ondata=e,uy([$g,ty,function(){return[sy,Sy,Ly]}],this,0,(function(){var e=new Ly;onmessage=sy(e)}),9)}return e}();function Iy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[$g,ty,function(){return[Ny]}],(function(e){return iy(Ny(e.data[0]))}),3,n)}function Ny(e,t){return Cg(e.subarray(py(e),-8),t||new rg(vy(e)))}var Dy=function(){function e(e,t){this.c=Wg(),this.v=1,xy.call(this,e,t)}return e.prototype.push=function(e,t){xy.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e);var n=qg(e,this.o,this.v&&2,t&&4,!t);this.v&&(gy(n,this.o),this.v=0),t&&dy(n,n.length-4,this.c.d()),this.ondata(n,t)},e}(),jy=function(){function e(e,t){uy([Qg,ny,function(){return[sy,xy,Dy]}],this,by.call(this,e,t),(function(e){var t=new Dy(e.data);onmessage=sy(t)}),10)}return e}();function Fy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[Qg,ny,function(){return[Uy]}],(function(e){return iy(Uy(e.data[0],e.data[1]))}),4,n)}function Uy(e,t){t||(t={});var n=Wg();n.p(e);var r=qg(e,t,2,4);return gy(r,t),dy(r,r.length-4,n.d()),r}var By=function(){function e(e){this.v=1,Sy.call(this,e)}return e.prototype.push=function(e,t){if(Sy.prototype.e.call(this,e),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}if(t){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Sy.prototype.c.call(this,t)},e}(),zy=function(){function e(e){this.ondata=e,uy([$g,ry,function(){return[sy,Sy,By]}],this,0,(function(){var e=new By;onmessage=sy(e)}),11)}return e}();function Hy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[$g,ry,function(){return[Gy]}],(function(e){return iy(Gy(e.data[0],ay(e.data[1])))}),5,n)}function Gy(e,t){return Cg((yy(e),e.subarray(2,-4)),t)}var Vy=function(){function e(e){this.G=Ly,this.I=Sy,this.Z=By,this.ondata=e}return e.prototype.push=function(e,t){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var n=new rg(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var r=this,i=function(){r.ondata.apply(r,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,t),this.p=null}}},e}(),Wy=function(){function e(e){this.G=Py,this.I=ky,this.Z=zy,this.ondata=e}return e.prototype.push=function(e,t){Vy.prototype.push.call(this,e,t)},e}();function qy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return 31==e[0]&&139==e[1]&&8==e[2]?Iy(e,t,n):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?My(e,t,n):Hy(e,t,n)}function Xy(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?Ny(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ty(e,t):Gy(e,t)}var Yy=function e(t,n,r,i){for(var a in t){var o=t[a],s=n+a;o instanceof rg?r[s]=[o,i]:Array.isArray(o)?r[s]=[o[0],Xg(i,o[1])]:e(o,s+"/",r,i)}},Ky="undefined"!=typeof TextEncoder&&new TextEncoder,Zy="undefined"!=typeof TextDecoder&&new TextDecoder,Jy=0;try{Zy.decode(zg,{stream:!0}),Jy=1}catch(Sx){}var $y=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return[t,Rg(e,n-1)];i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}},Qy=function(){function e(e){this.ondata=e,Jy?this.t=new TextDecoder:this.p=zg}return e.prototype.push=function(e,t){if(!this.ondata)throw"no callback";if(t=!!t,this.t){if(this.ondata(this.t.decode(e,{stream:!0}),t),t){if(this.t.decode().length)throw"invalid utf-8 data";this.t=null}}else{if(!this.p)throw"stream finished";var n=new rg(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length);var r=$y(n),i=r[0],a=r[1];if(t){if(a.length)throw"invalid utf-8 data";this.p=null}else this.p=a;this.ondata(i,t)}},e}(),eb=function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){if(!this.ondata)throw"no callback";if(this.d)throw"stream finished";this.ondata(tb(e),this.d=t||!1)},e}();function tb(e,t){if(t){for(var n=new rg(e.length),r=0;r>1)),o=0,s=function(e){a[o++]=e};for(r=0;ra.length){var u=new rg(o+8+(i-r<<1));u.set(a),a=u}var l=e.charCodeAt(r);l<128||t?s(l):l<2048?(s(192|l>>6),s(128|63&l)):l>55295&&l<57344?(l=65536+(1047552&l)|1023&e.charCodeAt(++r),s(240|l>>18),s(128|l>>12&63),s(128|l>>6&63),s(128|63&l)):(s(224|l>>12),s(128|l>>6&63),s(128|63&l))}return Rg(a,0,o)}function nb(e,t){if(t){for(var n="",r=0;r65535)throw"extra field too long";t+=r+4}return t},ub=function(e,t,n,r,i,a,o,s){var u=r.length,l=n.extra,c=s&&s.length,f=sb(l);dy(e,t,null!=o?33639248:67324752),t+=4,null!=o&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(null==a&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var d=new Date(null==n.mtime?Date.now():n.mtime),h=d.getFullYear()-1980;if(h<0||h>119)throw"date not in range 1980-2099";if(dy(e,t,h<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>>1),t+=4,null!=a&&(dy(e,t,n.crc),dy(e,t+4,a),dy(e,t+8,n.size)),dy(e,t+12,u),dy(e,t+14,f),t+=16,null!=o&&(dy(e,t,c),dy(e,t+6,n.attrs),dy(e,t+10,o),t+=14),e.set(r,t),t+=u,f)for(var p in l){var v=l[p],m=v.length;dy(e,t,+p),dy(e,t+2,m),e.set(v,t+4),t+=4+m}return c&&(e.set(s,t),t+=c),t},lb=function(e,t,n,r,i){dy(e,t,101010256),dy(e,t+8,n),dy(e,t+10,n),dy(e,t+12,r),dy(e,t+16,i)},cb=function(){function e(e){this.filename=e,this.c=Vg(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){if(!this.ondata)throw"no callback - add to ZIP archive before pushing";this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}(),fb=function(){function e(e,t){var n=this;t||(t={}),cb.call(this,e),this.d=new xy(t,(function(e,t){n.ondata(null,e,t)})),this.compression=8,this.flag=rb(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(Sx){this.ondata(Sx,null,t)}},e.prototype.push=function(e,t){cb.prototype.push.call(this,e,t)},e}(),db=function(){function e(e,t){var n=this;t||(t={}),cb.call(this,e),this.d=new wy(t,(function(e,t,r){n.ondata(e,t,r)})),this.compression=8,this.flag=rb(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){cb.prototype.push.call(this,e,t)},e}(),hb=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(2&this.d)throw"stream finished";var n=tb(e.filename),r=n.length,i=e.comment,a=i&&tb(i),o=r!=e.filename.length||a&&i.length!=a.length,s=r+sb(e.extra)+30;if(r>65535)throw"filename too long";var u=new rg(s);ub(u,0,e,n,o);var l=[u],c=function(){for(var e=0,n=l;e65535&&S("filename too long",null),E)if(m<16e4)try{S(null,Ey(h,p))}catch(Sx){S(Sx,null)}else c.push(_y(h,p,S));else S(null,h)},p=0;p65535)throw"filename too long";var g=c?Ey(u,l):u,y=g.length,b=Vg();b.p(u),r.push(Xg(l,{size:u.length,crc:b.d(),c:g,f:f,m:p,u:d!=o.length||p&&h.length!=v,o:i,compression:c})),i+=30+d+m+y,a+=76+2*(d+m)+(v||0)+y}for(var x=new rg(a+22),w=i,_=a-i,E=0;E0){var r=Math.min(this.c,e.length),i=e.subarray(0,r);if(this.c-=r,this.d?this.d.push(i,!this.c):this.k[0].push(i),e=e.subarray(r),e.length)return this.push(e,t)}else{var a=0,o=0,s=void 0,u=void 0;this.p.length?e.length?(u=new rg(this.p.length+e.length),u.set(this.p),u.set(e,this.p.length)):u=this.p:u=e;for(var l=u.length,c=this.c,f=c&&this.d,d=function(){var e,t=cy(u,o);if(67324752==t){a=1,s=o,h.d=null,h.c=0;var r=ly(u,o+6),i=ly(u,o+8),f=2048&r,d=8&r,p=ly(u,o+26),v=ly(u,o+28);if(l>o+30+p+v){var m=[];h.k.unshift(m),a=2;var g,y=cy(u,o+18),b=cy(u,o+22),x=nb(u.subarray(o+30,o+=30+p),!f);4294967295==y?(e=d?[-2]:ob(u,o),y=e[0],b=e[1]):d&&(y=-1),o+=v,h.c=y;var w={name:x,compression:i,start:function(){if(!w.ondata)throw"no callback";if(y){var e=n.o[i];if(!e)throw"unknown compression type "+i;g=y<0?new e(x):new e(x,y,b),g.ondata=function(e,t,n){w.ondata(e,t,n)};for(var t=0,r=m;t=0&&(w.size=y,w.originalSize=b),h.onfile(w)}return"break"}if(c){if(134695760==t)return s=o+=12+(-2==c&&8),a=3,h.c=0,"break";if(33639248==t)return s=o-=4,a=3,h.c=0,"break"}},h=this;o65558)return void t("invalid zip file",null);var o=ly(e,a+8);o||t(null,{});var s=o,u=cy(e,a+16),l=4294967295==u;if(l){if(a=cy(e,a-12),101075792!=cy(e,a))return void t("invalid zip file",null);s=o=cy(e,a+32),u=cy(e,a+48)}for(var c=function(s){var c=ab(e,u,l),f=c[0],d=c[1],h=c[2],p=c[3],v=c[4],m=c[5],g=ib(e,m);u=v;var y=function(e,n){e?(r(),t(e,null)):(i[p]=n,--o||t(null,i))};if(f)if(8==f){var b=e.subarray(g,g+d);if(d<32e4)try{y(null,Ty(b,new rg(h)))}catch(a){y(a,null)}else n.push(My(b,{size:h},y))}else y("unknown compression type "+f,null);else y(null,Rg(e,g,g+d))},f=0;f65558)throw"invalid zip file";var r=ly(e,n+8);if(!r)return{};var i=cy(e,n+16),a=4294967295==i;if(a){if(n=cy(e,n-12),101075792!=cy(e,n))throw"invalid zip file";r=cy(e,n+32),i=cy(e,n+48)}for(var o=0;o=n[r])return r-1;if(t<=n[e])return e;var i=e,a=r,o=Math.floor((i+a)/2);while(t=n[o+1])t=k&&(E[_][0]=E[w][0]/l[A+1][T],M=E[_][0]*l[T][A]);for(var O=T>=-1?1:-T,R=x-1<=A?k-1:n-x,C=O;C<=R;++C)E[_][C]=(E[w][C]-E[w][C-1])/l[A+1][T+C],M+=E[_][C]*l[T+C][A];x<=A&&(E[_][k]=-E[w][k-1]/l[A+1][x],M+=E[_][k]*l[x][A]),s[k][x]=M;var L=w;w=_,_=L}}for(var P=n,I=1;I<=r;++I){for(var N=0;N<=n;++N)s[I][N]*=P;P*=n-I}return s}function Mb(e,t,n,r,i){for(var a=i1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.knots[this.startKnot]+e*(this.knots[this.endKnot]-this.knots[this.startKnot]),i=Sb(this.degree,this.knots,this.controlPoints,r);return 1!==i.w&&i.divideScalar(i.w),n.set(i.x,i.y,i.z)}},{key:"getTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.knots[0]+e*(this.knots[this.knots.length-1]-this.knots[0]),i=Ob(this.degree,this.knots,this.controlPoints,r,1);return n.copy(i[1]).normalize(),n}}]),n}(Dd),Ib=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=""===i.path?$p.extractUrlBase(e):i.path,o=new Ap(this.manager);o.setPath(i.path),o.setResponseType("arraybuffer"),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(e,(function(n){try{t(i.parse(n,a))}catch(Sx){r?r(Sx):console.error(Sx),i.manager.itemError(e)}}),n,r)}},{key:"parse",value:function(e,t){if(Hb(e))Rb=(new Ub).parse(e);else{var n=Qb(e);if(!Gb(n))throw new Error("THREE.FBXLoader: Unknown format.");if(Vb(n)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+Vb(n));Rb=(new Fb).parse(n)}var r=new Lp(this.manager).setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin);return new Nb(r,this.manager).parse(Rb)}}]),n}(Mp),Nb=function(){function e(t,n){M(this,e),this.textureLoader=t,this.manager=n}return A(e,[{key:"parse",value:function(){Cb=this.parseConnections();var e=this.parseImages(),t=this.parseTextures(e),n=this.parseMaterials(t),r=this.parseDeformers(),i=(new Db).parse(r);return this.parseScene(r,i,n),Lb}},{key:"parseConnections",value:function(){var e=new Map;if("Connections"in Rb){var t=Rb.Connections.connections;t.forEach((function(t){var n=t[0],r=t[1],i=t[2];e.has(n)||e.set(n,{parents:[],children:[]});var a={ID:r,relationship:i};e.get(n).parents.push(a),e.has(r)||e.set(r,{parents:[],children:[]});var o={ID:n,relationship:i};e.get(r).children.push(o)}))}return e}},{key:"parseImages",value:function(){var e={},t={};if("Video"in Rb.Objects){var n=Rb.Objects.Video;for(var r in n){var i=n[r],a=parseInt(r);if(e[a]=i.RelativeFilename||i.Filename,"Content"in i){var o=i.Content instanceof ArrayBuffer&&i.Content.byteLength>0,s="string"===typeof i.Content&&""!==i.Content;if(o||s){var u=this.parseImage(n[r]);t[i.RelativeFilename||i.Filename]=u}}}}for(var l in e){var c=e[l];void 0!==t[c]?e[l]=t[c]:e[l]=e[l].split("\\").pop()}return e}},{key:"parseImage",value:function(e){var t,n=e.Content,r=e.RelativeFilename||e.Filename,i=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(i){case"bmp":t="image/bmp";break;case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"tif":t="image/tiff";break;case"tga":null===this.manager.getHandler(".tga")&&console.warn("FBXLoader: TGA loader not found, skipping ",r),t="image/tga";break;default:return void console.warn('FBXLoader: Image type "'+i+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var a=new Uint8Array(n);return window.URL.createObjectURL(new Blob([a],{type:t}))}},{key:"parseTextures",value:function(e){var t=new Map;if("Texture"in Rb.Objects){var n=Rb.Objects.Texture;for(var r in n){var i=this.parseTexture(n[r],e);t.set(parseInt(r),i)}}return t}},{key:"parseTexture",value:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,i=e.WrapModeV,a=void 0!==r?r.value:0,o=void 0!==i?i.value:0;if(n.wrapS=0===a?Ie:Ne,n.wrapT=0===o?Ie:Ne,"Scaling"in e){var s=e.Scaling.value;n.repeat.x=s[0],n.repeat.y=s[1]}return n}},{key:"loadTexture",value:function(e,t){var n,r,i=this.textureLoader.path,a=Cb.get(e.id).children;void 0!==a&&a.length>0&&void 0!==t[a[0].ID]&&(n=t[a[0].ID],0!==n.indexOf("blob:")&&0!==n.indexOf("data:")||this.textureLoader.setPath(void 0));var o=e.FileName.slice(-3).toLowerCase();if("tga"===o){var s=this.manager.getHandler(".tga");null===s?(console.warn("FBXLoader: TGA loader not found, creating placeholder texture for",e.RelativeFilename),r=new hr):(s.setPath(this.textureLoader.path),r=s.load(n))}else"psd"===o?(console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for",e.RelativeFilename),r=new hr):r=this.textureLoader.load(n);return this.textureLoader.setPath(i),r}},{key:"parseMaterials",value:function(e){var t=new Map;if("Material"in Rb.Objects){var n=Rb.Objects.Material;for(var r in n){var i=this.parseMaterial(n[r],e);null!==i&&t.set(parseInt(r),i)}}return t}},{key:"parseMaterial",value:function(e,t){var n=e.id,r=e.attrName,i=e.ShadingModel;if("object"===typeof i&&(i=i.value),!Cb.has(n))return null;var a,o=this.parseParameters(e,t,n);switch(i.toLowerCase()){case"phong":a=new tp;break;case"lambert":a=new ip;break;default:console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',i),a=new tp;break}return a.setValues(o),a.name=r,a}},{key:"parseParameters",value:function(e,t,n){var r={};e.BumpFactor&&(r.bumpScale=e.BumpFactor.value),e.Diffuse?r.color=(new Hi).fromArray(e.Diffuse.value):!e.DiffuseColor||"Color"!==e.DiffuseColor.type&&"ColorRGB"!==e.DiffuseColor.type||(r.color=(new Hi).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(r.displacementScale=e.DisplacementFactor.value),e.Emissive?r.emissive=(new Hi).fromArray(e.Emissive.value):!e.EmissiveColor||"Color"!==e.EmissiveColor.type&&"ColorRGB"!==e.EmissiveColor.type||(r.emissive=(new Hi).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(r.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(r.opacity=parseFloat(e.Opacity.value)),r.opacity<1&&(r.transparent=!0),e.ReflectionFactor&&(r.reflectivity=e.ReflectionFactor.value),e.Shininess&&(r.shininess=e.Shininess.value),e.Specular?r.specular=(new Hi).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(r.specular=(new Hi).fromArray(e.SpecularColor.value));var i=this;return Cb.get(n).children.forEach((function(e){var n=e.relationship;switch(n){case"Bump":r.bumpMap=i.getTexture(t,e.ID);break;case"Maya|TEX_ao_map":r.aoMap=i.getTexture(t,e.ID);break;case"DiffuseColor":case"Maya|TEX_color_map":r.map=i.getTexture(t,e.ID),void 0!==r.map&&(r.map.encoding=gn);break;case"DisplacementColor":r.displacementMap=i.getTexture(t,e.ID);break;case"EmissiveColor":r.emissiveMap=i.getTexture(t,e.ID),void 0!==r.emissiveMap&&(r.emissiveMap.encoding=gn);break;case"NormalMap":case"Maya|TEX_normal_map":r.normalMap=i.getTexture(t,e.ID);break;case"ReflectionColor":r.envMap=i.getTexture(t,e.ID),void 0!==r.envMap&&(r.envMap.mapping=Re,r.envMap.encoding=gn);break;case"SpecularColor":r.specularMap=i.getTexture(t,e.ID),void 0!==r.specularMap&&(r.specularMap.encoding=gn);break;case"TransparentColor":case"TransparencyFactor":r.alphaMap=i.getTexture(t,e.ID),r.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",n);break}})),r}},{key:"getTexture",value:function(e,t){return"LayeredTexture"in Rb.Objects&&t in Rb.Objects.LayeredTexture&&(console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),t=Cb.get(t).children[0].ID),e.get(t)}},{key:"parseDeformers",value:function(){var e={},t={};if("Deformer"in Rb.Objects){var n=Rb.Objects.Deformer;for(var r in n){var i=n[r],a=Cb.get(parseInt(r));if("Skin"===i.attrType){var o=this.parseSkeleton(a,n);o.ID=r,a.parents.length>1&&console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),o.geometryID=a.parents[0].ID,e[r]=o}else if("BlendShape"===i.attrType){var s={id:r};s.rawTargets=this.parseMorphTargets(a,n),s.id=r,a.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),t[r]=s}}}return{skeletons:e,morphTargets:t}}},{key:"parseSkeleton",value:function(e,t){var n=[];return e.children.forEach((function(e){var r=t[e.ID];if("Cluster"===r.attrType){var i={ID:e.ID,indices:[],weights:[],transformLink:(new Jr).fromArray(r.TransformLink.a)};"Indexes"in r&&(i.indices=r.Indexes.a,i.weights=r.Weights.a),n.push(i)}})),{rawBones:n,bones:[]}}},{key:"parseMorphTargets",value:function(e,t){for(var n=[],r=0;r1?a=o:o.length>0?a=o[0]:(a=new tp({color:13421772}),o.push(a)),"color"in i.attributes&&o.forEach((function(e){e.vertexColors=!0})),i.FBX_Deformer?(r=new rd(i,a),r.normalizeSkinWeights()):r=new _a(i,a),r}},{key:"createCurve",value:function(e,t){var n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),r=new vd({color:3342591,linewidth:1});return new wd(n,r)}},{key:"getTransformData",value:function(e,t){var n={};"InheritType"in t&&(n.inheritType=parseInt(t.InheritType.value)),n.eulerOrder="RotationOrder"in t?Jb(t.RotationOrder.value):"ZYX","Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value),"ScalingOffset"in t&&(n.scalingOffset=t.ScalingOffset.value),"ScalingPivot"in t&&(n.scalingPivot=t.ScalingPivot.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"RotationPivot"in t&&(n.rotationPivot=t.RotationPivot.value),e.userData.transformData=n}},{key:"setLookAtProperties",value:function(e,t){if("LookAtProperty"in t){var n=Cb.get(e.ID).children;n.forEach((function(t){if("LookAtProperty"===t.relationship){var n=Rb.Objects.Model[t.ID];if("Lcl_Translation"in n){var r=n.Lcl_Translation.value;void 0!==e.target?(e.target.position.fromArray(r),Lb.add(e.target)):e.lookAt((new xr).fromArray(r))}}}))}}},{key:"bindSkeleton",value:function(e,t,n){var r=this.parsePoseNodes(),i=function(i){var a=e[i],o=Cb.get(parseInt(a.ID)).parents;o.forEach((function(e){if(t.has(e.ID)){var i=e.ID,o=Cb.get(i);o.parents.forEach((function(e){if(n.has(e.ID)){var t=n.get(e.ID);t.bind(new ud(a.bones),r[e.ID])}}))}}))};for(var a in e)i(a)}},{key:"parsePoseNodes",value:function(){var e={};if("Pose"in Rb.Objects){var t=Rb.Objects.Pose;for(var n in t)if("BindPose"===t[n].attrType&&t[n].NbPoseNodes>0){var r=t[n].PoseNode;Array.isArray(r)?r.forEach((function(t){e[t.Node]=(new Jr).fromArray(t.Matrix.a)})):e[r.Node]=(new Jr).fromArray(r.Matrix.a)}}return e}},{key:"createAmbientLight",value:function(){if("GlobalSettings"in Rb&&"AmbientColor"in Rb.GlobalSettings){var e=Rb.GlobalSettings.AmbientColor.value,t=e[0],n=e[1],r=e[2];if(0!==t||0!==n||0!==r){var i=new Hi(t,n,r);Lb.add(new Yp(i,1))}}}}]),e}(),Db=function(){function e(){M(this,e)}return A(e,[{key:"parse",value:function(e){var t=new Map;if("Geometry"in Rb.Objects){var n=Rb.Objects.Geometry;for(var r in n){var i=Cb.get(parseInt(r)),a=this.parseGeometry(i,n[r],e);t.set(parseInt(r),a)}}return t}},{key:"parseGeometry",value:function(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}}},{key:"parseMeshGeometry",value:function(e,t,n){var r=n.skeletons,i=[],a=e.parents.map((function(e){return Rb.Objects.Model[e.ID]}));if(0!==a.length){var o=e.children.reduce((function(e,t){return void 0!==r[t.ID]&&(e=r[t.ID]),e}),null);e.children.forEach((function(e){void 0!==n.morphTargets[e.ID]&&i.push(n.morphTargets[e.ID])}));var s=a[0],u={};"RotationOrder"in s&&(u.eulerOrder=Jb(s.RotationOrder.value)),"InheritType"in s&&(u.inheritType=parseInt(s.InheritType.value)),"GeometricTranslation"in s&&(u.translation=s.GeometricTranslation.value),"GeometricRotation"in s&&(u.rotation=s.GeometricRotation.value),"GeometricScaling"in s&&(u.scale=s.GeometricScaling.value);var l=Zb(u);return this.genGeometry(t,o,i,l)}}},{key:"genGeometry",value:function(e,t,n,r){var i=new ia;e.attrName&&(i.name=e.attrName);var a=this.parseGeoNode(e,t),o=this.genBuffers(a),s=new Zi(o.vertex,3);if(s.applyMatrix4(r),i.setAttribute("position",s),o.colors.length>0&&i.setAttribute("color",new Zi(o.colors,3)),t&&(i.setAttribute("skinIndex",new Xi(o.weightsIndices,4)),i.setAttribute("skinWeight",new Zi(o.vertexWeights,4)),i.FBX_Deformer=t),o.normal.length>0){var u=(new or).getNormalMatrix(r),l=new Zi(o.normal,3);l.applyNormalMatrix(u),i.setAttribute("normal",l)}if(o.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),i.setAttribute(n,new Zi(o.uvs[t],2))})),a.material&&"AllSame"!==a.material.mappingType){var c=o.materialIndex[0],f=0;if(o.materialIndex.forEach((function(e,t){e!==c&&(i.addGroup(f,t-f,c),c=e,f=t)})),i.groups.length>0){var d=i.groups[i.groups.length-1],h=d.start+d.count;h!==o.materialIndex.length&&i.addGroup(h,o.materialIndex.length-h,c)}0===i.groups.length&&i.addGroup(0,o.materialIndex.length,o.materialIndex[0])}return this.addMorphTargets(i,e,n,r),i}},{key:"parseGeoNode",value:function(e,t){var n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];var r=0;while(e.LayerElementUV[r])e.LayerElementUV[r].UV&&n.uv.push(this.parseUVs(e.LayerElementUV[r])),r++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,i){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[i]})}))}))),n}},{key:"genBuffers",value:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,i=!1,a=[],o=[],s=[],u=[],l=[],c=[],f=this;return e.vertexIndices.forEach((function(d,h){var p,v=!1;d<0&&(d^=-1,v=!0);var m=[],g=[];if(a.push(3*d,3*d+1,3*d+2),e.color){var y=Xb(h,n,d,e.color);s.push(y[0],y[1],y[2])}if(e.skeleton){if(void 0!==e.weightTable[d]&&e.weightTable[d].forEach((function(e){g.push(e.weight),m.push(e.id)})),g.length>4){i||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),i=!0);var b=[0,0,0,0],x=[0,0,0,0];g.forEach((function(e,t){var n=e,r=m[t];x.forEach((function(e,t,i){if(n>e){i[t]=n,n=e;var a=b[t];b[t]=r,r=a}}))})),m=b,g=x}while(g.length<4)g.push(0),m.push(0);for(var w=0;w<4;++w)l.push(g[w]),c.push(m[w])}if(e.normal){var _=Xb(h,n,d,e.normal);o.push(_[0],_[1],_[2])}e.material&&"AllSame"!==e.material.mappingType&&(p=Xb(h,n,d,e.material)[0]),e.uv&&e.uv.forEach((function(e,t){var r=Xb(h,n,d,e);void 0===u[t]&&(u[t]=[]),u[t].push(r[0]),u[t].push(r[1])})),r++,v&&(f.genFace(t,e,a,p,o,s,u,l,c,r),n++,r=0,a=[],o=[],s=[],u=[],l=[],c=[])})),t}},{key:"genFace",value:function(e,t,n,r,i,a,o,s,u,l){for(var c=function(l){e.vertex.push(t.vertexPositions[n[0]]),e.vertex.push(t.vertexPositions[n[1]]),e.vertex.push(t.vertexPositions[n[2]]),e.vertex.push(t.vertexPositions[n[3*(l-1)]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+1]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+2]]),e.vertex.push(t.vertexPositions[n[3*l]]),e.vertex.push(t.vertexPositions[n[3*l+1]]),e.vertex.push(t.vertexPositions[n[3*l+2]]),t.skeleton&&(e.vertexWeights.push(s[0]),e.vertexWeights.push(s[1]),e.vertexWeights.push(s[2]),e.vertexWeights.push(s[3]),e.vertexWeights.push(s[4*(l-1)]),e.vertexWeights.push(s[4*(l-1)+1]),e.vertexWeights.push(s[4*(l-1)+2]),e.vertexWeights.push(s[4*(l-1)+3]),e.vertexWeights.push(s[4*l]),e.vertexWeights.push(s[4*l+1]),e.vertexWeights.push(s[4*l+2]),e.vertexWeights.push(s[4*l+3]),e.weightsIndices.push(u[0]),e.weightsIndices.push(u[1]),e.weightsIndices.push(u[2]),e.weightsIndices.push(u[3]),e.weightsIndices.push(u[4*(l-1)]),e.weightsIndices.push(u[4*(l-1)+1]),e.weightsIndices.push(u[4*(l-1)+2]),e.weightsIndices.push(u[4*(l-1)+3]),e.weightsIndices.push(u[4*l]),e.weightsIndices.push(u[4*l+1]),e.weightsIndices.push(u[4*l+2]),e.weightsIndices.push(u[4*l+3])),t.color&&(e.colors.push(a[0]),e.colors.push(a[1]),e.colors.push(a[2]),e.colors.push(a[3*(l-1)]),e.colors.push(a[3*(l-1)+1]),e.colors.push(a[3*(l-1)+2]),e.colors.push(a[3*l]),e.colors.push(a[3*l+1]),e.colors.push(a[3*l+2])),t.material&&"AllSame"!==t.material.mappingType&&(e.materialIndex.push(r),e.materialIndex.push(r),e.materialIndex.push(r)),t.normal&&(e.normal.push(i[0]),e.normal.push(i[1]),e.normal.push(i[2]),e.normal.push(i[3*(l-1)]),e.normal.push(i[3*(l-1)+1]),e.normal.push(i[3*(l-1)+2]),e.normal.push(i[3*l]),e.normal.push(i[3*l+1]),e.normal.push(i[3*l+2])),t.uv&&t.uv.forEach((function(t,n){void 0===e.uvs[n]&&(e.uvs[n]=[]),e.uvs[n].push(o[n][0]),e.uvs[n].push(o[n][1]),e.uvs[n].push(o[n][2*(l-1)]),e.uvs[n].push(o[n][2*(l-1)+1]),e.uvs[n].push(o[n][2*l]),e.uvs[n].push(o[n][2*l+1])}))},f=2;f1&&console.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");var a=e.get(i[0].ID);n[r]={name:t[r].attrName,layer:a}}return n}},{key:"addClip",value:function(e){var t=[],n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new xp(e.name,-1,t)}},{key:"generateTracks",value:function(e){var t=[],n=new xr,r=new br,i=new xr;if(e.transform&&e.transform.decompose(n,r,i),n=n.toArray(),r=(new si).setFromQuaternion(r,e.eulerOrder).toArray(),i=i.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var a=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==a&&t.push(a)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){var o=this.generateRotationTrack(e.modelName,e.R.curves,r,e.preRotation,e.postRotation,e.eulerOrder);void 0!==o&&t.push(o)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){var s=this.generateVectorTrack(e.modelName,e.S.curves,i,"scale");void 0!==s&&t.push(s)}if(void 0!==e.DeformPercent){var u=this.generateMorphTrack(e);void 0!==u&&t.push(u)}return t}},{key:"generateVectorTrack",value:function(e,t,n,r){var i=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(i,t,n);return new bp(e+"."+r,i,a)}},{key:"generateRotationTrack",value:function(e,t,n,r,i,a){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(ir.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(ir.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(ir.degToRad));var o=this.getTimesForAllAxes(t),s=this.getKeyframeTrackValues(o,t,n);void 0!==r&&(r=r.map(ir.degToRad),r.push(a),r=(new si).fromArray(r),r=(new br).setFromEuler(r)),void 0!==i&&(i=i.map(ir.degToRad),i.push(a),i=(new si).fromArray(i),i=(new br).setFromEuler(i).invert());for(var u=new br,l=new si,c=[],f=0;f1){for(var n=1,r=t[0],i=1;i=180){var a=i/180,o=r/a,s=n+o,u=e.times[t-1],l=e.times[t]-u,c=l/a,f=u+c,d=[],h=[];while(f1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}}},{key:"parseNodeProperty",value:function(e,t,n){var r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),i=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===i&&(i=n.replace(/"/g,"").replace(/,$/,"").trim());var a=this.getCurrentNode(),o=a.name;if("Properties70"!==o){if("C"===r){var s=i.split(",").slice(1),u=parseInt(s[0]),l=parseInt(s[1]),c=i.split(",").slice(3);c=c.map((function(e){return e.trim().replace(/^"/,"")})),r="connections",i=[u,l],ex(i,c),void 0===a[r]&&(a[r]=[])}"Node"===r&&(a.id=i),r in a&&Array.isArray(a[r])?a[r].push(i):"a"!==r?a[r]=i:a.a=i,this.setCurrentProp(a,r),"a"===r&&","!==i.slice(-1)&&(a.a=$b(i))}else this.parseNodeSpecialProperty(e,r,i)}},{key:"parseNodePropertyContinued",value:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=$b(t.a))}},{key:"parseNodeSpecialProperty",value:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),i=r[0],a=r[1],o=r[2],s=r[3],u=r[4];switch(a){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":u=parseFloat(u);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":u=$b(u);break}this.getPrevNode()[i]={type:a,type2:o,flag:s,value:u},this.setCurrentProp(this.getPrevNode(),i)}}]),e}(),Ub=function(){function e(){M(this,e)}return A(e,[{key:"parse",value:function(e){var t=new Bb(e);t.skip(23);var n=t.getUint32();if(n<6400)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+n);var r=new zb;while(!this.endOfContent(t)){var i=this.parseNode(t,n);null!==i&&r.add(i.name,i)}return r}},{key:"endOfContent",value:function(e){return e.size()%16===0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()}},{key:"parseNode",value:function(e,t){var n={},r=t>=7500?e.getUint64():e.getUint32(),i=t>=7500?e.getUint64():e.getUint32();t>=7500?e.getUint64():e.getUint32();var a=e.getUint8(),o=e.getString(a);if(0===r)return null;for(var s=[],u=0;u0?s[0]:"",c=s.length>1?s[1]:"",f=s.length>2?s[2]:"";n.singleProperty=1===i&&e.getOffset()===r;while(r>e.getOffset()){var d=this.parseNode(e,t);null!==d&&this.parseSubNode(o,n,d)}return n.propertyList=s,"number"===typeof l&&(n.id=l),""!==c&&(n.attrName=c),""!==f&&(n.attrType=f),""!==o&&(n.name=o),n}},{key:"parseSubNode",value:function(e,t,n){if(!0===n.singleProperty){var r=n.propertyList[0];Array.isArray(r)?(t[n.name]=n,n.a=r):t[n.name]=r}else if("Connections"===e&&"C"===n.name){var i=[];n.propertyList.forEach((function(e,t){0!==t&&i.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(i)}else if("Properties70"===n.name){var a=Object.keys(n);a.forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var o,s=n.propertyList[0],u=n.propertyList[1],l=n.propertyList[2],c=n.propertyList[3];0===s.indexOf("Lcl ")&&(s=s.replace("Lcl ","Lcl_")),0===u.indexOf("Lcl ")&&(u=u.replace("Lcl ","Lcl_")),o="Color"===u||"ColorRGB"===u||"Vector"===u||"Vector3D"===u||0===u.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[s]={type:u,type2:l,flag:c,value:o}}else void 0===t[n.name]?"number"===typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)}},{key:"parseProperty",value:function(e){var t,n=e.getString(1);switch(n){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":return t=e.getUint32(),e.getArrayBuffer(t);case"S":return t=e.getUint32(),e.getString(t);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":var i=e.getUint32(),a=e.getUint32(),o=e.getUint32();if(0===a)switch(n){case"b":case"c":return e.getBooleanArray(i);case"d":return e.getFloat64Array(i);case"f":return e.getFloat32Array(i);case"i":return e.getInt32Array(i);case"l":return e.getInt64Array(i)}"undefined"===typeof r&&console.error("THREE.FBXLoader: External library fflate.min.js required.");var s=Gy(new Uint8Array(e.getArrayBuffer(o))),u=new Bb(s.buffer);switch(n){case"b":case"c":return u.getBooleanArray(i);case"d":return u.getFloat64Array(i);case"f":return u.getFloat32Array(i);case"i":return u.getInt32Array(i);case"l":return u.getInt64Array(i)}default:throw new Error("THREE.FBXLoader: Unknown property type "+n)}}}]),e}(),Bb=function(){function e(t,n){M(this,e),this.dv=new DataView(t),this.offset=0,this.littleEndian=void 0===n||n}return A(e,[{key:"getOffset",value:function(){return this.offset}},{key:"size",value:function(){return this.dv.buffer.byteLength}},{key:"skip",value:function(e){this.offset+=e}},{key:"getBoolean",value:function(){return 1===(1&this.getUint8())}},{key:"getBooleanArray",value:function(e){for(var t=[],n=0;n=0&&(t=t.slice(0,r)),$p.decodeText(new Uint8Array(t))}}]),e}(),zb=function(){function e(){M(this,e)}return A(e,[{key:"add",value:function(e,t){this[e]=t}}]),e}();function Hb(e){var t="Kaydara FBX Binary \0";return e.byteLength>=t.length&&t===Qb(e,0,t.length)}function Gb(e){var t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"],n=0;function r(t){var r=e[t-1];return e=e.slice(n+t),n++,r}for(var i=0;i({getSnapshot:()=>{var e;return d(),null===(e=f.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e,t,r=new Yp(13421772,.4);null===(e=l.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(t=l.current)||void 0===t||t.add(i);var a=new Ib;a.load(n,(function(e){u(e),c()}))}),[]),a.a.createElement("canvas",{ref:o,style:{width:"100%",height:"100%"}})}var ix=Object(i["forwardRef"])(rx),ax=/^[og]\s*(.+)?/,ox=/^mtllib /,sx=/^usemtl /,ux=/^usemap /,lx=new xr,cx=new xr,fx=new xr,dx=new xr,hx=new xr;function px(){var e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&"function"===typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var r={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"===typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"===typeof n.clone){var r=n.clone(0);r.inherited=!0,this.object.materials.push(r)}this.objects.push(this.object)},finalize:function(){this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var r=this.vertices,i=this.object.geometry.vertices;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){var r=this.normals,i=this.object.geometry.normals;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addFaceNormal:function(e,t,n){var r=this.vertices,i=this.object.geometry.normals;lx.fromArray(r,e),cx.fromArray(r,t),fx.fromArray(r,n),hx.subVectors(fx,cx),dx.subVectors(lx,cx),hx.cross(dx),hx.normalize(),i.push(hx.x,hx.y,hx.z),i.push(hx.x,hx.y,hx.z),i.push(hx.x,hx.y,hx.z)},addColor:function(e,t,n){var r=this.colors,i=this.object.geometry.colors;void 0!==r[e]&&i.push(r[e+0],r[e+1],r[e+2]),void 0!==r[t]&&i.push(r[t+0],r[t+1],r[t+2]),void 0!==r[n]&&i.push(r[n+0],r[n+1],r[n+2])},addUV:function(e,t,n){var r=this.uvs,i=this.object.geometry.uvs;i.push(r[e+0],r[e+1]),i.push(r[t+0],r[t+1]),i.push(r[n+0],r[n+1])},addDefaultUV:function(){var e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){var t=this.uvs,n=this.object.geometry.uvs;n.push(t[e+0],t[e+1])},addFace:function(e,t,n,r,i,a,o,s,u){var l=this.vertices.length,c=this.parseVertexIndex(e,l),f=this.parseVertexIndex(t,l),d=this.parseVertexIndex(n,l);if(this.addVertex(c,f,d),this.addColor(c,f,d),void 0!==o&&""!==o){var h=this.normals.length;c=this.parseNormalIndex(o,h),f=this.parseNormalIndex(s,h),d=this.parseNormalIndex(u,h),this.addNormal(c,f,d)}else this.addFaceNormal(c,f,d);if(void 0!==r&&""!==r){var p=this.uvs.length;c=this.parseUVIndex(r,p),f=this.parseUVIndex(i,p),d=this.parseUVIndex(a,p),this.addUV(c,f,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";for(var t=this.vertices.length,n=0,r=e.length;n=7?t.colors.push(parseFloat(c[4]),parseFloat(c[5]),parseFloat(c[6])):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(c[1]),parseFloat(c[2]),parseFloat(c[3]));break;case"vt":t.uvs.push(parseFloat(c[1]),parseFloat(c[2]));break}}else if("f"===i){for(var f=r.substr(1).trim(),d=f.split(/\s+/),h=[],p=0,v=d.length;p0){var g=m.split("/");h.push(g)}}for(var y=h[0],b=1,x=h.length-1;b1){var L=o[1].trim().toLowerCase();t.object.smooth="0"!==L&&"off"!==L}else t.object.smooth=!0;var P=t.object.currentMaterial();P&&(P.smooth=t.object.smooth)}else{if("\0"===r)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+r+'"')}t.finalize();var I=new wf;I.materialLibraries=[].concat(t.materialLibraries);var N=!(1===t.objects.length&&0===t.objects[0].geometry.vertices.length);if(!0===N)for(var D=0,j=t.objects.length;D0&&V.setAttribute("normal",new Zi(U.normals,3)),U.colors.length>0&&(G=!0,V.setAttribute("color",new Zi(U.colors,3))),!0===U.hasUVIndices&&V.setAttribute("uv",new Zi(U.uvs,2));for(var W=[],q=0,X=B.length;q1){for(var ee=0,te=B.length;ee0){var re=new Md({size:1,sizeAttenuation:!1}),ie=new ia;ie.setAttribute("position",new Zi(t.vertices,3)),t.colors.length>0&&void 0!==t.colors[0]&&(ie.setAttribute("color",new Zi(t.colors,3)),re.vertexColors=!0);var ae=new Cd(ie,re);I.add(ae)}return I}}]),n}(Mp);function mx(e,t){var n=e.src,r=e.backgroundColor,o=Object(i["useRef"])(null),s=qm(o,r),u=s.add2Scene,l=s.scene,c=s.animate,f=s.render,d=s.renderer;return Object(i["useImperativeHandle"])(t,(()=>({getSnapshot:()=>{var e;return f(),null===(e=d.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e,t,r=new Yp(13421772,.4);null===(e=l.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(t=l.current)||void 0===t||t.add(i);var a=new vx;a.load(n,(function(e){u(e),c()}))}),[]),a.a.createElement("canvas",{ref:o,style:{width:"100%",height:"100%"}})}var gx=Object(i["forwardRef"])(mx),yx=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.propertyNameMapping={},r}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=new Ap(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(function(n){try{t(i.parse(n))}catch(Sx){r?r(Sx):console.error(Sx),i.manager.itemError(e)}}),n,r)}},{key:"setPropertyNameMapping",value:function(e){this.propertyNameMapping=e}},{key:"parse",value:function(e){function t(e){var t=/ply([\s\S]*)end_header\r?\n/,n="",r=0,i=t.exec(e);null!==i&&(n=i[1],r=new Blob([i[0]]).size);var a,o={comments:[],elements:[],headerLength:r,objInfo:""},s=n.split("\n");function u(e,t){var n={type:e[0]};return"list"===n.type?(n.name=e[3],n.countType=e[1],n.itemType=e[2]):n.name=e[1],n.name in t&&(n.name=t[n.name]),n}for(var l=0;l=t.elements[c].count&&(c++,f=0);var p=r(t.elements[c].properties,h);o(i,t.elements[c].name,p),f++}}return a(i)}function a(e){var t=new ia;return e.indices.length>0&&t.setIndex(e.indices),t.setAttribute("position",new Zi(e.vertices,3)),e.normals.length>0&&t.setAttribute("normal",new Zi(e.normals,3)),e.uvs.length>0&&t.setAttribute("uv",new Zi(e.uvs,2)),e.colors.length>0&&t.setAttribute("color",new Zi(e.colors,3)),e.faceVertexUvs.length>0&&(t=t.toNonIndexed(),t.setAttribute("uv",new Zi(e.faceVertexUvs,2))),t.computeBoundingSphere(),t}function o(e,t,n){function r(e){for(var t=0,r=e.length;t{var e,n,r=new Yp(13421772,.4);null===(e=u.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(n=u.current)||void 0===n||n.add(i);var a=new yx;a.load(t,(function(e){e.computeVertexNormals();var t=new Qh,n=new _a(e,t);s(n),l()}))}),[]),a.a.createElement("canvas",{ref:r,style:{width:"100%",height:"100%"}})}var xx=bx,wx=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=new Ap(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(function(n){try{t(i.parse(n))}catch(Sx){r?r(Sx):console.error(Sx),i.manager.itemError(e)}}),n,r)}},{key:"parse",value:function(e){function t(e){var t=new DataView(e),r=50,i=t.getUint32(80,!0),a=84+i*r;if(a===t.byteLength)return!0;for(var o=[115,111,108,105,100],s=0;s<5;s++)if(n(o,t,s))return!1;return!0}function n(e,t,n){for(var r=0,i=e.length;r>5&31)/31,r=(E>>10&31)/31):(t=a,n=o,r=s)}for(var S=1;S<=3;S++){var k=b+12*S,M=3*y*3+3*(S-1);m[M]=l.getFloat32(k,!0),m[M+1]=l.getFloat32(k+4,!0),m[M+2]=l.getFloat32(k+8,!0),g[M]=x,g[M+1]=w,g[M+2]=_,f&&(i[M]=t,i[M+1]=n,i[M+2]=r)}}return v.setAttribute("position",new qi(m,3)),v.setAttribute("normal",new qi(g,3)),f&&(v.setAttribute("color",new qi(i,3)),v.hasColors=!0,v.alpha=u),v}function i(e){var t,n=new ia,r=/solid([\s\S]*?)endsolid/g,i=/facet([\s\S]*?)endfacet/g,a=0,o=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,s=new RegExp("vertex"+o+o+o,"g"),u=new RegExp("normal"+o+o+o,"g"),l=[],c=[],f=new xr,d=0,h=0,p=0;while(null!==(t=r.exec(e))){h=p;var v=t[0];while(null!==(t=i.exec(v))){var m=0,g=0,y=t[0];while(null!==(t=u.exec(y)))f.x=parseFloat(t[1]),f.y=parseFloat(t[2]),f.z=parseFloat(t[3]),g++;while(null!==(t=s.exec(y)))l.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3])),c.push(f.x,f.y,f.z),m++,p++;1!==g&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+a),3!==m&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+a),a++}var b=h,x=p-h;n.addGroup(b,x,d),d++}return n.setAttribute("position",new Zi(l,3)),n.setAttribute("normal",new Zi(c,3)),n}function a(e){return"string"!==typeof e?$p.decodeText(new Uint8Array(e)):e}function o(e){if("string"===typeof e){for(var t=new Uint8Array(e.length),n=0;n{var e,n,r=new Yp(13421772,.4);null===(e=u.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(n=u.current)||void 0===n||n.add(i);var a=new wx;a.load(t,(function(e){var t=new Qh,n=new _a(e,t);s(n),l()}))}),[]),a.a.createElement("canvas",{ref:r,style:{width:"100%",height:"100%"}})}var Ex=_x;t["default"]={GLTF:Ym,Collada:$m,FBX:ix,OBJ:gx,PLY:xx,STL:Ex}},"/GqU":function(e,t,n){var r=n("RK3t"),i=n("HYAF");e.exports=function(e){return r(i(e))}},"/Yfv":function(e,t,n){var r=n("dOgj");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"/b8u":function(e,t,n){var r=n("STAE");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"/byt":function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"/qmn":function(e,t,n){var r=n("2oRo");e.exports=r.Promise},0:function(e,t,n){e.exports=n("tB8F")},"03A+":function(e,t,n){var r=n("JTzB"),i=n("ExA7"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},"07d7":function(e,t,n){var r=n("AO7/"),i=n("busE"),a=n("sEFX");r||i(Object.prototype,"toString",a,{unsafe:!0})},"0BK2":function(e,t){e.exports={}},"0Bia":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("9kvl"),s=(n("mdU6"),function(e){var t=e.location,n=Object(r["useContext"])(a["context"]),s=n.base,u=n.locale,l=n.config.locales,c=l.find((function(e){var t=e.name;return t!==u}));function f(e){var n=s.replace("/".concat(u),""),r=t.pathname.replace(new RegExp("^".concat(s,"(/|$)")),"".concat(n,"$1"))||"/";if(e!==l[0].name){var i="".concat(n,"/").concat(e).replace(/\/\//,"/"),a=t.pathname.replace(s.replace(/^\/$/,"//"),"");return"".concat(i).concat(a).replace(/\/$/,"")}return r}return c?i.a.createElement("div",{className:"__dumi-default-locale-select","data-locale-count":l.length},l.length>2?i.a.createElement("select",{value:u,onChange:function(e){return o["a"].push(f(e.target.value))}},l.map((function(e){return i.a.createElement("option",{value:e.name,key:e.name},e.label)}))):i.a.createElement(a["Link"],{to:f(c.name)},c.label)):null}),u=s,l=(n("fVI1"),function(e){var t=e.onMobileMenuClick,n=e.navPrefix,o=e.location,s=e.darkPrefix,l=Object(r["useContext"])(a["context"]),c=l.base,f=l.config,d=f.mode,h=f.title,p=f.logo,v=l.nav;return i.a.createElement("div",{className:"__dumi-default-navbar","data-mode":d},i.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),i.a.createElement(a["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:p&&"url('".concat(p,"')")},to:c,"data-plaintext":!1===p||void 0},h),i.a.createElement("nav",null,n,v.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&i.a.createElement("ul",null,e.children.map((function(e){return i.a.createElement("li",{key:e.path},i.a.createElement(a["NavLink"],{to:e.path},e.title))})));return i.a.createElement("span",{key:e.title||e.path},e.path?i.a.createElement(a["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),i.a.createElement("div",{className:"__dumi-default-navbar-tool"},i.a.createElement(u,{location:o}),s)))}),c=l,f=(n("hJnp"),["slugs"]);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var v=function(e){var t=e.slugs,n=h(e,f);return i.a.createElement("ul",d({role:"slug-list"},n),t.filter((function(e){var t=e.depth;return t>1&&t<4})).map((function(e){return i.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},i.a.createElement(a["AnchorLink"],{to:"#".concat(e.heading)},i.a.createElement("span",null,e.value)))})))},m=v,g=(n("Mpie"),function(e){var t=e.mobileMenuCollapsed,n=e.location,o=e.darkPrefix,s=Object(r["useContext"])(a["context"]),l=s.config,c=l.logo,f=l.title,d=l.description,h=l.mode,p=l.repository.url,v=s.menu,g=s.nav,y=s.base,b=s.meta,x=Boolean((b.hero||b.features||b.gapless)&&"site"===h)||!1===b.sidemenu||void 0;return i.a.createElement("div",{className:"__dumi-default-menu","data-mode":h,"data-hidden":x,"data-mobile-show":!t||void 0},i.a.createElement("div",{className:"__dumi-default-menu-inner"},i.a.createElement("div",{className:"__dumi-default-menu-header"},i.a.createElement(a["Link"],{to:y,className:"__dumi-default-menu-logo",style:{backgroundImage:c&&"url('".concat(c,"')")}}),i.a.createElement("h1",null,f),i.a.createElement("p",null,d),/github\.com/.test(p)&&"doc"===h&&i.a.createElement("p",null,i.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(p.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),i.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},!!g.length&&i.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},g.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&i.a.createElement("ul",null,e.children.map((function(e){return i.a.createElement("li",{key:e.path||e.title},i.a.createElement(a["NavLink"],{to:e.path},e.title))})));return i.a.createElement("li",{key:e.path||e.title},e.path?i.a.createElement(a["NavLink"],{to:e.path},e.title):e.title,n)}))),i.a.createElement(u,{location:n}),o),i.a.createElement("ul",{className:"__dumi-default-menu-list"},!x&&v.map((function(e){var t,r=Boolean(null===(t=b.slugs)||void 0===t?void 0:t.length),o=e.children&&Boolean(e.children.length),s="menu"===b.toc&&!o&&r&&e.path===n.pathname.replace(/([^^])\/$/,"$1"),u=o?e.children.map((function(e){return e.path})):[e.path,n.pathname.startsWith("".concat(e.path,"/"))&&b.title===e.title?n.pathname:null];return i.a.createElement("li",{key:e.path||e.title},i.a.createElement(a["NavLink"],{to:e.path,isActive:function(){return u.includes(n.pathname)}},e.title),Boolean(e.children&&e.children.length)&&i.a.createElement("ul",null,e.children.map((function(e){return i.a.createElement("li",{key:e.path},i.a.createElement(a["NavLink"],{to:e.path,exact:!0},i.a.createElement("span",null,e.title)),Boolean("menu"===b.toc&&"undefined"!==typeof window&&e.path===n.pathname&&r)&&i.a.createElement(m,{slugs:b.slugs}))}))),s&&i.a.createElement(m,{slugs:b.slugs}))})))))}),y=g;n("AK2Z");function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&l.map((function(e){var t;return i.a.createElement("li",{key:e.path,onClick:function(){return o("")}},i.a.createElement(a["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&i.a.createElement("span",null,e.parent.title),M(n,e.title)))})),0===l.length&&n&&i.a.createElement("li",{style:{textAlign:"center"}},h)))};n("Zkgb");function A(e,t){return P(e)||L(e,t)||R(e,t)||O()}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,t){if(e){if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop(n)}),void 0,!0,!0).result}})},"0rvr":function(e,t,n){var r=n("glrk"),i=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},"0ycA":function(e,t){function n(){return[]}e.exports=n},"14Sl":function(e,t,n){"use strict";n("rB9j");var r=n("busE"),i=n("0Dky"),a=n("tiKp"),o=n("kmMV"),s=n("kRJp"),u=a("species"),l=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),f=a("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var p=a(e),v=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=v&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!v||!m||"replace"===e&&(!l||!c||d)||"split"===e&&!h){var g=/./[p],y=n(p,""[e],(function(e,t,n,r,i){return t.exec===o?v&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],x=y[1];r(String.prototype,e,b),r(RegExp.prototype,p,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&s(RegExp.prototype[p],"sham",!0)}},"16Al":function(e,t,n){"use strict";var r=n("WbBG");function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1E5z":function(e,t,n){var r=n("m/L8").f,i=n("UTVS"),a=n("tiKp"),o=a("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"1OyB":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"1Y/n":function(e,t,n){var r=n("HAuM"),i=n("ewvW"),a=n("RK3t"),o=n("UMSQ"),s=function(e){return function(t,n,s,u){r(n);var l=i(t),c=a(l),f=o(l.length),d=e?f-1:0,h=e?-1:1;if(s<2)while(1){if(d in c){u=c[d],d+=h;break}if(d+=h,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=h)d in c&&(u=n(u,c[d],d,l));return u}};e.exports={left:s(!1),right:s(!0)}},"1hJj":function(e,t,n){var r=n("e4Nc"),i=n("ftKO"),a=n("3A9y");function o(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++tf)n=i(r,t=l[f++]),void 0!==n&&u(c,t,n);return c}})},"2B1R":function(e,t,n){"use strict";var r=n("I+eb"),i=n("tycR").map,a=n("Hd5f"),o=n("rkAj"),s=a("map"),u=o("map");r({target:"Array",proto:!0,forced:!s||!u},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"2N97":function(e,t,n){"use strict";var r=n("xbqb")["default"],i=n("Lw8S")["default"];function a(){var e=n("q1tI");return a=function(){return e},e}function o(e,t){return f(e)||c(e,t)||u(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3),i=new(l(t,a("Set"))),d=s(i.add);return f(n,(function(e){r(e,e,t)&&d.call(i,e)}),void 0,!1,!0),i}})},"49+q":function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("fXLg");r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},"4Brf":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("2oRo"),o=n("UTVS"),s=n("hh1v"),u=n("m/L8").f,l=n("6JNq"),c=a.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(f[t]=!0),t};l(d,c);var h=d.prototype=c.prototype;h.constructor=d;var p=h.toString,v="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(f,e))return"";var n=v?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},"4IlW":function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t["a"]=r},"4WOD":function(e,t,n){var r=n("UTVS"),i=n("ewvW"),a=n("93I0"),o=n("4Xet"),s=a("IE_PROTO"),u=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},"4XaG":function(e,t,n){var r=n("dG/n");r("observable")},"4Xet":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"4kuk":function(e,t,n){var r=n("SfRM"),i=n("Hvzi"),a=n("u8Dt"),o=n("ekgI"),s=n("JSQU");function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},"4mmX":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["GLTF-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-gltf"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-gltf","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d GLTF"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["GLTF-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},"4oU/":function(e,t,n){var r=n("2oRo"),i=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},"4syw":function(e,t,n){var r=n("busE");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},5921:function(e,t,n){var r=n("I+eb"),i=n("P940");r({target:"Map",stat:!0},{of:i})},"5JV0":function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("WGBp"),s=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=a(this),n=o(t),r=void 0===e?",":String(e),i=[];return s(n,i.push,i,!1,!0),i.join(r)}})},"5Tg+":function(e,t,n){var r=n("tiKp");t.f=r},"5Yz+":function(e,t,n){"use strict";var r=n("/GqU"),i=n("ppGB"),a=n("UMSQ"),o=n("pkCn"),s=n("rkAj"),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),h=c||!f||!d;e.exports=h?function(e){if(c)return l.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=u(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:l},"5mdu":function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},"5r1n":function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=i.get,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return o(e,a(t),n)}})},"5s+n":function(e,t,n){"use strict";var r,i,a,o,s=n("I+eb"),u=n("xDBR"),l=n("2oRo"),c=n("0GbY"),f=n("/qmn"),d=n("busE"),h=n("4syw"),p=n("1E5z"),v=n("JiZb"),m=n("hh1v"),g=n("HAuM"),y=n("GarU"),b=n("xrYK"),x=n("iSVu"),w=n("ImZN"),_=n("HH4o"),E=n("SEBh"),S=n("LPSS").set,k=n("tXUg"),M=n("zfnd"),T=n("RN6c"),A=n("8GlL"),O=n("5mdu"),R=n("afO8"),C=n("lMq5"),L=n("tiKp"),P=n("LQDL"),I=L("species"),N="Promise",D=R.get,j=R.set,F=R.getterFor(N),U=f,B=l.TypeError,z=l.document,H=l.process,G=c("fetch"),V=A.f,W=V,q="process"==b(H),X=!!(z&&z.createEvent&&l.dispatchEvent),Y="unhandledrejection",K="rejectionhandled",Z=0,J=1,$=2,Q=1,ee=2,te=C(N,(function(){var e=x(U)!==String(U);if(!e){if(66===P)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype["finally"])return!0;if(P>=51&&/native code/.test(U))return!1;var t=U.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[I]=n,!(t.then((function(){}))instanceof n)})),ne=te||!_((function(e){U.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;k((function(){var i=t.value,a=t.state==J,o=0;while(r.length>o){var s,u,l,c=r[o++],f=a?c.ok:c.fail,d=c.resolve,h=c.reject,p=c.domain;try{f?(a||(t.rejection===ee&&ue(e,t),t.rejection=Q),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===c.promise?h(B("Promise-chain cycle")):(u=re(s))?u.call(s,d,h):d(s)):h(i)}catch(v){p&&!l&&p.exit(),h(v)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&oe(e,t)}))}},ae=function(e,t,n){var r,i;X?(r=z.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(i=l["on"+e])?i(r):e===Y&&T("Unhandled promise rejection",n)},oe=function(e,t){S.call(l,(function(){var n,r=t.value,i=se(t);if(i&&(n=O((function(){q?H.emit("unhandledRejection",r,e):ae(Y,e,r)})),t.rejection=q||se(t)?ee:Q,n.error))throw n.value}))},se=function(e){return e.rejection!==Q&&!e.parent},ue=function(e,t){S.call(l,(function(){q?H.emit("rejectionHandled",e):ae(K,e,t.value)}))},le=function(e,t,n,r){return function(i){e(t,n,i,r)}},ce=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=$,ie(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw B("Promise can't be resolved itself");var i=re(n);i?k((function(){var r={done:!1};try{i.call(n,le(fe,e,r,t),le(ce,e,r,t))}catch(a){ce(e,r,a,t)}})):(t.value=n,t.state=J,ie(e,t,!1))}catch(a){ce(e,{done:!1},a,t)}}};te&&(U=function(e){y(this,U,N),g(e),r.call(this);var t=D(this);try{e(le(fe,this,t),le(ce,this,t))}catch(n){ce(this,t,n)}},r=function(e){j(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=h(U.prototype,{then:function(e,t){var n=F(this),r=V(E(this,U));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&ie(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=D(e);this.promise=e,this.resolve=le(fe,e,t),this.reject=le(ce,e,t)},A.f=V=function(e){return e===U||e===a?new i(e):W(e)},u||"function"!=typeof f||(o=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new U((function(e,t){o.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return M(U,G.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,N,!1,!0),v(N),a=c(N),s({target:N,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:N,stat:!0,forced:u||te},{resolve:function(e){return M(u&&this===a?U:this,e)}}),s({target:N,stat:!0,forced:ne},{all:function(e){var t=this,n=V(t),r=n.resolve,i=n.reject,a=O((function(){var n=g(t.resolve),a=[],o=0,s=1;w(e,(function(e){var u=o++,l=!1;a.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,a[u]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,i=O((function(){var i=g(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},"5wUe":function(e,t,n){var r=n("Q9SF"),i=n("MIOZ"),a=n("mGKP"),o=n("h0XC");function s(e,t){return r(e)||i(e,t)||a(e,t)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5xtp":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("6x0u"),o=n("ewvW"),s=n("HAuM"),u=n("m/L8");i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){u.f(o(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},"66V8":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("4WOD"),o=n("0rvr"),s=n("fHMY"),u=n("m/L8"),l=n("XGwC"),c=n("ImZN"),f=n("kRJp"),d=n("afO8"),h=d.set,p=d.getterFor("AggregateError"),v=function(e,t){var n=this;if(!(n instanceof v))return new v(e,t);o&&(n=o(new Error(t),a(n)));var r=[];return c(e,r.push,r),i?h(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&f(n,"message",String(t)),n};v.prototype=s(Error.prototype,{constructor:l(5,v),message:l(5,""),name:l(5,"AggregateError")}),i&&u.f(v.prototype,"errors",{get:function(){return p(this).errors},configurable:!0}),r({global:!0},{AggregateError:v})},"67WC":function(e,t,n){"use strict";var r,i=n("qYE9"),a=n("g6v/"),o=n("2oRo"),s=n("hh1v"),u=n("UTVS"),l=n("9d/t"),c=n("kRJp"),f=n("busE"),d=n("m/L8").f,h=n("4WOD"),p=n("0rvr"),v=n("tiKp"),m=n("kOOl"),g=o.Int8Array,y=g&&g.prototype,b=o.Uint8ClampedArray,x=b&&b.prototype,w=g&&h(g),_=y&&h(y),E=Object.prototype,S=E.isPrototypeOf,k=v("toStringTag"),M=m("TYPED_ARRAY_TAG"),T=i&&!!p&&"Opera"!==l(o.opera),A=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){var t=l(e);return"DataView"===t||u(O,t)},C=function(e){return s(e)&&u(O,l(e))},L=function(e){if(C(e))return e;throw TypeError("Target is not a typed array")},P=function(e){if(p){if(S.call(w,e))return e}else for(var t in O)if(u(O,r)){var n=o[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},I=function(e,t,n){if(a){if(n)for(var r in O){var i=o[r];i&&u(i.prototype,e)&&delete i.prototype[e]}_[e]&&!n||f(_,e,n?t:T&&y[e]||t)}},N=function(e,t,n){var r,i;if(a){if(p){if(n)for(r in O)i=o[r],i&&u(i,e)&&delete i[e];if(w[e]&&!n)return;try{return f(w,e,n?t:T&&g[e]||t)}catch(s){}}for(r in O)i=o[r],!i||i[e]&&!n||f(i,e,t)}};for(r in O)o[r]||(T=!1);if((!T||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},T))for(r in O)o[r]&&p(o[r],w);if((!T||!_||_===E)&&(_=w.prototype,T))for(r in O)o[r]&&p(o[r].prototype,_);if(T&&h(x)!==_&&p(x,_),a&&!u(_,k))for(r in A=!0,d(_,k,{get:function(){return s(this)?this[M]:void 0}}),O)o[r]&&c(o[r],M,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:A&&M,aTypedArray:L,aTypedArrayConstructor:P,exportTypedArrayMethod:I,exportTypedArrayStaticMethod:N,isView:R,isTypedArray:C,TypedArray:w,TypedArrayPrototype:_}},"6JNq":function(e,t,n){var r=n("UTVS"),i=n("Vu81"),a=n("Bs8V"),o=n("m/L8");e.exports=function(e,t){for(var n=i(t),s=o.f,u=a.f,l=0;l>>8,n[2*r+1]=o%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return a.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r>=1}else{for(i=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete s[c]}else for(i=o[c],r=0;r>=1;f--,0==f&&(f=Math.pow(2,h),h++),o[l]=d++,c=String(u)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete s[c]}else for(i=o[c],r=0;r>=1;f--,0==f&&(f=Math.pow(2,h),h++)}for(i=2,r=0;r>=1;while(1){if(v<<=1,m==t-1){p.push(n(v));break}m++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,a,o,s,u,l,c,f=[],d=4,h=4,p=3,v="",m=[],g={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)f[i]=i;o=0,u=Math.pow(2,2),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;switch(o){case 0:o=0,u=Math.pow(2,8),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;c=e(o);break;case 1:o=0,u=Math.pow(2,16),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;c=e(o);break;case 2:return""}f[3]=c,a=c,m.push(c);while(1){if(g.index>t)return"";o=0,u=Math.pow(2,p),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;switch(c=o){case 0:o=0,u=Math.pow(2,8),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;f[h++]=e(o),c=h-1,d--;break;case 1:o=0,u=Math.pow(2,16),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;f[h++]=e(o),c=h-1,d--;break;case 2:return m.join("")}if(0==d&&(d=Math.pow(2,p),p++),f[c])v=f[c];else{if(c!==h)return null;v=a+a.charAt(0)}m.push(v),f[h++]=a+v.charAt(0),d--,a=v,0==d&&(d=Math.pow(2,p),p++)}}};return a}();r=function(){return i}.call(t,n,t,e),void 0===r||(e.exports=r)},"7+kd":function(e,t,n){var r=n("dG/n");r("isConcatSpreadable")},"7+zs":function(e,t,n){var r=n("kRJp"),i=n("UesL"),a=n("tiKp"),o=a("toPrimitive"),s=Date.prototype;o in s||r(s,o,i)},"702D":function(e,t,n){var r=n("I+eb"),i=n("qY7S");r({target:"WeakMap",stat:!0},{from:i})},"77Zs":function(e,t,n){var r=n("Xi7e");function i(){this.__data__=new r,this.size=0}e.exports=i},"7GkX":function(e,t,n){var r=n("b80T"),i=n("A90E"),a=n("MMmD");function o(e){return a(e)?r(e):i(e)}e.exports=o},"7JcK":function(e,t,n){"use strict";var r=n("67WC"),i=n("iqeF"),a=r.aTypedArrayConstructor,o=r.exportTypedArrayStaticMethod;o("of",(function(){var e=0,t=arguments.length,n=new(a(this))(t);while(t>e)n[e]=arguments[e++];return n}),i)},"7fqy":function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},"7sf/":function(e,t,n){"use strict";function r(){var e=n("q1tI");return r=function(){return e},e}function i(){var e=a(n("6xEa"));return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return f(e)||c(e,t)||u(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{e.demos;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h1",{id:"\u5b89\u88c5"},i.a.createElement(a["AnchorLink"],{to:"#\u5b89\u88c5","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u5b89\u88c5"),i.a.createElement("h2",{id:"\u4f7f\u7528\u5305\u7ba1\u7406\u5668"},i.a.createElement(a["AnchorLink"],{to:"#\u4f7f\u7528\u5305\u7ba1\u7406\u5668","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u4f7f\u7528\u5305\u7ba1\u7406\u5668"),i.a.createElement("p",null,"\u6211\u4eec\u63a8\u8350\u60a8\u4f7f\u7528\u5305\u7ba1\u7406\u5668(",i.a.createElement(a["Link"],{to:"https://www.npmjs.com/"},"NPM"),", ",i.a.createElement(a["Link"],{to:"https://yarnpkg.com/"},"Yarn"),", ",i.a.createElement(a["Link"],{to:"https://pnpm.io/"},"PNPM"),")\u5b89\u88c5 react 3D Model\u3002"),i.a.createElement("p",null,"\u4f7f\u7528 NPM:"),i.a.createElement(o["a"],{code:"npm install react-3d-model --save",lang:"bash"}),i.a.createElement("p",null,"\u4f7f\u7528 Yarn:"),i.a.createElement(o["a"],{code:"yarn add react-3d-model",lang:"bash"}),i.a.createElement("p",null,"\u4f7f\u7528 PNPM:"),i.a.createElement(o["a"],{code:"pnpm install react-3d-model",lang:"bash"})))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},"8GlL":function(e,t,n){"use strict";var r=n("HAuM"),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},"8L3h":function(e,t,n){"use strict";e.exports=n("f/k9")},"8STE":function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("Cg3G");r({target:"WeakSet",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},"8XRh":function(e,t,n){"use strict";var r=n("rePB"),i=n("VTBJ"),a=n("ODXe"),o=n("U8pU"),s=n("q1tI"),u=n("m+aA"),l=n("c+Xe"),c=n("TSYQ"),f=n.n(c),d=n("MNnm");function h(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function p(e,t){var n={animationend:h("Animation","AnimationEnd"),transitionend:h("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var v=p(Object(d["a"])(),"undefined"!==typeof window?window:{}),m={};if(Object(d["a"])()){var g=document.createElement("div");m=g.style}var y={};function b(e){if(y[e])return y[e];var t=v[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(D["a"])((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a}return s["useEffect"]((function(){return function(){t()}}),[]),[n,t]},F=Object(d["a"])()?s["useLayoutEffect"]:s["useEffect"],U=F,B=[C,L,P,I],z=!1,H=!0;function G(e){return e===P||e===I}var V=function(e,t){var n=Object(N["a"])(R),r=Object(a["a"])(n,2),i=r[0],o=r[1],u=j(),l=Object(a["a"])(u,2),c=l[0],f=l[1];function d(){o(C,!0)}return U((function(){if(i!==R&&i!==I){var e=B.indexOf(i),n=B[e+1],r=t(i);r===z?o(n,!0):c((function(e){function t(){e.isCanceled()||o(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),s["useEffect"]((function(){return function(){f()}}),[]),[d,i]},W=function(e){var t=Object(s["useRef"])(),n=Object(s["useRef"])(e);n.current=e;var r=s["useCallback"]((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(S,r),e.removeEventListener(E,r))}function a(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(S,r),e.addEventListener(E,r),t.current=e)}return s["useEffect"]((function(){return function(){i(t.current)}}),[]),[a,i]};function q(e,t,n,o){var u=o.motionEnter,l=void 0===u||u,c=o.motionAppear,f=void 0===c||c,d=o.motionLeave,h=void 0===d||d,p=o.motionDeadline,v=o.motionLeaveImmediately,m=o.onAppearPrepare,g=o.onEnterPrepare,y=o.onLeavePrepare,b=o.onAppearStart,x=o.onEnterStart,w=o.onLeaveStart,_=o.onAppearActive,E=o.onEnterActive,S=o.onLeaveActive,k=o.onAppearEnd,R=o.onEnterEnd,I=o.onLeaveEnd,D=o.onVisibleChanged,j=Object(N["a"])(),F=Object(a["a"])(j,2),B=F[0],q=F[1],X=Object(N["a"])(M),Y=Object(a["a"])(X,2),K=Y[0],Z=Y[1],J=Object(N["a"])(null),$=Object(a["a"])(J,2),Q=$[0],ee=$[1],te=Object(s["useRef"])(!1),ne=Object(s["useRef"])(null);function re(){return n()}var ie=Object(s["useRef"])(!1);function ae(e){var t=re();if(!e||e.deadline||e.target===t){var n,r=ie.current;K===T&&r?n=null===k||void 0===k?void 0:k(t,e):K===A&&r?n=null===R||void 0===R?void 0:R(t,e):K===O&&r&&(n=null===I||void 0===I?void 0:I(t,e)),K!==M&&r&&!1!==n&&(Z(M,!0),ee(null,!0))}}var oe=W(ae),se=Object(a["a"])(oe,1),ue=se[0],le=s["useMemo"]((function(){var e,t,n;switch(K){case T:return e={},Object(r["a"])(e,C,m),Object(r["a"])(e,L,b),Object(r["a"])(e,P,_),e;case A:return t={},Object(r["a"])(t,C,g),Object(r["a"])(t,L,x),Object(r["a"])(t,P,E),t;case O:return n={},Object(r["a"])(n,C,y),Object(r["a"])(n,L,w),Object(r["a"])(n,P,S),n;default:return{}}}),[K]),ce=V(K,(function(e){if(e===C){var t=le[C];return t?t(re()):z}var n;he in le&&ee((null===(n=le[he])||void 0===n?void 0:n.call(le,re(),null))||null);return he===P&&(ue(re()),p>0&&(clearTimeout(ne.current),ne.current=setTimeout((function(){ae({deadline:!0})}),p))),H})),fe=Object(a["a"])(ce,2),de=fe[0],he=fe[1],pe=G(he);ie.current=pe,U((function(){q(t);var n,r=te.current;(te.current=!0,e)&&(!r&&t&&f&&(n=T),r&&t&&l&&(n=A),(r&&!t&&h||!r&&v&&!t&&h)&&(n=O),n&&(Z(n),de()))}),[t]),Object(s["useEffect"])((function(){(K===T&&!f||K===A&&!l||K===O&&!h)&&Z(M)}),[f,l,h]),Object(s["useEffect"])((function(){return function(){te.current=!1,clearTimeout(ne.current)}}),[]);var ve=s["useRef"](!1);Object(s["useEffect"])((function(){B&&(ve.current=!0),void 0!==B&&K===M&&((ve.current||B)&&(null===D||void 0===D||D(B)),ve.current=!0)}),[B,K]);var me=Q;return le[C]&&he===L&&(me=Object(i["a"])({transition:"none"},me)),[K,he,me,null!==B&&void 0!==B?B:t]}var X=n("1OyB"),Y=n("vuIU"),K=n("Ji7U"),Z=n("LK+K"),J=function(e){Object(K["a"])(n,e);var t=Object(Z["a"])(n);function n(){return Object(X["a"])(this,n),t.apply(this,arguments)}return Object(Y["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(s["Component"]),$=J;function Q(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(o["a"])(e)&&(t=e.transitionSupport);var c=s["forwardRef"]((function(e,t){var o=e.visible,c=void 0===o||o,d=e.removeOnLeave,h=void 0===d||d,p=e.forceRender,v=e.children,m=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),x=Object(s["useRef"])(),w=Object(s["useRef"])();function _(){try{return x.current instanceof HTMLElement?x.current:Object(u["a"])(w.current)}catch(e){return null}}var E=q(b,c,_,e),S=Object(a["a"])(E,4),T=S[0],A=S[1],O=S[2],R=S[3],P=s["useRef"](R);R&&(P.current=!0);var I,N=s["useCallback"]((function(e){x.current=e,Object(l["b"])(t,e)}),[t]),D=Object(i["a"])(Object(i["a"])({},y),{},{visible:c});if(v)if(T!==M&&n(e)){var j,F;A===C?F="prepare":G(A)?F="active":A===L&&(F="start"),I=v(Object(i["a"])(Object(i["a"])({},D),{},{className:f()(k(m,T),(j={},Object(r["a"])(j,k(m,"".concat(T,"-").concat(F)),F),Object(r["a"])(j,m,"string"===typeof m),j)),style:O}),N)}else I=R?v(Object(i["a"])({},D),N):!h&&P.current?v(Object(i["a"])(Object(i["a"])({},D),{},{className:g}),N):p?v(Object(i["a"])(Object(i["a"])({},D),{},{style:{display:"none"}}),N):null;else I=null;if(s["isValidElement"](I)&&Object(l["c"])(I)){var U=I,B=U.ref;B||(I=s["cloneElement"](I,{ref:N}))}return s["createElement"]($,{ref:w},I)}));return c.displayName="CSSMotion",c}var ee=Q(_),te=n("wx14"),ne=n("Ff2n"),re="add",ie="keep",ae="remove",oe="removed";function se(e){var t;return t=e&&"object"===Object(o["a"])(e)&&"key"in e?e:{key:e},Object(i["a"])(Object(i["a"])({},t),{},{key:String(t.key)})}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(se)}function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,o=ue(e),s=ue(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae})),n.forEach((function(t){t.key===e&&(t.status=ie)}))})),n}var ce=["component","children","onVisibleChanged","onAllRemoved"],fe=["status"],de=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){Object(K["a"])(r,e);var n=Object(Z["a"])(r);function r(){var e;Object(X["a"])(this,r);for(var t=arguments.length,a=new Array(t),o=0;o2?arguments[2]:void 0)(e,n);return n.set(e,t(s,e,n)),n}})},"9N29":function(e,t,n){"use strict";var r=n("I+eb"),i=n("1Y/n").right,a=n("pkCn"),o=n("rkAj"),s=a("reduceRight"),u=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!u},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"9R94":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=!0,i="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,a=n?"".concat(i,": ").concat(n):i;throw new Error(a)}}},"9d/t":function(e,t,n){var r=n("AO7/"),i=n("xrYK"),a=n("tiKp"),o=a("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),o))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},"9kvl":function(e,t,n){"use strict";var r=n("FfOG");n.d(t,"a",(function(){return r["b"]}));n("bCY9")},"9xmf":function(e,t,n){var r=n("EdiO");function i(e){if(Array.isArray(e))return r(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},A2ZE:function(e,t,n){var r=n("HAuM");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},A90E:function(e,t,n){var r=n("6sVZ"),i=n("V6Ve"),a=Object.prototype,o=a.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},AK2Z:function(e,t,n){},"AO7/":function(e,t,n){var r=n("tiKp"),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},AP2z:function(e,t,n){var r=n("nmnc"),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function u(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=u},AQPS:function(e,t,n){},AVoK:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("Cg3G");r({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},AqCL:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},AwgR:function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=i.has,s=i.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return o(e,a(t),n)}})},B6y2:function(e,t,n){var r=n("I+eb"),i=n("b1O7").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},B8du:function(e,t){function n(){return!1}e.exports=n},BGb9:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=o(this),n=new(u(t,a("Set")))(t);return l(e,s(n.add),n),n}})},BIHw:function(e,t,n){"use strict";var r=n("I+eb"),i=n("or9q"),a=n("ewvW"),o=n("UMSQ"),s=n("ppGB"),u=n("ZfDv");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=o(t.length),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},BTho:function(e,t,n){"use strict";var r=n("HAuM"),i=n("hh1v"),a=[].slice,o={},s=function(e,t,n){if(!(t in o)){for(var r=[],i=0;i1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),d=s(i.set);return f(n,(function(e,n){d.call(i,e,r(n,e,t))}),void 0,!0,!0),i}})},Cg3G:function(e,t,n){"use strict";var r=n("glrk"),i=n("HAuM");e.exports=function(){for(var e,t=r(this),n=i(t["delete"]),a=!0,o=0,s=arguments.length;ou&&(l=l.slice(0,u)),e?c+l:l+c)}};e.exports={start:s(!1),end:s(!0)}},DPsx:function(e,t,n){var r=n("g6v/"),i=n("0Dky"),a=n("zBJ4");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},DSRE:function(e,t,n){(function(e){var r=n("Kz5y"),i=n("B8du"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||i;e.exports=c}).call(this,n("hOG+")(e))},DTth:function(e,t,n){var r=n("0Dky"),i=n("tiKp"),a=n("xDBR"),o=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},DhMN:function(e,t,n){n("ofBz")},DrvE:function(e,t,n){"use strict";var r=n("I+eb"),i=n("HAuM"),a=n("0GbY"),o=n("8GlL"),s=n("5mdu"),u=n("ImZN"),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,f=s((function(){var n=i(t.resolve),o=[],s=0,f=1,d=!1;u(e,(function(e){var i=s++,u=!1;o.push(void 0),f++,n.call(t,e).then((function(e){u||d||(d=!0,r(e))}),(function(e){u||d||(u=!0,o[i]=e,--f||c(new(a("AggregateError"))(o,l)))}))})),--f||c(new(a("AggregateError"))(o,l))}));return f.error&&c(f.value),n.promise}})},E2jh:function(e,t,n){var r=n("2gN3"),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function a(e){return!!i&&i in e}e.exports=a},E9XD:function(e,t,n){"use strict";var r=n("I+eb"),i=n("1Y/n").left,a=n("pkCn"),o=n("rkAj"),s=a("reduce"),u=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!u},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"EDT/":function(e,t,n){var r=n("I+eb"),i=n("p5mE"),a=n("0GbY");r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"===typeof arguments[0]?a("Symbol")["for"](arguments[0]):i.apply(null,arguments).get("symbol",a("Symbol"))}})},ENF9:function(e,t,n){"use strict";var r,i=n("2oRo"),a=n("4syw"),o=n("8YOa"),s=n("bWFh"),u=n("rKzb"),l=n("hh1v"),c=n("afO8").enforce,f=n("f5p1"),d=!i.ActiveXObject&&"ActiveXObject"in i,h=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=e.exports=s("WeakMap",p,u);if(f&&d){r=u.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var m=v.prototype,g=m["delete"],y=m.has,b=m.get,x=m.set;a(m,{delete:function(e){if(l(e)&&!h(e)){var t=c(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(l(e)&&!h(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(l(e)&&!h(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(l(e)&&!h(e)){var n=c(this);n.frozen||(n.frozen=new r),y.call(this,e)?x.call(this,e,t):n.frozen.set(e,t)}else x.call(this,e,t);return this}})}},EUja:function(e,t,n){"use strict";var r=n("ppGB"),i=n("HYAF");e.exports="".repeat||function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},EdiO:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1||"".split(/.?/).length?function(e,n){var r=String(o(this)),a=void 0===n?v:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,a);var s,u,l,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,d+"g");while(s=f.call(m,r)){if(u=m.lastIndex,u>p&&(c.push(r.slice(p,s.index)),s.length>1&&s.index=a))break;m.lastIndex===s.index&&m.lastIndex++}return p===r.length?!l&&m.test("")||c.push(""):c.push(r.slice(p)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=o(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var f=a(e),d=String(this),h=s(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),b=new h(m?f:"^(?:"+f.source+")",y),x=void 0===i?v:i>>>0;if(0===x)return[];if(0===d.length)return null===c(b,d)?[d]:[];var w=0,_=0,E=[];while(_{var t=e.demos,n=t["docs-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(o["default"],t["docs-demo"].previewerProps,i.a.createElement(n,null)))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},F4QJ:function(e,t,n){"use strict";function r(){var e=a(n("q1tI"));return r=function(){return e},e}function i(){var e=n("dEAq");return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1?arguments[1]:void 0)}},FDzp:function(e,t,n){var r=n("dOgj");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},FMNM:function(e,t,n){var r=n("xrYK"),i=n("kmMV");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},FZtP:function(e,t,n){var r=n("2oRo"),i=n("/byt"),a=n("F8JR"),o=n("kRJp");for(var s in i){var u=r[s],l=u&&u.prototype;if(l&&l.forEach!==a)try{o(l,"forEach",a)}catch(c){l.forEach=a}}},Ff2n:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("zLVn");function i(e,t){if(null==e)return{};var n,i,a=Object(r["a"])(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},FfOG:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n("YS25"),i={basename:"/"};window.routerBase&&(i.basename=window.routerBase);var a=Object({NODE_ENV:"production"}).__IS_SERVER?null:Object(r["b"])(i),o=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(a=Object(r["b"])(i)),a}},"G+Rx":function(e,t,n){var r=n("0GbY");e.exports=r("document","documentElement")},GC2F:function(e,t,n){var r=n("+M1K");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},GXvd:function(e,t,n){var r=n("dG/n");r("species")},GarU:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},GoyQ:function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},Gytx:function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u=f.reach)break;var S=_.value;if(t.length>e.length)return;if(!(S instanceof i)){var k,M=1;if(y){if(k=a(w,E,e,g),!k||k.index>=e.length)break;var T=k.index,A=k.index+k[0].length,O=E;O+=_.value.length;while(T>=O)_=_.next,O+=_.value.length;if(O-=_.value.length,E=O,_.value instanceof i)continue;for(var R=_;R!==t.tail&&(Of.reach&&(f.reach=I);var N=_.prev;L&&(N=u(t,N,L),E+=L.length),l(t,N,M);var D=new i(d,m?r.tokenize(C,m):C,b,C);if(_=u(t,N,D),P&&u(t,_,P),M>1){var j={cause:d+","+p,reach:I};o(e,t,n,_.prev,E,j),f&&j.reach>f.reach&&(f.reach=j.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function l(e,t,n){for(var r=t.next,i=0;i"+a.content+""},r}(),o=a;a["default"]=a,o.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},o.languages.markup["tag"].inside["attr-value"].inside["entity"]=o.languages.markup["entity"],o.languages.markup["doctype"].inside["internal-subset"].inside=o.languages.markup,o.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(o.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:o.languages[t]},n["cdata"]=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:o.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},o.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(o.languages.markup.tag,"addAttribute",{value:function(e,t){o.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:o.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),o.languages.html=o.languages.markup,o.languages.mathml=o.languages.markup,o.languages.svg=o.languages.markup,o.languages.xml=o.languages.extend("markup",{}),o.languages.ssml=o.languages.xml,o.languages.atom=o.languages.xml,o.languages.rss=o.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},o.languages.c=o.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),o.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),o.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},o.languages.c["string"]],char:o.languages.c["char"],comment:o.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:o.languages.c}}}}),o.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete o.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(o),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(o),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css["atrule"].inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(o),o.languages.javascript=o.languages.extend("clike",{"class-name":[o.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),o.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,o.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:o.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:o.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:o.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:o.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:o.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),o.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:o.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),o.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),o.languages.markup&&(o.languages.markup.tag.addInlined("script","javascript"),o.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),o.languages.js=o.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(o),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(o),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){function t(e){if(e&&"string"!==typeof e)for(var n=0,r=e.length;n",quot:'"'},u=String.fromCodePoint||String.fromCharCode;function l(e){var t=e.replace(o,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if(t=t.toLowerCase(),"#"===t[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e})),t}e.languages.md=e.languages.markdown}(o),o.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:o.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},o.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=n;u=0&&h(l,"variable-input")}}}}function c(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside["interpolation"],i=r.inside["interpolation-punctuation"],a=r.pattern.source;function o(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function u(t,n,r){var i={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function l(t){var n={};n["interpolation-punctuation"]=i;var a=e.tokenize(t,n);if(3===a.length){var o=[1,1];o.push.apply(o,u(a[1],e.languages.javascript,"javascript")),a.splice.apply(a,o)}return new e.Token("interpolation",a,r.alias,t)}function c(t,n,r){var i=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),o=0,c={},f=i.map((function(e){if("string"===typeof e)return e;var n,i=e.content;while(-1!==t.indexOf(n=s(o++,r)));return c[n]=i,n})).join(""),d=u(f,n,r),h=Object.keys(c);function p(e){for(var t=0;t=h.length)return;var n=e[t];if("string"===typeof n||"string"===typeof n.content){var r=h[o],i="string"===typeof n?n:n.content,a=i.indexOf(r);if(-1!==a){++o;var s=i.substring(0,a),u=l(c[r]),f=i.substring(a+r.length),d=[];if(s&&d.push(s),d.push(u),f){var v=[f];p(v),d.push.apply(d,v)}"string"===typeof n?(e.splice.apply(e,[t,1].concat(d)),t+=d.length-1):n.content=d}}else{var m=n.content;Array.isArray(m)?p(m):p([m])}}}return o=0,p(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"===typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){function n(t){for(var r=0,i=t.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript["parameter"],delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(o),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function"].source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript["keyword"].unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function a(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside["comment"]=t["comment"],e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function e(t){return t?"string"===typeof t?t:"string"===typeof t.content?t.content:t.content.map(e).join(""):""},s=function t(n){for(var r=[],i=0;i0&&r[r.length-1].tagName===o(a.content[0].content[1])&&r.pop():"/>"===a.content[a.content.length-1].content||r.push({tagName:o(a.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===a.type&&"{"===a.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?r[r.length-1].openedBraces--:s=!0),(s||"string"===typeof a)&&r.length>0&&0===r[r.length-1].openedBraces){var u=o(a);i0&&("string"===typeof n[i-1]||"plain-text"===n[i-1].type)&&(u=o(n[i-1])+u,n.splice(i-1,1),i--),n[i]=new e.Token("plain-text",u,null,u)}a.content&&"string"!==typeof a.content&&t(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(o),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(o),o.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},o.languages.go=o.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),o.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete o.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"===typeof a&&!a(e))return e;var i,s=o.length;while(-1!==n.code.indexOf(i=t(r,s)))++s;return o[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,a=Object.keys(n.tokenStack);o(n.tokens)}function o(s){for(var u=0;u=a.length)break;var l=s[u];if("string"===typeof l||l.content&&"string"===typeof l.content){var c=a[i],f=n.tokenStack[c],d="string"===typeof l?l:l.content,h=t(r,c),p=d.indexOf(h);if(p>-1){++i;var v=d.substring(0,p),m=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),g=d.substring(p+h.length),y=[];v&&y.push.apply(y,o([v])),y.push(m),g&&y.push.apply(y,o([g])),"string"===typeof l?s.splice.apply(s,[u,1].concat(y)):l.content=y}}else l.content&&o(l.content)}return s}}}})}(o),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(t,"handlebars",n)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(o),o.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},o.languages.webmanifest=o.languages.json,o.languages.less=o.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),o.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),o.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},o.languages.objectivec=o.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete o.languages.objectivec["class-name"],o.languages.objc=o.languages.objectivec,o.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},o.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},o.languages.python["string-interpolation"].inside["interpolation"].inside.rest=o.languages.python,o.languages.py=o.languages.python,o.languages.reason=o.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),o.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete o.languages.reason["function"],function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(o),o.languages.scss=o.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),o.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),o.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),o.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),o.languages.scss["atrule"].inside.rest=o.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r["interpolation"]={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r["func"]={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(o),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx["parameter"],delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(o),o.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var s=o,u={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},l=u,c={Prism:s,theme:l};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t0&&e[n-1]===t?e:e.concat(t)},m=function(e){var t=[[]],n=[e],r=[0],i=[e.length],a=0,o=0,s=[],u=[s];while(o>-1){while((a=r[o]++)0?c:["plain"],l=d):(c=v(c,d.type),d.alias&&(c=v(c,d.alias)),l=d.content),"string"===typeof l){var m=l.split(h),g=m.length;s.push({types:c,content:m[0]});for(var y=1;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["PLY-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["PLY-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},Hd5f:function(e,t,n){var r=n("0Dky"),i=n("tiKp"),a=n("LQDL"),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},HiXI:function(e,t,n){"use strict";var r=n("I+eb"),i=n("WKiH").end,a=n("yNLB"),o=a("trimEnd"),s=o?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,forced:o},{trimEnd:s,trimRight:s})},HsHA:function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},Hvzi:function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},"I+eb":function(e,t,n){var r=n("2oRo"),i=n("Bs8V").f,a=n("kRJp"),o=n("busE"),s=n("zk60"),u=n("6JNq"),l=n("lMq5");e.exports=function(e,t){var n,c,f,d,h,p,v=e.target,m=e.global,g=e.stat;if(c=m?r:g?r[v]||s(v,{}):(r[v]||{}).prototype,c)for(f in t){if(h=t[f],e.noTargetGet?(p=i(c,f),d=p&&p.value):d=c[f],n=l(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&a(h,"sham",!0),o(c,f,h,e)}}},I1Gw:function(e,t,n){var r=n("dG/n");r("split")},I8vh:function(e,t,n){var r=n("ppGB"),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},I9xj:function(e,t,n){var r=n("1E5z");r(Math,"Math",!0)},"IL/d":function(e,t,n){"use strict";var r=n("iqeF"),i=n("67WC").exportTypedArrayStaticMethod,a=n("oHi+");i("from",a,r)},IZzc:function(e,t,n){"use strict";var r=n("67WC"),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=[].sort;a("sort",(function(e){return o.call(i(this),e)}))},ImZN:function(e,t,n){var r=n("glrk"),i=n("6VoE"),a=n("UMSQ"),o=n("A2ZE"),s=n("NaFW"),u=n("m92n"),l=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,f){var d,h,p,v,m,g,y,b=o(t,n,c?2:1);if(f)d=e;else{if(h=s(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(i(h)){for(p=0,v=a(e.length);v>p;p++)if(m=c?b(r(y=e[p])[0],y[1]):b(e[p]),m&&m instanceof l)return m;return new l(!1)}d=h.call(e)}g=d.next;while(!(y=g.call(d)).done)if(m=u(d,b,y.value,c),"object"==typeof m&&m&&m instanceof l)return m;return new l(!1)};c.stop=function(e){return new l(!0,e)}},IyRk:function(e,t){(function(t){e.exports=function(){var e={873:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"===typeof window&&(t=window)}e.exports=t}},n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={exports:{}},a=!0;try{e[t](i,i.exports,r),a=!1}finally{a&&delete n[t]}return i.exports}return r.ab=t+"/",r(873)}()}).call(this,"/")},JBy8:function(e,t,n){var r=n("yoRg"),i=n("eDl+"),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},JHRd:function(e,t,n){var r=n("Kz5y"),i=r.Uint8Array;e.exports=i},JHgL:function(e,t,n){var r=n("QkVE");function i(e){return r(this,e).get(e)}e.exports=i},JSQU:function(e,t,n){var r=n("YESw"),i="__lodash_hash_undefined__";function a(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=a},JTJg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("WjRb"),a=n("HYAF"),o=n("qxPZ");r({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},JTzB:function(e,t,n){var r=n("NykK"),i=n("ExA7"),a="[object Arguments]";function o(e){return i(e)&&r(e)==a}e.exports=o},JX7q:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},JevA:function(e,t,n){var r=n("I+eb"),i=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},JfAA:function(e,t,n){"use strict";var r=n("busE"),i=n("glrk"),a=n("0Dky"),o=n("rW0t"),s="toString",u=RegExp.prototype,l=u[s],c=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=s;(c||f)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in u)?o.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},JhMR:function(e,t,n){"use strict";e.exports=n("KqkS")},Ji7U:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("s4An");function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r["a"])(e,t)}},JiZb:function(e,t,n){"use strict";var r=n("0GbY"),i=n("m/L8"),a=n("tiKp"),o=n("g6v/"),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},Junv:function(e,t,n){"use strict";var r=n("I+eb"),i=n("6LWA"),a=[].reverse,o=[1,2];r({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a.call(this)}})},JwUS:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("HAuM"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n){r?(r=!1,i=n):i=e(i,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return i}})},"K+nK":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},KMkd:function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("a3WO");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var o=n("BsWD");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){return i(e)||a(e)||Object(o["a"])(e)||s()}},"KYY/":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["STL-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["STL-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},KcUY:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=u(n("q1tI")),a=o(n("nLCz"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(i,o,u):i[o]=e[o]}return i["default"]=e,n&&n.set(e,i),i}function l(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function c(e,t){return v(e)||p(e,t)||d(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o-=1){var s=i[o],u=[s].concat(s.children).filter(Boolean),l=u.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(l){a=l.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[a])||[]},a=(0,i.useState)(r(e,t,n)),o=c(a,2),s=o[0],u=o[1];return(0,i.useLayoutEffect)((function(){u(r(e,t,n))}),[e.navs,e.menus,t,n]),s},_=function(e,t,n){var r=function(){for(var t=arguments.length,r=new Array(t),i=0;i=_},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0A(o,n))void 0!==u&&0>A(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>A(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],R=[],C=1,L=null,P=3,I=!1,N=!1,D=!1;function j(e){for(var t=M(R);null!==t;){if(null===t.callback)T(R);else{if(!(t.startTime<=e))break;T(R),t.sortIndex=t.expirationTime,k(O,t)}t=M(R)}}function F(e){if(D=!1,j(e),!N)if(null!==M(O))N=!0,r(U);else{var t=M(R);null!==t&&i(F,t.startTime-e)}}function U(e,n){N=!1,D&&(D=!1,a()),I=!0;var r=P;try{for(j(n),L=M(O);null!==L&&(!(L.expirationTime>n)||e&&!o());){var s=L.callback;if(null!==s){L.callback=null,P=L.priorityLevel;var u=s(L.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?L.callback=u:L===M(O)&&T(O),j(n)}else T(O);L=M(O)}if(null!==L)var l=!0;else{var c=M(R);null!==c&&i(F,c.startTime-n),l=!1}return l}finally{L=null,P=r,I=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||I||(N=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return M(O)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();if("object"===typeof o&&null!==o){var u=o.delay;u="number"===typeof u&&0s?(e.sortIndex=u,k(R,e),null===M(O)&&e===M(R)&&(D?a():D=!0,i(F,u-s))):(e.sortIndex=o,k(O,e),N||I||(N=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=M(O);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime4)return e;for(n=[],r=0;r1&&"0"==i.charAt(0)&&(a=P.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?N:8==a?I:D).test(i))return e;o=parseInt(i,a)}n.push(o)}for(r=0;r=k(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),r=0;r6)return;r=0;while(d()){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!L.test(d()))return;while(L.test(d())){if(a=parseInt(d(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[l]=256*u[l]+i,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;u[l++]=t}else{if(null!==c)return;f++,l++,c=l}}if(null!==c){o=l-c,l=7;while(0!=l&&o>0)s=u[l],u[l--]=u[c+o-1],u[c+--o]=s}else if(8!=l)return;return u},V=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t},W=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=V(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},X=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=d({},X,{"#":1,"?":1,"{":1,"}":1}),K=d({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var n=p(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},$=function(e){return f(J,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&R.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},ue={},le={},ce={},fe={},de={},he={},pe={},ve={},me={},ge={},ye={},be={},xe={},we={},_e={},Ee={},Se={},ke={},Me={},Te=function(e,t,n,i){var a,o,s,u,l=n||oe,c=0,d="",p=!1,v=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(B,""),a=h(t);while(c<=a.length){switch(o=a[c],l){case oe:if(!o||!R.test(o)){if(n)return T;l=ue;continue}d+=o.toLowerCase(),l=se;break;case se:if(o&&(C.test(o)||"+"==o||"-"==o||"."==o))d+=o.toLowerCase();else{if(":"!=o){if(n)return T;d="",l=ue,c=0;continue}if(n&&($(e)!=f(J,d)||"file"==d&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void($(e)&&J[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?l=be:$(e)&&i&&i.scheme==e.scheme?l=le:$(e)?l=he:"/"==a[c+1]?(l=ce,c++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Se)}break;case ue:if(!i||i.cannotBeABaseURL&&"#"!=o)return T;if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=Me;break}l="file"==i.scheme?be:fe;continue;case le:if("/"!=o||"/"!=a[c+1]){l=fe;continue}l=pe,c++;break;case ce:if("/"==o){l=ve;break}l=Ee;continue;case fe:if(e.scheme=i.scheme,o==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==o||"\\"==o&&$(e))l=de;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=ke;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=Ee;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=Me}break;case de:if(!$(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=Ee;continue}l=ve}else l=pe;break;case he:if(l=pe,"/"!=o||"/"!=d.charAt(c+1))continue;c++;break;case pe:if("/"!=o&&"\\"!=o){l=ve;continue}break;case ve:if("@"==o){p&&(d="%40"+d),p=!0,s=h(d);for(var g=0;g65535)return O;e.port=$(e)&&x===J[e.scheme]?null:x,d=""}if(n)return;l=_e;continue}return O}d+=o;break;case be:if(e.scheme="file","/"==o||"\\"==o)l=xe;else{if(!i||"file"!=i.scheme){l=Ee;continue}if(o==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",l=ke;else{if("#"!=o){ne(a.slice(c).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),l=Ee;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=Me}}break;case xe:if("/"==o||"\\"==o){l=we;break}i&&"file"==i.scheme&&!ne(a.slice(c).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=Ee;continue;case we:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&te(d))l=Ee;else if(""==d){if(e.host="",n)return;l=_e}else{if(u=z(e,d),u)return u;if("localhost"==e.host&&(e.host=""),n)return;d="",l=_e}continue}d+=o;break;case _e:if($(e)){if(l=Ee,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(l=Ee,"/"!=o))continue}else e.fragment="",l=Me;else e.query="",l=ke;break;case Ee:if(o==r||"/"==o||"\\"==o&&$(e)||!n&&("?"==o||"#"==o)){if(ae(d)?(re(e),"/"==o||"\\"==o&&$(e)||e.path.push("")):ie(d)?"/"==o||"\\"==o&&$(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(o==r||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",l=ke):"#"==o&&(e.fragment="",l=Me)}else d+=Z(o,Y);break;case Se:"?"==o?(e.query="",l=ke):"#"==o?(e.fragment="",l=Me):o!=r&&(e.path[0]+=Z(o,q));break;case ke:n||"#"!=o?o!=r&&("'"==o&&$(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,q)):(e.fragment="",l=Me);break;case Me:o!=r&&(e.fragment+=Z(o,X));break}c++}},Ae=function(e){var t,n,r=c(this,Ae,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=_(r,{type:"URL"});if(void 0!==i)if(i instanceof Ae)t=E(i);else if(n=Te(t={},String(i)),n)throw TypeError(n);if(n=Te(s,o,null,t),n)throw TypeError(n);var u=s.searchParams=new x,l=w(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(u)||null},a||(r.href=Re.call(r),r.origin=Ce.call(r),r.protocol=Le.call(r),r.username=Pe.call(r),r.password=Ie.call(r),r.host=Ne.call(r),r.hostname=De.call(r),r.port=je.call(r),r.pathname=Fe.call(r),r.search=Ue.call(r),r.searchParams=Be.call(r),r.hash=ze.call(r))},Oe=Ae.prototype,Re=function(){var e=E(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",Q(e)&&(l+=n+(r?":"+r:"")+"@"),l+=W(i),null!==a&&(l+=":"+a)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},Ce=function(){var e=E(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&$(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Le=function(){return E(this).scheme+":"},Pe=function(){return E(this).username},Ie=function(){return E(this).password},Ne=function(){var e=E(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},De=function(){var e=E(this).host;return null===e?"":W(e)},je=function(){var e=E(this).port;return null===e?"":String(e)},Fe=function(){var e=E(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=E(this).query;return e?"?"+e:""},Be=function(){return E(this).searchParams},ze=function(){var e=E(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&u(Oe,{href:He(Re,(function(e){var t=E(this),n=String(e),r=Te(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:He(Ce),protocol:He(Le,(function(e){var t=E(this);Te(t,String(e)+":",oe)})),username:He(Pe,(function(e){var t=E(this),n=h(String(e));if(!ee(t)){t.username="";for(var r=0;r1?arguments[1]:void 0,t.length)),r=String(e);return c?c.call(t,r,n):t.slice(n,n+r.length)===r}})},LPSS:function(e,t,n){var r,i,a,o=n("2oRo"),s=n("0Dky"),u=n("xrYK"),l=n("A2ZE"),c=n("G+Rx"),f=n("zBJ4"),d=n("HNyW"),h=o.location,p=o.setImmediate,v=o.clearImmediate,m=o.process,g=o.MessageChannel,y=o.Dispatch,b=0,x={},w="onreadystatechange",_=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},E=function(e){return function(){_(e)}},S=function(e){_(e.data)},k=function(e){o.postMessage(e+"",h.protocol+"//"+h.host)};p&&v||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return x[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete x[e]},"process"==u(m)?r=function(e){m.nextTick(E(e))}:y&&y.now?r=function(e){y.now(E(e))}:g&&!d?(i=new g,a=i.port2,i.port1.onmessage=S,r=l(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(k)||"file:"===h.protocol?r=w in f("script")?function(e){c.appendChild(f("script"))[w]=function(){c.removeChild(this),_(e)}}:function(e){setTimeout(E(e),0)}:(r=k,o.addEventListener("message",S,!1))),e.exports={set:p,clear:v}},LQDL:function(e,t,n){var r,i,a=n("2oRo"),o=n("NC/Y"),s=a.process,u=s&&s.versions,l=u&&u.v8;l?(r=l.split("."),i=r[0]+r[1]):o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},LXxW:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=0,a=[];while(++ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}var B=Object(s["createContext"])(null),z=[],H=[],G=!1;function V(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function W(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var i=V(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function q(e){return e&&e.__esModule?e["default"]:e}function X(e,t){return Object(s["createElement"])(q(e),t)}function Y(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:X,webpack:null,modules:null},t),r=null;function i(){if(!r){var t=new K(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&z.push(i),!G&&"undefined"!==typeof window&&"function"===typeof n.webpack){var a=n.webpack();H.push((function(e){var t,n=U(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return i()}}catch(o){n.e(o)}finally{n.f()}}))}var o=function(e,t){i();var a=Object(s["useContext"])(B),o=Object(E["useSubscription"])(r);return Object(s["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),a&&Array.isArray(n.modules)&&n.modules.forEach((function(e){a(e)})),o.loading||o.error?Object(s["createElement"])(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?n.render(o.loaded,e):null},u=Object(s["forwardRef"])(o);return u.preload=function(){return i()},u.displayName="LoadableComponent",u}var K=function(){function e(t,n){O(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return C(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=k(k({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return k(k({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function Z(e){return Y(V,e)}function J(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return Y(W,e)}function $(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return $(e,t)}))}function Q(e){var t=Z,n={loading:function(e){e.error,e.isLoading;return Object(s["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==M(e))throw new Error("Unexpect arguments ".concat(e));n=k(k({},n),e)}return t(n)}function ee(e,t){if(!e)throw new Error(t)}Z.Map=J,Z.preloadAll=function(){return new Promise((function(e,t){$(z).then(e,t)}))},Z.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return G=!0,t()};$(H,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=Z.preloadReady);var te,ne=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function re(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function ie(e){return!!e&&"object"===M(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(te||(te={}));var ae=function(){function e(t){O(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return C(e,[{key:"register",value:function(e){var t=this;ee(!!e.apply,"register failed, plugin.apply must supplied"),ee(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){ee(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=P(t),r=n[0],i=n.slice(1),a=this.hooks[r]||[];return i.length&&(a=a.map((function(e){try{var t,n=e,r=U(i);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=n[a]}}catch(o){r.e(o)}finally{r.f()}return n}catch(s){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,i=e.initialValue,a=e.args,o=e.async,s=this.getHooks(t)||[];switch(a&&ee("object"===M(a),"applyPlugins failed, args must be plain object."),n){case te.modify:return o?s.reduce(function(){var e=A(Object(r["a"])().mark((function e(n,i){var o;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(ee("function"===typeof i||"object"===M(i)||ie(i),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!ie(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof i){e.next=16;break}if(o=i(n,a),!ie(o)){e.next=13;break}return e.next=10,o;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",o);case 14:e.next=21;break;case 16:if(!ie(i)){e.next=20;break}return e.next=19,i;case 19:i=e.sent;case 20:return e.abrupt("return",k(k({},n),i));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ie(i)?i:Promise.resolve(i)):s.reduce((function(e,n){return ee("function"===typeof n||"object"===M(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,a):k(k({},e),n)}),i);case te.event:return s.forEach((function(e){ee("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(a)}));case te.compose:return function(){return re({fns:s.concat(i),args:a})()}}}}]),e}()},Lw8S:function(e,t){function n(e,t){for(var n=0;nu)i.f(e,n=r[u++],t[n]);return e}},"NC/Y":function(e,t,n){var r=n("0GbY");e.exports=r("navigator","userAgent")||""},NKxu:function(e,t,n){var r=n("lSCD"),i=n("E2jh"),a=n("GoyQ"),o=n("3Fdi"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,h=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(e){if(!a(e)||i(e))return!1;var t=r(e)?h:u;return t.test(o(e))}e.exports=p},NV22:function(e,t,n){var r=n("I+eb"),i=n("glrk"),a=n("4oU/"),o=n("ntOU"),s=n("afO8"),u="Seeded Random",l=u+" Generator",c=s.set,f=s.getterFor(l),d='Math.seededPRNG() argument should have a "seed" field with a finite value.',h=o((function(e){c(this,{type:l,seed:e%2147483647})}),u,(function(){var e=f(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return{value:(1073741823&t)/1073741823,done:!1}}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=i(e).seed;if(!a(t))throw TypeError(d);return new h(t)}})},NaFW:function(e,t,n){var r=n("9d/t"),i=n("P4y1"),a=n("tiKp"),o=a("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},Npjl:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},NqR8:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{isubh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},NykK:function(e,t,n){var r=n("nmnc"),i=n("AP2z"),a=n("KfNM"),o="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function l(e){return null==e?void 0===e?s:o:u&&u in Object(e)?i(e):a(e)}e.exports=l},O741:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},ODXe:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done);o=!0)if(a.push(r.value),t&&a.length===t)break}catch(u){s=!0,i=u}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw i}}return a}}n.d(t,"a",(function(){return s}));var a=n("BsWD");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||Object(a["a"])(e,t)||o()}},"Of+w":function(e,t,n){var r=n("Cwc5"),i=n("Kz5y"),a=r(i,"WeakMap");e.exports=a},P4y1:function(e,t){e.exports={}},P940:function(e,t,n){"use strict";e.exports=function(){var e=arguments.length,t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}},PF2M:function(e,t,n){"use strict";var r=n("67WC"),i=n("UMSQ"),a=n("GC2F"),o=n("ewvW"),s=n("0Dky"),u=r.aTypedArray,l=r.exportTypedArrayMethod,c=s((function(){new Int8Array(1).set({})}));l("set",(function(e){u(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=o(e),s=i(r.length),l=0;if(s+t>n)throw RangeError("Wrong length");while(l=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},Q7Pz:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("Sssf"),s=n("i4U9"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return u(o(a(this)),(function(t,n){if(s(n,e))return u.stop()}),void 0,!0,!0).stopped}})},Q9SF:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},QFcT:function(e,t,n){var r=n("I+eb"),i=Math.hypot,a=Math.abs,o=Math.sqrt,s=!!i&&i(1/0,NaN)!==1/0;r({target:"Math",stat:!0,forced:s},{hypot:function(e,t){var n,r,i=0,s=0,u=arguments.length,l=0;while(s0?(r=n/l,i+=r*r):i+=n;return l===1/0?1/0:l*o(i)}})},QGkA:function(e,t,n){var r=n("RNIs");r("flat")},QGke:function(e,t,n){var r=n("z01/")["default"];function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(O){c=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),o=new M(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return A()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=f;var h={};function p(){}function v(){}function m(){}var g={};c(g,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==n&&a.call(b,s)&&(g=b);var x=m.prototype=p.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,s,u){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},QIpd:function(e,t,n){var r=n("xrYK");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},QiU6:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["Collada-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-collada"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-collada","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d Collada"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["Collada-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},QkVE:function(e,t,n){var r=n("EpBk");function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},Qo9l:function(e,t,n){var r=n("2oRo");e.exports=r},QoRX:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3);return!u(n,(function(e,n){if(!r(n,e,t))return u.stop()}),void 0,!0,!0).stopped}})},R5yR:function(e,t,n){var r=n("9xmf"),i=n("rhT+"),a=n("mGKP"),o=n("XWE6");function s(e){return r(e)||i(e)||a(e)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},RK3t:function(e,t,n){var r=n("0Dky"),i=n("xrYK"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},RN6c:function(e,t,n){var r=n("2oRo");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},RNIs:function(e,t,n){var r=n("tiKp"),i=n("fHMY"),a=n("m/L8"),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},ROdP:function(e,t,n){var r=n("hh1v"),i=n("xrYK"),a=n("tiKp"),o=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},RZMt:function(e,t,n){},Rm1S:function(e,t,n){"use strict";var r=n("14Sl"),i=n("glrk"),a=n("UMSQ"),o=n("HYAF"),s=n("iqWW"),u=n("FMNM");r("match",1,(function(e,t,n){return[function(t){var n=o(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),l=String(this);if(!o.global)return u(o,l);var c=o.unicode;o.lastIndex=0;var f,d=[],h=0;while(null!==(f=u(o,l))){var p=String(f[0]);d[h]=p,""===p&&(o.lastIndex=s(l,a(o.lastIndex),c)),h++}return 0===h?null:d}]}))},SEBh:function(e,t,n){var r=n("glrk"),i=n("HAuM"),a=n("tiKp"),o=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},SL6q:function(e,t,n){var r=n("I+eb"),i=n("voyM"),a=n("vo4V");r({target:"Math",stat:!0},{fscale:function(e,t,n,r,o){return a(i(e,t,n,r,o))}})},STAE:function(e,t,n){var r=n("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},SYor:function(e,t,n){"use strict";var r=n("I+eb"),i=n("WKiH").trim,a=n("yNLB");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return i(this)}})},SfRM:function(e,t,n){var r=n("YESw");function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},Si40:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=o(this),n=new(u(t,a("Set")))(t),r=s(n["delete"]),i=s(n.add);return l(e,(function(e){r.call(n,e)||i.call(n,e)})),n}})},SpvK:function(e,t,n){var r=n("dOgj");r("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},Sssf:function(e,t,n){var r=n("xDBR"),i=n("mh/w");e.exports=r?i:function(e){return Map.prototype.entries.call(e)}},SuFq:function(e,t,n){var r=n("I+eb"),i=n("0GbY"),a=n("HAuM"),o=n("glrk"),s=n("hh1v"),u=n("fHMY"),l=n("BTho"),c=n("0Dky"),f=i("Reflect","construct"),d=c((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!c((function(){f((function(){}))})),p=d||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(h&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var i=n.prototype,c=u(s(i)?i:Object.prototype),p=Function.apply.call(e,c,t);return s(p)?p:c}})},T63A:function(e,t,n){var r=n("I+eb"),i=n("b1O7").entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},TJ79:function(e,t,n){var r=n("I+eb"),i=n("P940");r({target:"WeakMap",stat:!0},{of:i})},TNol:function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n("q1tI"),i=n("MNnm"),a=Object(i["a"])()?r["useLayoutEffect"]:r["useEffect"];t["a"]=a;var o=function(e,t){var n=r["useRef"](!0);a((function(){if(!n.current)return e()}),t),a((function(){return n.current=!1,function(){n.current=!0}}),[])}},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},TSYQ:function(e,t,n){var r,i;(function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t-1,n&&(t=t.replace(/y/g,"")));var s=o(_?new y(e,t):y(e,t),r?this:b,k);return E&&n&&p(s,{sticky:n}),s},M=function(e){e in k||s(k,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},T=u(y),A=0;while(T.length>A)M(T[A++]);b.constructor=k,k.prototype=b,d(i,"RegExp",k)}v("RegExp")},TWQb:function(e,t,n){var r=n("/GqU"),i=n("UMSQ"),a=n("I8vh"),o=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),c=a(o,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},TZCg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("DMt2").start,a=n("mgyK");r({target:"String",proto:!0,forced:a},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},TeQF:function(e,t,n){"use strict";var r=n("I+eb"),i=n("tycR").filter,a=n("Hd5f"),o=n("rkAj"),s=a("filter"),u=o("filter");r({target:"Array",proto:!0,forced:!s||!u},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(e,t,n){"use strict";var r=n("A2ZE"),i=n("ewvW"),a=n("m92n"),o=n("6VoE"),s=n("UMSQ"),u=n("hBjN"),l=n("NaFW");e.exports=function(e){var t,n,c,f,d,h,p=i(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=l(p),x=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&o(b))for(t=s(p.length),n=new v(t);t>x;x++)h=y?g(p[x],x):p[x],u(n,x,h);else for(f=b.call(p),d=f.next,n=new v;!(c=d.call(f)).done;x++)h=y?a(f,g,[c.value,x],!0):c.value,u(n,x,h);return n.length=x,n}},Thag:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("Sssf"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop()}),void 0,!0,!0).stopped}})},ToJy:function(e,t,n){"use strict";var r=n("I+eb"),i=n("HAuM"),a=n("ewvW"),o=n("0Dky"),s=n("pkCn"),u=[],l=u.sort,c=o((function(){u.sort(void 0)})),f=o((function(){u.sort(null)})),d=s("sort"),h=c||!f||!d;r({target:"Array",proto:!0,forced:h},{sort:function(e){return void 0===e?l.call(a(this)):l.call(a(this),i(e))}})},Tskq:function(e,t,n){"use strict";var r=n("bWFh"),i=n("ZWaQ");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},Ty5D:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return z})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return P})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return q})),n.d(t,"l",(function(){return X})),n.d(t,"m",(function(){return Y})),n.d(t,"n",(function(){return G}));var r=n("dI71"),i=n("q1tI"),a=n.n(i),o=n("YS25"),s=n("tEiQ"),u=n("9R94"),l=n("wx14"),c=n("vRGJ"),f=n.n(c),d=(n("TOwV"),n("zLVn")),h=n("2mql"),p=n.n(h),v=function(e){var t=Object(s["a"])();return t.displayName=e,t},m=v("Router-History"),g=function(e){var t=Object(s["a"])();return t.displayName=e,t},y=g("Router"),b=function(e){function t(t){var n;return n=e.call(this,t)||this,n.state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r["a"])(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return a.a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.a.Component);var x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?i(r(e),9007199254740991):0}},"UNi/":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n]*>)/g,v=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var i=u(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var a=n(t,e,this,r);if(a.done)return a.value}var u=i(e),h=String(this),p="function"===typeof r;p||(r=String(r));var v=u.global;if(v){var w=u.unicode;u.lastIndex=0}var _=[];while(1){var E=c(u,h);if(null===E)break;if(_.push(E),!v)break;var S=String(E[0]);""===S&&(u.lastIndex=l(h,o(u.lastIndex),w))}for(var k="",M=0,T=0;T<_.length;T++){E=_[T];for(var A=String(E[0]),O=f(d(s(E.index),h.length),0),R=[],C=1;C=M&&(k+=h.slice(M,O)+I,M=O+A.length)}return k+h.slice(M)}];function x(e,n,r,i,o,s){var u=r+e.length,l=i.length,c=v;return void 0!==o&&(o=a(o),c=p),t.call(s,c,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=o[a.slice(1,-1)];break;default:var c=+a;if(0===c)return t;if(c>l){var f=h(c/10);return 0===f?t:f<=l?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}s=i[c-1]}return void 0===s?"":s}))}}))},Uydy:function(e,t,n){var r=n("I+eb"),i=n("HsHA"),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2,l=!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0;r({target:"Math",stat:!0,forced:l},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?o(e)+u:i(e-1+s(e-1)*s(e+1))}})},UzNg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ntOU"),a=n("HYAF"),o=n("afO8"),s=n("ZUd8"),u=s.codeAt,l=s.charAt,c="String Iterator",f=o.set,d=o.getterFor(c),h=i((function(e){f(this,{type:c,string:e,index:0})}),"String",(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=l(n,r),t.index+=e.length,{value:{codePoint:u(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new h(String(a(this)))}})},"V/vL":function(e,t,n){"use strict";n.r(t),n.d(t,"matchRoutes",(function(){return s})),n.d(t,"renderRoutes",(function(){return u}));var r=n("Ty5D"),i=n("wx14"),a=n("q1tI"),o=n.n(a);function s(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var i=e.path?Object(r["i"])(t,e):n.length?n[n.length-1].match:r["e"].computeRootMatch(t);return i&&(n.push({route:e,match:i}),e.routes&&s(e.routes,t,n)),i})),n}function u(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.a.createElement(r["g"],n,e.map((function(e,n){return o.a.createElement(r["d"],{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(i["a"])({},n,{},t,{route:e})):o.a.createElement(e.component,Object(i["a"])({},n,t,{route:e}))}})}))):null}},V6Ve:function(e,t,n){var r=n("kekF"),i=r(Object.keys,Object);e.exports=i},V93i:function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},VOz1:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("HAuM"),s=n("Sssf"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n,a){r?(r=!1,i=a):i=e(i,a,n,t)}),void 0,!0,!0),r)throw TypeError("Reduce of empty map with no initial value");return i}})},VTBJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("rePB");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},VaNO:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},Vnov:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("Sssf"),s=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(o(a(this)),(function(t,n){if(n===e)return s.stop(t)}),void 0,!0,!0).result}})},VpIT:function(e,t,n){var r=n("xDBR"),i=n("xs3f");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var r=n("0GbY"),i=n("JBy8"),a=n("dBg+"),o=n("glrk");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},"W/eh":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("6x0u"),o=n("ewvW"),s=n("wE6v"),u=n("4WOD"),l=n("Bs8V").f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=o(this),r=s(e,!0);do{if(t=l(n,r))return t.set}while(n=u(n))}})},WFqU:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("IyRk"))},WGBp:function(e,t,n){var r=n("xDBR"),i=n("mh/w");e.exports=r?i:function(e){return Set.prototype.values.call(e)}},WJkJ:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(e,t,n){var r=n("HYAF"),i=n("WJkJ"),a="["+i+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),u=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},WPzJ:function(e,t,n){var r=n("I+eb"),i=n("voyM");r({target:"Math",stat:!0},{scale:i})},WWur:function(e,t,n){"use strict";var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=void 0===n?document.body:n,i=document.createElement("textarea"),a=document.activeElement;i.value=e,i.setAttribute("readonly",""),i.style.contain="strict",i.style.position="absolute",i.style.left="-9999px",i.style.fontSize="12pt";var o=document.getSelection(),s=!1;o.rangeCount>0&&(s=o.getRangeAt(0)),r.append(i),i.select(),i.selectionStart=0,i.selectionEnd=e.length;var u=!1;try{u=document.execCommand("copy")}catch(l){}return i.remove(),s&&(o.removeAllRanges(),o.addRange(s)),a&&a.focus(),u};e.exports=r,e.exports["default"]=r},WbBG:function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},WjRb:function(e,t,n){var r=n("ROdP");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},X7LM:function(e,t,n){"use strict";var r=2147483647,i=36,a=1,o=26,s=38,u=700,l=72,c=128,f="-",d=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",v=i-a,m=Math.floor,g=String.fromCharCode,y=function(e){var t=[],n=0,r=e.length;while(n=55296&&i<=56319&&n>1,e+=m(e/t);e>v*o>>1;r+=i)e=m(e/v);return m(r+(v+1)*e/(e+s))},w=function(e){var t=[];e=y(e);var n,s,u=e.length,d=c,h=0,v=l;for(n=0;n=d&&sm((r-h)/S))throw RangeError(p);for(h+=(E-d)*S,d=E,n=0;nr)throw RangeError(p);if(s==d){for(var k=h,M=i;;M+=i){var T=M<=v?a:M>=v+o?o:M-v;if(k1?arguments[1]:void 0),t}})},Xi7e:function(e,t,n){var r=n("KMkd"),i=n("adU4"),a=n("tMB7"),o=n("+6XX"),s=n("Z8oC");function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=u(e,"#"),i=r(n,2),a=i[0],o=i[1];return Object.assign({url:a.split("?")[0]||"",query:w(b(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:v(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=g(e.url).split("?")[0]||"",i=t.extract(e.url),a=t.parse(i,{sort:!1}),o=Object.assign(a,e.query),s=t.stringify(o,n);s&&(s="?".concat(s));var u=y(e.url);return e.fragmentIdentifier&&(u="#".concat(p(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(u)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var i=t.parseUrl(e,r),a=i.url,o=i.query,s=i.fragmentIdentifier;return t.stringifyUrl({url:a,query:l(o,n),fragmentIdentifier:s},r)},t.exclude=function(e,n,r){var i=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,i,r)}},YL0P:function(e,t,n){"use strict";var r=n("2oRo"),i=n("67WC"),a=n("4mDm"),o=n("tiKp"),s=o("iterator"),u=r.Uint8Array,l=a.values,c=a.keys,f=a.entries,d=i.aTypedArray,h=i.exportTypedArrayMethod,p=u&&u.prototype[s],v=!!p&&("values"==p.name||void 0==p.name),m=function(){return l.call(d(this))};h("entries",(function(){return f.call(d(this))})),h("keys",(function(){return c.call(d(this))})),h("values",m,!v),h(s,m,!v)},YNrV:function(e,t,n){"use strict";var r=n("g6v/"),i=n("0Dky"),a=n("33Wh"),o=n("dBg+"),s=n("0eef"),u=n("ewvW"),l=n("RK3t"),c=Object.assign,f=Object.defineProperty;e.exports=!c||i((function(){if(r&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||a(c({},t)).join("")!=i}))?function(e,t){var n=u(e),i=arguments.length,c=1,f=o.f,d=s.f;while(i>c){var h,p=l(arguments[c++]),v=f?a(p).concat(f(p)):a(p),m=v.length,g=0;while(m>g)h=v[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},YS25:function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return B})),n.d(t,"d",(function(){return H})),n.d(t,"c",(function(){return w})),n.d(t,"f",(function(){return _})),n.d(t,"e",(function(){return x}));var r=n("wx14");function i(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,i=e.length;r=0;d--){var h=o[d];"."===h?a(o,d):".."===h?(a(o,d),f++):f&&(a(o,d),f--)}if(!l)for(;f--;f)o.unshift("..");!l||""===o[0]||o[0]&&i(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}var s=o;function u(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function l(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return l(e,t[n])}));if("object"===typeof e||"object"===typeof t){var n=u(e),r=u(t);return n!==e||r!==t?l(n,r):Object.keys(Object.assign({},e,t)).every((function(n){return l(e[n],t[n])}))}return!1}var c=l,f=n("YJ9l"),d=n.n(f),h=n("9R94");function p(e){return"/"===e.charAt(0)?e:"/"+e}function v(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function g(e,t){return m(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function x(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function w(e,t,n,i){var a;"string"===typeof e?(a=b(e),a.query=a.search?d.a.parse(a.search):{},a.state=t):(a=Object(r["a"])({},e),void 0===a.pathname&&(a.pathname=""),a.search?("?"!==a.search.charAt(0)&&(a.search="?"+a.search),a.query=d.a.parse(a.search)):(a.search=a.query?d.a.stringify(a.query):"",a.query=a.query||{}),a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(a.key=n),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=s(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function _(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function E(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)}var r=[];function i(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter((function(e){return e!==n}))}}function a(){for(var e=arguments.length,t=new Array(e),n=0;nn?a.splice(n,a.length-n,i):a.push(i),f({action:r,location:i,index:n,entries:a})}}))}function g(e,t){var r="REPLACE",i=w(e,t,d(),T.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(T.entries[T.index]=i,f({action:r,location:i}))}))}function y(e){var t=z(T.index+e,0,T.entries.length-1),r="POP",i=T.entries[t];c.confirmTransitionTo(i,r,n,(function(e){e?f({action:r,location:i,index:t}):f()}))}function b(){y(-1)}function _(){y(1)}function S(e){var t=T.index+e;return t>=0&&t>8&255]},F=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},U=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return I(e,23,4)},z=function(e){return I(e,52,8)},H=function(e,t){g(e[k],t,{get:function(){return w(this)[t]}})},G=function(e,t,n,r){var i=d(n),a=w(e);if(i+t>a.byteLength)throw P(T);var o=w(a.buffer).bytes,s=i+a.byteOffset,u=o.slice(s,s+t);return r?u:u.reverse()},V=function(e,t,n,r,i,a){var o=d(n),s=w(e);if(o+t>s.byteLength)throw P(T);for(var u=w(s.buffer).bytes,l=o+s.byteOffset,c=r(+i),f=0;fY;)(W=X[Y++])in O||o(O,W,A[W]);q.constructor=O}v&&p(C)!==L&&v(C,L);var K=new R(new O(2)),Z=C.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(C,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},{unsafe:!0})}else O=function(e){l(this,O,E);var t=d(e);_(this,{bytes:y.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},R=function(e,t,n){l(this,R,S),l(e,O,S);var r=w(e).byteLength,a=c(t);if(a<0||a>r)throw P("Wrong offset");if(n=void 0===n?r-a:f(n),a+n>r)throw P(M);_(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(H(O,"byteLength"),H(R,"buffer"),H(R,"byteLength"),H(R,"byteOffset")),s(R[k],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return U(G(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return U(G(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return N(G(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return N(G(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,D,t)},setUint8:function(e,t){V(this,1,e,D,t)},setInt16:function(e,t){V(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,z,t,arguments.length>2?arguments[2]:void 0)}});b(O,E),b(R,S),e.exports={ArrayBuffer:O,DataView:R}},YrtM:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("q1tI");function i(e,t,n){var i=r["useRef"]({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}},YzKT:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["rotation-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u65cb\u8f6c\u6a21\u578b"},i.a.createElement(a["AnchorLink"],{to:"#\u65cb\u8f6c\u6a21\u578b","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u65cb\u8f6c\u6a21\u578b"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["rotation-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},Z0cm:function(e,t){var n=Array.isArray;e.exports=n},Z4nd:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("fXLg");r({target:"WeakSet",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},Z8oC:function(e,t,n){var r=n("y1pI");function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},ZUd8:function(e,t,n){var r=n("ppGB"),i=n("HYAF"),a=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},ZWaQ:function(e,t,n){"use strict";var r=n("m/L8").f,i=n("fHMY"),a=n("4syw"),o=n("A2ZE"),s=n("GarU"),u=n("ImZN"),l=n("fdAy"),c=n("JiZb"),f=n("g6v/"),d=n("8YOa").fastKey,h=n("afO8"),p=h.set,v=h.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,c,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&u(r,e[l],e,n)})),h=v(t),m=function(e,t,n){var r,i,a=h(e),o=g(e,t);return o?o.value=n:(a.last=o={index:i=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},g=function(e,t){var n,r=h(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(c.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=g(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(c.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(c.prototype,"size",{get:function(){return h(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);l(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},ZY7T:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=o(this),n=new(u(t,a("Set"))),r=s(t.has),i=s(n.add);return l(e,(function(e){r.call(t,e)&&i.call(n,e)})),n}})},ZfDv:function(e,t,n){var r=n("hh1v"),i=n("6LWA"),a=n("tiKp"),o=a("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[o],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},Zkgb:function(e,t,n){},Zm9Q:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("q1tI"),i=n.n(r),a=n("TOwV");function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):Object(a["isFragment"])(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))})),n}},ZsH6:function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=n("4WOD"),s=i.has,u=i.get,l=i.toKey,c=function(e,t,n){var r=s(e,t,n);if(r)return u(e,t,n);var i=o(t);return null!==i?c(e,i,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:l(arguments[2]);return c(e,a(t),n)}})},Zxc8:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("wx14"),o=n("rePB"),s=n("ODXe"),u=n("U8pU"),l=n("Ff2n"),c=n("VTBJ"),f=n("TSYQ"),d=n.n(f),h=n("Zm9Q"),p=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};function v(e){var t=r["useRef"]();t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),i=0;id&&hu+v){n=r-1;break}}for(var a=0,c=t-1;c>=0;c-=1){var f=e.get(l[c].key)||C;if(f[s]w,Me=Object(r["useMemo"])((function(){var e=u;return Ee?e=null===N&&L?u:u.slice(0,Math.min(u.length,j/m)):"number"===typeof w&&(e=u.slice(0,w)),e}),[u,m,N,w,Ee]),Te=Object(r["useMemo"])((function(){return Ee?u.slice(ve+1):u.slice(Me.length)}),[u,Me,Ee,ve]),Ae=Object(r["useCallback"])((function(e,t){var n;return"function"===typeof p?p(e):null!==(n=p&&(null===e||void 0===e?void 0:e[p]))&&void 0!==n?n:t}),[p]),Oe=Object(r["useCallback"])(f||function(e){return e},[f]);function Re(e,t,n){(he!==e||void 0!==t&&t!==le)&&(pe(e),n||(be(ej){Re(r-1,e-i-ae+te);break}}k&&Ne(0)+ae>j&&ce(null)}}),[j,H,te,ae,Ae,Me]);var De=ye&&!!Te.length,je={};null!==le&&Ee&&(je={position:"absolute",left:le,top:0});var Fe,Ue={prefixCls:xe,responsive:Ee,component:A,invalidate:Se},Be=h?function(e,t){var n=Ae(e,t);return r["createElement"](K.Provider,{key:n,value:Object(c["a"])(Object(c["a"])({},Ue),{},{order:t,item:e,itemKey:n,registerSize:Le,display:t<=ve})},h(e,t))}:function(e,t){var n=Ae(e,t);return r["createElement"](B,Object(a["a"])({},Ue,{order:t,key:n,item:e,renderItem:Oe,itemKey:n,registerSize:Le,display:t<=ve}))},ze={order:De?ve:Number.MAX_SAFE_INTEGER,className:"".concat(xe,"-rest"),registerSize:Pe,display:De};if(S)S&&(Fe=r["createElement"](K.Provider,{value:Object(c["a"])(Object(c["a"])({},Ue),ze)},S(Te)));else{var He=_||$;Fe=r["createElement"](B,Object(a["a"])({},Ue,ze),"function"===typeof He?He(Te):He)}var Ge=r["createElement"](T,Object(a["a"])({className:d()(!Se&&i,x),style:b,ref:t},R),Me.map(Be),ke?Fe:null,k&&r["createElement"](B,Object(a["a"])({},Ue,{responsive:_e,responsiveDisabled:!Ee,order:ve,className:"".concat(xe,"-suffix"),registerSize:Ie,display:!0,style:je}),k));return _e&&(Ge=r["createElement"](E["a"],{onResize:Ce,disabled:!Ee},Ge)),Ge}var ee=r["forwardRef"](Q);ee.displayName="Overflow",ee.Item=X,ee.RESPONSIVE=Z,ee.INVALIDATE=J;var te=ee,ne=te,re=n("1OyB"),ie=n("vuIU"),ae=n("Ji7U"),oe=n("LK+K"),se=n("bT9E"),ue=n("YrtM"),le=["children","locked"],ce=r["createContext"](null);function fe(e,t){var n=Object(c["a"])({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function de(e){var t=e.children,n=e.locked,i=Object(l["a"])(e,le),a=r["useContext"](ce),o=Object(ue["a"])((function(){return fe(a,i)}),[a,i],(function(e,t){return!n&&(e[0]!==t[0]||!I()(e[1],t[1]))}));return r["createElement"](ce.Provider,{value:o},t)}function he(e,t,n,i){var a=r["useContext"](ce),o=a.activeKey,s=a.onActive,u=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),s(e)},l.onMouseLeave=function(t){null===i||void 0===i||i({key:e,domEvent:t}),u(e)}),l}var pe=["item"];function ve(e){var t=e.item,n=Object(l["a"])(e,pe);return Object.defineProperty(n,"item",{get:function(){return Object(N["a"])(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function me(e){var t,n=e.icon,i=e.props,a=e.children;return t="function"===typeof n?r["createElement"](n,Object(c["a"])({},i)):n,t||a||null}function ge(e){var t=r["useContext"](ce),n=t.mode,i=t.rtl,a=t.inlineIndent;if("inline"!==n)return null;var o=e;return i?{paddingRight:o*a}:{paddingLeft:o*a}}var ye=[],be=r["createContext"](null);function xe(){return r["useContext"](be)}var we=r["createContext"](ye);function _e(e){var t=r["useContext"](we);return r["useMemo"]((function(){return void 0!==e?[].concat(Object(w["a"])(t),[e]):t}),[t,e])}var Ee=r["createContext"](null),Se=r["createContext"](null);function ke(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Me(e){var t=r["useContext"](Se);return ke(t,e)}var Te=r["createContext"]({}),Ae=Te,Oe=["title","attribute","elementRef"],Re=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ce=["active"],Le=function(e){Object(ae["a"])(n,e);var t=Object(oe["a"])(n);function n(){return Object(re["a"])(this,n),t.apply(this,arguments)}return Object(ie["a"])(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,i=e.elementRef,o=Object(l["a"])(e,Oe),s=Object(se["a"])(o,["eventKey"]);return Object(N["a"])(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r["createElement"](ne.Item,Object(a["a"])({},n,{title:"string"===typeof t?t:void 0},s,{ref:i}))}}]),n}(r["Component"]),Pe=function(e){var t,n=e.style,i=e.className,s=e.eventKey,u=(e.warnKey,e.disabled),f=e.itemIcon,h=e.children,p=e.role,v=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,y=e.onKeyDown,b=e.onFocus,x=Object(l["a"])(e,Re),_=Me(s),E=r["useContext"](ce),S=E.prefixCls,k=E.onItemClick,T=E.disabled,A=E.overflowDisabled,O=E.itemIcon,R=E.selectedKeys,C=E.onActive,L=r["useContext"](Ae),P=L._internalRenderMenuItem,I="".concat(S,"-item"),N=r["useRef"](),D=r["useRef"](),j=T||u,F=_e(s);var U=function(e){return{key:s,keyPath:Object(w["a"])(F).reverse(),item:N.current,domEvent:e}},B=f||O,z=he(s,j,v,m),H=z.active,G=Object(l["a"])(z,Ce),V=R.includes(s),W=ge(F.length),q=function(e){if(!j){var t=U(e);null===g||void 0===g||g(ve(t)),k(t)}},X=function(e){if(null===y||void 0===y||y(e),e.which===M["a"].ENTER){var t=U(e);null===g||void 0===g||g(ve(t)),k(t)}},Y=function(e){C(s),null===b||void 0===b||b(e)},K={};"option"===e.role&&(K["aria-selected"]=V);var Z=r["createElement"](Le,Object(a["a"])({ref:N,elementRef:D,role:null===p?"none":p||"menuitem",tabIndex:u?null:-1,"data-menu-id":A&&_?null:_},x,G,K,{component:"li","aria-disabled":u,style:Object(c["a"])(Object(c["a"])({},W),n),className:d()(I,(t={},Object(o["a"])(t,"".concat(I,"-active"),H),Object(o["a"])(t,"".concat(I,"-selected"),V),Object(o["a"])(t,"".concat(I,"-disabled"),j),t),i),onClick:q,onKeyDown:X,onFocus:Y}),h,r["createElement"](me,{props:Object(c["a"])(Object(c["a"])({},e),{},{isSelected:V}),icon:B}));return P&&(Z=P(Z,e,{selected:V})),Z};function Ie(e){var t=e.eventKey,n=xe(),i=_e(t);return r["useEffect"]((function(){if(n)return n.registerPath(t,i),function(){n.unregisterPath(t,i)}}),[i]),n?null:r["createElement"](Pe,e)}var Ne=Ie,De=["label","children","key","type"];function je(e,t){return Object(h["a"])(e).map((function(e,n){if(r["isValidElement"](e)){var i,a,o=e.key,s=null!==(i=null===(a=e.props)||void 0===a?void 0:a.eventKey)&&void 0!==i?i:o,u=null===s||void 0===s;u&&(s="tmp_key-".concat([].concat(Object(w["a"])(t),[n]).join("-")));var l={key:s,eventKey:s};return r["cloneElement"](e,l)}return e}))}function Fe(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(u["a"])(e)){var n=e.label,i=e.children,o=e.key,s=e.type,c=Object(l["a"])(e,De),f=null!==o&&void 0!==o?o:"tmp-".concat(t);return i||"group"===s?"group"===s?r["createElement"](ti,Object(a["a"])({key:f},c,{title:n}),Fe(i)):r["createElement"](wr,Object(a["a"])({key:f},c,{title:n}),Fe(i)):"divider"===s?r["createElement"](ni,Object(a["a"])({key:f},c)):r["createElement"](Ne,Object(a["a"])({key:f},c),n)}return null})).filter((function(e){return e}))}function Ue(e,t,n){var r=e;return t&&(r=Fe(t)),je(r,n)}function Be(e){var t=r["useRef"](e);t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function vn(e,t,n,r){var i=ln.clone(e),a={width:t.width,height:t.height};return r.adjustX&&i.left=n.left&&i.left+a.width>n.right&&(a.width-=i.left+a.width-n.right),r.adjustX&&i.left+a.width>n.right&&(i.left=Math.max(n.right-a.width,n.left)),r.adjustY&&i.top=n.top&&i.top+a.height>n.bottom&&(a.height-=i.top+a.height-n.bottom),r.adjustY&&i.top+a.height>n.bottom&&(i.top=Math.max(n.bottom-a.height,n.top)),ln.mix(i,a)}function mn(e){var t,n,r;if(ln.isWindow(e)||9===e.nodeType){var i=ln.getWindow(e);t={left:ln.getWindowScrollLeft(i),top:ln.getWindowScrollTop(i)},n=ln.viewportWidth(i),r=ln.viewportHeight(i)}else t=ln.offset(e),n=ln.outerWidth(e),r=ln.outerHeight(e);return t.width=n,t.height=r,t}function gn(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return"c"===n?s+=a/2:"b"===n&&(s+=a),"c"===r?o+=i/2:"r"===r&&(o+=i),{left:o,top:s}}function yn(e,t,n,r,i){var a=gn(t,n[1]),o=gn(e,n[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function bn(e,t,n){return e.leftn.right}function xn(e,t,n){return e.topn.bottom}function wn(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function On(e,t,n){var r=n.target||t,i=mn(r),a=!An(r,n.overflow&&n.overflow.alwaysByViewport);return Tn(e,i,n,a)}function Rn(e,t,n){var r,i,a=ln.getDocument(e),o=a.defaultView||a.parentWindow,s=ln.getWindowScrollLeft(o),u=ln.getWindowScrollTop(o),l=ln.viewportWidth(o),c=ln.viewportHeight(o);r="pageX"in t?t.pageX:s+t.clientX,i="pageY"in t?t.pageY:u+t.clientY;var f={left:r,top:i,width:0,height:0},d=r>=0&&r<=s+l&&i>=0&&i<=u+c,h=[n.points[0],"cc"];return Tn(e,f,ct(ct({},n),{},{points:h}),d)}On.__getOffsetParent=fn,On.__getVisibleRectForElement=pn;var Cn=n("Y+p1"),Ln=n.n(Cn),Pn=n("bdgK");function In(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Nn(e,t){e!==document.activeElement&&Ye(t,e)&&"function"===typeof e.focus&&e.focus()}function Dn(e,t){var n=null,r=null;function i(e){var i=Object(s["a"])(e,1),a=i[0].target;if(document.documentElement.contains(a)){var o=a.getBoundingClientRect(),u=o.width,l=o.height,c=Math.floor(u),f=Math.floor(l);n===c&&r===f||Promise.resolve().then((function(){t({width:c,height:f})})),n=c,r=f}}var a=new Pn["a"](i);return e&&a.observe(e),function(){a.disconnect()}}var jn=function(e,t){var n=i.a.useRef(!1),r=i.a.useRef(null);function a(){window.clearTimeout(r.current)}function o(i){if(a(),n.current&&!0!==i)r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}}return[o,function(){n.current=!1,a()}]};function Fn(e){return"function"!==typeof e?null:e()}function Un(e){return"object"===Object(u["a"])(e)&&e?e:null}var Bn=function(e,t){var n=e.children,r=e.disabled,a=e.target,o=e.align,u=e.onAlign,l=e.monitorWindowResize,c=e.monitorBufferTime,f=void 0===c?0:c,d=i.a.useRef({}),h=i.a.useRef(),p=i.a.Children.only(n),v=i.a.useRef({});v.current.disabled=r,v.current.target=a,v.current.align=o,v.current.onAlign=u;var m=jn((function(){var e=v.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign;if(!t&&n){var a,o=h.current,s=Fn(n),u=Un(n);d.current.element=s,d.current.point=u,d.current.align=r;var l=document,c=l.activeElement;return s&&ut(s)?a=On(o,s,r):u&&(a=Rn(o,u,r)),Nn(c,o),i&&a&&i(o,a),!0}return!1}),f),g=Object(s["a"])(m,2),y=g[0],b=g[1],x=i.a.useRef({cancel:function(){}}),w=i.a.useRef({cancel:function(){}});i.a.useEffect((function(){var e=Fn(a),t=Un(a);h.current!==w.current.element&&(w.current.cancel(),w.current.element=h.current,w.current.cancel=Dn(h.current,y)),d.current.element===e&&In(d.current.point,t)&&Ln()(d.current.align,o)||(y(),x.current.element!==e&&(x.current.cancel(),x.current.element=e,x.current.cancel=Dn(e,y)))})),i.a.useEffect((function(){r?b():y()}),[r]);var _=i.a.useRef(null);return i.a.useEffect((function(){l?_.current||(_.current=Je(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)}),[l]),i.a.useEffect((function(){return function(){x.current.cancel(),w.current.cancel(),_.current&&_.current.remove(),b()}}),[]),i.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),i.a.isValidElement(p)&&(p=i.a.cloneElement(p,{ref:Object(Ze["a"])(p.ref,h)})),p},zn=i.a.forwardRef(Bn);zn.displayName="Align";var Hn=zn,Gn=Hn;function Vn(){Vn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),o=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return M()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};s(v,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==t&&n.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var f=l.arg,d=f.value;return d&&"object"==Object(u["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){f.value=e,o(f)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Wn(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function qn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Wn(a,r,i,o,s,"next",e)}function s(e){Wn(a,r,i,o,s,"throw",e)}o(void 0)}))}}var Xn=["measure","alignPre","align",null,"motion"],Yn=function(e,t){var n=Object(y["a"])(null),i=Object(s["a"])(n,2),a=i[0],o=i[1],u=Object(r["useRef"])();function l(e){o(e,!0)}function c(){_["a"].cancel(u.current)}function f(e){c(),u.current=Object(_["a"])((function(){l((function(e){switch(a){case"align":return"motion";case"motion":return"stable";default:}return e})),null===e||void 0===e||e()}))}return Object(r["useEffect"])((function(){l("measure")}),[e]),Object(r["useEffect"])((function(){switch(a){case"measure":t();break;default:}a&&(u.current=Object(_["a"])(qn(Vn().mark((function e(){var t,n;return Vn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=Xn.indexOf(a),n=Xn[t+1],n&&-1!==t&&l(n);case 3:case"end":return e.stop()}}),e)})))))}),[a]),Object(r["useEffect"])((function(){return function(){c()}}),[]),[a,f]},Kn=function(e){var t=r["useState"]({width:0,height:0}),n=Object(s["a"])(t,2),i=n[0],a=n[1];function o(e){a({width:e.offsetWidth,height:e.offsetHeight})}var u=r["useMemo"]((function(){var t={};if(e){var n=i.width,r=i.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,i]);return[u,o]},Zn=r["forwardRef"]((function(e,t){var n=e.visible,i=e.prefixCls,o=e.className,u=e.style,l=e.children,f=e.zIndex,h=e.stretch,p=e.destroyPopupOnHide,v=e.forceRender,m=e.align,y=e.point,b=e.getRootDomNode,x=e.getClassNameFromAlign,w=e.onAlign,_=e.onMouseEnter,E=e.onMouseLeave,S=e.onMouseDown,k=e.onTouchStart,M=e.onClick,T=Object(r["useRef"])(),A=Object(r["useRef"])(),O=Object(r["useState"])(),R=Object(s["a"])(O,2),C=R[0],L=R[1],P=Kn(h),I=Object(s["a"])(P,2),N=I[0],D=I[1];function j(){h&&D(b())}var F=Yn(n,j),U=Object(s["a"])(F,2),B=U[0],z=U[1],H=Object(r["useState"])(0),G=Object(s["a"])(H,2),V=G[0],W=G[1],q=Object(r["useRef"])();function X(){return y||b}function Y(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function K(e,t){var n=x(t);C!==n&&L(n),W((function(e){return e+1})),"align"===B&&(null===w||void 0===w||w(e,t))}Object(g["a"])((function(){"alignPre"===B&&W(0)}),[B]),Object(g["a"])((function(){"align"===B&&(V<2?Y():z((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[V]);var Z=Object(c["a"])({},at(e));function J(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Z[e];Z[e]=function(e,n){return z(),null===t||void 0===t?void 0:t(e,n)}})),r["useEffect"]((function(){Z.motionName||"motion"!==B||z()}),[Z.motionName,B]),r["useImperativeHandle"](t,(function(){return{forceAlign:Y,getElement:function(){return A.current}}}));var $=Object(c["a"])(Object(c["a"])({},N),{},{zIndex:f,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},u),Q=!0;!(null===m||void 0===m?void 0:m.points)||"align"!==B&&"stable"!==B||(Q=!1);var ee=l;return r["Children"].count(l)>1&&(ee=r["createElement"]("div",{className:"".concat(i,"-content")},l)),r["createElement"](it["a"],Object(a["a"])({visible:n,ref:A,leavedClassName:"".concat(i,"-hidden")},Z,{onAppearPrepare:J,onEnterPrepare:J,removeOnLeave:p,forceRender:v}),(function(e,t){var n=e.className,a=e.style,s=d()(i,o,C,n);return r["createElement"](Gn,{target:X(),key:"popup",ref:T,monitorWindowResize:!0,disabled:Q,align:m,onAlign:K},r["createElement"]("div",{ref:t,className:s,onMouseEnter:_,onMouseLeave:E,onMouseDownCapture:S,onTouchStartCapture:k,onClick:M,style:Object(c["a"])(Object(c["a"])({},a),$)},ee))}))}));Zn.displayName="PopupInner";var Jn=Zn,$n=r["forwardRef"]((function(e,t){var n=e.prefixCls,i=e.visible,o=e.zIndex,s=e.children,u=e.mobile;u=void 0===u?{}:u;var l=u.popupClassName,f=u.popupStyle,h=u.popupMotion,p=void 0===h?{}:h,v=u.popupRender,m=e.onClick,g=r["useRef"]();r["useImperativeHandle"](t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var y=Object(c["a"])({zIndex:o},f),b=s;return r["Children"].count(s)>1&&(b=r["createElement"]("div",{className:"".concat(n,"-content")},s)),v&&(b=v(b)),r["createElement"](it["a"],Object(a["a"])({visible:i,ref:g,removeOnLeave:!0},p),(function(e,t){var i=e.className,a=e.style,o=d()(n,l,i);return r["createElement"]("div",{ref:t,className:o,onClick:m,style:Object(c["a"])(Object(c["a"])({},a),y)},b)}))}));$n.displayName="MobilePopupInner";var Qn=$n,er=["visible","mobile"],tr=r["forwardRef"]((function(e,t){var n=e.visible,i=e.mobile,o=Object(l["a"])(e,er),u=Object(r["useState"])(n),f=Object(s["a"])(u,2),d=f[0],h=f[1],v=Object(r["useState"])(!1),m=Object(s["a"])(v,2),g=m[0],y=m[1],b=Object(c["a"])(Object(c["a"])({},o),{},{visible:d});Object(r["useEffect"])((function(){h(n),n&&i&&y(p())}),[n,i]);var x=g?r["createElement"](Qn,Object(a["a"])({},b,{mobile:i,ref:t})):r["createElement"](Jn,Object(a["a"])({},b,{ref:t}));return r["createElement"]("div",null,r["createElement"](ot,b),x)}));tr.displayName="Popup";var nr=tr,rr=r["createContext"](null),ir=rr;function ar(){}function or(){return""}function sr(e){return e?e.ownerDocument:window.document}var ur=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function lr(e){var t=function(t){Object(ae["a"])(i,t);var n=Object(oe["a"])(i);function i(e){var t,o;return Object(re["a"])(this,i),t=n.call(this,e),t.popupRef=r["createRef"](),t.triggerRef=r["createRef"](),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&Ye(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),i=t.getPopupDomNode();Ye(r,n)&&!t.isContextMenuOnly()||Ye(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object(Ke["a"])(t.triggerRef.current);if(n)return n}catch(r){}return Xe.a.findDOMNode(Object(We["a"])(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,i=r.popupPlacement,a=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,u=r.getPopupClassNameFromAlign;return i&&a&&n.push(rt(a,o,e,s)),u&&n.push(u(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,i=e.destroyPopupOnHide,o=e.popupClassName,s=e.onPopupAlign,u=e.popupMotion,l=e.popupAnimation,c=e.popupTransitionName,f=e.popupStyle,d=e.mask,h=e.maskAnimation,p=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,g=e.popup,y=e.stretch,b=e.alignPoint,x=e.mobile,w=e.forceRender,_=e.onPopupClick,E=t.state,S=E.popupVisible,k=E.point,M=t.getPopupAlign(),T={};return t.isMouseEnterToShow()&&(T.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(T.onMouseLeave=t.onPopupMouseLeave),T.onMouseDown=t.onPopupMouseDown,T.onTouchStart=t.onPopupMouseDown,r["createElement"](nr,Object(a["a"])({prefixCls:n,destroyPopupOnHide:i,visible:S,point:b&&k,className:o,align:M,onAlign:s,animation:l,getClassNameFromAlign:t.getPopupClassNameFromAlign},T,{stretch:y,getRootDomNode:t.getRootDomNode,style:f,mask:d,zIndex:m,transitionName:c,maskAnimation:h,maskTransitionName:p,maskMotion:v,ref:t.popupRef,motion:u,mobile:x,forceRender:w,onClick:_}),"function"===typeof g?g():g)},t.attachParent=function(e){_["a"].cancel(t.attachId);var n,r=t.props,i=r.getPopupContainer,a=r.getDocument,o=t.getRootDomNode();i?(o||0===i.length)&&(n=i(o)):n=a(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(_["a"])((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",t.portalContainer=n}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){var n=t.props.alignPoint;n&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},o="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:o,popupVisible:o},ur.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Object(ie["a"])(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props,n=this.state;if(n.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Je(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Je(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Je(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Je(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),_["a"].cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?nt(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,i=n.children,a=n.forceRender,o=n.alignPoint,s=n.className,u=n.autoDestroy,l=r["Children"].only(i),f={key:"trigger"};this.isContextMenuToShow()?f.onContextMenu=this.onContextMenu:f.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(f.onClick=this.onClick,f.onMouseDown=this.onMouseDown,f.onTouchStart=this.onTouchStart):(f.onClick=this.createTwoChains("onClick"),f.onMouseDown=this.createTwoChains("onMouseDown"),f.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(f.onMouseEnter=this.onMouseEnter,o&&(f.onMouseMove=this.onMouseMove)):f.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?f.onMouseLeave=this.onMouseLeave:f.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(f.onFocus=this.onFocus,f.onBlur=this.onBlur):(f.onFocus=this.createTwoChains("onFocus"),f.onBlur=this.createTwoChains("onBlur"));var h=d()(l&&l.props&&l.props.className,s);h&&(f.className=h);var p=Object(c["a"])({},f);Object(Ze["c"])(l)&&(p.ref=Object(Ze["a"])(this.triggerRef,l.ref));var v,m=r["cloneElement"](l,p);return(t||this.popupRef.current||a)&&(v=r["createElement"](e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&u&&(v=null),r["createElement"](ir.Provider,{value:this.triggerContextValue},m,v)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),i}(r["Component"]);return t.contextType=ir,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:or,getDocument:sr,onPopupVisibleChange:ar,afterPopupVisibleChange:ar,onPopupAlign:ar,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}var cr=lr(et),fr={adjustX:1,adjustY:1},dr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}},hr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}};function pr(e,t,n){return t||(n?n[e]||n.other:void 0)}var vr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function mr(e){var t=e.prefixCls,n=e.visible,i=e.children,a=e.popup,u=e.popupClassName,l=e.popupOffset,f=e.disabled,h=e.mode,p=e.onVisibleChange,v=r["useContext"](ce),m=v.getPopupContainer,g=v.rtl,y=v.subMenuOpenDelay,b=v.subMenuCloseDelay,x=v.builtinPlacements,w=v.triggerSubMenuAction,E=v.forceSubMenuRender,S=v.rootClassName,k=v.motion,M=v.defaultMotions,T=r["useState"](!1),A=Object(s["a"])(T,2),O=A[0],R=A[1],C=g?Object(c["a"])(Object(c["a"])({},hr),x):Object(c["a"])(Object(c["a"])({},dr),x),L=vr[h],P=pr(h,k,M),I=Object(c["a"])(Object(c["a"])({},P),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=r["useRef"]();return r["useEffect"]((function(){return N.current=Object(_["a"])((function(){R(n)})),function(){_["a"].cancel(N.current)}}),[n]),r["createElement"](cr,{prefixCls:t,popupClassName:d()("".concat(t,"-popup"),Object(o["a"])({},"".concat(t,"-rtl"),g),u,S),stretch:"horizontal"===h?"minWidth":null,getPopupContainer:m,builtinPlacements:C,popupPlacement:L,popupVisible:O,popup:a,popupAlign:l&&{offset:l},action:f?[]:[w],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:E,popupMotion:I},i)}function gr(e){var t=e.id,n=e.open,i=e.keyPath,o=e.children,u="inline",l=r["useContext"](ce),f=l.prefixCls,d=l.forceSubMenuRender,h=l.motion,p=l.defaultMotions,v=l.mode,m=r["useRef"](!1);m.current=v===u;var g=r["useState"](!m.current),y=Object(s["a"])(g,2),b=y[0],x=y[1],w=!!m.current&&n;r["useEffect"]((function(){m.current&&x(!1)}),[v]);var _=Object(c["a"])({},pr(u,h,p));i.length>1&&(_.motionAppear=!1);var E=_.onVisibleChanged;return _.onVisibleChanged=function(e){return m.current||e||x(!0),null===E||void 0===E?void 0:E(e)},b?null:r["createElement"](de,{mode:u,locked:!m.current},r["createElement"](it["a"],Object(a["a"])({visible:w},_,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,i=e.style;return r["createElement"](Ve,{id:t,className:n,style:i},o)})))}var yr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],br=["active"],xr=function(e){var t,n=e.style,i=e.className,u=e.title,f=e.eventKey,h=(e.warnKey,e.disabled),p=e.internalPopupClose,v=e.children,m=e.itemIcon,g=e.expandIcon,y=e.popupClassName,b=e.popupOffset,x=e.onClick,w=e.onMouseEnter,_=e.onMouseLeave,E=e.onTitleClick,S=e.onTitleMouseEnter,k=e.onTitleMouseLeave,M=Object(l["a"])(e,yr),T=Me(f),A=r["useContext"](ce),O=A.prefixCls,R=A.mode,C=A.openKeys,L=A.disabled,P=A.overflowDisabled,I=A.activeKey,N=A.selectedKeys,D=A.itemIcon,j=A.expandIcon,F=A.onItemClick,U=A.onOpenChange,B=A.onActive,z=r["useContext"](Ae),H=z._internalRenderSubMenuItem,G=r["useContext"](Ee),V=G.isSubPathKey,W=_e(),q="".concat(O,"-submenu"),X=L||h,Y=r["useRef"](),K=r["useRef"]();var Z=m||D,J=g||j,$=C.includes(f),Q=!P&&$,ee=V(N,f),te=he(f,X,S,k),re=te.active,ie=Object(l["a"])(te,br),ae=r["useState"](!1),oe=Object(s["a"])(ae,2),se=oe[0],ue=oe[1],le=function(e){X||ue(e)},fe=function(e){le(!0),null===w||void 0===w||w({key:f,domEvent:e})},pe=function(e){le(!1),null===_||void 0===_||_({key:f,domEvent:e})},ye=r["useMemo"]((function(){return re||"inline"!==R&&(se||V([I],f))}),[R,re,I,se,f,V]),be=ge(W.length),xe=function(e){X||(null===E||void 0===E||E({key:f,domEvent:e}),"inline"===R&&U(f,!$))},we=Be((function(e){null===x||void 0===x||x(ve(e)),F(e)})),Se=function(e){"inline"!==R&&U(f,e)},ke=function(){B(f)},Te=T&&"".concat(T,"-popup"),Oe=r["createElement"]("div",Object(a["a"])({role:"menuitem",style:be,className:"".concat(q,"-title"),tabIndex:X?null:-1,ref:Y,title:"string"===typeof u?u:null,"data-menu-id":P&&T?null:T,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":Te,"aria-disabled":X,onClick:xe,onFocus:ke},ie),u,r["createElement"](me,{icon:"horizontal"!==R?J:null,props:Object(c["a"])(Object(c["a"])({},e),{},{isOpen:Q,isSubMenu:!0})},r["createElement"]("i",{className:"".concat(q,"-arrow")}))),Re=r["useRef"](R);if("inline"!==R&&(Re.current=W.length>1?"vertical":R),!P){var Ce=Re.current;Oe=r["createElement"](mr,{mode:Ce,prefixCls:q,visible:!p&&Q&&"inline"!==R,popupClassName:y,popupOffset:b,popup:r["createElement"](de,{mode:"horizontal"===Ce?"vertical":Ce},r["createElement"](Ve,{id:Te,ref:K},v)),disabled:X,onVisibleChange:Se},Oe)}var Le=r["createElement"](ne.Item,Object(a["a"])({role:"none"},M,{component:"li",style:n,className:d()(q,"".concat(q,"-").concat(R),i,(t={},Object(o["a"])(t,"".concat(q,"-open"),Q),Object(o["a"])(t,"".concat(q,"-active"),ye),Object(o["a"])(t,"".concat(q,"-selected"),ee),Object(o["a"])(t,"".concat(q,"-disabled"),X),t)),onMouseEnter:fe,onMouseLeave:pe}),Oe,!P&&r["createElement"](gr,{id:Te,open:Q,keyPath:W},v));return H&&(Le=H(Le,e,{selected:ee,active:ye,open:Q,disabled:X})),r["createElement"](de,{onItemClick:we,mode:"horizontal"===R?"vertical":R,itemIcon:Z,expandIcon:J},Le)};function wr(e){var t,n=e.eventKey,i=e.children,a=_e(n),o=je(i,a),s=xe();return r["useEffect"]((function(){if(s)return s.registerPath(n,a),function(){s.unregisterPath(n,a)}}),[a]),t=s?o:r["createElement"](xr,e,o),r["createElement"](we.Provider,{value:a},t)}function _r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ut(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&null===o&&(o=0),r&&e.disabled&&(o=null),null!==o&&(o>=0||t&&o<0)}return!1}function Er(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(w["a"])(e.querySelectorAll("*")).filter((function(e){return _r(e,t)}));return _r(e,t)&&n.unshift(e),n}var Sr=M["a"].LEFT,kr=M["a"].RIGHT,Mr=M["a"].UP,Tr=M["a"].DOWN,Ar=M["a"].ENTER,Or=M["a"].ESC,Rr=M["a"].HOME,Cr=M["a"].END,Lr=[Mr,Tr,Sr,kr];function Pr(e,t,n,r){var i,a,s,u,l="prev",c="next",f="children",d="parent";if("inline"===e&&r===Ar)return{inlineTrigger:!0};var h=(i={},Object(o["a"])(i,Mr,l),Object(o["a"])(i,Tr,c),i),p=(a={},Object(o["a"])(a,Sr,n?c:l),Object(o["a"])(a,kr,n?l:c),Object(o["a"])(a,Tr,f),Object(o["a"])(a,Ar,f),a),v=(s={},Object(o["a"])(s,Mr,l),Object(o["a"])(s,Tr,c),Object(o["a"])(s,Ar,f),Object(o["a"])(s,Or,d),Object(o["a"])(s,Sr,n?f:d),Object(o["a"])(s,kr,n?d:f),s),m={inline:h,horizontal:p,vertical:v,inlineSub:h,horizontalSub:v,verticalSub:v},g=null===(u=m["".concat(e).concat(t?"":"Sub")])||void 0===u?void 0:u[r];switch(g){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function Ir(e){var t=e;while(t){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Nr(e,t){var n=e||document.activeElement;while(n){if(t.has(n))return n;n=n.parentElement}return null}function Dr(e,t){var n=Er(e,!0);return n.filter((function(e){return t.has(e)}))}function jr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=Dr(e,t),a=i.length,o=i.findIndex((function(e){return n===e}));return r<0?-1===o?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}function Fr(e,t,n,i,a,o,s,u,l,c){var f=r["useRef"](),d=r["useRef"]();d.current=t;var h=function(){_["a"].cancel(f.current)};return r["useEffect"]((function(){return function(){h()}}),[]),function(r){var p=r.which;if([].concat(Lr,[Ar,Or,Rr,Cr]).includes(p)){var v,m,g,y=function(){v=new Set,m=new Map,g=new Map;var e=o();return e.forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(ke(i,e),"']"));t&&(v.add(t),g.set(t,e),m.set(e,t))})),v};y();var b=m.get(t),x=Nr(b,v),w=g.get(x),E=Pr(e,1===s(w,!0).length,n,p);if(!E&&p!==Rr&&p!==Cr)return;(Lr.includes(p)||[Rr,Cr].includes(p))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);u(r),h(),f.current=Object(_["a"])((function(){d.current===r&&t.focus()}))}};if([Rr,Cr].includes(p)||E.sibling||!x){var k,M;k=x&&"inline"!==e?Ir(x):a.current;var T=Dr(k,v);M=p===Rr?T[0]:p===Cr?T[T.length-1]:jr(k,v,x,E.offset),S(M)}else if(E.inlineTrigger)l(w);else if(E.offset>0)l(w,!0),h(),f.current=Object(_["a"])((function(){y();var e=x.getAttribute("aria-controls"),t=document.getElementById(e),n=jr(t,v);S(n)}),5);else if(E.offset<0){var A=s(w,!0),O=A[A.length-2],R=m.get(O);l(O,!1),S(R)}}null===c||void 0===c||c(r)}}var Ur=Math.random().toFixed(5).toString().slice(2),Br=0;function zr(e){var t=x(e,{value:e}),n=Object(s["a"])(t,2),i=n[0],a=n[1];return r["useEffect"]((function(){Br+=1;var e="".concat(Ur,"-").concat(Br);a("rc-menu-uuid-".concat(e))}),[]),i}function Hr(e){Promise.resolve().then(e)}var Gr="__RC_UTIL_PATH_SPLIT__",Vr=function(e){return e.join(Gr)},Wr=function(e){return e.split(Gr)},qr="rc-menu-more";function Xr(){var e=r["useState"]({}),t=Object(s["a"])(e,2),n=t[1],i=Object(r["useRef"])(new Map),a=Object(r["useRef"])(new Map),o=r["useState"]([]),u=Object(s["a"])(o,2),l=u[0],c=u[1],f=Object(r["useRef"])(0),d=Object(r["useRef"])(!1),h=function(){d.current||n({})},p=Object(r["useCallback"])((function(e,t){var n=Vr(t);a.current.set(n,e),i.current.set(e,n),f.current+=1;var r=f.current;Hr((function(){r===f.current&&h()}))}),[]),v=Object(r["useCallback"])((function(e,t){var n=Vr(t);a.current["delete"](n),i.current["delete"](e)}),[]),m=Object(r["useCallback"])((function(e){c(e)}),[]),g=Object(r["useCallback"])((function(e,t){var n=i.current.get(e)||"",r=Wr(n);return t&&l.includes(r[0])&&r.unshift(qr),r}),[l]),y=Object(r["useCallback"])((function(e,t){return e.some((function(e){var n=g(e,!0);return n.includes(t)}))}),[g]),b=function(){var e=Object(w["a"])(i.current.keys());return l.length&&e.push(qr),e},x=Object(r["useCallback"])((function(e){var t="".concat(i.current.get(e)).concat(Gr),n=new Set;return Object(w["a"])(a.current.keys()).forEach((function(e){e.startsWith(t)&&n.add(a.current.get(e))})),n}),[]);return r["useEffect"]((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:v,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:g,getKeys:b,getSubPathKeys:x}}var Yr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Kr=[],Zr=r["forwardRef"]((function(e,t){var n,i,u=e.prefixCls,f=void 0===u?"rc-menu":u,h=e.rootClassName,p=e.style,v=e.className,m=e.tabIndex,g=void 0===m?0:m,y=e.items,b=e.children,_=e.direction,E=e.id,S=e.mode,k=void 0===S?"vertical":S,M=e.inlineCollapsed,T=e.disabled,A=e.disabledOverflow,O=e.subMenuOpenDelay,R=void 0===O?.1:O,C=e.subMenuCloseDelay,L=void 0===C?.1:C,P=e.forceSubMenuRender,N=e.defaultOpenKeys,D=e.openKeys,j=e.activeKey,F=e.defaultActiveFirst,U=e.selectable,B=void 0===U||U,z=e.multiple,H=void 0!==z&&z,G=e.defaultSelectedKeys,V=e.selectedKeys,W=e.onSelect,q=e.onDeselect,X=e.inlineIndent,Y=void 0===X?24:X,K=e.motion,Z=e.defaultMotions,J=e.triggerSubMenuAction,$=void 0===J?"hover":J,Q=e.builtinPlacements,ee=e.itemIcon,te=e.expandIcon,re=e.overflowedIndicator,ie=void 0===re?"...":re,ae=e.overflowedIndicatorPopupClassName,oe=e.getPopupContainer,se=e.onClick,ue=e.onOpenChange,le=e.onKeyDown,ce=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),fe=e._internalRenderSubMenuItem,he=Object(l["a"])(e,Yr),pe=r["useMemo"]((function(){return Ue(b,y,Kr)}),[b,y]),me=r["useState"](!1),ge=Object(s["a"])(me,2),ye=ge[0],xe=ge[1],we=r["useRef"](),_e=zr(E),Me="rtl"===_;var Te=r["useMemo"]((function(){return"inline"!==k&&"vertical"!==k||!M?[k,!1]:["vertical",M]}),[k,M]),Oe=Object(s["a"])(Te,2),Re=Oe[0],Ce=Oe[1],Le=r["useState"](0),Pe=Object(s["a"])(Le,2),Ie=Pe[0],De=Pe[1],je=Ie>=pe.length-1||"horizontal"!==Re||A,Fe=x(N,{value:D,postState:function(e){return e||Kr}}),ze=Object(s["a"])(Fe,2),He=ze[0],Ge=ze[1],Ve=function(e){Ge(e),null===ue||void 0===ue||ue(e)},We=r["useState"](He),qe=Object(s["a"])(We,2),Xe=qe[0],Ye=qe[1],Ke="inline"===Re,Ze=r["useRef"](!1);r["useEffect"]((function(){Ke&&Ye(He)}),[He]),r["useEffect"]((function(){Ze.current&&(Ke?Ge(Xe):Ve(Kr))}),[Ke]),r["useEffect"]((function(){return Ze.current=!0,function(){Ze.current=!1}}),[]);var Je=Xr(),$e=Je.registerPath,Qe=Je.unregisterPath,et=Je.refreshOverflowKeys,tt=Je.isSubPathKey,nt=Je.getKeyPath,rt=Je.getKeys,it=Je.getSubPathKeys,at=r["useMemo"]((function(){return{registerPath:$e,unregisterPath:Qe}}),[$e,Qe]),ot=r["useMemo"]((function(){return{isSubPathKey:tt}}),[tt]);r["useEffect"]((function(){et(je?Kr:pe.slice(Ie+1).map((function(e){return e.key})))}),[Ie,je]);var st=x(j||F&&(null===(n=pe[0])||void 0===n?void 0:n.key),{value:j}),ut=Object(s["a"])(st,2),lt=ut[0],ct=ut[1],ft=Be((function(e){ct(e)})),dt=Be((function(){ct(void 0)}));Object(r["useImperativeHandle"])(t,(function(){return{list:we.current,focus:function(e){var t,n,r,i,a=null!==lt&&void 0!==lt?lt:null===(t=pe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=we.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(ke(_e,a),"']")))||void 0===r||null===(i=r.focus)||void 0===i||i.call(r,e))}}}));var ht=x(G||[],{value:V,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Kr:[e]}}),pt=Object(s["a"])(ht,2),vt=pt[0],mt=pt[1],gt=function(e){if(B){var t,n=e.key,r=vt.includes(n);t=H?r?vt.filter((function(e){return e!==n})):[].concat(Object(w["a"])(vt),[n]):[n],mt(t);var i=Object(c["a"])(Object(c["a"])({},e),{},{selectedKeys:t});r?null===q||void 0===q||q(i):null===W||void 0===W||W(i)}!H&&He.length&&"inline"!==Re&&Ve(Kr)},yt=Be((function(e){null===se||void 0===se||se(ve(e)),gt(e)})),bt=Be((function(e,t){var n=He.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=it(e);n=n.filter((function(e){return!r.has(e)}))}I()(He,n)||Ve(n)})),xt=Be(oe),wt=function(e,t){var n=null!==t&&void 0!==t?t:!He.includes(e);bt(e,n)},_t=Fr(Re,lt,Me,_e,we,rt,nt,ct,wt,le);r["useEffect"]((function(){xe(!0)}),[]);var Et=r["useMemo"]((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:fe}}),[ce,fe]),St="horizontal"!==Re||A?pe:pe.map((function(e,t){return r["createElement"](de,{key:e.key,overflowDisabled:t>Ie},e)})),kt=r["createElement"](ne,Object(a["a"])({id:E,ref:we,prefixCls:"".concat(f,"-overflow"),component:"ul",itemComponent:Ne,className:d()(f,"".concat(f,"-root"),"".concat(f,"-").concat(Re),v,(i={},Object(o["a"])(i,"".concat(f,"-inline-collapsed"),Ce),Object(o["a"])(i,"".concat(f,"-rtl"),Me),i),h),dir:_,style:p,role:"menu",tabIndex:g,data:St,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?pe.slice(-t):null;return r["createElement"](wr,{eventKey:qr,title:ie,disabled:je,internalPopupClose:0===t,popupClassName:ae},n)},maxCount:"horizontal"!==Re||A?ne.INVALIDATE:ne.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){De(e)},onKeyDown:_t},he));return r["createElement"](Ae.Provider,{value:Et},r["createElement"](Se.Provider,{value:_e},r["createElement"](de,{prefixCls:f,rootClassName:h,mode:Re,openKeys:He,rtl:Me,disabled:T,motion:ye?K:null,defaultMotions:ye?Z:null,activeKey:lt,onActive:ft,onInactive:dt,selectedKeys:vt,inlineIndent:Y,subMenuOpenDelay:R,subMenuCloseDelay:L,forceSubMenuRender:P,builtinPlacements:Q,triggerSubMenuAction:$,getPopupContainer:xt,itemIcon:ee,expandIcon:te,onItemClick:yt,onOpenChange:bt},r["createElement"](Ee.Provider,{value:ot},kt),r["createElement"]("div",{style:{display:"none"},"aria-hidden":!0},r["createElement"](be.Provider,{value:at},pe)))))})),Jr=Zr,$r=["className","title","eventKey","children"],Qr=["children"],ei=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),o=Object(l["a"])(e,$r),s=r["useContext"](ce),u=s.prefixCls,c="".concat(u,"-item-group");return r["createElement"]("li",Object(a["a"])({},o,{onClick:function(e){return e.stopPropagation()},className:d()(c,t)}),r["createElement"]("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),r["createElement"]("ul",{className:"".concat(c,"-list")},i))};function ti(e){var t=e.children,n=Object(l["a"])(e,Qr),i=_e(n.eventKey),a=je(t,i),o=xe();return o?a:r["createElement"](ei,Object(se["a"])(n,["warnKey"]),a)}function ni(e){var t=e.className,n=e.style,i=r["useContext"](ce),a=i.prefixCls,o=xe();return o?null:r["createElement"]("li",{className:d()("".concat(a,"-item-divider"),t),style:n})}var ri=Jr;ri.Item=Ne,ri.SubMenu=wr,ri.ItemGroup=ti,ri.Divider=ni;var ii=ri,ai={adjustX:1,adjustY:1},oi=[0,0],si={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-4],targetOffset:oi},topCenter:{points:["bc","tc"],overflow:ai,offset:[0,-4],targetOffset:oi},topRight:{points:["br","tr"],overflow:ai,offset:[0,-4],targetOffset:oi},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,4],targetOffset:oi},bottomCenter:{points:["tc","bc"],overflow:ai,offset:[0,4],targetOffset:oi},bottomRight:{points:["tr","br"],overflow:ai,offset:[0,4],targetOffset:oi}},ui=si,li=M["a"].ESC,ci=M["a"].TAB;function fi(e){var t=e.visible,n=e.setTriggerVisible,i=e.triggerRef,a=e.onVisibleChange,o=e.autoFocus,s=r["useRef"](!1),u=function(){var e,r,o,s;t&&i.current&&(null===(e=i.current)||void 0===e||null===(r=e.triggerRef)||void 0===r||null===(o=r.current)||void 0===o||null===(s=o.focus)||void 0===s||s.call(o),n(!1),"function"===typeof a&&a(!1))},l=function(){var e,t,n,r,a=Er(null===(e=i.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),o=a[0];return!!(null===o||void 0===o?void 0:o.focus)&&(o.focus(),s.current=!0,!0)},c=function(e){switch(e.keyCode){case li:u();break;case ci:var t=!1;s.current||(t=l()),t?e.preventDefault():u();break}};r["useEffect"]((function(){return t?(window.addEventListener("keydown",c),o&&Object(_["a"])(l,3),function(){window.removeEventListener("keydown",c),s.current=!1}):function(){s.current=!1}}),[t])}var di=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function hi(e,t){var n=e.arrow,i=void 0!==n&&n,a=e.prefixCls,u=void 0===a?"rc-dropdown":a,f=e.transitionName,h=e.animation,p=e.align,v=e.placement,m=void 0===v?"bottomLeft":v,g=e.placements,y=void 0===g?ui:g,b=e.getPopupContainer,x=e.showAction,w=e.hideAction,_=e.overlayClassName,E=e.overlayStyle,S=e.visible,k=e.trigger,M=void 0===k?["hover"]:k,T=e.autoFocus,A=Object(l["a"])(e,di),O=r["useState"](),R=Object(s["a"])(O,2),C=R[0],L=R[1],P="visible"in e?S:C,I=r["useRef"](null);r["useImperativeHandle"](t,(function(){return I.current})),fi({visible:P,setTriggerVisible:L,triggerRef:I,onVisibleChange:e.onVisibleChange,autoFocus:T});var N=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},D=function(t){var n=e.onOverlayClick;L(!1),n&&n(t)},j=function(t){var n=e.onVisibleChange;L(t),"function"===typeof n&&n(t)},F=function(){var e=N();return r["createElement"](r["Fragment"],null,i&&r["createElement"]("div",{className:"".concat(u,"-arrow")}),e)},U=function(){var t=e.overlay;return"function"===typeof t?F:F()},B=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},z=function(){var t=e.openClassName;return void 0!==t?t:"".concat(u,"-open")},H=function(){var t=e.children,n=t.props?t.props:{},i=d()(n.className,z());return P&&t?r["cloneElement"](t,{className:i}):t},G=w;return G||-1===M.indexOf("contextMenu")||(G=["click"]),r["createElement"](cr,Object(c["a"])(Object(c["a"])({builtinPlacements:y},A),{},{prefixCls:u,ref:I,popupClassName:d()(_,Object(o["a"])({},"".concat(u,"-show-arrow"),i)),popupStyle:E,action:M,showAction:x,hideAction:G||[],popupPlacement:m,popupAlign:p,popupTransitionName:f,popupAnimation:h,popupVisible:P,stretch:B()?"minWidth":"",popup:U(),onPopupVisibleChange:j,onPopupClick:D,getPopupContainer:b}),H())}var pi=r["forwardRef"](hi),vi=pi;function mi(e,t){var n=e.prefixCls,i=e.editable,a=e.locale,o=e.style;return i&&!1!==i.showAdd?r["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null}var gi=r["forwardRef"](mi);function yi(e,t){var n=e.prefixCls,i=e.id,a=e.tabs,u=e.locale,l=e.mobile,c=e.moreIcon,f=void 0===c?"More":c,h=e.moreTransitionName,p=e.style,v=e.className,m=e.editable,g=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,x=e.onTabClick,w=e.getPopupContainer,_=e.popupClassName,E=Object(r["useState"])(!1),S=Object(s["a"])(E,2),k=S[0],T=S[1],A=Object(r["useState"])(null),O=Object(s["a"])(A,2),R=O[0],C=O[1],L="".concat(i,"-more-popup"),P="".concat(n,"-dropdown"),I=null!==R?"".concat(L,"-").concat(R):null,N=null===u||void 0===u?void 0:u.dropdownAriaLabel;function D(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}var j=r["createElement"](ii,{onClick:function(e){var t=e.key,n=e.domEvent;x(t,n),T(!1)},prefixCls:"".concat(P,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[R],"aria-label":void 0!==N?N:"expanded dropdown"},a.map((function(e){var t=m&&!1!==e.closable&&!e.disabled;return r["createElement"](Ne,{key:e.key,id:"".concat(L,"-").concat(e.key),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(e.key),disabled:e.disabled},r["createElement"]("span",null,e.tab),t&&r["createElement"]("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),D(t,e.key)}},e.closeIcon||m.removeIcon||"\xd7"))})));function F(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===R}))||0,r=t.length,i=0;io?(i=n,S.current="x"):(i=r,S.current="y"),t(-i,-i)&&e.preventDefault()}var M=Object(r["useRef"])(null);M.current={onTouchStart:w,onTouchMove:_,onTouchEnd:E,onWheel:k},r["useEffect"]((function(){function t(e){M.current.onTouchStart(e)}function n(e){M.current.onTouchMove(e)}function r(e){M.current.onTouchEnd(e)}function i(e){M.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",i),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function Mi(){var e=Object(r["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,r["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function Ti(e,t){var n=r["useRef"](e),i=r["useState"]({}),a=Object(s["a"])(i,2),o=a[1];function u(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}return[n.current,u]}var Ai=function(e){var t,n=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var o={};return a&&"object"===Object(u["a"])(a)&&!r["isValidElement"](a)?o=a:o.right=a,"right"===n&&(t=o.right),"left"===n&&(t=o.left),t?r["createElement"]("div",{className:"".concat(i,"-extra-content")},t):null};function Oi(e,t){var n,i=r["useContext"](xi),u=i.prefixCls,l=i.tabs,f=e.className,h=e.style,p=e.id,v=e.animated,m=e.activeKey,g=e.rtl,y=e.extra,b=e.editable,x=e.locale,M=e.tabPosition,T=e.tabBarGutter,O=e.children,C=e.onTabClick,P=e.onTabScroll,I=Object(r["useRef"])(),N=Object(r["useRef"])(),D=Object(r["useRef"])(),j=Object(r["useRef"])(),F=Mi(),U=Object(s["a"])(F,2),B=U[0],z=U[1],H="top"===M||"bottom"===M,G=Ti(0,(function(e,t){H&&P&&P({direction:e>t?"left":"right"})})),V=Object(s["a"])(G,2),W=V[0],q=V[1],X=Ti(0,(function(e,t){!H&&P&&P({direction:e>t?"top":"bottom"})})),Y=Object(s["a"])(X,2),K=Y[0],Z=Y[1],J=Object(r["useState"])(0),$=Object(s["a"])(J,2),Q=$[0],ee=$[1],te=Object(r["useState"])(0),ne=Object(s["a"])(te,2),re=ne[0],ie=ne[1],ae=Object(r["useState"])(null),oe=Object(s["a"])(ae,2),se=oe[0],ue=oe[1],le=Object(r["useState"])(null),ce=Object(s["a"])(le,2),fe=ce[0],de=ce[1],he=Object(r["useState"])(0),pe=Object(s["a"])(he,2),ve=pe[0],me=pe[1],ge=Object(r["useState"])(0),ye=Object(s["a"])(ge,2),be=ye[0],xe=ye[1],we=k(new Map),_e=Object(s["a"])(we,2),Ee=_e[0],Se=_e[1],ke=R(l,Ee,Q),Me="".concat(u,"-nav-operations-hidden"),Te=0,Ae=0;function Oe(e){return eAe?Ae:e}H?g?(Te=0,Ae=Math.max(0,Q-se)):(Te=Math.min(0,se-Q),Ae=0):(Te=Math.min(0,fe-re),Ae=0);var Re=Object(r["useRef"])(),Ce=Object(r["useState"])(),Le=Object(s["a"])(Ce,2),Pe=Le[0],Ie=Le[1];function Ne(){Ie(Date.now())}function De(){window.clearTimeout(Re.current)}function je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=ke.get(e)||{width:0,height:0,left:0,right:0,top:0};if(H){var n=W;g?t.rightW+se&&(n=t.right+t.width-se):t.left<-W?n=-t.left:t.left+t.width>-W+se&&(n=-(t.left+t.width-se)),Z(0),q(Oe(n))}else{var r=K;t.top<-K?r=-t.top:t.top+t.height>-K+fe&&(r=-(t.top+t.height-fe)),q(0),Z(Oe(r))}}ki(I,(function(e,t){function n(e,t){e((function(e){var n=Oe(e+t);return n}))}if(H){if(se>=Q)return!1;n(q,e)}else{if(fe>=re)return!1;n(Z,t)}return De(),Ne(),!0})),Object(r["useEffect"])((function(){return De(),Pe&&(Re.current=window.setTimeout((function(){Ie(0)}),100)),De}),[Pe]);var Fe=L(ke,{width:se,height:fe,left:W,top:K},{width:Q,height:re},{width:ve,height:be},Object(c["a"])(Object(c["a"])({},e),{},{tabs:l})),Ue=Object(s["a"])(Fe,2),Be=Ue[0],ze=Ue[1],He={};"top"===M||"bottom"===M?He[g?"marginRight":"marginLeft"]=T:He.marginTop=T;var Ge=l.map((function(e,t){var n=e.key;return r["createElement"](A,{id:p,prefixCls:u,key:n,tab:e,style:0===t?void 0:He,closable:e.closable,editable:b,active:n===m,renderWrapper:O,removeAriaLabel:null===x||void 0===x?void 0:x.removeAriaLabel,ref:B(n),onClick:function(e){C(n,e)},onRemove:function(){z(n)},onFocus:function(){je(n),Ne(),I.current&&(g||(I.current.scrollLeft=0),I.current.scrollTop=0)}})})),Ve=S((function(){var e,t,n,r,i,a,o=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,s=(null===(t=I.current)||void 0===t?void 0:t.offsetHeight)||0,u=(null===(n=j.current)||void 0===n?void 0:n.offsetWidth)||0,c=(null===(r=j.current)||void 0===r?void 0:r.offsetHeight)||0;ue(o),de(s),me(u),xe(c);var f=((null===(i=N.current)||void 0===i?void 0:i.offsetWidth)||0)-u,d=((null===(a=N.current)||void 0===a?void 0:a.offsetHeight)||0)-c;ee(f),ie(d),Se((function(){var e=new Map;return l.forEach((function(t){var n=t.key,r=B(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),We=l.slice(0,Be),qe=l.slice(ze+1),Xe=[].concat(Object(w["a"])(We),Object(w["a"])(qe)),Ye=Object(r["useState"])(),Ke=Object(s["a"])(Ye,2),Ze=Ke[0],Je=Ke[1],$e=ke.get(m),Qe=Object(r["useRef"])();function et(){_["a"].cancel(Qe.current)}Object(r["useEffect"])((function(){var e={};return $e&&(H?(g?e.right=$e.right:e.left=$e.left,e.width=$e.width):(e.top=$e.top,e.height=$e.height)),et(),Qe.current=Object(_["a"])((function(){Je(e)})),et}),[$e,H,g]),Object(r["useEffect"])((function(){je()}),[m,$e,ke,H]),Object(r["useEffect"])((function(){Ve()}),[g,T,m,l.map((function(e){return e.key})).join("_")]);var tt,nt,rt,it,at=!!Xe.length,ot="".concat(u,"-nav-wrap");return H?g?(nt=W>0,tt=W+see.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>16,u=i>>>16,l=(s*o>>>0)+(a*o>>>16);return s*u+(l>>>16)+((a*u>>>0)+(l&n)>>>16)}})},a57n:function(e,t,n){var r=n("dG/n");r("search")},adU4:function(e,t,n){var r=n("y1pI"),i=Array.prototype,a=i.splice;function o(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():a.call(t,n,1),--this.size,!0}e.exports=o},afA6:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},identifier:"docs-demo"}},"Collada-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].Collada,{src:"./elf.dae"})))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => {\n return (\n <>\n
\n \n
\n \n );\n};"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},componentName:"Collada",identifier:"Collada-demo"}},"FBX-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].FBX,{src:"./Samba%20Dancing.fbx"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},componentName:"FBX",identifier:"FBX-demo"}},"GLTF-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].GLTF,{src:"./Duck.gltf"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},componentName:"GLTF",identifier:"GLTF-demo"}},"background-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].Collada,{src:"./elf.dae",backgroundColor:"aliceblue"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},identifier:"background-demo"}},"rotation-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].Collada,{src:"./elf.dae",isRotation:!0})))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => {\n return (\n <>\n
\n \n
\n \n );\n};"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},identifier:"rotation-demo"}},"snapshot-demo":{component:function(){var e=n("K+nK")["default"],t=n("3PQu")["default"],r=t(n("q1tI")),i=e(n("/7QA")),a=function(){var e=(0,r.useRef)();return r["default"].createElement(r["default"].Fragment,null,r["default"].createElement("button",{onClick:function(){var t=e.current.getSnapshot(),n=document.createElement("a");n.href=t,n.download=!0,n.click()}},"\u83b7\u53d6\u622a\u56fe"),r["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},r["default"].createElement(i["default"].Collada,{src:"./elf.dae",ref:e})))};return r["default"].createElement(a)},previewerProps:{sources:{_:{tsx:"import React, { useRef } from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => {\n const model = useRef();\n return (\n <>\n {\n const str = model.current.getSnapshot();\n const a = document.createElement('a');\n a.href = str;\n a.download = true;\n a.click();\n }}\n >\n \u83b7\u53d6\u622a\u56fe\n \n
\n \n
\n \n );\n};"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},identifier:"snapshot-demo"}},"OBJ-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].OBJ,{src:"./tree.obj"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},componentName:"OBJ",identifier:"OBJ-demo"}},"PLY-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].PLY,{src:"./Lucy100k.ply"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},componentName:"PLY",identifier:"PLY-demo"}},"STL-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].STL,{src:"./gear.stl"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3d-model';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3d-model":{version:"1.0.0"}},componentName:"STL",identifier:"STL-demo"}}},u=n("x2v5"),l=n("KcUY"),c=n.n(l);t["default"]=e=>a.a.createElement(c.a,r({},e,{config:o,demos:s,apis:u}))},afO8:function(e,t,n){var r,i,a,o=n("f5p1"),s=n("2oRo"),u=n("hh1v"),l=n("kRJp"),c=n("UTVS"),f=n("93I0"),d=n("0BK2"),h=s.WeakMap,p=function(e){return a(e)?i(e):r(e,{})},v=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(o){var m=new h,g=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},i=function(e){return g.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var x=f("state");d[x]=!0,r=function(e,t){return l(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},a=function(e){return c(e,x)}}e.exports={set:r,get:i,has:a,enforce:p,getterFor:v}},apDx:function(e,t,n){var r=n("dG/n");r("dispose")},b1O7:function(e,t,n){var r=n("g6v/"),i=n("33Wh"),a=n("/GqU"),o=n("0eef").f,s=function(e){return function(t){var n,s=a(t),u=i(s),l=u.length,c=0,f=[];while(l>c)n=u[c++],r&&!o.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},b80T:function(e,t,n){var r=n("UNi/"),i=n("03A+"),a=n("Z0cm"),o=n("DSRE"),s=n("wJg7"),u=n("c6wG"),l=Object.prototype,c=l.hasOwnProperty;function f(e,t){var n=a(e),l=!n&&i(e),f=!n&&!l&&o(e),d=!n&&!l&&!f&&u(e),h=n||l||f||d,p=h?r(e.length,String):[],v=p.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||p.push(m);return p}e.exports=f},bCY9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("LtsZ"),i=new r["Plugin"]({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu"]})},bFeb:function(e,t,n){var r=n("I+eb"),i=n("2oRo");r({global:!0},{globalThis:i})},bT9E:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VTBJ");function i(e,t){var n=Object(r["a"])({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},bWFh:function(e,t,n){"use strict";var r=n("I+eb"),i=n("2oRo"),a=n("lMq5"),o=n("busE"),s=n("8YOa"),u=n("ImZN"),l=n("GarU"),c=n("hh1v"),f=n("0Dky"),d=n("HH4o"),h=n("1E5z"),p=n("cVYH");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=i[e],b=y&&y.prototype,x=y,w={},_=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))x=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(a(e,!0)){var E=new x,S=E[g](m?{}:-0,1)!=E,k=f((function(){E.has(1)})),M=d((function(e){new y(e)})),T=!m&&f((function(){var e=new y,t=5;while(t--)e[g](t,t);return!e.has(-0)}));M||(x=t((function(t,n){l(t,x,e);var r=p(new y,t,x);return void 0!=n&&u(n,r[g],r,v),r})),x.prototype=b,b.constructor=x),(k||T)&&(_("delete"),_("has"),v&&_("get")),(T||S)&&_(g),m&&b.clear&&delete b.clear}return w[e]=x,r({global:!0,forced:x!=y},w),h(x,e),m||n.setStrong(x,e,v),x}},bYHP:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=l(n("q1tI")),a=n("LtsZ"),o=s(n("hKI/"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i["default"]=e,n&&n.set(e,i),i}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n128||n===e.anchors.length-1})),n=this.anchors[Math.max(0,t-1)],r=n.parentElement.id;this.listeners.forEach((function(e){return e(r)}))}},{key:"watch",value:function(e){0===this.anchors.length&&"undefined"!==typeof window&&window.addEventListener("scroll",this.listener),this.anchors.push(e),this.listener()}},{key:"unwatch",value:function(e){this.anchors.splice(this.anchors.findIndex((function(t){return t===e})),1),0===this.anchors.length&&"undefined"!==typeof window&&window.removeEventListener("scroll",this.listener)}},{key:"listen",value:function(e){this.listeners.push(e)}},{key:"unlisten",value:function(e){this.listeners.splice(this.listeners.findIndex((function(t){return t===e})),1)}}]),e}());function w(e){return e.offsetTop+(e.offsetParent?w(e.offsetParent):0)}var _=function e(t){var n,r=(null===(n=t.to.match(/(#[^&?]*)/))||void 0===n?void 0:n[1])||"",o=(0,i.useRef)(null),s=(0,i.useState)(!1),u=f(s,2),l=u[0],d=u[1];return(0,i.useEffect)((function(){var e,t;if(["H1","H2","H3"].includes(null===(e=o.current)||void 0===e||null===(t=e.parentElement)||void 0===t?void 0:t.tagName)&&o.current.parentElement.id){var n=o.current;return x.watch(n),function(){x.unwatch(n)}}var i=function(e){d(r==="#".concat(e))};return x.listen(i),function(){return x.unlisten(i)}}),[]),i["default"].createElement(a.NavLink,c({},t,{ref:o,onClick:function(){return e.scrollToAnchor(r.substring(1))},isActive:function(){return l}}))};_.scrollToAnchor=function(e){window.requestAnimationFrame((function(){var t=document.getElementById(decodeURIComponent(e));t&&window.scrollTo(0,w(t)-100)}))};var E=_;t["default"]=E},bdeN:function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=n("4WOD"),s=i.has,u=i.toKey,l=function(e,t,n){var r=s(e,t,n);if(r)return!0;var i=o(t);return null!==i&&l(e,i,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return l(e,a(t),n)}})},bdgK:function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype["delete"]=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=l.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new T(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var R=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:O}();t["a"]=R}).call(this,n("IyRk"))},beRK:function(e,t,n){"use strict";function r(){var e=n("q1tI");return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.getDemoUrl=t.getDemoRouteName=t["default"]=void 0;var i=a(n("nLCz"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return f(e)||c(e,t)||u(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw o}}}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},busE:function(e,t,n){var r=n("2oRo"),i=n("kRJp"),a=n("UTVS"),o=n("zk60"),s=n("iSVu"),u=n("afO8"),l=u.get,c=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),c(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"c+Xe":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s}));var r=n("U8pU"),i=n("TOwV");n("YrtM");function a(e,t){"function"===typeof e?e(t):"object"===Object(r["a"])(e)&&e&&"current"in e&&(e.current=t)}function o(){for(var e=arguments.length,t=new Array(e),n=0;n1?arguments[1]:void 0,3),i=new(l(t,a("Set"))),d=s(i.add);return f(n,(function(e){d.call(i,r(e,e,t))}),void 0,!1,!0),i}})},cvf0:function(e,t,n){"use strict";var r=n("67WC").exportTypedArrayMethod,i=n("0Dky"),a=n("2oRo"),o=a.Uint8Array,s=o&&o.prototype||{},u=[].toString,l=[].join;i((function(){u.call({})}))&&(u=function(){return l.call(this)});var c=s.toString!=u;r("toString",u,c)},d6cI:function(e,t){var n=1/0,r=Math.abs,i=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2,u=function(e,t,u){var l,c,f,d=new Array(u),h=8*u-t-1,p=(1<>1,m=23===t?i(2,-24)-i(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for(e=r(e),e!=e||e===n?(c=e!=e?1:0,l=p):(l=a(o(e)/s),e*(f=i(2,-l))<1&&(l--,f*=2),e+=l+v>=1?m/f:m*i(2,1-v),e*f>=2&&(l++,f/=2),l+v>=p?(c=0,l=p):l+v>=1?(c=(e*f-1)*i(2,t),l+=v):(c=e*i(2,v-1)*i(2,t),l=0));t>=8;d[y++]=255&c,c/=256,t-=8);for(l=l<0;d[y++]=255&l,l/=256,h-=8);return d[--y]|=128*g,d},l=function(e,t){var r,a=e.length,o=8*a-t-1,s=(1<>1,l=o-7,c=a-1,f=e[c--],d=127&f;for(f>>=7;l>0;d=256*d+e[c],c--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[c],c--,l-=8);if(0===d)d=1-u;else{if(d===s)return r?NaN:f?-n:n;r+=i(2,t),d-=u}return(f?-1:1)*r*i(2,d-t)};e.exports={pack:u,unpack:l}},"dBg+":function(e,t){t.f=Object.getOwnPropertySymbols},dD9F:function(e,t,n){var r=n("NykK"),i=n("shjB"),a=n("ExA7"),o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",E="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",M="[object Uint8Array]",T="[object Uint8ClampedArray]",A="[object Uint16Array]",O="[object Uint32Array]",R={};function C(e){return a(e)&&i(e.length)&&!!R[r(e)]}R[w]=R[_]=R[E]=R[S]=R[k]=R[M]=R[T]=R[A]=R[O]=!0,R[o]=R[s]=R[b]=R[u]=R[x]=R[l]=R[c]=R[f]=R[d]=R[h]=R[p]=R[v]=R[m]=R[g]=R[y]=!1,e.exports=C},dEAq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnchorLink",{enumerable:!0,get:function(){return o["default"]}}),Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"NavLink",{enumerable:!0,get:function(){return a["default"]}}),Object.defineProperty(t,"context",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"getDemoUrl",{enumerable:!0,get:function(){return h.getDemoUrl}}),Object.defineProperty(t,"useApiData",{enumerable:!0,get:function(){return p["default"]}}),Object.defineProperty(t,"useCodeSandbox",{enumerable:!0,get:function(){return f["default"]}}),Object.defineProperty(t,"useCopy",{enumerable:!0,get:function(){return u["default"]}}),Object.defineProperty(t,"useDemoUrl",{enumerable:!0,get:function(){return h["default"]}}),Object.defineProperty(t,"useLocaleProps",{enumerable:!0,get:function(){return d["default"]}}),Object.defineProperty(t,"useMotions",{enumerable:!0,get:function(){return c["default"]}}),Object.defineProperty(t,"usePrefersColor",{enumerable:!0,get:function(){return m["default"]}}),Object.defineProperty(t,"useRiddle",{enumerable:!0,get:function(){return l["default"]}}),Object.defineProperty(t,"useSearch",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(t,"useTSPlaygroundUrl",{enumerable:!0,get:function(){return v["default"]}});var r=b(n("nLCz")),i=b(n("zqmC")),a=b(n("6asN")),o=b(n("bYHP")),s=b(n("t/kZ")),u=b(n("dfPH")),l=b(n("o0kM")),c=b(n("zYLY")),f=b(n("r1Q5")),d=b(n("U/TZ")),h=y(n("beRK")),p=b(n("3QDa")),v=b(n("7sf/")),m=b(n("2N97"));function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r["default"]=e,n&&n.set(e,r),r}function b(e){return e&&e.__esModule?e:{default:e}}},"dG/n":function(e,t,n){var r=n("Qo9l"),i=n("UTVS"),a=n("5Tg+"),o=n("m/L8").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},dI71:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("s4An");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r["a"])(e,t)}},dNT4:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return!u(n,(function(e){if(!r(e,e,t))return u.stop()}),void 0,!1,!0).stopped}})},dOgj:function(e,t,n){"use strict";var r=n("I+eb"),i=n("2oRo"),a=n("g6v/"),o=n("iqeF"),s=n("67WC"),u=n("Yhre"),l=n("GarU"),c=n("XGwC"),f=n("kRJp"),d=n("UMSQ"),h=n("CyXQ"),p=n("GC2F"),v=n("wE6v"),m=n("UTVS"),g=n("9d/t"),y=n("hh1v"),b=n("fHMY"),x=n("0rvr"),w=n("JBy8").f,_=n("oHi+"),E=n("tycR").forEach,S=n("JiZb"),k=n("m/L8"),M=n("Bs8V"),T=n("afO8"),A=n("cVYH"),O=T.get,R=T.set,C=k.f,L=M.f,P=Math.round,I=i.RangeError,N=u.ArrayBuffer,D=u.DataView,j=s.NATIVE_ARRAY_BUFFER_VIEWS,F=s.TYPED_ARRAY_TAG,U=s.TypedArray,B=s.TypedArrayPrototype,z=s.aTypedArrayConstructor,H=s.isTypedArray,G="BYTES_PER_ELEMENT",V="Wrong length",W=function(e,t){var n=0,r=t.length,i=new(z(e))(r);while(r>n)i[n]=t[n++];return i},q=function(e,t){C(e,t,{get:function(){return O(this)[t]}})},X=function(e){var t;return e instanceof N||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Y=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},K=function(e,t){return Y(e,t=v(t,!0))?c(2,e[t]):L(e,t)},Z=function(e,t,n){return!(Y(e,t=v(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?C(e,t,n):(e[t]=n.value,e)};a?(j||(M.f=K,k.f=Z,q(B,"buffer"),q(B,"byteOffset"),q(B,"byteLength"),q(B,"length")),r({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:K,defineProperty:Z}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",u="get"+e,c="set"+e,v=i[s],m=v,g=m&&m.prototype,k={},M=function(e,t){var n=O(e);return n.view[u](t*a+n.byteOffset,!0)},T=function(e,t,r){var i=O(e);n&&(r=(r=P(r))<0?0:r>255?255:255&r),i.view[c](t*a+i.byteOffset,r,!0)},L=function(e,t){C(e,t,{get:function(){return M(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};j?o&&(m=t((function(e,t,n,r){return l(e,m,s),A(function(){return y(t)?X(t)?void 0!==r?new v(t,p(n,a),r):void 0!==n?new v(t,p(n,a)):new v(t):H(t)?W(m,t):_.call(m,t):new v(h(t))}(),e,m)})),x&&x(m,U),E(w(v),(function(e){e in m||f(m,e,v[e])})),m.prototype=g):(m=t((function(e,t,n,r){l(e,m,s);var i,o,u,c=0,f=0;if(y(t)){if(!X(t))return H(t)?W(m,t):_.call(m,t);i=t,f=p(n,a);var v=t.byteLength;if(void 0===r){if(v%a)throw I(V);if(o=v-f,o<0)throw I(V)}else if(o=d(r)*a,o+f>v)throw I(V);u=o/a}else u=h(t),o=u*a,i=new N(o);R(e,{buffer:i,byteOffset:f,byteLength:o,length:u,view:new D(i)});while(ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n>16,u=i>>16,l=(s*o>>>0)+(a*o>>>16);return s*u+(l>>16)+((a*u>>>0)+(l&n)>>16)}})},ebwN:function(e,t,n){var r=n("Cwc5"),i=n("Kz5y"),a=r(i,"Map");e.exports=a},ekgI:function(e,t,n){var r=n("YESw"),i=Object.prototype,a=i.hasOwnProperty;function o(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}e.exports=o},ewvW:function(e,t,n){var r=n("HYAF");e.exports=function(e){return Object(r(e))}},"f/k9":function(e,t,n){"use strict";var r=n("MgzW"),i=n("q1tI");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var o=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),o({getCurrentValue:t,subscribe:n,value:a})),i.useDebugValue(a),i.useEffect((function(){function e(){if(!i){var e=t();o((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,a=n(e);return e(),function(){i=!0,a()}}),[t,n]),a}},f5p1:function(e,t,n){var r=n("2oRo"),i=n("iSVu"),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(i(a))},fGT3:function(e,t,n){var r=n("4kuk"),i=n("Xi7e"),a=n("ebwN");function o(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}e.exports=o},fHMY:function(e,t,n){var r,i=n("glrk"),a=n("N+g0"),o=n("eDl+"),s=n("0BK2"),u=n("G+Rx"),l=n("zBJ4"),c=n("93I0"),f=">",d="<",h="prototype",p="script",v=c("IE_PROTO"),m=function(){},g=function(e){return d+p+f+e+d+"/"+p+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?y(r):b();var e=o.length;while(e--)delete x[h][o[e]];return x()};s[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[h]=i(e),n=new m,m[h]=null,n[v]=e):n=x(),void 0===t?n:a(n,t)}},fN96:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ZUd8").charAt;r({target:"String",proto:!0},{at:function(e){return i(this,e)}})},"fR/l":function(e,t,n){var r=n("CH3K"),i=n("Z0cm");function a(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}e.exports=a},fVI1:function(e,t,n){},fXLg:function(e,t,n){"use strict";var r=n("glrk"),i=n("HAuM");e.exports=function(){for(var e=r(this),t=i(e.add),n=0,a=arguments.length;n{var t=e.demos,n=t["OBJ-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["OBJ-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},gOCb:function(e,t,n){var r=n("dG/n");r("replace")},gXIK:function(e,t,n){var r=n("dG/n");r("toPrimitive")},gYJb:function(e,t,n){var r=n("I+eb"),i=n("p5mE"),a=n("0GbY"),o=n("fHMY"),s=function(){var e=a("Object","freeze");return e?e(o(null)):o(null)};r({global:!0},{compositeKey:function(){return i.apply(Object,arguments).get("object",s)}})},gdVl:function(e,t,n){"use strict";var r=n("ewvW"),i=n("I8vh"),a=n("UMSQ");e.exports=function(e){var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);while(l>s)t[s++]=e;return t}},gg6r:function(e,t,n){"use strict";var r=n("I+eb"),i=n("HAuM"),a=n("8GlL"),o=n("5mdu"),s=n("ImZN");r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=o((function(){var n=i(t.resolve),a=[],o=0,u=1;s(e,(function(e){var i=o++,s=!1;a.push(void 0),u++,n.call(t,e).then((function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return l.error&&u(l.value),n.promise}})},glrk:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},gvgV:function(e,t,n){"use strict";var r=n("67WC"),i=n("TWQb").includes,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("includes",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},h0XC:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},hBjN:function(e,t,n){"use strict";var r=n("wE6v"),i=n("m/L8"),a=n("XGwC");e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},hByQ:function(e,t,n){"use strict";var r=n("14Sl"),i=n("glrk"),a=n("HYAF"),o=n("Ep9I"),s=n("FMNM");r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),u=String(this),l=a.lastIndex;o(l,0)||(a.lastIndex=0);var c=s(a,u);return o(a.lastIndex,l)||(a.lastIndex=l),null===c?-1:c.index}]}))},hDyC:function(e,t,n){"use strict";var r=n("I+eb"),i=n("DMt2").end,a=n("mgyK");r({target:"String",proto:!0,forced:a},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},hJnp:function(e,t,n){},"hKI/":function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),h=Object.prototype,p=h.toString,v=Math.max,m=Math.min,g=function(){return d.Date.now()};function y(e,t,r){var i,a,o,s,u,l,c=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function p(t){var n=i,r=a;return i=a=void 0,c=t,s=e.apply(r,n),s}function y(e){return c=e,u=setTimeout(_,t),f?p(e):s}function b(e){var n=e-l,r=e-c,i=t-n;return d?m(i,o-r):i}function w(e){var n=e-l,r=e-c;return void 0===l||n>=t||n<0||d&&r>=o}function _(){var e=g();if(w(e))return S(e);u=setTimeout(_,b(e))}function S(e){return u=void 0,h&&i?p(e):(i=a=void 0,s)}function k(){void 0!==u&&clearTimeout(u),c=0,i=l=a=u=void 0}function M(){return void 0===u?s:S(g())}function T(){var e=g(),n=w(e);if(i=arguments,a=this,l=e,n){if(void 0===u)return y(l);if(d)return u=setTimeout(_,t),p(l)}return void 0===u&&(u=setTimeout(_,t)),s}return t=E(t)||0,x(r)&&(f=!!r.leading,d="maxWait"in r,o=d?v(E(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),T.cancel=k,T.flush=M,T}function b(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(n);return x(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),y(e,t,{leading:i,maxWait:t,trailing:a})}function x(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}function _(e){return"symbol"==typeof e||w(e)&&p.call(e)==i}function E(e){if("number"==typeof e)return e;if(_(e))return r;if(x(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=x(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}e.exports=b}).call(this,n("IyRk"))},hMMk:function(e,t,n){var r=n("dOgj");r("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"hOG+":function(e,t){(function(t){e.exports=function(){var e={311:function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}},n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={exports:{}},a=!0;try{e[t](i,i.exports,r),a=!1}finally{a&&delete n[t]}return i.exports}return r.ab=t+"/",r(311)}()}).call(this,"/")},hcok:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=o(this),n=new(u(t,a("Set")))(t),r=s(n["delete"]);return l(e,(function(e){r.call(n,e)})),n}})},hh1v:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},i4U9:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},i8i4:function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("yl30")},iIM6:function(e,t,n){"use strict";var r=n("g6v/"),i=n("RNIs"),a=n("ewvW"),o=n("UMSQ"),s=n("m/L8").f;r&&!("lastIndex"in[])&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e.length);return 0==t?0:t-1}}),i("lastIndex"))},iOk6:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["FBX-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["FBX-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},iSVu:function(e,t,n){var r=n("xs3f"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},ihrJ:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ImZN"),a=n("HAuM");r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;a(t);var r=a(n.has),o=a(n.get),s=a(n.set);return i(e,(function(e){var i=t(e);r.call(n,i)?o.call(n,i).push(e):s.call(n,i,[e])})),n}})},ilnZ:function(e,t,n){var r=n("dOgj");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},inlA:function(e,t,n){"use strict";var r=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),o=n("WjRb"),s=n("HYAF"),u=n("qxPZ"),l=n("xDBR"),c="".endsWith,f=Math.min,d=u("endsWith"),h=!l&&!d&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!h&&!d},{endsWith:function(e){var t=String(s(this));o(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:f(a(n),r),u=String(e);return c?c.call(t,u,i):t.slice(i-u.length,i)===u}})},iqWW:function(e,t,n){"use strict";var r=n("ZUd8").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},iqeF:function(e,t,n){var r=n("2oRo"),i=n("0Dky"),a=n("HH4o"),o=n("67WC").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;e.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},iwkZ:function(e,t,n){var r=n("dOgj");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"j+VE":function(e,t,n){n("bFeb")},"k+1r":function(e,t,n){var r=n("QkVE");function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},kCkZ:function(e,t,n){"use strict";var r=n("I+eb"),i=n("8GlL"),a=n("5mdu");r({target:"Promise",stat:!0},{try:function(e){var t=i.f(this),n=a(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},kOOl:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},kRJp:function(e,t,n){var r=n("g6v/"),i=n("m/L8"),a=n("XGwC");e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},kekF:function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},kmMV:function(e,t,n){"use strict";var r=n("rW0t"),i=n("n3/R"),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,u=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],f=u||c||l;f&&(s=function(e){var t,n,i,s,f=this,d=l&&f.sticky,h=r.call(f),p=f.source,v=0,m=e;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),m=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,v++),n=new RegExp("^(?:"+p+")",h)),c&&(n=new RegExp("^"+p+"$(?!\\s)",h)),u&&(t=f.lastIndex),i=a.call(d?n:f,m),d?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:u&&i&&(f.lastIndex=f.global?i.index+i[0].length:t),c&&i&&i.length>1&&o.call(i[0],n,(function(){for(s=1;s1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),d=s(i.set);return f(n,(function(e,n){r(n,e,t)&&d.call(i,e,n)}),void 0,!0,!0),i}})},lEou:function(e,t,n){var r=n("dG/n");r("toStringTag")},lMq5:function(e,t,n){var r=n("0Dky"),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},lSCD:function(e,t,n){var r=n("NykK"),i=n("GoyQ"),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function l(e){if(!i(e))return!1;var t=r(e);return t==o||t==s||t==a||t==u}e.exports=l},lehK:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{iaddh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},ljhN:function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},lmH4:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("mh/w"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=u(this),n=o(e),r=n.has;return"function"!=typeof r&&(n=new(a("Set"))(e),r=s(n.has)),!l(t,(function(e){if(!1===r.call(n,e))return l.stop()}),void 0,!1,!0).stopped}})},"m+aA":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("i8i4"),i=n.n(r);function a(e){return e instanceof HTMLElement?e:i.a.findDOMNode(e)}},"m/L8":function(e,t,n){var r=n("g6v/"),i=n("DPsx"),a=n("glrk"),o=n("wE6v"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m92n:function(e,t,n){var r=n("glrk");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var a=e["return"];throw void 0!==a&&r(a.call(e)),o}}},mGGf:function(e,t,n){"use strict";n("4mDm");var r=n("I+eb"),i=n("0GbY"),a=n("DTth"),o=n("busE"),s=n("4syw"),u=n("1E5z"),l=n("ntOU"),c=n("afO8"),f=n("GarU"),d=n("UTVS"),h=n("A2ZE"),p=n("9d/t"),v=n("glrk"),m=n("hh1v"),g=n("fHMY"),y=n("XGwC"),b=n("mh/w"),x=n("NaFW"),w=n("tiKp"),_=i("fetch"),E=i("Headers"),S=w("iterator"),k="URLSearchParams",M=k+"Iterator",T=c.set,A=c.getterFor(k),O=c.getterFor(M),R=/\+/g,C=Array(4),L=function(e){return C[e-1]||(C[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},I=function(e){var t=e.replace(R," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(L(n--),P);return t}},N=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(e){return D[e]},F=function(e){return encodeURIComponent(e).replace(N,j)},U=function(e,t){if(t){var n,r,i=t.split("&"),a=0;while(a0?arguments[0]:void 0,c=this,h=[];if(T(c,{type:k,entries:h,updateURL:function(){},updateSearchParams:B}),void 0!==l)if(m(l))if(e=x(l),"function"===typeof e){t=e.call(l),n=t.next;while(!(r=n.call(t)).done){if(i=b(v(r.value)),a=i.next,(o=a.call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");h.push({key:o.value+"",value:s.value+""})}}else for(u in l)d(l,u)&&h.push({key:u,value:l[u]+""});else U(h,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},V=G.prototype;s(V,{append:function(e,t){z(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){z(arguments.length,1);var t=A(this),n=t.entries,r=e+"",i=0;while(ie.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),i=0;while(i1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===k&&(r=t.headers?new E(t.headers):new E,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),_.apply(this,i)}}),e.exports={URLSearchParams:G,getState:A}},mGKP:function(e,t,n){var r=n("EdiO");function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},ma9I:function(e,t,n){"use strict";var r=n("I+eb"),i=n("0Dky"),a=n("6LWA"),o=n("hh1v"),s=n("ewvW"),u=n("UMSQ"),l=n("hBjN"),c=n("ZfDv"),f=n("Hd5f"),d=n("tiKp"),h=n("LQDL"),p=d("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=h>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},x=!g||!y;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,i,a,o=s(this),f=c(o,0),d=0;for(t=-1,r=arguments.length;tv)throw TypeError(m);for(n=0;n=v)throw TypeError(m);l(f,d++,a)}return f.length=d,f}})},mdPL:function(e,t,n){(function(e){var r=n("WFqU"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u}).call(this,n("hOG+")(e))},mdU6:function(e,t,n){},mgyK:function(e,t,n){var r=n("NC/Y");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},"mh/w":function(e,t,n){var r=n("glrk"),i=n("NaFW");e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"n3/R":function(e,t,n){"use strict";var r=n("0Dky");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},n5b4:function(e,t,n){var r=n("I+eb"),i=n("2oRo"),a=n("tXUg"),o=n("xrYK"),s=i.process,u="process"==o(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=u&&s.domain;a(t?t.bind(e):e)}})},n5pg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("Sssf"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop(e)}),void 0,!0,!0).result}})},nIe3:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("A2ZE"),l=n("SEBh"),c=n("Sssf"),f=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),d=s(i.set);return f(n,(function(e,n){d.call(i,r(n,e,t),n)}),void 0,!0,!0),i}})},nLCz:function(e,t,n){"use strict";function r(){var e=i(n("q1tI"));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=r()["default"].createContext({config:{mode:"doc",title:"",navs:{},menus:{},locales:[],repository:{branch:"master"},theme:{}},meta:{title:""},menu:[],nav:[],base:"",routes:[],apis:{},demos:{}});t["default"]=a},nmnc:function(e,t,n){var r=n("Kz5y"),i=r.Symbol;e.exports=i},ntOU:function(e,t,n){"use strict";var r=n("rpNk").IteratorPrototype,i=n("fHMY"),a=n("XGwC"),o=n("1E5z"),s=n("P4y1"),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=u,e}},nvu9:function(e,t,n){"use strict";t.__esModule=!0,t.getParameters=void 0;var r=n("e9O8");t.getParameters=r.getParameters},ny8l:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},o0kM:function(e,t,n){"use strict";var r=n("dmwd")["default"],i=n("5wUe")["default"];function a(){var e=n("q1tI");return a=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n, mountNode);"),t}var b=function(e){var t=(0,a().useState)(),n=l(t,2),o=n[0],u=n[1],c=g();return(0,a().useEffect)((function(){if(e&&c&&1===Object.keys(e.sources).length){var t,n=document.createElement("form"),a=document.createElement("input");return n.method="POST",n.target="_blank",n.style.display="none",n.action=m,n.appendChild(a),n.setAttribute("data-demo",e.title||""),a.name="data",a.value=JSON.stringify({title:e.titlle,js:y(e),css:Object.entries(e.dependencies).filter((function(e){var t=i(e,2),n=t[1];return n.css})).map((function(e){var t=i(e,2),n=t[0],r=t[1],a=r.version,o=r.css;return"@import '~".concat(o.replace(new RegExp("^(".concat(n,")")),"$1@".concat(a)),"';")})).concat(e.background?"body {\n background: ".concat(e.background,";\n}"):"").join("\n"),json:JSON.stringify({description:e.description,dependencies:Object.entries(e.dependencies).reduce((function(e,t){var n=i(t,2),a=n[0],o=n[1].version;return s(s({},e),{},r({},a,o))}),{"react-dom":(null===(t=e.dependencies.react)||void 0===t?void 0:t.version)||"latest"})},null,2)}),document.body.appendChild(n),u((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e,c]),o};t["default"]=b},"oHi+":function(e,t,n){var r=n("ewvW"),i=n("UMSQ"),a=n("NaFW"),o=n("6VoE"),s=n("A2ZE"),u=n("67WC").aTypedArrayConstructor;e.exports=function(e){var t,n,l,c,f,d,h=r(e),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,g=a(h);if(void 0!=g&&!o(g)){f=g.call(h),d=f.next,h=[];while(!(c=d.call(f)).done)h.push(c.value)}for(m&&p>2&&(v=s(v,arguments[2],2)),n=i(h.length),l=new(u(this))(n),t=0;n>t;t++)l[t]=m?v(h[t],t):h[t];return l}},ofBz:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ntOU"),a=n("HYAF"),o=n("UMSQ"),s=n("HAuM"),u=n("glrk"),l=n("xrYK"),c=n("ROdP"),f=n("rW0t"),d=n("kRJp"),h=n("0Dky"),p=n("tiKp"),v=n("SEBh"),m=n("iqWW"),g=n("afO8"),y=n("xDBR"),b=p("matchAll"),x="RegExp String",w=x+" Iterator",_=g.set,E=g.getterFor(w),S=RegExp.prototype,k=S.exec,M="".matchAll,T=!!M&&!h((function(){"a".matchAll(/./)})),A=function(e,t){var n,r=e.exec;if("function"==typeof r){if(n=r.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return k.call(e,t)},O=i((function(e,t,n,r){_(this,{type:w,regexp:e,string:t,global:n,unicode:r,done:!1})}),x,(function(){var e=E(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=A(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""==String(r[0])&&(t.lastIndex=m(n,o(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),R=function(e){var t,n,r,i,a,s,l=u(this),c=String(e);return t=v(l,RegExp),n=l.flags,void 0===n&&l instanceof RegExp&&!("flags"in S)&&(n=f.call(l)),r=void 0===n?"":String(n),i=new t(t===RegExp?l.source:l,r),a=!!~r.indexOf("g"),s=!!~r.indexOf("u"),i.lastIndex=o(l.lastIndex),new O(i,c,a,s)};r({target:"String",proto:!0,forced:T},{matchAll:function(e){var t,n,r,i,o=a(this);if(null!=e){if(c(e)&&(t=String(a("flags"in S?e.flags:f.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(T)return M.apply(o,arguments);if(r=e[b],void 0===r&&y&&"RegExp"==l(e)&&(r=R),null!=r)return s(r).call(e,o)}else if(T)return M.apply(o,arguments);return n=String(o),i=new RegExp(e,"g"),y?R.call(i,n):i[b](n)}}),y||b in S||d(S,b,R)},or5M:function(e,t,n){var r=n("1hJj"),i=n("QoRX"),a=n("xYSL"),o=1,s=2;function u(e,t,n,u,l,c){var f=n&o,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=c.get(e),v=c.get(t);if(p&&v)return p==t&&v==e;var m=-1,g=!0,y=n&s?new r:void 0;c.set(e,t),c.set(t,e);while(++m0&&r(d))h=o(e,t,d,i(d.length),h,l-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=d}h++}p++}return h};e.exports=o},p532:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("/qmn"),o=n("0Dky"),s=n("0GbY"),u=n("SEBh"),l=n("zfnd"),c=n("busE"),f=!!a&&o((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=u(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof a||a.prototype["finally"]||c(a.prototype,"finally",s("Promise").prototype["finally"])},p5mE:function(e,t,n){var r=n("Tskq"),i=n("ENF9"),a=n("fHMY"),o=n("hh1v"),s=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=a(null)};s.prototype.get=function(e,t){return this[e]||(this[e]=t())},s.prototype.next=function(e,t,n){var a=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new i):this.primitives||(this.primitives=new r),o=a.get(t);return o||a.set(t,o=new s),o};var u=new s;e.exports=function(){var e,t,n=u,r=arguments.length;for(e=0;em)throw TypeError(g);for(c=u(y,r),f=0;fb-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>x;f--)d=f+r-1,h=f+n-1,d in y?y[h]=y[d]:delete y[h];for(f=0;fa)i.push(arguments[a++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,X.apply(null,i)}})}q[z][H]||T(q[z],H,q[z].valueOf),D(q,B),C[U]=!0},pSRY:function(e,t,n){var r=n("QkVE");function i(e){return r(this,e).has(e)}e.exports=i},pevA:function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("JiZb"),o=n("HAuM"),s=n("glrk"),u=n("hh1v"),l=n("GarU"),c=n("m/L8").f,f=n("kRJp"),d=n("4syw"),h=n("mh/w"),p=n("ImZN"),v=n("RN6c"),m=n("tiKp"),g=n("afO8"),y=m("observable"),b=g.get,x=g.set,w=function(e){return null==e?void 0:o(e)},_=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(n){v(n)}}},E=function(e){return void 0===e.observer},S=function(e,t){if(!i){e.closed=!0;var n=t.subscriptionObserver;n&&(n.closed=!0)}t.observer=void 0},k=function(e,t){var n,r=x(this,{cleanup:void 0,observer:s(e),subscriptionObserver:void 0});i||(this.closed=!1);try{(n=w(e.start))&&n.call(e,this)}catch(c){v(c)}if(!E(r)){var a=r.subscriptionObserver=new M(this);try{var u=t(a),l=u;null!=u&&(r.cleanup="function"===typeof u.unsubscribe?function(){l.unsubscribe()}:o(u))}catch(c){return void a.error(c)}E(r)&&_(r)}};k.prototype=d({},{unsubscribe:function(){var e=b(this);E(e)||(S(this,e),_(e))}}),i&&c(k.prototype,"closed",{configurable:!0,get:function(){return E(b(this))}});var M=function(e){x(this,{subscription:e}),i||(this.closed=!1)};M.prototype=d({},{next:function(e){var t=b(b(this).subscription);if(!E(t)){var n=t.observer;try{var r=w(n.next);r&&r.call(n,e)}catch(i){v(i)}}},error:function(e){var t=b(this).subscription,n=b(t);if(!E(n)){var r=n.observer;S(t,n);try{var i=w(r.error);i?i.call(r,e):v(e)}catch(a){v(a)}_(n)}},complete:function(){var e=b(this).subscription,t=b(e);if(!E(t)){var n=t.observer;S(e,t);try{var r=w(n.complete);r&&r.call(n)}catch(i){v(i)}_(t)}}}),i&&c(M.prototype,"closed",{configurable:!0,get:function(){return E(b(b(this).subscription))}});var T=function(e){l(this,T,"Observable"),x(this,{subscriber:o(e)})};d(T.prototype,{subscribe:function(e){var t=arguments.length;return new k("function"===typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:u(e)?e:{},b(this).subscriber)}}),d(T,{from:function(e){var t="function"===typeof this?this:T,n=w(s(e)[y]);if(n){var r=s(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var i=h(e);return new t((function(e){p(i,(function(t){if(e.next(t),e.closed)return p.stop()}),void 0,!1,!0),e.complete()}))},of:function(){var e="function"===typeof this?this:T,t=arguments.length,n=new Array(t),r=0;while(r0?r:n)(e)}},pv2x:function(e,t,n){var r=n("I+eb"),i=n("0GbY"),a=n("HAuM"),o=n("glrk"),s=n("0Dky"),u=i("Reflect","apply"),l=Function.apply,c=!s((function(){u((function(){}))}));r({target:"Reflect",stat:!0,forced:c},{apply:function(e,t,n){return a(e),o(n),u?u(e,t,n):l.call(e,t,n)}})},q1tI:function(e,t,n){"use strict";e.exports=n("viRO")},q3YX:function(e){e.exports=JSON.parse('{"menus":{"en-US":{"*":[{"path":"/","title":"Index","meta":{}}],"/guide":[{"title":"\u6307\u5357","children":[{"title":"\u5b89\u88c5","path":"/guide/installation"}]},{"title":"\u793a\u4f8b","children":[{"title":"\u81ea\u5b9a\u4e49\u80cc\u666f\u8272","path":"/guide/background"},{"title":"\u83b7\u53d6\u622a\u56fe","path":"/guide/snapshot"},{"title":"\u65cb\u8f6c\u6a21\u578b","path":"/guide/rotation"},{"title":"GLTF\u683c\u5f0f","path":"/guide/gltf"},{"title":"Collada\u683c\u5f0f","path":"/guide/collada"},{"title":"FBX\u683c\u5f0f","path":"/guide/fbx"},{"title":"OBJ\u683c\u5f0f","path":"/guide/obj"},{"title":"PLY\u683c\u5f0f","path":"/guide/ply"},{"title":"STL\u683c\u5f0f","path":"/guide/stl"}]}],"/guide/background":[{"path":"/guide/background","title":"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272","meta":{}}],"/guide/installation":[{"path":"/guide/installation","title":"\u5b89\u88c5","meta":{}}],"/guide/rotation":[{"path":"/guide/rotation","title":"\u65cb\u8f6c\u6a21\u578b","meta":{}}],"/guide/snapshot":[{"path":"/guide/snapshot","title":"\u83b7\u53d6\u622a\u56fe","meta":{}}]}},"locales":[{"name":"en-US","label":"English"}],"navs":{"en-US":[{"title":"\u6307\u5357","path":"/guide"},{"title":"GitHub","path":"https://github.com/xiaxiangfeng/react-3d-model"}]},"title":"react-3d-model","logo":"./3d.png","mode":"site","repository":{"url":"","branch":"master"},"theme":{}}')},qHiR:function(e,t,n){},qLMh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("QyJ8");function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(A){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),o=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var d={};function h(){}function p(){}function v(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(M([])));y&&y!==t&&n.call(y,o)&&(m=y);var b=v.prototype=h.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(a,o,s,u){var l=f(e[a],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Object(r["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,u)}),(function(e){i("throw",e,s,u)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,u)}))}u(l.arg)}var a;this._invoke=function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}},qT12:function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol["for"],i=r?Symbol["for"]("react.element"):60103,a=r?Symbol["for"]("react.portal"):60106,o=r?Symbol["for"]("react.fragment"):60107,s=r?Symbol["for"]("react.strict_mode"):60108,u=r?Symbol["for"]("react.profiler"):60114,l=r?Symbol["for"]("react.provider"):60109,c=r?Symbol["for"]("react.context"):60110,f=r?Symbol["for"]("react.async_mode"):60111,d=r?Symbol["for"]("react.concurrent_mode"):60111,h=r?Symbol["for"]("react.forward_ref"):60112,p=r?Symbol["for"]("react.suspense"):60113,v=r?Symbol["for"]("react.suspense_list"):60120,m=r?Symbol["for"]("react.memo"):60115,g=r?Symbol["for"]("react.lazy"):60116,y=r?Symbol["for"]("react.block"):60121,b=r?Symbol["for"]("react.fundamental"):60117,x=r?Symbol["for"]("react.responder"):60118,w=r?Symbol["for"]("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type,e){case f:case d:case o:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof,e){case c:case h:case g:case m:case l:return e;default:return t}}case a:return t}}}function E(e){return _(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=u,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||_(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===a},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===u||e===s||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===x||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},qY7S:function(e,t,n){"use strict";var r=n("HAuM"),i=n("A2ZE"),a=n("ImZN");e.exports=function(e){var t,n,o,s,u=arguments.length,l=u>1?arguments[1]:void 0;return r(this),t=void 0!==l,t&&r(l),void 0==e?new this:(n=[],t?(o=0,s=i(l,u>2?arguments[2]:void 0,2),a(e,(function(e){n.push(s(e,o++))}))):a(e,n.push,n),new this(n))}},qYE9:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},qZTm:function(e,t,n){var r=n("fR/l"),i=n("MvSz"),a=n("7GkX");function o(e){return r(e,a,i)}e.exports=o},qaHo:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e){if(r(e,e,t))return u.stop()}),void 0,!1,!0).stopped}})},qc1c:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("HAuM"),s=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){var t=a(this),n=o(t.set),r=0;while(re.length)&&(t=e.length);for(var n=0,r=new Array(t);n,\n document.getElementById('root'),\n);"):"react-dom/client"===e?"/**\n* This is an auto-generated demo by dumi\n* if you think it is not working as expected,\n* please report the issue at\n* https://github.com/umijs/dumi/issues\n**/\nimport React from 'react';\nimport { createRoot } from \"react-dom/client\";\n".concat(t,'\nimport App from "./App";\n\nconst rootElement = document.getElementById("root");\nconst root = createRoot(rootElement);\n\nroot.render();'):void 0};function p(e){var t=document.createElement("span");t.innerHTML=e;var n=t.textContent;return t.remove(),n}function v(e){var t,n=Boolean(e.sources._.tsx),i=n?".tsx":".jsx",o={},s={},u=Object.values(e.dependencies).filter((function(e){return e.css})),l="App".concat(i),c="index".concat(i);return Object.entries(e.dependencies).forEach((function(e){var t=r(e,2),n=t[0],i=t[1].version;s[n]=i})),s["react-dom"]||(s["react-dom"]=s.react||"latest"),o["sandbox.config.json"]={content:JSON.stringify({template:n?"create-react-app-typescript":"create-react-app"},null,2),isBinary:!1},o["package.json"]={content:JSON.stringify({name:e.title,description:p(e.description)||"An auto-generated demo by dumi",main:c,dependencies:s,devDependencies:n?{typescript:"^3"}:{}},null,2),isBinary:!1},o["index.html"]={content:'
',isBinary:!1},o[c]={content:h((null===s||void 0===s||null===(t=s["react-dom"])||void 0===t?void 0:t.startsWith("18."))||"latest"===s.react?"react-dom/client":"react-dom",u.map((function(e){var t=e.css;return"import '".concat(t,"';")})).join("\n")),isBinary:!1},Object.entries(e.sources).forEach((function(e){var t=r(e,2),n=t[0],i=t[1],a=i.tsx,s=i.jsx,u=i.content;o["_"===n?l:n]={content:a||s||u,isBinary:!1}})),(0,a().getParameters)({files:o})}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=(0,i().useState)(),r=o(n,2),a=r[0],s=r[1];return(0,i().useEffect)((function(){if(e){var n=document.createElement("form"),r=document.createElement("input"),i=v(e);return n.method="POST",n.target="_blank",n.style.display="none",n.action=t,n.appendChild(r),n.setAttribute("data-demo",e.title||""),r.name="parameters",r.value=i,document.body.appendChild(n),s((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e]),a};t["default"]=m},rB9j:function(e,t,n){"use strict";var r=n("I+eb"),i=n("kmMV");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},rEGp:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=n},rKzb:function(e,t,n){"use strict";var r=n("4syw"),i=n("8YOa").getWeakData,a=n("glrk"),o=n("hh1v"),s=n("GarU"),u=n("ImZN"),l=n("tycR"),c=n("UTVS"),f=n("afO8"),d=f.set,h=f.getterFor,p=l.find,v=l.findIndex,m=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,r){s(e,f,t),d(e,{type:t,id:m++,frozen:void 0}),void 0!=r&&u(r,e[l],e,n)})),p=h(t),v=function(e,t,n){var r=p(e),o=i(a(t),!0);return!0===o?g(r).set(t,n):o[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?g(t)["delete"](e):n&&c(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?g(t).has(e):n&&c(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=i(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},rNhl:function(e,t,n){var r=n("I+eb"),i=n("fhKU");r({global:!0,forced:parseFloat!=i},{parseFloat:i})},rOQg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("0Dky"),a=n("Yhre"),o=n("glrk"),s=n("I8vh"),u=n("UMSQ"),l=n("SEBh"),c=a.ArrayBuffer,f=a.DataView,d=c.prototype.slice,h=i((function(){return!new c(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:h},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(o(this),e);var n=o(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),a=new(l(this,c))(u(i-r)),h=new f(this),p=new f(a),v=0;while(r-1&&e%1==0&&e<=n}e.exports=r},spTT:function(e,t,n){var r=n("I+eb"),i=n("qY7S");r({target:"WeakSet",stat:!0},{from:i})},"t/kZ":function(e,t,n){"use strict";var r=n("R5yR")["default"];function i(){var e=n("q1tI");return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=n("dEAq");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&n.push(f[r]);m(n)}else m([])}),[e,f.length]),v},m=function(){var e=(0,i().useContext)(a.context),t=e.config.algolia,n=(0,i().useCallback)((function(e){window.docsearch(s({inputSelector:e},t))}),[t]);return n},g=function(e){var t=(0,i().useContext)(a.context),n=t.config,r=v(e),o=m();return n.algolia?o:r};t["default"]=g},t23M:function(e,t,n){"use strict";var r=n("wx14"),i=n("q1tI"),a=n("Zm9Q"),o=(n("Kwbf"),n("VTBJ")),s=n("c+Xe"),u=n("m+aA"),l=n("bdgK"),c=new Map;function f(e){e.forEach((function(e){var t,n=e.target;null===(t=c.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var d=new l["a"](f);function h(e,t){c.has(e)||(c.set(e,new Set),d.observe(e)),c.get(e).add(t)}function p(e,t){c.has(e)&&(c.get(e)["delete"](t),c.get(e).size||(d.unobserve(e),c["delete"](e)))}var v=n("1OyB"),m=n("vuIU"),g=n("Ji7U"),y=n("LK+K"),b=function(e){Object(g["a"])(n,e);var t=Object(y["a"])(n);function n(){return Object(v["a"])(this,n),t.apply(this,arguments)}return Object(m["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(i["Component"]),x=i["createContext"](null);function w(e){var t=e.children,n=e.onBatchResize,r=i["useRef"](0),a=i["useRef"]([]),o=i["useContext"](x),s=i["useCallback"]((function(e,t,i){r.current+=1;var s=r.current;a.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){s===r.current&&(null===n||void 0===n||n(a.current),a.current=[])})),null===o||void 0===o||o(e,t,i)}),[n,o]);return i["createElement"](x.Provider,{value:s},t)}function _(e){var t=e.children,n=e.disabled,r=i["useRef"](null),a=i["useRef"](null),l=i["useContext"](x),c="function"===typeof t,f=c?t(r):t,d=i["useRef"]({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!c&&i["isValidElement"](f)&&Object(s["c"])(f),m=v?f.ref:null,g=i["useMemo"]((function(){return Object(s["a"])(m,r)}),[m,r]),y=i["useRef"](e);y.current=e;var w=i["useCallback"]((function(e){var t=y.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),a=i.width,s=i.height,u=e.offsetWidth,c=e.offsetHeight,f=Math.floor(a),h=Math.floor(s);if(d.current.width!==f||d.current.height!==h||d.current.offsetWidth!==u||d.current.offsetHeight!==c){var p={width:f,height:h,offsetWidth:u,offsetHeight:c};d.current=p;var v=u===Math.round(a)?a:u,m=c===Math.round(s)?s:c,g=Object(o["a"])(Object(o["a"])({},p),{},{offsetWidth:v,offsetHeight:m});null===l||void 0===l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return i["useEffect"]((function(){var e=Object(u["a"])(r.current)||Object(u["a"])(a.current);return e&&!n&&h(e,w),function(){return p(e,w)}}),[r.current,n]),i["createElement"](b,{ref:a},v?i["cloneElement"](f,{ref:g}):f)}var E="rc-observer-key";function S(e){var t=e.children,n="function"===typeof t?[t]:Object(a["a"])(t);return n.map((function(t,n){var a=(null===t||void 0===t?void 0:t.key)||"".concat(E,"-").concat(n);return i["createElement"](_,Object(r["a"])({},e,{key:a}),t)}))}S.Collection=w;t["a"]=S},tB8F:function(e,t,n){"use strict";n.r(t);n("pNMO"),n("4Brf"),n("tjZM"),n("3I1R"),n("7+kd"),n("KhsS"),n("gOCb"),n("a57n"),n("GXvd"),n("I1Gw"),n("gXIK"),n("lEou"),n("ma9I"),n("TeQF"),n("BIHw"),n("XbcX"),n("pjDv"),n("yq1k"),n("yXV3"),n("4mDm"),n("uqXc"),n("2B1R"),n("E9XD"),n("9N29"),n("Junv"),n("+2oP"),n("ToJy"),n("94Xl"),n("pDQq"),n("QGkA"),n("c9m3"),n("wZ/5"),n("rOQg"),n("7+zs"),n("tW5y"),n("DEfu"),n("Tskq"),n("Uydy"),n("QFcT"),n("I9xj"),n("w1rZ"),n("JevA"),n("toAj"),n("zKZe"),n("Eqjn"),n("5xtp"),n("T63A"),n("wfmh"),n("27RR"),n("v5b1"),n("W/eh"),n("07d7"),n("B6y2"),n("rNhl"),n("4l63"),n("5s+n"),n("p532"),n("pv2x"),n("SuFq"),n("ftMj"),n("TWNs"),n("rB9j"),n("U3f4"),n("JfAA"),n("YGK4"),n("inlA"),n("JTJg"),n("Rm1S"),n("hDyC"),n("TZCg"),n("UxlC"),n("hByQ"),n("EnZy"),n("LKBx"),n("SYor"),n("HiXI"),n("7ueG"),n("z8NH"),n("SpvK"),n("/Yfv"),n("iwkZ"),n("FDzp"),n("XMab"),n("ilnZ"),n("hMMk"),n("+ywr"),n("c162"),n("IL/d"),n("gvgV"),n("YL0P"),n("7JcK"),n("PF2M"),n("IZzc"),n("s5qe"),n("cvf0"),n("ENF9"),n("H+LF"),n("66V8"),n("iIM6"),n("2tOg"),n("gYJb"),n("EDT/"),n("j+VE"),n("wgYD"),n("R3/m"),n("l/vG"),n("0q/z"),n("n5pg"),n("zu+z"),n("ihrJ"),n("Q7Pz"),n("unQa"),n("Vnov"),n("nIe3"),n("CUyW"),n("qc1c"),n("5921"),n("VOz1"),n("Thag"),n("9D6x"),n("cOPa"),n("vdRX"),n("KrxN"),n("SL6q"),n("lehK"),n("eO0o"),n("NqR8"),n("w7s6"),n("uWhJ"),n("WPzJ"),n("NV22"),n("ny8l"),n("a5/B"),n("vzwy"),n("pevA"),n("8go2"),n("DrvE"),n("kCkZ"),n("++zV"),n("Y4C7"),n("ZsH6"),n("vZi8"),n("5r1n"),n("sQ9d"),n("bdeN"),n("AwgR"),n("qgGA"),n("49+q"),n("AVoK"),n("hcok"),n("dNT4"),n("3uUd"),n("tijO"),n("1kQv"),n("ZY7T"),n("C1JJ"),n("lmH4"),n("Co1j"),n("5JV0"),n("ctDJ"),n("8r4s"),n("JwUS"),n("qaHo"),n("Si40"),n("BGb9"),n("fN96"),n("UzNg"),n("DhMN"),n("rZ3M"),n("apDx"),n("4XaG"),n("6V7H"),n("cfiF"),n("702D"),n("TJ79"),n("Z4nd"),n("8STE"),n("spTT"),n("rb3L"),n("FZtP"),n("3bBZ"),n("Ew+T"),n("n5b4"),n("Kz25"),n("vxnP"),n("mGGf"),n("VWci");var r=n("bCY9"),i=n("FfOG"),a=n("LtsZ"),o=n("zlVK"),s=n("tJVT");function u(){var e=[{path:"/~demos/:uuid",layout:!1,wrappers:[n("afA6").default],component:e=>{var t=n("q1tI"),r=n("F4QJ"),i=r.default,a=n("Zxc8"),o=a.default,u=n("dEAq"),l=u.usePrefersColor,c=u.context,f=t.useContext(c),d=f.demos,h=t.useState([]),p=Object(s["a"])(h,2),v=p[0],m=p[1];switch(t.useLayoutEffect((()=>{m(i(e,d))}),[e.match.params.uuid,e.location.query.wrapper,e.location.query.capture]),l(),v.length){case 1:return v[0];case 2:return t.createElement(o,v[0],v[1]);default:return"Demo ".concat(e.match.params.uuid," not found :(")}}},{path:"/_demos/:uuid",redirect:"/~demos/:uuid"},{__dumiRoot:!0,layout:!1,path:"/",wrappers:[n("afA6").default,n("0Bia").default],routes:[{path:"/",component:n("F+kV").default,exact:!0,meta:{filePath:"docs/index.md",updatedTime:16663484e5,hero:{title:"react-3d-model",desc:'

react-3d-model site example

',actions:[{text:"Getting Started",link:"/guide"}]},footer:'

Open-source MIT Licensed | Copyright \xa9 2022

',slugs:[],hasPreviewer:!0,title:"Index"},title:"Index - react-3d-model"},{path:"/guide/collada",component:n("QiU6").default,exact:!0,meta:{filePath:"src/Collada/index.md",updatedTime:16663484e5,componentName:"Collada",nav:{title:"Collada",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d Collada",heading:"\u52a0\u8f7d-collada"}],title:"\u52a0\u8f7d Collada",hasPreviewer:!0,group:{path:"/guide/collada",title:"Collada"}},title:"\u52a0\u8f7d Collada - react-3d-model"},{path:"/guide/fbx",component:n("iOk6").default,exact:!0,meta:{filePath:"src/FBX/index.md",updatedTime:16663484e5,componentName:"FBX",nav:{title:"FBX",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/fbx",title:"FBX"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide/gltf",component:n("4mmX").default,exact:!0,meta:{filePath:"src/GLTF/index.md",updatedTime:16663484e5,componentName:"GLTF",nav:{title:"GLTF",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d GLTF",heading:"\u52a0\u8f7d-gltf"}],title:"\u52a0\u8f7d GLTF",hasPreviewer:!0,group:{path:"/guide/gltf",title:"GLTF"}},title:"\u52a0\u8f7d GLTF - react-3d-model"},{path:"/guide/background",component:n("vbWi").default,exact:!0,meta:{filePath:"src/guide/background.md",updatedTime:16663484e5,nav:{title:"\u80cc\u666f\u8272",path:"/guide/background"},slugs:[{depth:2,value:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272",heading:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272"}],title:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272",hasPreviewer:!0},title:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272 - react-3d-model"},{path:"/guide/installation",component:n("7wwI").default,exact:!0,meta:{filePath:"src/guide/installation.md",updatedTime:16663484e5,nav:{title:"\u5b89\u88c5",path:"/guide/installation"},slugs:[{depth:1,value:"\u5b89\u88c5",heading:"\u5b89\u88c5"},{depth:2,value:"\u4f7f\u7528\u5305\u7ba1\u7406\u5668",heading:"\u4f7f\u7528\u5305\u7ba1\u7406\u5668"}],title:"\u5b89\u88c5"},title:"\u5b89\u88c5 - react-3d-model"},{path:"/guide/rotation",component:n("YzKT").default,exact:!0,meta:{filePath:"src/guide/rotation.md",updatedTime:16663484e5,nav:{title:"\u65cb\u8f6c",path:"/guide/rotation"},slugs:[{depth:2,value:"\u65cb\u8f6c\u6a21\u578b",heading:"\u65cb\u8f6c\u6a21\u578b"}],title:"\u65cb\u8f6c\u6a21\u578b",hasPreviewer:!0},title:"\u65cb\u8f6c\u6a21\u578b - react-3d-model"},{path:"/guide/snapshot",component:n("zREE").default,exact:!0,meta:{filePath:"src/guide/snapshot.md",updatedTime:16663484e5,nav:{title:"\u622a\u56fe",path:"/guide/snapshot"},slugs:[{depth:2,value:"\u83b7\u53d6\u622a\u56fe",heading:"\u83b7\u53d6\u622a\u56fe"}],title:"\u83b7\u53d6\u622a\u56fe",hasPreviewer:!0},title:"\u83b7\u53d6\u622a\u56fe - react-3d-model"},{path:"/guide/obj",component:n("gIx/").default,exact:!0,meta:{filePath:"src/OBJ/index.md",updatedTime:16663484e5,componentName:"OBJ",nav:{title:"OBJ",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/obj",title:"OBJ"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide/ply",component:n("HblT").default,exact:!0,meta:{filePath:"src/PLY/index.md",updatedTime:16663484e5,componentName:"PLY",nav:{title:"PLY",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/ply",title:"PLY"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide/stl",component:n("KYY/").default,exact:!0,meta:{filePath:"src/STL/index.md",updatedTime:16663484e5,componentName:"STL",nav:{title:"STL",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/stl",title:"STL"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide",meta:{},exact:!0,redirect:"/guide/installation"}],title:"react-3d-model",component:e=>e.children}];return r["a"].applyPlugins({key:"patchRoutes",type:a["ApplyPluginsType"].event,args:{routes:e}}),e}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].applyPlugins({key:"render",type:a["ApplyPluginsType"].compose,initialValue:()=>{var t=r["a"].applyPlugins({key:"modifyClientRenderOpts",type:a["ApplyPluginsType"].modify,initialValue:{routes:e.routes||u(),plugin:r["a"],history:Object(i["a"])(e.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,rootElement:"root",defaultTitle:"react-3d-model"}});return Object(o["renderClient"])(t)},args:e})},c=l();t["default"]=c();window.g_umi={version:"3.5.34"}},tEiQ:function(e,t,n){"use strict";(function(e){var r=n("q1tI"),i=n.n(r),a=n("dI71"),o=n("17x9"),s=n.n(o),u=1073741823,l="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function c(){var e="__global_unique_id__";return l[e]=(l[e]||0)+1}function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function d(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}function h(e){return Array.isArray(e)?e[0]:e}function p(e,t){var n,i,o="__create-react-context-"+c()+"__",l=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=d(t.props.value),t}Object(a["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;f(r,i)?n=0:(n="function"===typeof t?t(r,i):u,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);l.childContextTypes=(n={},n[o]=s.a.object.isRequired,n);var p=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(a["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?u:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?u:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return h(this.props.children)(this.state.value)},n}(r["Component"]);return p.contextTypes=(i={},i[o]=s.a.object,i),{Provider:l,Consumer:p}}var v=i.a.createContext||p;t["a"]=v}).call(this,n("IyRk"))},tJVT:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done);o=!0)if(a.push(r.value),t&&a.length===t)break}catch(u){s=!0,i=u}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw i}}return a}}n.d(t,"a",(function(){return s}));var a=n("Qw5x");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||Object(a["a"])(e,t)||o()}},tMB7:function(e,t,n){var r=n("y1pI");function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},tW5y:function(e,t,n){"use strict";var r=n("hh1v"),i=n("m/L8"),a=n("4WOD"),o=n("tiKp"),s=o("hasInstance"),u=Function.prototype;s in u||i.f(u,s,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=a(e))if(this.prototype===e)return!0;return!1}})},tXUg:function(e,t,n){var r,i,a,o,s,u,l,c,f=n("2oRo"),d=n("Bs8V").f,h=n("xrYK"),p=n("LPSS").set,v=n("HNyW"),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==h(g),x=d(f,"queueMicrotask"),w=x&&x.value;w||(r=function(){var e,t;b&&(e=g.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?o():a=void 0,n}}a=void 0,e&&e.enter()},b?o=function(){g.nextTick(r)}:m&&!v?(s=!0,u=document.createTextNode(""),new m(r).observe(u,{characterData:!0}),o=function(){u.data=s=!s}):y&&y.resolve?(l=y.resolve(void 0),c=l.then,o=function(){c.call(l,r)}):o=function(){p.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},tadb:function(e,t,n){var r=n("Cwc5"),i=n("Kz5y"),a=r(i,"DataView");e.exports=a},tiKp:function(e,t,n){var r=n("2oRo"),i=n("VpIT"),a=n("UTVS"),o=n("kOOl"),s=n("STAE"),u=n("/b8u"),l=i("wks"),c=r.Symbol,f=u?c:c&&c.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(c,e)?l[e]=c[e]:l[e]=f("Symbol."+e)),l[e]}},tijO:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e){if(r(e,e,t))return u.stop(e)}),void 0,!1,!0).result}})},tjZM:function(e,t,n){var r=n("dG/n");r("asyncIterator")},toAj:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ppGB"),a=n("QIpd"),o=n("EUja"),s=n("0Dky"),u=1..toFixed,l=Math.floor,c=function(e,t,n){return 0===t?n:t%2===1?c(e,t-1,n*e):c(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,s,u=a(this),d=i(e),h=[0,0,0,0,0,0],p="",v="0",m=function(e,t){var n=-1,r=t;while(++n<6)r+=e*h[n],h[n]=r%1e7,r=l(r/1e7)},g=function(e){var t=6,n=0;while(--t>=0)n+=h[t],h[t]=l(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==h[e]){var n=String(h[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(t=f(u*c(2,69,1))-69,n=t<0?u*c(2,-t,1):u/c(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),r=d;while(r>=7)m(1e7,0),r-=7;m(c(10,r,1),0),r=t-1;while(r>=23)g(1<<23),r-=23;g(1<0?(s=v.length,v=p+(s<=d?"0."+o.call("0",d-s)+v:v.slice(0,s-d)+"."+v.slice(s-d))):v=p+v,v}})},tycR:function(e,t,n){var r=n("A2ZE"),i=n("RK3t"),a=n("ewvW"),o=n("UMSQ"),s=n("ZfDv"),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f;return function(h,p,v,m){for(var g,y,b=a(h),x=i(b),w=r(p,v,3),_=o(x.length),E=0,S=m||s,k=t?S(h,_):n?S(h,0):void 0;_>E;E++)if((d||E in x)&&(g=x[E],y=w(g,E,b),e))if(t)k[E]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:u.call(k,g)}else if(c)return!1;return f?-1:l||c?c:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},u8Dt:function(e,t,n){var r=n("YESw"),i="__lodash_hash_undefined__",a=Object.prototype,o=a.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}e.exports=s},uWhJ:function(e,t,n){var r=n("I+eb"),i=Math.PI/180;r({target:"Math",stat:!0},{radians:function(e){return e*i}})},unQa:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ImZN"),a=n("HAuM");r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;a(t);var r=a(n.set);return i(e,(function(e){r.call(n,t(e),e)})),n}})},uqXc:function(e,t,n){var r=n("I+eb"),i=n("5Yz+");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},uy83:function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},v5b1:function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("6x0u"),o=n("ewvW"),s=n("wE6v"),u=n("4WOD"),l=n("Bs8V").f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=o(this),r=s(e,!0);do{if(t=l(n,r))return t.get}while(n=u(n))}})},vRGJ:function(e,t,n){var r=n("AqCL");e.exports=y,e.exports.parse=a,e.exports.compile=o,e.exports.tokensToFunction=l,e.exports.tokensToRegExp=g;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){var n,r=[],a=0,o=0,s="",u=t&&t.delimiter||"/";while(null!=(n=i.exec(e))){var l=n[0],d=n[1],h=n.index;if(s+=e.slice(o,h),o=h+l.length,d)s+=d[1];else{var p=e[o],v=n[2],m=n[3],g=n[4],y=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=v&&null!=p&&p!==v,_="+"===b||"*"===b,E="?"===b||"*"===b,S=n[2]||u,k=g||y;r.push({name:m||a++,prefix:v||"",delimiter:S,optional:E,repeat:_,partial:w,asterisk:!!x,pattern:k?f(k):x?".*":"[^"+c(S)+"]+?"})}}return o{var t=e.demos,n=t["background-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272"},i.a.createElement(a["AnchorLink"],{to:"#\u8bbe\u7f6e\u80cc\u666f\u989c\u8272","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["background-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},vdRX:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},viRO:function(e,t,n){"use strict";var r=n("MgzW"),i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nL.length&&L.push(e)}function N(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(r,e,""===t?"."+j(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;uu||n!=n?f*(1/0):f*n)}},voyM:function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},vuIU:function(e,t,n){"use strict";function r(e,t){for(var n=0;n36)throw RangeError(s);if(!u.test(e)||(r=a(e,n)).toString(n)!==e)throw SyntaxError(o);return l*r}})},w1rZ:function(e,t,n){var r=n("I+eb"),i=n("fhKU");r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},w7s6:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},wE6v:function(e,t,n){var r=n("hh1v");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"wF/u":function(e,t,n){var r=n("e5cp"),i=n("ExA7");function a(e,t,n,o,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,o,a,s))}e.exports=a},wJg7:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?n:t,!!t&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e>>0||(s.test(n)?16:10))}:o},wgJM:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var a=0,o=new Map;function s(e){o["delete"](e)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;a+=1;var n=a;function i(t){if(0===t)s(n),e();else{var a=r((function(){i(t-1)}));o.set(n,a)}}return i(t),n}u.cancel=function(e){var t=o.get(e);return s(t),i(t)}},wgYD:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("Cg3G");r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},wx14:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?arguments[1]:void 0)}})},yl30:function(e,t,n){"use strict";var r=n("q1tI"),i=n("MgzW"),a=n("JhMR");function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Z(e,t,n,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var J={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){J[e]=new Z(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];J[t]=new Z(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){J[e]=new Z(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){J[e]=new Z(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){J[e]=new Z(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){J[e]=new Z(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){J[e]=new Z(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){J[e]=new Z(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){J[e]=new Z(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,Q);J[t]=new Z(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,Q);J[t]=new Z(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,Q);J[t]=new Z(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){J[e]=new Z(e,1,!1,e.toLowerCase(),null,!1)})),J.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){J[e]=new Z(e,1,!1,e.toLowerCase(),null,!0)}));var ee=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function te(e,t,n,r){var i=J.hasOwnProperty(t)?J[t]:null,a=null!==i?0===i.type:!r&&(2=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Ee(n)}}function Ue(e,t){var n=Ee(t.value),r=Ee(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Be(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var ze={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function He(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?He(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ve,We=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n,r,i)}))}:e}((function(e,t){if(e.namespaceURI!==ze.svg||"innerHTML"in e)e.innerHTML=t;else{for(Ve=Ve||document.createElement("div"),Ve.innerHTML=""+t.valueOf().toString()+"",t=Ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function qe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Xe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ye={animationend:Xe("Animation","AnimationEnd"),animationiteration:Xe("Animation","AnimationIteration"),animationstart:Xe("Animation","AnimationStart"),transitionend:Xe("Transition","TransitionEnd")},Ke={},Ze={};function Je(e){if(Ke[e])return Ke[e];if(!Ye[e])return e;var t,n=Ye[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ze)return Ke[e]=n[t];return e}A&&(Ze=document.createElement("div").style,"AnimationEvent"in window||(delete Ye.animationend.animation,delete Ye.animationiteration.animation,delete Ye.animationstart.animation),"TransitionEvent"in window||delete Ye.transitionend.transition);var $e=Je("animationend"),Qe=Je("animationiteration"),et=Je("animationstart"),tt=Je("transitionend"),nt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rt=new("function"===typeof WeakMap?WeakMap:Map);function it(e){var t=rt.get(e);return void 0===t&&(t=new Map,rt.set(e,t)),t}function at(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!==(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ot(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function st(e){if(at(e)!==e)throw Error(o(188))}function ut(e){var t=e.alternate;if(!t){if(t=at(e),null===t)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(r=i.return,null!==r){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return st(i),e;if(a===r)return st(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}function lt(e){if(e=ut(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ct(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ft(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var dt=null;function ht(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rgt.length&>.push(e)}function bt(e,t,n,r){if(gt.length){var i=gt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function xt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=zn(r)}while(n);for(n=0;n=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xn(r)}}function _n(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?_n(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function En(){for(var e=window,t=bn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=bn(e.document)}return t}function Sn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var kn="$",Mn="/$",Tn="$?",An="$!",On=null,Rn=null;function Cn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ln(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Pn="function"===typeof setTimeout?setTimeout:void 0,In="function"===typeof clearTimeout?clearTimeout:void 0;function Nn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Dn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===kn||n===An||n===Tn){if(0===t)return e;t--}else n===Mn&&t++}e=e.previousSibling}return null}var jn=Math.random().toString(36).slice(2),Fn="__reactInternalInstance$"+jn,Un="__reactEventHandlers$"+jn,Bn="__reactContainere$"+jn;function zn(e){var t=e[Fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[Fn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dn(e);null!==e;){if(n=e[Fn])return n;e=Dn(e)}return t}e=n,n=e.parentNode}return null}function Hn(e){return e=e[Fn]||e[Bn],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Gn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Vn(e){return e[Un]||null}function Wn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function qn(e,t){var n=e.stateNode;if(!n)return null;var r=v(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}function Xn(e,t,n){(t=qn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ct(n._dispatchListeners,t),n._dispatchInstances=ct(n._dispatchInstances,e))}function Yn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Wn(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function sr(e){e.eventPool=[],e.getPooled=ar,e.release=or}i(ir.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){this.isPersistent=nr},isPersistent:rr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=rr,this._dispatchInstances=this._dispatchListeners=null}}),ir.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ir.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,sr(n),n},sr(ir);var ur=ir.extend({data:null}),lr=ir.extend({data:null}),cr=[9,13,27,32],fr=A&&"CompositionEvent"in window,dr=null;A&&"documentMode"in document&&(dr=document.documentMode);var hr=A&&"TextEvent"in window&&!dr,pr=A&&(!fr||dr&&8=dr),vr=String.fromCharCode(32),mr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},gr=!1;function yr(e,t){switch(e){case"keyup":return-1!==cr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function br(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var xr=!1;function wr(e,t){switch(e){case"compositionend":return br(t);case"keypress":return 32!==t.which?null:(gr=!0,vr);case"textInput":return e=t.data,e===vr&&gr?null:e;default:return null}}function _r(e,t){if(xr)return"compositionend"===e||!fr&&yr(e,t)?(e=tr(),er=Qn=$n=null,xr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,ii={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ai=null,oi=null,si=null,ui=!1;function li(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ui||null==ai||ai!==bn(n)?null:(n=ai,"selectionStart"in n&&Sn(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),si&&ni(si,n)?null:(si=n,e=ir.getPooled(ii.select,oi,e,t),e.type="select",e.target=ai,Jn(e),e))}var ci={eventTypes:ii,extractEvents:function(e,t,n,r,i,a){if(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument),!(a=!i)){e:{i=it(i),a=M.onSelect;for(var o=0;oki||(e.current=Si[ki],Si[ki]=null,ki--)}function Ti(e,t){ki++,Si[ki]=e.current,e.current=t}var Ai={},Oi={current:Ai},Ri={current:!1},Ci=Ai;function Li(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pi(e){return e=e.childContextTypes,null!==e&&void 0!==e}function Ii(){Mi(Ri),Mi(Oi)}function Ni(e,t,n){if(Oi.current!==Ai)throw Error(o(168));Ti(Oi,t),Ti(Ri,n)}function Di(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext(),r)if(!(a in e))throw Error(o(108,we(t)||"Unknown",a));return i({},n,{},r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Ci=Oi.current,Ti(Oi,e),Ti(Ri,Ri.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Ci),r.__reactInternalMemoizedMergedChildContext=e,Mi(Ri),Mi(Oi),Ti(Oi,e)):Mi(Ri),Ti(Ri,n)}var Ui=a.unstable_runWithPriority,Bi=a.unstable_scheduleCallback,zi=a.unstable_cancelCallback,Hi=a.unstable_requestPaint,Gi=a.unstable_now,Vi=a.unstable_getCurrentPriorityLevel,Wi=a.unstable_ImmediatePriority,qi=a.unstable_UserBlockingPriority,Xi=a.unstable_NormalPriority,Yi=a.unstable_LowPriority,Ki=a.unstable_IdlePriority,Zi={},Ji=a.unstable_shouldYield,$i=void 0!==Hi?Hi:function(){},Qi=null,ea=null,ta=!1,na=Gi(),ra=1e4>na?Gi:function(){return Gi()-na};function ia(){switch(Vi()){case Wi:return 99;case qi:return 98;case Xi:return 97;case Yi:return 96;case Ki:return 95;default:throw Error(o(332))}}function aa(e){switch(e){case 99:return Wi;case 98:return qi;case 97:return Xi;case 96:return Yi;case 95:return Ki;default:throw Error(o(332))}}function oa(e,t){return e=aa(e),Ui(e,t)}function sa(e,t,n){return e=aa(e),Bi(e,t,n)}function ua(e){return null===Qi?(Qi=[e],ea=Bi(Wi,ca)):Qi.push(e),Zi}function la(){if(null!==ea){var e=ea;ea=null,zi(e)}ca()}function ca(){if(!ta&&null!==Qi){ta=!0;var e=0;try{var t=Qi;oa(99,(function(){for(;e=t&&(Yo=!0),e.firstContext=null)}function wa(e,t){if(ma!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ma=e,t=1073741823),t={context:e,observedBits:t,next:null},null===va){if(null===pa)throw Error(o(308));va=t,pa.dependencies={expirationTime:0,firstContext:t,responders:null}}else va=va.next=t;return e._currentValue}var _a=!1;function Ea(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ka(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function Ma(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ta(e,t){var n=e.alternate;null!==n&&Sa(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Aa(e,t,n,r){var a=e.updateQueue;_a=!1;var o=a.baseQueue,s=a.shared.pending;if(null!==s){if(null!==o){var u=o.next;o.next=s.next,s.next=u}o=s,a.shared.pending=null,u=e.alternate,null!==u&&(u=u.updateQueue,null!==u&&(u.baseQueue=s))}if(null!==o){u=o.next;var l=a.baseState,c=0,f=null,d=null,h=null;if(null!==u){var p=u;do{if(s=p.expirationTime,sc&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Du(s,p.suspenseConfig);e:{var m=e,g=p;switch(s=t,v=n,g.tag){case 1:if(m=g.payload,"function"===typeof m){l=m.call(v,l,s);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(m=g.payload,s="function"===typeof m?m.call(v,l,s):m,null===s||void 0===s)break e;l=i({},l,s);break e;case 2:_a=!0}}null!==p.callback&&(e.effectTag|=32,s=a.effects,null===s?a.effects=[p]:s.push(p))}if(p=p.next,null===p||p===u){if(s=a.shared.pending,null===s)break;p=o.next=s.next,s.next=u,a.baseQueue=o=s,a.shared.pending=null}}while(1)}null===h?f=l:h.next=d,a.baseState=f,a.baseQueue=h,ju(c),e.expirationTime=c,e.memoizedState=l}}function Oa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tv?(m=f,f=null):m=f.sibling;var g=h(i,f,s[v],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===c?l=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;vm?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,l);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),c;if(null===v){for(;!y.done;m++,y=u.next())y=d(i,y.value,l),null!==y&&(s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(i,v);!y.done;m++,y=u.next())y=p(v,i,m,y.value,l),null!==y&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"===typeof a&&null!==a&&a.type===oe&&null===a.key;l&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case ie:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(a.type===oe){n(e,l.sibling),r=i(l,a.props.children),r.return=e,e=r;break e}break;default:if(l.elementType===a.type){n(e,l.sibling),r=i(l,a.props),r.ref=Ua(e,l,a),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}a.type===oe?(r=sl(a.props.children,e.mode,u,a.key),r.return=e,e=r):(u=ol(a.type,a.key,a.props,null,e.mode,u),u.ref=Ua(e,r,a),u.return=e,e=u)}return s(e);case ae:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=i(r,a.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=ll(a,e.mode,u),r.return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=i(r,a),r.return=e,e=r):(n(e,r),r=ul(a,e.mode,u),r.return=e,e=r),s(e);if(Fa(a))return v(e,r,a,u);if(be(a))return m(e,r,a,u);if(c&&Ba(e,a),"undefined"===typeof a&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ha=za(!0),Ga=za(!1),Va={},Wa={current:Va},qa={current:Va},Xa={current:Va};function Ya(e){if(e===Va)throw Error(o(174));return e}function Ka(e,t){switch(Ti(Xa,t),Ti(qa,e),Ti(Wa,Va),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ge(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ge(t,e)}Mi(Wa),Ti(Wa,t)}function Za(){Mi(Wa),Mi(qa),Mi(Xa)}function Ja(e){Ya(Xa.current);var t=Ya(Wa.current),n=Ge(t,e.type);t!==n&&(Ti(qa,e),Ti(Wa,n))}function $a(e){qa.current===e&&(Mi(Wa),Mi(qa))}var Qa={current:0};function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===Tn||n.data===An))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function to(e,t){return{responder:e,props:t}}var no=ee.ReactCurrentDispatcher,ro=ee.ReactCurrentBatchConfig,io=0,ao=null,oo=null,so=null,uo=!1;function lo(){throw Error(o(321))}function co(e,t){if(null===t)return!1;for(var n=0;na))throw Error(o(301));a+=1,so=oo=null,t.updateQueue=null,no.current=jo,e=n(r,i)}while(t.expirationTime===io)}if(no.current=Io,t=null!==oo&&null!==oo.next,io=0,so=oo=ao=null,uo=!1,t)throw Error(o(300));return e}function ho(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===so?ao.memoizedState=so=e:so=so.next=e,so}function po(){if(null===oo){var e=ao.alternate;e=null!==e?e.memoizedState:null}else e=oo.next;var t=null===so?ao.memoizedState:so.next;if(null!==t)so=t,oo=e;else{if(null===e)throw Error(o(310));oo=e,e={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},null===so?ao.memoizedState=so=e:so=so.next=e}return so}function vo(e,t){return"function"===typeof t?t(e):t}function mo(e){var t=po(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=oo,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=a=null,l=i;do{var c=l.expirationTime;if(cao.expirationTime&&(ao.expirationTime=c,ju(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Du(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=s,ei(r,t.memoizedState)||(Yo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function go(e){var t=po(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ei(a,t.memoizedState)||(Yo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function yo(e){var t=ho();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},e=e.dispatch=Po.bind(null,ao,e),[t.memoizedState,e]}function bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ao.updateQueue,null===t?(t={lastEffect:null},ao.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xo(){return po().memoizedState}function wo(e,t,n,r){var i=ho();ao.effectTag|=e,i.memoizedState=bo(1|t,n,void 0,void 0===r?null:r)}function _o(e,t,n,r){var i=po();r=void 0===r?null:r;var a=void 0;if(null!==oo){var o=oo.memoizedState;if(a=o.destroy,null!==r&&co(r,o.deps))return void bo(t,n,a,r)}ao.effectTag|=e,i.memoizedState=bo(1|t,n,a,r)}function Eo(e,t){return wo(516,4,e,t)}function So(e,t){return _o(516,4,e,t)}function ko(e,t){return _o(4,2,e,t)}function Mo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function To(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_o(4,2,Mo.bind(null,t,e),n)}function Ao(){}function Oo(e,t){return ho().memoizedState=[e,void 0===t?null:t],e}function Ro(e,t){var n=po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Lo(e,t,n){var r=ia();oa(98>r?98:r,(function(){e(!0)})),oa(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(a,{is:r.is}):(e=u.createElement(a),"select"===a&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,a),e[Fn]=t,e[Un]=r,is(e,t,!1,!1),t.stateNode=e,u=vn(a,r),a){case"iframe":case"object":case"embed":nn("load",e),l=r;break;case"video":case"audio":for(l=0;lr.tailExpiration&&1t)&&yu.set(e,t)))}}function ku(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function Tu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=ua(Ou.bind(null,e));else{var t=Mu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=_u();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Zi&&zi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?ua(Ou.bind(null,e)):sa(r,Au.bind(null,e),{timeout:10*(1073741821-t)-ra()}),e.callbackNode=t}}}function Au(e,t){if(wu=0,t)return t=_u(),pl(e,t),Tu(e),null;var n=Mu(e);if(0!==n){if(t=e.callbackNode,($s&(Vs|Ws))!==Hs)throw Error(o(327));if(qu(),e===Qs&&n===tu||Pu(e,n),null!==eu){var r=$s;$s|=Vs;var i=Nu();do{try{Uu();break}catch(u){Iu(e,u)}}while(1);if(ga(),$s=r,Bs.current=i,nu===Xs)throw t=ru,Pu(e,n),dl(e,n),Tu(e),t;if(null===eu)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=nu,Qs=null,r){case qs:case Xs:throw Error(o(345));case Ys:pl(e,2=n){e.lastPingedTime=n,Pu(e,n);break}}if(a=Mu(e),0!==a&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Pn(Gu.bind(null,e),i);break}Gu(e);break;case Zs:if(dl(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Hu(i)),uu&&(i=e.lastPingedTime,0===i||i>=n)){e.lastPingedTime=n,Pu(e,n);break}if(i=Mu(e),0!==i&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==au?r=10*(1073741821-au)-ra():1073741823===iu?r=0:(r=10*(1073741821-iu)-5e3,i=ra(),n=10*(1073741821-n)-i,r=i-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Us(r/1960))-r,n=r?r=0:(i=0|s.busyDelayMs,a=ra()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)),r=a<=i?0:i+r-a),10 component higher in the tree to provide a loading indicator or placeholder to display."+_e(o))}nu!==Js&&(nu=Ys),s=gs(s,o),f=a;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=t;var x=Ds(f,u,t);Ta(f,x);break e;case 1:u=s;var w=f.type,_=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===pu||!pu.has(_)))){f.effectTag|=4096,f.expirationTime=t;var E=js(f,u,t);Ta(f,E);break e}}f=f.return}while(null!==f)}eu=zu(eu)}catch(S){t=S;continue}break}while(1)}function Nu(){var e=Bs.current;return Bs.current=Io,null===e?Io:e}function Du(e,t){esu&&(su=e)}function Fu(){for(;null!==eu;)eu=Bu(eu)}function Uu(){for(;null!==eu&&!Ji();)eu=Bu(eu)}function Bu(e){var t=Fs(e.alternate,e,tu);return e.memoizedProps=e.pendingProps,null===t&&(t=zu(e)),zs.current=null,t}function zu(e){eu=e;do{var t=eu.alternate;if(e=eu.return,0===(2048&eu.effectTag)){if(t=vs(t,eu,tu),1===tu||1!==eu.childExpirationTime){for(var n=0,r=eu.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}eu.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=eu.firstEffect),null!==eu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=eu.firstEffect),e.lastEffect=eu.lastEffect),1e?t:e}function Gu(e){var t=ia();return oa(99,Vu.bind(null,e,t)),null}function Vu(e,t){do{qu()}while(null!==mu);if(($s&(Vs|Ws))!==Hs)throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Hu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Qs&&(eu=Qs=null,tu=0),1u&&(c=u,u=s,s=c),c=wn(x,s),f=wn(x,u),c&&f&&(1!==_.rangeCount||_.anchorNode!==c.node||_.anchorOffset!==c.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&(w=w.createRange(),w.setStart(c.node,c.offset),_.removeAllRanges(),s>u?(_.addRange(w),_.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),_.addRange(w)))))),w=[];for(_=x;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof x.focus&&x.focus(),x=0;x=n?ls(e,t,n):(Ti(Qa,1&Qa.current),t=hs(e,t,n),null!==t?t.sibling:null);Ti(Qa,1&Qa.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return ds(e,t,n);t.effectTag|=64}if(i=t.memoizedState,null!==i&&(i.rendering=null,i.tail=null),Ti(Qa,Qa.current),!r)return null}return hs(e,t,n)}Yo=!1}}else Yo=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Li(t,Oi.current),xa(t,n),i=fo(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)){var a=!0;ji(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ea(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&La(t,r,s,e),i.updater=Pa,t.stateNode=i,i._reactInternalFiber=t,ja(t,r,e,n),t=ns(null,t,r,!0,a,n)}else t.tag=0,Ko(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,xe(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=il(i),e=da(i,e),a){case 0:t=es(null,t,i,e,n);break e;case 1:t=ts(null,t,i,e,n);break e;case 11:t=Zo(null,t,i,e,n);break e;case 14:t=Jo(null,t,i,da(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),es(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),ts(e,t,r,i,n);case 3:if(rs(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=t.memoizedState,i=null!==i?i.element:null,Sa(e,t),Aa(t,r,null,n),r=t.memoizedState.element,r===i)qo(),t=hs(e,t,n);else{if((i=t.stateNode.hydrate)&&(Uo=Nn(t.stateNode.containerInfo.firstChild),Fo=t,i=Bo=!0),i)for(n=Ga(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ko(e,t,r,n),qo();t=t.child}return t;case 5:return Ja(t),null===e&&Go(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Ln(r,i)?s=null:null!==a&&Ln(r,a)&&(t.effectTag|=16),Qo(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ko(e,t,s,n),t=t.child),t;case 6:return null===e&&Go(t),null;case 13:return ls(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ha(t,null,r,n):Ko(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),Zo(e,t,r,i,n);case 7:return Ko(e,t,t.pendingProps,n),t.child;case 8:return Ko(e,t,t.pendingProps.children,n),t.child;case 12:return Ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var u=t.type._context;if(Ti(ha,u._currentValue),u._currentValue=a,null!==s)if(u=s.value,a=ei(u,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823),0===a){if(s.children===i.children&&!Ri.current){t=hs(e,t,n);break e}}else for(u=t.child,null!==u&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===u.tag&&(c=ka(n,null),c.tag=2,Ma(u,c)),u.expirationTime=t&&e<=t}function dl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function hl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function pl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function vl(e,t,n,r){var i=t.current,a=_u(),s=Ra.suspense;a=Eu(a,i,s);e:if(n){n=n._reactInternalFiber;t:{if(at(n)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Pi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var l=n.type;if(Pi(l)){n=Di(n,l,u);break e}}n=u}else n=Ai;return null===t.context?t.context=n:t.pendingContext=n,t=ka(a,s),t.payload={element:e},r=void 0===r?null:r,null!==r&&(t.callback=r),Ma(i,t),Su(i,a),a}function ml(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gl(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTimeu)r(s,n=t[u++])&&(~a(l,n)||l.push(n));return l}},yq1k:function(e,t,n){"use strict";var r=n("I+eb"),i=n("TWQb").includes,a=n("RNIs"),o=n("rkAj"),s=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},"z01/":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},z8NH:function(e,t,n){var r=n("dOgj");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},zBJ4:function(e,t,n){var r=n("2oRo"),i=n("hh1v"),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},zKZe:function(e,t,n){var r=n("I+eb"),i=n("YNrV");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},zLVn:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},zREE:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["snapshot-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u83b7\u53d6\u622a\u56fe"},i.a.createElement(a["AnchorLink"],{to:"#\u83b7\u53d6\u622a\u56fe","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u83b7\u53d6\u622a\u56fe"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["snapshot-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},zYLY:function(e,t,n){"use strict";function r(){var e=n("q1tI");return r=function(){return e},e}function i(e,t){return l(e)||u(e,t)||o(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:0;if(a=0||(i[n]=e[n]);return i}function g(e,t){if(null==e)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function y(e,t){return b(e)||x(e,t)||w(e,t)||E()}function b(e){if(Array.isArray(e))return e}function x(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done);o=!0)if(a.push(r.value),t&&a.length===t)break}catch(u){s=!0,i=u}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw i}}return a}}function w(e,t){if(e){if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function k(e){return l["default"].createElement(i.__RouterContext.Consumer,null,(function(t){var n=e.location||t.location,r=e.computedMatch,a=f(f({},t),{},{location:n,match:r}),o=e.render;return l["default"].createElement(i.__RouterContext.Provider,{value:a},a.match?o(f(f({},e.layoutProps),a)):null)}))}var M=["children"];function T(e){return l["default"].createElement(i.__RouterContext.Consumer,null,(function(t){var n,r=e.children,o=g(e,M),s=e.location||t.location,u=null;return a.Children.forEach(r,(function(e){if(null===u&&a.isValidElement(e)){n=e;var r=e.props.path||e.props.from;u=r?i.matchPath(s.pathname,f(f({},e.props),{},{path:r})):t.match}})),u?a.cloneElement(n,{location:s,computedMatch:u,layoutProps:o}):null}))}var A=["component"];function O(e,t){e.component;var n=g(e,A),o=e.component;function s(s){var u=a.useState((function(){return window.g_initialProps})),c=y(u,2),d=c[0],p=c[1];return a.useEffect((function(){var a=function(){var a=h(r().mark((function a(){var u,l,c,d,h;return r().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(l=o,!o.preload){r.next=6;break}return r.next=4,o.preload();case 4:l=r.sent,l=l["default"]||l;case 6:if(c=f(f({isServer:!1,match:null===s||void 0===s?void 0:s.match,history:null===s||void 0===s?void 0:s.history,route:e},t.getInitialPropsCtx||{}),n),!(null===(u=l)||void 0===u?void 0:u.getInitialProps)){r.next=15;break}return r.next=10,t.plugin.applyPlugins({key:"ssr.modifyGetInitialPropsCtx",type:i.ApplyPluginsType.modify,initialValue:c,async:!0});case 10:return d=r.sent,r.next=13,l.getInitialProps(d||c);case 13:h=r.sent,p(h);case 15:case"end":return r.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();window.g_initialProps||a()}),[window.location.pathname,window.location.search]),l["default"].createElement(o,v({},s,d))}return s.wrapInitialPropsLoaded=!0,s.displayName="ComponentWithInitialPropsFetch",s}function R(e){var t=e.route,n=e.opts,r=e.props,i=L(f(f({},n),{},{routes:t.routes||[],rootRoutes:n.rootRoutes}),{location:r.location}),o=t.component,s=t.wrappers;if(o){var u=n.isServer?{}:window.g_initialProps,c=f(f(f(f({},r),n.extraProps),n.pageInitialProps||u),{},{route:t,routes:n.rootRoutes}),d=l["default"].createElement(o,c,i);if(s){var h=s.length-1;while(h>=0)d=a.createElement(s[h],c,d),h-=1}return d}return i}function C(e){var t,n,r,a=e.route,o=e.index,s=e.opts,u={key:a.key||o,exact:a.exact,strict:a.strict,sensitive:a.sensitive,path:a.path};return a.redirect?l["default"].createElement(i.Redirect,v({},u,{from:a.path,to:a.redirect})):(!s.ssrProps||s.isServer||(null===(t=a.component)||void 0===t?void 0:t.wrapInitialPropsLoaded)||!(null===(n=a.component)||void 0===n?void 0:n.getInitialProps)&&!(null===(r=a.component)||void 0===r?void 0:r.preload)||(a.component=O(a,s)),l["default"].createElement(k,v({},u,{render:function(e){return R({route:a,opts:s,props:e})}})))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.routes?l["default"].createElement(T,t,e.routes.map((function(t,n){return C({route:t,index:n,opts:f(f({},e),{},{rootRoutes:e.rootRoutes||e.routes})})}))):null}var P=["history"];function I(e){var t=e.history,n=g(e,P);return a.useEffect((function(){function r(t,r){var a=s.matchRoutes(e.routes,t.pathname);"undefined"!==typeof document&&void 0!==n.defaultTitle&&(document.title=a.length&&a[a.length-1].route.title||n.defaultTitle||""),e.plugin.applyPlugins({key:"onRouteChange",type:i.ApplyPluginsType.event,args:{routes:e.routes,matchedRoutes:a,location:t,action:r}})}return window.g_useSSR&&(window.g_initialProps=null),r(t.location,"POP"),t.listen(r)}),[t]),l["default"].createElement(i.Router,{history:t},L(n))}function N(e){return e.plugin.applyPlugins({type:i.ApplyPluginsType.modify,key:"rootContainer",initialValue:l["default"].createElement(I,{history:e.history,routes:e.routes,plugin:e.plugin,ssrProps:e.ssrProps,defaultTitle:e.defaultTitle}),args:{history:e.history,routes:e.routes,plugin:e.plugin}})}function D(e){return j.apply(this,arguments)}function j(){return j=h(r().mark((function e(t){var n,i,a,o,u,l,c,f,d=arguments;return r().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:window.location.pathname,i=s.matchRoutes(t,n),a=S(i),e.prev=3,a.s();case 5:if((o=a.n()).done){e.next=19;break}if(l=o.value,c=l.route,"string"===typeof c.component||!(null===(u=c.component)||void 0===u?void 0:u.preload)){e.next=13;break}return e.next=11,c.component.preload();case 11:f=e.sent,c.component=f["default"]||f;case 13:if(!c.routes){e.next=17;break}return e.next=16,D(c.routes,n);case 16:c.routes=e.sent;case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e["catch"](3),a.e(e.t0);case 24:return e.prev=24,a.f(),e.finish(24);case 27:return e.abrupt("return",t);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27]])}))),j.apply(this,arguments)}function F(e){var t=N(e);if(!e.rootElement)return t;var n="string"===typeof e.rootElement?document.getElementById(e.rootElement):e.rootElement,r=e.callback||function(){};window.g_useSSR?e.dynamicImport?D(e.routes).then((function(){o.hydrate(t,n,r)})):o.hydrate(t,n,r):o.render(t,n,r)}t.renderClient=F,t.renderRoutes=L},zqmC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.LinkWrapper=void 0;var r=o(n("q1tI")),i=n("LtsZ"),a=["to"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var c=function(e){return function(t){var n=t.to,i=u(t,a),o=/^(\w+:)?\/\/|^(mailto|tel):/.test(n)||!n,l=r["default"].isValidElement(i.children);return r["default"].createElement(e,s({to:n||"",component:o?function(){return r["default"].createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n},i.children,n&&!l&&r["default"].createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15",className:"__dumi-default-external-link-icon"},r["default"].createElement("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),r["default"].createElement("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})))}:void 0},i,o?{}:{onClick:function(){var e;window.scrollTo({top:0});for(var t=arguments.length,n=new Array(t),r=0;r-1}e.exports=i},"+M1K":function(e,t,n){var r=n("ppGB");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},"+ywr":function(e,t,n){var r=n("dOgj");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"/7QA":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"Deflate",(function(){return xy})),n.d(r,"AsyncDeflate",(function(){return wy})),n.d(r,"deflate",(function(){return _y})),n.d(r,"deflateSync",(function(){return Ey})),n.d(r,"Inflate",(function(){return Sy})),n.d(r,"AsyncInflate",(function(){return ky})),n.d(r,"inflate",(function(){return My})),n.d(r,"inflateSync",(function(){return Ty})),n.d(r,"Gzip",(function(){return Ay})),n.d(r,"AsyncGzip",(function(){return Oy})),n.d(r,"gzip",(function(){return Ry})),n.d(r,"gzipSync",(function(){return Cy})),n.d(r,"Gunzip",(function(){return Ly})),n.d(r,"AsyncGunzip",(function(){return Py})),n.d(r,"gunzip",(function(){return Iy})),n.d(r,"gunzipSync",(function(){return Ny})),n.d(r,"Zlib",(function(){return Dy})),n.d(r,"AsyncZlib",(function(){return jy})),n.d(r,"zlib",(function(){return Fy})),n.d(r,"zlibSync",(function(){return Uy})),n.d(r,"Unzlib",(function(){return By})),n.d(r,"AsyncUnzlib",(function(){return zy})),n.d(r,"unzlib",(function(){return Hy})),n.d(r,"unzlibSync",(function(){return Gy})),n.d(r,"compress",(function(){return Ry})),n.d(r,"AsyncCompress",(function(){return Oy})),n.d(r,"compressSync",(function(){return Cy})),n.d(r,"Compress",(function(){return Ay})),n.d(r,"Decompress",(function(){return Vy})),n.d(r,"AsyncDecompress",(function(){return Wy})),n.d(r,"decompress",(function(){return qy})),n.d(r,"decompressSync",(function(){return Xy})),n.d(r,"DecodeUTF8",(function(){return Qy})),n.d(r,"EncodeUTF8",(function(){return eb})),n.d(r,"strToU8",(function(){return tb})),n.d(r,"strFromU8",(function(){return nb})),n.d(r,"ZipPassThrough",(function(){return cb})),n.d(r,"ZipDeflate",(function(){return fb})),n.d(r,"AsyncZipDeflate",(function(){return db})),n.d(r,"Zip",(function(){return hb})),n.d(r,"zip",(function(){return pb})),n.d(r,"zipSync",(function(){return vb})),n.d(r,"UnzipPassThrough",(function(){return mb})),n.d(r,"UnzipInflate",(function(){return gb})),n.d(r,"AsyncUnzipInflate",(function(){return yb})),n.d(r,"Unzip",(function(){return bb})),n.d(r,"unzip",(function(){return xb})),n.d(r,"unzipSync",(function(){return wb}));var i=n("q1tI"),a=n.n(i);function o(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)}))}}var u=n("Qw5x");function l(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(u["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=n("tJVT"),d=n("QyJ8");function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){if(t&&("object"===Object(d["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=v(e),null===e)break;return e}function g(){return g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=m(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},g.apply(this,arguments)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t>8&255]+Pn[e>>16&255]+Pn[e>>24&255]+"-"+Pn[255&t]+Pn[t>>8&255]+"-"+Pn[t>>16&15|64]+Pn[t>>24&255]+"-"+Pn[63&n|128]+Pn[n>>8&255]+"-"+Pn[n>>16&255]+Pn[n>>24&255]+Pn[255&r]+Pn[r>>8&255]+Pn[r>>16&255]+Pn[r>>24&255];return i.toUpperCase()}function Un(e,t,n){return Math.max(t,Math.min(n,e))}function Bn(e,t){return(e%t+t)%t}function zn(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Hn(e,t,n){return e!==t?(n-e)/(t-e):0}function Gn(e,t,n){return(1-n)*e+n*t}function Vn(e,t,n,r){return Gn(e,t,1-Math.exp(-n*r))}function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t-Math.abs(Bn(e,2*t)-t)}function qn(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Xn(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(6*e-15)+10))}function Yn(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Kn(e,t){return e+Math.random()*(t-e)}function Zn(e){return e*(.5-Math.random())}function Jn(e){return void 0!==e&&(Nn=e%2147483647),Nn=16807*Nn%2147483647,(Nn-1)/2147483646}function $n(e){return e*Dn}function Qn(e){return e*jn}function er(e){return 0===(e&e-1)&&0!==e}function tr(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function nr(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function rr(e,t,n,r,i){var a=Math.cos,o=Math.sin,s=a(n/2),u=o(n/2),l=a((t+r)/2),c=o((t+r)/2),f=a((t-r)/2),d=o((t-r)/2),h=a((r-t)/2),p=o((r-t)/2);switch(i){case"XYX":e.set(s*c,u*f,u*d,s*l);break;case"YZY":e.set(u*d,s*c,u*f,s*l);break;case"ZXZ":e.set(u*f,u*d,s*c,s*l);break;case"XZX":e.set(s*c,u*p,u*h,s*l);break;case"YXY":e.set(u*h,s*c,u*p,s*l);break;case"ZYZ":e.set(u*p,u*h,s*c,s*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}var ir=Object.freeze({__proto__:null,DEG2RAD:Dn,RAD2DEG:jn,generateUUID:Fn,clamp:Un,euclideanModulo:Bn,mapLinear:zn,inverseLerp:Hn,lerp:Gn,damp:Vn,pingpong:Wn,smoothstep:qn,smootherstep:Xn,randInt:Yn,randFloat:Kn,randFloatSpread:Zn,seededRandom:Jn,degToRad:$n,radToDeg:Qn,isPowerOfTwo:er,ceilPowerOfTwo:tr,floorPowerOfTwo:nr,setQuaternionFromProperEuler:rr}),ar=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;M(this,t),this.x=e,this.y=n}return A(t,[{key:"width",get:function(){return this.x},set:function(e){this.x=e}},{key:"height",get:function(){return this.y},set:function(e){this.y=e}},{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value: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}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"cross",value:function(e){return this.x*e.y-this.y*e.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){var e=Math.atan2(-this.y,-this.x)+Math.PI;return e}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this}},{key:"rotateAround",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:e,value:Object(k["a"])().mark((function e(){return Object(k["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:case"end":return e.stop()}}),e,this)}))}]),t}(Symbol.iterator);ar.prototype.isVector2=!0;var or=function(){function e(){M(this,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.")}return A(e,[{key:"set",value:function(e,t,n,r,i,a,o,s,u){var l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=u,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],u=n[1],l=n[4],c=n[7],f=n[2],d=n[5],h=n[8],p=r[0],v=r[3],m=r[6],g=r[1],y=r[4],b=r[7],x=r[2],w=r[5],_=r[8];return i[0]=a*p+o*g+s*x,i[3]=a*v+o*y+s*w,i[6]=a*m+o*b+s*_,i[1]=u*p+l*g+c*x,i[4]=u*v+l*y+c*w,i[7]=u*m+l*b+c*_,i[2]=f*p+d*g+h*x,i[5]=f*v+d*y+h*w,i[8]=f*m+d*b+h*_,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8];return t*a*l-t*o*u-n*i*l+n*o*s+r*i*u-r*a*s}},{key:"invert",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],c=l*a-o*u,f=o*s-l*i,d=u*i-a*s,h=t*c+n*f+r*d;if(0===h)return this.set(0,0,0,0,0,0,0,0,0);var p=1/h;return e[0]=c*p,e[1]=(r*u-l*n)*p,e[2]=(o*n-r*a)*p,e[3]=f*p,e[4]=(l*t-r*s)*p,e[5]=(r*i-o*t)*p,e[6]=d*p,e[7]=(n*s-u*t)*p,e[8]=(a*t-n*i)*p,this}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}},{key:"getNormalMatrix",value:function(e){return this.setFromMatrix4(e).invert().transpose()}},{key:"transposeIntoArray",value:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}},{key:"setUvTransform",value:function(e,t,n,r,i,a,o){var s=Math.cos(i),u=Math.sin(i);return this.set(n*s,n*u,-n*(s*a+u*o)+a+e,-r*u,r*s,-r*(-u*a+s*o)+o+t,0,0,1),this}},{key:"scale",value:function(e,t){var n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this}},{key:"rotate",value:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.elements,i=r[0],a=r[3],o=r[6],s=r[1],u=r[4],l=r[7];return r[0]=t*i+n*s,r[3]=t*a+n*u,r[6]=t*o+n*l,r[1]=-n*i+t*s,r[4]=-n*a+t*u,r[7]=-n*o+t*l,this}},{key:"translate",value:function(e,t){var n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<9;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}]),e}();function sr(e){if(0===e.length)return-1/0;for(var t=e[0],n=1,r=e.length;nt&&(t=e[n]);return t}or.prototype.isMatrix3=!0;var ur;Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function lr(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function cr(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=3735928559^n,i=1103547991^n,a=0;a>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)}var fr=function(){function e(){M(this,e)}return A(e,null,[{key:"getDataURL",value:function(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;var t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===ur&&(ur=lr("canvas")),ur.width=e.width,ur.height=e.height;var n=ur.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=ur}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}}]),e}(),dr=0,hr=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.DEFAULT_IMAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.DEFAULT_MAPPING,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ne,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ne,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Be,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:He,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:rt,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:Ge,f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:mn;return M(this,n),e=t.call(this),Object.defineProperty(h(e),"id",{value:dr++}),e.uuid=Fn(),e.name="",e.image=r,e.mipmaps=[],e.mapping=i,e.wrapS=a,e.wrapT=o,e.magFilter=s,e.minFilter=u,e.anisotropy=f,e.format=l,e.internalFormat=null,e.type=c,e.offset=new ar(0,0),e.repeat=new ar(1,1),e.center=new ar(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new or,e.generateMipmaps=!0,e.premultiplyAlpha=!1,e.flipY=!0,e.unpackAlignment=4,e.encoding=d,e.userData={},e.version=0,e.onUpdate=null,e.isRenderTargetTexture=!1,e}return A(n,[{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.name=e.name,this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"toJSON",value:function(e){var t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){var r=this.image;if(void 0===r.uuid&&(r.uuid=Fn()),!t&&void 0===e.images[r.uuid]){var i;if(Array.isArray(r)){i=[];for(var a=0,o=r.length;a1)switch(this.wrapS){case Ie:e.x=e.x-Math.floor(e.x);break;case Ne:e.x=e.x<0?0:1;break;case De:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ie:e.y=e.y-Math.floor(e.y);break;case Ne:e.y=e.y<0?0:1;break;case De:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),n}(Ln);function pr(e){return"undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap?fr.getDataURL(e):e.data?{data:Array.prototype.slice.call(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}hr.DEFAULT_IMAGE=void 0,hr.DEFAULT_MAPPING=Te,hr.prototype.isTexture=!0;var vr=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;M(this,t),this.x=e,this.y=n,this.z=r,this.w=i}return A(t,[{key:"width",get:function(){return this.z},set:function(e){this.z=e}},{key:"height",get:function(){return this.w},set:function(e){this.w=e}},{key:"set",value:function(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"setAxisAngleFromQuaternion",value:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}},{key:"setAxisAngleFromRotationMatrix",value:function(e){var t,n,r,i,a=.01,o=.1,s=e.elements,u=s[0],l=s[4],c=s[8],f=s[1],d=s[5],h=s[9],p=s[2],v=s[6],m=s[10];if(Math.abs(l-f)y&&g>b?gb?y1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}},{key:e,value:Object(k["a"])().mark((function e(){return Object(k["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:return e.next=8,this.w;case 8:case"end":return e.stop()}}),e,this)}))}]),t}(Symbol.iterator);vr.prototype.isVector4=!0;var mr=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return M(this,n),i=t.call(this),i.width=e,i.height=r,i.depth=1,i.scissor=new vr(0,0,e,r),i.scissorTest=!1,i.viewport=new vr(0,0,e,r),i.texture=new hr(void 0,a.mapping,a.wrapS,a.wrapT,a.magFilter,a.minFilter,a.format,a.type,a.anisotropy,a.encoding),i.texture.isRenderTargetTexture=!0,i.texture.image={width:e,height:r,depth:1},i.texture.generateMipmaps=void 0!==a.generateMipmaps&&a.generateMipmaps,i.texture.internalFormat=void 0!==a.internalFormat?a.internalFormat:null,i.texture.minFilter=void 0!==a.minFilter?a.minFilter:Be,i.depthBuffer=void 0===a.depthBuffer||a.depthBuffer,i.stencilBuffer=void 0!==a.stencilBuffer&&a.stencilBuffer,i.depthTexture=void 0!==a.depthTexture?a.depthTexture:null,i}return A(n,[{key:"setTexture",value:function(e){e.image={width:this.width,height:this.height,depth:this.depth},this.texture=e}},{key:"setSize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.width===e&&this.height===t&&this.depth===n||(this.width=e,this.height=t,this.depth=n,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.image=b({},this.texture.image),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}}]),n}(Ln);mr.prototype.isWebGLRenderTarget=!0;var gr=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;M(this,n),a=t.call(this,e,r);var o=a.texture;a.texture=[];for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:1;if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(var r=0,i=this.texture.length;r2&&void 0!==arguments[2]?arguments[2]:{};return M(this,n),i=t.call(this,e,r,a),i.samples=4,i.ignoreDepthForMultisampleCopy=void 0===a.ignoreDepth||a.ignoreDepth,i.useRenderToTexture=void 0!==a.useRenderToTexture&&a.useRenderToTexture,i.useRenderbuffer=!1===i.useRenderToTexture,i}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.samples=e.samples,this.useRenderToTexture=e.useRenderToTexture,this.useRenderbuffer=e.useRenderbuffer,this}}]),n}(mr);yr.prototype.isWebGLMultisampleRenderTarget=!0;var br=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;M(this,e),this._x=t,this._y=n,this._z=r,this._w=i}return A(e,[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(e){this._w=e,this._onChangeCallback()}},{key:"set",value:function(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,u=o(n/2),l=o(r/2),c=o(i/2),f=s(n/2),d=s(r/2),h=s(i/2);switch(a){case"XYZ":this._x=f*l*c+u*d*h,this._y=u*d*c-f*l*h,this._z=u*l*h+f*d*c,this._w=u*l*c-f*d*h;break;case"YXZ":this._x=f*l*c+u*d*h,this._y=u*d*c-f*l*h,this._z=u*l*h-f*d*c,this._w=u*l*c+f*d*h;break;case"ZXY":this._x=f*l*c-u*d*h,this._y=u*d*c+f*l*h,this._z=u*l*h+f*d*c,this._w=u*l*c-f*d*h;break;case"ZYX":this._x=f*l*c-u*d*h,this._y=u*d*c+f*l*h,this._z=u*l*h-f*d*c,this._w=u*l*c+f*d*h;break;case"YZX":this._x=f*l*c+u*d*h,this._y=u*d*c+f*l*h,this._z=u*l*h-f*d*c,this._w=u*l*c-f*d*h;break;case"XZY":this._x=f*l*c-u*d*h,this._y=u*d*c-f*l*h,this._z=u*l*h+f*d*c,this._w=u*l*c+f*d*h;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!1!==t&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(e,t){var n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],u=t[2],l=t[6],c=t[10],f=n+o+c;if(f>0){var d=.5/Math.sqrt(f+1);this._w=.25/d,this._x=(l-s)*d,this._y=(i-u)*d,this._z=(a-r)*d}else if(n>o&&n>c){var h=2*Math.sqrt(1+n-o-c);this._w=(l-s)/h,this._x=.25*h,this._y=(r+a)/h,this._z=(i+u)/h}else if(o>c){var p=2*Math.sqrt(1+o-n-c);this._w=(i-u)/p,this._x=(r+a)/p,this._y=.25*p,this._z=(s+l)/p}else{var v=2*Math.sqrt(1+c-n-o);this._w=(a-r)/v,this._x=(i+u)/v,this._y=(s+l)/v,this._z=.25*v}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(e,t){var n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}},{key:"angleTo",value:function(e){return 2*Math.acos(Math.abs(Un(this.dot(e),-1,1)))}},{key:"rotateTowards",value:function(e,t){var n=this.angleTo(e);if(0===n)return this;var r=Math.min(1,t/n);return this.slerp(e,r),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)}},{key:"premultiply",value:function(e){return this.multiplyQuaternions(e,this)}},{key:"multiplyQuaternions",value:function(e,t){var n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,u=t._z,l=t._w;return this._x=n*l+a*o+r*u-i*s,this._y=r*l+a*s+i*o-n*u,this._z=i*l+a*u+n*s-r*o,this._w=a*l-n*o-r*s-i*u,this._onChangeCallback(),this}},{key:"slerp",value:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,r=this._y,i=this._z,a=this._w,o=a*e._w+n*e._x+r*e._y+i*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;var s=1-o*o;if(s<=Number.EPSILON){var u=1-t;return this._w=u*a+t*this._w,this._x=u*n+t*this._x,this._y=u*r+t*this._y,this._z=u*i+t*this._z,this.normalize(),this._onChangeCallback(),this}var l=Math.sqrt(s),c=Math.atan2(l,o),f=Math.sin((1-t)*c)/l,d=Math.sin(t*c)/l;return this._w=a*f+this._w*d,this._x=n*f+this._x*d,this._y=r*f+this._y*d,this._z=i*f+this._z*d,this._onChangeCallback(),this}},{key:"slerpQuaternions",value:function(e,t,n){this.copy(e).slerp(t,n)}},{key:"random",value:function(){var e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}},{key:"fromBufferAttribute",value:function(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}}],[{key:"slerp",value:function(e,t,n,r){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(e,t,r)}},{key:"slerpFlat",value:function(e,t,n,r,i,a,o){var s=n[r+0],u=n[r+1],l=n[r+2],c=n[r+3],f=i[a+0],d=i[a+1],h=i[a+2],p=i[a+3];if(0===o)return e[t+0]=s,e[t+1]=u,e[t+2]=l,void(e[t+3]=c);if(1===o)return e[t+0]=f,e[t+1]=d,e[t+2]=h,void(e[t+3]=p);if(c!==p||s!==f||u!==d||l!==h){var v=1-o,m=s*f+u*d+l*h+c*p,g=m>=0?1:-1,y=1-m*m;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,m*g);v=Math.sin(v*x)/b,o=Math.sin(o*x)/b}var w=o*g;if(s=s*v+f*w,u=u*v+d*w,l=l*v+h*w,c=c*v+p*w,v===1-o){var _=1/Math.sqrt(s*s+u*u+l*l+c*c);s*=_,u*=_,l*=_,c*=_}}e[t]=s,e[t+1]=u,e[t+2]=l,e[t+3]=c}},{key:"multiplyQuaternionsFlat",value:function(e,t,n,r,i,a){var o=n[r],s=n[r+1],u=n[r+2],l=n[r+3],c=i[a],f=i[a+1],d=i[a+2],h=i[a+3];return e[t]=o*h+l*c+s*d-u*f,e[t+1]=s*h+l*f+u*c-o*d,e[t+2]=u*h+l*d+o*f-s*c,e[t+3]=l*h-o*c-s*f-u*d,e}}]),e}();br.prototype.isQuaternion=!0;var xr=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;M(this,t),this.x=e,this.y=n,this.z=r}return A(t,[{key:"set",value:function(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"multiplyVectors",value:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}},{key:"applyEuler",value:function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(_r.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(_r.setFromAxisAngle(e,t))}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}},{key:"applyNormalMatrix",value:function(e){return this.applyMatrix3(e).normalize()}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}},{key:"applyQuaternion",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,u=s*t+a*r-o*n,l=s*n+o*t-i*r,c=s*r+i*n-a*t,f=-i*t-a*n-o*r;return this.x=u*s+f*-i+l*-o-c*-a,this.y=l*s+f*-a+c*-i-u*-o,this.z=c*s+f*-o+u*-a-l*-i,this}},{key:"project",value:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}},{key:"unproject",value:function(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}},{key:"transformDirection",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value: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}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}},{key:"cross",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)}},{key:"crossVectors",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}},{key:"projectOnVector",value:function(e){var t=e.lengthSq();if(0===t)return this.set(0,0,0);var n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}},{key:"projectOnPlane",value:function(e){return wr.copy(this).projectOnVector(e),this.sub(wr)}},{key:"reflect",value:function(e){return this.sub(wr.copy(e).multiplyScalar(2*this.dot(e)))}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var n=this.dot(e)/t;return Math.acos(Un(n,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}},{key:"setFromSpherical",value:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}},{key:"setFromSphericalCoords",value:function(e,t,n){var r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}},{key:"setFromCylindrical",value:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}},{key:"setFromCylindricalCoords",value:function(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}},{key:"setFromMatrixPosition",value:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}},{key:"setFromMatrixScale",value:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}},{key:"setFromMatrixColumn",value:function(e,t){return this.fromArray(e.elements,4*t)}},{key:"setFromMatrix3Column",value:function(e,t){return this.fromArray(e.elements,3*t)}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}},{key:"randomDirection",value:function(){var e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-Math.pow(e,2));return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}},{key:e,value:Object(k["a"])().mark((function e(){return Object(k["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:case"end":return e.stop()}}),e,this)}))}]),t}(Symbol.iterator);xr.prototype.isVector3=!0;var wr=new xr,_r=new br,Er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr(1/0,1/0,1/0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr(-1/0,-1/0,-1/0);M(this,e),this.min=t,this.max=n}return A(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromArray",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0,s=0,u=e.length;si&&(i=l),c>a&&(a=c),f>o&&(o=f)}return this.min.set(t,n,r),this.max.set(i,a,o),this}},{key:"setFromBufferAttribute",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0,s=0,u=e.count;si&&(i=l),c>a&&(a=c),f>o&&(o=f)}return this.min.set(t,n,r),this.max.set(i,a,o),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}},{key:"intersectsSphere",value:function(e){return this.clampPoint(e.center,kr),kr.distanceToSquared(e.center)<=e.radius*e.radius}},{key:"intersectsPlane",value:function(e){var t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}},{key:"intersectsTriangle",value:function(e){if(this.isEmpty())return!1;this.getCenter(Pr),Ir.subVectors(this.max,Pr),Tr.subVectors(e.a,Pr),Ar.subVectors(e.b,Pr),Or.subVectors(e.c,Pr),Rr.subVectors(Ar,Tr),Cr.subVectors(Or,Ar),Lr.subVectors(Tr,Or);var t=[0,-Rr.z,Rr.y,0,-Cr.z,Cr.y,0,-Lr.z,Lr.y,Rr.z,0,-Rr.x,Cr.z,0,-Cr.x,Lr.z,0,-Lr.x,-Rr.y,Rr.x,0,-Cr.y,Cr.x,0,-Lr.y,Lr.x,0];return!!jr(t,Tr,Ar,Or,Ir)&&(t=[1,0,0,0,1,0,0,0,1],!!jr(t,Tr,Ar,Or,Ir)&&(Nr.crossVectors(Rr,Cr),t=[Nr.x,Nr.y,Nr.z],jr(t,Tr,Ar,Or,Ir)))}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){var t=kr.copy(e).clamp(this.min,this.max);return t.sub(e).length()}},{key:"getBoundingSphere",value:function(e){return this.getCenter(e.center),e.radius=.5*this.getSize(kr).length(),e}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"applyMatrix4",value:function(e){return this.isEmpty()||(Sr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Sr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Sr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Sr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Sr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Sr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Sr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Sr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Sr)),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}();Er.prototype.isBox3=!0;var Sr=[new xr,new xr,new xr,new xr,new xr,new xr,new xr,new xr],kr=new xr,Mr=new Er,Tr=new xr,Ar=new xr,Or=new xr,Rr=new xr,Cr=new xr,Lr=new xr,Pr=new xr,Ir=new xr,Nr=new xr,Dr=new xr;function jr(e,t,n,r,i){for(var a=0,o=e.length-3;a<=o;a+=3){Dr.fromArray(e,a);var s=i.x*Math.abs(Dr.x)+i.y*Math.abs(Dr.y)+i.z*Math.abs(Dr.z),u=t.dot(Dr),l=n.dot(Dr),c=r.dot(Dr);if(Math.max(-Math.max(u,l,c),Math.min(u,l,c))>s)return!1}return!0}var Fr=new Er,Ur=new xr,Br=new xr,zr=new xr,Hr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;M(this,e),this.center=t,this.radius=n}return A(e,[{key:"set",value:function(e,t){return this.center.copy(e),this.radius=t,this}},{key:"setFromPoints",value:function(e,t){var n=this.center;void 0!==t?n.copy(t):Fr.setFromPoints(e).getCenter(n);for(var r=0,i=0,a=e.length;ithis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}},{key:"getBoundingBox",value:function(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}},{key:"applyMatrix4",value:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}},{key:"translate",value:function(e){return this.center.add(e),this}},{key:"expandByPoint",value:function(e){zr.subVectors(e,this.center);var t=zr.lengthSq();if(t>this.radius*this.radius){var n=Math.sqrt(t),r=.5*(n-this.radius);this.center.add(zr.multiplyScalar(r/n)),this.radius+=r}return this}},{key:"union",value:function(e){return Br.subVectors(e.center,this.center).normalize().multiplyScalar(e.radius),this.expandByPoint(Ur.copy(e.center).add(Br)),this.expandByPoint(Ur.copy(e.center).sub(Br)),this}},{key:"equals",value:function(e){return e.center.equals(this.center)&&e.radius===this.radius}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Gr=new xr,Vr=new xr,Wr=new xr,qr=new xr,Xr=new xr,Yr=new xr,Kr=new xr,Zr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr(0,0,-1);M(this,e),this.origin=t,this.direction=n}return A(e,[{key:"set",value:function(e,t){return this.origin.copy(e),this.direction.copy(t),this}},{key:"copy",value:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}},{key:"at",value:function(e,t){return t.copy(this.direction).multiplyScalar(e).add(this.origin)}},{key:"lookAt",value:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this}},{key:"recast",value:function(e){return this.origin.copy(this.at(e,Gr)),this}},{key:"closestPointToPoint",value:function(e,t){t.subVectors(e,this.origin);var n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}},{key:"distanceToPoint",value:function(e){return Math.sqrt(this.distanceSqToPoint(e))}},{key:"distanceSqToPoint",value:function(e){var t=Gr.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Gr.copy(this.direction).multiplyScalar(t).add(this.origin),Gr.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,n,r){Vr.copy(e).add(t).multiplyScalar(.5),Wr.copy(t).sub(e).normalize(),qr.copy(this.origin).sub(Vr);var i,a,o,s,u=.5*e.distanceTo(t),l=-this.direction.dot(Wr),c=qr.dot(this.direction),f=-qr.dot(Wr),d=qr.lengthSq(),h=Math.abs(1-l*l);if(h>0)if(i=l*f-c,a=l*c-f,s=u*h,i>=0)if(a>=-s)if(a<=s){var p=1/h;i*=p,a*=p,o=i*(i+l*a+2*c)+a*(l*i+a+2*f)+d}else a=u,i=Math.max(0,-(l*a+c)),o=-i*i+a*(a+2*f)+d;else a=-u,i=Math.max(0,-(l*a+c)),o=-i*i+a*(a+2*f)+d;else a<=-s?(i=Math.max(0,-(-l*u+c)),a=i>0?-u:Math.min(Math.max(-u,-f),u),o=-i*i+a*(a+2*f)+d):a<=s?(i=0,a=Math.min(Math.max(-u,-f),u),o=a*(a+2*f)+d):(i=Math.max(0,-(l*u+c)),a=i>0?u:Math.min(Math.max(-u,-f),u),o=-i*i+a*(a+2*f)+d);else a=l>0?-u:u,i=Math.max(0,-(l*a+c)),o=-i*i+a*(a+2*f)+d;return n&&n.copy(this.direction).multiplyScalar(i).add(this.origin),r&&r.copy(Wr).multiplyScalar(a).add(Vr),o}},{key:"intersectSphere",value:function(e,t){Gr.subVectors(e.center,this.origin);var n=Gr.dot(this.direction),r=Gr.dot(Gr)-n*n,i=e.radius*e.radius;if(r>i)return null;var a=Math.sqrt(i-r),o=n-a,s=n+a;return o<0&&s<0?null:o<0?this.at(s,t):this.at(o,t)}},{key:"intersectsSphere",value:function(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}},{key:"distanceToPlane",value:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}},{key:"intersectPlane",value:function(e,t){var n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}},{key:"intersectsPlane",value:function(e){var t=e.distanceToPoint(this.origin);if(0===t)return!0;var n=e.normal.dot(this.direction);return n*t<0}},{key:"intersectBox",value:function(e,t){var n,r,i,a,o,s,u=1/this.direction.x,l=1/this.direction.y,c=1/this.direction.z,f=this.origin;return u>=0?(n=(e.min.x-f.x)*u,r=(e.max.x-f.x)*u):(n=(e.max.x-f.x)*u,r=(e.min.x-f.x)*u),l>=0?(i=(e.min.y-f.y)*l,a=(e.max.y-f.y)*l):(i=(e.max.y-f.y)*l,a=(e.min.y-f.y)*l),n>a||i>r?null:((i>n||n!==n)&&(n=i),(a=0?(o=(e.min.z-f.z)*c,s=(e.max.z-f.z)*c):(o=(e.max.z-f.z)*c,s=(e.min.z-f.z)*c),n>s||o>r?null:((o>n||n!==n)&&(n=o),(s=0?n:r,t)))}},{key:"intersectsBox",value:function(e){return null!==this.intersectBox(e,Gr)}},{key:"intersectTriangle",value:function(e,t,n,r,i){Xr.subVectors(t,e),Yr.subVectors(n,e),Kr.crossVectors(Xr,Yr);var a,o=this.direction.dot(Kr);if(o>0){if(r)return null;a=1}else{if(!(o<0))return null;a=-1,o=-o}qr.subVectors(this.origin,e);var s=a*this.direction.dot(Yr.crossVectors(qr,Yr));if(s<0)return null;var u=a*this.direction.dot(Xr.cross(qr));if(u<0)return null;if(s+u>o)return null;var l=-a*qr.dot(Kr);return l<0?null:this.at(l/o,i)}},{key:"applyMatrix4",value:function(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}},{key:"equals",value:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Jr=function(){function e(){M(this,e),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.")}return A(e,[{key:"set",value:function(e,t,n,r,i,a,o,s,u,l,c,f,d,h,p,v){var m=this.elements;return m[0]=e,m[4]=t,m[8]=n,m[12]=r,m[1]=i,m[5]=a,m[9]=o,m[13]=s,m[2]=u,m[6]=l,m[10]=c,m[14]=f,m[3]=d,m[7]=h,m[11]=p,m[15]=v,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new e).fromArray(this.elements)}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}},{key:"copyPosition",value:function(e){var t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}},{key:"setFromMatrix3",value:function(e){var t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(e){var t=this.elements,n=e.elements,r=1/$r.setFromMatrixColumn(e,0).length(),i=1/$r.setFromMatrixColumn(e,1).length(),a=1/$r.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromEuler",value:function(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),u=Math.sin(r),l=Math.cos(i),c=Math.sin(i);if("XYZ"===e.order){var f=a*l,d=a*c,h=o*l,p=o*c;t[0]=s*l,t[4]=-s*c,t[8]=u,t[1]=d+h*u,t[5]=f-p*u,t[9]=-o*s,t[2]=p-f*u,t[6]=h+d*u,t[10]=a*s}else if("YXZ"===e.order){var v=s*l,m=s*c,g=u*l,y=u*c;t[0]=v+y*o,t[4]=g*o-m,t[8]=a*u,t[1]=a*c,t[5]=a*l,t[9]=-o,t[2]=m*o-g,t[6]=y+v*o,t[10]=a*s}else if("ZXY"===e.order){var b=s*l,x=s*c,w=u*l,_=u*c;t[0]=b-_*o,t[4]=-a*c,t[8]=w+x*o,t[1]=x+w*o,t[5]=a*l,t[9]=_-b*o,t[2]=-a*u,t[6]=o,t[10]=a*s}else if("ZYX"===e.order){var E=a*l,S=a*c,k=o*l,M=o*c;t[0]=s*l,t[4]=k*u-S,t[8]=E*u+M,t[1]=s*c,t[5]=M*u+E,t[9]=S*u-k,t[2]=-u,t[6]=o*s,t[10]=a*s}else if("YZX"===e.order){var T=a*s,A=a*u,O=o*s,R=o*u;t[0]=s*l,t[4]=R-T*c,t[8]=O*c+A,t[1]=c,t[5]=a*l,t[9]=-o*l,t[2]=-u*l,t[6]=A*c+O,t[10]=T-R*c}else if("XZY"===e.order){var C=a*s,L=a*u,P=o*s,I=o*u;t[0]=s*l,t[4]=-c,t[8]=u*l,t[1]=C*c+I,t[5]=a*l,t[9]=L*c-P,t[2]=P*c-L,t[6]=o*l,t[10]=I*c+C}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(e){return this.compose(ei,e,ti)}},{key:"lookAt",value:function(e,t,n){var r=this.elements;return ii.subVectors(e,t),0===ii.lengthSq()&&(ii.z=1),ii.normalize(),ni.crossVectors(n,ii),0===ni.lengthSq()&&(1===Math.abs(n.z)?ii.x+=1e-4:ii.z+=1e-4,ii.normalize(),ni.crossVectors(n,ii)),ni.normalize(),ri.crossVectors(ii,ni),r[0]=ni.x,r[4]=ri.x,r[8]=ii.x,r[1]=ni.y,r[5]=ri.y,r[9]=ii.y,r[2]=ni.z,r[6]=ri.z,r[10]=ii.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],u=n[12],l=n[1],c=n[5],f=n[9],d=n[13],h=n[2],p=n[6],v=n[10],m=n[14],g=n[3],y=n[7],b=n[11],x=n[15],w=r[0],_=r[4],E=r[8],S=r[12],k=r[1],M=r[5],T=r[9],A=r[13],O=r[2],R=r[6],C=r[10],L=r[14],P=r[3],I=r[7],N=r[11],D=r[15];return i[0]=a*w+o*k+s*O+u*P,i[4]=a*_+o*M+s*R+u*I,i[8]=a*E+o*T+s*C+u*N,i[12]=a*S+o*A+s*L+u*D,i[1]=l*w+c*k+f*O+d*P,i[5]=l*_+c*M+f*R+d*I,i[9]=l*E+c*T+f*C+d*N,i[13]=l*S+c*A+f*L+d*D,i[2]=h*w+p*k+v*O+m*P,i[6]=h*_+p*M+v*R+m*I,i[10]=h*E+p*T+v*C+m*N,i[14]=h*S+p*A+v*L+m*D,i[3]=g*w+y*k+b*O+x*P,i[7]=g*_+y*M+b*R+x*I,i[11]=g*E+y*T+b*C+x*N,i[15]=g*S+y*A+b*L+x*D,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],u=e[13],l=e[2],c=e[6],f=e[10],d=e[14],h=e[3],p=e[7],v=e[11],m=e[15];return h*(+i*s*c-r*u*c-i*o*f+n*u*f+r*o*d-n*s*d)+p*(+t*s*d-t*u*f+i*a*f-r*a*d+r*u*l-i*s*l)+v*(+t*u*c-t*o*d-i*a*c+n*a*d+i*o*l-n*u*l)+m*(-r*o*l-t*s*c+t*o*f+r*a*c-n*a*f+n*s*l)}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}},{key:"setPosition",value:function(e,t,n){var r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}},{key:"invert",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],c=e[9],f=e[10],d=e[11],h=e[12],p=e[13],v=e[14],m=e[15],g=c*v*u-p*f*u+p*s*d-o*v*d-c*s*m+o*f*m,y=h*f*u-l*v*u-h*s*d+a*v*d+l*s*m-a*f*m,b=l*p*u-h*c*u+h*o*d-a*p*d-l*o*m+a*c*m,x=h*c*s-l*p*s-h*o*f+a*p*f+l*o*v-a*c*v,w=t*g+n*y+r*b+i*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var _=1/w;return e[0]=g*_,e[1]=(p*f*i-c*v*i-p*r*d+n*v*d+c*r*m-n*f*m)*_,e[2]=(o*v*i-p*s*i+p*r*u-n*v*u-o*r*m+n*s*m)*_,e[3]=(c*s*i-o*f*i-c*r*u+n*f*u+o*r*d-n*s*d)*_,e[4]=y*_,e[5]=(l*v*i-h*f*i+h*r*d-t*v*d-l*r*m+t*f*m)*_,e[6]=(h*s*i-a*v*i-h*r*u+t*v*u+a*r*m-t*s*m)*_,e[7]=(a*f*i-l*s*i+l*r*u-t*f*u-a*r*d+t*s*d)*_,e[8]=b*_,e[9]=(h*c*i-l*p*i-h*n*d+t*p*d+l*n*m-t*c*m)*_,e[10]=(a*p*i-h*o*i+h*n*u-t*p*u-a*n*m+t*o*m)*_,e[11]=(l*o*i-a*c*i-l*n*u+t*c*u+a*n*d-t*o*d)*_,e[12]=x*_,e[13]=(l*p*r-h*c*r+h*n*f-t*p*f-l*n*v+t*c*v)*_,e[14]=(h*o*r-a*p*r-h*n*s+t*p*s+a*n*v-t*o*v)*_,e[15]=(a*c*r-l*o*r+l*n*s-t*c*s-a*n*f+t*o*f)*_,this}},{key:"scale",value:function(e){var t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}},{key:"getMaxScaleOnAxis",value:function(){var e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}},{key:"makeTranslation",value:function(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}},{key:"makeRotationX",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}},{key:"makeRotationY",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,u=i*a,l=i*o;return this.set(u*a+n,u*o-r*s,u*s+r*o,0,u*o+r*s,l*o+n,l*s-r*a,0,u*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}},{key:"makeScale",value:function(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}},{key:"makeShear",value:function(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}},{key:"compose",value:function(e,t,n){var r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,u=i+i,l=a+a,c=o+o,f=i*u,d=i*l,h=i*c,p=a*l,v=a*c,m=o*c,g=s*u,y=s*l,b=s*c,x=n.x,w=n.y,_=n.z;return r[0]=(1-(p+m))*x,r[1]=(d+b)*x,r[2]=(h-y)*x,r[3]=0,r[4]=(d-b)*w,r[5]=(1-(f+m))*w,r[6]=(v+g)*w,r[7]=0,r[8]=(h+y)*_,r[9]=(v-g)*_,r[10]=(1-(f+p))*_,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}},{key:"decompose",value:function(e,t,n){var r=this.elements,i=$r.set(r[0],r[1],r[2]).length(),a=$r.set(r[4],r[5],r[6]).length(),o=$r.set(r[8],r[9],r[10]).length(),s=this.determinant();s<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],Qr.copy(this);var u=1/i,l=1/a,c=1/o;return Qr.elements[0]*=u,Qr.elements[1]*=u,Qr.elements[2]*=u,Qr.elements[4]*=l,Qr.elements[5]*=l,Qr.elements[6]*=l,Qr.elements[8]*=c,Qr.elements[9]*=c,Qr.elements[10]*=c,t.setFromRotationMatrix(Qr),n.x=i,n.y=a,n.z=o,this}},{key:"makePerspective",value:function(e,t,n,r,i,a){void 0===a&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var o=this.elements,s=2*i/(t-e),u=2*i/(n-r),l=(t+e)/(t-e),c=(n+r)/(n-r),f=-(a+i)/(a-i),d=-2*a*i/(a-i);return o[0]=s,o[4]=0,o[8]=l,o[12]=0,o[1]=0,o[5]=u,o[9]=c,o[13]=0,o[2]=0,o[6]=0,o[10]=f,o[14]=d,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}},{key:"makeOrthographic",value:function(e,t,n,r,i,a){var o=this.elements,s=1/(t-e),u=1/(n-r),l=1/(a-i),c=(t+e)*s,f=(n+r)*u,d=(a+i)*l;return o[0]=2*s,o[4]=0,o[8]=0,o[12]=-c,o[1]=0,o[5]=2*u,o[9]=0,o[13]=-f,o[2]=0,o[6]=0,o[10]=-2*l,o[14]=-d,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<16;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}]),e}();Jr.prototype.isMatrix4=!0;var $r=new xr,Qr=new Jr,ei=new xr(0,0,0),ti=new xr(1,1,1),ni=new xr,ri=new xr,ii=new xr,ai=new Jr,oi=new br,si=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.DefaultOrder;M(this,e),this._x=t,this._y=n,this._z=r,this._order=i}return A(e,[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(e){this._order=e,this._onChangeCallback()}},{key:"set",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],u=r[5],l=r[9],c=r[2],f=r[6],d=r[10];switch(t){case"XYZ":this._y=Math.asin(Un(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,d),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Un(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,d),this._z=Math.atan2(s,u)):(this._y=Math.atan2(-c,i),this._z=0);break;case"ZXY":this._x=Math.asin(Un(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-c,d),this._z=Math.atan2(-a,u)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Un(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(f,d),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,u));break;case"YZX":this._z=Math.asin(Un(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,u),this._y=Math.atan2(-c,i)):(this._x=0,this._y=Math.atan2(o,d));break;case"XZY":this._z=Math.asin(-Un(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(e,t,n){return ai.makeRotationFromQuaternion(e),this.setFromRotationMatrix(ai,t,n)}},{key:"setFromVector3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(e.x,e.y,e.z,t)}},{key:"reorder",value:function(e){return oi.setFromEuler(this),this.setFromQuaternion(oi,e)}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}},{key:"fromArray",value:function(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}},{key:"toVector3",value:function(e){return e?e.set(this._x,this._y,this._z):new xr(this._x,this._y,this._z)}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}}]),e}();si.prototype.isEuler=!0,si.DefaultOrder="XYZ",si.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];var ui=function(){function e(){M(this,e),this.mask=1}return A(e,[{key:"set",value:function(e){this.mask=(1<>>0}},{key:"enable",value:function(e){this.mask|=1<1){for(var t=0;t1){for(var t=0;t0){r.children=[];for(var h=0;h0){r.animations=[];for(var p=0;p0&&(n.geometries=m),g.length>0&&(n.materials=g),y.length>0&&(n.textures=y),b.length>0&&(n.images=b),x.length>0&&(n.shapes=x),w.length>0&&(n.skeletons=w),_.length>0&&(n.animations=_)}return n.object=r,n;function E(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}}},{key:"clone",value:function(e){return(new this.constructor).copy(this,e)}},{key:"copy",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new xr;M(this,e),this.a=t,this.b=n,this.c=r}return A(e,[{key:"set",value:function(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}},{key:"setFromPointsAndIndices",value:function(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}},{key:"setFromAttributeAndIndices",value:function(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}},{key:"getArea",value:function(){return Ei.subVectors(this.c,this.b),Si.subVectors(this.a,this.b),.5*Ei.cross(Si).length()}},{key:"getMidpoint",value:function(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(t){return e.getNormal(this.a,this.b,this.c,t)}},{key:"getPlane",value:function(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}},{key:"getUV",value:function(t,n,r,i,a){return e.getUV(t,this.a,this.b,this.c,n,r,i,a)}},{key:"containsPoint",value:function(t){return e.containsPoint(t,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(t){return e.isFrontFacing(this.a,this.b,this.c,t)}},{key:"intersectsBox",value:function(e){return e.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(e,t){var n,r,i=this.a,a=this.b,o=this.c;Ti.subVectors(a,i),Ai.subVectors(o,i),Ri.subVectors(e,i);var s=Ti.dot(Ri),u=Ai.dot(Ri);if(s<=0&&u<=0)return t.copy(i);Ci.subVectors(e,a);var l=Ti.dot(Ci),c=Ai.dot(Ci);if(l>=0&&c<=l)return t.copy(a);var f=s*c-l*u;if(f<=0&&s>=0&&l<=0)return n=s/(s-l),t.copy(i).addScaledVector(Ti,n);Li.subVectors(e,o);var d=Ti.dot(Li),h=Ai.dot(Li);if(h>=0&&d<=h)return t.copy(o);var p=d*u-s*h;if(p<=0&&u>=0&&h<=0)return r=u/(u-h),t.copy(i).addScaledVector(Ai,r);var v=l*h-d*c;if(v<=0&&c-l>=0&&d-h>=0)return Oi.subVectors(o,a),r=(c-l)/(c-l+(d-h)),t.copy(a).addScaledVector(Oi,r);var m=1/(v+p+f);return n=p*m,r=f*m,t.copy(i).addScaledVector(Ti,n).addScaledVector(Ai,r)}},{key:"equals",value:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}],[{key:"getNormal",value:function(e,t,n,r){r.subVectors(n,t),Ei.subVectors(e,t),r.cross(Ei);var i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}},{key:"getBarycoord",value:function(e,t,n,r,i){Ei.subVectors(r,t),Si.subVectors(n,t),ki.subVectors(e,t);var a=Ei.dot(Ei),o=Ei.dot(Si),s=Ei.dot(ki),u=Si.dot(Si),l=Si.dot(ki),c=a*u-o*o;if(0===c)return i.set(-2,-1,-1);var f=1/c,d=(u*s-o*l)*f,h=(a*l-o*s)*f;return i.set(1-d-h,h,d)}},{key:"containsPoint",value:function(e,t,n,r){return this.getBarycoord(e,t,n,r,Mi),Mi.x>=0&&Mi.y>=0&&Mi.x+Mi.y<=1}},{key:"getUV",value:function(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Mi),s.set(0,0),s.addScaledVector(i,Mi.x),s.addScaledVector(a,Mi.y),s.addScaledVector(o,Mi.z),s}},{key:"isFrontFacing",value:function(e,t,n,r){return Ei.subVectors(n,t),Si.subVectors(e,t),Ei.cross(Si).dot(r)<0}}]),e}(),Ii=0,Ni=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),Object.defineProperty(h(e),"id",{value:Ii++}),e.uuid=Fn(),e.name="",e.type="Material",e.fog=!0,e.blending=G,e.side=F,e.vertexColors=!1,e.opacity=1,e.format=rt,e.transparent=!1,e.blendSrc=re,e.blendDst=ie,e.blendEquation=Y,e.blendSrcAlpha=null,e.blendDstAlpha=null,e.blendEquationAlpha=null,e.depthFunc=he,e.depthTest=!0,e.depthWrite=!0,e.stencilWriteMask=255,e.stencilFunc=An,e.stencilRef=0,e.stencilFuncMask=255,e.stencilFail=Tn,e.stencilZFail=Tn,e.stencilZPass=Tn,e.stencilWrite=!1,e.clippingPlanes=null,e.clipIntersection=!1,e.clipShadows=!1,e.shadowSide=null,e.colorWrite=!0,e.precision=null,e.polygonOffset=!1,e.polygonOffsetFactor=0,e.polygonOffsetUnits=0,e.dithering=!1,e.alphaToCoverage=!1,e.premultipliedAlpha=!1,e.visible=!0,e.toneMapped=!0,e.userData={},e.version=0,e._alphaTest=0,e}return A(n,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(e){this._alphaTest>0!==e>0&&this.version++,this._alphaTest=e}},{key:"onBuild",value:function(){}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(e){if(void 0!==e)for(var t in e){var n=e[t];if(void 0!==n)if("shading"!==t){var r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}else console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===z;else console.warn("THREE.Material: '"+t+"' parameter is undefined.")}}},{key:"toJSON",value:function(e){var t=void 0===e||"string"===typeof e;t&&(e={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==G&&(n.blending=this.blending),this.side!==F&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.format!==rt&&(n.format=this.format),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t){var i=r(e.textures),a=r(e.images);i.length>0&&(n.textures=i),a.length>0&&(n.images=a)}return n}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.format=e.format,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;var t=e.clippingPlanes,n=null;if(null!==t){var r=t.length;n=new Array(r);for(var i=0;i!==r;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),n}(Ln);Ni.prototype.isMaterial=!0;var Di={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ji={h:0,s:0,l:0},Fi={h:0,s:0,l:0};function Ui(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function Bi(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function zi(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var Hi=function(){function e(t,n,r){return M(this,e),void 0===n&&void 0===r?this.set(t):this.setRGB(t,n,r)}return A(e,[{key:"set",value:function(e){return e&&e.isColor?this.copy(e):"number"===typeof e?this.setHex(e):"string"===typeof e&&this.setStyle(e),this}},{key:"setScalar",value:function(e){return this.r=e,this.g=e,this.b=e,this}},{key:"setHex",value:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this}},{key:"setRGB",value:function(e,t,n){return this.r=e,this.g=t,this.b=n,this}},{key:"setHSL",value:function(e,t,n){if(e=Bn(e,1),t=Un(t,0,1),n=Un(n,0,1),0===t)this.r=this.g=this.b=n;else{var r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Ui(i,r,e+1/3),this.g=Ui(i,r,e),this.b=Ui(i,r,e-1/3)}return this}},{key:"setStyle",value:function(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){var r,i=n[1],a=n[2];switch(i){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,t(r[4]),this;if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,t(r[4]),this;break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){var o=parseFloat(r[1])/360,s=parseInt(r[2],10)/100,u=parseInt(r[3],10)/100;return t(r[4]),this.setHSL(o,s,u)}break}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(e)){var l=n[1],c=l.length;if(3===c)return this.r=parseInt(l.charAt(0)+l.charAt(0),16)/255,this.g=parseInt(l.charAt(1)+l.charAt(1),16)/255,this.b=parseInt(l.charAt(2)+l.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(l.charAt(0)+l.charAt(1),16)/255,this.g=parseInt(l.charAt(2)+l.charAt(3),16)/255,this.b=parseInt(l.charAt(4)+l.charAt(5),16)/255,this}return e&&e.length>0?this.setColorName(e):this}},{key:"setColorName",value:function(e){var t=Di[e.toLowerCase()];return void 0!==t?this.setHex(t):console.warn("THREE.Color: Unknown color "+e),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}},{key:"copyGammaToLinear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return this.r=Math.pow(e.r,t),this.g=Math.pow(e.g,t),this.b=Math.pow(e.b,t),this}},{key:"copyLinearToGamma",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=t>0?1/t:1;return this.r=Math.pow(e.r,n),this.g=Math.pow(e.g,n),this.b=Math.pow(e.b,n),this}},{key:"convertGammaToLinear",value:function(e){return this.copyGammaToLinear(this,e),this}},{key:"convertLinearToGamma",value:function(e){return this.copyLinearToGamma(this,e),this}},{key:"copySRGBToLinear",value:function(e){return this.r=Bi(e.r),this.g=Bi(e.g),this.b=Bi(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=zi(e.r),this.g=zi(e.g),this.b=zi(e.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}},{key:"getHexString",value:function(){return("000000"+this.getHex().toString(16)).slice(-6)}},{key:"getHSL",value:function(e){var t,n,r=this.r,i=this.g,a=this.b,o=Math.max(r,i,a),s=Math.min(r,i,a),u=(s+o)/2;if(s===o)t=0,n=0;else{var l=o-s;switch(n=u<=.5?l/(o+s):l/(2-o-s),o){case r:t=(i-a)/l+(i1&&void 0!==arguments[1]?arguments[1]:0;return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}},{key:"fromBufferAttribute",value:function(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),!0===e.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}},{key:"toJSON",value:function(){return this.getHex()}}]),e}();Hi.NAMES=Di,Hi.prototype.isColor=!0,Hi.prototype.r=1,Hi.prototype.g=1,Hi.prototype.b=1;var Gi=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshBasicMaterial",r.color=new Hi(16777215),r.map=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.specularMap=null,r.alphaMap=null,r.envMap=null,r.combine=ye,r.reflectivity=1,r.refractionRatio=.98,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),n}(Ni);Gi.prototype.isMeshBasicMaterial=!0;var Vi=new xr,Wi=new ar,qi=function(){function e(t,n,r){if(M(this,e),Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=n,this.count=void 0!==t?t.length/n:0,this.normalized=!0===r,this.usage=On,this.updateRange={offset:0,count:-1},this.version=0}return A(e,[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"copy",value:function(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}},{key:"copyAt",value:function(e,t,n){e*=this.itemSize,n*=t.itemSize;for(var r=0,i=this.itemSize;r1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"getX",value:function(e){return this.array[e*this.itemSize]}},{key:"setX",value:function(e,t){return this.array[e*this.itemSize]=t,this}},{key:"getY",value:function(e){return this.array[e*this.itemSize+1]}},{key:"setY",value:function(e,t){return this.array[e*this.itemSize+1]=t,this}},{key:"getZ",value:function(e){return this.array[e*this.itemSize+2]}},{key:"setZ",value:function(e,t){return this.array[e*this.itemSize+2]=t,this}},{key:"getW",value:function(e){return this.array[e*this.itemSize+3]}},{key:"setW",value:function(e,t){return this.array[e*this.itemSize+3]=t,this}},{key:"setXY",value:function(e,t,n){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this}},{key:"setXYZ",value:function(e,t,n,r){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}},{key:"setXYZW",value:function(e,t,n,r,i){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==On&&(e.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(e.updateRange=this.updateRange),e}}]),e}();qi.prototype.isBufferAttribute=!0;var Xi=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Uint16Array(e),r,i)}return A(n)}(qi),Yi=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Uint32Array(e),r,i)}return A(n)}(qi),Ki=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Uint16Array(e),r,i)}return A(n)}(qi);Ki.prototype.isFloat16BufferAttribute=!0;var Zi=function(e){w(n,e);var t=E(n);function n(e,r,i){return M(this,n),t.call(this,new Float32Array(e),r,i)}return A(n)}(qi),Ji=0,$i=new Jr,Qi=new _i,ea=new xr,ta=new Er,na=new Er,ra=new xr,ia=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),Object.defineProperty(h(e),"id",{value:Ji++}),e.uuid=Fn(),e.name="",e.type="BufferGeometry",e.index=null,e.attributes={},e.morphAttributes={},e.morphTargetsRelative=!1,e.groups=[],e.boundingBox=null,e.boundingSphere=null,e.drawRange={start:0,count:1/0},e.userData={},e}return A(n,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){return Array.isArray(e)?this.index=new(sr(e)>65535?Yi:Xi)(e,1):this.index=e,this}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setAttribute",value:function(e,t){return this.attributes[e]=t,this}},{key:"deleteAttribute",value:function(e){return delete this.attributes[e],this}},{key:"hasAttribute",value:function(e){return void 0!==this.attributes[e]}},{key:"addGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:e,count:t,materialIndex:n})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(e,t){this.drawRange.start=e,this.drawRange.count=t}},{key:"applyMatrix4",value:function(e){var t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){var r=(new or).getNormalMatrix(e);n.applyNormalMatrix(r),n.needsUpdate=!0}var i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(e){return $i.makeRotationFromQuaternion(e),this.applyMatrix4($i),this}},{key:"rotateX",value:function(e){return $i.makeRotationX(e),this.applyMatrix4($i),this}},{key:"rotateY",value:function(e){return $i.makeRotationY(e),this.applyMatrix4($i),this}},{key:"rotateZ",value:function(e){return $i.makeRotationZ(e),this.applyMatrix4($i),this}},{key:"translate",value:function(e,t,n){return $i.makeTranslation(e,t,n),this.applyMatrix4($i),this}},{key:"scale",value:function(e,t,n){return $i.makeScale(e,t,n),this.applyMatrix4($i),this}},{key:"lookAt",value:function(e){return Qi.lookAt(e),Qi.updateMatrix(),this.applyMatrix4(Qi.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(ea).negate(),this.translate(ea.x,ea.y,ea.z),this}},{key:"setFromPoints",value:function(e){for(var t=[],n=0,r=e.length;n0&&(e.userData=this.userData),void 0!==this.parameters){var t=this.parameters;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};var r=this.index;null!==r&&(e.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var i=this.attributes;for(var a in i){var o=i[a];e.data.attributes[a]=o.toJSON(e.data)}var s={},u=!1;for(var l in this.morphAttributes){for(var c=this.morphAttributes[l],f=[],d=0,h=c.length;d0&&(s[l]=f,u=!0)}u&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);var v=this.groups;v.length>0&&(e.data.groups=JSON.parse(JSON.stringify(v)));var m=this.boundingSphere;return null!==m&&(e.data.boundingSphere={center:m.center.toArray(),radius:m.radius}),e}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var t={};this.name=e.name;var n=e.index;null!==n&&this.setIndex(n.clone(t));var r=e.attributes;for(var i in r){var a=r[i];this.setAttribute(i,a.clone(t))}var o=e.morphAttributes;for(var s in o){for(var u=[],l=o[s],c=0,f=l.length;c0&&void 0!==arguments[0]?arguments[0]:new ia,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Gi;return M(this,n),e=t.call(this),e.type="Mesh",e.geometry=r,e.material=i,e.updateMorphTargets(),e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}},{key:"updateMorphTargets",value:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}},{key:"raycast",value:function(e,t){var n,r=this.geometry,i=this.material,a=this.matrixWorld;if(void 0!==i&&(null===r.boundingSphere&&r.computeBoundingSphere(),sa.copy(r.boundingSphere),sa.applyMatrix4(a),!1!==e.ray.intersectsSphere(sa)&&(aa.copy(a).invert(),oa.copy(e.ray).applyMatrix4(aa),null===r.boundingBox||!1!==oa.intersectsBox(r.boundingBox))))if(r.isBufferGeometry){var o=r.index,s=r.attributes.position,u=r.morphAttributes.position,l=r.morphTargetsRelative,c=r.attributes.uv,f=r.attributes.uv2,d=r.groups,h=r.drawRange;if(null!==o)if(Array.isArray(i))for(var p=0,v=d.length;pn.far?null:{distance:l,point:wa.clone(),object:e}}function Sa(e,t,n,r,i,a,o,s,u,l,c,f){ua.fromBufferAttribute(i,l),la.fromBufferAttribute(i,c),ca.fromBufferAttribute(i,f);var d=e.morphTargetInfluences;if(a&&d){pa.set(0,0,0),va.set(0,0,0),ma.set(0,0,0);for(var h=0,p=a.length;h0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;M(this,n),e=t.call(this),e.type="BoxGeometry",e.parameters={width:r,height:i,depth:a,widthSegments:o,heightSegments:s,depthSegments:u};var l=h(e);o=Math.floor(o),s=Math.floor(s),u=Math.floor(u);var c=[],f=[],d=[],p=[],v=0,m=0;function g(e,t,n,r,i,a,o,s,u,h,g){for(var y=a/u,b=o/h,x=a/2,w=o/2,_=s/2,E=u+1,S=h+1,k=0,M=0,T=new xr,A=0;A0?1:-1,d.push(T.x,T.y,T.z),p.push(R/u),p.push(1-A/h),k+=1}for(var L=0;L0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;var o={};for(var s in this.extensions)!0===this.extensions[s]&&(o[s]=!0);return Object.keys(o).length>0&&(t.extensions=o),t}}]),n}(Ni);Ca.prototype.isShaderMaterial=!0;var La=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),e.type="Camera",e.matrixWorldInverse=new Jr,e.projectionMatrix=new Jr,e.projectionMatrixInverse=new Jr,e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}},{key:"getWorldDirection",value:function(e){this.updateWorldMatrix(!0,!1);var t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}},{key:"updateMatrixWorld",value:function(e){g(v(n.prototype),"updateMatrixWorld",this).call(this,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}},{key:"updateWorldMatrix",value:function(e,t){g(v(n.prototype),"updateWorldMatrix",this).call(this,e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),n}(_i);La.prototype.isCamera=!0;var Pa=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2e3;return M(this,n),e=t.call(this),e.type="PerspectiveCamera",e.fov=r,e.zoom=1,e.near=a,e.far=o,e.focus=10,e.aspect=i,e.view=null,e.filmGauge=35,e.filmOffset=0,e.updateProjectionMatrix(),e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}},{key:"setFocalLength",value:function(e){var t=.5*this.getFilmHeight()/e;this.fov=2*jn*Math.atan(t),this.updateProjectionMatrix()}},{key:"getFocalLength",value:function(){var e=Math.tan(.5*Dn*this.fov);return.5*this.getFilmHeight()/e}},{key:"getEffectiveFOV",value:function(){return 2*jn*Math.atan(Math.tan(.5*Dn*this.fov)/this.zoom)}},{key:"getFilmWidth",value:function(){return this.filmGauge*Math.min(this.aspect,1)}},{key:"getFilmHeight",value:function(){return this.filmGauge/Math.max(this.aspect,1)}},{key:"setViewOffset",value:function(e,t,n,r,i,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=this.near,t=e*Math.tan(.5*Dn*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(null!==this.view&&this.view.enabled){var o=a.fullWidth,s=a.fullHeight;i+=a.offsetX*r/o,t-=a.offsetY*n/s,r*=a.width/o,n*=a.height/s}var u=this.filmOffset;0!==u&&(i+=e*u/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}]),n}(La);Pa.prototype.isPerspectiveCamera=!0;var Ia=90,Na=1,Da=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;if(M(this,n),a=t.call(this),a.type="CubeCamera",!0!==i.isWebGLCubeRenderTarget)return console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter."),p(a);a.renderTarget=i;var o=new Pa(Ia,Na,e,r);o.layers=a.layers,o.up.set(0,-1,0),o.lookAt(new xr(1,0,0)),a.add(o);var s=new Pa(Ia,Na,e,r);s.layers=a.layers,s.up.set(0,-1,0),s.lookAt(new xr(-1,0,0)),a.add(s);var u=new Pa(Ia,Na,e,r);u.layers=a.layers,u.up.set(0,0,1),u.lookAt(new xr(0,1,0)),a.add(u);var l=new Pa(Ia,Na,e,r);l.layers=a.layers,l.up.set(0,0,-1),l.lookAt(new xr(0,-1,0)),a.add(l);var c=new Pa(Ia,Na,e,r);c.layers=a.layers,c.up.set(0,-1,0),c.lookAt(new xr(0,0,1)),a.add(c);var f=new Pa(Ia,Na,e,r);return f.layers=a.layers,f.up.set(0,-1,0),f.lookAt(new xr(0,0,-1)),a.add(f),a}return A(n,[{key:"update",value:function(e,t){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,r=Object(f["a"])(this.children,6),i=r[0],a=r[1],o=r[2],s=r[3],u=r[4],l=r[5],c=e.xr.enabled,d=e.getRenderTarget();e.xr.enabled=!1;var h=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,i),e.setRenderTarget(n,1),e.render(t,a),e.setRenderTarget(n,2),e.render(t,o),e.setRenderTarget(n,3),e.render(t,s),e.setRenderTarget(n,4),e.render(t,u),n.texture.generateMipmaps=h,e.setRenderTarget(n,5),e.render(t,l),e.setRenderTarget(d),e.xr.enabled=c}}]),n}(_i),ja=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c,f){var d;return M(this,n),e=void 0!==e?e:[],r=void 0!==r?r:Ae,d=t.call(this,e,r,i,a,o,s,u,l,c,f),d.flipY=!1,d}return A(n,[{key:"images",get:function(){return this.image},set:function(e){this.image=e}}]),n}(hr);ja.prototype.isCubeTexture=!0;var Fa=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;return M(this,n),Number.isInteger(r)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),r=i),a=t.call(this,e,e,r),r=r||{},a.texture=new ja(void 0,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.encoding),a.texture.isRenderTargetTexture=!0,a.texture.generateMipmaps=void 0!==r.generateMipmaps&&r.generateMipmaps,a.texture.minFilter=void 0!==r.minFilter?r.minFilter:Be,a.texture._needsFlipEnvMap=!1,a}return A(n,[{key:"fromEquirectangularTexture",value:function(e,t){this.texture.type=t.type,this.texture.format=rt,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;var n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new ka(5,5,5),i=new Ca({name:"CubemapFromEquirect",uniforms:Ma(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:U,blending:H});i.uniforms.tEquirect.value=t;var a=new _a(r,i),o=t.minFilter;t.minFilter===He&&(t.minFilter=Be);var s=new Da(1,10,this);return s.update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}},{key:"clear",value:function(e,t,n,r){for(var i=e.getRenderTarget(),a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,r);e.setRenderTarget(i)}}]),n}(mr);Fa.prototype.isWebGLCubeRenderTarget=!0;var Ua=new xr,Ba=new xr,za=new or,Ha=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr(1,0,0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;M(this,e),this.normal=t,this.constant=n}return A(e,[{key:"set",value:function(e,t){return this.normal.copy(e),this.constant=t,this}},{key:"setComponents",value:function(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}},{key:"setFromNormalAndCoplanarPoint",value:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(e,t,n){var r=Ua.subVectors(n,t).cross(Ba.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}},{key:"copy",value:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this}},{key:"normalize",value:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(e){return this.normal.dot(e)+this.constant}},{key:"distanceToSphere",value:function(e){return this.distanceToPoint(e.center)-e.radius}},{key:"projectPoint",value:function(e,t){return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}},{key:"intersectLine",value:function(e,t){var n=e.delta(Ua),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;var i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(n).multiplyScalar(i).add(e.start)}},{key:"intersectsLine",value:function(e){var t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}},{key:"intersectsBox",value:function(e){return e.intersectsPlane(this)}},{key:"intersectsSphere",value:function(e){return e.intersectsPlane(this)}},{key:"coplanarPoint",value:function(e){return e.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(e,t){var n=t||za.getNormalMatrix(e),r=this.coplanarPoint(Ua).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}},{key:"translate",value:function(e){return this.constant-=e.dot(this.normal),this}},{key:"equals",value:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}();Ha.prototype.isPlane=!0;var Ga=new Hr,Va=new xr,Wa=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ha,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ha,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Ha,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Ha,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Ha,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Ha;M(this,e),this.planes=[t,n,r,i,a,o]}return A(e,[{key:"set",value:function(e,t,n,r,i,a){var o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}},{key:"copy",value:function(e){for(var t=this.planes,n=0;n<6;n++)t[n].copy(e.planes[n]);return this}},{key:"setFromProjectionMatrix",value:function(e){var t=this.planes,n=e.elements,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],l=n[6],c=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],m=n[13],g=n[14],y=n[15];return t[0].setComponents(o-r,c-s,p-f,y-v).normalize(),t[1].setComponents(o+r,c+s,p+f,y+v).normalize(),t[2].setComponents(o+i,c+u,p+d,y+m).normalize(),t[3].setComponents(o-i,c-u,p-d,y-m).normalize(),t[4].setComponents(o-a,c-l,p-h,y-g).normalize(),t[5].setComponents(o+a,c+l,p+h,y+g).normalize(),this}},{key:"intersectsObject",value:function(e){var t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Ga.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Ga)}},{key:"intersectsSprite",value:function(e){return Ga.center.set(0,0,0),Ga.radius=.7071067811865476,Ga.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ga)}},{key:"intersectsSphere",value:function(e){for(var t=this.planes,n=e.center,r=-e.radius,i=0;i<6;i++){var a=t[i].distanceToPoint(n);if(a0?e.max.x:e.min.x,Va.y=r.normal.y>0?e.max.y:e.min.y,Va.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Va)<0)return!1}return!0}},{key:"containsPoint",value:function(e){for(var t=this.planes,n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}();function qa(){var e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Xa(e,t){var n=t.isWebGL2,r=new WeakMap;function i(t,r){var i=t.array,a=t.usage,o=e.createBuffer();e.bindBuffer(r,o),e.bufferData(r,i,a),t.onUploadCallback();var s=5126;return i instanceof Float32Array?s=5126:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?t.isFloat16BufferAttribute?n?s=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):s=5123:i instanceof Int16Array?s=5122:i instanceof Uint32Array?s=5125:i instanceof Int32Array?s=5124:i instanceof Int8Array?s=5120:(i instanceof Uint8Array||i instanceof Uint8ClampedArray)&&(s=5121),{buffer:o,type:s,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}function a(t,r,i){var a=r.array,o=r.updateRange;e.bindBuffer(i,t),-1===o.count?e.bufferSubData(i,0,a):(n?e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a,o.offset,o.count):e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a.subarray(o.offset,o.offset+o.count)),o.count=-1)}function o(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)}function s(t){t.isInterleavedBufferAttribute&&(t=t.data);var n=r.get(t);n&&(e.deleteBuffer(n.buffer),r["delete"](t))}function u(e,t){if(e.isGLBufferAttribute){var n=r.get(e);(!n||n.version0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;M(this,n),e=t.call(this),e.type="PlaneGeometry",e.parameters={width:r,height:i,widthSegments:a,heightSegments:o};for(var s=r/2,u=i/2,l=Math.floor(a),c=Math.floor(o),f=l+1,d=c+1,h=r/l,p=i/c,v=[],m=[],g=[],y=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:1;s.set(e),u=t,h(s,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,h(s,u)},render:d}}function Mu(e,t,n,r){var i=e.getParameter(34921),a=r.isWebGL2?null:t.get("OES_vertex_array_object"),o=r.isWebGL2||null!==a,s={},u=v(null),l=u;function c(t,r,i,a,s){var u=!1;if(o){var c=p(a,i,r);l!==c&&(l=c,d(l.object)),u=m(a,s),u&&g(a,s)}else{var f=!0===r.wireframe;l.geometry===a.id&&l.program===i.id&&l.wireframe===f||(l.geometry=a.id,l.program=i.id,l.wireframe=f,u=!0)}!0===t.isInstancedMesh&&(u=!0),null!==s&&n.update(s,34963),u&&(E(t,r,i,a),null!==s&&e.bindBuffer(34963,n.get(s).buffer))}function f(){return r.isWebGL2?e.createVertexArray():a.createVertexArrayOES()}function d(t){return r.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function h(t){return r.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function p(e,t,n){var r=!0===n.wireframe,i=s[e.id];void 0===i&&(i={},s[e.id]=i);var a=i[t.id];void 0===a&&(a={},i[t.id]=a);var o=a[r];return void 0===o&&(o=v(f()),a[r]=o),o}function v(e){for(var t=[],n=[],r=[],a=0;a=0){var h=u[f];if(void 0===h&&("instanceMatrix"===f&&i.instanceMatrix&&(h=i.instanceMatrix),"instanceColor"===f&&i.instanceColor&&(h=i.instanceColor)),void 0!==h){var p=h.normalized,v=h.itemSize,m=n.get(h);if(void 0===m)continue;var g=m.buffer,E=m.type,S=m.bytesPerElement;if(h.isInterleavedBufferAttribute){var k=h.data,M=k.stride,T=h.offset;if(k&&k.isInstancedInterleavedBuffer){for(var A=0;A0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}var o="undefined"!==typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext,s=void 0!==n.precision?n.precision:"highp",u=a(s);u!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",u,"instead."),s=u);var l=o||t.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,f=e.getParameter(34930),d=e.getParameter(35660),h=e.getParameter(3379),p=e.getParameter(34076),v=e.getParameter(34921),m=e.getParameter(36347),g=e.getParameter(36348),y=e.getParameter(36349),b=d>0,x=o||t.has("OES_texture_float"),w=b&&x,_=o?e.getParameter(36183):0;return{isWebGL2:o,drawBuffers:l,getMaxAnisotropy:i,getMaxPrecision:a,precision:s,logarithmicDepthBuffer:c,maxTextures:f,maxVertexTextures:d,maxTextureSize:h,maxCubemapSize:p,maxAttributes:v,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:y,vertexTextures:b,floatFragmentTextures:x,floatVertexTextures:w,maxSamples:_}}function Ou(e){var t=this,n=null,r=0,i=!1,a=!1,o=new Ha,s=new or,u={value:null,needsUpdate:!1};function l(){u.value!==n&&(u.value=n,u.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function c(e,n,r,i){var a=null!==e?e.length:0,l=null;if(0!==a){if(l=u.value,!0!==i||null===l){var c=r+4*a,f=n.matrixWorldInverse;s.getNormalMatrix(f),(null===l||l.length0){var u=e.getRenderTarget(),l=new Fa(s.height/2);return l.fromEquirectangularTexture(e,r),t.set(r,l),e.setRenderTarget(u),r.addEventListener("dispose",i),n(l.texture,r.mapping)}return null}}return r}function i(e){var n=e.target;n.removeEventListener("dispose",i);var r=t.get(n);void 0!==r&&(t["delete"](n),r.dispose())}function a(){t=new WeakMap}return{get:r,dispose:a}}Su.physical={uniforms:Ta([Su.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new ar(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new Hi(0)},sheenColorMap:{value:null},sheenRoughness:{value:0},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new ar},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new Hi(0)},specularIntensity:{value:0},specularIntensityMap:{value:null},specularColor:{value:new Hi(1,1,1)},specularColorMap:{value:null}}]),vertexShader:_u.meshphysical_vert,fragmentShader:_u.meshphysical_frag};var Cu=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;return M(this,n),e=t.call(this),e.type="OrthographicCamera",e.zoom=1,e.view=null,e.left=r,e.right=i,e.top=a,e.bottom=o,e.near=s,e.far=u,e.updateProjectionMatrix(),e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}},{key:"setViewOffset",value:function(e,t,n,r,i,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,a=n+e,o=r+t,s=r-t;if(null!==this.view&&this.view.enabled){var u=(this.right-this.left)/this.view.fullWidth/this.zoom,l=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=u*this.view.offsetX,a=i+u*this.view.width,o-=l*this.view.offsetY,s=o-l*this.view.height}this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}]),n}(La);Cu.prototype.isOrthographicCamera=!0;var Lu=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.type="RawShaderMaterial",r}return A(n)}(Ca);Lu.prototype.isRawShaderMaterial=!0;var Pu=4,Iu=8,Nu=Math.pow(2,Iu),Du=[.125,.215,.35,.446,.526,.582],ju=Iu-Pu+1+Du.length,Fu=20,Uu=(S={},c(S,mn,0),c(S,gn,1),c(S,bn,2),c(S,xn,3),c(S,wn,4),c(S,_n,5),c(S,yn,6),S),Bu=new Cu,zu=$u(),Hu=zu._lodPlanes,Gu=zu._sizeLods,Vu=zu._sigmas,Wu=new Hi,qu=null,Xu=(1+Math.sqrt(5))/2,Yu=1/Xu,Ku=[new xr(1,1,1),new xr(-1,1,1),new xr(1,1,-1),new xr(-1,1,-1),new xr(0,Xu,Yu),new xr(0,Xu,-Yu),new xr(Yu,0,Xu),new xr(-Yu,0,Xu),new xr(Xu,Yu,0),new xr(-Xu,Yu,0)],Zu=function(){function e(t){M(this,e),this._renderer=t,this._pingPongRenderTarget=null,this._blurMaterial=tl(Fu),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}return A(e,[{key:"fromScene",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;qu=this._renderer.getRenderTarget();var i=this._allocateTargets();return this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}},{key:"fromEquirectangular",value:function(e){return this._fromTexture(e)}},{key:"fromCubemap",value:function(e){return this._fromTexture(e)}},{key:"compileCubemapShader",value:function(){null===this._cubemapShader&&(this._cubemapShader=rl(),this._compileMaterial(this._cubemapShader))}},{key:"compileEquirectangularShader",value:function(){null===this._equirectShader&&(this._equirectShader=nl(),this._compileMaterial(this._equirectShader))}},{key:"dispose",value:function(){this._blurMaterial.dispose(),null!==this._cubemapShader&&this._cubemapShader.dispose(),null!==this._equirectShader&&this._equirectShader.dispose();for(var e=0;e2?Nu:0,Nu,Nu),l.setRenderTarget(r),v&&l.render(p,o),l.render(e,o)}p.geometry.dispose(),p.material.dispose(),l.toneMapping=d,l.outputEncoding=f,l.autoClear=c,e.background=m}},{key:"_setEncoding",value:function(e,t){e.value=Uu[t.encoding]}},{key:"_textureToCubeUV",value:function(e,t){var n=this._renderer,r=e.mapping===Ae||e.mapping===Oe;r?null==this._cubemapShader&&(this._cubemapShader=rl()):null==this._equirectShader&&(this._equirectShader=nl());var i=r?this._cubemapShader:this._equirectShader,a=new _a(Hu[0],i),o=i.uniforms;o["envMap"].value=e,r||o["texelSize"].value.set(1/e.image.width,1/e.image.height),this._setEncoding(o["inputEncoding"],e),this._setEncoding(o["outputEncoding"],t.texture),el(t,0,0,3*Nu,2*Nu),n.setRenderTarget(t),n.render(a,Bu)}},{key:"_applyPMREM",value:function(e){var t=this._renderer,n=t.autoClear;t.autoClear=!1;for(var r=1;rFu&&console.warn("sigmaRadians, ".concat(i,", is too large and will clip, as it requested ").concat(v," samples when the maximum is set to ").concat(Fu));for(var m=[],g=0,y=0;yIu-Pu?r-Iu+Pu:0);el(t,E,S,3*_,2*_),s.setRenderTarget(t),s.render(c,Bu)}}]),e}();function Ju(e){return void 0!==e&&e.type===Ge&&(e.encoding===mn||e.encoding===gn||e.encoding===yn)}function $u(){for(var e=[],t=[],n=[],r=Iu,i=0;iIu-Pu?o=Du[i-Iu+Pu-1]:0==i&&(o=0),n.push(o);for(var s=1/(a-1),u=-s/2,l=1+s/2,c=[u,u,l,u,l,l,u,u,l,l,u,l],f=6,d=6,h=3,p=2,v=1,m=new Float32Array(h*d*f),g=new Float32Array(p*d*f),y=new Float32Array(v*d*f),b=0;b2?0:-1,_=[x,w,0,x+2/3,w,0,x+2/3,w+1,0,x,w,0,x+2/3,w+1,0,x,w+1,0];m.set(_,h*d*b),g.set(c,p*d*b);var E=[b,b,b,b,b,b];y.set(E,v*d*b)}var S=new ia;S.setAttribute("position",new qi(m,h)),S.setAttribute("uv",new qi(g,p)),S.setAttribute("faceIndex",new qi(y,v)),e.push(S),r>Pu&&r--}return{_lodPlanes:e,_sizeLods:t,_sigmas:n}}function Qu(e){var t=new mr(3*Nu,3*Nu,e);return t.texture.mapping=Le,t.texture.name="PMREM.cubeUv",t.scissorTest=!0,t}function el(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function tl(e){var t=new Float32Array(e),n=new xr(0,1,0),r=new Lu({name:"SphericalGaussianBlur",defines:{n:e},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:t},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:n},inputEncoding:{value:Uu[mn]},outputEncoding:{value:Uu[mn]}},vertexShader:il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t".concat(al(),"\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t"),blending:H,depthTest:!1,depthWrite:!1});return r}function nl(){var e=new ar(1,1),t=new Lu({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:e},inputEncoding:{value:Uu[mn]},outputEncoding:{value:Uu[mn]}},vertexShader:il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t".concat(al(),"\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t"),blending:H,depthTest:!1,depthWrite:!1});return t}function rl(){var e=new Lu({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:Uu[mn]},outputEncoding:{value:Uu[mn]}},vertexShader:il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\t".concat(al(),"\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb;\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t"),blending:H,depthTest:!1,depthWrite:!1});return e}function il(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function al(){return"\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include \n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t"}function ol(e){var t=new WeakMap,n=null;function r(r){if(r&&r.isTexture&&!1===r.isRenderTargetTexture){var o=r.mapping,s=o===Re||o===Ce,u=o===Ae||o===Oe;if(s||u){if(t.has(r))return t.get(r).texture;var l=r.image;if(s&&l&&l.height>0||u&&l&&i(l)){var c=e.getRenderTarget();null===n&&(n=new Zu(e));var f=s?n.fromEquirectangular(r):n.fromCubemap(r);return t.set(r,f),e.setRenderTarget(c),r.addEventListener("dispose",a),f.texture}return null}}return r}function i(e){for(var t=0,n=6,r=0;r65535?Yi:Xi)(n,1);b.version=o;var x=a.get(e);x&&t.remove(x),a.set(e,b)}function c(e){var t=a.get(e);if(t){var n=e.index;null!==n&&t.version0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),e=t.call(this,null),e.image={data:r,width:i,height:a,depth:o},e.magFilter=je,e.minFilter=je,e.wrapR=Ne,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e.needsUpdate=!0,e}return A(n)}(hr);function dl(e,t){return e[0]-t[0]}function hl(e,t){return Math.abs(t[1])-Math.abs(e[1])}function pl(e,t){var n=1,r=t.isInterleavedBufferAttribute?t.data.array:t.array;r instanceof Int8Array?n=127:r instanceof Int16Array?n=32767:r instanceof Int32Array?n=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",r),e.divideScalar(n)}function vl(e,t,n){for(var r={},i=new Float32Array(8),a=new WeakMap,o=new xr,s=[],u=0;u<8;u++)s[u]=[u,0];function l(u,l,c,f){var d=u.morphTargetInfluences;if(!0===t.isWebGL2){var h=l.morphAttributes.position.length,p=a.get(l);if(void 0===p||p.count!==h){void 0!==p&&p.texture.dispose();var v=void 0!==l.morphAttributes.normal,m=l.morphAttributes.position,g=l.morphAttributes.normal||[],y=l.attributes.position.count,b=!0===v?2:1,x=y*b,w=1;x>t.maxTextureSize&&(w=Math.ceil(x/t.maxTextureSize),x=t.maxTextureSize);var _=new Float32Array(x*w*4*h),E=new fl(_,x,w,h);E.format=rt,E.type=Ke;for(var S=4*b,k=0;k0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),e=t.call(this,null),e.image={data:r,width:i,height:a,depth:o},e.magFilter=je,e.minFilter=je,e.wrapR=Ne,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e.needsUpdate=!0,e}return A(n)}(hr);gl.prototype.isDataTexture3D=!0;var yl=new hr,bl=new fl,xl=new gl,wl=new ja,_l=[],El=[],Sl=new Float32Array(16),kl=new Float32Array(9),Ml=new Float32Array(4);function Tl(e,t,n){var r=e[0];if(r<=0||r>0)return e;var i=t*n,a=_l[i];if(void 0===a&&(a=new Float32Array(i),_l[i]=a),0!==t){r.toArray(a,0);for(var o=1,s=0;o!==t;++o)s+=n,e[o].toArray(a,s)}return a}function Al(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n/gm;function Uc(e){return e.replace(Fc,Bc)}function Bc(e,t){var n=_u[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return Uc(n)}var zc=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Hc=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Gc(e){return e.replace(Hc,Wc).replace(zc,Vc)}function Vc(e,t,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Wc(e,t,n,r)}function Wc(e,t,n,r){for(var i="",a=parseInt(t);a0?e.gammaFactor:1,v=n.isWebGL2?"":Lc(n),m=Pc(s),g=o.createProgram(),y=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(i=[m].filter(Nc).join("\n"),i.length>0&&(i+="\n"),a=[v,m].filter(Nc).join("\n"),a.length>0&&(a+="\n")):(i=[qc(n),"#define SHADER_NAME "+n.shaderName,m,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+p,"#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Nc).join("\n"),a=[v,qc(n),"#define SHADER_NAME "+n.shaderName,m,"#define GAMMA_FACTOR "+p,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.envMap?"#define "+d:"",n.envMap?"#define "+h:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==we?"#define TONE_MAPPING":"",n.toneMapping!==we?_u["tonemapping_pars_fragment"]:"",n.toneMapping!==we?Cc("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.format===nt?"#define OPAQUE":"",_u["encodings_pars_fragment"],n.map?Oc("mapTexelToLinear",n.mapEncoding):"",n.matcap?Oc("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?Oc("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?Oc("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.specularColorMap?Oc("specularColorMapTexelToLinear",n.specularColorMapEncoding):"",n.sheenColorMap?Oc("sheenColorMapTexelToLinear",n.sheenColorMapEncoding):"",n.lightMap?Oc("lightMapTexelToLinear",n.lightMapEncoding):"",Rc("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Nc).join("\n")),u=Uc(u),u=Dc(u,n),u=jc(u,n),l=Uc(l),l=Dc(l,n),l=jc(l,n),u=Gc(u),l=Gc(l),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(y="#version 300 es\n",i=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+i,a=["#define varying in",n.glslVersion===Cn?"":"out highp vec4 pc_fragColor;",n.glslVersion===Cn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+a);var b,x,w=y+i+u,_=y+a+l,E=Sc(o,35633,w),S=Sc(o,35632,_);if(o.attachShader(g,E),o.attachShader(g,S),void 0!==n.index0AttributeName?o.bindAttribLocation(g,0,n.index0AttributeName):!0===n.morphTargets&&o.bindAttribLocation(g,0,"position"),o.linkProgram(g),e.debug.checkShaderErrors){var k=o.getProgramInfoLog(g).trim(),M=o.getShaderInfoLog(E).trim(),T=o.getShaderInfoLog(S).trim(),A=!0,O=!0;if(!1===o.getProgramParameter(g,35714)){A=!1;var R=Ac(o,E,"vertex"),C=Ac(o,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+o.getError()+" - VALIDATE_STATUS "+o.getProgramParameter(g,35715)+"\n\nProgram Info Log: "+k+"\n"+R+"\n"+C)}else""!==k?console.warn("THREE.WebGLProgram: Program Info Log:",k):""!==M&&""!==T||(O=!1);O&&(this.diagnostics={runnable:A,programLog:k,vertexShader:{log:M,prefix:i},fragmentShader:{log:T,prefix:a}})}return o.deleteShader(E),o.deleteShader(S),this.getUniforms=function(){return void 0===b&&(b=new Ec(o,g)),b},this.getAttributes=function(){return void 0===x&&(x=Ic(o,g)),x},this.destroy=function(){r.releaseStatesOfProgram(this),o.deleteProgram(g),this.program=void 0},this.name=n.shaderName,this.id=kc++,this.cacheKey=t,this.usedTimes=1,this.program=g,this.vertexShader=E,this.fragmentShader=S,this}function $c(e,t,n,r,i,a,o){var s=[],u=i.isWebGL2,l=i.logarithmicDepthBuffer,c=i.floatVertexTextures,f=i.maxVertexUniforms,d=i.vertexTextures,h=i.precision,p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},v=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","instancingColor","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoat","clearcoatMap","clearcoatRoughnessMap","clearcoatNormalMap","displacementMap","specularMap",,"roughnessMap","metalnessMap","gradientMap","alphaMap","alphaTest","combine","vertexColors","vertexAlphas","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","morphTargetsCount","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","format","specularIntensityMap","specularColorMap","specularColorMapEncoding","transmission","transmissionMap","thicknessMap","sheen","sheenColorMap","sheenColorMapEncoding","sheenRoughnessMap"];function m(e){var t=e.skeleton,n=t.bones;if(c)return 1024;var r=f,i=Math.floor((r-20)/4),a=Math.min(i,n.length);return a0,O=a.clearcoat>0,R={isWebGL2:u,shaderID:S,shaderName:a.type,vertexShader:b,fragmentShader:x,defines:a.defines,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:h,instancing:!0===y.isInstancedMesh,instancingColor:!0===y.isInstancedMesh&&null!==y.instanceColor,supportsVertexTextures:d,outputEncoding:null!==T?g(T.texture):e.outputEncoding,map:!!a.map,mapEncoding:g(a.map),matcap:!!a.matcap,matcapEncoding:g(a.matcap),envMap:!!E,envMapMode:E&&E.mapping,envMapEncoding:g(E),envMapCubeUV:!!E&&(E.mapping===Le||E.mapping===Pe),lightMap:!!a.lightMap,lightMapEncoding:g(a.lightMap),aoMap:!!a.aoMap,emissiveMap:!!a.emissiveMap,emissiveMapEncoding:g(a.emissiveMap),bumpMap:!!a.bumpMap,normalMap:!!a.normalMap,objectSpaceNormalMap:a.normalMapType===Mn,tangentSpaceNormalMap:a.normalMapType===kn,clearcoat:O,clearcoatMap:O&&!!a.clearcoatMap,clearcoatRoughnessMap:O&&!!a.clearcoatRoughnessMap,clearcoatNormalMap:O&&!!a.clearcoatNormalMap,displacementMap:!!a.displacementMap,roughnessMap:!!a.roughnessMap,metalnessMap:!!a.metalnessMap,specularMap:!!a.specularMap,specularIntensityMap:!!a.specularIntensityMap,specularColorMap:!!a.specularColorMap,specularColorMapEncoding:g(a.specularColorMap),alphaMap:!!a.alphaMap,alphaTest:A,gradientMap:!!a.gradientMap,sheen:a.sheen>0,sheenColorMap:!!a.sheenColorMap,sheenColorMapEncoding:g(a.sheenColorMap),sheenRoughnessMap:!!a.sheenRoughnessMap,transmission:a.transmission>0,transmissionMap:!!a.transmissionMap,thicknessMap:!!a.thicknessMap,combine:a.combine,vertexTangents:!!a.normalMap&&!!y.geometry&&!!y.geometry.attributes.tangent,vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!y.geometry&&!!y.geometry.attributes.color&&4===y.geometry.attributes.color.itemSize,vertexUvs:!!a.map||!!a.bumpMap||!!a.normalMap||!!a.specularMap||!!a.alphaMap||!!a.emissiveMap||!!a.roughnessMap||!!a.metalnessMap||!!a.clearcoatMap||!!a.clearcoatRoughnessMap||!!a.clearcoatNormalMap||!!a.displacementMap||!!a.transmissionMap||!!a.thicknessMap||!!a.specularIntensityMap||!!a.specularColorMap||!!a.sheenColorMap||a.sheenRoughnessMap,uvsVertexOnly:!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatNormalMap||a.transmission>0||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheen>0||a.sheenColorMap||a.sheenRoughnessMap)&&!!a.displacementMap,fog:!!w,useFog:a.fog,fogExp2:w&&w.isFogExp2,flatShading:!!a.flatShading,sizeAttenuation:a.sizeAttenuation,logarithmicDepthBuffer:l,skinning:!0===y.isSkinnedMesh&&k>0,maxBones:k,useVertexTexture:c,morphTargets:!!y.geometry&&!!y.geometry.morphAttributes.position,morphNormals:!!y.geometry&&!!y.geometry.morphAttributes.normal,morphTargetsCount:y.geometry&&y.geometry.morphAttributes.position?y.geometry.morphAttributes.position.length:0,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,format:a.format,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&f.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:we,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===B,flipSided:a.side===U,depthPacking:void 0!==a.depthPacking&&a.depthPacking,index0AttributeName:a.index0AttributeName,extensionDerivatives:a.extensions&&a.extensions.derivatives,extensionFragDepth:a.extensions&&a.extensions.fragDepth,extensionDrawBuffers:a.extensions&&a.extensions.drawBuffers,extensionShaderTextureLOD:a.extensions&&a.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()};return R}function b(t){var n=[];if(t.shaderID?n.push(t.shaderID):(n.push(cr(t.fragmentShader)),n.push(cr(t.vertexShader))),void 0!==t.defines)for(var r in t.defines)n.push(r),n.push(t.defines[r]);if(!1===t.isRawShaderMaterial){for(var i=0;i0?i.push(c):!0===n.transparent?a.push(c):r.push(c)}function c(e,t,n,o,s,l){var c=u(e,t,n,o,s,l);n.transmission>0?i.unshift(c):!0===n.transparent?a.unshift(c):r.unshift(c)}function f(e,t){r.length>1&&r.sort(e||ef),i.length>1&&i.sort(t||tf),a.length>1&&a.sort(t||tf)}function d(){for(var e=n,r=t.length;e=t.get(n).length?(i=new nf(e),t.get(n).push(i)):i=t.get(n)[r],i}function r(){t=new WeakMap}return{get:n,dispose:r}}function af(){var e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":n={direction:new xr,color:new Hi};break;case"SpotLight":n={position:new xr,direction:new xr,color:new Hi,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new xr,color:new Hi,distance:0,decay:0};break;case"HemisphereLight":n={direction:new xr,skyColor:new Hi,groundColor:new Hi};break;case"RectAreaLight":n={color:new Hi,position:new xr,halfWidth:new xr,halfHeight:new xr};break}return e[t.id]=n,n}}}function of(){var e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ar};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ar};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ar,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}var sf=0;function uf(e,t){return(t.castShadow?1:0)-(e.castShadow?1:0)}function lf(e,t){for(var n=new af,r=of(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},a=0;a<9;a++)i.probe.push(new xr);var o=new xr,s=new Jr,u=new Jr;function l(a,o){for(var s=0,u=0,l=0,c=0;c<9;c++)i.probe[c].set(0,0,0);var f=0,d=0,h=0,p=0,v=0,m=0,g=0,y=0;a.sort(uf);for(var b=!0!==o?Math.PI:1,x=0,w=a.length;x0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Eu.LTC_FLOAT_1,i.rectAreaLTC2=Eu.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Eu.LTC_HALF_1,i.rectAreaLTC2=Eu.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=u,i.ambient[2]=l;var U=i.hash;U.directionalLength===f&&U.pointLength===d&&U.spotLength===h&&U.rectAreaLength===p&&U.hemiLength===v&&U.numDirectionalShadows===m&&U.numPointShadows===g&&U.numSpotShadows===y||(i.directional.length=f,i.spot.length=h,i.rectArea.length=p,i.point.length=d,i.hemi.length=v,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=y,i.spotShadowMap.length=y,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotShadowMatrix.length=y,U.directionalLength=f,U.pointLength=d,U.spotLength=h,U.rectAreaLength=p,U.hemiLength=v,U.numDirectionalShadows=m,U.numPointShadows=g,U.numSpotShadows=y,i.version=sf++)}function c(e,t){for(var n=0,r=0,a=0,l=0,c=0,f=t.matrixWorldInverse,d=0,h=e.length;d1&&void 0!==arguments[1]?arguments[1]:0;return!1===n.has(r)?(i=new cf(e,t),n.set(r,[i])):a>=n.get(r).length?(i=new cf(e,t),n.get(r).push(i)):i=n.get(r)[a],i}function i(){n=new WeakMap}return{get:r,dispose:i}}var df=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshDepthMaterial",r.depthPacking=En,r.map=null,r.alphaMap=null,r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.wireframe=!1,r.wireframeLinewidth=1,r.fog=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}]),n}(Ni);df.prototype.isMeshDepthMaterial=!0;var hf=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshDistanceMaterial",r.referencePosition=new xr,r.nearDistance=1,r.farDistance=1e3,r.map=null,r.alphaMap=null,r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.fog=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}]),n}(Ni);hf.prototype.isMeshDistanceMaterial=!0;var pf="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",vf="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function mf(e,t,n){var r=new Wa,i=new ar,a=new ar,o=new vr,s=new df({depthPacking:Sn}),u=new hf,l={},c=n.maxTextureSize,f={0:U,1:F,2:B},d=new Ca({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new ar},radius:{value:4}},vertexShader:pf,fragmentShader:vf}),h=d.clone();h.defines.HORIZONTAL_PASS=1;var p=new ia;p.setAttribute("position",new qi(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));var v=new _a(p,d),m=this;function g(n,r){var i=t.update(v);d.defines.VSM_SAMPLES!==n.blurSamples&&(d.defines.VSM_SAMPLES=n.blurSamples,h.defines.VSM_SAMPLES=n.blurSamples,d.needsUpdate=!0,h.needsUpdate=!0),d.uniforms.shadow_pass.value=n.map.texture,d.uniforms.resolution.value=n.mapSize,d.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,i,d,v,null),h.uniforms.shadow_pass.value=n.mapPass.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,i,h,v,null)}function y(t,n,r,i,a,o,c){var d=null,h=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(d=void 0!==h?h:!0===i.isPointLight?u:s,e.localClippingEnabled&&!0===r.clipShadows&&0!==r.clippingPlanes.length||r.displacementMap&&0!==r.displacementScale||r.alphaMap&&r.alphaTest>0){var p=d.uuid,v=r.uuid,m=l[p];void 0===m&&(m={},l[p]=m);var g=m[v];void 0===g&&(g=d.clone(),m[v]=g),d=g}return d.visible=r.visible,d.wireframe=r.wireframe,d.side=c===j?null!==r.shadowSide?r.shadowSide:r.side:null!==r.shadowSide?r.shadowSide:f[r.side],d.alphaMap=r.alphaMap,d.alphaTest=r.alphaTest,d.clipShadows=r.clipShadows,d.clippingPlanes=r.clippingPlanes,d.clipIntersection=r.clipIntersection,d.displacementMap=r.displacementMap,d.displacementScale=r.displacementScale,d.displacementBias=r.displacementBias,d.wireframeLinewidth=r.wireframeLinewidth,d.linewidth=r.linewidth,!0===i.isPointLight&&!0===d.isMeshDistanceMaterial&&(d.referencePosition.setFromMatrixPosition(i.matrixWorld),d.nearDistance=a,d.farDistance=o),d}function b(n,i,a,o,s){if(!1!==n.visible){var u=n.layers.test(i.layers);if(u&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===j)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);var l=t.update(n),c=n.material;if(Array.isArray(c))for(var f=l.groups,d=0,h=f.length;dc||i.y>c)&&(i.x>c&&(a.x=Math.floor(c/x.x),i.x=a.x*x.x,y.mapSize.x=a.x),i.y>c&&(a.y=Math.floor(c/x.y),i.y=a.y*x.y,y.mapSize.y=a.y)),null===y.map&&!y.isPointLightShadow&&this.type===j){var w={minFilter:Be,magFilter:Be,format:rt};y.map=new mr(i.x,i.y,w),y.map.texture.name=v.name+".shadowMap",y.mapPass=new mr(i.x,i.y,w),y.camera.updateProjectionMatrix()}if(null===y.map){var _={minFilter:je,magFilter:je,format:rt};y.map=new mr(i.x,i.y,_),y.map.texture.name=v.name+".shadowMap",y.camera.updateProjectionMatrix()}e.setRenderTarget(y.map),e.clear();for(var E=y.getViewportCount(),S=0;S=1):-1!==D.indexOf("OpenGL ES")&&(N=parseFloat(/^OpenGL ES (\d)/.exec(D)[1]),C=N>=2);var j=null,F={},z=e.getParameter(3088),ye=e.getParameter(2978),be=(new vr).fromArray(z),xe=(new vr).fromArray(ye);function we(t,n,r){var i=new Uint8Array(4),a=e.createTexture();e.bindTexture(t,a),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(var o=0;or||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){var a=t?nr:Math.floor,o=a(i*e.width),s=a(i*e.height);void 0===l&&(l=x(o,s));var u=n?x(o,s):l;u.width=o,u.height=s;var c=u.getContext("2d");return c.drawImage(e,0,0,o,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+o+"x"+s+")."),u}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function _(e){return er(e.width)&&er(e.height)}function E(e){return!f&&(e.wrapS!==Ne||e.wrapT!==Ne||e.minFilter!==je&&e.minFilter!==Be)}function S(e,t){return e.generateMipmaps&&t&&e.minFilter!==je&&e.minFilter!==Be}function k(t){e.generateMipmap(t)}function M(n,r,i){if(!1===f)return r;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}var a=r;return 6403===r&&(5126===i&&(a=33326),5131===i&&(a=33325),5121===i&&(a=33321)),6407===r&&(5126===i&&(a=34837),5131===i&&(a=34843),5121===i&&(a=32849)),6408===r&&(5126===i&&(a=34836),5131===i&&(a=34842),5121===i&&(a=32856)),33325!==a&&33326!==a&&34842!==a&&34836!==a||t.get("EXT_color_buffer_float"),a}function T(e,t,n){return!0===S(e,n)?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps.length>0?e.mipmaps.length:1}function A(e){return e===je||e===Fe||e===Ue?9728:9729}function O(e){var t=e.target;t.removeEventListener("dispose",O),C(t),t.isVideoTexture&&y["delete"](t),o.memory.textures--}function R(e){var t=e.target;t.removeEventListener("dispose",R),L(t)}function C(t){var n=r.get(t);void 0!==n.__webglInit&&(e.deleteTexture(n.__webglTexture),r.remove(t))}function L(t){var n=t.texture,i=r.get(t),a=r.get(n);if(t){if(void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),o.memory.textures--),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(var s=0;s<6;s++)e.deleteFramebuffer(i.__webglFramebuffer[s]),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer[s]);else e.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&e.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer&&e.deleteRenderbuffer(i.__webglColorRenderbuffer),i.__webglDepthRenderbuffer&&e.deleteRenderbuffer(i.__webglDepthRenderbuffer);if(t.isWebGLMultipleRenderTargets)for(var u=0,l=n.length;u=d&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+d),P+=1,e}function D(e,t){var i=r.get(e);if(e.isVideoTexture&&te(e),e.version>0&&i.__version!==e.version){var a=e.image;if(void 0===a)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==a.complete)return void V(i,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+t),n.bindTexture(3553,i.__webglTexture)}function j(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?V(i,e,t):(n.activeTexture(33984+t),n.bindTexture(35866,i.__webglTexture))}function F(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?V(i,e,t):(n.activeTexture(33984+t),n.bindTexture(32879,i.__webglTexture))}function U(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?W(i,e,t):(n.activeTexture(33984+t),n.bindTexture(34067,i.__webglTexture))}var B=(s={},c(s,Ie,10497),c(s,Ne,33071),c(s,De,33648),s),z=(u={},c(u,je,9728),c(u,Fe,9984),c(u,Ue,9986),c(u,Be,9729),c(u,ze,9985),c(u,He,9987),u);function H(n,a,o){if(o?(e.texParameteri(n,10242,B[a.wrapS]),e.texParameteri(n,10243,B[a.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,B[a.wrapR]),e.texParameteri(n,10240,z[a.magFilter]),e.texParameteri(n,10241,z[a.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),a.wrapS===Ne&&a.wrapT===Ne||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,A(a.magFilter)),e.texParameteri(n,10241,A(a.minFilter)),a.minFilter!==je&&a.minFilter!==Be&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===t.has("EXT_texture_filter_anisotropic")){var s=t.get("EXT_texture_filter_anisotropic");if(a.type===Ke&&!1===t.has("OES_texture_float_linear"))return;if(!1===f&&a.type===Ze&&!1===t.has("OES_texture_half_float_linear"))return;(a.anisotropy>1||r.get(a).__currentAnisotropy)&&(e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy)}}function G(t,n){void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",O),t.__webglTexture=e.createTexture(),o.memory.textures++)}function V(t,r,i){var o=3553;r.isDataTexture2DArray&&(o=35866),r.isDataTexture3D&&(o=32879),G(t,r),n.activeTexture(33984+i),n.bindTexture(o,t.__webglTexture),e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);var s,u=E(r)&&!1===_(r.image),l=w(r.image,u,!1,p),c=_(l)||f,d=a.convert(r.format),h=a.convert(r.type),v=M(r.internalFormat,d,h,r.encoding);H(o,r,c);var m=r.mipmaps;if(r.isDepthTexture)v=6402,f?v=r.type===Ke?36012:r.type===Ye?33190:r.type===et?35056:33189:r.type===Ke&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===st&&6402===v&&r.type!==qe&&r.type!==Ye&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=qe,h=a.convert(r.type)),r.format===ut&&6402===v&&(v=34041,r.type!==et&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=et,h=a.convert(r.type))),n.texImage2D(3553,0,v,l.width,l.height,0,d,h,null);else if(r.isDataTexture)if(m.length>0&&c){for(var g=0,y=m.length;g0&&c){O&&R&&n.texStorage2D(3553,A,v,m[0].width,m[0].height);for(var C=0,L=m.length;C0&&void 0!==arguments[0]?arguments[0]:[];return M(this,n),e=t.call(this),e.cameras=r,e}return A(n)}(Pa);xf.prototype.isArrayCamera=!0;var wf=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),e.type="Group",e}return A(n)}(_i);wf.prototype.isGroup=!0;var _f={type:"move"},Ef=function(){function e(){M(this,e),this._targetRay=null,this._grip=null,this._hand=null}return A(e,[{key:"getHandSpace",value:function(){return null===this._hand&&(this._hand=new wf,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}},{key:"getTargetRaySpace",value:function(){return null===this._targetRay&&(this._targetRay=new wf,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new xr,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new xr),this._targetRay}},{key:"getGripSpace",value:function(){return null===this._grip&&(this._grip=new wf,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new xr,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new xr),this._grip}},{key:"dispatchEvent",value:function(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}},{key:"disconnect",value:function(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}},{key:"update",value:function(e,t,n){var r=null,i=null,a=null,o=this._targetRay,s=this._grip,u=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState)if(null!==o&&(r=t.getPose(e.targetRaySpace,n),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(_f))),u&&e.hand){a=!0;var c,f=l(e.hand.values());try{for(f.s();!(c=f.n()).done;){var d=c.value,h=t.getJointPose(d,n);if(void 0===u.joints[d.jointName]){var p=new wf;p.matrixAutoUpdate=!1,p.visible=!1,u.joints[d.jointName]=p,u.add(p)}var v=u.joints[d.jointName];null!==h&&(v.matrix.fromArray(h.transform.matrix),v.matrix.decompose(v.position,v.rotation,v.scale),v.jointRadius=h.radius),v.visible=null!==h}}catch(w){f.e(w)}finally{f.f()}var m=u.joints["index-finger-tip"],g=u.joints["thumb-tip"],y=m.position.distanceTo(g.position),b=.02,x=.005;u.inputState.pinching&&y>b+x?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&y<=b-x&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));return null!==o&&(o.visible=null!==r),null!==s&&(s.visible=null!==i),null!==u&&(u.visible=null!==a),this}}]),e}(),Sf=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c,f){var d;if(M(this,n),f=void 0!==f?f:st,f!==st&&f!==ut)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");return void 0===i&&f===st&&(i=qe),void 0===i&&f===ut&&(i=et),d=t.call(this,null,a,o,s,u,l,f,i,c),d.image={width:e,height:r},d.magFilter=void 0!==u?u:je,d.minFilter=void 0!==l?l:je,d.flipY=!1,d.generateMipmaps=!1,d}return A(n)}(hr);Sf.prototype.isDepthTexture=!0;var kf=function(e){w(n,e);var t=E(n);function n(e,r){var i;M(this,n),i=t.call(this);var a=h(i),o=null,u=1,l=null,c="local-floor",f=e.extensions.has("WEBGL_multisampled_render_to_texture"),d=null,p=null,v=null,m=null,g=!1,y=null,b=r.getContextAttributes(),x=null,w=null,_=[],E=new Map,S=new Pa;S.layers.enable(1),S.viewport=new vr;var T=new Pa;T.layers.enable(2),T.viewport=new vr;var A=[S,T],O=new xf;O.layers.enable(1),O.layers.enable(2);var R=null,C=null;function L(e){var t=E.get(e.inputSource);t&&t.dispatchEvent({type:e.type,data:e.inputSource})}function P(){E.forEach((function(e,t){e.disconnect(t)})),E.clear(),R=null,C=null,e.setRenderTarget(x),m=null,v=null,p=null,o=null,w=null,z.stop(),a.isPresenting=!1,a.dispatchEvent({type:"sessionend"})}function I(e){for(var t=o.inputSources,n=0;n<_.length;n++)E.set(t[n],_[n]);for(var r=0;r0&&(t.alphaTest.value=n.alphaTest);var r,i,a=e.get(n).envMap;a&&(t.envMap.value=a,t.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,t.reflectivity.value=n.reflectivity,t.ior.value=n.ior,t.refractionRatio.value=n.refractionRatio),n.lightMap&&(t.lightMap.value=n.lightMap,t.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(t.aoMap.value=n.aoMap,t.aoMapIntensity.value=n.aoMapIntensity),n.map?r=n.map:n.specularMap?r=n.specularMap:n.displacementMap?r=n.displacementMap:n.normalMap?r=n.normalMap:n.bumpMap?r=n.bumpMap:n.roughnessMap?r=n.roughnessMap:n.metalnessMap?r=n.metalnessMap:n.alphaMap?r=n.alphaMap:n.emissiveMap?r=n.emissiveMap:n.clearcoatMap?r=n.clearcoatMap:n.clearcoatNormalMap?r=n.clearcoatNormalMap:n.clearcoatRoughnessMap?r=n.clearcoatRoughnessMap:n.specularIntensityMap?r=n.specularIntensityMap:n.specularColorMap?r=n.specularColorMap:n.transmissionMap?r=n.transmissionMap:n.thicknessMap?r=n.thicknessMap:n.sheenColorMap?r=n.sheenColorMap:n.sheenRoughnessMap&&(r=n.sheenRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix)),n.aoMap?i=n.aoMap:n.lightMap&&(i=n.lightMap),void 0!==i&&(i.isWebGLRenderTarget&&(i=i.texture),!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uv2Transform.value.copy(i.matrix))}function i(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}function a(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function o(e,t,n,r){var i;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?i=t.map:t.alphaMap&&(i=t.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}function s(e,t){var n;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?n=t.map:t.alphaMap&&(n=t.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}function u(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}function l(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function c(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function f(t,n){t.roughness.value=n.roughness,t.metalness.value=n.metalness,n.roughnessMap&&(t.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(t.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(t.emissiveMap.value=n.emissiveMap),n.bumpMap&&(t.bumpMap.value=n.bumpMap,t.bumpScale.value=n.bumpScale,n.side===U&&(t.bumpScale.value*=-1)),n.normalMap&&(t.normalMap.value=n.normalMap,t.normalScale.value.copy(n.normalScale),n.side===U&&t.normalScale.value.negate()),n.displacementMap&&(t.displacementMap.value=n.displacementMap,t.displacementScale.value=n.displacementScale,t.displacementBias.value=n.displacementBias);var r=e.get(n).envMap;r&&(t.envMapIntensity.value=n.envMapIntensity)}function d(e,t,n){f(e,t),e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap)),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===U&&e.clearcoatNormalScale.value.negate())),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=n.texture,e.transmissionSamplerSize.value.set(n.width,n.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}function h(e,t){t.matcap&&(e.matcap.value=t.matcap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function p(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function v(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias),e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}function m(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===U&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===U&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}return{refreshFogUniforms:t,refreshMaterialUniforms:n}}function Tf(){var e=lr("canvas");return e.style.display="block",e}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0!==e.canvas?e.canvas:Tf(),n=void 0!==e.context?e.context:null,r=void 0!==e.alpha&&e.alpha,i=void 0===e.depth||e.depth,a=void 0===e.stencil||e.stencil,o=void 0!==e.antialias&&e.antialias,s=void 0===e.premultipliedAlpha||e.premultipliedAlpha,u=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,l=void 0!==e.powerPreference?e.powerPreference:"default",c=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat,f=null,d=null,h=[],p=[];this.domElement=t,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=mn,this.physicallyCorrectLights=!1,this.toneMapping=we,this.toneMappingExposure=1;var v=this,m=!1,g=0,y=0,b=null,x=-1,w=null,_=new vr,E=new vr,S=null,k=t.width,M=t.height,T=1,A=null,R=null,C=new vr(0,0,k,M),L=new vr(0,0,k,M),P=!1,I=[],N=new Wa,D=!1,j=!1,z=null,H=new Jr,G=new xr,V={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function W(){return null===b?T:1}var q,X,Y,K,Z,J,$,Q,ee,te,ne,re,ie,ae,oe,se,ue,le,ce,fe,de,he,pe,ve=n;function me(e,n){for(var r=0;r0&&Ie(i,t,n),r&&Y.viewport(_.copy(r)),i.length>0&&De(i,t,n),a.length>0&&De(a,t,n),o.length>0&&De(o,t,n)}function Ie(e,t,n){if(null===z){var r=!0===o&&!0===X.isWebGL2,i=r?yr:mr;z=new i(1024,1024,{generateMipmaps:!0,type:null!==he.convert(Ze)?Ze:Ge,minFilter:He,magFilter:je,wrapS:Ne,wrapT:Ne,useRenderToTexture:q.has("WEBGL_multisampled_render_to_texture")})}var a=v.getRenderTarget();v.setRenderTarget(z),v.clear();var s=v.toneMapping;v.toneMapping=we,De(e,t,n),v.toneMapping=s,J.updateMultisampleRenderTarget(z),J.updateRenderTargetMipmap(z),v.setRenderTarget(a)}function De(e,t,n){for(var r=!0===t.isScene?t.overrideMaterial:null,i=0,a=e.length;i0?p[p.length-1]:null,h.pop(),f=h.length>0?h[h.length-1]:null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.getActiveCubeFace=function(){return g},this.getActiveMipmapLevel=function(){return y},this.getRenderTarget=function(){return b},this.setRenderTargetTextures=function(e,t,n){Z.get(e.texture).__webglTexture=t,Z.get(e.depthTexture).__webglTexture=n;var r=Z.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||e.useRenderToTexture&&(console.warn("render-to-texture extension was disabled because an external texture was provided"),e.useRenderToTexture=!1,e.useRenderbuffer=!0))},this.setRenderTargetFramebuffer=function(e,t){var n=Z.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;b=e,g=t,y=n;var r=!0;if(e){var i=Z.get(e);void 0!==i.__useDefaultFramebuffer?(Y.bindFramebuffer(36160,null),r=!1):void 0===i.__webglFramebuffer?J.setupRenderTarget(e):i.__hasExternalTextures&&J.rebindTextures(e,Z.get(e.texture).__webglTexture,Z.get(e.depthTexture).__webglTexture)}var a=null,o=!1,s=!1;if(e){var u=e.texture;(u.isDataTexture3D||u.isDataTexture2DArray)&&(s=!0);var l=Z.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(a=l[t],o=!0):a=e.useRenderbuffer?Z.get(e).__webglMultisampledFramebuffer:l,_.copy(e.viewport),E.copy(e.scissor),S=e.scissorTest}else _.copy(C).multiplyScalar(T).floor(),E.copy(L).multiplyScalar(T).floor(),S=P;var c=Y.bindFramebuffer(36160,a);if(c&&X.drawBuffers&&r){var f=!1;if(e)if(e.isWebGLMultipleRenderTargets){var d=e.texture;if(I.length!==d.length||36064!==I[0]){for(var h=0,p=d.length;h=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ve.readPixels(t,n,r,i,he.convert(l),he.convert(c),a):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{var d=null!==b?Z.get(b).__webglFramebuffer:null;Y.bindFramebuffer(36160,d)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.pow(2,-n),i=Math.floor(t.image.width*r),a=Math.floor(t.image.height*r),o=he.convert(t.format);X.isWebGL2&&(6407===o&&(o=32849),6408===o&&(o=32856)),J.setTexture2D(t,0),ve.copyTexImage2D(3553,n,o,e.x,e.y,i,a,0),Y.unbindTexture()},this.copyTextureToTexture=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=t.image.width,a=t.image.height,o=he.convert(n.format),s=he.convert(n.type);J.setTexture2D(n,0),ve.pixelStorei(37440,n.flipY),ve.pixelStorei(37441,n.premultiplyAlpha),ve.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?ve.texSubImage2D(3553,r,e.x,e.y,i,a,o,s,t.image.data):t.isCompressedTexture?ve.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,o,t.mipmaps[0].data):ve.texSubImage2D(3553,r,e.x,e.y,o,s,t.image),0===r&&n.generateMipmaps&&ve.generateMipmap(3553),Y.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(v.isWebGL1Renderer)console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");else{var a,o=e.max.x-e.min.x+1,s=e.max.y-e.min.y+1,u=e.max.z-e.min.z+1,l=he.convert(r.format),c=he.convert(r.type);if(r.isDataTexture3D)J.setTexture3D(r,0),a=32879;else{if(!r.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");J.setTexture2DArray(r,0),a=35866}ve.pixelStorei(37440,r.flipY),ve.pixelStorei(37441,r.premultiplyAlpha),ve.pixelStorei(3317,r.unpackAlignment);var f=ve.getParameter(3314),d=ve.getParameter(32878),h=ve.getParameter(3316),p=ve.getParameter(3315),m=ve.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;ve.pixelStorei(3314,g.width),ve.pixelStorei(32878,g.height),ve.pixelStorei(3316,e.min.x),ve.pixelStorei(3315,e.min.y),ve.pixelStorei(32877,e.min.z),n.isDataTexture||n.isDataTexture3D?ve.texSubImage3D(a,i,t.x,t.y,t.z,o,s,u,l,c,g.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),ve.compressedTexSubImage3D(a,i,t.x,t.y,t.z,o,s,u,l,g.data)):ve.texSubImage3D(a,i,t.x,t.y,t.z,o,s,u,l,c,g),ve.pixelStorei(3314,f),ve.pixelStorei(32878,d),ve.pixelStorei(3316,h),ve.pixelStorei(3315,p),ve.pixelStorei(32877,m),0===i&&r.generateMipmaps&&ve.generateMipmap(a),Y.unbindTexture()}},this.initTexture=function(e){J.setTexture2D(e,0),Y.unbindTexture()},this.resetState=function(){g=0,y=0,b=null,Y.reset(),pe.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Af.prototype.isWebGLRenderer=!0;var Of=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(Af);Of.prototype.isWebGL1Renderer=!0;var Rf=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25e-5;M(this,e),this.name="",this.color=new Hi(t),this.density=n}return A(e,[{key:"clone",value:function(){return new e(this.color,this.density)}},{key:"toJSON",value:function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}]),e}();Rf.prototype.isFogExp2=!0;var Cf=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;M(this,e),this.name="",this.color=new Hi(t),this.near=n,this.far=r}return A(e,[{key:"clone",value:function(){return new e(this.color,this.near,this.far)}},{key:"toJSON",value:function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}]),e}();Cf.prototype.isFog=!0;var Lf=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this),e.type="Scene",e.background=null,e.environment=null,e.fog=null,e.overrideMaterial=null,e.autoUpdate=!0,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:h(e)})),e}return A(n,[{key:"copy",value:function(e,t){return g(v(n.prototype),"copy",this).call(this,e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),t}}]),n}(_i);Lf.prototype.isScene=!0;var Pf=function(){function e(t,n){M(this,e),this.array=t,this.stride=n,this.count=void 0!==t?t.length/n:0,this.usage=On,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Fn()}return A(e,[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"copy",value:function(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}},{key:"copyAt",value:function(e,t,n){e*=this.stride,n*=t.stride;for(var r=0,i=this.stride;r1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"clone",value:function(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Fn()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);var t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"toJSON",value:function(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Fn()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}]),e}();Pf.prototype.isInterleavedBuffer=!0;var If=new xr,Nf=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];M(this,e),this.name="",this.data=t,this.itemSize=n,this.offset=r,this.normalized=!0===i}return A(e,[{key:"count",get:function(){return this.data.count}},{key:"array",get:function(){return this.data.array}},{key:"needsUpdate",set:function(e){this.data.needsUpdate=e}},{key:"applyMatrix4",value:function(e){for(var t=0,n=this.data.count;te.far||t.push({distance:s,point:Ff.clone(),uv:Pi.getUV(Ff,Vf,Wf,qf,Xf,Yf,Kf,new ar),face:null,object:this})}}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}]),n}(_i);function Jf(e,t,n,r,i,a){zf.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(Hf.x=a*zf.x-i*zf.y,Hf.y=i*zf.x+a*zf.y):Hf.copy(zf),e.copy(t),e.x+=Hf.x,e.y+=Hf.y,e.applyMatrix4(Gf)}Zf.prototype.isSprite=!0;var $f=new xr,Qf=new vr,ed=new vr,td=new xr,nd=new Jr,rd=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="SkinnedMesh",i.bindMode="attached",i.bindMatrix=new Jr,i.bindMatrixInverse=new Jr,i}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}},{key:"bind",value:function(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}},{key:"pose",value:function(){this.skeleton.pose()}},{key:"normalizeSkinWeights",value:function(){for(var e=new vr,t=this.geometry.attributes.skinWeight,n=0,r=t.count;n0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:je,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:je,h=arguments.length>10?arguments[10]:void 0,p=arguments.length>11?arguments[11]:void 0;return M(this,n),e=t.call(this,null,u,l,c,f,d,o,s,h,p),e.image={data:r,width:i,height:a},e.magFilter=f,e.minFilter=d,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e.needsUpdate=!0,e}return A(n)}(hr);ad.prototype.isDataTexture=!0;var od=new Jr,sd=new Jr,ud=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];M(this,e),this.uuid=Fn(),this.bones=t.slice(0),this.boneInverses=n,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}return A(e,[{key:"init",value:function(){var e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(var n=0,r=this.bones.length;n3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),"number"===typeof i&&(o=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),a=t.call(this,e,r,i),a.meshPerAttribute=o,a}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}]),n}(qi);ld.prototype.isInstancedBufferAttribute=!0;var cd=new Jr,fd=new Jr,dd=[],hd=new _a,pd=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;return M(this,n),a=t.call(this,e,r),a.instanceMatrix=new ld(new Float32Array(16*i),16),a.instanceColor=null,a.count=i,a.frustumCulled=!1,a}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,this}},{key:"getColorAt",value:function(e,t){t.fromArray(this.instanceColor.array,3*e)}},{key:"getMatrixAt",value:function(e,t){t.fromArray(this.instanceMatrix.array,16*e)}},{key:"raycast",value:function(e,t){var n=this.matrixWorld,r=this.count;if(hd.geometry=this.geometry,hd.material=this.material,void 0!==hd.material)for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new ia,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new vd;return M(this,n),e=t.call(this),e.type="Line",e.geometry=r,e.material=i,e.updateMorphTargets(),e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.material=e.material,this.geometry=e.geometry,this}},{key:"computeLineDistances",value:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[0],r=1,i=t.count;rs)){f.applyMatrix4(this.matrixWorld);var E=e.ray.origin.distanceTo(f);Ee.far||t.push({distance:E,point:c.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else for(var S=Math.max(0,a.start),k=Math.min(v.count,a.start+a.count),M=S,T=k-1;Ms)){f.applyMatrix4(this.matrixWorld);var O=e.ray.origin.distanceTo(f);Oe.far||t.push({distance:O,point:c.clone().applyMatrix4(this.matrixWorld),index:M,face:null,faceIndex:null,object:this})}}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}},{key:"updateMorphTargets",value:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}]),n}(_i);wd.prototype.isLine=!0;var _d=new xr,Ed=new xr,Sd=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="LineSegments",i}return A(n,[{key:"computeLineDistances",value:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[],r=0,i=t.count;r0&&void 0!==arguments[0]?arguments[0]:new ia,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Md;return M(this,n),e=t.call(this),e.type="Points",e.geometry=r,e.material=i,e.updateMorphTargets(),e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.material=e.material,this.geometry=e.geometry,this}},{key:"raycast",value:function(e,t){var n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Od.copy(n.boundingSphere),Od.applyMatrix4(r),Od.radius+=i,!1!==e.ray.intersectsSphere(Od)){Td.copy(r).invert(),Ad.copy(e.ray).applyMatrix4(Td);var o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o;if(n.isBufferGeometry){var u=n.index,l=n.attributes,c=l.position;if(null!==u)for(var f=Math.max(0,a.start),d=Math.min(u.count,a.start+a.count),h=f,p=d;h0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}]),n}(_i);function Ld(e,t,n,r,i,a,o){var s=Ad.distanceSqToPoint(e);if(si.far)return;a.push({distance:l,distanceToRay:Math.sqrt(s),point:u,index:t,face:null,object:o})}}Cd.prototype.isPoints=!0;var Pd=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c){var f;M(this,n),f=t.call(this,e,r,i,a,o,s,u,l,c),f.format=void 0!==u?u:nt,f.minFilter=void 0!==s?s:Be,f.magFilter=void 0!==o?o:Be,f.generateMipmaps=!1;var d=h(f);function p(){d.needsUpdate=!0,e.requestVideoFrameCallback(p)}return"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(p),f}return A(n,[{key:"clone",value:function(){return new this.constructor(this.image).copy(this)}},{key:"update",value:function(){var e=this.image,t="requestVideoFrameCallback"in e;!1===t&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}]),n}(hr);Pd.prototype.isVideoTexture=!0;var Id=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c,f,d,h){var p;return M(this,n),p=t.call(this,null,s,u,l,c,f,a,o,d,h),p.image={width:r,height:i},p.mipmaps=e,p.flipY=!1,p.generateMipmaps=!1,p}return A(n)}(hr);Id.prototype.isCompressedTexture=!0;var Nd=function(e){w(n,e);var t=E(n);function n(e,r,i,a,o,s,u,l,c){var f;return M(this,n),f=t.call(this,e,r,i,a,o,s,u,l,c),f.needsUpdate=!0,f}return A(n)}(hr);Nd.prototype.isCanvasTexture=!0;new xr,new xr,new xr,new Pi;var Dd=function(){function e(){M(this,e),this.type="Curve",this.arcLengthDivisions=200}return A(e,[{key:"getPoint",value:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}},{key:"getPointAt",value:function(e,t){var n=this.getUtoTmapping(e);return this.getPoint(n,t)}},{key:"getPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}},{key:"getSpacedPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}},{key:"getLength",value:function(){var e=this.getLengths();return e[e.length-1]}},{key:"getLengths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,n=[],r=this.getPoint(0),i=0;n.push(0);for(var a=1;a<=e;a++)t=this.getPoint(a/e),i+=t.distanceTo(r),n.push(i),r=t;return this.cacheArcLengths=n,n}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.getLengths()}},{key:"getUtoTmapping",value:function(e,t){var n,r=this.getLengths(),i=0,a=r.length;n=t||e*r[a-1];var o,s=0,u=a-1;while(s<=u)if(i=Math.floor(s+(u-s)/2),o=r[i]-n,o<0)s=i+1;else{if(!(o>0)){u=i;break}u=i-1}if(i=u,r[i]===n)return i/(a-1);var l=r[i],c=r[i+1],f=c-l,d=(n-l)/f,h=(i+d)/(a-1);return h}},{key:"getTangent",value:function(e,t){var n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);var a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new ar:new xr);return s.copy(o).sub(a).normalize(),s}},{key:"getTangentAt",value:function(e,t){var n=this.getUtoTmapping(e);return this.getTangent(n,t)}},{key:"computeFrenetFrames",value:function(e,t){for(var n=new xr,r=[],i=[],a=[],o=new xr,s=new Jr,u=0;u<=e;u++){var l=u/e;r[u]=this.getTangentAt(l,new xr)}i[0]=new xr,a[0]=new xr;var c=Number.MAX_VALUE,f=Math.abs(r[0].x),d=Math.abs(r[0].y),h=Math.abs(r[0].z);f<=c&&(c=f,n.set(1,0,0)),d<=c&&(c=d,n.set(0,1,0)),h<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(var p=1;p<=e;p++){if(i[p]=i[p-1].clone(),a[p]=a[p-1].clone(),o.crossVectors(r[p-1],r[p]),o.length()>Number.EPSILON){o.normalize();var v=Math.acos(Un(r[p-1].dot(r[p]),-1,1));i[p].applyMatrix4(s.makeRotationAxis(o,v))}a[p].crossVectors(r[p],i[p])}if(!0===t){var m=Math.acos(Un(i[0].dot(i[e]),-1,1));m/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(m=-m);for(var g=1;g<=e;g++)i[g].applyMatrix4(s.makeRotationAxis(r[g],m*g)),a[g].crossVectors(r[g],i[g])}return{tangents:r,normals:i,binormals:a}}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},{key:"toJSON",value:function(){var e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}},{key:"fromJSON",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}]),e}(),jd=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;return M(this,n),e=t.call(this),e.type="EllipseCurve",e.aX=r,e.aY=i,e.xRadius=a,e.yRadius=o,e.aStartAngle=s,e.aEndAngle=u,e.aClockwise=l,e.aRotation=c,e}return A(n,[{key:"getPoint",value:function(e,t){var n=t||new ar,r=2*Math.PI,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)r)i-=r;i0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return M(this,n),e=t.call(this),e.type="CatmullRomCurve3",e.points=r,e.closed=i,e.curveType=a,e.tension=o,e}return A(n,[{key:"getPoint",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,i=r,a=this.points,o=a.length,s=(o-(this.closed?0:1))*e,u=Math.floor(s),l=s-u;this.closed?u+=u>0?0:(Math.floor(Math.abs(u)/o)+1)*o:0===l&&u===o-1&&(u=o-2,l=1),this.closed||u>0?t=a[(u-1)%o]:(Bd.subVectors(a[0],a[1]).add(a[0]),t=Bd);var c=a[u%o],f=a[(u+1)%o];if(this.closed||u+20&&void 0!==arguments[0]?arguments[0]:new ar,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ar,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ar;return M(this,n),e=t.call(this),e.type="CubicBezierCurve",e.v0=r,e.v1=i,e.v2=a,e.v3=o,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(eh(e,r.x,i.x,a.x,o.x),eh(e,r.y,i.y,a.y,o.y)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}]),n}(Dd);th.prototype.isCubicBezierCurve=!0;var nh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new xr,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new xr;return M(this,n),e=t.call(this),e.type="CubicBezierCurve3",e.v0=r,e.v1=i,e.v2=a,e.v3=o,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(eh(e,r.x,i.x,a.x,o.x),eh(e,r.y,i.y,a.y,o.y),eh(e,r.z,i.z,a.z,o.z)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}]),n}(Dd);nh.prototype.isCubicBezierCurve3=!0;var rh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ar,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar;return M(this,n),e=t.call(this),e.type="LineCurve",e.v1=r,e.v2=i,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"getTangent",value:function(e,t){var n=t||new ar;return n.copy(this.v2).sub(this.v1).normalize(),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd);rh.prototype.isLineCurve=!0;var ih=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr;return M(this,n),e=t.call(this),e.type="LineCurve3",e.isLineCurve3=!0,e.v1=r,e.v2=i,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd),ah=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ar,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ar;return M(this,n),e=t.call(this),e.type="QuadraticBezierCurve",e.v0=r,e.v1=i,e.v2=a,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Kd(e,r.x,i.x,a.x),Kd(e,r.y,i.y,a.y)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd);ah.prototype.isQuadraticBezierCurve=!0;var oh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new xr;return M(this,n),e=t.call(this),e.type="QuadraticBezierCurve3",e.v0=r,e.v1=i,e.v2=a,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Kd(e,r.x,i.x,a.x),Kd(e,r.y,i.y,a.y),Kd(e,r.z,i.z,a.z)),n}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),n}(Dd);oh.prototype.isQuadraticBezierCurve3=!0;var sh=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return M(this,n),e=t.call(this),e.type="SplineCurve",e.points=r,e}return A(n,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar,n=t,r=this.points,i=(r.length-1)*e,a=Math.floor(i),o=i-a,s=r[0===a?a:a-1],u=r[a],l=r[a>r.length-2?r.length-1:a+1],c=r[a>r.length-3?r.length-1:a+2];return n.set(Wd(o,s.x,u.x,l.x,c.x),Wd(o,s.y,u.y,l.y,c.y)),n}},{key:"copy",value:function(e){g(v(n.prototype),"copy",this).call(this,e),this.points=[];for(var t=0,r=e.points.length;t=n){var a=r[i]-n,o=this.curves[i],s=o.getLength(),u=0===s?0:1-a/s;return o.getPointAt(u,t)}i++}return null}},{key:"getLength",value:function(){var e=this.getCurveLengths();return e[e.length-1]}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}},{key:"getCurveLengths",value:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,n=0,r=this.curves.length;n0&&void 0!==arguments[0]?arguments[0]:40,t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}},{key:"getPoints",value:function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,n=[],r=0,i=this.curves;r1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}},{key:"copy",value:function(e){g(v(n.prototype),"copy",this).call(this,e),this.curves=[];for(var t=0,r=e.curves.length;t0){var l=u.getPoint(0);l.equals(this.currentPoint)||this.lineTo(l.x,l.y)}this.curves.push(u);var c=u.getPoint(1);return this.currentPoint.copy(c),this}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.currentPoint.copy(e.currentPoint),this}},{key:"toJSON",value:function(){var e=g(v(n.prototype),"toJSON",this).call(this);return e.currentPoint=this.currentPoint.toArray(),e}},{key:"fromJSON",value:function(e){return g(v(n.prototype),"fromJSON",this).call(this,e),this.currentPoint.fromArray(e.currentPoint),this}}]),n}(lh),fh=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.uuid=Fn(),r.type="Shape",r.holes=[],r}return A(n,[{key:"getPointsHoles",value:function(e){for(var t=[],n=0,r=this.holes.length;n2&&void 0!==arguments[2]?arguments[2]:2,c=t&&t.length,f=c?t[0]*l:e.length,d=hh(e,0,f,l,!0),h=[];if(!d||d.next===d.prev)return h;if(c&&(d=xh(e,t,d,l)),e.length>80*l){n=i=e[0],r=a=e[1];for(var p=l;pi&&(i=o),s>a&&(a=s);u=Math.max(i-n,a-r),u=0!==u?1/u:0}return vh(d,h,l,n,r,u),h}};function hh(e,t,n,r,i){var a,o;if(i===Gh(e,t,n,r)>0)for(a=t;a=t;a-=r)o=Bh(a,e[a],e[a+1],o);return o&&Lh(o,o.next)&&(zh(o),o=o.next),o}function ph(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Lh(r,r.next)&&0!==Ch(r.prev,r,r.next))r=r.next;else{if(zh(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function vh(e,t,n,r,i,a,o){if(e){!o&&a&&kh(e,r,i,a);var s,u,l=e;while(e.prev!==e.next)if(s=e.prev,u=e.next,a?gh(e,r,i,a):mh(e))t.push(s.i/n),t.push(e.i/n),t.push(u.i/n),zh(e),e=u.next,l=u.next;else if(e=u,e===l){o?1===o?(e=yh(ph(e),t,n),vh(e,t,n,r,i,a,2)):2===o&&bh(e,t,n,r,i,a):vh(ph(e),t,n,r,i,a,1);break}}}function mh(e){var t=e.prev,n=e,r=e.next;if(Ch(t,n,r)>=0)return!1;var i=e.next.next;while(i!==e.prev){if(Oh(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ch(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function gh(e,t,n,r){var i=e.prev,a=e,o=e.next;if(Ch(i,a,o)>=0)return!1;var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=Th(s,u,t,n,r),d=Th(l,c,t,n,r),h=e.prevZ,p=e.nextZ;while(h&&h.z>=f&&p&&p.z<=d){if(h!==e.prev&&h!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Ch(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,p!==e.prev&&p!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ch(p.prev,p,p.next)>=0)return!1;p=p.nextZ}while(h&&h.z>=f){if(h!==e.prev&&h!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&&Ch(h.prev,h,h.next)>=0)return!1;h=h.prevZ}while(p&&p.z<=d){if(p!==e.prev&&p!==e.next&&Oh(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ch(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function yh(e,t,n){var r=e;do{var i=r.prev,a=r.next.next;!Lh(i,a)&&Ph(i,r,r.next,a)&&jh(i,a)&&jh(a,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(a.i/n),zh(r),zh(r.next),r=e=a),r=r.next}while(r!==e);return ph(r)}function bh(e,t,n,r,i,a){var o=e;do{var s=o.next.next;while(s!==o.prev){if(o.i!==s.i&&Rh(o,s)){var u=Uh(o,s);return o=ph(o,o.next),u=ph(u,u.next),vh(o,t,n,r,i,a),void vh(u,t,n,r,i,a)}s=s.next}o=o.next}while(o!==e)}function xh(e,t,n,r){var i,a,o,s,u,l=[];for(i=0,a=t.length;i=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>o){if(o=s,s===i){if(a===r.y)return r;if(a===r.next.y)return r.next}n=r.x=r.x&&r.x>=c&&i!==r.x&&Oh(an.x||r.x===n.x&&Sh(n,r)))&&(n=r,d=u)),r=r.next}while(r!==l);return n}function Sh(e,t){return Ch(e.prev,e,t.prev)<0&&Ch(t.next,e,e.next)<0}function kh(e,t,n,r){var i=e;do{null===i.z&&(i.z=Th(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Mh(i)}function Mh(e){var t,n,r,i,a,o,s,u,l=1;do{n=e,e=null,a=null,o=0;while(n){for(o++,r=n,s=0,t=0;t0||u>0&&r)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,l*=2}while(o>1);return e}function Th(e,t,n,r,i){return e=32767*(e-n)*i,t=32767*(t-r)*i,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1}function Ah(e){var t=e,n=e;do{(t.x=0&&(e-o)*(r-s)-(n-o)*(t-s)>=0&&(n-o)*(a-s)-(i-o)*(r-s)>=0}function Rh(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Dh(e,t)&&(jh(e,t)&&jh(t,e)&&Fh(e,t)&&(Ch(e.prev,e,t.prev)||Ch(e,t.prev,t))||Lh(e,t)&&Ch(e.prev,e,e.next)>0&&Ch(t.prev,t,t.next)>0)}function Ch(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Lh(e,t){return e.x===t.x&&e.y===t.y}function Ph(e,t,n,r){var i=Nh(Ch(e,t,n)),a=Nh(Ch(e,t,r)),o=Nh(Ch(n,r,e)),s=Nh(Ch(n,r,t));return i!==a&&o!==s||(!(0!==i||!Ih(e,n,t))||(!(0!==a||!Ih(e,r,t))||(!(0!==o||!Ih(n,e,r))||!(0!==s||!Ih(n,t,r)))))}function Ih(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Nh(e){return e>0?1:e<0?-1:0}function Dh(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Ph(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function jh(e,t){return Ch(e.prev,e,e.next)<0?Ch(e,t,e.next)>=0&&Ch(e,e.prev,t)>=0:Ch(e,t,e.prev)<0||Ch(e,e.next,t)<0}function Fh(e,t){var n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!==n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}function Uh(e,t){var n=new Hh(e.i,e.x,e.y),r=new Hh(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function Bh(e,t,n,r){var i=new Hh(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function zh(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Hh(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Gh(e,t,n,r){for(var i=0,a=t,o=n-r;a2&&e[t-1].equals(e[0])&&e.pop()}function qh(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:new fh([new ar(.5,.5),new ar(-.5,.5),new ar(-.5,-.5),new ar(.5,-.5)]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,n),e=t.call(this),e.type="ExtrudeGeometry",e.parameters={shapes:r,options:i},r=Array.isArray(r)?r:[r];for(var a=h(e),o=[],s=[],u=0,l=r.length;uNumber.EPSILON){var d=Math.sqrt(c),h=Math.sqrt(u*u+l*l),p=t.x-s/d,v=t.y+o/d,m=n.x-l/h,g=n.y+u/h,y=((m-p)*l-(g-v)*u)/(o*l-s*u);r=p+o*y-e.x,i=v+s*y-e.y;var b=r*r+i*i;if(b<=2)return new ar(r,i);a=Math.sqrt(b/2)}else{var x=!1;o>Number.EPSILON?u>Number.EPSILON&&(x=!0):o<-Number.EPSILON?u<-Number.EPSILON&&(x=!0):Math.sign(s)===Math.sign(l)&&(x=!0),x?(r=-s,i=o,a=Math.sqrt(c)):(r=o,i=s,a=Math.sqrt(c/2))}return new ar(r/a,i/a)}for(var F=[],U=0,B=R.length,z=B-1,H=U+1;U=0;ye--){for(var be=ye/h,xe=c*Math.cos(be*Math.PI/2),we=f*Math.sin(be*Math.PI/2)+d,_e=0,Ee=R.length;_e=0){var i=n,a=n-1;a<0&&(a=e.length-1);for(var o=0,s=r+2*h;o0&&void 0!==arguments[0]?arguments[0]:new fh([new ar(0,.5),new ar(-.5,-.5),new ar(.5,-.5)]),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;M(this,n),e=t.call(this),e.type="ShapeGeometry",e.parameters={shapes:r,curveSegments:i};var a=[],o=[],s=[],u=[],l=0,c=0;if(!1===Array.isArray(r))d(r);else for(var f=0;f0!==e>0&&this.version++,this._sheen=e}},{key:"clearcoat",get:function(){return this._clearcoat},set:function(e){this._clearcoat>0!==e>0&&this.version++,this._clearcoat=e}},{key:"transmission",get:function(){return this._transmission},set:function(e){this._transmission>0!==e>0&&this.version++,this._transmission=e}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}]),n}(Qh);ep.prototype.isMeshPhysicalMaterial=!0;var tp=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshPhongMaterial",r.color=new Hi(16777215),r.specular=new Hi(1118481),r.shininess=30,r.map=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.emissive=new Hi(0),r.emissiveIntensity=1,r.emissiveMap=null,r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.specularMap=null,r.alphaMap=null,r.envMap=null,r.combine=ye,r.reflectivity=1,r.refractionRatio=.98,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.flatShading=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}]),n}(Ni);tp.prototype.isMeshPhongMaterial=!0;var np=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.defines={TOON:""},r.type="MeshToonMaterial",r.color=new Hi(16777215),r.map=null,r.gradientMap=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.emissive=new Hi(0),r.emissiveIntensity=1,r.emissiveMap=null,r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.alphaMap=null,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),n}(Ni);np.prototype.isMeshToonMaterial=!0;var rp=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshNormalMaterial",r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.wireframe=!1,r.wireframeLinewidth=1,r.fog=!1,r.flatShading=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}]),n}(Ni);rp.prototype.isMeshNormalMaterial=!0;var ip=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="MeshLambertMaterial",r.color=new Hi(16777215),r.map=null,r.lightMap=null,r.lightMapIntensity=1,r.aoMap=null,r.aoMapIntensity=1,r.emissive=new Hi(0),r.emissiveIntensity=1,r.emissiveMap=null,r.specularMap=null,r.alphaMap=null,r.envMap=null,r.combine=ye,r.reflectivity=1,r.refractionRatio=.98,r.wireframe=!1,r.wireframeLinewidth=1,r.wireframeLinecap="round",r.wireframeLinejoin="round",r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),n}(Ni);ip.prototype.isMeshLambertMaterial=!0;var ap=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.defines={MATCAP:""},r.type="MeshMatcapMaterial",r.color=new Hi(16777215),r.matcap=null,r.map=null,r.bumpMap=null,r.bumpScale=1,r.normalMap=null,r.normalMapType=kn,r.normalScale=new ar(1,1),r.displacementMap=null,r.displacementScale=1,r.displacementBias=0,r.alphaMap=null,r.flatShading=!1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this}}]),n}(Ni);ap.prototype.isMeshMatcapMaterial=!0;var op=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="LineDashedMaterial",r.scale=1,r.dashSize=3,r.gapSize=1,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}]),n}(vd);op.prototype.isLineDashedMaterial=!0;var sp={arraySlice:function(e,t,n){return sp.isTypedArray(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:"number"===typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){function t(t,n){return e[t]-e[n]}for(var n=e.length,r=new Array(n),i=0;i!==n;++i)r[i]=i;return r.sort(t),r},sortedArray:function(e,t,n){for(var r=e.length,i=new e.constructor(r),a=0,o=0;o!==r;++a)for(var s=n[a]*t,u=0;u!==t;++u)i[o++]=e[s+u];return i},flattenJSON:function(e,t,n,r){var i=1,a=e[0];while(void 0!==a&&void 0===a[r])a=e[i++];if(void 0!==a){var o=a[r];if(void 0!==o)if(Array.isArray(o))do{o=a[r],void 0!==o&&(t.push(a.time),n.push.apply(n,o)),a=e[i++]}while(void 0!==a);else if(void 0!==o.toArray)do{o=a[r],void 0!==o&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++]}while(void 0!==a);else do{o=a[r],void 0!==o&&(t.push(a.time),n.push(o)),a=e[i++]}while(void 0!==a)}},subclip:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30,a=e.clone();a.name=t;for(var o=[],s=0;s=r)){c.push(u.times[d]);for(var p=0;pa.tracks[m].times[0]&&(v=a.tracks[m].times[0]);for(var g=0;g1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;r<=0&&(r=30);for(var i=n.tracks.length,a=t/r,o=function(t){var r=n.tracks[t],i=r.ValueTypeName;if("bool"===i||"string"===i)return"continue";var o=e.tracks.find((function(e){return e.name===r.name&&e.ValueTypeName===i}));if(void 0===o)return"continue";var s=0,u=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=u/3);var l=0,c=o.getValueSize();o.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(l=c/3);var f=r.times.length-1,d=void 0;if(a<=r.times[0]){var h=s,p=u-s;d=sp.arraySlice(r.values,h,p)}else if(a>=r.times[f]){var v=f*u+s,m=v+u-s;d=sp.arraySlice(r.values,v,m)}else{var g=r.createInterpolant(),y=s,b=u-s;g.evaluate(a),d=sp.arraySlice(g.resultBuffer,y,b)}if("quaternion"===i){var x=(new br).fromArray(d).normalize().conjugate();x.toArray(d)}for(var w=o.times.length,_=0;_=i)break e;var s=t[1];e=i)break t}a=n,n=0}while(n>>1;et)--a;if(++a,0!==i||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);var o=this.getValueSize();this.times=sp.arraySlice(n,i,a),this.values=sp.arraySlice(this.values,i*o,a*o)}return this}},{key:"validate",value:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var a=null,o=0;o!==i;o++){var s=n[o];if("number"===typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,s),e=!1;break}if(null!==a&&a>s){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,s,a),e=!1;break}a=s}if(void 0!==r&&sp.isTypedArray(r))for(var u=0,l=r.length;u!==l;++u){var c=r[u];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,u,c),e=!1;break}}return e}},{key:"optimize",value:function(){for(var e=sp.arraySlice(this.times),t=sp.arraySlice(this.values),n=this.getValueSize(),r=this.getInterpolation()===sn,i=e.length-1,a=1,o=1;o0){e[a]=e[i];for(var y=i*n,b=a*n,x=0;x!==n;++x)t[b+x]=t[y+x];++a}return a!==e.length?(this.times=sp.arraySlice(e,0,a),this.values=sp.arraySlice(t,0,a*n)):(this.times=e,this.values=t),this}},{key:"clone",value:function(){var e=sp.arraySlice(this.times,0),t=sp.arraySlice(this.values,0),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}],[{key:"toJSON",value:function(e){var t,n=e.constructor;if(n.toJSON!==this.toJSON)t=n.toJSON(e);else{t={name:e.name,times:sp.convertArray(e.times,Array),values:sp.convertArray(e.values,Array)};var r=e.getInterpolation();r!==e.DefaultInterpolation&&(t.interpolation=r)}return t.type=e.ValueTypeName,t}}]),e}();dp.prototype.TimeBufferType=Float32Array,dp.prototype.ValueBufferType=Float32Array,dp.prototype.DefaultInterpolation=on;var hp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);hp.prototype.ValueTypeName="bool",hp.prototype.ValueBufferType=Array,hp.prototype.DefaultInterpolation=an,hp.prototype.InterpolantFactoryMethodLinear=void 0,hp.prototype.InterpolantFactoryMethodSmooth=void 0;var pp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);pp.prototype.ValueTypeName="color";var vp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);vp.prototype.ValueTypeName="number";var mp=function(e){w(n,e);var t=E(n);function n(e,r,i,a){return M(this,n),t.call(this,e,r,i,a)}return A(n,[{key:"interpolate_",value:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),u=e*o,l=u+o;u!==l;u+=4)br.slerpFlat(i,0,a,u-o,a,u,s);return i}}]),n}(up),gp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"InterpolantFactoryMethodLinear",value:function(e){return new mp(this.times,this.values,this.getValueSize(),e)}}]),n}(dp);gp.prototype.ValueTypeName="quaternion",gp.prototype.DefaultInterpolation=on,gp.prototype.InterpolantFactoryMethodSmooth=void 0;var yp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);yp.prototype.ValueTypeName="string",yp.prototype.ValueBufferType=Array,yp.prototype.DefaultInterpolation=an,yp.prototype.InterpolantFactoryMethodLinear=void 0,yp.prototype.InterpolantFactoryMethodSmooth=void 0;var bp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n)}(dp);bp.prototype.ValueTypeName="vector";var xp=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fn;M(this,e),this.name=t,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=Fn(),this.duration<0&&this.resetDuration()}return A(e,[{key:"resetDuration",value:function(){for(var e=this.tracks,t=0,n=0,r=e.length;n!==r;++n){var i=this.tracks[n];t=Math.max(t,i.times[i.times.length-1])}return this.duration=t,this}},{key:"trim",value:function(){for(var e=0;e1){var l=u[1],c=r[l];c||(r[l]=c=[]),c.push(s)}}var f=[];for(var d in r)f.push(this.CreateFromMorphTargetSequence(d,r[d],t,n));return f}},{key:"parseAnimation",value:function(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(e,t,n,r,i){if(0!==n.length){var a=[],o=[];sp.flattenJSON(n,a,o,r),0!==a.length&&i.push(new e(t,a,o))}},r=[],i=e.name||"default",a=e.fps||30,o=e.blendMode,s=e.length||-1,u=e.hierarchy||[],l=0;l1&&void 0!==arguments[1]?arguments[1]:1;return M(this,n),r=t.call(this),r.type="Light",r.color=new Hi(e),r.intensity=i,r}return A(n,[{key:"dispose",value:function(){}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}]),n}(_i);Pp.prototype.isLight=!0;var Ip=function(e){w(n,e);var t=E(n);function n(e,r,i){var a;return M(this,n),a=t.call(this,e,i),a.type="HemisphereLight",a.position.copy(_i.DefaultUp),a.updateMatrix(),a.groundColor=new Hi(r),a}return A(n,[{key:"copy",value:function(e){return Pp.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}]),n}(Pp);Ip.prototype.isHemisphereLight=!0;var Np=new Jr,Dp=new xr,jp=new xr,Fp=function(){function e(t){M(this,e),this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new ar(512,512),this.map=null,this.mapPass=null,this.matrix=new Jr,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Wa,this._frameExtents=new ar(1,1),this._viewportCount=1,this._viewports=[new vr(0,0,1,1)]}return A(e,[{key:"getViewportCount",value:function(){return this._viewportCount}},{key:"getFrustum",value:function(){return this._frustum}},{key:"updateMatrices",value:function(e){var t=this.camera,n=this.matrix;Dp.setFromMatrixPosition(e.matrixWorld),t.position.copy(Dp),jp.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(jp),t.updateMatrixWorld(),Np.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Np),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(t.projectionMatrix),n.multiply(t.matrixWorldInverse)}},{key:"getViewport",value:function(e){return this._viewports[e]}},{key:"getFrameExtents",value:function(){return this._frameExtents}},{key:"dispose",value:function(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}},{key:"copy",value:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"toJSON",value:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}]),e}(),Up=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this,new Pa(50,1,.5,500)),e.focus=1,e}return A(n,[{key:"updateMatrices",value:function(e){var t=this.camera,r=2*jn*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,a=e.distance||t.far;r===t.fov&&i===t.aspect&&a===t.far||(t.fov=r,t.aspect=i,t.far=a,t.updateProjectionMatrix()),g(v(n.prototype),"updateMatrices",this).call(this,e)}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.focus=e.focus,this}}]),n}(Fp);Up.prototype.isSpotLightShadow=!0;var Bp=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.PI/3,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;return M(this,n),i=t.call(this,e,r),i.type="SpotLight",i.position.copy(_i.DefaultUp),i.updateMatrix(),i.target=new _i,i.distance=a,i.angle=o,i.penumbra=s,i.decay=u,i.shadow=new Up,i}return A(n,[{key:"power",get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}},{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}]),n}(Pp);Bp.prototype.isSpotLight=!0;var zp=new Jr,Hp=new xr,Gp=new xr,Vp=function(e){w(n,e);var t=E(n);function n(){var e;return M(this,n),e=t.call(this,new Pa(90,1,.5,500)),e._frameExtents=new ar(4,2),e._viewportCount=6,e._viewports=[new vr(2,1,1,1),new vr(0,1,1,1),new vr(3,1,1,1),new vr(1,1,1,1),new vr(3,0,1,1),new vr(1,0,1,1)],e._cubeDirections=[new xr(1,0,0),new xr(-1,0,0),new xr(0,0,1),new xr(0,0,-1),new xr(0,1,0),new xr(0,-1,0)],e._cubeUps=[new xr(0,1,0),new xr(0,1,0),new xr(0,1,0),new xr(0,1,0),new xr(0,0,1),new xr(0,0,-1)],e}return A(n,[{key:"updateMatrices",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),Hp.setFromMatrixPosition(e.matrixWorld),n.position.copy(Hp),Gp.copy(n.position),Gp.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Gp),n.updateMatrixWorld(),r.makeTranslation(-Hp.x,-Hp.y,-Hp.z),zp.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(zp)}}]),n}(Fp);Vp.prototype.isPointLightShadow=!0;var Wp=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return M(this,n),i=t.call(this,e,r),i.type="PointLight",i.distance=a,i.decay=o,i.shadow=new Vp,i}return A(n,[{key:"power",get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}},{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}]),n}(Pp);Wp.prototype.isPointLight=!0;var qp=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.call(this,new Cu(-5,5,5,-5,.5,500))}return A(n)}(Fp);qp.prototype.isDirectionalLightShadow=!0;var Xp=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="DirectionalLight",i.position.copy(_i.DefaultUp),i.updateMatrix(),i.target=new _i,i.shadow=new qp,i}return A(n,[{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}]),n}(Pp);Xp.prototype.isDirectionalLight=!0;var Yp=function(e){w(n,e);var t=E(n);function n(e,r){var i;return M(this,n),i=t.call(this,e,r),i.type="AmbientLight",i}return A(n)}(Pp);Yp.prototype.isAmbientLight=!0;var Kp=function(e){w(n,e);var t=E(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return M(this,n),i=t.call(this,e,r),i.type="RectAreaLight",i.width=a,i.height=o,i}return A(n,[{key:"power",get:function(){return this.intensity*this.width*this.height*Math.PI},set:function(e){this.intensity=e/(this.width*this.height*Math.PI)}},{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.width=e.width,this.height=e.height,this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.width=this.width,t.object.height=this.height,t}}]),n}(Pp);Kp.prototype.isRectAreaLight=!0;var Zp=function(){function e(){M(this,e),this.coefficients=[];for(var t=0;t<9;t++)this.coefficients.push(new xr)}return A(e,[{key:"set",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}},{key:"zero",value:function(){for(var e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}},{key:"getAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScaledVector(a[1],.488603*r),t.addScaledVector(a[2],.488603*i),t.addScaledVector(a[3],.488603*n),t.addScaledVector(a[4],n*r*1.092548),t.addScaledVector(a[5],r*i*1.092548),t.addScaledVector(a[6],.315392*(3*i*i-1)),t.addScaledVector(a[7],n*i*1.092548),t.addScaledVector(a[8],.546274*(n*n-r*r)),t}},{key:"getIrradianceAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScaledVector(a[1],1.023328*r),t.addScaledVector(a[2],1.023328*i),t.addScaledVector(a[3],1.023328*n),t.addScaledVector(a[4],.858086*n*r),t.addScaledVector(a[5],.858086*r*i),t.addScaledVector(a[6],.743125*i*i-.247708),t.addScaledVector(a[7],.858086*n*i),t.addScaledVector(a[8],.429043*(n*n-r*r)),t}},{key:"add",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}},{key:"addScaledSH",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}},{key:"scale",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}},{key:"lerp",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}},{key:"equals",value:function(e){for(var t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}},{key:"copy",value:function(e){return this.set(e.coefficients)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.coefficients,r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}},{key:"toArray",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.coefficients,r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}}],[{key:"getBasisAt",value:function(e,t){var n=e.x,r=e.y,i=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}}]),e}();Zp.prototype.isSphericalHarmonics3=!0;var Jp=function(e){w(n,e);var t=E(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Zp,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return M(this,n),e=t.call(this,void 0,i),e.sh=r,e}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.sh.copy(e.sh),this}},{key:"fromJSON",value:function(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.object.sh=this.sh.toArray(),t}}]),n}(Pp);Jp.prototype.isLightProbe=!0;var $p=function(){function e(){M(this,e)}return A(e,null,[{key:"decodeText",value:function(e){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(e);for(var t="",n=0,r=e.length;n2&&void 0!==arguments[2]?arguments[2]:1;M(this,n),i=t.call(this,void 0,a);var o=(new Hi).set(e),s=(new Hi).set(r),u=new xr(o.r,o.g,o.b),l=new xr(s.r,s.g,s.b),c=Math.sqrt(Math.PI),f=c*Math.sqrt(.75);return i.sh.coefficients[0].copy(u).add(l).multiplyScalar(c),i.sh.coefficients[1].copy(u).sub(l).multiplyScalar(f),i}return A(n)}(Jp);iv.prototype.isHemisphereLightProbe=!0;var av=function(e){w(n,e);var t=E(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;M(this,n),r=t.call(this,void 0,i);var a=(new Hi).set(e);return r.sh.coefficients[0].set(a.r,a.g,a.b).multiplyScalar(2*Math.sqrt(Math.PI)),r}return A(n)}(Jp);av.prototype.isAmbientLightProbe=!0;var ov=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];M(this,e),this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}return A(e,[{key:"start",value:function(){this.startTime=sv(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var t=sv();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}]),e}();function sv(){return("undefined"===typeof performance?Date:performance).now()}var uv=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r.type="Audio",r.listener=e,r.context=e.context,r.gain=r.context.createGain(),r.gain.connect(e.getInput()),r.autoplay=!1,r.buffer=null,r.detune=0,r.loop=!1,r.loopStart=0,r.loopEnd=0,r.offset=0,r.duration=void 0,r.playbackRate=1,r.isPlaying=!1,r.hasPlaybackControl=!0,r.source=null,r.sourceType="empty",r._startedAt=0,r._progress=0,r._connected=!1,r.filters=[],r}return A(n,[{key:"getOutput",value:function(){return this.gain}},{key:"setNodeSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}},{key:"setMediaElementSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}},{key:"setMediaStreamSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}},{key:"setBuffer",value:function(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!0!==this.isPlaying){if(!1!==this.hasPlaybackControl){this._startedAt=this.context.currentTime+e;var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")}},{key:"pause",value:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"stop",value:function(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"connect",value:function(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e1&&void 0!==arguments[1]?arguments[1]:2048;M(this,e),this.analyser=t.context.createAnalyser(),this.analyser.fftSize=n,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}return A(e,[{key:"getFrequencyData",value:function(){return this.analyser.getByteFrequencyData(this.data),this.data}},{key:"getAverageFrequency",value:function(){for(var e=0,t=this.getFrequencyData(),n=0;n0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(var u=t,l=t+t;u!==l;++u)if(n[u]!==n[u+t]){o.setValue(n,r);break}}},{key:"saveOriginalState",value:function(){var e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(var i=n,a=r;i!==a;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}},{key:"restoreOriginalState",value:function(){var e=3*this.valueSize;this.binding.setValue(this.buffer,e)}},{key:"_setAdditiveIdentityNumeric",value:function(){for(var e=this._addIndex*this.valueSize,t=e+this.valueSize,n=e;n=.5)for(var a=0;a!==i;++a)e[t+a]=e[n+a]}},{key:"_slerp",value:function(e,t,n,r){br.slerpFlat(e,t,e,t,e,n,r)}},{key:"_slerpAdditive",value:function(e,t,n,r,i){var a=this._workIndex*i;br.multiplyQuaternionsFlat(e,a,e,t,e,n),br.slerpFlat(e,t,e,t,e,a,r)}},{key:"_lerp",value:function(e,t,n,r,i){for(var a=1-r,o=0;o!==i;++o){var s=t+o;e[s]=e[s]*a+e[n+o]*r}}},{key:"_lerpAdditive",value:function(e,t,n,r,i){for(var a=0;a!==i;++a){var o=t+a;e[o]=e[o]+e[n+a]*r}}}]),e}(),fv="\\[\\]\\.:\\/",dv=new RegExp("["+fv+"]","g"),hv="[^"+fv+"]",pv="[^"+fv.replace("\\.","")+"]",vv=/((?:WC+[\/:])*)/.source.replace("WC",hv),mv=/(WCOD+)?/.source.replace("WCOD",pv),gv=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",hv),yv=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",hv),bv=new RegExp("^"+vv+mv+gv+yv+"$"),xv=["material","materials","bones"],wv=function(){function e(t,n,r){M(this,e);var i=r||_v.parseTrackName(n);this._targetGroup=t,this._bindings=t.subscribe_(n,i)}return A(e,[{key:"getValue",value:function(e,t){this.bind();var n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}},{key:"setValue",value:function(e,t){for(var n=this._bindings,r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}},{key:"bind",value:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}},{key:"unbind",value:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}]),e}(),_v=function(){function e(t,n,r){M(this,e),this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}return A(e,[{key:"_getValue_unavailable",value:function(){}},{key:"_setValue_unavailable",value:function(){}},{key:"_getValue_direct",value:function(e,t){e[t]=this.targetObject[this.propertyName]}},{key:"_getValue_array",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)e[t++]=n[r]}},{key:"_getValue_arrayElement",value:function(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}},{key:"_getValue_toArray",value:function(e,t){this.resolvedProperty.toArray(e,t)}},{key:"_setValue_direct",value:function(e,t){this.targetObject[this.propertyName]=e[t]}},{key:"_setValue_direct_setNeedsUpdate",value:function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}},{key:"_setValue_direct_setMatrixWorldNeedsUpdate",value:function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_array",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++]}},{key:"_setValue_array_setNeedsUpdate",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}},{key:"_setValue_array_setMatrixWorldNeedsUpdate",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_arrayElement",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}},{key:"_setValue_arrayElement_setNeedsUpdate",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}},{key:"_setValue_arrayElement_setMatrixWorldNeedsUpdate",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_fromArray",value:function(e,t){this.resolvedProperty.fromArray(e,t)}},{key:"_setValue_fromArray_setNeedsUpdate",value:function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}},{key:"_setValue_fromArray_setMatrixWorldNeedsUpdate",value:function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_getValue_unbound",value:function(e,t){this.bind(),this.getValue(e,t)}},{key:"_setValue_unbound",value:function(e,t){this.bind(),this.setValue(e,t)}},{key:"bind",value:function(){var t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(r){var o=n.objectIndex;switch(r){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(var s=0;s=i){var c=i++,f=e[c];t[f.uuid]=l,e[l]=f,t[u]=c,e[c]=s;for(var d=0,h=r;d!==h;++d){var p=n[d],v=p[c],m=p[l];p[l]=v,p[c]=m}}}this.nCachedObjects_=i}},{key:"uncache",value:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,a=e.length,o=0,s=arguments.length;o!==s;++o){var u=arguments[o],l=u.uuid,c=t[l];if(void 0!==c)if(delete t[l],c0&&(t[w.uuid]=c),e[c]=w,e.pop();for(var _=0,E=r;_!==E;++_){var S=n[_];S[c]=S[x],S.pop()}}}this.nCachedObjects_=i}},{key:"subscribe_",value:function(e,t){var n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(void 0!==r)return i[r];var a=this._paths,o=this._parsedPaths,s=this._objects,u=s.length,l=this.nCachedObjects_,c=new Array(u);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(c);for(var f=l,d=s.length;f!==d;++f){var h=s[f];c[f]=new _v(h,e,t)}return c}},{key:"unsubscribe_",value:function(e){var t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){var r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o],u=e[o];t[u]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}}]),e}();Ev.prototype.isAnimationObjectGroup=!0;var Sv=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.blendMode;M(this,e),this._mixer=t,this._clip=n,this._localRoot=r,this.blendMode=i;for(var a=n.tracks,o=a.length,s=new Array(o),u={endingStart:un,endingEnd:un},l=0;l!==o;++l){var c=a[l].createInterpolant(null);s[l]=c,c.settings=u}this._interpolantSettings=u,this._interpolants=s,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=nn,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}return A(e,[{key:"play",value:function(){return this._mixer._activateAction(this),this}},{key:"stop",value:function(){return this._mixer._deactivateAction(this),this.reset()}},{key:"reset",value:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}},{key:"isRunning",value:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}},{key:"isScheduled",value:function(){return this._mixer._isActiveAction(this)}},{key:"startAt",value:function(e){return this._startTime=e,this}},{key:"setLoop",value:function(e,t){return this.loop=e,this.repetitions=t,this}},{key:"setEffectiveWeight",value:function(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}},{key:"getEffectiveWeight",value:function(){return this._effectiveWeight}},{key:"fadeIn",value:function(e){return this._scheduleFading(e,0,1)}},{key:"fadeOut",value:function(e){return this._scheduleFading(e,1,0)}},{key:"crossFadeFrom",value:function(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){var r=this._clip.duration,i=e._clip.duration,a=i/r,o=r/i;e.warp(1,a,t),this.warp(o,1,t)}return this}},{key:"crossFadeTo",value:function(e,t,n){return e.crossFadeFrom(this,t,n)}},{key:"stopFading",value:function(){var e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"setEffectiveTimeScale",value:function(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}},{key:"getEffectiveTimeScale",value:function(){return this._effectiveTimeScale}},{key:"setDuration",value:function(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}},{key:"syncWith",value:function(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}},{key:"halt",value:function(e){return this.warp(this._effectiveTimeScale,0,e)}},{key:"warp",value:function(e,t,n){var r=this._mixer,i=r.time,a=this.timeScale,o=this._timeScaleInterpolant;null===o&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);var s=o.parameterPositions,u=o.sampleValues;return s[0]=i,s[1]=i+n,u[0]=e/a,u[1]=t/a,this}},{key:"stopWarping",value:function(){var e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"getMixer",value:function(){return this._mixer}},{key:"getClip",value:function(){return this._clip}},{key:"getRoot",value:function(){return this._localRoot||this._mixer._root}},{key:"_update",value:function(e,t,n,r){if(this.enabled){var i=this._startTime;if(null!==i){var a=(e-i)*n;if(a<0||0===n)return;this._startTime=null,t=n*a}t*=this._updateTimeScale(e);var o=this._updateTime(t),s=this._updateWeight(e);if(s>0){var u=this._interpolants,l=this._propertyBindings;switch(this.blendMode){case dn:for(var c=0,f=u.length;c!==f;++c)u[c].evaluate(o),l[c].accumulateAdditive(s);break;case fn:default:for(var d=0,h=u.length;d!==h;++d)u[d].evaluate(o),l[d].accumulate(r,s)}}}else this._updateWeight(e)}},{key:"_updateWeight",value:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}},{key:"_updateTimeScale",value:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}},{key:"_updateTime",value:function(e){var t=this._clip.duration,n=this.loop,r=this.time+e,i=this._loopCount,a=n===rn;if(0===e)return-1===i?r:a&&1===(1&i)?t-r:r;if(n===tn){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),r>=t||r<0){var o=Math.floor(r/t);r-=t*o,i+=Math.abs(o);var s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){var u=e<0;this._setEndings(u,!u,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o})}}else this.time=r;if(a&&1===(1&i))return t-r}return r}},{key:"_setEndings",value:function(e,t,n){var r=this._interpolantSettings;n?(r.endingStart=ln,r.endingEnd=ln):(r.endingStart=e?this.zeroSlopeAtStart?ln:un:cn,r.endingEnd=t?this.zeroSlopeAtEnd?ln:un:cn)}},{key:"_scheduleFading",value:function(e,t,n){var r=this._mixer,i=r.time,a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);var o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}}]),e}(),kv=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this),r._root=e,r._initMemoryManager(),r._accuIndex=0,r.time=0,r.timeScale=1,r}return A(n,[{key:"_bindAction",value:function(e,t){var n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,u=this._bindingsByRootAndName,l=u[s];void 0===l&&(l={},u[s]=l);for(var c=0;c!==i;++c){var f=r[c],d=f.name,h=l[d];if(void 0!==h)a[c]=h;else{if(h=a[c],void 0!==h){null===h._cacheIndex&&(++h.referenceCount,this._addInactiveBinding(h,s,d));continue}var p=t&&t._propertyBindings[c].binding.parsedPath;h=new cv(_v.create(n,d,p),f.ValueTypeName,f.getValueSize()),++h.referenceCount,this._addInactiveBinding(h,s,d),a[c]=h}o[c].resultBuffer=h.buffer}}},{key:"_activateAction",value:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}for(var i=e._propertyBindings,a=0,o=i.length;a!==o;++a){var s=i[a];0===s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}}},{key:"_deactivateAction",value:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0===--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(e)}}},{key:"_initMemoryManager",value:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}},{key:"_isActiveAction",value:function(e){var t=e._cacheIndex;return null!==t&&t=0;--n)e[n].stop();return this}},{key:"update",value:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1,o=0;o!==n;++o){var s=t[o];s._update(r,e,i,a)}for(var u=this._bindings,l=this._nActiveBindings,c=0;c!==l;++c)u[c].apply(a);return this}},{key:"setTime",value:function(e){this.time=0;for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:1;return M(this,n),i=t.call(this,e,r),i.meshPerAttribute=a,i}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}},{key:"clone",value:function(e){var t=g(v(n.prototype),"clone",this).call(this,e);return t.meshPerAttribute=this.meshPerAttribute,t}},{key:"toJSON",value:function(e){var t=g(v(n.prototype),"toJSON",this).call(this,e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}}]),n}(Pf);Tv.prototype.isInstancedInterleavedBuffer=!0;var Av=function(){function e(t,n,r,i,a){M(this,e),this.buffer=t,this.type=n,this.itemSize=r,this.elementSize=i,this.count=a,this.version=0}return A(e,[{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"setBuffer",value:function(e){return this.buffer=e,this}},{key:"setType",value:function(e,t){return this.type=e,this.elementSize=t,this}},{key:"setItemSize",value:function(e){return this.itemSize=e,this}},{key:"setCount",value:function(e){return this.count=e,this}}]),e}();Av.prototype.isGLBufferAttribute=!0;var Ov=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return M(this,e),this.radius=t,this.phi=n,this.theta=r,this}return A(e,[{key:"set",value:function(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}},{key:"copy",value:function(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}},{key:"makeSafe",value:function(){var e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this}},{key:"setFromVector3",value:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}},{key:"setFromCartesianCoords",value:function(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(Un(t/this.radius,-1,1))),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Rv=new ar,Cv=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ar(1/0,1/0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ar(-1/0,-1/0);M(this,e),this.min=t,this.max=n}return A(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;tthis.max.x||e.ythis.max.y)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}},{key:"intersectsBox",value:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){var t=Rv.copy(e).clamp(this.min,this.max);return t.sub(e).length()}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}();Cv.prototype.isBox2=!0;var Lv=new xr,Pv=new xr,Iv=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xr,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr;M(this,e),this.start=t,this.end=n}return A(e,[{key:"set",value:function(e,t){return this.start.copy(e),this.end.copy(t),this}},{key:"copy",value:function(e){return this.start.copy(e.start),this.end.copy(e.end),this}},{key:"getCenter",value:function(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}},{key:"delta",value:function(e){return e.subVectors(this.end,this.start)}},{key:"distanceSq",value:function(){return this.start.distanceToSquared(this.end)}},{key:"distance",value:function(){return this.start.distanceTo(this.end)}},{key:"at",value:function(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}},{key:"closestPointToPointParameter",value:function(e,t){Lv.subVectors(e,this.start),Pv.subVectors(this.end,this.start);var n=Pv.dot(Pv),r=Pv.dot(Lv),i=r/n;return t&&(i=Un(i,0,1)),i}},{key:"closestPointToPoint",value:function(e,t,n){var r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}},{key:"applyMatrix4",value:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}},{key:"equals",value:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Nv=new xr,Dv=new Jr,jv=new Jr,Fv=function(e){w(n,e);var t=E(n);function n(e){var r;M(this,n);for(var i=Uv(e),a=new ia,o=[],s=[],u=new Hi(0,0,1),l=new Hi(0,1,0),c=0;c0&&void 0!==arguments[0]?arguments[0]:10,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4473924,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8947848;M(this,n),a=new Hi(a),o=new Hi(o);for(var s=i/2,u=r/i,l=r/2,c=[],f=[],d=0,h=0,p=-l;d<=i;d++,p+=u){c.push(-l,0,p,l,0,p),c.push(p,0,-l,p,0,l);var v=d===s?a:o;v.toArray(f,h),h+=3,v.toArray(f,h),h+=3,v.toArray(f,h),h+=3,v.toArray(f,h),h+=3}var m=new ia;m.setAttribute("position",new Zi(c,3)),m.setAttribute("color",new Zi(f,3));var g=new vd({vertexColors:!0,toneMapped:!1});return e=t.call(this,m,g),e.type="GridHelper",e}return A(n)}(Sd);var zv=new Float32Array(1);new Int32Array(zv.buffer);Dd.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(Dd.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},ch.prototype.fromPoints=function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)},Bv.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Fv.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Mp.prototype.extractUrlBase=function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),$p.extractUrlBase(e)},Mp.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Cv.prototype.center=function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},Cv.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Cv.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Cv.prototype.size=function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)},Er.prototype.center=function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Er.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Er.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Er.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},Er.prototype.size=function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)},Hr.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Wa.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},Iv.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},or.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},or.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},or.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},or.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},or.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},or.prototype.getInverse=function(e){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Jr.prototype.extractPosition=function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},Jr.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},Jr.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new xr).setFromMatrixColumn(this,3)},Jr.prototype.setRotationFromQuaternion=function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},Jr.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Jr.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.multiplyVector4=function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Jr.prototype.rotateAxis=function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},Jr.prototype.crossVector=function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Jr.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Jr.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Jr.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Jr.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Jr.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Jr.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Jr.prototype.makeFrustum=function(e,t,n,r,i,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,r,n,i,a)},Jr.prototype.getInverse=function(e){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Ha.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},br.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},br.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Zr.prototype.isIntersectionBox=function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Zr.prototype.isIntersectionPlane=function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},Zr.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},Pi.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},Pi.prototype.barycoordFromPoint=function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},Pi.prototype.midpoint=function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},Pi.prototypenormal=function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},Pi.prototype.plane=function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)},Pi.barycoordFromPoint=function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Pi.getBarycoord(e,t,n,r,i)},Pi.normal=function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Pi.getNormal(e,t,n,r)},fh.prototype.extractAllPoints=function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},fh.prototype.extrude=function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Xh(this,e)},fh.prototype.makeGeometry=function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Zh(this,e)},ar.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},ar.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},ar.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},xr.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},xr.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},xr.prototype.getPositionFromMatrix=function(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},xr.prototype.getScaleFromMatrix=function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},xr.prototype.getColumnFromMatrix=function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},xr.prototype.applyProjection=function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},xr.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},xr.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},xr.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},vr.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},vr.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},_i.prototype.getChildByName=function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},_i.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},_i.prototype.translate=function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},_i.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},_i.prototype.applyMatrix=function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(_i.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),_a.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(_a.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),hn},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),rd.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Pa.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(Pp.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(qi.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Rn},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Rn)}}}),qi.prototype.setDynamic=function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Rn:On),this},qi.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},qi.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},ia.prototype.addIndex=function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},ia.prototype.addAttribute=function(e,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(e,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(e,new qi(arguments[1],arguments[2])))},ia.prototype.addDrawCall=function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},ia.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},ia.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},ia.prototype.removeAttribute=function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},ia.prototype.applyMatrix=function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(ia.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Pf.prototype.setDynamic=function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Rn:On),this},Pf.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Xh.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Xh.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Xh.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Lf.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Mv.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(Ni.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Hi}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=e===z}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(e){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=e}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}}),Object.defineProperties(Ca.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),Af.prototype.clearTarget=function(e,t,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,r)},Af.prototype.animate=function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},Af.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Af.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Af.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Af.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Af.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Af.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Af.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Af.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Af.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Af.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Af.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Af.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Af.prototype.enableScissorTest=function(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},Af.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Af.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Af.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Af.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Af.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Af.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Af.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Af.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Af.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Af.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Af.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(e){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===e?gn:mn}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(mf.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(mr.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),uv.prototype.load=function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this,n=new rv;return n.load(e,(function(e){t.setBuffer(e)})),this},lv.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Da.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)},Da.prototype.clear=function(e,t,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(e,t,n,r)},fr.crossOrigin=void 0,fr.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var i=new Lp;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},fr.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var i=new Rp;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},fr.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},fr.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:O}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=O);var Hv=function(e){w(n,e);var t=E(n);function n(){var e;M(this,n),e=t.call(this);var r=new ka;r.deleteAttribute("uv");var i=new Qh({side:U}),a=new Qh,o=new Wp(16777215,5,28,2);o.position.set(.418,16.199,.3),e.add(o);var s=new _a(r,i);s.position.set(-.757,13.219,.717),s.scale.set(31.713,28.305,28.591),e.add(s);var u=new _a(r,a);u.position.set(-10.906,2.009,1.846),u.rotation.set(0,-.195,0),u.scale.set(2.328,7.905,4.651),e.add(u);var l=new _a(r,a);l.position.set(-5.607,-.754,-.758),l.rotation.set(0,.994,0),l.scale.set(1.97,1.534,3.955),e.add(l);var c=new _a(r,a);c.position.set(6.167,.857,7.803),c.rotation.set(0,.561,0),c.scale.set(3.927,6.285,3.687),e.add(c);var f=new _a(r,a);f.position.set(-2.017,.018,6.124),f.rotation.set(0,.333,0),f.scale.set(2.002,4.566,2.064),e.add(f);var d=new _a(r,a);d.position.set(2.291,-.756,-2.621),d.rotation.set(0,-.286,0),d.scale.set(1.546,1.552,1.496),e.add(d);var h=new _a(r,a);h.position.set(-2.193,-.369,-5.547),h.rotation.set(0,.516,0),h.scale.set(3.875,3.487,2.986),e.add(h);var p=new _a(r,Gv(50));p.position.set(-16.116,14.37,8.208),p.scale.set(.1,2.428,2.739),e.add(p);var v=new _a(r,Gv(50));v.position.set(-16.109,18.021,-8.207),v.scale.set(.1,2.425,2.751),e.add(v);var m=new _a(r,Gv(17));m.position.set(14.904,12.198,-1.832),m.scale.set(.15,4.265,6.331),e.add(m);var g=new _a(r,Gv(43));g.position.set(-.462,8.89,14.52),g.scale.set(4.38,5.441,.088),e.add(g);var y=new _a(r,Gv(20));y.position.set(3.235,11.486,-12.541),y.scale.set(2.5,2,.1),e.add(y);var b=new _a(r,Gv(100));return b.position.set(0,20,0),b.scale.set(1,.1,1),e.add(b),e}return A(n)}(Lf);function Gv(e){var t=new Gi;return t.color.setScalar(e),t}var Vv=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.dracoLoader=null,r.ktx2Loader=null,r.meshoptDecoder=null,r.pluginCallbacks=[],r.register((function(e){return new Kv(e)})),r.register((function(e){return new tm(e)})),r.register((function(e){return new nm(e)})),r.register((function(e){return new Zv(e)})),r.register((function(e){return new Jv(e)})),r.register((function(e){return new $v(e)})),r.register((function(e){return new Qv(e)})),r.register((function(e){return new em(e)})),r.register((function(e){return new Xv(e)})),r.register((function(e){return new rm(e)})),r}return A(n,[{key:"load",value:function(e,t,n,r){var i,a=this;i=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:$p.extractUrlBase(e),this.manager.itemStart(e);var o=function(t){r?r(t):console.error(t),a.manager.itemError(e),a.manager.itemEnd(e)},s=new Ap(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,(function(n){try{a.parse(n,i,(function(n){t(n),a.manager.itemEnd(e)}),o)}catch(r){o(r)}}),n,o)}},{key:"setDRACOLoader",value:function(e){return this.dracoLoader=e,this}},{key:"setDDSLoader",value:function(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}},{key:"setKTX2Loader",value:function(e){return this.ktx2Loader=e,this}},{key:"setMeshoptDecoder",value:function(e){return this.meshoptDecoder=e,this}},{key:"register",value:function(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}},{key:"unregister",value:function(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}},{key:"parse",value:function(e,t,n,r){var i,a={},o={};if("string"===typeof e)i=e;else{var s=$p.decodeText(new Uint8Array(e,0,4));if(s===im){try{a[qv.KHR_BINARY_GLTF]=new sm(e)}catch(v){return void(r&&r(v))}i=a[qv.KHR_BINARY_GLTF].content}else i=$p.decodeText(new Uint8Array(e))}var u=JSON.parse(i);if(void 0===u.asset||u.asset.version[0]<2)r&&r(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));else{var l=new Pm(u,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});l.fileLoader.setRequestHeader(this.requestHeader);for(var c=0;c=0&&void 0===o[h]&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}l.setExtensions(a),l.setPlugins(o),l.parse(n,r)}}},{key:"parseAsync",value:function(e,t){var n=this;return new Promise((function(r,i){n.parse(e,t,r,i)}))}}]),n}(Mp);function Wv(){var e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}var qv={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:"KHR_materials_pbrSpecularGlossiness",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression"},Xv=function(){function e(t){M(this,e),this.parser=t,this.name=qv.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}return A(e,[{key:"_markDefs",value:function(){for(var e=this.parser,t=this.parser.json.nodes||[],n=0,r=t.length;n=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,a,o)}}]),e}(),nm=function(){function e(t){M(this,e),this.parser=t,this.name=qv.EXT_TEXTURE_WEBP,this.isSupported=null}return A(e,[{key:"loadTexture",value:function(e){var t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;var a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){var u=n.options.manager.getHandler(o.uri);null!==u&&(s=u)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(e,o,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)}))}},{key:"detectSupport",value:function(){return this.isSupported||(this.isSupported=new Promise((function(e){var t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}]),e}(),rm=function(){function e(t){M(this,e),this.name=qv.EXT_MESHOPT_COMPRESSION,this.parser=t}return A(e,[{key:"loadBufferView",value:function(e){var t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){var r=n.extensions[this.name],i=this.parser.getDependency("buffer",r.buffer),a=this.parser.options.meshoptDecoder;if(!a||!a.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return Promise.all([i,a.ready]).then((function(e){var t=r.byteOffset||0,n=r.byteLength||0,i=r.count,o=r.byteStride,s=new ArrayBuffer(i*o),u=new Uint8Array(e[0],t,n);return a.decodeGltfBuffer(new Uint8Array(s),i,o,u,r.mode,r.filter),s}))}return null}}]),e}(),im="glTF",am=12,om={JSON:1313821514,BIN:5130562},sm=A((function e(t){M(this,e),this.name=qv.KHR_BINARY_GLTF,this.content=null,this.body=null;var n=new DataView(t,0,am);if(this.header={magic:$p.decodeText(new Uint8Array(t.slice(0,4))),version:n.getUint32(4,!0),length:n.getUint32(8,!0)},this.header.magic!==im)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");var r=this.header.length-am,i=new DataView(t,am),a=0;while(a",i).replace("#include ",a).replace("#include ",o).replace("#include ",s).replace("#include ",u)},Object.defineProperties(h(r),{specular:{get:function(){return l.specular.value},set:function(e){l.specular.value=e}},specularMap:{get:function(){return l.specularMap.value},set:function(e){l.specularMap.value=e,e?this.defines.USE_SPECULARMAP="":delete this.defines.USE_SPECULARMAP}},glossiness:{get:function(){return l.glossiness.value},set:function(e){l.glossiness.value=e}},glossinessMap:{get:function(){return l.glossinessMap.value},set:function(e){l.glossinessMap.value=e,e?(this.defines.USE_GLOSSINESSMAP="",this.defines.USE_UV=""):(delete this.defines.USE_GLOSSINESSMAP,delete this.defines.USE_UV)}}}),delete r.metalness,delete r.roughness,delete r.metalnessMap,delete r.roughnessMap,r.setValues(e),r}return A(n,[{key:"copy",value:function(e){return g(v(n.prototype),"copy",this).call(this,e),this.specularMap=e.specularMap,this.specular.copy(e.specular),this.glossinessMap=e.glossinessMap,this.glossiness=e.glossiness,delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this}}]),n}(Qh),fm=function(){function e(){M(this,e),this.name=qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,this.specularGlossinessParams=["color","map","lightMap","lightMapIntensity","aoMap","aoMapIntensity","emissive","emissiveIntensity","emissiveMap","bumpMap","bumpScale","normalMap","normalMapType","displacementMap","displacementScale","displacementBias","specularMap","specular","glossinessMap","glossiness","alphaMap","envMap","envMapIntensity","refractionRatio"]}return A(e,[{key:"getMaterialType",value:function(){return cm}},{key:"extendParams",value:function(e,t,n){var r=t.extensions[this.name];e.color=new Hi(1,1,1),e.opacity=1;var i=[];if(Array.isArray(r.diffuseFactor)){var a=r.diffuseFactor;e.color.fromArray(a),e.opacity=a[3]}if(void 0!==r.diffuseTexture&&i.push(n.assignTexture(e,"map",r.diffuseTexture)),e.emissive=new Hi(0,0,0),e.glossiness=void 0!==r.glossinessFactor?r.glossinessFactor:1,e.specular=new Hi(1,1,1),Array.isArray(r.specularFactor)&&e.specular.fromArray(r.specularFactor),void 0!==r.specularGlossinessTexture){var o=r.specularGlossinessTexture;i.push(n.assignTexture(e,"glossinessMap",o)),i.push(n.assignTexture(e,"specularMap",o))}return Promise.all(i)}},{key:"createMaterial",value:function(e){var t=new cm(e);return t.fog=!0,t.color=e.color,t.map=void 0===e.map?null:e.map,t.lightMap=null,t.lightMapIntensity=1,t.aoMap=void 0===e.aoMap?null:e.aoMap,t.aoMapIntensity=1,t.emissive=e.emissive,t.emissiveIntensity=1,t.emissiveMap=void 0===e.emissiveMap?null:e.emissiveMap,t.bumpMap=void 0===e.bumpMap?null:e.bumpMap,t.bumpScale=1,t.normalMap=void 0===e.normalMap?null:e.normalMap,t.normalMapType=kn,e.normalScale&&(t.normalScale=e.normalScale),t.displacementMap=null,t.displacementScale=1,t.displacementBias=0,t.specularMap=void 0===e.specularMap?null:e.specularMap,t.specular=e.specular,t.glossinessMap=void 0===e.glossinessMap?null:e.glossinessMap,t.glossiness=e.glossiness,t.alphaMap=null,t.envMap=void 0===e.envMap?null:e.envMap,t.envMapIntensity=1,t.refractionRatio=.98,t}}]),e}(),dm=A((function e(){M(this,e),this.name=qv.KHR_MESH_QUANTIZATION})),hm=function(e){w(n,e);var t=E(n);function n(e,r,i,a){return M(this,n),t.call(this,e,r,i,a)}return A(n,[{key:"copySampleValue_",value:function(e){for(var t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r,a=0;a!==r;a++)t[a]=n[i+a];return t}}]),n}(up);hm.prototype.beforeStart_=hm.prototype.copySampleValue_,hm.prototype.afterEnd_=hm.prototype.copySampleValue_,hm.prototype.interpolate_=function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=2*o,u=3*o,l=r-t,c=(n-t)/l,f=c*c,d=f*c,h=e*u,p=h-u,v=-2*d+3*f,m=d-f,g=1-v,y=m-f+c,b=0;b!==o;b++){var x=a[p+b+o],w=a[p+b+s]*l,_=a[h+b+o],E=a[h+b]*l;i[b]=g*x+y*w+v*_+m*E}return i};var pm=new br,vm=function(e){w(n,e);var t=E(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"interpolate_",value:function(e,t,r,i){var a=g(v(n.prototype),"interpolate_",this).call(this,e,t,r,i);return pm.fromArray(a).normalize().toArray(a),a}}]),n}(hm),mm={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},gm={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},ym={9728:je,9729:Be,9984:Fe,9985:ze,9986:Ue,9987:He},bm={33071:Ne,33648:De,10497:Ie},xm={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},wm={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},_m={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},Em={CUBICSPLINE:void 0,LINEAR:on,STEP:an},Sm={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function km(e){return void 0===e["DefaultMaterial"]&&(e["DefaultMaterial"]=new Qh({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:F})),e["DefaultMaterial"]}function Mm(e,t,n){for(var r in n.extensions)void 0===e[r]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}function Tm(e,t){void 0!==t.extras&&("object"===typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function Am(e,t,n){for(var r=!1,i=!1,a=0,o=t.length;a0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M(this,e),this.json=t,this.extensions={},this.plugins={},this.options=n,this.cache=new Wv,this.associations=new Map,this.primitiveCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.textureCache={},this.nodeNamesUsed={},"undefined"!==typeof createImageBitmap&&!1===/Firefox/.test(navigator.userAgent)?this.textureLoader=new tv(this.options.manager):this.textureLoader=new Lp(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Ap(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}return A(e,[{key:"setExtensions",value:function(e){this.extensions=e}},{key:"setPlugins",value:function(e){this.plugins=e}},{key:"parse",value:function(e,t){var n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this._invokeAll((function(e){return e._markDefs&&e._markDefs()})),Promise.all(this._invokeAll((function(e){return e.beforeRoot&&e.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(t){var a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};Mm(i,a,r),Tm(a,r),Promise.all(n._invokeAll((function(e){return e.afterRoot&&e.afterRoot(a)}))).then((function(){e(a)}))}))["catch"](t)}},{key:"_markDefs",value:function(){for(var e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[],r=0,i=t.length;r=2&&a.setY(k,_[E*s+1]),s>=3&&a.setZ(k,_[E*s+2]),s>=4&&a.setW(k,_[E*s+3]),s>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return a}))}},{key:"loadTexture",value:function(e){var t=this.json,n=this.options,r=t.textures[e],i=t.images[r.source],a=this.textureLoader;if(i.uri){var o=n.manager.getHandler(i.uri);null!==o&&(a=o)}return this.loadTextureImage(e,i,a)}},{key:"loadTextureImage",value:function(e,t,n){var r=this,i=this.json,a=this.options,o=i.textures[e],s=(t.uri||t.bufferView)+":"+o.sampler;if(this.textureCache[s])return this.textureCache[s];var u=self.URL||self.webkitURL,l=t.uri||"",c=!1;if(void 0!==t.bufferView)l=r.getDependency("bufferView",t.bufferView).then((function(e){c=!0;var n=new Blob([e],{type:t.mimeType});return l=u.createObjectURL(n),l}));else if(void 0===t.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");var f=Promise.resolve(l).then((function(e){return new Promise((function(t,r){var i=t;!0===n.isImageBitmapLoader&&(i=function(e){var n=new hr(e);n.needsUpdate=!0,t(n)}),n.load($p.resolveURL(e,a.path),i,void 0,r)}))})).then((function(t){!0===c&&u.revokeObjectURL(l),t.flipY=!1,o.name&&(t.name=o.name);var n=i.samplers||{},a=n[o.sampler]||{};return t.magFilter=ym[a.magFilter]||Be,t.minFilter=ym[a.minFilter]||He,t.wrapS=bm[a.wrapS]||Ie,t.wrapT=bm[a.wrapT]||Ie,r.associations.set(t,{textures:e}),t}))["catch"]((function(){return console.error("THREE.GLTFLoader: Couldn't load texture",l),null}));return this.textureCache[s]=f,f}},{key:"assignTexture",value:function(e,t,n){var r=this;return this.getDependency("texture",n.index).then((function(i){if(void 0===n.texCoord||0==n.texCoord||"aoMap"===t&&1==n.texCoord||console.warn("THREE.GLTFLoader: Custom UV set "+n.texCoord+" for texture "+t+" not yet supported."),r.extensions[qv.KHR_TEXTURE_TRANSFORM]){var a=void 0!==n.extensions?n.extensions[qv.KHR_TEXTURE_TRANSFORM]:void 0;if(a){var o=r.associations.get(i);i=r.extensions[qv.KHR_TEXTURE_TRANSFORM].extendTexture(i,a),r.associations.set(i,o)}}return e[t]=i,i}))}},{key:"assignFinalMaterial",value:function(e){var t=e.geometry,n=e.material,r=void 0===t.attributes.tangent,i=void 0!==t.attributes.color,a=void 0===t.attributes.normal;if(e.isPoints){var o="PointsMaterial:"+n.uuid,s=this.cache.get(o);s||(s=new Md,Ni.prototype.copy.call(s,n),s.color.copy(n.color),s.map=n.map,s.sizeAttenuation=!1,this.cache.add(o,s)),n=s}else if(e.isLine){var u="LineBasicMaterial:"+n.uuid,l=this.cache.get(u);l||(l=new vd,Ni.prototype.copy.call(l,n),l.color.copy(n.color),this.cache.add(u,l)),n=l}if(r||i||a){var c="ClonedMaterial:"+n.uuid+":";n.isGLTFSpecularGlossinessMaterial&&(c+="specular-glossiness:"),r&&(c+="derivative-tangents:"),i&&(c+="vertex-colors:"),a&&(c+="flat-shading:");var f=this.cache.get(c);f||(f=n.clone(),i&&(f.vertexColors=!0),a&&(f.flatShading=!0),r&&(f.normalScale&&(f.normalScale.y*=-1),f.clearcoatNormalScale&&(f.clearcoatNormalScale.y*=-1)),this.cache.add(c,f),this.associations.set(f,this.associations.get(n))),n=f}n.aoMap&&void 0===t.attributes.uv2&&void 0!==t.attributes.uv&&t.setAttribute("uv2",t.attributes.uv),e.material=n}},{key:"getMaterialType",value:function(){return Qh}},{key:"loadMaterial",value:function(e){var t,n=this,r=this.json,i=this.extensions,a=r.materials[e],o={},s=a.extensions||{},u=[];if(s[qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){var l=i[qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];t=l.getMaterialType(),u.push(l.extendParams(o,a,n))}else if(s[qv.KHR_MATERIALS_UNLIT]){var c=i[qv.KHR_MATERIALS_UNLIT];t=c.getMaterialType(),u.push(c.extendParams(o,a,n))}else{var f=a.pbrMetallicRoughness||{};if(o.color=new Hi(1,1,1),o.opacity=1,Array.isArray(f.baseColorFactor)){var d=f.baseColorFactor;o.color.fromArray(d),o.opacity=d[3]}void 0!==f.baseColorTexture&&u.push(n.assignTexture(o,"map",f.baseColorTexture)),o.metalness=void 0!==f.metallicFactor?f.metallicFactor:1,o.roughness=void 0!==f.roughnessFactor?f.roughnessFactor:1,void 0!==f.metallicRoughnessTexture&&(u.push(n.assignTexture(o,"metalnessMap",f.metallicRoughnessTexture)),u.push(n.assignTexture(o,"roughnessMap",f.metallicRoughnessTexture))),t=this._invokeOne((function(t){return t.getMaterialType&&t.getMaterialType(e)})),u.push(Promise.all(this._invokeAll((function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)}))))}!0===a.doubleSided&&(o.side=B);var h=a.alphaMode||Sm.OPAQUE;if(h===Sm.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.format=nt,o.transparent=!1,h===Sm.MASK&&(o.alphaTest=void 0!==a.alphaCutoff?a.alphaCutoff:.5)),void 0!==a.normalTexture&&t!==Gi&&(u.push(n.assignTexture(o,"normalMap",a.normalTexture)),o.normalScale=new ar(1,1),void 0!==a.normalTexture.scale)){var p=a.normalTexture.scale;o.normalScale.set(p,p)}return void 0!==a.occlusionTexture&&t!==Gi&&(u.push(n.assignTexture(o,"aoMap",a.occlusionTexture)),void 0!==a.occlusionTexture.strength&&(o.aoMapIntensity=a.occlusionTexture.strength)),void 0!==a.emissiveFactor&&t!==Gi&&(o.emissive=(new Hi).fromArray(a.emissiveFactor)),void 0!==a.emissiveTexture&&t!==Gi&&u.push(n.assignTexture(o,"emissiveMap",a.emissiveTexture)),Promise.all(u).then((function(){var r;return r=t===cm?i[qv.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(o):new t(o),a.name&&(r.name=a.name),r.map&&(r.map.encoding=gn),r.emissiveMap&&(r.emissiveMap.encoding=gn),Tm(r,a),n.associations.set(r,{materials:e}),a.extensions&&Mm(i,r,a),r}))}},{key:"createUniqueName",value:function(e){for(var t=_v.sanitizeNodeName(e||""),n=t,r=1;this.nodeNamesUsed[n];++r)n=t+"_"+r;return this.nodeNamesUsed[n]=!0,n}},{key:"loadGeometries",value:function(e){var t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[qv.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then((function(n){return Dm(n,e,t)}))}for(var a=[],o=0,s=e.length;o0&&Om(h,i),h.name=t.createUniqueName(i.name||"mesh_"+e),Tm(h,i),d.extensions&&Mm(r,h,d),t.assignFinalMaterial(h),u.push(h)}for(var v=0,m=u.length;v1?new wf:1===t.length?t[0]:new _i,o!==t[0])for(var s=0,u=t.length;sMath.PI&&(m-=v),g<-Math.PI?g+=v:g>Math.PI&&(g-=v),l.theta=m<=g?Math.max(m,Math.min(g,l.theta)):l.theta>(m+g)/2?Math.max(m,l.theta):Math.min(g,l.theta)),l.phi=Math.max(a.minPolarAngle,Math.min(a.maxPolarAngle,l.phi)),l.makeSafe(),l.radius*=f,l.radius=Math.max(a.minDistance,Math.min(a.maxDistance,l.radius)),!0===a.enableDamping?a.target.addScaledVector(d,a.dampingFactor):a.target.add(d),t.setFromSpherical(l),t.applyQuaternion(r),e.copy(a.target).add(t),a.object.lookAt(a.target),!0===a.enableDamping?(c.theta*=1-a.dampingFactor,c.phi*=1-a.dampingFactor,d.multiplyScalar(1-a.dampingFactor)):(c.set(0,0,0),d.set(0,0,0)),f=1,!!(p||i.distanceToSquared(a.object.position)>u||8*(1-h.dot(a.object.quaternion))>u)&&(a.dispatchEvent(Fm),i.copy(a.object.position),h.copy(a.object.quaternion),p=!1,!0)}}(),i.dispose=function(){a.domElement.removeEventListener("contextmenu",de),a.domElement.removeEventListener("pointerdown",ne),a.domElement.removeEventListener("pointercancel",ae),a.domElement.removeEventListener("wheel",ue),a.domElement.removeEventListener("pointermove",re),a.domElement.removeEventListener("pointerup",ie),null!==a._domElementKeyEvents&&a._domElementKeyEvents.removeEventListener("keydown",le)};var a=h(i),o={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},s=o.NONE,u=1e-6,l=new Ov,c=new Ov,f=1,d=new xr,p=!1,v=new ar,m=new ar,g=new ar,y=new ar,b=new ar,x=new ar,w=new ar,_=new ar,E=new ar,S=[],k={};function T(){return 2*Math.PI/60/60*a.autoRotateSpeed}function A(){return Math.pow(.95,a.zoomSpeed)}function O(e){c.theta-=e}function L(e){c.phi-=e}var P=function(){var e=new xr;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),d.add(e)}}(),I=function(){var e=new xr;return function(t,n){!0===a.screenSpacePanning?e.setFromMatrixColumn(n,1):(e.setFromMatrixColumn(n,0),e.crossVectors(a.object.up,e)),e.multiplyScalar(t),d.add(e)}}(),N=function(){var e=new xr;return function(t,n){var r=a.domElement;if(a.object.isPerspectiveCamera){var i=a.object.position;e.copy(i).sub(a.target);var o=e.length();o*=Math.tan(a.object.fov/2*Math.PI/180),P(2*t*o/r.clientHeight,a.object.matrix),I(2*n*o/r.clientHeight,a.object.matrix)}else a.object.isOrthographicCamera?(P(t*(a.object.right-a.object.left)/a.object.zoom/r.clientWidth,a.object.matrix),I(n*(a.object.top-a.object.bottom)/a.object.zoom/r.clientHeight,a.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),a.enablePan=!1)}}();function D(e){a.object.isPerspectiveCamera?f/=e:a.object.isOrthographicCamera?(a.object.zoom=Math.max(a.minZoom,Math.min(a.maxZoom,a.object.zoom*e)),a.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),a.enableZoom=!1)}function j(e){a.object.isPerspectiveCamera?f*=e:a.object.isOrthographicCamera?(a.object.zoom=Math.max(a.minZoom,Math.min(a.maxZoom,a.object.zoom/e)),a.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),a.enableZoom=!1)}function F(e){v.set(e.clientX,e.clientY)}function U(e){w.set(e.clientX,e.clientY)}function B(e){y.set(e.clientX,e.clientY)}function z(e){m.set(e.clientX,e.clientY),g.subVectors(m,v).multiplyScalar(a.rotateSpeed);var t=a.domElement;O(2*Math.PI*g.x/t.clientHeight),L(2*Math.PI*g.y/t.clientHeight),v.copy(m),a.update()}function H(e){_.set(e.clientX,e.clientY),E.subVectors(_,w),E.y>0?D(A()):E.y<0&&j(A()),w.copy(_),a.update()}function G(e){b.set(e.clientX,e.clientY),x.subVectors(b,y).multiplyScalar(a.panSpeed),N(x.x,x.y),y.copy(b),a.update()}function V(e){e.deltaY<0?j(A()):e.deltaY>0&&D(A()),a.update()}function W(e){var t=!1;switch(e.code){case a.keys.UP:N(0,a.keyPanSpeed),t=!0;break;case a.keys.BOTTOM:N(0,-a.keyPanSpeed),t=!0;break;case a.keys.LEFT:N(a.keyPanSpeed,0),t=!0;break;case a.keys.RIGHT:N(-a.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),a.update())}function q(){if(1===S.length)v.set(S[0].pageX,S[0].pageY);else{var e=.5*(S[0].pageX+S[1].pageX),t=.5*(S[0].pageY+S[1].pageY);v.set(e,t)}}function X(){if(1===S.length)y.set(S[0].pageX,S[0].pageY);else{var e=.5*(S[0].pageX+S[1].pageX),t=.5*(S[0].pageY+S[1].pageY);y.set(e,t)}}function Y(){var e=S[0].pageX-S[1].pageX,t=S[0].pageY-S[1].pageY,n=Math.sqrt(e*e+t*t);w.set(0,n)}function K(){a.enableZoom&&Y(),a.enablePan&&X()}function Z(){a.enableZoom&&Y(),a.enableRotate&&q()}function J(e){if(1==S.length)m.set(e.pageX,e.pageY);else{var t=me(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}g.subVectors(m,v).multiplyScalar(a.rotateSpeed);var i=a.domElement;O(2*Math.PI*g.x/i.clientHeight),L(2*Math.PI*g.y/i.clientHeight),v.copy(m)}function $(e){if(1===S.length)b.set(e.pageX,e.pageY);else{var t=me(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);b.set(n,r)}x.subVectors(b,y).multiplyScalar(a.panSpeed),N(x.x,x.y),y.copy(b)}function Q(e){var t=me(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);_.set(0,i),E.set(0,Math.pow(_.y/w.y,a.zoomSpeed)),D(E.y),w.copy(_)}function ee(e){a.enableZoom&&Q(e),a.enablePan&&$(e)}function te(e){a.enableZoom&&Q(e),a.enableRotate&&J(e)}function ne(e){!1!==a.enabled&&(0===S.length&&(a.domElement.setPointerCapture(e.pointerId),a.domElement.addEventListener("pointermove",re),a.domElement.addEventListener("pointerup",ie)),he(e),"touch"===e.pointerType?ce(e):oe(e))}function re(e){!1!==a.enabled&&("touch"===e.pointerType?fe(e):se(e))}function ie(e){pe(e),0===S.length&&(a.domElement.releasePointerCapture(e.pointerId),a.domElement.removeEventListener("pointermove",re),a.domElement.removeEventListener("pointerup",ie)),a.dispatchEvent(Bm),s=o.NONE}function ae(e){pe(e)}function oe(e){var t;switch(e.button){case 0:t=a.mouseButtons.LEFT;break;case 1:t=a.mouseButtons.MIDDLE;break;case 2:t=a.mouseButtons.RIGHT;break;default:t=-1}switch(t){case R.DOLLY:if(!1===a.enableZoom)return;U(e),s=o.DOLLY;break;case R.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===a.enablePan)return;B(e),s=o.PAN}else{if(!1===a.enableRotate)return;F(e),s=o.ROTATE}break;case R.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===a.enableRotate)return;F(e),s=o.ROTATE}else{if(!1===a.enablePan)return;B(e),s=o.PAN}break;default:s=o.NONE}s!==o.NONE&&a.dispatchEvent(Um)}function se(e){if(!1!==a.enabled)switch(s){case o.ROTATE:if(!1===a.enableRotate)return;z(e);break;case o.DOLLY:if(!1===a.enableZoom)return;H(e);break;case o.PAN:if(!1===a.enablePan)return;G(e);break}}function ue(e){!1!==a.enabled&&!1!==a.enableZoom&&s===o.NONE&&(e.preventDefault(),a.dispatchEvent(Um),V(e),a.dispatchEvent(Bm))}function le(e){!1!==a.enabled&&!1!==a.enablePan&&W(e)}function ce(e){switch(ve(e),S.length){case 1:switch(a.touches.ONE){case C.ROTATE:if(!1===a.enableRotate)return;q(),s=o.TOUCH_ROTATE;break;case C.PAN:if(!1===a.enablePan)return;X(),s=o.TOUCH_PAN;break;default:s=o.NONE}break;case 2:switch(a.touches.TWO){case C.DOLLY_PAN:if(!1===a.enableZoom&&!1===a.enablePan)return;K(),s=o.TOUCH_DOLLY_PAN;break;case C.DOLLY_ROTATE:if(!1===a.enableZoom&&!1===a.enableRotate)return;Z(),s=o.TOUCH_DOLLY_ROTATE;break;default:s=o.NONE}break;default:s=o.NONE}s!==o.NONE&&a.dispatchEvent(Um)}function fe(e){switch(ve(e),s){case o.TOUCH_ROTATE:if(!1===a.enableRotate)return;J(e),a.update();break;case o.TOUCH_PAN:if(!1===a.enablePan)return;$(e),a.update();break;case o.TOUCH_DOLLY_PAN:if(!1===a.enableZoom&&!1===a.enablePan)return;ee(e),a.update();break;case o.TOUCH_DOLLY_ROTATE:if(!1===a.enableZoom&&!1===a.enableRotate)return;te(e),a.update();break;default:s=o.NONE}}function de(e){!1!==a.enabled&&e.preventDefault()}function he(e){S.push(e)}function pe(e){delete k[e.pointerId];for(var t=0;tnew ov),[]),f=Object(i["useCallback"])((()=>{var e;null===(e=a.current)||void 0===e||e.render(r.current,o.current)}),[]);Object(i["useEffect"])((()=>{var n=e.current,i=n.offsetHeight,u=n.offsetWidth,l=new Pa(45,u/i,.01,1e5);o.current=l,l.position.set(0,0,0);var c=new Lf;c.background=new Hi(t||12303291),r.current=c;var d=new Af({antialias:!0,canvas:e.current});a.current=d,d.setPixelRatio(window.devicePixelRatio),d.setSize(u,i),d.toneMapping=ke,d.toneMappingExposure=1,d.outputEncoding=gn;var h=new zm(l,d.domElement);return h.addEventListener("change",f),h.update(),()=>{cancelAnimationFrame(s.current),c.clear(),d.dispose(),h.dispose()}}),[]);var d=Object(i["useCallback"])((e=>{var t,n=Gm(e).length(),i=Vm(e);if(l.current=e,e.animations[0]){u.current=new kv(e);var a=u.current.clipAction(e.animations[0]);a.play()}o.current&&(o.current.position.z=n),e.position.copy(i.negate()),null===(t=r.current)||void 0===t||t.add(e)}),[]),h=Object(i["useCallback"])((()=>{var e;s.current=requestAnimationFrame(h);var t=c.getDelta();null===(e=u.current)||void 0===e||e.update(t),n&&l.current&&(l.current.rotation.z+=.5*t),f()}),[]);return{add2Scene:d,scene:r,renderer:a,render:f,animate:h}}var qm=Wm;function Xm(e,t){var n=e.src,r=e.backgroundColor,o=Object(i["useRef"])(null),s=qm(o,r),u=s.add2Scene,l=s.scene,c=s.renderer,f=s.render;return Object(i["useImperativeHandle"])(t,(()=>({getSnapshot:()=>{var e;return f(),null===(e=c.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e=new Hv,t=new Zu(c.current);l.current&&(l.current.environment=t.fromScene(e,.04).texture);var r=new Vv;r.load(n,(function(e){u(e.scene),f()}))}),[]),a.a.createElement("canvas",{ref:o,style:{width:"100%",height:"100%"}})}var Ym=Object(i["forwardRef"])(Xm),Km=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"parse",value:function(e){function t(e){switch(e.image_type){case f:case p:(e.colormap_length>256||24!==e.colormap_size||1!==e.colormap_type)&&console.error("THREE.TGALoader: Invalid type colormap data for indexed type.");break;case d:case h:case v:case m:e.colormap_type&&console.error("THREE.TGALoader: Invalid type colormap data for colormap type.");break;case c:console.error("THREE.TGALoader: No data.");default:console.error('THREE.TGALoader: Invalid type "%s".',e.image_type)}(e.width<=0||e.height<=0)&&console.error("THREE.TGALoader: Invalid image size."),8!==e.pixel_size&&16!==e.pixel_size&&24!==e.pixel_size&&32!==e.pixel_size&&console.error('THREE.TGALoader: Invalid pixel size "%s".',e.pixel_size)}function n(e,t,n,r,i){var a,o,s=n.pixel_size>>3,u=n.width*n.height*s;if(t&&(o=i.subarray(r,r+=n.colormap_length*(n.colormap_size>>3))),e){var l,c,f;a=new Uint8Array(u);var d=0,h=new Uint8Array(s);while(d>7,e[4*(l+d*c)+1]=(992&u)>>2,e[4*(l+d*c)+2]=(31&u)<<3,e[4*(l+d*c)+3]=32768&u?0:255;return e}function a(e,t,n,r,i,a,o,s){var u,l,c=0,f=k.width;for(l=t;l!==r;l+=n)for(u=i;u!==o;u+=a,c+=3)e[4*(u+f*l)+3]=255,e[4*(u+f*l)+2]=s[c+0],e[4*(u+f*l)+1]=s[c+1],e[4*(u+f*l)+0]=s[c+2];return e}function o(e,t,n,r,i,a,o,s){var u,l,c=0,f=k.width;for(l=t;l!==r;l+=n)for(u=i;u!==o;u+=a,c+=4)e[4*(u+f*l)+2]=s[c+0],e[4*(u+f*l)+1]=s[c+1],e[4*(u+f*l)+0]=s[c+2],e[4*(u+f*l)+3]=s[c+3];return e}function s(e,t,n,r,i,a,o,s){var u,l,c,f=0,d=k.width;for(c=t;c!==r;c+=n)for(l=i;l!==o;l+=a,f++)u=s[f],e[4*(l+d*c)+0]=u,e[4*(l+d*c)+1]=u,e[4*(l+d*c)+2]=u,e[4*(l+d*c)+3]=255;return e}function u(e,t,n,r,i,a,o,s){var u,l,c=0,f=k.width;for(l=t;l!==r;l+=n)for(u=i;u!==o;u+=a,c+=2)e[4*(u+f*l)+0]=s[c+0],e[4*(u+f*l)+1]=s[c+0],e[4*(u+f*l)+2]=s[c+0],e[4*(u+f*l)+3]=s[c+1];return e}function l(e,t,n,l,c){var f,d,h,p,v,m;switch((k.flags&g)>>y){default:case w:f=0,h=1,v=t,d=0,p=1,m=n;break;case b:f=0,h=1,v=t,d=n-1,p=-1,m=-1;break;case _:f=t-1,h=-1,v=-1,d=0,p=1,m=n;break;case x:f=t-1,h=-1,v=-1,d=n-1,p=-1,m=-1;break}if(A)switch(k.pixel_size){case 8:s(e,d,p,m,f,h,v,l);break;case 16:u(e,d,p,m,f,h,v,l);break;default:console.error("THREE.TGALoader: Format not supported.");break}else switch(k.pixel_size){case 8:r(e,d,p,m,f,h,v,l,c);break;case 16:i(e,d,p,m,f,h,v,l);break;case 24:a(e,d,p,m,f,h,v,l);break;case 32:o(e,d,p,m,f,h,v,l);break;default:console.error("THREE.TGALoader: Format not supported.");break}return e}var c=0,f=1,d=2,h=3,p=9,v=10,m=11,g=48,y=4,b=0,x=1,w=2,_=3;e.length<19&&console.error("THREE.TGALoader: Not enough data to contain header.");var E=0,S=new Uint8Array(e),k={id_length:S[E++],colormap_type:S[E++],image_type:S[E++],colormap_index:S[E++]|S[E++]<<8,colormap_length:S[E++]|S[E++]<<8,colormap_size:S[E++],origin:[S[E++]|S[E++]<<8,S[E++]|S[E++]<<8],width:S[E++]|S[E++]<<8,height:S[E++]|S[E++]<<8,pixel_size:S[E++],flags:S[E++]};t(k),k.id_length+E>e.length&&console.error("THREE.TGALoader: No data."),E+=k.id_length;var M=!1,T=!1,A=!1;switch(k.image_type){case p:M=!0,T=!0;break;case f:T=!0;break;case v:M=!0;break;case d:break;case m:M=!0,A=!0;break;case h:A=!0;break}var O=new Uint8Array(k.width*k.height*4),R=n(M,T,k,E,S);return l(O,k.width,k.height,R.pixel_data,R.palettes),{data:O,width:k.width,height:k.height,flipY:!0,generateMipmaps:!0,minFilter:He}}}]),n}(Cp),Zm=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=""===i.path?$p.extractUrlBase(e):i.path,o=new Ap(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(e,(function(n){try{t(i.parse(n,a))}catch(o){r?r(o):console.error(o),i.manager.itemError(e)}}),n,r)}},{key:"parse",value:function(e,t){function n(e,t){for(var n=[],r=e.childNodes,i=0,a=r.length;i0&&t.push(new bp(r+".position",i,a)),o.length>0&&t.push(new gp(r+".quaternion",i,o)),s.length>0&&t.push(new bp(r+".scale",i,s)),t}function M(e,t,n){var r,i,a,o=!0;for(i=0,a=e.length;i=0){var r=e[t];if(null!==r.value[n])return r;t--}return null}function O(e,t,n){while(t>>0));switch(n=n.toLowerCase(),n){case"tga":t=kt;break;default:t=Tt}return t}function ce(e){var t,n=se(e.url),r=n.profile.technique;switch(r.type){case"phong":case"blinn":t=new tp;break;case"lambert":t=new ip;break;default:t=new Gi;break}function i(e){var t=n.profile.samplers[e.id],r=null;if(void 0!==t){var i=n.profile.surfaces[t.source];r=W(i.init_from)}else console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),r=W(e.id);if(null!==r){var a=le(r);if(void 0!==a){var o=a.load(r),s=e.extra;if(void 0!==s&&void 0!==s.technique&&!1===u(s.technique)){var l=s.technique;o.wrapS=l.wrapU?Ie:Ne,o.wrapT=l.wrapV?Ie:Ne,o.offset.set(l.offsetU||0,l.offsetV||0),o.repeat.set(l.repeatU||1,l.repeatV||1)}else o.wrapS=Ie,o.wrapT=Ie;return o}return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",r),null}return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",e.id),null}t.name=e.name||"";var a=r.parameters;for(var o in a){var s=a[o];switch(o){case"diffuse":s.color&&t.color.fromArray(s.color),s.texture&&(t.map=i(s.texture));break;case"specular":s.color&&t.specular&&t.specular.fromArray(s.color),s.texture&&(t.specularMap=i(s.texture));break;case"bump":s.texture&&(t.normalMap=i(s.texture));break;case"ambient":s.texture&&(t.lightMap=i(s.texture));break;case"shininess":s["float"]&&t.shininess&&(t.shininess=s["float"]);break;case"emission":s.color&&t.emissive&&t.emissive.fromArray(s.color),s.texture&&(t.emissiveMap=i(s.texture));break}}var l=a["transparent"],c=a["transparency"];if(void 0===c&&l&&(c={float:1}),void 0===l&&c&&(l={opaque:"A_ONE",data:{color:[1,1,1,1]}}),l&&c)if(l.data.texture)t.transparent=!0;else{var f=l.data.color;switch(l.opaque){case"A_ONE":t.opacity=f[3]*c["float"];break;case"RGB_ZERO":t.opacity=1-f[0]*c["float"];break;case"A_ZERO":t.opacity=1-f[3]*c["float"];break;case"RGB_ONE":t.opacity=f[0]*c["float"];break;default:t.opacity=1-c["float"],console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',l.opaque)}t.opacity<1&&(t.transparent=!0)}if(void 0!==r.extra&&void 0!==r.extra.technique){var d=r.extra.technique;for(var h in d){var p=d[h];switch(h){case"double_sided":t.side=1===p?B:F;break;case"bump":t.normalMap=i(p.texture),t.normalScale=new ar(1,1);break}}}return t}function fe(e){return p(Ct.materials[e],ce)}function de(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n0?u+c:u;t.inputs[f]={id:s,offset:l},t.stride=Math.max(t.stride,l+1),"TEXCOORD"===u&&(t.hasUV=!0);break;case"vcount":t.vcount=a(i.textContent);break;case"p":t.p=a(i.textContent);break}}return t}function Te(e){for(var t={},n=0;n0&&t0&&f.setAttribute("position",new Zi(i.array,i.stride)),a.array.length>0&&f.setAttribute("normal",new Zi(a.array,a.stride)),u.array.length>0&&f.setAttribute("color",new Zi(u.array,u.stride)),o.array.length>0&&f.setAttribute("uv",new Zi(o.array,o.stride)),s.array.length>0&&f.setAttribute("uv2",new Zi(s.array,s.stride)),l.array.length>0&&f.setAttribute("skinIndex",new Zi(l.array,l.stride)),c.array.length>0&&f.setAttribute("skinWeight",new Zi(c.array,c.stride)),r.data=f,r.type=e[0].type,r.materialKeys=d,r}function Ce(e,t,n,r){var i=e.p,a=e.stride,o=e.vcount;function s(e){for(var t=i[e+n]*l,a=t+l;t4)for(var w=1,_=h-2;w<=_;w++){var E=c+0*a,S=c+a*w,k=c+a*(w+1);s(E),s(S),s(k)}c+=a*h}else for(var M=0,T=i.length;M=t.limits.max&&(t["static"]=!0),t.middlePosition=(t.limits.min+t.limits.max)/2,t}function ze(e){for(var t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",attachments:[],transforms:[]},n=0;nr.limits.max||t({getSnapshot:()=>{var e;return h(),null===(e=d.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e,t,r=new Yp(13421772,.4);null===(e=c.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(t=c.current)||void 0===t||t.add(i);var a=new Zm;a.load(n,(function(e){l(e.scene),f()}))}),[]),a.a.createElement("canvas",{ref:s,style:{width:"100%",height:"100%"}})}var $m=Object(i["forwardRef"])(Jm),Qm={},eg=function(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))},tg=function(e){return new Worker(e)};try{URL.revokeObjectURL(eg(""))}catch(Sx){eg=function(e){return"data:application/javascript;charset=UTF-8,"+encodeURI(e)},tg=function(e){return new Worker(e,{type:"module"})}}var ng=function(e,t,n,r,i){var a=tg(Qm[t]||(Qm[t]=eg(e)));return a.onerror=function(e){return i(e.error,null)},a.onmessage=function(e){return i(null,e.data)},a.postMessage(n,r),a},rg=Uint8Array,ig=Uint16Array,ag=Uint32Array,og=new rg([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),sg=new rg([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ug=new rg([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lg=function(e,t){for(var n=new ig(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&gg)<<1;yg=(52428&yg)>>>2|(13107&yg)<<2,yg=(61680&yg)>>>4|(3855&yg)<<4,mg[gg]=((65280&yg)>>>8|(255&yg)<<8)>>>1}var bg=function(e,t,n){for(var r=e.length,i=0,a=new ig(t);i>>u]=l}else for(o=new ig(r),i=0;i>>15-e[i]);return o},xg=new rg(288);for(gg=0;gg<144;++gg)xg[gg]=8;for(gg=144;gg<256;++gg)xg[gg]=9;for(gg=256;gg<280;++gg)xg[gg]=7;for(gg=280;gg<288;++gg)xg[gg]=8;var wg=new rg(32);for(gg=0;gg<32;++gg)wg[gg]=5;var _g=bg(xg,9,0),Eg=bg(xg,9,1),Sg=bg(wg,5,0),kg=bg(wg,5,1),Mg=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},Tg=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},Ag=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Og=function(e){return(e/8|0)+(7&e&&1)},Rg=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof ig?ig:e instanceof ag?ag:rg)(n-t);return r.set(e.subarray(t,n)),r},Cg=function(e,t,n){var r=e.length;if(!r||n&&!n.l&&r<5)return t||new rg(0);var i=!t||n,a=!n||n.i;n||(n={}),t||(t=new rg(3*r));var o=function(e){var n=t.length;if(e>n){var r=new rg(Math.max(2*n,e));r.set(t),t=r}},s=n.f||0,u=n.p||0,l=n.b||0,c=n.l,f=n.d,d=n.m,h=n.n,p=8*r;do{if(!c){n.f=s=Tg(e,u,1);var v=Tg(e,u+1,3);if(u+=3,!v){var m=Og(u)+4,g=e[m-4]|e[m-3]<<8,y=m+g;if(y>r){if(a)throw"unexpected EOF";break}i&&o(l+g),t.set(e.subarray(m,y),l),n.b=l+=g,n.p=u=8*y;continue}if(1==v)c=Eg,f=kg,d=9,h=5;else{if(2!=v)throw"invalid block type";var b=Tg(e,u,31)+257,x=Tg(e,u+10,15)+4,w=b+Tg(e,u+5,31)+1;u+=14;for(var _=new rg(w),E=new rg(19),S=0;S>>4;if(m<16)_[S++]=m;else{var O=0,R=0;16==m?(R=3+Tg(e,u,3),u+=2,O=_[S-1]):17==m?(R=3+Tg(e,u,7),u+=3):18==m&&(R=11+Tg(e,u,127),u+=7);while(R--)_[S++]=O}}var C=_.subarray(0,b),L=_.subarray(b);d=Mg(C),h=Mg(L),c=bg(C,d,1),f=bg(L,h,1)}if(u>p){if(a)throw"unexpected EOF";break}}i&&o(l+131072);for(var P=(1<>>4;if(u+=15&O,u>p){if(a)throw"unexpected EOF";break}if(!O)throw"invalid length/literal";if(D<256)t[l++]=D;else{if(256==D){N=u,c=null;break}var j=D-254;if(D>264){S=D-257;var F=og[S];j=Tg(e,u,(1<>>4;if(!U)throw"invalid distance";u+=15&U;L=pg[B];if(B>3){F=sg[B];L+=Ag(e,u)&(1<p){if(a)throw"unexpected EOF";break}i&&o(l+131072);for(var z=l+j;l>>8},Pg=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Ig=function(e,t){for(var n=[],r=0;rd&&(d=a[r].s);var h=new ig(d+1),p=Ng(n[c-1],h,0);if(p>t){r=0;var v=0,m=p-t,g=1<t))break;v+=g-(1<>>=m;while(v>0){var b=a[r].s;h[b]=0&&v;--r){var x=a[r].s;h[x]==t&&(--h[x],++v)}p=t}return[new rg(h),p]},Ng=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},Dg=function(e){var t=e.length;while(t&&!e[--t]);for(var n=new ig(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}while(a--)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},jg=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!M[ug[A-1]];--A);var O,R,C,L,P=l+5<<3,I=jg(i,xg)+jg(a,wg)+o,N=jg(i,d)+jg(a,v)+o+14+3*A+jg(E,M)+(2*E[16]+3*E[17]+7*E[18]);if(P<=I&&P<=N)return Fg(t,c,e.subarray(u,u+l));if(Lg(t,c,1+(N15&&(Lg(t,c,U[S]>>>5&127),c+=U[S]>>>12)}}}else O=_g,R=xg,C=Sg,L=wg;for(S=0;S255){B=r[S]>>>18&31;Pg(t,c,O[B+257]),c+=R[B+257],B>7&&(Lg(t,c,r[S]>>>23&31),c+=og[B]);var z=31&r[S];Pg(t,c,C[z]),c+=L[z],z>3&&(Pg(t,c,r[S]>>>5&8191),c+=sg[z])}else Pg(t,c,O[r[S]]),c+=R[r[S]];return Pg(t,c,O[256]),c+R[256]},Bg=new ag([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zg=new rg(0),Hg=function(e,t,n,r,i,a){var o=e.length,s=new rg(r+o+5*(1+Math.ceil(o/7e3))+i),u=s.subarray(r,s.length-i),l=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var f=c+65535;f>>13,p=8191&d,v=(1<7e3||M>24576)&&L>423){l=Ug(e,u,0,w,_,E,k,M,A,c-A,l),M=S=k=0,A=c;for(var P=0;P<286;++P)_[P]=0;for(P=0;P<30;++P)E[P]=0}var I=2,N=0,D=p,j=R-C&32767;if(L>2&&O==x(c-j)){var F=Math.min(h,L)-1,U=Math.min(32767,c),B=Math.min(258,L);while(j<=U&&--D&&R!=C){if(e[c+I]==e[c+I-j]){for(var z=0;zI){if(I=z,N=j,z>F)break;var H=Math.min(j,z-2),G=0;for(P=0;PG&&(G=q,C=V)}}}R=C,C=m[R],j+=R-C+32768&32767}}if(N){w[M++]=268435456|dg[I]<<18|vg[N];var X=31&dg[I],Y=31&vg[N];k+=og[X]+sg[Y],++_[257+X],++E[Y],T=c+I,++S}else w[M++]=e[c],++_[e[c]]}}l=Ug(e,u,a,w,_,E,k,M,A,c-A,l),!a&&7&l&&(l=Fg(u,l+1,zg))}return Rg(s,0,r+Og(l)+i)},Gg=function(){for(var e=new ag(256),t=0;t<256;++t){var n=t,r=9;while(--r)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),Vg=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return~e}}},Wg=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length,o=0;o!=a;){for(var s=Math.min(o+2655,a);o>16),i=(65535&i)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(255&e)<<24|e>>>8<<16|(255&t)<<8|t>>>8}}},qg=function(e,t,n,r,i){return Hg(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Xg=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Yg=function(e,t,n){for(var r=e(),i=e.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/ /g,"").split(","),o=0;o>>0},fy=function(e,t){return cy(e,t)+4294967296*cy(e,t+4)},dy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},hy=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&dy(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},py=function(e){if(31!=e[0]||139!=e[1]||8!=e[2])throw"invalid gzip data";var t=e[3],n=10;4&t&&(n+=e[10]|2+(e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},vy=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},my=function(e){return 10+(e.filename&&e.filename.length+1||0)},gy=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},yy=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function by(e,t){return t||"function"!=typeof e||(t=e,e={}),this.ondata=t,e}var xy=function(){function e(e,t){t||"function"!=typeof e||(t=e,e={}),this.ondata=t,this.o=e||{}}return e.prototype.p=function(e,t){this.ondata(qg(e,this.o,0,0,!t),t)},e.prototype.push=function(e,t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=t,this.p(e,t||!1)},e}(),wy=function(){function e(e,t){uy([Qg,function(){return[sy,xy]}],this,by.call(this,e,t),(function(e){var t=new xy(e.data);onmessage=sy(t)}),6)}return e}();function _y(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[Qg],(function(e){return iy(Ey(e.data[0],e.data[1]))}),0,n)}function Ey(e,t){return qg(e,t||{},0,0)}var Sy=function(){function e(e){this.s={},this.p=new rg(0),this.ondata=e}return e.prototype.e=function(e){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var t=this.p.length,n=new rg(t+e.length);n.set(this.p),n.set(e,t),this.p=n},e.prototype.c=function(e){this.d=this.s.i=e||!1;var t=this.s.b,n=Cg(this.p,this.o,this.s);this.ondata(Rg(n,t,this.s.b),this.d),this.o=Rg(n,this.s.b-32768),this.s.b=this.o.length,this.p=Rg(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),ky=function(){function e(e){this.ondata=e,uy([$g,function(){return[sy,Sy]}],this,0,(function(){var e=new Sy;onmessage=sy(e)}),7)}return e}();function My(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[$g],(function(e){return iy(Ty(e.data[0],ay(e.data[1])))}),1,n)}function Ty(e,t){return Cg(e,t)}var Ay=function(){function e(e,t){this.c=Vg(),this.l=0,this.v=1,xy.call(this,e,t)}return e.prototype.push=function(e,t){xy.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e),this.l+=e.length;var n=qg(e,this.o,this.v&&my(this.o),t&&8,!t);this.v&&(hy(n,this.o),this.v=0),t&&(dy(n,n.length-8,this.c.d()),dy(n,n.length-4,this.l)),this.ondata(n,t)},e}(),Oy=function(){function e(e,t){uy([Qg,ey,function(){return[sy,xy,Ay]}],this,by.call(this,e,t),(function(e){var t=new Ay(e.data);onmessage=sy(t)}),8)}return e}();function Ry(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[Qg,ey,function(){return[Cy]}],(function(e){return iy(Cy(e.data[0],e.data[1]))}),2,n)}function Cy(e,t){t||(t={});var n=Vg(),r=e.length;n.p(e);var i=qg(e,t,my(t),8),a=i.length;return hy(i,t),dy(i,a-8,n.d()),dy(i,a-4,r),i}var Ly=function(){function e(e){this.v=1,Sy.call(this,e)}return e.prototype.push=function(e,t){if(Sy.prototype.e.call(this,e),this.v){var n=this.p.length>3?py(this.p):4;if(n>=this.p.length&&!t)return;this.p=this.p.subarray(n),this.v=0}if(t){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Sy.prototype.c.call(this,t)},e}(),Py=function(){function e(e){this.ondata=e,uy([$g,ty,function(){return[sy,Sy,Ly]}],this,0,(function(){var e=new Ly;onmessage=sy(e)}),9)}return e}();function Iy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[$g,ty,function(){return[Ny]}],(function(e){return iy(Ny(e.data[0]))}),3,n)}function Ny(e,t){return Cg(e.subarray(py(e),-8),t||new rg(vy(e)))}var Dy=function(){function e(e,t){this.c=Wg(),this.v=1,xy.call(this,e,t)}return e.prototype.push=function(e,t){xy.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e);var n=qg(e,this.o,this.v&&2,t&&4,!t);this.v&&(gy(n,this.o),this.v=0),t&&dy(n,n.length-4,this.c.d()),this.ondata(n,t)},e}(),jy=function(){function e(e,t){uy([Qg,ny,function(){return[sy,xy,Dy]}],this,by.call(this,e,t),(function(e){var t=new Dy(e.data);onmessage=sy(t)}),10)}return e}();function Fy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[Qg,ny,function(){return[Uy]}],(function(e){return iy(Uy(e.data[0],e.data[1]))}),4,n)}function Uy(e,t){t||(t={});var n=Wg();n.p(e);var r=qg(e,t,2,4);return gy(r,t),dy(r,r.length-4,n.d()),r}var By=function(){function e(e){this.v=1,Sy.call(this,e)}return e.prototype.push=function(e,t){if(Sy.prototype.e.call(this,e),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}if(t){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Sy.prototype.c.call(this,t)},e}(),zy=function(){function e(e){this.ondata=e,uy([$g,ry,function(){return[sy,Sy,By]}],this,0,(function(){var e=new By;onmessage=sy(e)}),11)}return e}();function Hy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return oy(e,t,[$g,ry,function(){return[Gy]}],(function(e){return iy(Gy(e.data[0],ay(e.data[1])))}),5,n)}function Gy(e,t){return Cg((yy(e),e.subarray(2,-4)),t)}var Vy=function(){function e(e){this.G=Ly,this.I=Sy,this.Z=By,this.ondata=e}return e.prototype.push=function(e,t){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var n=new rg(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var r=this,i=function(){r.ondata.apply(r,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,t),this.p=null}}},e}(),Wy=function(){function e(e){this.G=Py,this.I=ky,this.Z=zy,this.ondata=e}return e.prototype.push=function(e,t){Vy.prototype.push.call(this,e,t)},e}();function qy(e,t,n){if(n||(n=t,t={}),"function"!=typeof n)throw"no callback";return 31==e[0]&&139==e[1]&&8==e[2]?Iy(e,t,n):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?My(e,t,n):Hy(e,t,n)}function Xy(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?Ny(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ty(e,t):Gy(e,t)}var Yy=function e(t,n,r,i){for(var a in t){var o=t[a],s=n+a;o instanceof rg?r[s]=[o,i]:Array.isArray(o)?r[s]=[o[0],Xg(i,o[1])]:e(o,s+"/",r,i)}},Ky="undefined"!=typeof TextEncoder&&new TextEncoder,Zy="undefined"!=typeof TextDecoder&&new TextDecoder,Jy=0;try{Zy.decode(zg,{stream:!0}),Jy=1}catch(Sx){}var $y=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return[t,Rg(e,n-1)];i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}},Qy=function(){function e(e){this.ondata=e,Jy?this.t=new TextDecoder:this.p=zg}return e.prototype.push=function(e,t){if(!this.ondata)throw"no callback";if(t=!!t,this.t){if(this.ondata(this.t.decode(e,{stream:!0}),t),t){if(this.t.decode().length)throw"invalid utf-8 data";this.t=null}}else{if(!this.p)throw"stream finished";var n=new rg(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length);var r=$y(n),i=r[0],a=r[1];if(t){if(a.length)throw"invalid utf-8 data";this.p=null}else this.p=a;this.ondata(i,t)}},e}(),eb=function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){if(!this.ondata)throw"no callback";if(this.d)throw"stream finished";this.ondata(tb(e),this.d=t||!1)},e}();function tb(e,t){if(t){for(var n=new rg(e.length),r=0;r>1)),o=0,s=function(e){a[o++]=e};for(r=0;ra.length){var u=new rg(o+8+(i-r<<1));u.set(a),a=u}var l=e.charCodeAt(r);l<128||t?s(l):l<2048?(s(192|l>>6),s(128|63&l)):l>55295&&l<57344?(l=65536+(1047552&l)|1023&e.charCodeAt(++r),s(240|l>>18),s(128|l>>12&63),s(128|l>>6&63),s(128|63&l)):(s(224|l>>12),s(128|l>>6&63),s(128|63&l))}return Rg(a,0,o)}function nb(e,t){if(t){for(var n="",r=0;r65535)throw"extra field too long";t+=r+4}return t},ub=function(e,t,n,r,i,a,o,s){var u=r.length,l=n.extra,c=s&&s.length,f=sb(l);dy(e,t,null!=o?33639248:67324752),t+=4,null!=o&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(null==a&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var d=new Date(null==n.mtime?Date.now():n.mtime),h=d.getFullYear()-1980;if(h<0||h>119)throw"date not in range 1980-2099";if(dy(e,t,h<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>>1),t+=4,null!=a&&(dy(e,t,n.crc),dy(e,t+4,a),dy(e,t+8,n.size)),dy(e,t+12,u),dy(e,t+14,f),t+=16,null!=o&&(dy(e,t,c),dy(e,t+6,n.attrs),dy(e,t+10,o),t+=14),e.set(r,t),t+=u,f)for(var p in l){var v=l[p],m=v.length;dy(e,t,+p),dy(e,t+2,m),e.set(v,t+4),t+=4+m}return c&&(e.set(s,t),t+=c),t},lb=function(e,t,n,r,i){dy(e,t,101010256),dy(e,t+8,n),dy(e,t+10,n),dy(e,t+12,r),dy(e,t+16,i)},cb=function(){function e(e){this.filename=e,this.c=Vg(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){if(!this.ondata)throw"no callback - add to ZIP archive before pushing";this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}(),fb=function(){function e(e,t){var n=this;t||(t={}),cb.call(this,e),this.d=new xy(t,(function(e,t){n.ondata(null,e,t)})),this.compression=8,this.flag=rb(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(Sx){this.ondata(Sx,null,t)}},e.prototype.push=function(e,t){cb.prototype.push.call(this,e,t)},e}(),db=function(){function e(e,t){var n=this;t||(t={}),cb.call(this,e),this.d=new wy(t,(function(e,t,r){n.ondata(e,t,r)})),this.compression=8,this.flag=rb(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){cb.prototype.push.call(this,e,t)},e}(),hb=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(2&this.d)throw"stream finished";var n=tb(e.filename),r=n.length,i=e.comment,a=i&&tb(i),o=r!=e.filename.length||a&&i.length!=a.length,s=r+sb(e.extra)+30;if(r>65535)throw"filename too long";var u=new rg(s);ub(u,0,e,n,o);var l=[u],c=function(){for(var e=0,n=l;e65535&&S("filename too long",null),E)if(m<16e4)try{S(null,Ey(h,p))}catch(Sx){S(Sx,null)}else c.push(_y(h,p,S));else S(null,h)},p=0;p65535)throw"filename too long";var g=c?Ey(u,l):u,y=g.length,b=Vg();b.p(u),r.push(Xg(l,{size:u.length,crc:b.d(),c:g,f:f,m:p,u:d!=o.length||p&&h.length!=v,o:i,compression:c})),i+=30+d+m+y,a+=76+2*(d+m)+(v||0)+y}for(var x=new rg(a+22),w=i,_=a-i,E=0;E0){var r=Math.min(this.c,e.length),i=e.subarray(0,r);if(this.c-=r,this.d?this.d.push(i,!this.c):this.k[0].push(i),e=e.subarray(r),e.length)return this.push(e,t)}else{var a=0,o=0,s=void 0,u=void 0;this.p.length?e.length?(u=new rg(this.p.length+e.length),u.set(this.p),u.set(e,this.p.length)):u=this.p:u=e;for(var l=u.length,c=this.c,f=c&&this.d,d=function(){var e,t=cy(u,o);if(67324752==t){a=1,s=o,h.d=null,h.c=0;var r=ly(u,o+6),i=ly(u,o+8),f=2048&r,d=8&r,p=ly(u,o+26),v=ly(u,o+28);if(l>o+30+p+v){var m=[];h.k.unshift(m),a=2;var g,y=cy(u,o+18),b=cy(u,o+22),x=nb(u.subarray(o+30,o+=30+p),!f);4294967295==y?(e=d?[-2]:ob(u,o),y=e[0],b=e[1]):d&&(y=-1),o+=v,h.c=y;var w={name:x,compression:i,start:function(){if(!w.ondata)throw"no callback";if(y){var e=n.o[i];if(!e)throw"unknown compression type "+i;g=y<0?new e(x):new e(x,y,b),g.ondata=function(e,t,n){w.ondata(e,t,n)};for(var t=0,r=m;t=0&&(w.size=y,w.originalSize=b),h.onfile(w)}return"break"}if(c){if(134695760==t)return s=o+=12+(-2==c&&8),a=3,h.c=0,"break";if(33639248==t)return s=o-=4,a=3,h.c=0,"break"}},h=this;o65558)return void t("invalid zip file",null);var o=ly(e,a+8);o||t(null,{});var s=o,u=cy(e,a+16),l=4294967295==u;if(l){if(a=cy(e,a-12),101075792!=cy(e,a))return void t("invalid zip file",null);s=o=cy(e,a+32),u=cy(e,a+48)}for(var c=function(s){var c=ab(e,u,l),f=c[0],d=c[1],h=c[2],p=c[3],v=c[4],m=c[5],g=ib(e,m);u=v;var y=function(e,n){e?(r(),t(e,null)):(i[p]=n,--o||t(null,i))};if(f)if(8==f){var b=e.subarray(g,g+d);if(d<32e4)try{y(null,Ty(b,new rg(h)))}catch(a){y(a,null)}else n.push(My(b,{size:h},y))}else y("unknown compression type "+f,null);else y(null,Rg(e,g,g+d))},f=0;f65558)throw"invalid zip file";var r=ly(e,n+8);if(!r)return{};var i=cy(e,n+16),a=4294967295==i;if(a){if(n=cy(e,n-12),101075792!=cy(e,n))throw"invalid zip file";r=cy(e,n+32),i=cy(e,n+48)}for(var o=0;o=n[r])return r-1;if(t<=n[e])return e;var i=e,a=r,o=Math.floor((i+a)/2);while(t=n[o+1])t=k&&(E[_][0]=E[w][0]/l[A+1][T],M=E[_][0]*l[T][A]);for(var O=T>=-1?1:-T,R=x-1<=A?k-1:n-x,C=O;C<=R;++C)E[_][C]=(E[w][C]-E[w][C-1])/l[A+1][T+C],M+=E[_][C]*l[T+C][A];x<=A&&(E[_][k]=-E[w][k-1]/l[A+1][x],M+=E[_][k]*l[x][A]),s[k][x]=M;var L=w;w=_,_=L}}for(var P=n,I=1;I<=r;++I){for(var N=0;N<=n;++N)s[I][N]*=P;P*=n-I}return s}function Mb(e,t,n,r,i){for(var a=i1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.knots[this.startKnot]+e*(this.knots[this.endKnot]-this.knots[this.startKnot]),i=Sb(this.degree,this.knots,this.controlPoints,r);return 1!==i.w&&i.divideScalar(i.w),n.set(i.x,i.y,i.z)}},{key:"getTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new xr,n=t,r=this.knots[0]+e*(this.knots[this.knots.length-1]-this.knots[0]),i=Ob(this.degree,this.knots,this.controlPoints,r,1);return n.copy(i[1]).normalize(),n}}]),n}(Dd),Ib=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=""===i.path?$p.extractUrlBase(e):i.path,o=new Ap(this.manager);o.setPath(i.path),o.setResponseType("arraybuffer"),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(e,(function(n){try{t(i.parse(n,a))}catch(Sx){r?r(Sx):console.error(Sx),i.manager.itemError(e)}}),n,r)}},{key:"parse",value:function(e,t){if(Hb(e))Rb=(new Ub).parse(e);else{var n=Qb(e);if(!Gb(n))throw new Error("THREE.FBXLoader: Unknown format.");if(Vb(n)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+Vb(n));Rb=(new Fb).parse(n)}var r=new Lp(this.manager).setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin);return new Nb(r,this.manager).parse(Rb)}}]),n}(Mp),Nb=function(){function e(t,n){M(this,e),this.textureLoader=t,this.manager=n}return A(e,[{key:"parse",value:function(){Cb=this.parseConnections();var e=this.parseImages(),t=this.parseTextures(e),n=this.parseMaterials(t),r=this.parseDeformers(),i=(new Db).parse(r);return this.parseScene(r,i,n),Lb}},{key:"parseConnections",value:function(){var e=new Map;if("Connections"in Rb){var t=Rb.Connections.connections;t.forEach((function(t){var n=t[0],r=t[1],i=t[2];e.has(n)||e.set(n,{parents:[],children:[]});var a={ID:r,relationship:i};e.get(n).parents.push(a),e.has(r)||e.set(r,{parents:[],children:[]});var o={ID:n,relationship:i};e.get(r).children.push(o)}))}return e}},{key:"parseImages",value:function(){var e={},t={};if("Video"in Rb.Objects){var n=Rb.Objects.Video;for(var r in n){var i=n[r],a=parseInt(r);if(e[a]=i.RelativeFilename||i.Filename,"Content"in i){var o=i.Content instanceof ArrayBuffer&&i.Content.byteLength>0,s="string"===typeof i.Content&&""!==i.Content;if(o||s){var u=this.parseImage(n[r]);t[i.RelativeFilename||i.Filename]=u}}}}for(var l in e){var c=e[l];void 0!==t[c]?e[l]=t[c]:e[l]=e[l].split("\\").pop()}return e}},{key:"parseImage",value:function(e){var t,n=e.Content,r=e.RelativeFilename||e.Filename,i=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(i){case"bmp":t="image/bmp";break;case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"tif":t="image/tiff";break;case"tga":null===this.manager.getHandler(".tga")&&console.warn("FBXLoader: TGA loader not found, skipping ",r),t="image/tga";break;default:return void console.warn('FBXLoader: Image type "'+i+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var a=new Uint8Array(n);return window.URL.createObjectURL(new Blob([a],{type:t}))}},{key:"parseTextures",value:function(e){var t=new Map;if("Texture"in Rb.Objects){var n=Rb.Objects.Texture;for(var r in n){var i=this.parseTexture(n[r],e);t.set(parseInt(r),i)}}return t}},{key:"parseTexture",value:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,i=e.WrapModeV,a=void 0!==r?r.value:0,o=void 0!==i?i.value:0;if(n.wrapS=0===a?Ie:Ne,n.wrapT=0===o?Ie:Ne,"Scaling"in e){var s=e.Scaling.value;n.repeat.x=s[0],n.repeat.y=s[1]}return n}},{key:"loadTexture",value:function(e,t){var n,r,i=this.textureLoader.path,a=Cb.get(e.id).children;void 0!==a&&a.length>0&&void 0!==t[a[0].ID]&&(n=t[a[0].ID],0!==n.indexOf("blob:")&&0!==n.indexOf("data:")||this.textureLoader.setPath(void 0));var o=e.FileName.slice(-3).toLowerCase();if("tga"===o){var s=this.manager.getHandler(".tga");null===s?(console.warn("FBXLoader: TGA loader not found, creating placeholder texture for",e.RelativeFilename),r=new hr):(s.setPath(this.textureLoader.path),r=s.load(n))}else"psd"===o?(console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for",e.RelativeFilename),r=new hr):r=this.textureLoader.load(n);return this.textureLoader.setPath(i),r}},{key:"parseMaterials",value:function(e){var t=new Map;if("Material"in Rb.Objects){var n=Rb.Objects.Material;for(var r in n){var i=this.parseMaterial(n[r],e);null!==i&&t.set(parseInt(r),i)}}return t}},{key:"parseMaterial",value:function(e,t){var n=e.id,r=e.attrName,i=e.ShadingModel;if("object"===typeof i&&(i=i.value),!Cb.has(n))return null;var a,o=this.parseParameters(e,t,n);switch(i.toLowerCase()){case"phong":a=new tp;break;case"lambert":a=new ip;break;default:console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',i),a=new tp;break}return a.setValues(o),a.name=r,a}},{key:"parseParameters",value:function(e,t,n){var r={};e.BumpFactor&&(r.bumpScale=e.BumpFactor.value),e.Diffuse?r.color=(new Hi).fromArray(e.Diffuse.value):!e.DiffuseColor||"Color"!==e.DiffuseColor.type&&"ColorRGB"!==e.DiffuseColor.type||(r.color=(new Hi).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(r.displacementScale=e.DisplacementFactor.value),e.Emissive?r.emissive=(new Hi).fromArray(e.Emissive.value):!e.EmissiveColor||"Color"!==e.EmissiveColor.type&&"ColorRGB"!==e.EmissiveColor.type||(r.emissive=(new Hi).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(r.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(r.opacity=parseFloat(e.Opacity.value)),r.opacity<1&&(r.transparent=!0),e.ReflectionFactor&&(r.reflectivity=e.ReflectionFactor.value),e.Shininess&&(r.shininess=e.Shininess.value),e.Specular?r.specular=(new Hi).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(r.specular=(new Hi).fromArray(e.SpecularColor.value));var i=this;return Cb.get(n).children.forEach((function(e){var n=e.relationship;switch(n){case"Bump":r.bumpMap=i.getTexture(t,e.ID);break;case"Maya|TEX_ao_map":r.aoMap=i.getTexture(t,e.ID);break;case"DiffuseColor":case"Maya|TEX_color_map":r.map=i.getTexture(t,e.ID),void 0!==r.map&&(r.map.encoding=gn);break;case"DisplacementColor":r.displacementMap=i.getTexture(t,e.ID);break;case"EmissiveColor":r.emissiveMap=i.getTexture(t,e.ID),void 0!==r.emissiveMap&&(r.emissiveMap.encoding=gn);break;case"NormalMap":case"Maya|TEX_normal_map":r.normalMap=i.getTexture(t,e.ID);break;case"ReflectionColor":r.envMap=i.getTexture(t,e.ID),void 0!==r.envMap&&(r.envMap.mapping=Re,r.envMap.encoding=gn);break;case"SpecularColor":r.specularMap=i.getTexture(t,e.ID),void 0!==r.specularMap&&(r.specularMap.encoding=gn);break;case"TransparentColor":case"TransparencyFactor":r.alphaMap=i.getTexture(t,e.ID),r.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",n);break}})),r}},{key:"getTexture",value:function(e,t){return"LayeredTexture"in Rb.Objects&&t in Rb.Objects.LayeredTexture&&(console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),t=Cb.get(t).children[0].ID),e.get(t)}},{key:"parseDeformers",value:function(){var e={},t={};if("Deformer"in Rb.Objects){var n=Rb.Objects.Deformer;for(var r in n){var i=n[r],a=Cb.get(parseInt(r));if("Skin"===i.attrType){var o=this.parseSkeleton(a,n);o.ID=r,a.parents.length>1&&console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),o.geometryID=a.parents[0].ID,e[r]=o}else if("BlendShape"===i.attrType){var s={id:r};s.rawTargets=this.parseMorphTargets(a,n),s.id=r,a.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),t[r]=s}}}return{skeletons:e,morphTargets:t}}},{key:"parseSkeleton",value:function(e,t){var n=[];return e.children.forEach((function(e){var r=t[e.ID];if("Cluster"===r.attrType){var i={ID:e.ID,indices:[],weights:[],transformLink:(new Jr).fromArray(r.TransformLink.a)};"Indexes"in r&&(i.indices=r.Indexes.a,i.weights=r.Weights.a),n.push(i)}})),{rawBones:n,bones:[]}}},{key:"parseMorphTargets",value:function(e,t){for(var n=[],r=0;r1?a=o:o.length>0?a=o[0]:(a=new tp({color:13421772}),o.push(a)),"color"in i.attributes&&o.forEach((function(e){e.vertexColors=!0})),i.FBX_Deformer?(r=new rd(i,a),r.normalizeSkinWeights()):r=new _a(i,a),r}},{key:"createCurve",value:function(e,t){var n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),r=new vd({color:3342591,linewidth:1});return new wd(n,r)}},{key:"getTransformData",value:function(e,t){var n={};"InheritType"in t&&(n.inheritType=parseInt(t.InheritType.value)),n.eulerOrder="RotationOrder"in t?Jb(t.RotationOrder.value):"ZYX","Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value),"ScalingOffset"in t&&(n.scalingOffset=t.ScalingOffset.value),"ScalingPivot"in t&&(n.scalingPivot=t.ScalingPivot.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"RotationPivot"in t&&(n.rotationPivot=t.RotationPivot.value),e.userData.transformData=n}},{key:"setLookAtProperties",value:function(e,t){if("LookAtProperty"in t){var n=Cb.get(e.ID).children;n.forEach((function(t){if("LookAtProperty"===t.relationship){var n=Rb.Objects.Model[t.ID];if("Lcl_Translation"in n){var r=n.Lcl_Translation.value;void 0!==e.target?(e.target.position.fromArray(r),Lb.add(e.target)):e.lookAt((new xr).fromArray(r))}}}))}}},{key:"bindSkeleton",value:function(e,t,n){var r=this.parsePoseNodes(),i=function(i){var a=e[i],o=Cb.get(parseInt(a.ID)).parents;o.forEach((function(e){if(t.has(e.ID)){var i=e.ID,o=Cb.get(i);o.parents.forEach((function(e){if(n.has(e.ID)){var t=n.get(e.ID);t.bind(new ud(a.bones),r[e.ID])}}))}}))};for(var a in e)i(a)}},{key:"parsePoseNodes",value:function(){var e={};if("Pose"in Rb.Objects){var t=Rb.Objects.Pose;for(var n in t)if("BindPose"===t[n].attrType&&t[n].NbPoseNodes>0){var r=t[n].PoseNode;Array.isArray(r)?r.forEach((function(t){e[t.Node]=(new Jr).fromArray(t.Matrix.a)})):e[r.Node]=(new Jr).fromArray(r.Matrix.a)}}return e}},{key:"createAmbientLight",value:function(){if("GlobalSettings"in Rb&&"AmbientColor"in Rb.GlobalSettings){var e=Rb.GlobalSettings.AmbientColor.value,t=e[0],n=e[1],r=e[2];if(0!==t||0!==n||0!==r){var i=new Hi(t,n,r);Lb.add(new Yp(i,1))}}}}]),e}(),Db=function(){function e(){M(this,e)}return A(e,[{key:"parse",value:function(e){var t=new Map;if("Geometry"in Rb.Objects){var n=Rb.Objects.Geometry;for(var r in n){var i=Cb.get(parseInt(r)),a=this.parseGeometry(i,n[r],e);t.set(parseInt(r),a)}}return t}},{key:"parseGeometry",value:function(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}}},{key:"parseMeshGeometry",value:function(e,t,n){var r=n.skeletons,i=[],a=e.parents.map((function(e){return Rb.Objects.Model[e.ID]}));if(0!==a.length){var o=e.children.reduce((function(e,t){return void 0!==r[t.ID]&&(e=r[t.ID]),e}),null);e.children.forEach((function(e){void 0!==n.morphTargets[e.ID]&&i.push(n.morphTargets[e.ID])}));var s=a[0],u={};"RotationOrder"in s&&(u.eulerOrder=Jb(s.RotationOrder.value)),"InheritType"in s&&(u.inheritType=parseInt(s.InheritType.value)),"GeometricTranslation"in s&&(u.translation=s.GeometricTranslation.value),"GeometricRotation"in s&&(u.rotation=s.GeometricRotation.value),"GeometricScaling"in s&&(u.scale=s.GeometricScaling.value);var l=Zb(u);return this.genGeometry(t,o,i,l)}}},{key:"genGeometry",value:function(e,t,n,r){var i=new ia;e.attrName&&(i.name=e.attrName);var a=this.parseGeoNode(e,t),o=this.genBuffers(a),s=new Zi(o.vertex,3);if(s.applyMatrix4(r),i.setAttribute("position",s),o.colors.length>0&&i.setAttribute("color",new Zi(o.colors,3)),t&&(i.setAttribute("skinIndex",new Xi(o.weightsIndices,4)),i.setAttribute("skinWeight",new Zi(o.vertexWeights,4)),i.FBX_Deformer=t),o.normal.length>0){var u=(new or).getNormalMatrix(r),l=new Zi(o.normal,3);l.applyNormalMatrix(u),i.setAttribute("normal",l)}if(o.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),i.setAttribute(n,new Zi(o.uvs[t],2))})),a.material&&"AllSame"!==a.material.mappingType){var c=o.materialIndex[0],f=0;if(o.materialIndex.forEach((function(e,t){e!==c&&(i.addGroup(f,t-f,c),c=e,f=t)})),i.groups.length>0){var d=i.groups[i.groups.length-1],h=d.start+d.count;h!==o.materialIndex.length&&i.addGroup(h,o.materialIndex.length-h,c)}0===i.groups.length&&i.addGroup(0,o.materialIndex.length,o.materialIndex[0])}return this.addMorphTargets(i,e,n,r),i}},{key:"parseGeoNode",value:function(e,t){var n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];var r=0;while(e.LayerElementUV[r])e.LayerElementUV[r].UV&&n.uv.push(this.parseUVs(e.LayerElementUV[r])),r++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,i){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[i]})}))}))),n}},{key:"genBuffers",value:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,i=!1,a=[],o=[],s=[],u=[],l=[],c=[],f=this;return e.vertexIndices.forEach((function(d,h){var p,v=!1;d<0&&(d^=-1,v=!0);var m=[],g=[];if(a.push(3*d,3*d+1,3*d+2),e.color){var y=Xb(h,n,d,e.color);s.push(y[0],y[1],y[2])}if(e.skeleton){if(void 0!==e.weightTable[d]&&e.weightTable[d].forEach((function(e){g.push(e.weight),m.push(e.id)})),g.length>4){i||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),i=!0);var b=[0,0,0,0],x=[0,0,0,0];g.forEach((function(e,t){var n=e,r=m[t];x.forEach((function(e,t,i){if(n>e){i[t]=n,n=e;var a=b[t];b[t]=r,r=a}}))})),m=b,g=x}while(g.length<4)g.push(0),m.push(0);for(var w=0;w<4;++w)l.push(g[w]),c.push(m[w])}if(e.normal){var _=Xb(h,n,d,e.normal);o.push(_[0],_[1],_[2])}e.material&&"AllSame"!==e.material.mappingType&&(p=Xb(h,n,d,e.material)[0]),e.uv&&e.uv.forEach((function(e,t){var r=Xb(h,n,d,e);void 0===u[t]&&(u[t]=[]),u[t].push(r[0]),u[t].push(r[1])})),r++,v&&(f.genFace(t,e,a,p,o,s,u,l,c,r),n++,r=0,a=[],o=[],s=[],u=[],l=[],c=[])})),t}},{key:"genFace",value:function(e,t,n,r,i,a,o,s,u,l){for(var c=function(l){e.vertex.push(t.vertexPositions[n[0]]),e.vertex.push(t.vertexPositions[n[1]]),e.vertex.push(t.vertexPositions[n[2]]),e.vertex.push(t.vertexPositions[n[3*(l-1)]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+1]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+2]]),e.vertex.push(t.vertexPositions[n[3*l]]),e.vertex.push(t.vertexPositions[n[3*l+1]]),e.vertex.push(t.vertexPositions[n[3*l+2]]),t.skeleton&&(e.vertexWeights.push(s[0]),e.vertexWeights.push(s[1]),e.vertexWeights.push(s[2]),e.vertexWeights.push(s[3]),e.vertexWeights.push(s[4*(l-1)]),e.vertexWeights.push(s[4*(l-1)+1]),e.vertexWeights.push(s[4*(l-1)+2]),e.vertexWeights.push(s[4*(l-1)+3]),e.vertexWeights.push(s[4*l]),e.vertexWeights.push(s[4*l+1]),e.vertexWeights.push(s[4*l+2]),e.vertexWeights.push(s[4*l+3]),e.weightsIndices.push(u[0]),e.weightsIndices.push(u[1]),e.weightsIndices.push(u[2]),e.weightsIndices.push(u[3]),e.weightsIndices.push(u[4*(l-1)]),e.weightsIndices.push(u[4*(l-1)+1]),e.weightsIndices.push(u[4*(l-1)+2]),e.weightsIndices.push(u[4*(l-1)+3]),e.weightsIndices.push(u[4*l]),e.weightsIndices.push(u[4*l+1]),e.weightsIndices.push(u[4*l+2]),e.weightsIndices.push(u[4*l+3])),t.color&&(e.colors.push(a[0]),e.colors.push(a[1]),e.colors.push(a[2]),e.colors.push(a[3*(l-1)]),e.colors.push(a[3*(l-1)+1]),e.colors.push(a[3*(l-1)+2]),e.colors.push(a[3*l]),e.colors.push(a[3*l+1]),e.colors.push(a[3*l+2])),t.material&&"AllSame"!==t.material.mappingType&&(e.materialIndex.push(r),e.materialIndex.push(r),e.materialIndex.push(r)),t.normal&&(e.normal.push(i[0]),e.normal.push(i[1]),e.normal.push(i[2]),e.normal.push(i[3*(l-1)]),e.normal.push(i[3*(l-1)+1]),e.normal.push(i[3*(l-1)+2]),e.normal.push(i[3*l]),e.normal.push(i[3*l+1]),e.normal.push(i[3*l+2])),t.uv&&t.uv.forEach((function(t,n){void 0===e.uvs[n]&&(e.uvs[n]=[]),e.uvs[n].push(o[n][0]),e.uvs[n].push(o[n][1]),e.uvs[n].push(o[n][2*(l-1)]),e.uvs[n].push(o[n][2*(l-1)+1]),e.uvs[n].push(o[n][2*l]),e.uvs[n].push(o[n][2*l+1])}))},f=2;f1&&console.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");var a=e.get(i[0].ID);n[r]={name:t[r].attrName,layer:a}}return n}},{key:"addClip",value:function(e){var t=[],n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new xp(e.name,-1,t)}},{key:"generateTracks",value:function(e){var t=[],n=new xr,r=new br,i=new xr;if(e.transform&&e.transform.decompose(n,r,i),n=n.toArray(),r=(new si).setFromQuaternion(r,e.eulerOrder).toArray(),i=i.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var a=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==a&&t.push(a)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){var o=this.generateRotationTrack(e.modelName,e.R.curves,r,e.preRotation,e.postRotation,e.eulerOrder);void 0!==o&&t.push(o)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){var s=this.generateVectorTrack(e.modelName,e.S.curves,i,"scale");void 0!==s&&t.push(s)}if(void 0!==e.DeformPercent){var u=this.generateMorphTrack(e);void 0!==u&&t.push(u)}return t}},{key:"generateVectorTrack",value:function(e,t,n,r){var i=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(i,t,n);return new bp(e+"."+r,i,a)}},{key:"generateRotationTrack",value:function(e,t,n,r,i,a){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(ir.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(ir.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(ir.degToRad));var o=this.getTimesForAllAxes(t),s=this.getKeyframeTrackValues(o,t,n);void 0!==r&&(r=r.map(ir.degToRad),r.push(a),r=(new si).fromArray(r),r=(new br).setFromEuler(r)),void 0!==i&&(i=i.map(ir.degToRad),i.push(a),i=(new si).fromArray(i),i=(new br).setFromEuler(i).invert());for(var u=new br,l=new si,c=[],f=0;f1){for(var n=1,r=t[0],i=1;i=180){var a=i/180,o=r/a,s=n+o,u=e.times[t-1],l=e.times[t]-u,c=l/a,f=u+c,d=[],h=[];while(f1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}}},{key:"parseNodeProperty",value:function(e,t,n){var r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),i=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===i&&(i=n.replace(/"/g,"").replace(/,$/,"").trim());var a=this.getCurrentNode(),o=a.name;if("Properties70"!==o){if("C"===r){var s=i.split(",").slice(1),u=parseInt(s[0]),l=parseInt(s[1]),c=i.split(",").slice(3);c=c.map((function(e){return e.trim().replace(/^"/,"")})),r="connections",i=[u,l],ex(i,c),void 0===a[r]&&(a[r]=[])}"Node"===r&&(a.id=i),r in a&&Array.isArray(a[r])?a[r].push(i):"a"!==r?a[r]=i:a.a=i,this.setCurrentProp(a,r),"a"===r&&","!==i.slice(-1)&&(a.a=$b(i))}else this.parseNodeSpecialProperty(e,r,i)}},{key:"parseNodePropertyContinued",value:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=$b(t.a))}},{key:"parseNodeSpecialProperty",value:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),i=r[0],a=r[1],o=r[2],s=r[3],u=r[4];switch(a){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":u=parseFloat(u);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":u=$b(u);break}this.getPrevNode()[i]={type:a,type2:o,flag:s,value:u},this.setCurrentProp(this.getPrevNode(),i)}}]),e}(),Ub=function(){function e(){M(this,e)}return A(e,[{key:"parse",value:function(e){var t=new Bb(e);t.skip(23);var n=t.getUint32();if(n<6400)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+n);var r=new zb;while(!this.endOfContent(t)){var i=this.parseNode(t,n);null!==i&&r.add(i.name,i)}return r}},{key:"endOfContent",value:function(e){return e.size()%16===0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()}},{key:"parseNode",value:function(e,t){var n={},r=t>=7500?e.getUint64():e.getUint32(),i=t>=7500?e.getUint64():e.getUint32();t>=7500?e.getUint64():e.getUint32();var a=e.getUint8(),o=e.getString(a);if(0===r)return null;for(var s=[],u=0;u0?s[0]:"",c=s.length>1?s[1]:"",f=s.length>2?s[2]:"";n.singleProperty=1===i&&e.getOffset()===r;while(r>e.getOffset()){var d=this.parseNode(e,t);null!==d&&this.parseSubNode(o,n,d)}return n.propertyList=s,"number"===typeof l&&(n.id=l),""!==c&&(n.attrName=c),""!==f&&(n.attrType=f),""!==o&&(n.name=o),n}},{key:"parseSubNode",value:function(e,t,n){if(!0===n.singleProperty){var r=n.propertyList[0];Array.isArray(r)?(t[n.name]=n,n.a=r):t[n.name]=r}else if("Connections"===e&&"C"===n.name){var i=[];n.propertyList.forEach((function(e,t){0!==t&&i.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(i)}else if("Properties70"===n.name){var a=Object.keys(n);a.forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var o,s=n.propertyList[0],u=n.propertyList[1],l=n.propertyList[2],c=n.propertyList[3];0===s.indexOf("Lcl ")&&(s=s.replace("Lcl ","Lcl_")),0===u.indexOf("Lcl ")&&(u=u.replace("Lcl ","Lcl_")),o="Color"===u||"ColorRGB"===u||"Vector"===u||"Vector3D"===u||0===u.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[s]={type:u,type2:l,flag:c,value:o}}else void 0===t[n.name]?"number"===typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)}},{key:"parseProperty",value:function(e){var t,n=e.getString(1);switch(n){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":return t=e.getUint32(),e.getArrayBuffer(t);case"S":return t=e.getUint32(),e.getString(t);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":var i=e.getUint32(),a=e.getUint32(),o=e.getUint32();if(0===a)switch(n){case"b":case"c":return e.getBooleanArray(i);case"d":return e.getFloat64Array(i);case"f":return e.getFloat32Array(i);case"i":return e.getInt32Array(i);case"l":return e.getInt64Array(i)}"undefined"===typeof r&&console.error("THREE.FBXLoader: External library fflate.min.js required.");var s=Gy(new Uint8Array(e.getArrayBuffer(o))),u=new Bb(s.buffer);switch(n){case"b":case"c":return u.getBooleanArray(i);case"d":return u.getFloat64Array(i);case"f":return u.getFloat32Array(i);case"i":return u.getInt32Array(i);case"l":return u.getInt64Array(i)}default:throw new Error("THREE.FBXLoader: Unknown property type "+n)}}}]),e}(),Bb=function(){function e(t,n){M(this,e),this.dv=new DataView(t),this.offset=0,this.littleEndian=void 0===n||n}return A(e,[{key:"getOffset",value:function(){return this.offset}},{key:"size",value:function(){return this.dv.buffer.byteLength}},{key:"skip",value:function(e){this.offset+=e}},{key:"getBoolean",value:function(){return 1===(1&this.getUint8())}},{key:"getBooleanArray",value:function(e){for(var t=[],n=0;n=0&&(t=t.slice(0,r)),$p.decodeText(new Uint8Array(t))}}]),e}(),zb=function(){function e(){M(this,e)}return A(e,[{key:"add",value:function(e,t){this[e]=t}}]),e}();function Hb(e){var t="Kaydara FBX Binary \0";return e.byteLength>=t.length&&t===Qb(e,0,t.length)}function Gb(e){var t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"],n=0;function r(t){var r=e[t-1];return e=e.slice(n+t),n++,r}for(var i=0;i({getSnapshot:()=>{var e;return d(),null===(e=f.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e,t,r=new Yp(13421772,.4);null===(e=l.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(t=l.current)||void 0===t||t.add(i);var a=new Ib;a.load(n,(function(e){u(e),c()}))}),[]),a.a.createElement("canvas",{ref:o,style:{width:"100%",height:"100%"}})}var ix=Object(i["forwardRef"])(rx),ax=/^[og]\s*(.+)?/,ox=/^mtllib /,sx=/^usemtl /,ux=/^usemap /,lx=new xr,cx=new xr,fx=new xr,dx=new xr,hx=new xr;function px(){var e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&"function"===typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var r={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"===typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"===typeof n.clone){var r=n.clone(0);r.inherited=!0,this.object.materials.push(r)}this.objects.push(this.object)},finalize:function(){this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var r=this.vertices,i=this.object.geometry.vertices;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){var r=this.normals,i=this.object.geometry.normals;i.push(r[e+0],r[e+1],r[e+2]),i.push(r[t+0],r[t+1],r[t+2]),i.push(r[n+0],r[n+1],r[n+2])},addFaceNormal:function(e,t,n){var r=this.vertices,i=this.object.geometry.normals;lx.fromArray(r,e),cx.fromArray(r,t),fx.fromArray(r,n),hx.subVectors(fx,cx),dx.subVectors(lx,cx),hx.cross(dx),hx.normalize(),i.push(hx.x,hx.y,hx.z),i.push(hx.x,hx.y,hx.z),i.push(hx.x,hx.y,hx.z)},addColor:function(e,t,n){var r=this.colors,i=this.object.geometry.colors;void 0!==r[e]&&i.push(r[e+0],r[e+1],r[e+2]),void 0!==r[t]&&i.push(r[t+0],r[t+1],r[t+2]),void 0!==r[n]&&i.push(r[n+0],r[n+1],r[n+2])},addUV:function(e,t,n){var r=this.uvs,i=this.object.geometry.uvs;i.push(r[e+0],r[e+1]),i.push(r[t+0],r[t+1]),i.push(r[n+0],r[n+1])},addDefaultUV:function(){var e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){var t=this.uvs,n=this.object.geometry.uvs;n.push(t[e+0],t[e+1])},addFace:function(e,t,n,r,i,a,o,s,u){var l=this.vertices.length,c=this.parseVertexIndex(e,l),f=this.parseVertexIndex(t,l),d=this.parseVertexIndex(n,l);if(this.addVertex(c,f,d),this.addColor(c,f,d),void 0!==o&&""!==o){var h=this.normals.length;c=this.parseNormalIndex(o,h),f=this.parseNormalIndex(s,h),d=this.parseNormalIndex(u,h),this.addNormal(c,f,d)}else this.addFaceNormal(c,f,d);if(void 0!==r&&""!==r){var p=this.uvs.length;c=this.parseUVIndex(r,p),f=this.parseUVIndex(i,p),d=this.parseUVIndex(a,p),this.addUV(c,f,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";for(var t=this.vertices.length,n=0,r=e.length;n=7?t.colors.push(parseFloat(c[4]),parseFloat(c[5]),parseFloat(c[6])):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(c[1]),parseFloat(c[2]),parseFloat(c[3]));break;case"vt":t.uvs.push(parseFloat(c[1]),parseFloat(c[2]));break}}else if("f"===i){for(var f=r.substr(1).trim(),d=f.split(/\s+/),h=[],p=0,v=d.length;p0){var g=m.split("/");h.push(g)}}for(var y=h[0],b=1,x=h.length-1;b1){var L=o[1].trim().toLowerCase();t.object.smooth="0"!==L&&"off"!==L}else t.object.smooth=!0;var P=t.object.currentMaterial();P&&(P.smooth=t.object.smooth)}else{if("\0"===r)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+r+'"')}t.finalize();var I=new wf;I.materialLibraries=[].concat(t.materialLibraries);var N=!(1===t.objects.length&&0===t.objects[0].geometry.vertices.length);if(!0===N)for(var D=0,j=t.objects.length;D0&&V.setAttribute("normal",new Zi(U.normals,3)),U.colors.length>0&&(G=!0,V.setAttribute("color",new Zi(U.colors,3))),!0===U.hasUVIndices&&V.setAttribute("uv",new Zi(U.uvs,2));for(var W=[],q=0,X=B.length;q1){for(var ee=0,te=B.length;ee0){var re=new Md({size:1,sizeAttenuation:!1}),ie=new ia;ie.setAttribute("position",new Zi(t.vertices,3)),t.colors.length>0&&void 0!==t.colors[0]&&(ie.setAttribute("color",new Zi(t.colors,3)),re.vertexColors=!0);var ae=new Cd(ie,re);I.add(ae)}return I}}]),n}(Mp);function mx(e,t){var n=e.src,r=e.backgroundColor,o=Object(i["useRef"])(null),s=qm(o,r),u=s.add2Scene,l=s.scene,c=s.animate,f=s.render,d=s.renderer;return Object(i["useImperativeHandle"])(t,(()=>({getSnapshot:()=>{var e;return f(),null===(e=d.current)||void 0===e?void 0:e.domElement.toDataURL("image/png",1)}}))),Object(i["useEffect"])((()=>{var e,t,r=new Yp(13421772,.4);null===(e=l.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(t=l.current)||void 0===t||t.add(i);var a=new vx;a.load(n,(function(e){u(e),c()}))}),[]),a.a.createElement("canvas",{ref:o,style:{width:"100%",height:"100%"}})}var gx=Object(i["forwardRef"])(mx),yx=function(e){w(n,e);var t=E(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.propertyNameMapping={},r}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=new Ap(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(function(n){try{t(i.parse(n))}catch(Sx){r?r(Sx):console.error(Sx),i.manager.itemError(e)}}),n,r)}},{key:"setPropertyNameMapping",value:function(e){this.propertyNameMapping=e}},{key:"parse",value:function(e){function t(e){var t=/ply([\s\S]*)end_header\r?\n/,n="",r=0,i=t.exec(e);null!==i&&(n=i[1],r=new Blob([i[0]]).size);var a,o={comments:[],elements:[],headerLength:r,objInfo:""},s=n.split("\n");function u(e,t){var n={type:e[0]};return"list"===n.type?(n.name=e[3],n.countType=e[1],n.itemType=e[2]):n.name=e[1],n.name in t&&(n.name=t[n.name]),n}for(var l=0;l=t.elements[c].count&&(c++,f=0);var p=r(t.elements[c].properties,h);o(i,t.elements[c].name,p),f++}}return a(i)}function a(e){var t=new ia;return e.indices.length>0&&t.setIndex(e.indices),t.setAttribute("position",new Zi(e.vertices,3)),e.normals.length>0&&t.setAttribute("normal",new Zi(e.normals,3)),e.uvs.length>0&&t.setAttribute("uv",new Zi(e.uvs,2)),e.colors.length>0&&t.setAttribute("color",new Zi(e.colors,3)),e.faceVertexUvs.length>0&&(t=t.toNonIndexed(),t.setAttribute("uv",new Zi(e.faceVertexUvs,2))),t.computeBoundingSphere(),t}function o(e,t,n){function r(e){for(var t=0,r=e.length;t{var e,n,r=new Yp(13421772,.4);null===(e=u.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(n=u.current)||void 0===n||n.add(i);var a=new yx;a.load(t,(function(e){e.computeVertexNormals();var t=new Qh,n=new _a(e,t);s(n),l()}))}),[]),a.a.createElement("canvas",{ref:r,style:{width:"100%",height:"100%"}})}var xx=bx,wx=function(e){w(n,e);var t=E(n);function n(e){return M(this,n),t.call(this,e)}return A(n,[{key:"load",value:function(e,t,n,r){var i=this,a=new Ap(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(function(n){try{t(i.parse(n))}catch(Sx){r?r(Sx):console.error(Sx),i.manager.itemError(e)}}),n,r)}},{key:"parse",value:function(e){function t(e){var t=new DataView(e),r=50,i=t.getUint32(80,!0),a=84+i*r;if(a===t.byteLength)return!0;for(var o=[115,111,108,105,100],s=0;s<5;s++)if(n(o,t,s))return!1;return!0}function n(e,t,n){for(var r=0,i=e.length;r>5&31)/31,r=(E>>10&31)/31):(t=a,n=o,r=s)}for(var S=1;S<=3;S++){var k=b+12*S,M=3*y*3+3*(S-1);m[M]=l.getFloat32(k,!0),m[M+1]=l.getFloat32(k+4,!0),m[M+2]=l.getFloat32(k+8,!0),g[M]=x,g[M+1]=w,g[M+2]=_,f&&(i[M]=t,i[M+1]=n,i[M+2]=r)}}return v.setAttribute("position",new qi(m,3)),v.setAttribute("normal",new qi(g,3)),f&&(v.setAttribute("color",new qi(i,3)),v.hasColors=!0,v.alpha=u),v}function i(e){var t,n=new ia,r=/solid([\s\S]*?)endsolid/g,i=/facet([\s\S]*?)endfacet/g,a=0,o=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,s=new RegExp("vertex"+o+o+o,"g"),u=new RegExp("normal"+o+o+o,"g"),l=[],c=[],f=new xr,d=0,h=0,p=0;while(null!==(t=r.exec(e))){h=p;var v=t[0];while(null!==(t=i.exec(v))){var m=0,g=0,y=t[0];while(null!==(t=u.exec(y)))f.x=parseFloat(t[1]),f.y=parseFloat(t[2]),f.z=parseFloat(t[3]),g++;while(null!==(t=s.exec(y)))l.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3])),c.push(f.x,f.y,f.z),m++,p++;1!==g&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+a),3!==m&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+a),a++}var b=h,x=p-h;n.addGroup(b,x,d),d++}return n.setAttribute("position",new Zi(l,3)),n.setAttribute("normal",new Zi(c,3)),n}function a(e){return"string"!==typeof e?$p.decodeText(new Uint8Array(e)):e}function o(e){if("string"===typeof e){for(var t=new Uint8Array(e.length),n=0;n{var e,n,r=new Yp(13421772,.4);null===(e=u.current)||void 0===e||e.add(r);var i=new Xp(16777215,.8);i.position.set(1,1,0).normalize(),null===(n=u.current)||void 0===n||n.add(i);var a=new wx;a.load(t,(function(e){var t=new Qh,n=new _a(e,t);s(n),l()}))}),[]),a.a.createElement("canvas",{ref:r,style:{width:"100%",height:"100%"}})}var Ex=_x;t["default"]={GLTF:Ym,Collada:$m,FBX:ix,OBJ:gx,PLY:xx,STL:Ex}},"/GqU":function(e,t,n){var r=n("RK3t"),i=n("HYAF");e.exports=function(e){return r(i(e))}},"/Yfv":function(e,t,n){var r=n("dOgj");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"/b8u":function(e,t,n){var r=n("STAE");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"/byt":function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"/qmn":function(e,t,n){var r=n("2oRo");e.exports=r.Promise},0:function(e,t,n){e.exports=n("tB8F")},"03A+":function(e,t,n){var r=n("JTzB"),i=n("ExA7"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},"07d7":function(e,t,n){var r=n("AO7/"),i=n("busE"),a=n("sEFX");r||i(Object.prototype,"toString",a,{unsafe:!0})},"0BK2":function(e,t){e.exports={}},"0Bia":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("9kvl"),s=(n("mdU6"),function(e){var t=e.location,n=Object(r["useContext"])(a["context"]),s=n.base,u=n.locale,l=n.config.locales,c=l.find((function(e){var t=e.name;return t!==u}));function f(e){var n=s.replace("/".concat(u),""),r=t.pathname.replace(new RegExp("^".concat(s,"(/|$)")),"".concat(n,"$1"))||"/";if(e!==l[0].name){var i="".concat(n,"/").concat(e).replace(/\/\//,"/"),a=t.pathname.replace(s.replace(/^\/$/,"//"),"");return"".concat(i).concat(a).replace(/\/$/,"")}return r}return c?i.a.createElement("div",{className:"__dumi-default-locale-select","data-locale-count":l.length},l.length>2?i.a.createElement("select",{value:u,onChange:function(e){return o["a"].push(f(e.target.value))}},l.map((function(e){return i.a.createElement("option",{value:e.name,key:e.name},e.label)}))):i.a.createElement(a["Link"],{to:f(c.name)},c.label)):null}),u=s,l=(n("fVI1"),function(e){var t=e.onMobileMenuClick,n=e.navPrefix,o=e.location,s=e.darkPrefix,l=Object(r["useContext"])(a["context"]),c=l.base,f=l.config,d=f.mode,h=f.title,p=f.logo,v=l.nav;return i.a.createElement("div",{className:"__dumi-default-navbar","data-mode":d},i.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),i.a.createElement(a["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:p&&"url('".concat(p,"')")},to:c,"data-plaintext":!1===p||void 0},h),i.a.createElement("nav",null,n,v.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&i.a.createElement("ul",null,e.children.map((function(e){return i.a.createElement("li",{key:e.path},i.a.createElement(a["NavLink"],{to:e.path},e.title))})));return i.a.createElement("span",{key:e.title||e.path},e.path?i.a.createElement(a["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),i.a.createElement("div",{className:"__dumi-default-navbar-tool"},i.a.createElement(u,{location:o}),s)))}),c=l,f=(n("hJnp"),["slugs"]);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var v=function(e){var t=e.slugs,n=h(e,f);return i.a.createElement("ul",d({role:"slug-list"},n),t.filter((function(e){var t=e.depth;return t>1&&t<4})).map((function(e){return i.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},i.a.createElement(a["AnchorLink"],{to:"#".concat(e.heading)},i.a.createElement("span",null,e.value)))})))},m=v,g=(n("Mpie"),function(e){var t=e.mobileMenuCollapsed,n=e.location,o=e.darkPrefix,s=Object(r["useContext"])(a["context"]),l=s.config,c=l.logo,f=l.title,d=l.description,h=l.mode,p=l.repository.url,v=s.menu,g=s.nav,y=s.base,b=s.meta,x=Boolean((b.hero||b.features||b.gapless)&&"site"===h)||!1===b.sidemenu||void 0;return i.a.createElement("div",{className:"__dumi-default-menu","data-mode":h,"data-hidden":x,"data-mobile-show":!t||void 0},i.a.createElement("div",{className:"__dumi-default-menu-inner"},i.a.createElement("div",{className:"__dumi-default-menu-header"},i.a.createElement(a["Link"],{to:y,className:"__dumi-default-menu-logo",style:{backgroundImage:c&&"url('".concat(c,"')")}}),i.a.createElement("h1",null,f),i.a.createElement("p",null,d),/github\.com/.test(p)&&"doc"===h&&i.a.createElement("p",null,i.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(p.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),i.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},!!g.length&&i.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},g.map((function(e){var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&i.a.createElement("ul",null,e.children.map((function(e){return i.a.createElement("li",{key:e.path||e.title},i.a.createElement(a["NavLink"],{to:e.path},e.title))})));return i.a.createElement("li",{key:e.path||e.title},e.path?i.a.createElement(a["NavLink"],{to:e.path},e.title):e.title,n)}))),i.a.createElement(u,{location:n}),o),i.a.createElement("ul",{className:"__dumi-default-menu-list"},!x&&v.map((function(e){var t,r=Boolean(null===(t=b.slugs)||void 0===t?void 0:t.length),o=e.children&&Boolean(e.children.length),s="menu"===b.toc&&!o&&r&&e.path===n.pathname.replace(/([^^])\/$/,"$1"),u=o?e.children.map((function(e){return e.path})):[e.path,n.pathname.startsWith("".concat(e.path,"/"))&&b.title===e.title?n.pathname:null];return i.a.createElement("li",{key:e.path||e.title},i.a.createElement(a["NavLink"],{to:e.path,isActive:function(){return u.includes(n.pathname)}},e.title),Boolean(e.children&&e.children.length)&&i.a.createElement("ul",null,e.children.map((function(e){return i.a.createElement("li",{key:e.path},i.a.createElement(a["NavLink"],{to:e.path,exact:!0},i.a.createElement("span",null,e.title)),Boolean("menu"===b.toc&&"undefined"!==typeof window&&e.path===n.pathname&&r)&&i.a.createElement(m,{slugs:b.slugs}))}))),s&&i.a.createElement(m,{slugs:b.slugs}))})))))}),y=g;n("AK2Z");function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&l.map((function(e){var t;return i.a.createElement("li",{key:e.path,onClick:function(){return o("")}},i.a.createElement(a["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&i.a.createElement("span",null,e.parent.title),M(n,e.title)))})),0===l.length&&n&&i.a.createElement("li",{style:{textAlign:"center"}},h)))};n("Zkgb");function A(e,t){return P(e)||L(e,t)||R(e,t)||O()}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,t){if(e){if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop(n)}),void 0,!0,!0).result}})},"0rvr":function(e,t,n){var r=n("glrk"),i=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},"0ycA":function(e,t){function n(){return[]}e.exports=n},"14Sl":function(e,t,n){"use strict";n("rB9j");var r=n("busE"),i=n("0Dky"),a=n("tiKp"),o=n("kmMV"),s=n("kRJp"),u=a("species"),l=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$
")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),f=a("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var p=a(e),v=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=v&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!v||!m||"replace"===e&&(!l||!c||d)||"split"===e&&!h){var g=/./[p],y=n(p,""[e],(function(e,t,n,r,i){return t.exec===o?v&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],x=y[1];r(String.prototype,e,b),r(RegExp.prototype,p,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&s(RegExp.prototype[p],"sham",!0)}},"16Al":function(e,t,n){"use strict";var r=n("WbBG");function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1E5z":function(e,t,n){var r=n("m/L8").f,i=n("UTVS"),a=n("tiKp"),o=a("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"1OyB":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"1Y/n":function(e,t,n){var r=n("HAuM"),i=n("ewvW"),a=n("RK3t"),o=n("UMSQ"),s=function(e){return function(t,n,s,u){r(n);var l=i(t),c=a(l),f=o(l.length),d=e?f-1:0,h=e?-1:1;if(s<2)while(1){if(d in c){u=c[d],d+=h;break}if(d+=h,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=h)d in c&&(u=n(u,c[d],d,l));return u}};e.exports={left:s(!1),right:s(!0)}},"1hJj":function(e,t,n){var r=n("e4Nc"),i=n("ftKO"),a=n("3A9y");function o(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++tf)n=i(r,t=l[f++]),void 0!==n&&u(c,t,n);return c}})},"2B1R":function(e,t,n){"use strict";var r=n("I+eb"),i=n("tycR").map,a=n("Hd5f"),o=n("rkAj"),s=a("map"),u=o("map");r({target:"Array",proto:!0,forced:!s||!u},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"2N97":function(e,t,n){"use strict";var r=n("xbqb")["default"],i=n("Lw8S")["default"];function a(){var e=n("q1tI");return a=function(){return e},e}function o(e,t){return f(e)||c(e,t)||u(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3),i=new(l(t,a("Set"))),d=s(i.add);return f(n,(function(e){r(e,e,t)&&d.call(i,e)}),void 0,!1,!0),i}})},"49+q":function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("fXLg");r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},"4Brf":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("2oRo"),o=n("UTVS"),s=n("hh1v"),u=n("m/L8").f,l=n("6JNq"),c=a.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(f[t]=!0),t};l(d,c);var h=d.prototype=c.prototype;h.constructor=d;var p=h.toString,v="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(f,e))return"";var n=v?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},"4IlW":function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t["a"]=r},"4WOD":function(e,t,n){var r=n("UTVS"),i=n("ewvW"),a=n("93I0"),o=n("4Xet"),s=a("IE_PROTO"),u=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},"4XaG":function(e,t,n){var r=n("dG/n");r("observable")},"4Xet":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"4kuk":function(e,t,n){var r=n("SfRM"),i=n("Hvzi"),a=n("u8Dt"),o=n("ekgI"),s=n("JSQU");function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},"4mmX":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["GLTF-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-gltf"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-gltf","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d GLTF"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["GLTF-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},"4oU/":function(e,t,n){var r=n("2oRo"),i=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},"4syw":function(e,t,n){var r=n("busE");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},5921:function(e,t,n){var r=n("I+eb"),i=n("P940");r({target:"Map",stat:!0},{of:i})},"5JV0":function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("WGBp"),s=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=a(this),n=o(t),r=void 0===e?",":String(e),i=[];return s(n,i.push,i,!1,!0),i.join(r)}})},"5Tg+":function(e,t,n){var r=n("tiKp");t.f=r},"5Yz+":function(e,t,n){"use strict";var r=n("/GqU"),i=n("ppGB"),a=n("UMSQ"),o=n("pkCn"),s=n("rkAj"),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),h=c||!f||!d;e.exports=h?function(e){if(c)return l.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=u(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:l},"5mdu":function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},"5r1n":function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=i.get,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return o(e,a(t),n)}})},"5s+n":function(e,t,n){"use strict";var r,i,a,o,s=n("I+eb"),u=n("xDBR"),l=n("2oRo"),c=n("0GbY"),f=n("/qmn"),d=n("busE"),h=n("4syw"),p=n("1E5z"),v=n("JiZb"),m=n("hh1v"),g=n("HAuM"),y=n("GarU"),b=n("xrYK"),x=n("iSVu"),w=n("ImZN"),_=n("HH4o"),E=n("SEBh"),S=n("LPSS").set,k=n("tXUg"),M=n("zfnd"),T=n("RN6c"),A=n("8GlL"),O=n("5mdu"),R=n("afO8"),C=n("lMq5"),L=n("tiKp"),P=n("LQDL"),I=L("species"),N="Promise",D=R.get,j=R.set,F=R.getterFor(N),U=f,B=l.TypeError,z=l.document,H=l.process,G=c("fetch"),V=A.f,W=V,q="process"==b(H),X=!!(z&&z.createEvent&&l.dispatchEvent),Y="unhandledrejection",K="rejectionhandled",Z=0,J=1,$=2,Q=1,ee=2,te=C(N,(function(){var e=x(U)!==String(U);if(!e){if(66===P)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype["finally"])return!0;if(P>=51&&/native code/.test(U))return!1;var t=U.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[I]=n,!(t.then((function(){}))instanceof n)})),ne=te||!_((function(e){U.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;k((function(){var i=t.value,a=t.state==J,o=0;while(r.length>o){var s,u,l,c=r[o++],f=a?c.ok:c.fail,d=c.resolve,h=c.reject,p=c.domain;try{f?(a||(t.rejection===ee&&ue(e,t),t.rejection=Q),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===c.promise?h(B("Promise-chain cycle")):(u=re(s))?u.call(s,d,h):d(s)):h(i)}catch(v){p&&!l&&p.exit(),h(v)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&oe(e,t)}))}},ae=function(e,t,n){var r,i;X?(r=z.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(i=l["on"+e])?i(r):e===Y&&T("Unhandled promise rejection",n)},oe=function(e,t){S.call(l,(function(){var n,r=t.value,i=se(t);if(i&&(n=O((function(){q?H.emit("unhandledRejection",r,e):ae(Y,e,r)})),t.rejection=q||se(t)?ee:Q,n.error))throw n.value}))},se=function(e){return e.rejection!==Q&&!e.parent},ue=function(e,t){S.call(l,(function(){q?H.emit("rejectionHandled",e):ae(K,e,t.value)}))},le=function(e,t,n,r){return function(i){e(t,n,i,r)}},ce=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=$,ie(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw B("Promise can't be resolved itself");var i=re(n);i?k((function(){var r={done:!1};try{i.call(n,le(fe,e,r,t),le(ce,e,r,t))}catch(a){ce(e,r,a,t)}})):(t.value=n,t.state=J,ie(e,t,!1))}catch(a){ce(e,{done:!1},a,t)}}};te&&(U=function(e){y(this,U,N),g(e),r.call(this);var t=D(this);try{e(le(fe,this,t),le(ce,this,t))}catch(n){ce(this,t,n)}},r=function(e){j(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=h(U.prototype,{then:function(e,t){var n=F(this),r=V(E(this,U));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&ie(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=D(e);this.promise=e,this.resolve=le(fe,e,t),this.reject=le(ce,e,t)},A.f=V=function(e){return e===U||e===a?new i(e):W(e)},u||"function"!=typeof f||(o=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new U((function(e,t){o.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return M(U,G.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,N,!1,!0),v(N),a=c(N),s({target:N,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:N,stat:!0,forced:u||te},{resolve:function(e){return M(u&&this===a?U:this,e)}}),s({target:N,stat:!0,forced:ne},{all:function(e){var t=this,n=V(t),r=n.resolve,i=n.reject,a=O((function(){var n=g(t.resolve),a=[],o=0,s=1;w(e,(function(e){var u=o++,l=!1;a.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,a[u]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,i=O((function(){var i=g(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},"5wUe":function(e,t,n){var r=n("Q9SF"),i=n("MIOZ"),a=n("mGKP"),o=n("h0XC");function s(e,t){return r(e)||i(e,t)||a(e,t)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5xtp":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("6x0u"),o=n("ewvW"),s=n("HAuM"),u=n("m/L8");i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){u.f(o(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},"66V8":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("4WOD"),o=n("0rvr"),s=n("fHMY"),u=n("m/L8"),l=n("XGwC"),c=n("ImZN"),f=n("kRJp"),d=n("afO8"),h=d.set,p=d.getterFor("AggregateError"),v=function(e,t){var n=this;if(!(n instanceof v))return new v(e,t);o&&(n=o(new Error(t),a(n)));var r=[];return c(e,r.push,r),i?h(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&f(n,"message",String(t)),n};v.prototype=s(Error.prototype,{constructor:l(5,v),message:l(5,""),name:l(5,"AggregateError")}),i&&u.f(v.prototype,"errors",{get:function(){return p(this).errors},configurable:!0}),r({global:!0},{AggregateError:v})},"67WC":function(e,t,n){"use strict";var r,i=n("qYE9"),a=n("g6v/"),o=n("2oRo"),s=n("hh1v"),u=n("UTVS"),l=n("9d/t"),c=n("kRJp"),f=n("busE"),d=n("m/L8").f,h=n("4WOD"),p=n("0rvr"),v=n("tiKp"),m=n("kOOl"),g=o.Int8Array,y=g&&g.prototype,b=o.Uint8ClampedArray,x=b&&b.prototype,w=g&&h(g),_=y&&h(y),E=Object.prototype,S=E.isPrototypeOf,k=v("toStringTag"),M=m("TYPED_ARRAY_TAG"),T=i&&!!p&&"Opera"!==l(o.opera),A=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){var t=l(e);return"DataView"===t||u(O,t)},C=function(e){return s(e)&&u(O,l(e))},L=function(e){if(C(e))return e;throw TypeError("Target is not a typed array")},P=function(e){if(p){if(S.call(w,e))return e}else for(var t in O)if(u(O,r)){var n=o[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},I=function(e,t,n){if(a){if(n)for(var r in O){var i=o[r];i&&u(i.prototype,e)&&delete i.prototype[e]}_[e]&&!n||f(_,e,n?t:T&&y[e]||t)}},N=function(e,t,n){var r,i;if(a){if(p){if(n)for(r in O)i=o[r],i&&u(i,e)&&delete i[e];if(w[e]&&!n)return;try{return f(w,e,n?t:T&&g[e]||t)}catch(s){}}for(r in O)i=o[r],!i||i[e]&&!n||f(i,e,t)}};for(r in O)o[r]||(T=!1);if((!T||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},T))for(r in O)o[r]&&p(o[r],w);if((!T||!_||_===E)&&(_=w.prototype,T))for(r in O)o[r]&&p(o[r].prototype,_);if(T&&h(x)!==_&&p(x,_),a&&!u(_,k))for(r in A=!0,d(_,k,{get:function(){return s(this)?this[M]:void 0}}),O)o[r]&&c(o[r],M,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_TAG:A&&M,aTypedArray:L,aTypedArrayConstructor:P,exportTypedArrayMethod:I,exportTypedArrayStaticMethod:N,isView:R,isTypedArray:C,TypedArray:w,TypedArrayPrototype:_}},"6JNq":function(e,t,n){var r=n("UTVS"),i=n("Vu81"),a=n("Bs8V"),o=n("m/L8");e.exports=function(e,t){for(var n=i(t),s=o.f,u=a.f,l=0;l>>8,n[2*r+1]=o%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return a.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r>=1}else{for(i=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete s[c]}else for(i=o[c],r=0;r>=1;f--,0==f&&(f=Math.pow(2,h),h++),o[l]=d++,c=String(u)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete s[c]}else for(i=o[c],r=0;r>=1;f--,0==f&&(f=Math.pow(2,h),h++)}for(i=2,r=0;r>=1;while(1){if(v<<=1,m==t-1){p.push(n(v));break}m++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,a,o,s,u,l,c,f=[],d=4,h=4,p=3,v="",m=[],g={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)f[i]=i;o=0,u=Math.pow(2,2),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;switch(o){case 0:o=0,u=Math.pow(2,8),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;c=e(o);break;case 1:o=0,u=Math.pow(2,16),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;c=e(o);break;case 2:return""}f[3]=c,a=c,m.push(c);while(1){if(g.index>t)return"";o=0,u=Math.pow(2,p),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;switch(c=o){case 0:o=0,u=Math.pow(2,8),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;f[h++]=e(o),c=h-1,d--;break;case 1:o=0,u=Math.pow(2,16),l=1;while(l!=u)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=r(g.index++)),o|=(s>0?1:0)*l,l<<=1;f[h++]=e(o),c=h-1,d--;break;case 2:return m.join("")}if(0==d&&(d=Math.pow(2,p),p++),f[c])v=f[c];else{if(c!==h)return null;v=a+a.charAt(0)}m.push(v),f[h++]=a+v.charAt(0),d--,a=v,0==d&&(d=Math.pow(2,p),p++)}}};return a}();r=function(){return i}.call(t,n,t,e),void 0===r||(e.exports=r)},"7+kd":function(e,t,n){var r=n("dG/n");r("isConcatSpreadable")},"7+zs":function(e,t,n){var r=n("kRJp"),i=n("UesL"),a=n("tiKp"),o=a("toPrimitive"),s=Date.prototype;o in s||r(s,o,i)},"702D":function(e,t,n){var r=n("I+eb"),i=n("qY7S");r({target:"WeakMap",stat:!0},{from:i})},"77Zs":function(e,t,n){var r=n("Xi7e");function i(){this.__data__=new r,this.size=0}e.exports=i},"7GkX":function(e,t,n){var r=n("b80T"),i=n("A90E"),a=n("MMmD");function o(e){return a(e)?r(e):i(e)}e.exports=o},"7JcK":function(e,t,n){"use strict";var r=n("67WC"),i=n("iqeF"),a=r.aTypedArrayConstructor,o=r.exportTypedArrayStaticMethod;o("of",(function(){var e=0,t=arguments.length,n=new(a(this))(t);while(t>e)n[e]=arguments[e++];return n}),i)},"7fqy":function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},"7sf/":function(e,t,n){"use strict";function r(){var e=n("q1tI");return r=function(){return e},e}function i(){var e=a(n("6xEa"));return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return f(e)||c(e,t)||u(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{e.demos;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h1",{id:"\u5b89\u88c5"},i.a.createElement(a["AnchorLink"],{to:"#\u5b89\u88c5","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u5b89\u88c5"),i.a.createElement("h2",{id:"\u4f7f\u7528\u5305\u7ba1\u7406\u5668"},i.a.createElement(a["AnchorLink"],{to:"#\u4f7f\u7528\u5305\u7ba1\u7406\u5668","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u4f7f\u7528\u5305\u7ba1\u7406\u5668"),i.a.createElement("p",null,"\u6211\u4eec\u63a8\u8350\u60a8\u4f7f\u7528\u5305\u7ba1\u7406\u5668(",i.a.createElement(a["Link"],{to:"https://www.npmjs.com/"},"NPM"),", ",i.a.createElement(a["Link"],{to:"https://yarnpkg.com/"},"Yarn"),", ",i.a.createElement(a["Link"],{to:"https://pnpm.io/"},"PNPM"),")\u5b89\u88c5 react 3D Model\u3002"),i.a.createElement("p",null,"\u4f7f\u7528 NPM:"),i.a.createElement(o["a"],{code:"npm install react-3dmodelx --save",lang:"bash"}),i.a.createElement("p",null,"\u4f7f\u7528 Yarn:"),i.a.createElement(o["a"],{code:"yarn add react-3dmodelx",lang:"bash"}),i.a.createElement("p",null,"\u4f7f\u7528 PNPM:"),i.a.createElement(o["a"],{code:"pnpm install react-3dmodelx",lang:"bash"})))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},"8GlL":function(e,t,n){"use strict";var r=n("HAuM"),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},"8L3h":function(e,t,n){"use strict";e.exports=n("f/k9")},"8STE":function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("Cg3G");r({target:"WeakSet",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},"8XRh":function(e,t,n){"use strict";var r=n("rePB"),i=n("VTBJ"),a=n("ODXe"),o=n("U8pU"),s=n("q1tI"),u=n("m+aA"),l=n("c+Xe"),c=n("TSYQ"),f=n.n(c),d=n("MNnm");function h(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function p(e,t){var n={animationend:h("Animation","AnimationEnd"),transitionend:h("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var v=p(Object(d["a"])(),"undefined"!==typeof window?window:{}),m={};if(Object(d["a"])()){var g=document.createElement("div");m=g.style}var y={};function b(e){if(y[e])return y[e];var t=v[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(D["a"])((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a}return s["useEffect"]((function(){return function(){t()}}),[]),[n,t]},F=Object(d["a"])()?s["useLayoutEffect"]:s["useEffect"],U=F,B=[C,L,P,I],z=!1,H=!0;function G(e){return e===P||e===I}var V=function(e,t){var n=Object(N["a"])(R),r=Object(a["a"])(n,2),i=r[0],o=r[1],u=j(),l=Object(a["a"])(u,2),c=l[0],f=l[1];function d(){o(C,!0)}return U((function(){if(i!==R&&i!==I){var e=B.indexOf(i),n=B[e+1],r=t(i);r===z?o(n,!0):c((function(e){function t(){e.isCanceled()||o(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),s["useEffect"]((function(){return function(){f()}}),[]),[d,i]},W=function(e){var t=Object(s["useRef"])(),n=Object(s["useRef"])(e);n.current=e;var r=s["useCallback"]((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(S,r),e.removeEventListener(E,r))}function a(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(S,r),e.addEventListener(E,r),t.current=e)}return s["useEffect"]((function(){return function(){i(t.current)}}),[]),[a,i]};function q(e,t,n,o){var u=o.motionEnter,l=void 0===u||u,c=o.motionAppear,f=void 0===c||c,d=o.motionLeave,h=void 0===d||d,p=o.motionDeadline,v=o.motionLeaveImmediately,m=o.onAppearPrepare,g=o.onEnterPrepare,y=o.onLeavePrepare,b=o.onAppearStart,x=o.onEnterStart,w=o.onLeaveStart,_=o.onAppearActive,E=o.onEnterActive,S=o.onLeaveActive,k=o.onAppearEnd,R=o.onEnterEnd,I=o.onLeaveEnd,D=o.onVisibleChanged,j=Object(N["a"])(),F=Object(a["a"])(j,2),B=F[0],q=F[1],X=Object(N["a"])(M),Y=Object(a["a"])(X,2),K=Y[0],Z=Y[1],J=Object(N["a"])(null),$=Object(a["a"])(J,2),Q=$[0],ee=$[1],te=Object(s["useRef"])(!1),ne=Object(s["useRef"])(null);function re(){return n()}var ie=Object(s["useRef"])(!1);function ae(e){var t=re();if(!e||e.deadline||e.target===t){var n,r=ie.current;K===T&&r?n=null===k||void 0===k?void 0:k(t,e):K===A&&r?n=null===R||void 0===R?void 0:R(t,e):K===O&&r&&(n=null===I||void 0===I?void 0:I(t,e)),K!==M&&r&&!1!==n&&(Z(M,!0),ee(null,!0))}}var oe=W(ae),se=Object(a["a"])(oe,1),ue=se[0],le=s["useMemo"]((function(){var e,t,n;switch(K){case T:return e={},Object(r["a"])(e,C,m),Object(r["a"])(e,L,b),Object(r["a"])(e,P,_),e;case A:return t={},Object(r["a"])(t,C,g),Object(r["a"])(t,L,x),Object(r["a"])(t,P,E),t;case O:return n={},Object(r["a"])(n,C,y),Object(r["a"])(n,L,w),Object(r["a"])(n,P,S),n;default:return{}}}),[K]),ce=V(K,(function(e){if(e===C){var t=le[C];return t?t(re()):z}var n;he in le&&ee((null===(n=le[he])||void 0===n?void 0:n.call(le,re(),null))||null);return he===P&&(ue(re()),p>0&&(clearTimeout(ne.current),ne.current=setTimeout((function(){ae({deadline:!0})}),p))),H})),fe=Object(a["a"])(ce,2),de=fe[0],he=fe[1],pe=G(he);ie.current=pe,U((function(){q(t);var n,r=te.current;(te.current=!0,e)&&(!r&&t&&f&&(n=T),r&&t&&l&&(n=A),(r&&!t&&h||!r&&v&&!t&&h)&&(n=O),n&&(Z(n),de()))}),[t]),Object(s["useEffect"])((function(){(K===T&&!f||K===A&&!l||K===O&&!h)&&Z(M)}),[f,l,h]),Object(s["useEffect"])((function(){return function(){te.current=!1,clearTimeout(ne.current)}}),[]);var ve=s["useRef"](!1);Object(s["useEffect"])((function(){B&&(ve.current=!0),void 0!==B&&K===M&&((ve.current||B)&&(null===D||void 0===D||D(B)),ve.current=!0)}),[B,K]);var me=Q;return le[C]&&he===L&&(me=Object(i["a"])({transition:"none"},me)),[K,he,me,null!==B&&void 0!==B?B:t]}var X=n("1OyB"),Y=n("vuIU"),K=n("Ji7U"),Z=n("LK+K"),J=function(e){Object(K["a"])(n,e);var t=Object(Z["a"])(n);function n(){return Object(X["a"])(this,n),t.apply(this,arguments)}return Object(Y["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(s["Component"]),$=J;function Q(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(o["a"])(e)&&(t=e.transitionSupport);var c=s["forwardRef"]((function(e,t){var o=e.visible,c=void 0===o||o,d=e.removeOnLeave,h=void 0===d||d,p=e.forceRender,v=e.children,m=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),x=Object(s["useRef"])(),w=Object(s["useRef"])();function _(){try{return x.current instanceof HTMLElement?x.current:Object(u["a"])(w.current)}catch(e){return null}}var E=q(b,c,_,e),S=Object(a["a"])(E,4),T=S[0],A=S[1],O=S[2],R=S[3],P=s["useRef"](R);R&&(P.current=!0);var I,N=s["useCallback"]((function(e){x.current=e,Object(l["b"])(t,e)}),[t]),D=Object(i["a"])(Object(i["a"])({},y),{},{visible:c});if(v)if(T!==M&&n(e)){var j,F;A===C?F="prepare":G(A)?F="active":A===L&&(F="start"),I=v(Object(i["a"])(Object(i["a"])({},D),{},{className:f()(k(m,T),(j={},Object(r["a"])(j,k(m,"".concat(T,"-").concat(F)),F),Object(r["a"])(j,m,"string"===typeof m),j)),style:O}),N)}else I=R?v(Object(i["a"])({},D),N):!h&&P.current?v(Object(i["a"])(Object(i["a"])({},D),{},{className:g}),N):p?v(Object(i["a"])(Object(i["a"])({},D),{},{style:{display:"none"}}),N):null;else I=null;if(s["isValidElement"](I)&&Object(l["c"])(I)){var U=I,B=U.ref;B||(I=s["cloneElement"](I,{ref:N}))}return s["createElement"]($,{ref:w},I)}));return c.displayName="CSSMotion",c}var ee=Q(_),te=n("wx14"),ne=n("Ff2n"),re="add",ie="keep",ae="remove",oe="removed";function se(e){var t;return t=e&&"object"===Object(o["a"])(e)&&"key"in e?e:{key:e},Object(i["a"])(Object(i["a"])({},t),{},{key:String(t.key)})}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(se)}function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,o=ue(e),s=ue(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae})),n.forEach((function(t){t.key===e&&(t.status=ie)}))})),n}var ce=["component","children","onVisibleChanged","onAllRemoved"],fe=["status"],de=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){Object(K["a"])(r,e);var n=Object(Z["a"])(r);function r(){var e;Object(X["a"])(this,r);for(var t=arguments.length,a=new Array(t),o=0;o2?arguments[2]:void 0)(e,n);return n.set(e,t(s,e,n)),n}})},"9N29":function(e,t,n){"use strict";var r=n("I+eb"),i=n("1Y/n").right,a=n("pkCn"),o=n("rkAj"),s=a("reduceRight"),u=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!u},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"9R94":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=!0,i="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,a=n?"".concat(i,": ").concat(n):i;throw new Error(a)}}},"9d/t":function(e,t,n){var r=n("AO7/"),i=n("xrYK"),a=n("tiKp"),o=a("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),o))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},"9kvl":function(e,t,n){"use strict";var r=n("FfOG");n.d(t,"a",(function(){return r["b"]}));n("bCY9")},"9xmf":function(e,t,n){var r=n("EdiO");function i(e){if(Array.isArray(e))return r(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},A2ZE:function(e,t,n){var r=n("HAuM");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},A90E:function(e,t,n){var r=n("6sVZ"),i=n("V6Ve"),a=Object.prototype,o=a.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},AK2Z:function(e,t,n){},"AO7/":function(e,t,n){var r=n("tiKp"),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},AP2z:function(e,t,n){var r=n("nmnc"),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function u(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=u},AQPS:function(e,t,n){},AVoK:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("Cg3G");r({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},AqCL:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},AwgR:function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=i.has,s=i.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return o(e,a(t),n)}})},B6y2:function(e,t,n){var r=n("I+eb"),i=n("b1O7").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},B8du:function(e,t){function n(){return!1}e.exports=n},BGb9:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=o(this),n=new(u(t,a("Set")))(t);return l(e,s(n.add),n),n}})},BIHw:function(e,t,n){"use strict";var r=n("I+eb"),i=n("or9q"),a=n("ewvW"),o=n("UMSQ"),s=n("ppGB"),u=n("ZfDv");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=o(t.length),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},BTho:function(e,t,n){"use strict";var r=n("HAuM"),i=n("hh1v"),a=[].slice,o={},s=function(e,t,n){if(!(t in o)){for(var r=[],i=0;i1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),d=s(i.set);return f(n,(function(e,n){d.call(i,e,r(n,e,t))}),void 0,!0,!0),i}})},Cg3G:function(e,t,n){"use strict";var r=n("glrk"),i=n("HAuM");e.exports=function(){for(var e,t=r(this),n=i(t["delete"]),a=!0,o=0,s=arguments.length;ou&&(l=l.slice(0,u)),e?c+l:l+c)}};e.exports={start:s(!1),end:s(!0)}},DPsx:function(e,t,n){var r=n("g6v/"),i=n("0Dky"),a=n("zBJ4");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},DSRE:function(e,t,n){(function(e){var r=n("Kz5y"),i=n("B8du"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||i;e.exports=c}).call(this,n("hOG+")(e))},DTth:function(e,t,n){var r=n("0Dky"),i=n("tiKp"),a=n("xDBR"),o=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},DhMN:function(e,t,n){n("ofBz")},DrvE:function(e,t,n){"use strict";var r=n("I+eb"),i=n("HAuM"),a=n("0GbY"),o=n("8GlL"),s=n("5mdu"),u=n("ImZN"),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,f=s((function(){var n=i(t.resolve),o=[],s=0,f=1,d=!1;u(e,(function(e){var i=s++,u=!1;o.push(void 0),f++,n.call(t,e).then((function(e){u||d||(d=!0,r(e))}),(function(e){u||d||(u=!0,o[i]=e,--f||c(new(a("AggregateError"))(o,l)))}))})),--f||c(new(a("AggregateError"))(o,l))}));return f.error&&c(f.value),n.promise}})},E2jh:function(e,t,n){var r=n("2gN3"),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function a(e){return!!i&&i in e}e.exports=a},E9XD:function(e,t,n){"use strict";var r=n("I+eb"),i=n("1Y/n").left,a=n("pkCn"),o=n("rkAj"),s=a("reduce"),u=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!u},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"EDT/":function(e,t,n){var r=n("I+eb"),i=n("p5mE"),a=n("0GbY");r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"===typeof arguments[0]?a("Symbol")["for"](arguments[0]):i.apply(null,arguments).get("symbol",a("Symbol"))}})},ENF9:function(e,t,n){"use strict";var r,i=n("2oRo"),a=n("4syw"),o=n("8YOa"),s=n("bWFh"),u=n("rKzb"),l=n("hh1v"),c=n("afO8").enforce,f=n("f5p1"),d=!i.ActiveXObject&&"ActiveXObject"in i,h=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=e.exports=s("WeakMap",p,u);if(f&&d){r=u.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var m=v.prototype,g=m["delete"],y=m.has,b=m.get,x=m.set;a(m,{delete:function(e){if(l(e)&&!h(e)){var t=c(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(l(e)&&!h(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(l(e)&&!h(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(l(e)&&!h(e)){var n=c(this);n.frozen||(n.frozen=new r),y.call(this,e)?x.call(this,e,t):n.frozen.set(e,t)}else x.call(this,e,t);return this}})}},EUja:function(e,t,n){"use strict";var r=n("ppGB"),i=n("HYAF");e.exports="".repeat||function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},EdiO:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1||"".split(/.?/).length?function(e,n){var r=String(o(this)),a=void 0===n?v:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,a);var s,u,l,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,d+"g");while(s=f.call(m,r)){if(u=m.lastIndex,u>p&&(c.push(r.slice(p,s.index)),s.length>1&&s.index=a))break;m.lastIndex===s.index&&m.lastIndex++}return p===r.length?!l&&m.test("")||c.push(""):c.push(r.slice(p)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=o(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var f=a(e),d=String(this),h=s(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),b=new h(m?f:"^(?:"+f.source+")",y),x=void 0===i?v:i>>>0;if(0===x)return[];if(0===d.length)return null===c(b,d)?[d]:[];var w=0,_=0,E=[];while(_{var t=e.demos,n=t["docs-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(o["default"],t["docs-demo"].previewerProps,i.a.createElement(n,null)))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},F4QJ:function(e,t,n){"use strict";function r(){var e=a(n("q1tI"));return r=function(){return e},e}function i(){var e=n("dEAq");return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1?arguments[1]:void 0)}},FDzp:function(e,t,n){var r=n("dOgj");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},FMNM:function(e,t,n){var r=n("xrYK"),i=n("kmMV");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},FZtP:function(e,t,n){var r=n("2oRo"),i=n("/byt"),a=n("F8JR"),o=n("kRJp");for(var s in i){var u=r[s],l=u&&u.prototype;if(l&&l.forEach!==a)try{o(l,"forEach",a)}catch(c){l.forEach=a}}},Ff2n:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("zLVn");function i(e,t){if(null==e)return{};var n,i,a=Object(r["a"])(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},FfOG:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n("YS25"),i={basename:"/"};window.routerBase&&(i.basename=window.routerBase);var a=Object({NODE_ENV:"production"}).__IS_SERVER?null:Object(r["b"])(i),o=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(a=Object(r["b"])(i)),a}},"G+Rx":function(e,t,n){var r=n("0GbY");e.exports=r("document","documentElement")},GC2F:function(e,t,n){var r=n("+M1K");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},GXvd:function(e,t,n){var r=n("dG/n");r("species")},GarU:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},GoyQ:function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},Gytx:function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u=f.reach)break;var S=_.value;if(t.length>e.length)return;if(!(S instanceof i)){var k,M=1;if(y){if(k=a(w,E,e,g),!k||k.index>=e.length)break;var T=k.index,A=k.index+k[0].length,O=E;O+=_.value.length;while(T>=O)_=_.next,O+=_.value.length;if(O-=_.value.length,E=O,_.value instanceof i)continue;for(var R=_;R!==t.tail&&(Of.reach&&(f.reach=I);var N=_.prev;L&&(N=u(t,N,L),E+=L.length),l(t,N,M);var D=new i(d,m?r.tokenize(C,m):C,b,C);if(_=u(t,N,D),P&&u(t,_,P),M>1){var j={cause:d+","+p,reach:I};o(e,t,n,_.prev,E,j),f&&j.reach>f.reach&&(f.reach=j.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function l(e,t,n){for(var r=t.next,i=0;i"+a.content+""},r}(),o=a;a["default"]=a,o.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},o.languages.markup["tag"].inside["attr-value"].inside["entity"]=o.languages.markup["entity"],o.languages.markup["doctype"].inside["internal-subset"].inside=o.languages.markup,o.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(o.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:o.languages[t]},n["cdata"]=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:o.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},o.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(o.languages.markup.tag,"addAttribute",{value:function(e,t){o.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:o.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),o.languages.html=o.languages.markup,o.languages.mathml=o.languages.markup,o.languages.svg=o.languages.markup,o.languages.xml=o.languages.extend("markup",{}),o.languages.ssml=o.languages.xml,o.languages.atom=o.languages.xml,o.languages.rss=o.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},o.languages.c=o.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),o.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),o.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},o.languages.c["string"]],char:o.languages.c["char"],comment:o.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:o.languages.c}}}}),o.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete o.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(o),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(o),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css["atrule"].inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(o),o.languages.javascript=o.languages.extend("clike",{"class-name":[o.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),o.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,o.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:o.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:o.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:o.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:o.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:o.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),o.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:o.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),o.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),o.languages.markup&&(o.languages.markup.tag.addInlined("script","javascript"),o.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),o.languages.js=o.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(o),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(o),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){function t(e){if(e&&"string"!==typeof e)for(var n=0,r=e.length;n",quot:'"'},u=String.fromCodePoint||String.fromCharCode;function l(e){var t=e.replace(o,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if(t=t.toLowerCase(),"#"===t[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e})),t}e.languages.md=e.languages.markdown}(o),o.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:o.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},o.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!==typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=n;u=0&&h(l,"variable-input")}}}}function c(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside["interpolation"],i=r.inside["interpolation-punctuation"],a=r.pattern.source;function o(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function u(t,n,r){var i={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function l(t){var n={};n["interpolation-punctuation"]=i;var a=e.tokenize(t,n);if(3===a.length){var o=[1,1];o.push.apply(o,u(a[1],e.languages.javascript,"javascript")),a.splice.apply(a,o)}return new e.Token("interpolation",a,r.alias,t)}function c(t,n,r){var i=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),o=0,c={},f=i.map((function(e){if("string"===typeof e)return e;var n,i=e.content;while(-1!==t.indexOf(n=s(o++,r)));return c[n]=i,n})).join(""),d=u(f,n,r),h=Object.keys(c);function p(e){for(var t=0;t=h.length)return;var n=e[t];if("string"===typeof n||"string"===typeof n.content){var r=h[o],i="string"===typeof n?n:n.content,a=i.indexOf(r);if(-1!==a){++o;var s=i.substring(0,a),u=l(c[r]),f=i.substring(a+r.length),d=[];if(s&&d.push(s),d.push(u),f){var v=[f];p(v),d.push.apply(d,v)}"string"===typeof n?(e.splice.apply(e,[t,1].concat(d)),t+=d.length-1):n.content=d}}else{var m=n.content;Array.isArray(m)?p(m):p([m])}}}return o=0,p(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"===typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){function n(t){for(var r=0,i=t.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript["parameter"],delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(o),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function"].source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript["keyword"].unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function a(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside["comment"]=t["comment"],e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function e(t){return t?"string"===typeof t?t:"string"===typeof t.content?t.content:t.content.map(e).join(""):""},s=function t(n){for(var r=[],i=0;i0&&r[r.length-1].tagName===o(a.content[0].content[1])&&r.pop():"/>"===a.content[a.content.length-1].content||r.push({tagName:o(a.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===a.type&&"{"===a.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?r[r.length-1].openedBraces--:s=!0),(s||"string"===typeof a)&&r.length>0&&0===r[r.length-1].openedBraces){var u=o(a);i0&&("string"===typeof n[i-1]||"plain-text"===n[i-1].type)&&(u=o(n[i-1])+u,n.splice(i-1,1),i--),n[i]=new e.Token("plain-text",u,null,u)}a.content&&"string"!==typeof a.content&&t(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(o),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(o),o.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},o.languages.go=o.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),o.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete o.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"===typeof a&&!a(e))return e;var i,s=o.length;while(-1!==n.code.indexOf(i=t(r,s)))++s;return o[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,a=Object.keys(n.tokenStack);o(n.tokens)}function o(s){for(var u=0;u=a.length)break;var l=s[u];if("string"===typeof l||l.content&&"string"===typeof l.content){var c=a[i],f=n.tokenStack[c],d="string"===typeof l?l:l.content,h=t(r,c),p=d.indexOf(h);if(p>-1){++i;var v=d.substring(0,p),m=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),g=d.substring(p+h.length),y=[];v&&y.push.apply(y,o([v])),y.push(m),g&&y.push.apply(y,o([g])),"string"===typeof l?s.splice.apply(s,[u,1].concat(y)):l.content=y}}else l.content&&o(l.content)}return s}}}})}(o),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(t,"handlebars",n)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(o),o.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},o.languages.webmanifest=o.languages.json,o.languages.less=o.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),o.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),o.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},o.languages.objectivec=o.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete o.languages.objectivec["class-name"],o.languages.objc=o.languages.objectivec,o.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},o.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},o.languages.python["string-interpolation"].inside["interpolation"].inside.rest=o.languages.python,o.languages.py=o.languages.python,o.languages.reason=o.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),o.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete o.languages.reason["function"],function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(o),o.languages.scss=o.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),o.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),o.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),o.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),o.languages.scss["atrule"].inside.rest=o.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r["interpolation"]={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r["func"]={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(o),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx["parameter"],delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(o),o.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var s=o,u={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},l=u,c={Prism:s,theme:l};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t0&&e[n-1]===t?e:e.concat(t)},m=function(e){var t=[[]],n=[e],r=[0],i=[e.length],a=0,o=0,s=[],u=[s];while(o>-1){while((a=r[o]++)0?c:["plain"],l=d):(c=v(c,d.type),d.alias&&(c=v(c,d.alias)),l=d.content),"string"===typeof l){var m=l.split(h),g=m.length;s.push({types:c,content:m[0]});for(var y=1;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var t=e.demos,n=t["PLY-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["PLY-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},Hd5f:function(e,t,n){var r=n("0Dky"),i=n("tiKp"),a=n("LQDL"),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},HiXI:function(e,t,n){"use strict";var r=n("I+eb"),i=n("WKiH").end,a=n("yNLB"),o=a("trimEnd"),s=o?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,forced:o},{trimEnd:s,trimRight:s})},HsHA:function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},Hvzi:function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},"I+eb":function(e,t,n){var r=n("2oRo"),i=n("Bs8V").f,a=n("kRJp"),o=n("busE"),s=n("zk60"),u=n("6JNq"),l=n("lMq5");e.exports=function(e,t){var n,c,f,d,h,p,v=e.target,m=e.global,g=e.stat;if(c=m?r:g?r[v]||s(v,{}):(r[v]||{}).prototype,c)for(f in t){if(h=t[f],e.noTargetGet?(p=i(c,f),d=p&&p.value):d=c[f],n=l(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&a(h,"sham",!0),o(c,f,h,e)}}},I1Gw:function(e,t,n){var r=n("dG/n");r("split")},I8vh:function(e,t,n){var r=n("ppGB"),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},I9xj:function(e,t,n){var r=n("1E5z");r(Math,"Math",!0)},"IL/d":function(e,t,n){"use strict";var r=n("iqeF"),i=n("67WC").exportTypedArrayStaticMethod,a=n("oHi+");i("from",a,r)},IZzc:function(e,t,n){"use strict";var r=n("67WC"),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=[].sort;a("sort",(function(e){return o.call(i(this),e)}))},ImZN:function(e,t,n){var r=n("glrk"),i=n("6VoE"),a=n("UMSQ"),o=n("A2ZE"),s=n("NaFW"),u=n("m92n"),l=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,f){var d,h,p,v,m,g,y,b=o(t,n,c?2:1);if(f)d=e;else{if(h=s(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(i(h)){for(p=0,v=a(e.length);v>p;p++)if(m=c?b(r(y=e[p])[0],y[1]):b(e[p]),m&&m instanceof l)return m;return new l(!1)}d=h.call(e)}g=d.next;while(!(y=g.call(d)).done)if(m=u(d,b,y.value,c),"object"==typeof m&&m&&m instanceof l)return m;return new l(!1)};c.stop=function(e){return new l(!0,e)}},IyRk:function(e,t){(function(t){e.exports=function(){var e={873:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"===typeof window&&(t=window)}e.exports=t}},n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={exports:{}},a=!0;try{e[t](i,i.exports,r),a=!1}finally{a&&delete n[t]}return i.exports}return r.ab=t+"/",r(873)}()}).call(this,"/")},JBy8:function(e,t,n){var r=n("yoRg"),i=n("eDl+"),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},JHRd:function(e,t,n){var r=n("Kz5y"),i=r.Uint8Array;e.exports=i},JHgL:function(e,t,n){var r=n("QkVE");function i(e){return r(this,e).get(e)}e.exports=i},JSQU:function(e,t,n){var r=n("YESw"),i="__lodash_hash_undefined__";function a(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=a},JTJg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("WjRb"),a=n("HYAF"),o=n("qxPZ");r({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},JTzB:function(e,t,n){var r=n("NykK"),i=n("ExA7"),a="[object Arguments]";function o(e){return i(e)&&r(e)==a}e.exports=o},JX7q:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},JevA:function(e,t,n){var r=n("I+eb"),i=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},JfAA:function(e,t,n){"use strict";var r=n("busE"),i=n("glrk"),a=n("0Dky"),o=n("rW0t"),s="toString",u=RegExp.prototype,l=u[s],c=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=s;(c||f)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in u)?o.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},JhMR:function(e,t,n){"use strict";e.exports=n("KqkS")},Ji7U:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("s4An");function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r["a"])(e,t)}},JiZb:function(e,t,n){"use strict";var r=n("0GbY"),i=n("m/L8"),a=n("tiKp"),o=n("g6v/"),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},Junv:function(e,t,n){"use strict";var r=n("I+eb"),i=n("6LWA"),a=[].reverse,o=[1,2];r({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a.call(this)}})},JwUS:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("HAuM"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n){r?(r=!1,i=n):i=e(i,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return i}})},"K+nK":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},KMkd:function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("a3WO");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var o=n("BsWD");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){return i(e)||a(e)||Object(o["a"])(e)||s()}},"KYY/":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["STL-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["STL-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},KcUY:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=u(n("q1tI")),a=o(n("nLCz"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(i,o,u):i[o]=e[o]}return i["default"]=e,n&&n.set(e,i),i}function l(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function c(e,t){return v(e)||p(e,t)||d(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;o-=1){var s=i[o],u=[s].concat(s.children).filter(Boolean),l=u.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(l){a=l.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[a])||[]},a=(0,i.useState)(r(e,t,n)),o=c(a,2),s=o[0],u=o[1];return(0,i.useLayoutEffect)((function(){u(r(e,t,n))}),[e.navs,e.menus,t,n]),s},_=function(e,t,n){var r=function(){for(var t=arguments.length,r=new Array(t),i=0;i=_},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0A(o,n))void 0!==u&&0>A(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>A(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],R=[],C=1,L=null,P=3,I=!1,N=!1,D=!1;function j(e){for(var t=M(R);null!==t;){if(null===t.callback)T(R);else{if(!(t.startTime<=e))break;T(R),t.sortIndex=t.expirationTime,k(O,t)}t=M(R)}}function F(e){if(D=!1,j(e),!N)if(null!==M(O))N=!0,r(U);else{var t=M(R);null!==t&&i(F,t.startTime-e)}}function U(e,n){N=!1,D&&(D=!1,a()),I=!0;var r=P;try{for(j(n),L=M(O);null!==L&&(!(L.expirationTime>n)||e&&!o());){var s=L.callback;if(null!==s){L.callback=null,P=L.priorityLevel;var u=s(L.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?L.callback=u:L===M(O)&&T(O),j(n)}else T(O);L=M(O)}if(null!==L)var l=!0;else{var c=M(R);null!==c&&i(F,c.startTime-n),l=!1}return l}finally{L=null,P=r,I=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||I||(N=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return M(O)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();if("object"===typeof o&&null!==o){var u=o.delay;u="number"===typeof u&&0s?(e.sortIndex=u,k(R,e),null===M(O)&&e===M(R)&&(D?a():D=!0,i(F,u-s))):(e.sortIndex=o,k(O,e),N||I||(N=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=M(O);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime4)return e;for(n=[],r=0;r1&&"0"==i.charAt(0)&&(a=P.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?N:8==a?I:D).test(i))return e;o=parseInt(i,a)}n.push(o)}for(r=0;r=k(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),r=0;r6)return;r=0;while(d()){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!L.test(d()))return;while(L.test(d())){if(a=parseInt(d(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[l]=256*u[l]+i,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;u[l++]=t}else{if(null!==c)return;f++,l++,c=l}}if(null!==c){o=l-c,l=7;while(0!=l&&o>0)s=u[l],u[l--]=u[c+o-1],u[c+--o]=s}else if(8!=l)return;return u},V=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t},W=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=V(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},X=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=d({},X,{"#":1,"?":1,"{":1,"}":1}),K=d({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var n=p(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},$=function(e){return f(J,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&R.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},ue={},le={},ce={},fe={},de={},he={},pe={},ve={},me={},ge={},ye={},be={},xe={},we={},_e={},Ee={},Se={},ke={},Me={},Te=function(e,t,n,i){var a,o,s,u,l=n||oe,c=0,d="",p=!1,v=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(B,""),a=h(t);while(c<=a.length){switch(o=a[c],l){case oe:if(!o||!R.test(o)){if(n)return T;l=ue;continue}d+=o.toLowerCase(),l=se;break;case se:if(o&&(C.test(o)||"+"==o||"-"==o||"."==o))d+=o.toLowerCase();else{if(":"!=o){if(n)return T;d="",l=ue,c=0;continue}if(n&&($(e)!=f(J,d)||"file"==d&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void($(e)&&J[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?l=be:$(e)&&i&&i.scheme==e.scheme?l=le:$(e)?l=he:"/"==a[c+1]?(l=ce,c++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Se)}break;case ue:if(!i||i.cannotBeABaseURL&&"#"!=o)return T;if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=Me;break}l="file"==i.scheme?be:fe;continue;case le:if("/"!=o||"/"!=a[c+1]){l=fe;continue}l=pe,c++;break;case ce:if("/"==o){l=ve;break}l=Ee;continue;case fe:if(e.scheme=i.scheme,o==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==o||"\\"==o&&$(e))l=de;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=ke;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=Ee;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=Me}break;case de:if(!$(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=Ee;continue}l=ve}else l=pe;break;case he:if(l=pe,"/"!=o||"/"!=d.charAt(c+1))continue;c++;break;case pe:if("/"!=o&&"\\"!=o){l=ve;continue}break;case ve:if("@"==o){p&&(d="%40"+d),p=!0,s=h(d);for(var g=0;g65535)return O;e.port=$(e)&&x===J[e.scheme]?null:x,d=""}if(n)return;l=_e;continue}return O}d+=o;break;case be:if(e.scheme="file","/"==o||"\\"==o)l=xe;else{if(!i||"file"!=i.scheme){l=Ee;continue}if(o==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",l=ke;else{if("#"!=o){ne(a.slice(c).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),l=Ee;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=Me}}break;case xe:if("/"==o||"\\"==o){l=we;break}i&&"file"==i.scheme&&!ne(a.slice(c).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=Ee;continue;case we:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&te(d))l=Ee;else if(""==d){if(e.host="",n)return;l=_e}else{if(u=z(e,d),u)return u;if("localhost"==e.host&&(e.host=""),n)return;d="",l=_e}continue}d+=o;break;case _e:if($(e)){if(l=Ee,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(l=Ee,"/"!=o))continue}else e.fragment="",l=Me;else e.query="",l=ke;break;case Ee:if(o==r||"/"==o||"\\"==o&&$(e)||!n&&("?"==o||"#"==o)){if(ae(d)?(re(e),"/"==o||"\\"==o&&$(e)||e.path.push("")):ie(d)?"/"==o||"\\"==o&&$(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(o==r||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",l=ke):"#"==o&&(e.fragment="",l=Me)}else d+=Z(o,Y);break;case Se:"?"==o?(e.query="",l=ke):"#"==o?(e.fragment="",l=Me):o!=r&&(e.path[0]+=Z(o,q));break;case ke:n||"#"!=o?o!=r&&("'"==o&&$(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,q)):(e.fragment="",l=Me);break;case Me:o!=r&&(e.fragment+=Z(o,X));break}c++}},Ae=function(e){var t,n,r=c(this,Ae,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=_(r,{type:"URL"});if(void 0!==i)if(i instanceof Ae)t=E(i);else if(n=Te(t={},String(i)),n)throw TypeError(n);if(n=Te(s,o,null,t),n)throw TypeError(n);var u=s.searchParams=new x,l=w(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(u)||null},a||(r.href=Re.call(r),r.origin=Ce.call(r),r.protocol=Le.call(r),r.username=Pe.call(r),r.password=Ie.call(r),r.host=Ne.call(r),r.hostname=De.call(r),r.port=je.call(r),r.pathname=Fe.call(r),r.search=Ue.call(r),r.searchParams=Be.call(r),r.hash=ze.call(r))},Oe=Ae.prototype,Re=function(){var e=E(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",Q(e)&&(l+=n+(r?":"+r:"")+"@"),l+=W(i),null!==a&&(l+=":"+a)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},Ce=function(){var e=E(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&$(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Le=function(){return E(this).scheme+":"},Pe=function(){return E(this).username},Ie=function(){return E(this).password},Ne=function(){var e=E(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},De=function(){var e=E(this).host;return null===e?"":W(e)},je=function(){var e=E(this).port;return null===e?"":String(e)},Fe=function(){var e=E(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=E(this).query;return e?"?"+e:""},Be=function(){return E(this).searchParams},ze=function(){var e=E(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&u(Oe,{href:He(Re,(function(e){var t=E(this),n=String(e),r=Te(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:He(Ce),protocol:He(Le,(function(e){var t=E(this);Te(t,String(e)+":",oe)})),username:He(Pe,(function(e){var t=E(this),n=h(String(e));if(!ee(t)){t.username="";for(var r=0;r1?arguments[1]:void 0,t.length)),r=String(e);return c?c.call(t,r,n):t.slice(n,n+r.length)===r}})},LPSS:function(e,t,n){var r,i,a,o=n("2oRo"),s=n("0Dky"),u=n("xrYK"),l=n("A2ZE"),c=n("G+Rx"),f=n("zBJ4"),d=n("HNyW"),h=o.location,p=o.setImmediate,v=o.clearImmediate,m=o.process,g=o.MessageChannel,y=o.Dispatch,b=0,x={},w="onreadystatechange",_=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},E=function(e){return function(){_(e)}},S=function(e){_(e.data)},k=function(e){o.postMessage(e+"",h.protocol+"//"+h.host)};p&&v||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return x[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete x[e]},"process"==u(m)?r=function(e){m.nextTick(E(e))}:y&&y.now?r=function(e){y.now(E(e))}:g&&!d?(i=new g,a=i.port2,i.port1.onmessage=S,r=l(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(k)||"file:"===h.protocol?r=w in f("script")?function(e){c.appendChild(f("script"))[w]=function(){c.removeChild(this),_(e)}}:function(e){setTimeout(E(e),0)}:(r=k,o.addEventListener("message",S,!1))),e.exports={set:p,clear:v}},LQDL:function(e,t,n){var r,i,a=n("2oRo"),o=n("NC/Y"),s=a.process,u=s&&s.versions,l=u&&u.v8;l?(r=l.split("."),i=r[0]+r[1]):o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},LXxW:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=0,a=[];while(++ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}var B=Object(s["createContext"])(null),z=[],H=[],G=!1;function V(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function W(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var i=V(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function q(e){return e&&e.__esModule?e["default"]:e}function X(e,t){return Object(s["createElement"])(q(e),t)}function Y(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:X,webpack:null,modules:null},t),r=null;function i(){if(!r){var t=new K(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&z.push(i),!G&&"undefined"!==typeof window&&"function"===typeof n.webpack){var a=n.webpack();H.push((function(e){var t,n=U(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return i()}}catch(o){n.e(o)}finally{n.f()}}))}var o=function(e,t){i();var a=Object(s["useContext"])(B),o=Object(E["useSubscription"])(r);return Object(s["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),a&&Array.isArray(n.modules)&&n.modules.forEach((function(e){a(e)})),o.loading||o.error?Object(s["createElement"])(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?n.render(o.loaded,e):null},u=Object(s["forwardRef"])(o);return u.preload=function(){return i()},u.displayName="LoadableComponent",u}var K=function(){function e(t,n){O(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return C(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=k(k({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return k(k({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function Z(e){return Y(V,e)}function J(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return Y(W,e)}function $(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return $(e,t)}))}function Q(e){var t=Z,n={loading:function(e){e.error,e.isLoading;return Object(s["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==M(e))throw new Error("Unexpect arguments ".concat(e));n=k(k({},n),e)}return t(n)}function ee(e,t){if(!e)throw new Error(t)}Z.Map=J,Z.preloadAll=function(){return new Promise((function(e,t){$(z).then(e,t)}))},Z.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return G=!0,t()};$(H,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=Z.preloadReady);var te,ne=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement};function re(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function ie(e){return!!e&&"object"===M(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(te||(te={}));var ae=function(){function e(t){O(this,e),this.validKeys=void 0,this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return C(e,[{key:"register",value:function(e){var t=this;ee(!!e.apply,"register failed, plugin.apply must supplied"),ee(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){ee(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=P(t),r=n[0],i=n.slice(1),a=this.hooks[r]||[];return i.length&&(a=a.map((function(e){try{var t,n=e,r=U(i);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=n[a]}}catch(o){r.e(o)}finally{r.f()}return n}catch(s){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,i=e.initialValue,a=e.args,o=e.async,s=this.getHooks(t)||[];switch(a&&ee("object"===M(a),"applyPlugins failed, args must be plain object."),n){case te.modify:return o?s.reduce(function(){var e=A(Object(r["a"])().mark((function e(n,i){var o;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(ee("function"===typeof i||"object"===M(i)||ie(i),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!ie(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof i){e.next=16;break}if(o=i(n,a),!ie(o)){e.next=13;break}return e.next=10,o;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",o);case 14:e.next=21;break;case 16:if(!ie(i)){e.next=20;break}return e.next=19,i;case 19:i=e.sent;case 20:return e.abrupt("return",k(k({},n),i));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ie(i)?i:Promise.resolve(i)):s.reduce((function(e,n){return ee("function"===typeof n||"object"===M(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,a):k(k({},e),n)}),i);case te.event:return s.forEach((function(e){ee("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(a)}));case te.compose:return function(){return re({fns:s.concat(i),args:a})()}}}}]),e}()},Lw8S:function(e,t){function n(e,t){for(var n=0;nu)i.f(e,n=r[u++],t[n]);return e}},"NC/Y":function(e,t,n){var r=n("0GbY");e.exports=r("navigator","userAgent")||""},NKxu:function(e,t,n){var r=n("lSCD"),i=n("E2jh"),a=n("GoyQ"),o=n("3Fdi"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,h=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(e){if(!a(e)||i(e))return!1;var t=r(e)?h:u;return t.test(o(e))}e.exports=p},NV22:function(e,t,n){var r=n("I+eb"),i=n("glrk"),a=n("4oU/"),o=n("ntOU"),s=n("afO8"),u="Seeded Random",l=u+" Generator",c=s.set,f=s.getterFor(l),d='Math.seededPRNG() argument should have a "seed" field with a finite value.',h=o((function(e){c(this,{type:l,seed:e%2147483647})}),u,(function(){var e=f(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return{value:(1073741823&t)/1073741823,done:!1}}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=i(e).seed;if(!a(t))throw TypeError(d);return new h(t)}})},NaFW:function(e,t,n){var r=n("9d/t"),i=n("P4y1"),a=n("tiKp"),o=a("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},Npjl:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},NqR8:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{isubh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},NykK:function(e,t,n){var r=n("nmnc"),i=n("AP2z"),a=n("KfNM"),o="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function l(e){return null==e?void 0===e?s:o:u&&u in Object(e)?i(e):a(e)}e.exports=l},O741:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},ODXe:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done);o=!0)if(a.push(r.value),t&&a.length===t)break}catch(u){s=!0,i=u}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw i}}return a}}n.d(t,"a",(function(){return s}));var a=n("BsWD");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||Object(a["a"])(e,t)||o()}},"Of+w":function(e,t,n){var r=n("Cwc5"),i=n("Kz5y"),a=r(i,"WeakMap");e.exports=a},P4y1:function(e,t){e.exports={}},P940:function(e,t,n){"use strict";e.exports=function(){var e=arguments.length,t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}},PF2M:function(e,t,n){"use strict";var r=n("67WC"),i=n("UMSQ"),a=n("GC2F"),o=n("ewvW"),s=n("0Dky"),u=r.aTypedArray,l=r.exportTypedArrayMethod,c=s((function(){new Int8Array(1).set({})}));l("set",(function(e){u(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=o(e),s=i(r.length),l=0;if(s+t>n)throw RangeError("Wrong length");while(l=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},Q7Pz:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("Sssf"),s=n("i4U9"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return u(o(a(this)),(function(t,n){if(s(n,e))return u.stop()}),void 0,!0,!0).stopped}})},Q9SF:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},QFcT:function(e,t,n){var r=n("I+eb"),i=Math.hypot,a=Math.abs,o=Math.sqrt,s=!!i&&i(1/0,NaN)!==1/0;r({target:"Math",stat:!0,forced:s},{hypot:function(e,t){var n,r,i=0,s=0,u=arguments.length,l=0;while(s0?(r=n/l,i+=r*r):i+=n;return l===1/0?1/0:l*o(i)}})},QGkA:function(e,t,n){var r=n("RNIs");r("flat")},QGke:function(e,t,n){var r=n("z01/")["default"];function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(O){c=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),o=new M(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return A()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=f;var h={};function p(){}function v(){}function m(){}var g={};c(g,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==n&&a.call(b,s)&&(g=b);var x=m.prototype=p.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,s,u){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},QIpd:function(e,t,n){var r=n("xrYK");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},QiU6:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["Collada-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-collada"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-collada","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d Collada"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["Collada-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},QkVE:function(e,t,n){var r=n("EpBk");function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},Qo9l:function(e,t,n){var r=n("2oRo");e.exports=r},QoRX:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,3);return!u(n,(function(e,n){if(!r(n,e,t))return u.stop()}),void 0,!0,!0).stopped}})},R5yR:function(e,t,n){var r=n("9xmf"),i=n("rhT+"),a=n("mGKP"),o=n("XWE6");function s(e){return r(e)||i(e)||a(e)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},RK3t:function(e,t,n){var r=n("0Dky"),i=n("xrYK"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},RN6c:function(e,t,n){var r=n("2oRo");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},RNIs:function(e,t,n){var r=n("tiKp"),i=n("fHMY"),a=n("m/L8"),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},ROdP:function(e,t,n){var r=n("hh1v"),i=n("xrYK"),a=n("tiKp"),o=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},RZMt:function(e,t,n){},Rm1S:function(e,t,n){"use strict";var r=n("14Sl"),i=n("glrk"),a=n("UMSQ"),o=n("HYAF"),s=n("iqWW"),u=n("FMNM");r("match",1,(function(e,t,n){return[function(t){var n=o(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),l=String(this);if(!o.global)return u(o,l);var c=o.unicode;o.lastIndex=0;var f,d=[],h=0;while(null!==(f=u(o,l))){var p=String(f[0]);d[h]=p,""===p&&(o.lastIndex=s(l,a(o.lastIndex),c)),h++}return 0===h?null:d}]}))},SEBh:function(e,t,n){var r=n("glrk"),i=n("HAuM"),a=n("tiKp"),o=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},SL6q:function(e,t,n){var r=n("I+eb"),i=n("voyM"),a=n("vo4V");r({target:"Math",stat:!0},{fscale:function(e,t,n,r,o){return a(i(e,t,n,r,o))}})},STAE:function(e,t,n){var r=n("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},SYor:function(e,t,n){"use strict";var r=n("I+eb"),i=n("WKiH").trim,a=n("yNLB");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return i(this)}})},SfRM:function(e,t,n){var r=n("YESw");function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},Si40:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=o(this),n=new(u(t,a("Set")))(t),r=s(n["delete"]),i=s(n.add);return l(e,(function(e){r.call(n,e)||i.call(n,e)})),n}})},SpvK:function(e,t,n){var r=n("dOgj");r("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},Sssf:function(e,t,n){var r=n("xDBR"),i=n("mh/w");e.exports=r?i:function(e){return Map.prototype.entries.call(e)}},SuFq:function(e,t,n){var r=n("I+eb"),i=n("0GbY"),a=n("HAuM"),o=n("glrk"),s=n("hh1v"),u=n("fHMY"),l=n("BTho"),c=n("0Dky"),f=i("Reflect","construct"),d=c((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!c((function(){f((function(){}))})),p=d||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(h&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var i=n.prototype,c=u(s(i)?i:Object.prototype),p=Function.apply.call(e,c,t);return s(p)?p:c}})},T63A:function(e,t,n){var r=n("I+eb"),i=n("b1O7").entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},TJ79:function(e,t,n){var r=n("I+eb"),i=n("P940");r({target:"WeakMap",stat:!0},{of:i})},TNol:function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n("q1tI"),i=n("MNnm"),a=Object(i["a"])()?r["useLayoutEffect"]:r["useEffect"];t["a"]=a;var o=function(e,t){var n=r["useRef"](!0);a((function(){if(!n.current)return e()}),t),a((function(){return n.current=!1,function(){n.current=!0}}),[])}},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},TSYQ:function(e,t,n){var r,i;(function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t-1,n&&(t=t.replace(/y/g,"")));var s=o(_?new y(e,t):y(e,t),r?this:b,k);return E&&n&&p(s,{sticky:n}),s},M=function(e){e in k||s(k,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},T=u(y),A=0;while(T.length>A)M(T[A++]);b.constructor=k,k.prototype=b,d(i,"RegExp",k)}v("RegExp")},TWQb:function(e,t,n){var r=n("/GqU"),i=n("UMSQ"),a=n("I8vh"),o=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),c=a(o,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},TZCg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("DMt2").start,a=n("mgyK");r({target:"String",proto:!0,forced:a},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},TeQF:function(e,t,n){"use strict";var r=n("I+eb"),i=n("tycR").filter,a=n("Hd5f"),o=n("rkAj"),s=a("filter"),u=o("filter");r({target:"Array",proto:!0,forced:!s||!u},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(e,t,n){"use strict";var r=n("A2ZE"),i=n("ewvW"),a=n("m92n"),o=n("6VoE"),s=n("UMSQ"),u=n("hBjN"),l=n("NaFW");e.exports=function(e){var t,n,c,f,d,h,p=i(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=l(p),x=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&o(b))for(t=s(p.length),n=new v(t);t>x;x++)h=y?g(p[x],x):p[x],u(n,x,h);else for(f=b.call(p),d=f.next,n=new v;!(c=d.call(f)).done;x++)h=y?a(f,g,[c.value,x],!0):c.value,u(n,x,h);return n.length=x,n}},Thag:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("Sssf"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop()}),void 0,!0,!0).stopped}})},ToJy:function(e,t,n){"use strict";var r=n("I+eb"),i=n("HAuM"),a=n("ewvW"),o=n("0Dky"),s=n("pkCn"),u=[],l=u.sort,c=o((function(){u.sort(void 0)})),f=o((function(){u.sort(null)})),d=s("sort"),h=c||!f||!d;r({target:"Array",proto:!0,forced:h},{sort:function(e){return void 0===e?l.call(a(this)):l.call(a(this),i(e))}})},Tskq:function(e,t,n){"use strict";var r=n("bWFh"),i=n("ZWaQ");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},Ty5D:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return z})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return P})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return q})),n.d(t,"l",(function(){return X})),n.d(t,"m",(function(){return Y})),n.d(t,"n",(function(){return G}));var r=n("dI71"),i=n("q1tI"),a=n.n(i),o=n("YS25"),s=n("tEiQ"),u=n("9R94"),l=n("wx14"),c=n("vRGJ"),f=n.n(c),d=(n("TOwV"),n("zLVn")),h=n("2mql"),p=n.n(h),v=function(e){var t=Object(s["a"])();return t.displayName=e,t},m=v("Router-History"),g=function(e){var t=Object(s["a"])();return t.displayName=e,t},y=g("Router"),b=function(e){function t(t){var n;return n=e.call(this,t)||this,n.state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r["a"])(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return a.a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.a.Component);var x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?i(r(e),9007199254740991):0}},"UNi/":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n]*>)/g,v=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var i=u(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var a=n(t,e,this,r);if(a.done)return a.value}var u=i(e),h=String(this),p="function"===typeof r;p||(r=String(r));var v=u.global;if(v){var w=u.unicode;u.lastIndex=0}var _=[];while(1){var E=c(u,h);if(null===E)break;if(_.push(E),!v)break;var S=String(E[0]);""===S&&(u.lastIndex=l(h,o(u.lastIndex),w))}for(var k="",M=0,T=0;T<_.length;T++){E=_[T];for(var A=String(E[0]),O=f(d(s(E.index),h.length),0),R=[],C=1;C=M&&(k+=h.slice(M,O)+I,M=O+A.length)}return k+h.slice(M)}];function x(e,n,r,i,o,s){var u=r+e.length,l=i.length,c=v;return void 0!==o&&(o=a(o),c=p),t.call(s,c,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=o[a.slice(1,-1)];break;default:var c=+a;if(0===c)return t;if(c>l){var f=h(c/10);return 0===f?t:f<=l?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}s=i[c-1]}return void 0===s?"":s}))}}))},Uydy:function(e,t,n){var r=n("I+eb"),i=n("HsHA"),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2,l=!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0;r({target:"Math",stat:!0,forced:l},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?o(e)+u:i(e-1+s(e-1)*s(e+1))}})},UzNg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ntOU"),a=n("HYAF"),o=n("afO8"),s=n("ZUd8"),u=s.codeAt,l=s.charAt,c="String Iterator",f=o.set,d=o.getterFor(c),h=i((function(e){f(this,{type:c,string:e,index:0})}),"String",(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=l(n,r),t.index+=e.length,{value:{codePoint:u(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new h(String(a(this)))}})},"V/vL":function(e,t,n){"use strict";n.r(t),n.d(t,"matchRoutes",(function(){return s})),n.d(t,"renderRoutes",(function(){return u}));var r=n("Ty5D"),i=n("wx14"),a=n("q1tI"),o=n.n(a);function s(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var i=e.path?Object(r["i"])(t,e):n.length?n[n.length-1].match:r["e"].computeRootMatch(t);return i&&(n.push({route:e,match:i}),e.routes&&s(e.routes,t,n)),i})),n}function u(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.a.createElement(r["g"],n,e.map((function(e,n){return o.a.createElement(r["d"],{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(i["a"])({},n,{},t,{route:e})):o.a.createElement(e.component,Object(i["a"])({},n,t,{route:e}))}})}))):null}},V6Ve:function(e,t,n){var r=n("kekF"),i=r(Object.keys,Object);e.exports=i},V93i:function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},VOz1:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("HAuM"),s=n("Sssf"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n,a){r?(r=!1,i=a):i=e(i,a,n,t)}),void 0,!0,!0),r)throw TypeError("Reduce of empty map with no initial value");return i}})},VTBJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("rePB");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},VaNO:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},Vnov:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("Sssf"),s=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(o(a(this)),(function(t,n){if(n===e)return s.stop(t)}),void 0,!0,!0).result}})},VpIT:function(e,t,n){var r=n("xDBR"),i=n("xs3f");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var r=n("0GbY"),i=n("JBy8"),a=n("dBg+"),o=n("glrk");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},"W/eh":function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("6x0u"),o=n("ewvW"),s=n("wE6v"),u=n("4WOD"),l=n("Bs8V").f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=o(this),r=s(e,!0);do{if(t=l(n,r))return t.set}while(n=u(n))}})},WFqU:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("IyRk"))},WGBp:function(e,t,n){var r=n("xDBR"),i=n("mh/w");e.exports=r?i:function(e){return Set.prototype.values.call(e)}},WJkJ:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(e,t,n){var r=n("HYAF"),i=n("WJkJ"),a="["+i+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),u=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},WPzJ:function(e,t,n){var r=n("I+eb"),i=n("voyM");r({target:"Math",stat:!0},{scale:i})},WWur:function(e,t,n){"use strict";var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=void 0===n?document.body:n,i=document.createElement("textarea"),a=document.activeElement;i.value=e,i.setAttribute("readonly",""),i.style.contain="strict",i.style.position="absolute",i.style.left="-9999px",i.style.fontSize="12pt";var o=document.getSelection(),s=!1;o.rangeCount>0&&(s=o.getRangeAt(0)),r.append(i),i.select(),i.selectionStart=0,i.selectionEnd=e.length;var u=!1;try{u=document.execCommand("copy")}catch(l){}return i.remove(),s&&(o.removeAllRanges(),o.addRange(s)),a&&a.focus(),u};e.exports=r,e.exports["default"]=r},WbBG:function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},WjRb:function(e,t,n){var r=n("ROdP");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},X7LM:function(e,t,n){"use strict";var r=2147483647,i=36,a=1,o=26,s=38,u=700,l=72,c=128,f="-",d=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",v=i-a,m=Math.floor,g=String.fromCharCode,y=function(e){var t=[],n=0,r=e.length;while(n=55296&&i<=56319&&n>1,e+=m(e/t);e>v*o>>1;r+=i)e=m(e/v);return m(r+(v+1)*e/(e+s))},w=function(e){var t=[];e=y(e);var n,s,u=e.length,d=c,h=0,v=l;for(n=0;n=d&&sm((r-h)/S))throw RangeError(p);for(h+=(E-d)*S,d=E,n=0;nr)throw RangeError(p);if(s==d){for(var k=h,M=i;;M+=i){var T=M<=v?a:M>=v+o?o:M-v;if(k1?arguments[1]:void 0),t}})},Xi7e:function(e,t,n){var r=n("KMkd"),i=n("adU4"),a=n("tMB7"),o=n("+6XX"),s=n("Z8oC");function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=u(e,"#"),i=r(n,2),a=i[0],o=i[1];return Object.assign({url:a.split("?")[0]||"",query:w(b(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:v(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=g(e.url).split("?")[0]||"",i=t.extract(e.url),a=t.parse(i,{sort:!1}),o=Object.assign(a,e.query),s=t.stringify(o,n);s&&(s="?".concat(s));var u=y(e.url);return e.fragmentIdentifier&&(u="#".concat(p(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(u)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var i=t.parseUrl(e,r),a=i.url,o=i.query,s=i.fragmentIdentifier;return t.stringifyUrl({url:a,query:l(o,n),fragmentIdentifier:s},r)},t.exclude=function(e,n,r){var i=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,i,r)}},YL0P:function(e,t,n){"use strict";var r=n("2oRo"),i=n("67WC"),a=n("4mDm"),o=n("tiKp"),s=o("iterator"),u=r.Uint8Array,l=a.values,c=a.keys,f=a.entries,d=i.aTypedArray,h=i.exportTypedArrayMethod,p=u&&u.prototype[s],v=!!p&&("values"==p.name||void 0==p.name),m=function(){return l.call(d(this))};h("entries",(function(){return f.call(d(this))})),h("keys",(function(){return c.call(d(this))})),h("values",m,!v),h(s,m,!v)},YNrV:function(e,t,n){"use strict";var r=n("g6v/"),i=n("0Dky"),a=n("33Wh"),o=n("dBg+"),s=n("0eef"),u=n("ewvW"),l=n("RK3t"),c=Object.assign,f=Object.defineProperty;e.exports=!c||i((function(){if(r&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||a(c({},t)).join("")!=i}))?function(e,t){var n=u(e),i=arguments.length,c=1,f=o.f,d=s.f;while(i>c){var h,p=l(arguments[c++]),v=f?a(p).concat(f(p)):a(p),m=v.length,g=0;while(m>g)h=v[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},YS25:function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return B})),n.d(t,"d",(function(){return H})),n.d(t,"c",(function(){return w})),n.d(t,"f",(function(){return _})),n.d(t,"e",(function(){return x}));var r=n("wx14");function i(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,i=e.length;r=0;d--){var h=o[d];"."===h?a(o,d):".."===h?(a(o,d),f++):f&&(a(o,d),f--)}if(!l)for(;f--;f)o.unshift("..");!l||""===o[0]||o[0]&&i(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}var s=o;function u(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function l(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return l(e,t[n])}));if("object"===typeof e||"object"===typeof t){var n=u(e),r=u(t);return n!==e||r!==t?l(n,r):Object.keys(Object.assign({},e,t)).every((function(n){return l(e[n],t[n])}))}return!1}var c=l,f=n("YJ9l"),d=n.n(f),h=n("9R94");function p(e){return"/"===e.charAt(0)?e:"/"+e}function v(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function g(e,t){return m(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function x(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function w(e,t,n,i){var a;"string"===typeof e?(a=b(e),a.query=a.search?d.a.parse(a.search):{},a.state=t):(a=Object(r["a"])({},e),void 0===a.pathname&&(a.pathname=""),a.search?("?"!==a.search.charAt(0)&&(a.search="?"+a.search),a.query=d.a.parse(a.search)):(a.search=a.query?d.a.stringify(a.query):"",a.query=a.query||{}),a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(a.key=n),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=s(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function _(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function E(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)}var r=[];function i(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter((function(e){return e!==n}))}}function a(){for(var e=arguments.length,t=new Array(e),n=0;nn?a.splice(n,a.length-n,i):a.push(i),f({action:r,location:i,index:n,entries:a})}}))}function g(e,t){var r="REPLACE",i=w(e,t,d(),T.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(T.entries[T.index]=i,f({action:r,location:i}))}))}function y(e){var t=z(T.index+e,0,T.entries.length-1),r="POP",i=T.entries[t];c.confirmTransitionTo(i,r,n,(function(e){e?f({action:r,location:i,index:t}):f()}))}function b(){y(-1)}function _(){y(1)}function S(e){var t=T.index+e;return t>=0&&t>8&255]},F=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},U=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return I(e,23,4)},z=function(e){return I(e,52,8)},H=function(e,t){g(e[k],t,{get:function(){return w(this)[t]}})},G=function(e,t,n,r){var i=d(n),a=w(e);if(i+t>a.byteLength)throw P(T);var o=w(a.buffer).bytes,s=i+a.byteOffset,u=o.slice(s,s+t);return r?u:u.reverse()},V=function(e,t,n,r,i,a){var o=d(n),s=w(e);if(o+t>s.byteLength)throw P(T);for(var u=w(s.buffer).bytes,l=o+s.byteOffset,c=r(+i),f=0;fY;)(W=X[Y++])in O||o(O,W,A[W]);q.constructor=O}v&&p(C)!==L&&v(C,L);var K=new R(new O(2)),Z=C.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(C,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},{unsafe:!0})}else O=function(e){l(this,O,E);var t=d(e);_(this,{bytes:y.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},R=function(e,t,n){l(this,R,S),l(e,O,S);var r=w(e).byteLength,a=c(t);if(a<0||a>r)throw P("Wrong offset");if(n=void 0===n?r-a:f(n),a+n>r)throw P(M);_(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(H(O,"byteLength"),H(R,"buffer"),H(R,"byteLength"),H(R,"byteOffset")),s(R[k],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return U(G(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return U(G(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return N(G(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return N(G(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,D,t)},setUint8:function(e,t){V(this,1,e,D,t)},setInt16:function(e,t){V(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,z,t,arguments.length>2?arguments[2]:void 0)}});b(O,E),b(R,S),e.exports={ArrayBuffer:O,DataView:R}},YrtM:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("q1tI");function i(e,t,n){var i=r["useRef"]({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}},YzKT:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["rotation-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u65cb\u8f6c\u6a21\u578b"},i.a.createElement(a["AnchorLink"],{to:"#\u65cb\u8f6c\u6a21\u578b","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u65cb\u8f6c\u6a21\u578b"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["rotation-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},Z0cm:function(e,t){var n=Array.isArray;e.exports=n},Z4nd:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("fXLg");r({target:"WeakSet",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},Z8oC:function(e,t,n){var r=n("y1pI");function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},ZUd8:function(e,t,n){var r=n("ppGB"),i=n("HYAF"),a=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},ZWaQ:function(e,t,n){"use strict";var r=n("m/L8").f,i=n("fHMY"),a=n("4syw"),o=n("A2ZE"),s=n("GarU"),u=n("ImZN"),l=n("fdAy"),c=n("JiZb"),f=n("g6v/"),d=n("8YOa").fastKey,h=n("afO8"),p=h.set,v=h.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,c,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&u(r,e[l],e,n)})),h=v(t),m=function(e,t,n){var r,i,a=h(e),o=g(e,t);return o?o.value=n:(a.last=o={index:i=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},g=function(e,t){var n,r=h(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(c.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=g(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(c.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(c.prototype,"size",{get:function(){return h(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);l(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},ZY7T:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=o(this),n=new(u(t,a("Set"))),r=s(t.has),i=s(n.add);return l(e,(function(e){r.call(t,e)&&i.call(n,e)})),n}})},ZfDv:function(e,t,n){var r=n("hh1v"),i=n("6LWA"),a=n("tiKp"),o=a("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[o],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},Zkgb:function(e,t,n){},Zm9Q:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("q1tI"),i=n.n(r),a=n("TOwV");function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):Object(a["isFragment"])(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))})),n}},ZsH6:function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=n("4WOD"),s=i.has,u=i.get,l=i.toKey,c=function(e,t,n){var r=s(e,t,n);if(r)return u(e,t,n);var i=o(t);return null!==i?c(e,i,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:l(arguments[2]);return c(e,a(t),n)}})},Zxc8:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("wx14"),o=n("rePB"),s=n("ODXe"),u=n("U8pU"),l=n("Ff2n"),c=n("VTBJ"),f=n("TSYQ"),d=n.n(f),h=n("Zm9Q"),p=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};function v(e){var t=r["useRef"]();t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),i=0;id&&hu+v){n=r-1;break}}for(var a=0,c=t-1;c>=0;c-=1){var f=e.get(l[c].key)||C;if(f[s]w,Me=Object(r["useMemo"])((function(){var e=u;return Ee?e=null===N&&L?u:u.slice(0,Math.min(u.length,j/m)):"number"===typeof w&&(e=u.slice(0,w)),e}),[u,m,N,w,Ee]),Te=Object(r["useMemo"])((function(){return Ee?u.slice(ve+1):u.slice(Me.length)}),[u,Me,Ee,ve]),Ae=Object(r["useCallback"])((function(e,t){var n;return"function"===typeof p?p(e):null!==(n=p&&(null===e||void 0===e?void 0:e[p]))&&void 0!==n?n:t}),[p]),Oe=Object(r["useCallback"])(f||function(e){return e},[f]);function Re(e,t,n){(he!==e||void 0!==t&&t!==le)&&(pe(e),n||(be(ej){Re(r-1,e-i-ae+te);break}}k&&Ne(0)+ae>j&&ce(null)}}),[j,H,te,ae,Ae,Me]);var De=ye&&!!Te.length,je={};null!==le&&Ee&&(je={position:"absolute",left:le,top:0});var Fe,Ue={prefixCls:xe,responsive:Ee,component:A,invalidate:Se},Be=h?function(e,t){var n=Ae(e,t);return r["createElement"](K.Provider,{key:n,value:Object(c["a"])(Object(c["a"])({},Ue),{},{order:t,item:e,itemKey:n,registerSize:Le,display:t<=ve})},h(e,t))}:function(e,t){var n=Ae(e,t);return r["createElement"](B,Object(a["a"])({},Ue,{order:t,key:n,item:e,renderItem:Oe,itemKey:n,registerSize:Le,display:t<=ve}))},ze={order:De?ve:Number.MAX_SAFE_INTEGER,className:"".concat(xe,"-rest"),registerSize:Pe,display:De};if(S)S&&(Fe=r["createElement"](K.Provider,{value:Object(c["a"])(Object(c["a"])({},Ue),ze)},S(Te)));else{var He=_||$;Fe=r["createElement"](B,Object(a["a"])({},Ue,ze),"function"===typeof He?He(Te):He)}var Ge=r["createElement"](T,Object(a["a"])({className:d()(!Se&&i,x),style:b,ref:t},R),Me.map(Be),ke?Fe:null,k&&r["createElement"](B,Object(a["a"])({},Ue,{responsive:_e,responsiveDisabled:!Ee,order:ve,className:"".concat(xe,"-suffix"),registerSize:Ie,display:!0,style:je}),k));return _e&&(Ge=r["createElement"](E["a"],{onResize:Ce,disabled:!Ee},Ge)),Ge}var ee=r["forwardRef"](Q);ee.displayName="Overflow",ee.Item=X,ee.RESPONSIVE=Z,ee.INVALIDATE=J;var te=ee,ne=te,re=n("1OyB"),ie=n("vuIU"),ae=n("Ji7U"),oe=n("LK+K"),se=n("bT9E"),ue=n("YrtM"),le=["children","locked"],ce=r["createContext"](null);function fe(e,t){var n=Object(c["a"])({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function de(e){var t=e.children,n=e.locked,i=Object(l["a"])(e,le),a=r["useContext"](ce),o=Object(ue["a"])((function(){return fe(a,i)}),[a,i],(function(e,t){return!n&&(e[0]!==t[0]||!I()(e[1],t[1]))}));return r["createElement"](ce.Provider,{value:o},t)}function he(e,t,n,i){var a=r["useContext"](ce),o=a.activeKey,s=a.onActive,u=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),s(e)},l.onMouseLeave=function(t){null===i||void 0===i||i({key:e,domEvent:t}),u(e)}),l}var pe=["item"];function ve(e){var t=e.item,n=Object(l["a"])(e,pe);return Object.defineProperty(n,"item",{get:function(){return Object(N["a"])(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function me(e){var t,n=e.icon,i=e.props,a=e.children;return t="function"===typeof n?r["createElement"](n,Object(c["a"])({},i)):n,t||a||null}function ge(e){var t=r["useContext"](ce),n=t.mode,i=t.rtl,a=t.inlineIndent;if("inline"!==n)return null;var o=e;return i?{paddingRight:o*a}:{paddingLeft:o*a}}var ye=[],be=r["createContext"](null);function xe(){return r["useContext"](be)}var we=r["createContext"](ye);function _e(e){var t=r["useContext"](we);return r["useMemo"]((function(){return void 0!==e?[].concat(Object(w["a"])(t),[e]):t}),[t,e])}var Ee=r["createContext"](null),Se=r["createContext"](null);function ke(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Me(e){var t=r["useContext"](Se);return ke(t,e)}var Te=r["createContext"]({}),Ae=Te,Oe=["title","attribute","elementRef"],Re=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ce=["active"],Le=function(e){Object(ae["a"])(n,e);var t=Object(oe["a"])(n);function n(){return Object(re["a"])(this,n),t.apply(this,arguments)}return Object(ie["a"])(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,i=e.elementRef,o=Object(l["a"])(e,Oe),s=Object(se["a"])(o,["eventKey"]);return Object(N["a"])(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r["createElement"](ne.Item,Object(a["a"])({},n,{title:"string"===typeof t?t:void 0},s,{ref:i}))}}]),n}(r["Component"]),Pe=function(e){var t,n=e.style,i=e.className,s=e.eventKey,u=(e.warnKey,e.disabled),f=e.itemIcon,h=e.children,p=e.role,v=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,y=e.onKeyDown,b=e.onFocus,x=Object(l["a"])(e,Re),_=Me(s),E=r["useContext"](ce),S=E.prefixCls,k=E.onItemClick,T=E.disabled,A=E.overflowDisabled,O=E.itemIcon,R=E.selectedKeys,C=E.onActive,L=r["useContext"](Ae),P=L._internalRenderMenuItem,I="".concat(S,"-item"),N=r["useRef"](),D=r["useRef"](),j=T||u,F=_e(s);var U=function(e){return{key:s,keyPath:Object(w["a"])(F).reverse(),item:N.current,domEvent:e}},B=f||O,z=he(s,j,v,m),H=z.active,G=Object(l["a"])(z,Ce),V=R.includes(s),W=ge(F.length),q=function(e){if(!j){var t=U(e);null===g||void 0===g||g(ve(t)),k(t)}},X=function(e){if(null===y||void 0===y||y(e),e.which===M["a"].ENTER){var t=U(e);null===g||void 0===g||g(ve(t)),k(t)}},Y=function(e){C(s),null===b||void 0===b||b(e)},K={};"option"===e.role&&(K["aria-selected"]=V);var Z=r["createElement"](Le,Object(a["a"])({ref:N,elementRef:D,role:null===p?"none":p||"menuitem",tabIndex:u?null:-1,"data-menu-id":A&&_?null:_},x,G,K,{component:"li","aria-disabled":u,style:Object(c["a"])(Object(c["a"])({},W),n),className:d()(I,(t={},Object(o["a"])(t,"".concat(I,"-active"),H),Object(o["a"])(t,"".concat(I,"-selected"),V),Object(o["a"])(t,"".concat(I,"-disabled"),j),t),i),onClick:q,onKeyDown:X,onFocus:Y}),h,r["createElement"](me,{props:Object(c["a"])(Object(c["a"])({},e),{},{isSelected:V}),icon:B}));return P&&(Z=P(Z,e,{selected:V})),Z};function Ie(e){var t=e.eventKey,n=xe(),i=_e(t);return r["useEffect"]((function(){if(n)return n.registerPath(t,i),function(){n.unregisterPath(t,i)}}),[i]),n?null:r["createElement"](Pe,e)}var Ne=Ie,De=["label","children","key","type"];function je(e,t){return Object(h["a"])(e).map((function(e,n){if(r["isValidElement"](e)){var i,a,o=e.key,s=null!==(i=null===(a=e.props)||void 0===a?void 0:a.eventKey)&&void 0!==i?i:o,u=null===s||void 0===s;u&&(s="tmp_key-".concat([].concat(Object(w["a"])(t),[n]).join("-")));var l={key:s,eventKey:s};return r["cloneElement"](e,l)}return e}))}function Fe(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(u["a"])(e)){var n=e.label,i=e.children,o=e.key,s=e.type,c=Object(l["a"])(e,De),f=null!==o&&void 0!==o?o:"tmp-".concat(t);return i||"group"===s?"group"===s?r["createElement"](ti,Object(a["a"])({key:f},c,{title:n}),Fe(i)):r["createElement"](wr,Object(a["a"])({key:f},c,{title:n}),Fe(i)):"divider"===s?r["createElement"](ni,Object(a["a"])({key:f},c)):r["createElement"](Ne,Object(a["a"])({key:f},c),n)}return null})).filter((function(e){return e}))}function Ue(e,t,n){var r=e;return t&&(r=Fe(t)),je(r,n)}function Be(e){var t=r["useRef"](e);t.current=e;var n=r["useCallback"]((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function vn(e,t,n,r){var i=ln.clone(e),a={width:t.width,height:t.height};return r.adjustX&&i.left=n.left&&i.left+a.width>n.right&&(a.width-=i.left+a.width-n.right),r.adjustX&&i.left+a.width>n.right&&(i.left=Math.max(n.right-a.width,n.left)),r.adjustY&&i.top=n.top&&i.top+a.height>n.bottom&&(a.height-=i.top+a.height-n.bottom),r.adjustY&&i.top+a.height>n.bottom&&(i.top=Math.max(n.bottom-a.height,n.top)),ln.mix(i,a)}function mn(e){var t,n,r;if(ln.isWindow(e)||9===e.nodeType){var i=ln.getWindow(e);t={left:ln.getWindowScrollLeft(i),top:ln.getWindowScrollTop(i)},n=ln.viewportWidth(i),r=ln.viewportHeight(i)}else t=ln.offset(e),n=ln.outerWidth(e),r=ln.outerHeight(e);return t.width=n,t.height=r,t}function gn(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return"c"===n?s+=a/2:"b"===n&&(s+=a),"c"===r?o+=i/2:"r"===r&&(o+=i),{left:o,top:s}}function yn(e,t,n,r,i){var a=gn(t,n[1]),o=gn(e,n[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function bn(e,t,n){return e.leftn.right}function xn(e,t,n){return e.topn.bottom}function wn(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function On(e,t,n){var r=n.target||t,i=mn(r),a=!An(r,n.overflow&&n.overflow.alwaysByViewport);return Tn(e,i,n,a)}function Rn(e,t,n){var r,i,a=ln.getDocument(e),o=a.defaultView||a.parentWindow,s=ln.getWindowScrollLeft(o),u=ln.getWindowScrollTop(o),l=ln.viewportWidth(o),c=ln.viewportHeight(o);r="pageX"in t?t.pageX:s+t.clientX,i="pageY"in t?t.pageY:u+t.clientY;var f={left:r,top:i,width:0,height:0},d=r>=0&&r<=s+l&&i>=0&&i<=u+c,h=[n.points[0],"cc"];return Tn(e,f,ct(ct({},n),{},{points:h}),d)}On.__getOffsetParent=fn,On.__getVisibleRectForElement=pn;var Cn=n("Y+p1"),Ln=n.n(Cn),Pn=n("bdgK");function In(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Nn(e,t){e!==document.activeElement&&Ye(t,e)&&"function"===typeof e.focus&&e.focus()}function Dn(e,t){var n=null,r=null;function i(e){var i=Object(s["a"])(e,1),a=i[0].target;if(document.documentElement.contains(a)){var o=a.getBoundingClientRect(),u=o.width,l=o.height,c=Math.floor(u),f=Math.floor(l);n===c&&r===f||Promise.resolve().then((function(){t({width:c,height:f})})),n=c,r=f}}var a=new Pn["a"](i);return e&&a.observe(e),function(){a.disconnect()}}var jn=function(e,t){var n=i.a.useRef(!1),r=i.a.useRef(null);function a(){window.clearTimeout(r.current)}function o(i){if(a(),n.current&&!0!==i)r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}}return[o,function(){n.current=!1,a()}]};function Fn(e){return"function"!==typeof e?null:e()}function Un(e){return"object"===Object(u["a"])(e)&&e?e:null}var Bn=function(e,t){var n=e.children,r=e.disabled,a=e.target,o=e.align,u=e.onAlign,l=e.monitorWindowResize,c=e.monitorBufferTime,f=void 0===c?0:c,d=i.a.useRef({}),h=i.a.useRef(),p=i.a.Children.only(n),v=i.a.useRef({});v.current.disabled=r,v.current.target=a,v.current.align=o,v.current.onAlign=u;var m=jn((function(){var e=v.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign;if(!t&&n){var a,o=h.current,s=Fn(n),u=Un(n);d.current.element=s,d.current.point=u,d.current.align=r;var l=document,c=l.activeElement;return s&&ut(s)?a=On(o,s,r):u&&(a=Rn(o,u,r)),Nn(c,o),i&&a&&i(o,a),!0}return!1}),f),g=Object(s["a"])(m,2),y=g[0],b=g[1],x=i.a.useRef({cancel:function(){}}),w=i.a.useRef({cancel:function(){}});i.a.useEffect((function(){var e=Fn(a),t=Un(a);h.current!==w.current.element&&(w.current.cancel(),w.current.element=h.current,w.current.cancel=Dn(h.current,y)),d.current.element===e&&In(d.current.point,t)&&Ln()(d.current.align,o)||(y(),x.current.element!==e&&(x.current.cancel(),x.current.element=e,x.current.cancel=Dn(e,y)))})),i.a.useEffect((function(){r?b():y()}),[r]);var _=i.a.useRef(null);return i.a.useEffect((function(){l?_.current||(_.current=Je(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)}),[l]),i.a.useEffect((function(){return function(){x.current.cancel(),w.current.cancel(),_.current&&_.current.remove(),b()}}),[]),i.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),i.a.isValidElement(p)&&(p=i.a.cloneElement(p,{ref:Object(Ze["a"])(p.ref,h)})),p},zn=i.a.forwardRef(Bn);zn.displayName="Align";var Hn=zn,Gn=Hn;function Vn(){Vn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),o=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return M()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};s(v,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==t&&n.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var f=l.arg,d=f.value;return d&&"object"==Object(u["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){f.value=e,o(f)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Wn(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function qn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Wn(a,r,i,o,s,"next",e)}function s(e){Wn(a,r,i,o,s,"throw",e)}o(void 0)}))}}var Xn=["measure","alignPre","align",null,"motion"],Yn=function(e,t){var n=Object(y["a"])(null),i=Object(s["a"])(n,2),a=i[0],o=i[1],u=Object(r["useRef"])();function l(e){o(e,!0)}function c(){_["a"].cancel(u.current)}function f(e){c(),u.current=Object(_["a"])((function(){l((function(e){switch(a){case"align":return"motion";case"motion":return"stable";default:}return e})),null===e||void 0===e||e()}))}return Object(r["useEffect"])((function(){l("measure")}),[e]),Object(r["useEffect"])((function(){switch(a){case"measure":t();break;default:}a&&(u.current=Object(_["a"])(qn(Vn().mark((function e(){var t,n;return Vn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=Xn.indexOf(a),n=Xn[t+1],n&&-1!==t&&l(n);case 3:case"end":return e.stop()}}),e)})))))}),[a]),Object(r["useEffect"])((function(){return function(){c()}}),[]),[a,f]},Kn=function(e){var t=r["useState"]({width:0,height:0}),n=Object(s["a"])(t,2),i=n[0],a=n[1];function o(e){a({width:e.offsetWidth,height:e.offsetHeight})}var u=r["useMemo"]((function(){var t={};if(e){var n=i.width,r=i.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,i]);return[u,o]},Zn=r["forwardRef"]((function(e,t){var n=e.visible,i=e.prefixCls,o=e.className,u=e.style,l=e.children,f=e.zIndex,h=e.stretch,p=e.destroyPopupOnHide,v=e.forceRender,m=e.align,y=e.point,b=e.getRootDomNode,x=e.getClassNameFromAlign,w=e.onAlign,_=e.onMouseEnter,E=e.onMouseLeave,S=e.onMouseDown,k=e.onTouchStart,M=e.onClick,T=Object(r["useRef"])(),A=Object(r["useRef"])(),O=Object(r["useState"])(),R=Object(s["a"])(O,2),C=R[0],L=R[1],P=Kn(h),I=Object(s["a"])(P,2),N=I[0],D=I[1];function j(){h&&D(b())}var F=Yn(n,j),U=Object(s["a"])(F,2),B=U[0],z=U[1],H=Object(r["useState"])(0),G=Object(s["a"])(H,2),V=G[0],W=G[1],q=Object(r["useRef"])();function X(){return y||b}function Y(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function K(e,t){var n=x(t);C!==n&&L(n),W((function(e){return e+1})),"align"===B&&(null===w||void 0===w||w(e,t))}Object(g["a"])((function(){"alignPre"===B&&W(0)}),[B]),Object(g["a"])((function(){"align"===B&&(V<2?Y():z((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[V]);var Z=Object(c["a"])({},at(e));function J(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Z[e];Z[e]=function(e,n){return z(),null===t||void 0===t?void 0:t(e,n)}})),r["useEffect"]((function(){Z.motionName||"motion"!==B||z()}),[Z.motionName,B]),r["useImperativeHandle"](t,(function(){return{forceAlign:Y,getElement:function(){return A.current}}}));var $=Object(c["a"])(Object(c["a"])({},N),{},{zIndex:f,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},u),Q=!0;!(null===m||void 0===m?void 0:m.points)||"align"!==B&&"stable"!==B||(Q=!1);var ee=l;return r["Children"].count(l)>1&&(ee=r["createElement"]("div",{className:"".concat(i,"-content")},l)),r["createElement"](it["a"],Object(a["a"])({visible:n,ref:A,leavedClassName:"".concat(i,"-hidden")},Z,{onAppearPrepare:J,onEnterPrepare:J,removeOnLeave:p,forceRender:v}),(function(e,t){var n=e.className,a=e.style,s=d()(i,o,C,n);return r["createElement"](Gn,{target:X(),key:"popup",ref:T,monitorWindowResize:!0,disabled:Q,align:m,onAlign:K},r["createElement"]("div",{ref:t,className:s,onMouseEnter:_,onMouseLeave:E,onMouseDownCapture:S,onTouchStartCapture:k,onClick:M,style:Object(c["a"])(Object(c["a"])({},a),$)},ee))}))}));Zn.displayName="PopupInner";var Jn=Zn,$n=r["forwardRef"]((function(e,t){var n=e.prefixCls,i=e.visible,o=e.zIndex,s=e.children,u=e.mobile;u=void 0===u?{}:u;var l=u.popupClassName,f=u.popupStyle,h=u.popupMotion,p=void 0===h?{}:h,v=u.popupRender,m=e.onClick,g=r["useRef"]();r["useImperativeHandle"](t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var y=Object(c["a"])({zIndex:o},f),b=s;return r["Children"].count(s)>1&&(b=r["createElement"]("div",{className:"".concat(n,"-content")},s)),v&&(b=v(b)),r["createElement"](it["a"],Object(a["a"])({visible:i,ref:g,removeOnLeave:!0},p),(function(e,t){var i=e.className,a=e.style,o=d()(n,l,i);return r["createElement"]("div",{ref:t,className:o,onClick:m,style:Object(c["a"])(Object(c["a"])({},a),y)},b)}))}));$n.displayName="MobilePopupInner";var Qn=$n,er=["visible","mobile"],tr=r["forwardRef"]((function(e,t){var n=e.visible,i=e.mobile,o=Object(l["a"])(e,er),u=Object(r["useState"])(n),f=Object(s["a"])(u,2),d=f[0],h=f[1],v=Object(r["useState"])(!1),m=Object(s["a"])(v,2),g=m[0],y=m[1],b=Object(c["a"])(Object(c["a"])({},o),{},{visible:d});Object(r["useEffect"])((function(){h(n),n&&i&&y(p())}),[n,i]);var x=g?r["createElement"](Qn,Object(a["a"])({},b,{mobile:i,ref:t})):r["createElement"](Jn,Object(a["a"])({},b,{ref:t}));return r["createElement"]("div",null,r["createElement"](ot,b),x)}));tr.displayName="Popup";var nr=tr,rr=r["createContext"](null),ir=rr;function ar(){}function or(){return""}function sr(e){return e?e.ownerDocument:window.document}var ur=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function lr(e){var t=function(t){Object(ae["a"])(i,t);var n=Object(oe["a"])(i);function i(e){var t,o;return Object(re["a"])(this,i),t=n.call(this,e),t.popupRef=r["createRef"](),t.triggerRef=r["createRef"](),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&Ye(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),i=t.getPopupDomNode();Ye(r,n)&&!t.isContextMenuOnly()||Ye(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object(Ke["a"])(t.triggerRef.current);if(n)return n}catch(r){}return Xe.a.findDOMNode(Object(We["a"])(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,i=r.popupPlacement,a=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,u=r.getPopupClassNameFromAlign;return i&&a&&n.push(rt(a,o,e,s)),u&&n.push(u(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,i=e.destroyPopupOnHide,o=e.popupClassName,s=e.onPopupAlign,u=e.popupMotion,l=e.popupAnimation,c=e.popupTransitionName,f=e.popupStyle,d=e.mask,h=e.maskAnimation,p=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,g=e.popup,y=e.stretch,b=e.alignPoint,x=e.mobile,w=e.forceRender,_=e.onPopupClick,E=t.state,S=E.popupVisible,k=E.point,M=t.getPopupAlign(),T={};return t.isMouseEnterToShow()&&(T.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(T.onMouseLeave=t.onPopupMouseLeave),T.onMouseDown=t.onPopupMouseDown,T.onTouchStart=t.onPopupMouseDown,r["createElement"](nr,Object(a["a"])({prefixCls:n,destroyPopupOnHide:i,visible:S,point:b&&k,className:o,align:M,onAlign:s,animation:l,getClassNameFromAlign:t.getPopupClassNameFromAlign},T,{stretch:y,getRootDomNode:t.getRootDomNode,style:f,mask:d,zIndex:m,transitionName:c,maskAnimation:h,maskTransitionName:p,maskMotion:v,ref:t.popupRef,motion:u,mobile:x,forceRender:w,onClick:_}),"function"===typeof g?g():g)},t.attachParent=function(e){_["a"].cancel(t.attachId);var n,r=t.props,i=r.getPopupContainer,a=r.getDocument,o=t.getRootDomNode();i?(o||0===i.length)&&(n=i(o)):n=a(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(_["a"])((function(){t.attachParent(e)}))},t.getContainer=function(){if(!t.portalContainer){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",t.portalContainer=n}return t.attachParent(t.portalContainer),t.portalContainer},t.setPoint=function(e){var n=t.props.alignPoint;n&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown},o="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:o,popupVisible:o},ur.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Object(ie["a"])(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props,n=this.state;if(n.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Je(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Je(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Je(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Je(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),_["a"].cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?nt(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,i=n.children,a=n.forceRender,o=n.alignPoint,s=n.className,u=n.autoDestroy,l=r["Children"].only(i),f={key:"trigger"};this.isContextMenuToShow()?f.onContextMenu=this.onContextMenu:f.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(f.onClick=this.onClick,f.onMouseDown=this.onMouseDown,f.onTouchStart=this.onTouchStart):(f.onClick=this.createTwoChains("onClick"),f.onMouseDown=this.createTwoChains("onMouseDown"),f.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(f.onMouseEnter=this.onMouseEnter,o&&(f.onMouseMove=this.onMouseMove)):f.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?f.onMouseLeave=this.onMouseLeave:f.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(f.onFocus=this.onFocus,f.onBlur=this.onBlur):(f.onFocus=this.createTwoChains("onFocus"),f.onBlur=this.createTwoChains("onBlur"));var h=d()(l&&l.props&&l.props.className,s);h&&(f.className=h);var p=Object(c["a"])({},f);Object(Ze["c"])(l)&&(p.ref=Object(Ze["a"])(this.triggerRef,l.ref));var v,m=r["cloneElement"](l,p);return(t||this.popupRef.current||a)&&(v=r["createElement"](e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&u&&(v=null),r["createElement"](ir.Provider,{value:this.triggerContextValue},m,v)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),i}(r["Component"]);return t.contextType=ir,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:or,getDocument:sr,onPopupVisibleChange:ar,afterPopupVisibleChange:ar,onPopupAlign:ar,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}var cr=lr(et),fr={adjustX:1,adjustY:1},dr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}},hr={topLeft:{points:["bl","tl"],overflow:fr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fr,offset:[4,0]}};function pr(e,t,n){return t||(n?n[e]||n.other:void 0)}var vr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function mr(e){var t=e.prefixCls,n=e.visible,i=e.children,a=e.popup,u=e.popupClassName,l=e.popupOffset,f=e.disabled,h=e.mode,p=e.onVisibleChange,v=r["useContext"](ce),m=v.getPopupContainer,g=v.rtl,y=v.subMenuOpenDelay,b=v.subMenuCloseDelay,x=v.builtinPlacements,w=v.triggerSubMenuAction,E=v.forceSubMenuRender,S=v.rootClassName,k=v.motion,M=v.defaultMotions,T=r["useState"](!1),A=Object(s["a"])(T,2),O=A[0],R=A[1],C=g?Object(c["a"])(Object(c["a"])({},hr),x):Object(c["a"])(Object(c["a"])({},dr),x),L=vr[h],P=pr(h,k,M),I=Object(c["a"])(Object(c["a"])({},P),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=r["useRef"]();return r["useEffect"]((function(){return N.current=Object(_["a"])((function(){R(n)})),function(){_["a"].cancel(N.current)}}),[n]),r["createElement"](cr,{prefixCls:t,popupClassName:d()("".concat(t,"-popup"),Object(o["a"])({},"".concat(t,"-rtl"),g),u,S),stretch:"horizontal"===h?"minWidth":null,getPopupContainer:m,builtinPlacements:C,popupPlacement:L,popupVisible:O,popup:a,popupAlign:l&&{offset:l},action:f?[]:[w],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:E,popupMotion:I},i)}function gr(e){var t=e.id,n=e.open,i=e.keyPath,o=e.children,u="inline",l=r["useContext"](ce),f=l.prefixCls,d=l.forceSubMenuRender,h=l.motion,p=l.defaultMotions,v=l.mode,m=r["useRef"](!1);m.current=v===u;var g=r["useState"](!m.current),y=Object(s["a"])(g,2),b=y[0],x=y[1],w=!!m.current&&n;r["useEffect"]((function(){m.current&&x(!1)}),[v]);var _=Object(c["a"])({},pr(u,h,p));i.length>1&&(_.motionAppear=!1);var E=_.onVisibleChanged;return _.onVisibleChanged=function(e){return m.current||e||x(!0),null===E||void 0===E?void 0:E(e)},b?null:r["createElement"](de,{mode:u,locked:!m.current},r["createElement"](it["a"],Object(a["a"])({visible:w},_,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,i=e.style;return r["createElement"](Ve,{id:t,className:n,style:i},o)})))}var yr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],br=["active"],xr=function(e){var t,n=e.style,i=e.className,u=e.title,f=e.eventKey,h=(e.warnKey,e.disabled),p=e.internalPopupClose,v=e.children,m=e.itemIcon,g=e.expandIcon,y=e.popupClassName,b=e.popupOffset,x=e.onClick,w=e.onMouseEnter,_=e.onMouseLeave,E=e.onTitleClick,S=e.onTitleMouseEnter,k=e.onTitleMouseLeave,M=Object(l["a"])(e,yr),T=Me(f),A=r["useContext"](ce),O=A.prefixCls,R=A.mode,C=A.openKeys,L=A.disabled,P=A.overflowDisabled,I=A.activeKey,N=A.selectedKeys,D=A.itemIcon,j=A.expandIcon,F=A.onItemClick,U=A.onOpenChange,B=A.onActive,z=r["useContext"](Ae),H=z._internalRenderSubMenuItem,G=r["useContext"](Ee),V=G.isSubPathKey,W=_e(),q="".concat(O,"-submenu"),X=L||h,Y=r["useRef"](),K=r["useRef"]();var Z=m||D,J=g||j,$=C.includes(f),Q=!P&&$,ee=V(N,f),te=he(f,X,S,k),re=te.active,ie=Object(l["a"])(te,br),ae=r["useState"](!1),oe=Object(s["a"])(ae,2),se=oe[0],ue=oe[1],le=function(e){X||ue(e)},fe=function(e){le(!0),null===w||void 0===w||w({key:f,domEvent:e})},pe=function(e){le(!1),null===_||void 0===_||_({key:f,domEvent:e})},ye=r["useMemo"]((function(){return re||"inline"!==R&&(se||V([I],f))}),[R,re,I,se,f,V]),be=ge(W.length),xe=function(e){X||(null===E||void 0===E||E({key:f,domEvent:e}),"inline"===R&&U(f,!$))},we=Be((function(e){null===x||void 0===x||x(ve(e)),F(e)})),Se=function(e){"inline"!==R&&U(f,e)},ke=function(){B(f)},Te=T&&"".concat(T,"-popup"),Oe=r["createElement"]("div",Object(a["a"])({role:"menuitem",style:be,className:"".concat(q,"-title"),tabIndex:X?null:-1,ref:Y,title:"string"===typeof u?u:null,"data-menu-id":P&&T?null:T,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":Te,"aria-disabled":X,onClick:xe,onFocus:ke},ie),u,r["createElement"](me,{icon:"horizontal"!==R?J:null,props:Object(c["a"])(Object(c["a"])({},e),{},{isOpen:Q,isSubMenu:!0})},r["createElement"]("i",{className:"".concat(q,"-arrow")}))),Re=r["useRef"](R);if("inline"!==R&&(Re.current=W.length>1?"vertical":R),!P){var Ce=Re.current;Oe=r["createElement"](mr,{mode:Ce,prefixCls:q,visible:!p&&Q&&"inline"!==R,popupClassName:y,popupOffset:b,popup:r["createElement"](de,{mode:"horizontal"===Ce?"vertical":Ce},r["createElement"](Ve,{id:Te,ref:K},v)),disabled:X,onVisibleChange:Se},Oe)}var Le=r["createElement"](ne.Item,Object(a["a"])({role:"none"},M,{component:"li",style:n,className:d()(q,"".concat(q,"-").concat(R),i,(t={},Object(o["a"])(t,"".concat(q,"-open"),Q),Object(o["a"])(t,"".concat(q,"-active"),ye),Object(o["a"])(t,"".concat(q,"-selected"),ee),Object(o["a"])(t,"".concat(q,"-disabled"),X),t)),onMouseEnter:fe,onMouseLeave:pe}),Oe,!P&&r["createElement"](gr,{id:Te,open:Q,keyPath:W},v));return H&&(Le=H(Le,e,{selected:ee,active:ye,open:Q,disabled:X})),r["createElement"](de,{onItemClick:we,mode:"horizontal"===R?"vertical":R,itemIcon:Z,expandIcon:J},Le)};function wr(e){var t,n=e.eventKey,i=e.children,a=_e(n),o=je(i,a),s=xe();return r["useEffect"]((function(){if(s)return s.registerPath(n,a),function(){s.unregisterPath(n,a)}}),[a]),t=s?o:r["createElement"](xr,e,o),r["createElement"](we.Provider,{value:a},t)}function _r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ut(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&null===o&&(o=0),r&&e.disabled&&(o=null),null!==o&&(o>=0||t&&o<0)}return!1}function Er(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(w["a"])(e.querySelectorAll("*")).filter((function(e){return _r(e,t)}));return _r(e,t)&&n.unshift(e),n}var Sr=M["a"].LEFT,kr=M["a"].RIGHT,Mr=M["a"].UP,Tr=M["a"].DOWN,Ar=M["a"].ENTER,Or=M["a"].ESC,Rr=M["a"].HOME,Cr=M["a"].END,Lr=[Mr,Tr,Sr,kr];function Pr(e,t,n,r){var i,a,s,u,l="prev",c="next",f="children",d="parent";if("inline"===e&&r===Ar)return{inlineTrigger:!0};var h=(i={},Object(o["a"])(i,Mr,l),Object(o["a"])(i,Tr,c),i),p=(a={},Object(o["a"])(a,Sr,n?c:l),Object(o["a"])(a,kr,n?l:c),Object(o["a"])(a,Tr,f),Object(o["a"])(a,Ar,f),a),v=(s={},Object(o["a"])(s,Mr,l),Object(o["a"])(s,Tr,c),Object(o["a"])(s,Ar,f),Object(o["a"])(s,Or,d),Object(o["a"])(s,Sr,n?f:d),Object(o["a"])(s,kr,n?d:f),s),m={inline:h,horizontal:p,vertical:v,inlineSub:h,horizontalSub:v,verticalSub:v},g=null===(u=m["".concat(e).concat(t?"":"Sub")])||void 0===u?void 0:u[r];switch(g){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function Ir(e){var t=e;while(t){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Nr(e,t){var n=e||document.activeElement;while(n){if(t.has(n))return n;n=n.parentElement}return null}function Dr(e,t){var n=Er(e,!0);return n.filter((function(e){return t.has(e)}))}function jr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=Dr(e,t),a=i.length,o=i.findIndex((function(e){return n===e}));return r<0?-1===o?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}function Fr(e,t,n,i,a,o,s,u,l,c){var f=r["useRef"](),d=r["useRef"]();d.current=t;var h=function(){_["a"].cancel(f.current)};return r["useEffect"]((function(){return function(){h()}}),[]),function(r){var p=r.which;if([].concat(Lr,[Ar,Or,Rr,Cr]).includes(p)){var v,m,g,y=function(){v=new Set,m=new Map,g=new Map;var e=o();return e.forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(ke(i,e),"']"));t&&(v.add(t),g.set(t,e),m.set(e,t))})),v};y();var b=m.get(t),x=Nr(b,v),w=g.get(x),E=Pr(e,1===s(w,!0).length,n,p);if(!E&&p!==Rr&&p!==Cr)return;(Lr.includes(p)||[Rr,Cr].includes(p))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);u(r),h(),f.current=Object(_["a"])((function(){d.current===r&&t.focus()}))}};if([Rr,Cr].includes(p)||E.sibling||!x){var k,M;k=x&&"inline"!==e?Ir(x):a.current;var T=Dr(k,v);M=p===Rr?T[0]:p===Cr?T[T.length-1]:jr(k,v,x,E.offset),S(M)}else if(E.inlineTrigger)l(w);else if(E.offset>0)l(w,!0),h(),f.current=Object(_["a"])((function(){y();var e=x.getAttribute("aria-controls"),t=document.getElementById(e),n=jr(t,v);S(n)}),5);else if(E.offset<0){var A=s(w,!0),O=A[A.length-2],R=m.get(O);l(O,!1),S(R)}}null===c||void 0===c||c(r)}}var Ur=Math.random().toFixed(5).toString().slice(2),Br=0;function zr(e){var t=x(e,{value:e}),n=Object(s["a"])(t,2),i=n[0],a=n[1];return r["useEffect"]((function(){Br+=1;var e="".concat(Ur,"-").concat(Br);a("rc-menu-uuid-".concat(e))}),[]),i}function Hr(e){Promise.resolve().then(e)}var Gr="__RC_UTIL_PATH_SPLIT__",Vr=function(e){return e.join(Gr)},Wr=function(e){return e.split(Gr)},qr="rc-menu-more";function Xr(){var e=r["useState"]({}),t=Object(s["a"])(e,2),n=t[1],i=Object(r["useRef"])(new Map),a=Object(r["useRef"])(new Map),o=r["useState"]([]),u=Object(s["a"])(o,2),l=u[0],c=u[1],f=Object(r["useRef"])(0),d=Object(r["useRef"])(!1),h=function(){d.current||n({})},p=Object(r["useCallback"])((function(e,t){var n=Vr(t);a.current.set(n,e),i.current.set(e,n),f.current+=1;var r=f.current;Hr((function(){r===f.current&&h()}))}),[]),v=Object(r["useCallback"])((function(e,t){var n=Vr(t);a.current["delete"](n),i.current["delete"](e)}),[]),m=Object(r["useCallback"])((function(e){c(e)}),[]),g=Object(r["useCallback"])((function(e,t){var n=i.current.get(e)||"",r=Wr(n);return t&&l.includes(r[0])&&r.unshift(qr),r}),[l]),y=Object(r["useCallback"])((function(e,t){return e.some((function(e){var n=g(e,!0);return n.includes(t)}))}),[g]),b=function(){var e=Object(w["a"])(i.current.keys());return l.length&&e.push(qr),e},x=Object(r["useCallback"])((function(e){var t="".concat(i.current.get(e)).concat(Gr),n=new Set;return Object(w["a"])(a.current.keys()).forEach((function(e){e.startsWith(t)&&n.add(a.current.get(e))})),n}),[]);return r["useEffect"]((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:v,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:g,getKeys:b,getSubPathKeys:x}}var Yr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Kr=[],Zr=r["forwardRef"]((function(e,t){var n,i,u=e.prefixCls,f=void 0===u?"rc-menu":u,h=e.rootClassName,p=e.style,v=e.className,m=e.tabIndex,g=void 0===m?0:m,y=e.items,b=e.children,_=e.direction,E=e.id,S=e.mode,k=void 0===S?"vertical":S,M=e.inlineCollapsed,T=e.disabled,A=e.disabledOverflow,O=e.subMenuOpenDelay,R=void 0===O?.1:O,C=e.subMenuCloseDelay,L=void 0===C?.1:C,P=e.forceSubMenuRender,N=e.defaultOpenKeys,D=e.openKeys,j=e.activeKey,F=e.defaultActiveFirst,U=e.selectable,B=void 0===U||U,z=e.multiple,H=void 0!==z&&z,G=e.defaultSelectedKeys,V=e.selectedKeys,W=e.onSelect,q=e.onDeselect,X=e.inlineIndent,Y=void 0===X?24:X,K=e.motion,Z=e.defaultMotions,J=e.triggerSubMenuAction,$=void 0===J?"hover":J,Q=e.builtinPlacements,ee=e.itemIcon,te=e.expandIcon,re=e.overflowedIndicator,ie=void 0===re?"...":re,ae=e.overflowedIndicatorPopupClassName,oe=e.getPopupContainer,se=e.onClick,ue=e.onOpenChange,le=e.onKeyDown,ce=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),fe=e._internalRenderSubMenuItem,he=Object(l["a"])(e,Yr),pe=r["useMemo"]((function(){return Ue(b,y,Kr)}),[b,y]),me=r["useState"](!1),ge=Object(s["a"])(me,2),ye=ge[0],xe=ge[1],we=r["useRef"](),_e=zr(E),Me="rtl"===_;var Te=r["useMemo"]((function(){return"inline"!==k&&"vertical"!==k||!M?[k,!1]:["vertical",M]}),[k,M]),Oe=Object(s["a"])(Te,2),Re=Oe[0],Ce=Oe[1],Le=r["useState"](0),Pe=Object(s["a"])(Le,2),Ie=Pe[0],De=Pe[1],je=Ie>=pe.length-1||"horizontal"!==Re||A,Fe=x(N,{value:D,postState:function(e){return e||Kr}}),ze=Object(s["a"])(Fe,2),He=ze[0],Ge=ze[1],Ve=function(e){Ge(e),null===ue||void 0===ue||ue(e)},We=r["useState"](He),qe=Object(s["a"])(We,2),Xe=qe[0],Ye=qe[1],Ke="inline"===Re,Ze=r["useRef"](!1);r["useEffect"]((function(){Ke&&Ye(He)}),[He]),r["useEffect"]((function(){Ze.current&&(Ke?Ge(Xe):Ve(Kr))}),[Ke]),r["useEffect"]((function(){return Ze.current=!0,function(){Ze.current=!1}}),[]);var Je=Xr(),$e=Je.registerPath,Qe=Je.unregisterPath,et=Je.refreshOverflowKeys,tt=Je.isSubPathKey,nt=Je.getKeyPath,rt=Je.getKeys,it=Je.getSubPathKeys,at=r["useMemo"]((function(){return{registerPath:$e,unregisterPath:Qe}}),[$e,Qe]),ot=r["useMemo"]((function(){return{isSubPathKey:tt}}),[tt]);r["useEffect"]((function(){et(je?Kr:pe.slice(Ie+1).map((function(e){return e.key})))}),[Ie,je]);var st=x(j||F&&(null===(n=pe[0])||void 0===n?void 0:n.key),{value:j}),ut=Object(s["a"])(st,2),lt=ut[0],ct=ut[1],ft=Be((function(e){ct(e)})),dt=Be((function(){ct(void 0)}));Object(r["useImperativeHandle"])(t,(function(){return{list:we.current,focus:function(e){var t,n,r,i,a=null!==lt&&void 0!==lt?lt:null===(t=pe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=we.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(ke(_e,a),"']")))||void 0===r||null===(i=r.focus)||void 0===i||i.call(r,e))}}}));var ht=x(G||[],{value:V,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Kr:[e]}}),pt=Object(s["a"])(ht,2),vt=pt[0],mt=pt[1],gt=function(e){if(B){var t,n=e.key,r=vt.includes(n);t=H?r?vt.filter((function(e){return e!==n})):[].concat(Object(w["a"])(vt),[n]):[n],mt(t);var i=Object(c["a"])(Object(c["a"])({},e),{},{selectedKeys:t});r?null===q||void 0===q||q(i):null===W||void 0===W||W(i)}!H&&He.length&&"inline"!==Re&&Ve(Kr)},yt=Be((function(e){null===se||void 0===se||se(ve(e)),gt(e)})),bt=Be((function(e,t){var n=He.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=it(e);n=n.filter((function(e){return!r.has(e)}))}I()(He,n)||Ve(n)})),xt=Be(oe),wt=function(e,t){var n=null!==t&&void 0!==t?t:!He.includes(e);bt(e,n)},_t=Fr(Re,lt,Me,_e,we,rt,nt,ct,wt,le);r["useEffect"]((function(){xe(!0)}),[]);var Et=r["useMemo"]((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:fe}}),[ce,fe]),St="horizontal"!==Re||A?pe:pe.map((function(e,t){return r["createElement"](de,{key:e.key,overflowDisabled:t>Ie},e)})),kt=r["createElement"](ne,Object(a["a"])({id:E,ref:we,prefixCls:"".concat(f,"-overflow"),component:"ul",itemComponent:Ne,className:d()(f,"".concat(f,"-root"),"".concat(f,"-").concat(Re),v,(i={},Object(o["a"])(i,"".concat(f,"-inline-collapsed"),Ce),Object(o["a"])(i,"".concat(f,"-rtl"),Me),i),h),dir:_,style:p,role:"menu",tabIndex:g,data:St,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?pe.slice(-t):null;return r["createElement"](wr,{eventKey:qr,title:ie,disabled:je,internalPopupClose:0===t,popupClassName:ae},n)},maxCount:"horizontal"!==Re||A?ne.INVALIDATE:ne.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){De(e)},onKeyDown:_t},he));return r["createElement"](Ae.Provider,{value:Et},r["createElement"](Se.Provider,{value:_e},r["createElement"](de,{prefixCls:f,rootClassName:h,mode:Re,openKeys:He,rtl:Me,disabled:T,motion:ye?K:null,defaultMotions:ye?Z:null,activeKey:lt,onActive:ft,onInactive:dt,selectedKeys:vt,inlineIndent:Y,subMenuOpenDelay:R,subMenuCloseDelay:L,forceSubMenuRender:P,builtinPlacements:Q,triggerSubMenuAction:$,getPopupContainer:xt,itemIcon:ee,expandIcon:te,onItemClick:yt,onOpenChange:bt},r["createElement"](Ee.Provider,{value:ot},kt),r["createElement"]("div",{style:{display:"none"},"aria-hidden":!0},r["createElement"](be.Provider,{value:at},pe)))))})),Jr=Zr,$r=["className","title","eventKey","children"],Qr=["children"],ei=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),o=Object(l["a"])(e,$r),s=r["useContext"](ce),u=s.prefixCls,c="".concat(u,"-item-group");return r["createElement"]("li",Object(a["a"])({},o,{onClick:function(e){return e.stopPropagation()},className:d()(c,t)}),r["createElement"]("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),r["createElement"]("ul",{className:"".concat(c,"-list")},i))};function ti(e){var t=e.children,n=Object(l["a"])(e,Qr),i=_e(n.eventKey),a=je(t,i),o=xe();return o?a:r["createElement"](ei,Object(se["a"])(n,["warnKey"]),a)}function ni(e){var t=e.className,n=e.style,i=r["useContext"](ce),a=i.prefixCls,o=xe();return o?null:r["createElement"]("li",{className:d()("".concat(a,"-item-divider"),t),style:n})}var ri=Jr;ri.Item=Ne,ri.SubMenu=wr,ri.ItemGroup=ti,ri.Divider=ni;var ii=ri,ai={adjustX:1,adjustY:1},oi=[0,0],si={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-4],targetOffset:oi},topCenter:{points:["bc","tc"],overflow:ai,offset:[0,-4],targetOffset:oi},topRight:{points:["br","tr"],overflow:ai,offset:[0,-4],targetOffset:oi},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,4],targetOffset:oi},bottomCenter:{points:["tc","bc"],overflow:ai,offset:[0,4],targetOffset:oi},bottomRight:{points:["tr","br"],overflow:ai,offset:[0,4],targetOffset:oi}},ui=si,li=M["a"].ESC,ci=M["a"].TAB;function fi(e){var t=e.visible,n=e.setTriggerVisible,i=e.triggerRef,a=e.onVisibleChange,o=e.autoFocus,s=r["useRef"](!1),u=function(){var e,r,o,s;t&&i.current&&(null===(e=i.current)||void 0===e||null===(r=e.triggerRef)||void 0===r||null===(o=r.current)||void 0===o||null===(s=o.focus)||void 0===s||s.call(o),n(!1),"function"===typeof a&&a(!1))},l=function(){var e,t,n,r,a=Er(null===(e=i.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.getElement)||void 0===r?void 0:r.call(n)),o=a[0];return!!(null===o||void 0===o?void 0:o.focus)&&(o.focus(),s.current=!0,!0)},c=function(e){switch(e.keyCode){case li:u();break;case ci:var t=!1;s.current||(t=l()),t?e.preventDefault():u();break}};r["useEffect"]((function(){return t?(window.addEventListener("keydown",c),o&&Object(_["a"])(l,3),function(){window.removeEventListener("keydown",c),s.current=!1}):function(){s.current=!1}}),[t])}var di=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function hi(e,t){var n=e.arrow,i=void 0!==n&&n,a=e.prefixCls,u=void 0===a?"rc-dropdown":a,f=e.transitionName,h=e.animation,p=e.align,v=e.placement,m=void 0===v?"bottomLeft":v,g=e.placements,y=void 0===g?ui:g,b=e.getPopupContainer,x=e.showAction,w=e.hideAction,_=e.overlayClassName,E=e.overlayStyle,S=e.visible,k=e.trigger,M=void 0===k?["hover"]:k,T=e.autoFocus,A=Object(l["a"])(e,di),O=r["useState"](),R=Object(s["a"])(O,2),C=R[0],L=R[1],P="visible"in e?S:C,I=r["useRef"](null);r["useImperativeHandle"](t,(function(){return I.current})),fi({visible:P,setTriggerVisible:L,triggerRef:I,onVisibleChange:e.onVisibleChange,autoFocus:T});var N=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},D=function(t){var n=e.onOverlayClick;L(!1),n&&n(t)},j=function(t){var n=e.onVisibleChange;L(t),"function"===typeof n&&n(t)},F=function(){var e=N();return r["createElement"](r["Fragment"],null,i&&r["createElement"]("div",{className:"".concat(u,"-arrow")}),e)},U=function(){var t=e.overlay;return"function"===typeof t?F:F()},B=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},z=function(){var t=e.openClassName;return void 0!==t?t:"".concat(u,"-open")},H=function(){var t=e.children,n=t.props?t.props:{},i=d()(n.className,z());return P&&t?r["cloneElement"](t,{className:i}):t},G=w;return G||-1===M.indexOf("contextMenu")||(G=["click"]),r["createElement"](cr,Object(c["a"])(Object(c["a"])({builtinPlacements:y},A),{},{prefixCls:u,ref:I,popupClassName:d()(_,Object(o["a"])({},"".concat(u,"-show-arrow"),i)),popupStyle:E,action:M,showAction:x,hideAction:G||[],popupPlacement:m,popupAlign:p,popupTransitionName:f,popupAnimation:h,popupVisible:P,stretch:B()?"minWidth":"",popup:U(),onPopupVisibleChange:j,onPopupClick:D,getPopupContainer:b}),H())}var pi=r["forwardRef"](hi),vi=pi;function mi(e,t){var n=e.prefixCls,i=e.editable,a=e.locale,o=e.style;return i&&!1!==i.showAdd?r["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null}var gi=r["forwardRef"](mi);function yi(e,t){var n=e.prefixCls,i=e.id,a=e.tabs,u=e.locale,l=e.mobile,c=e.moreIcon,f=void 0===c?"More":c,h=e.moreTransitionName,p=e.style,v=e.className,m=e.editable,g=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,x=e.onTabClick,w=e.getPopupContainer,_=e.popupClassName,E=Object(r["useState"])(!1),S=Object(s["a"])(E,2),k=S[0],T=S[1],A=Object(r["useState"])(null),O=Object(s["a"])(A,2),R=O[0],C=O[1],L="".concat(i,"-more-popup"),P="".concat(n,"-dropdown"),I=null!==R?"".concat(L,"-").concat(R):null,N=null===u||void 0===u?void 0:u.dropdownAriaLabel;function D(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}var j=r["createElement"](ii,{onClick:function(e){var t=e.key,n=e.domEvent;x(t,n),T(!1)},prefixCls:"".concat(P,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[R],"aria-label":void 0!==N?N:"expanded dropdown"},a.map((function(e){var t=m&&!1!==e.closable&&!e.disabled;return r["createElement"](Ne,{key:e.key,id:"".concat(L,"-").concat(e.key),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(e.key),disabled:e.disabled},r["createElement"]("span",null,e.tab),t&&r["createElement"]("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),D(t,e.key)}},e.closeIcon||m.removeIcon||"\xd7"))})));function F(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===R}))||0,r=t.length,i=0;io?(i=n,S.current="x"):(i=r,S.current="y"),t(-i,-i)&&e.preventDefault()}var M=Object(r["useRef"])(null);M.current={onTouchStart:w,onTouchMove:_,onTouchEnd:E,onWheel:k},r["useEffect"]((function(){function t(e){M.current.onTouchStart(e)}function n(e){M.current.onTouchMove(e)}function r(e){M.current.onTouchEnd(e)}function i(e){M.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",i),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function Mi(){var e=Object(r["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,r["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function Ti(e,t){var n=r["useRef"](e),i=r["useState"]({}),a=Object(s["a"])(i,2),o=a[1];function u(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}return[n.current,u]}var Ai=function(e){var t,n=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var o={};return a&&"object"===Object(u["a"])(a)&&!r["isValidElement"](a)?o=a:o.right=a,"right"===n&&(t=o.right),"left"===n&&(t=o.left),t?r["createElement"]("div",{className:"".concat(i,"-extra-content")},t):null};function Oi(e,t){var n,i=r["useContext"](xi),u=i.prefixCls,l=i.tabs,f=e.className,h=e.style,p=e.id,v=e.animated,m=e.activeKey,g=e.rtl,y=e.extra,b=e.editable,x=e.locale,M=e.tabPosition,T=e.tabBarGutter,O=e.children,C=e.onTabClick,P=e.onTabScroll,I=Object(r["useRef"])(),N=Object(r["useRef"])(),D=Object(r["useRef"])(),j=Object(r["useRef"])(),F=Mi(),U=Object(s["a"])(F,2),B=U[0],z=U[1],H="top"===M||"bottom"===M,G=Ti(0,(function(e,t){H&&P&&P({direction:e>t?"left":"right"})})),V=Object(s["a"])(G,2),W=V[0],q=V[1],X=Ti(0,(function(e,t){!H&&P&&P({direction:e>t?"top":"bottom"})})),Y=Object(s["a"])(X,2),K=Y[0],Z=Y[1],J=Object(r["useState"])(0),$=Object(s["a"])(J,2),Q=$[0],ee=$[1],te=Object(r["useState"])(0),ne=Object(s["a"])(te,2),re=ne[0],ie=ne[1],ae=Object(r["useState"])(null),oe=Object(s["a"])(ae,2),se=oe[0],ue=oe[1],le=Object(r["useState"])(null),ce=Object(s["a"])(le,2),fe=ce[0],de=ce[1],he=Object(r["useState"])(0),pe=Object(s["a"])(he,2),ve=pe[0],me=pe[1],ge=Object(r["useState"])(0),ye=Object(s["a"])(ge,2),be=ye[0],xe=ye[1],we=k(new Map),_e=Object(s["a"])(we,2),Ee=_e[0],Se=_e[1],ke=R(l,Ee,Q),Me="".concat(u,"-nav-operations-hidden"),Te=0,Ae=0;function Oe(e){return eAe?Ae:e}H?g?(Te=0,Ae=Math.max(0,Q-se)):(Te=Math.min(0,se-Q),Ae=0):(Te=Math.min(0,fe-re),Ae=0);var Re=Object(r["useRef"])(),Ce=Object(r["useState"])(),Le=Object(s["a"])(Ce,2),Pe=Le[0],Ie=Le[1];function Ne(){Ie(Date.now())}function De(){window.clearTimeout(Re.current)}function je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=ke.get(e)||{width:0,height:0,left:0,right:0,top:0};if(H){var n=W;g?t.rightW+se&&(n=t.right+t.width-se):t.left<-W?n=-t.left:t.left+t.width>-W+se&&(n=-(t.left+t.width-se)),Z(0),q(Oe(n))}else{var r=K;t.top<-K?r=-t.top:t.top+t.height>-K+fe&&(r=-(t.top+t.height-fe)),q(0),Z(Oe(r))}}ki(I,(function(e,t){function n(e,t){e((function(e){var n=Oe(e+t);return n}))}if(H){if(se>=Q)return!1;n(q,e)}else{if(fe>=re)return!1;n(Z,t)}return De(),Ne(),!0})),Object(r["useEffect"])((function(){return De(),Pe&&(Re.current=window.setTimeout((function(){Ie(0)}),100)),De}),[Pe]);var Fe=L(ke,{width:se,height:fe,left:W,top:K},{width:Q,height:re},{width:ve,height:be},Object(c["a"])(Object(c["a"])({},e),{},{tabs:l})),Ue=Object(s["a"])(Fe,2),Be=Ue[0],ze=Ue[1],He={};"top"===M||"bottom"===M?He[g?"marginRight":"marginLeft"]=T:He.marginTop=T;var Ge=l.map((function(e,t){var n=e.key;return r["createElement"](A,{id:p,prefixCls:u,key:n,tab:e,style:0===t?void 0:He,closable:e.closable,editable:b,active:n===m,renderWrapper:O,removeAriaLabel:null===x||void 0===x?void 0:x.removeAriaLabel,ref:B(n),onClick:function(e){C(n,e)},onRemove:function(){z(n)},onFocus:function(){je(n),Ne(),I.current&&(g||(I.current.scrollLeft=0),I.current.scrollTop=0)}})})),Ve=S((function(){var e,t,n,r,i,a,o=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,s=(null===(t=I.current)||void 0===t?void 0:t.offsetHeight)||0,u=(null===(n=j.current)||void 0===n?void 0:n.offsetWidth)||0,c=(null===(r=j.current)||void 0===r?void 0:r.offsetHeight)||0;ue(o),de(s),me(u),xe(c);var f=((null===(i=N.current)||void 0===i?void 0:i.offsetWidth)||0)-u,d=((null===(a=N.current)||void 0===a?void 0:a.offsetHeight)||0)-c;ee(f),ie(d),Se((function(){var e=new Map;return l.forEach((function(t){var n=t.key,r=B(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),We=l.slice(0,Be),qe=l.slice(ze+1),Xe=[].concat(Object(w["a"])(We),Object(w["a"])(qe)),Ye=Object(r["useState"])(),Ke=Object(s["a"])(Ye,2),Ze=Ke[0],Je=Ke[1],$e=ke.get(m),Qe=Object(r["useRef"])();function et(){_["a"].cancel(Qe.current)}Object(r["useEffect"])((function(){var e={};return $e&&(H?(g?e.right=$e.right:e.left=$e.left,e.width=$e.width):(e.top=$e.top,e.height=$e.height)),et(),Qe.current=Object(_["a"])((function(){Je(e)})),et}),[$e,H,g]),Object(r["useEffect"])((function(){je()}),[m,$e,ke,H]),Object(r["useEffect"])((function(){Ve()}),[g,T,m,l.map((function(e){return e.key})).join("_")]);var tt,nt,rt,it,at=!!Xe.length,ot="".concat(u,"-nav-wrap");return H?g?(nt=W>0,tt=W+see.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>16,u=i>>>16,l=(s*o>>>0)+(a*o>>>16);return s*u+(l>>>16)+((a*u>>>0)+(l&n)>>>16)}})},a57n:function(e,t,n){var r=n("dG/n");r("search")},adU4:function(e,t,n){var r=n("y1pI"),i=Array.prototype,a=i.splice;function o(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():a.call(t,n,1),--this.size,!0}e.exports=o},afA6:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},identifier:"docs-demo"}},"Collada-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].Collada,{src:"./elf.dae"})))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => {\n return (\n <>\n
\n \n
\n \n );\n};"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},componentName:"Collada",identifier:"Collada-demo"}},"FBX-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].FBX,{src:"./Samba%20Dancing.fbx"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},componentName:"FBX",identifier:"FBX-demo"}},"GLTF-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].GLTF,{src:"./Duck.gltf"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},componentName:"GLTF",identifier:"GLTF-demo"}},"background-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].Collada,{src:"./elf.dae",backgroundColor:"aliceblue"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},identifier:"background-demo"}},"rotation-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement(t["default"].Fragment,null,t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].Collada,{src:"./elf.dae",isRotation:!0})))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => {\n return (\n <>\n
\n \n
\n \n );\n};"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},identifier:"rotation-demo"}},"snapshot-demo":{component:function(){var e=n("K+nK")["default"],t=n("3PQu")["default"],r=t(n("q1tI")),i=e(n("/7QA")),a=function(){var e=(0,r.useRef)();return r["default"].createElement(r["default"].Fragment,null,r["default"].createElement("button",{onClick:function(){var t=e.current.getSnapshot(),n=document.createElement("a");n.href=t,n.download=!0,n.click()}},"\u83b7\u53d6\u622a\u56fe"),r["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},r["default"].createElement(i["default"].Collada,{src:"./elf.dae",ref:e})))};return r["default"].createElement(a)},previewerProps:{sources:{_:{tsx:"import React, { useRef } from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => {\n const model = useRef();\n return (\n <>\n {\n const str = model.current.getSnapshot();\n const a = document.createElement('a');\n a.href = str;\n a.download = true;\n a.click();\n }}\n >\n \u83b7\u53d6\u622a\u56fe\n \n
\n \n
\n \n );\n};"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},identifier:"snapshot-demo"}},"OBJ-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].OBJ,{src:"./tree.obj"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},componentName:"OBJ",identifier:"OBJ-demo"}},"PLY-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].PLY,{src:"./Lucy100k.ply"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},componentName:"PLY",identifier:"PLY-demo"}},"STL-demo":{component:function(){var e=n("K+nK")["default"],t=e(n("q1tI")),r=e(n("/7QA")),i=function(){return t["default"].createElement("div",{style:{maxWidth:800,width:"100%",height:400,margin:"auto"}},t["default"].createElement(r["default"].STL,{src:"./gear.stl"}))};return t["default"].createElement(i)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport Model from 'react-3dmodelx';\n\nexport default () => (\n
\n \n
\n);"}},dependencies:{react:{version:"16.14.0"},"react-3dmodelx":{version:"1.0.2"}},componentName:"STL",identifier:"STL-demo"}}},u=n("x2v5"),l=n("KcUY"),c=n.n(l);t["default"]=e=>a.a.createElement(c.a,r({},e,{config:o,demos:s,apis:u}))},afO8:function(e,t,n){var r,i,a,o=n("f5p1"),s=n("2oRo"),u=n("hh1v"),l=n("kRJp"),c=n("UTVS"),f=n("93I0"),d=n("0BK2"),h=s.WeakMap,p=function(e){return a(e)?i(e):r(e,{})},v=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(o){var m=new h,g=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},i=function(e){return g.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var x=f("state");d[x]=!0,r=function(e,t){return l(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},a=function(e){return c(e,x)}}e.exports={set:r,get:i,has:a,enforce:p,getterFor:v}},apDx:function(e,t,n){var r=n("dG/n");r("dispose")},b1O7:function(e,t,n){var r=n("g6v/"),i=n("33Wh"),a=n("/GqU"),o=n("0eef").f,s=function(e){return function(t){var n,s=a(t),u=i(s),l=u.length,c=0,f=[];while(l>c)n=u[c++],r&&!o.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},b80T:function(e,t,n){var r=n("UNi/"),i=n("03A+"),a=n("Z0cm"),o=n("DSRE"),s=n("wJg7"),u=n("c6wG"),l=Object.prototype,c=l.hasOwnProperty;function f(e,t){var n=a(e),l=!n&&i(e),f=!n&&!l&&o(e),d=!n&&!l&&!f&&u(e),h=n||l||f||d,p=h?r(e.length,String):[],v=p.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||p.push(m);return p}e.exports=f},bCY9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("LtsZ"),i=new r["Plugin"]({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu"]})},bFeb:function(e,t,n){var r=n("I+eb"),i=n("2oRo");r({global:!0},{globalThis:i})},bT9E:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VTBJ");function i(e,t){var n=Object(r["a"])({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},bWFh:function(e,t,n){"use strict";var r=n("I+eb"),i=n("2oRo"),a=n("lMq5"),o=n("busE"),s=n("8YOa"),u=n("ImZN"),l=n("GarU"),c=n("hh1v"),f=n("0Dky"),d=n("HH4o"),h=n("1E5z"),p=n("cVYH");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=i[e],b=y&&y.prototype,x=y,w={},_=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))x=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(a(e,!0)){var E=new x,S=E[g](m?{}:-0,1)!=E,k=f((function(){E.has(1)})),M=d((function(e){new y(e)})),T=!m&&f((function(){var e=new y,t=5;while(t--)e[g](t,t);return!e.has(-0)}));M||(x=t((function(t,n){l(t,x,e);var r=p(new y,t,x);return void 0!=n&&u(n,r[g],r,v),r})),x.prototype=b,b.constructor=x),(k||T)&&(_("delete"),_("has"),v&&_("get")),(T||S)&&_(g),m&&b.clear&&delete b.clear}return w[e]=x,r({global:!0,forced:x!=y},w),h(x,e),m||n.setStrong(x,e,v),x}},bYHP:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=l(n("q1tI")),a=n("LtsZ"),o=s(n("hKI/"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i["default"]=e,n&&n.set(e,i),i}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n128||n===e.anchors.length-1})),n=this.anchors[Math.max(0,t-1)],r=n.parentElement.id;this.listeners.forEach((function(e){return e(r)}))}},{key:"watch",value:function(e){0===this.anchors.length&&"undefined"!==typeof window&&window.addEventListener("scroll",this.listener),this.anchors.push(e),this.listener()}},{key:"unwatch",value:function(e){this.anchors.splice(this.anchors.findIndex((function(t){return t===e})),1),0===this.anchors.length&&"undefined"!==typeof window&&window.removeEventListener("scroll",this.listener)}},{key:"listen",value:function(e){this.listeners.push(e)}},{key:"unlisten",value:function(e){this.listeners.splice(this.listeners.findIndex((function(t){return t===e})),1)}}]),e}());function w(e){return e.offsetTop+(e.offsetParent?w(e.offsetParent):0)}var _=function e(t){var n,r=(null===(n=t.to.match(/(#[^&?]*)/))||void 0===n?void 0:n[1])||"",o=(0,i.useRef)(null),s=(0,i.useState)(!1),u=f(s,2),l=u[0],d=u[1];return(0,i.useEffect)((function(){var e,t;if(["H1","H2","H3"].includes(null===(e=o.current)||void 0===e||null===(t=e.parentElement)||void 0===t?void 0:t.tagName)&&o.current.parentElement.id){var n=o.current;return x.watch(n),function(){x.unwatch(n)}}var i=function(e){d(r==="#".concat(e))};return x.listen(i),function(){return x.unlisten(i)}}),[]),i["default"].createElement(a.NavLink,c({},t,{ref:o,onClick:function(){return e.scrollToAnchor(r.substring(1))},isActive:function(){return l}}))};_.scrollToAnchor=function(e){window.requestAnimationFrame((function(){var t=document.getElementById(decodeURIComponent(e));t&&window.scrollTo(0,w(t)-100)}))};var E=_;t["default"]=E},bdeN:function(e,t,n){var r=n("I+eb"),i=n("eDxR"),a=n("glrk"),o=n("4WOD"),s=i.has,u=i.toKey,l=function(e,t,n){var r=s(e,t,n);if(r)return!0;var i=o(t);return null!==i&&l(e,i,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return l(e,a(t),n)}})},bdgK:function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype["delete"]=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=l.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new T(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var R=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:O}();t["a"]=R}).call(this,n("IyRk"))},beRK:function(e,t,n){"use strict";function r(){var e=n("q1tI");return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.getDemoUrl=t.getDemoRouteName=t["default"]=void 0;var i=a(n("nLCz"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return f(e)||c(e,t)||u(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw o}}}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},busE:function(e,t,n){var r=n("2oRo"),i=n("kRJp"),a=n("UTVS"),o=n("zk60"),s=n("iSVu"),u=n("afO8"),l=u.get,c=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),c(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"c+Xe":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s}));var r=n("U8pU"),i=n("TOwV");n("YrtM");function a(e,t){"function"===typeof e?e(t):"object"===Object(r["a"])(e)&&e&&"current"in e&&(e.current=t)}function o(){for(var e=arguments.length,t=new Array(e),n=0;n1?arguments[1]:void 0,3),i=new(l(t,a("Set"))),d=s(i.add);return f(n,(function(e){d.call(i,r(e,e,t))}),void 0,!1,!0),i}})},cvf0:function(e,t,n){"use strict";var r=n("67WC").exportTypedArrayMethod,i=n("0Dky"),a=n("2oRo"),o=a.Uint8Array,s=o&&o.prototype||{},u=[].toString,l=[].join;i((function(){u.call({})}))&&(u=function(){return l.call(this)});var c=s.toString!=u;r("toString",u,c)},d6cI:function(e,t){var n=1/0,r=Math.abs,i=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2,u=function(e,t,u){var l,c,f,d=new Array(u),h=8*u-t-1,p=(1<>1,m=23===t?i(2,-24)-i(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for(e=r(e),e!=e||e===n?(c=e!=e?1:0,l=p):(l=a(o(e)/s),e*(f=i(2,-l))<1&&(l--,f*=2),e+=l+v>=1?m/f:m*i(2,1-v),e*f>=2&&(l++,f/=2),l+v>=p?(c=0,l=p):l+v>=1?(c=(e*f-1)*i(2,t),l+=v):(c=e*i(2,v-1)*i(2,t),l=0));t>=8;d[y++]=255&c,c/=256,t-=8);for(l=l<0;d[y++]=255&l,l/=256,h-=8);return d[--y]|=128*g,d},l=function(e,t){var r,a=e.length,o=8*a-t-1,s=(1<>1,l=o-7,c=a-1,f=e[c--],d=127&f;for(f>>=7;l>0;d=256*d+e[c],c--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[c],c--,l-=8);if(0===d)d=1-u;else{if(d===s)return r?NaN:f?-n:n;r+=i(2,t),d-=u}return(f?-1:1)*r*i(2,d-t)};e.exports={pack:u,unpack:l}},"dBg+":function(e,t){t.f=Object.getOwnPropertySymbols},dD9F:function(e,t,n){var r=n("NykK"),i=n("shjB"),a=n("ExA7"),o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",E="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",M="[object Uint8Array]",T="[object Uint8ClampedArray]",A="[object Uint16Array]",O="[object Uint32Array]",R={};function C(e){return a(e)&&i(e.length)&&!!R[r(e)]}R[w]=R[_]=R[E]=R[S]=R[k]=R[M]=R[T]=R[A]=R[O]=!0,R[o]=R[s]=R[b]=R[u]=R[x]=R[l]=R[c]=R[f]=R[d]=R[h]=R[p]=R[v]=R[m]=R[g]=R[y]=!1,e.exports=C},dEAq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnchorLink",{enumerable:!0,get:function(){return o["default"]}}),Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"NavLink",{enumerable:!0,get:function(){return a["default"]}}),Object.defineProperty(t,"context",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"getDemoUrl",{enumerable:!0,get:function(){return h.getDemoUrl}}),Object.defineProperty(t,"useApiData",{enumerable:!0,get:function(){return p["default"]}}),Object.defineProperty(t,"useCodeSandbox",{enumerable:!0,get:function(){return f["default"]}}),Object.defineProperty(t,"useCopy",{enumerable:!0,get:function(){return u["default"]}}),Object.defineProperty(t,"useDemoUrl",{enumerable:!0,get:function(){return h["default"]}}),Object.defineProperty(t,"useLocaleProps",{enumerable:!0,get:function(){return d["default"]}}),Object.defineProperty(t,"useMotions",{enumerable:!0,get:function(){return c["default"]}}),Object.defineProperty(t,"usePrefersColor",{enumerable:!0,get:function(){return m["default"]}}),Object.defineProperty(t,"useRiddle",{enumerable:!0,get:function(){return l["default"]}}),Object.defineProperty(t,"useSearch",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(t,"useTSPlaygroundUrl",{enumerable:!0,get:function(){return v["default"]}});var r=b(n("nLCz")),i=b(n("zqmC")),a=b(n("6asN")),o=b(n("bYHP")),s=b(n("t/kZ")),u=b(n("dfPH")),l=b(n("o0kM")),c=b(n("zYLY")),f=b(n("r1Q5")),d=b(n("U/TZ")),h=y(n("beRK")),p=b(n("3QDa")),v=b(n("7sf/")),m=b(n("2N97"));function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r["default"]=e,n&&n.set(e,r),r}function b(e){return e&&e.__esModule?e:{default:e}}},"dG/n":function(e,t,n){var r=n("Qo9l"),i=n("UTVS"),a=n("5Tg+"),o=n("m/L8").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},dI71:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("s4An");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r["a"])(e,t)}},dNT4:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return!u(n,(function(e){if(!r(e,e,t))return u.stop()}),void 0,!1,!0).stopped}})},dOgj:function(e,t,n){"use strict";var r=n("I+eb"),i=n("2oRo"),a=n("g6v/"),o=n("iqeF"),s=n("67WC"),u=n("Yhre"),l=n("GarU"),c=n("XGwC"),f=n("kRJp"),d=n("UMSQ"),h=n("CyXQ"),p=n("GC2F"),v=n("wE6v"),m=n("UTVS"),g=n("9d/t"),y=n("hh1v"),b=n("fHMY"),x=n("0rvr"),w=n("JBy8").f,_=n("oHi+"),E=n("tycR").forEach,S=n("JiZb"),k=n("m/L8"),M=n("Bs8V"),T=n("afO8"),A=n("cVYH"),O=T.get,R=T.set,C=k.f,L=M.f,P=Math.round,I=i.RangeError,N=u.ArrayBuffer,D=u.DataView,j=s.NATIVE_ARRAY_BUFFER_VIEWS,F=s.TYPED_ARRAY_TAG,U=s.TypedArray,B=s.TypedArrayPrototype,z=s.aTypedArrayConstructor,H=s.isTypedArray,G="BYTES_PER_ELEMENT",V="Wrong length",W=function(e,t){var n=0,r=t.length,i=new(z(e))(r);while(r>n)i[n]=t[n++];return i},q=function(e,t){C(e,t,{get:function(){return O(this)[t]}})},X=function(e){var t;return e instanceof N||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Y=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},K=function(e,t){return Y(e,t=v(t,!0))?c(2,e[t]):L(e,t)},Z=function(e,t,n){return!(Y(e,t=v(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?C(e,t,n):(e[t]=n.value,e)};a?(j||(M.f=K,k.f=Z,q(B,"buffer"),q(B,"byteOffset"),q(B,"byteLength"),q(B,"length")),r({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:K,defineProperty:Z}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",u="get"+e,c="set"+e,v=i[s],m=v,g=m&&m.prototype,k={},M=function(e,t){var n=O(e);return n.view[u](t*a+n.byteOffset,!0)},T=function(e,t,r){var i=O(e);n&&(r=(r=P(r))<0?0:r>255?255:255&r),i.view[c](t*a+i.byteOffset,r,!0)},L=function(e,t){C(e,t,{get:function(){return M(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};j?o&&(m=t((function(e,t,n,r){return l(e,m,s),A(function(){return y(t)?X(t)?void 0!==r?new v(t,p(n,a),r):void 0!==n?new v(t,p(n,a)):new v(t):H(t)?W(m,t):_.call(m,t):new v(h(t))}(),e,m)})),x&&x(m,U),E(w(v),(function(e){e in m||f(m,e,v[e])})),m.prototype=g):(m=t((function(e,t,n,r){l(e,m,s);var i,o,u,c=0,f=0;if(y(t)){if(!X(t))return H(t)?W(m,t):_.call(m,t);i=t,f=p(n,a);var v=t.byteLength;if(void 0===r){if(v%a)throw I(V);if(o=v-f,o<0)throw I(V)}else if(o=d(r)*a,o+f>v)throw I(V);u=o/a}else u=h(t),o=u*a,i=new N(o);R(e,{buffer:i,byteOffset:f,byteLength:o,length:u,view:new D(i)});while(ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n>16,u=i>>16,l=(s*o>>>0)+(a*o>>>16);return s*u+(l>>16)+((a*u>>>0)+(l&n)>>16)}})},ebwN:function(e,t,n){var r=n("Cwc5"),i=n("Kz5y"),a=r(i,"Map");e.exports=a},ekgI:function(e,t,n){var r=n("YESw"),i=Object.prototype,a=i.hasOwnProperty;function o(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}e.exports=o},ewvW:function(e,t,n){var r=n("HYAF");e.exports=function(e){return Object(r(e))}},"f/k9":function(e,t,n){"use strict";var r=n("MgzW"),i=n("q1tI");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var o=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),o({getCurrentValue:t,subscribe:n,value:a})),i.useDebugValue(a),i.useEffect((function(){function e(){if(!i){var e=t();o((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,a=n(e);return e(),function(){i=!0,a()}}),[t,n]),a}},f5p1:function(e,t,n){var r=n("2oRo"),i=n("iSVu"),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(i(a))},fGT3:function(e,t,n){var r=n("4kuk"),i=n("Xi7e"),a=n("ebwN");function o(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}e.exports=o},fHMY:function(e,t,n){var r,i=n("glrk"),a=n("N+g0"),o=n("eDl+"),s=n("0BK2"),u=n("G+Rx"),l=n("zBJ4"),c=n("93I0"),f=">",d="<",h="prototype",p="script",v=c("IE_PROTO"),m=function(){},g=function(e){return d+p+f+e+d+"/"+p+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?y(r):b();var e=o.length;while(e--)delete x[h][o[e]];return x()};s[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[h]=i(e),n=new m,m[h]=null,n[v]=e):n=x(),void 0===t?n:a(n,t)}},fN96:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ZUd8").charAt;r({target:"String",proto:!0},{at:function(e){return i(this,e)}})},"fR/l":function(e,t,n){var r=n("CH3K"),i=n("Z0cm");function a(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}e.exports=a},fVI1:function(e,t,n){},fXLg:function(e,t,n){"use strict";var r=n("glrk"),i=n("HAuM");e.exports=function(){for(var e=r(this),t=i(e.add),n=0,a=arguments.length;n{var t=e.demos,n=t["OBJ-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["OBJ-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},gOCb:function(e,t,n){var r=n("dG/n");r("replace")},gXIK:function(e,t,n){var r=n("dG/n");r("toPrimitive")},gYJb:function(e,t,n){var r=n("I+eb"),i=n("p5mE"),a=n("0GbY"),o=n("fHMY"),s=function(){var e=a("Object","freeze");return e?e(o(null)):o(null)};r({global:!0},{compositeKey:function(){return i.apply(Object,arguments).get("object",s)}})},gdVl:function(e,t,n){"use strict";var r=n("ewvW"),i=n("I8vh"),a=n("UMSQ");e.exports=function(e){var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);while(l>s)t[s++]=e;return t}},gg6r:function(e,t,n){"use strict";var r=n("I+eb"),i=n("HAuM"),a=n("8GlL"),o=n("5mdu"),s=n("ImZN");r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=o((function(){var n=i(t.resolve),a=[],o=0,u=1;s(e,(function(e){var i=o++,s=!1;a.push(void 0),u++,n.call(t,e).then((function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return l.error&&u(l.value),n.promise}})},glrk:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},gvgV:function(e,t,n){"use strict";var r=n("67WC"),i=n("TWQb").includes,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("includes",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},h0XC:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},hBjN:function(e,t,n){"use strict";var r=n("wE6v"),i=n("m/L8"),a=n("XGwC");e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},hByQ:function(e,t,n){"use strict";var r=n("14Sl"),i=n("glrk"),a=n("HYAF"),o=n("Ep9I"),s=n("FMNM");r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),u=String(this),l=a.lastIndex;o(l,0)||(a.lastIndex=0);var c=s(a,u);return o(a.lastIndex,l)||(a.lastIndex=l),null===c?-1:c.index}]}))},hDyC:function(e,t,n){"use strict";var r=n("I+eb"),i=n("DMt2").end,a=n("mgyK");r({target:"String",proto:!0,forced:a},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},hJnp:function(e,t,n){},"hKI/":function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),h=Object.prototype,p=h.toString,v=Math.max,m=Math.min,g=function(){return d.Date.now()};function y(e,t,r){var i,a,o,s,u,l,c=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function p(t){var n=i,r=a;return i=a=void 0,c=t,s=e.apply(r,n),s}function y(e){return c=e,u=setTimeout(_,t),f?p(e):s}function b(e){var n=e-l,r=e-c,i=t-n;return d?m(i,o-r):i}function w(e){var n=e-l,r=e-c;return void 0===l||n>=t||n<0||d&&r>=o}function _(){var e=g();if(w(e))return S(e);u=setTimeout(_,b(e))}function S(e){return u=void 0,h&&i?p(e):(i=a=void 0,s)}function k(){void 0!==u&&clearTimeout(u),c=0,i=l=a=u=void 0}function M(){return void 0===u?s:S(g())}function T(){var e=g(),n=w(e);if(i=arguments,a=this,l=e,n){if(void 0===u)return y(l);if(d)return u=setTimeout(_,t),p(l)}return void 0===u&&(u=setTimeout(_,t)),s}return t=E(t)||0,x(r)&&(f=!!r.leading,d="maxWait"in r,o=d?v(E(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),T.cancel=k,T.flush=M,T}function b(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(n);return x(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),y(e,t,{leading:i,maxWait:t,trailing:a})}function x(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}function _(e){return"symbol"==typeof e||w(e)&&p.call(e)==i}function E(e){if("number"==typeof e)return e;if(_(e))return r;if(x(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=x(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}e.exports=b}).call(this,n("IyRk"))},hMMk:function(e,t,n){var r=n("dOgj");r("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"hOG+":function(e,t){(function(t){e.exports=function(){var e={311:function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}},n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={exports:{}},a=!0;try{e[t](i,i.exports,r),a=!1}finally{a&&delete n[t]}return i.exports}return r.ab=t+"/",r(311)}()}).call(this,"/")},hcok:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("SEBh"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=o(this),n=new(u(t,a("Set")))(t),r=s(n["delete"]);return l(e,(function(e){r.call(n,e)})),n}})},hh1v:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},i4U9:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},i8i4:function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("yl30")},iIM6:function(e,t,n){"use strict";var r=n("g6v/"),i=n("RNIs"),a=n("ewvW"),o=n("UMSQ"),s=n("m/L8").f;r&&!("lastIndex"in[])&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e.length);return 0==t?0:t-1}}),i("lastIndex"))},iOk6:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["FBX-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u52a0\u8f7d-fbx"},i.a.createElement(a["AnchorLink"],{to:"#\u52a0\u8f7d-fbx","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u52a0\u8f7d FBX"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["FBX-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},iSVu:function(e,t,n){var r=n("xs3f"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},ihrJ:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ImZN"),a=n("HAuM");r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;a(t);var r=a(n.has),o=a(n.get),s=a(n.set);return i(e,(function(e){var i=t(e);r.call(n,i)?o.call(n,i).push(e):s.call(n,i,[e])})),n}})},ilnZ:function(e,t,n){var r=n("dOgj");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},inlA:function(e,t,n){"use strict";var r=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),o=n("WjRb"),s=n("HYAF"),u=n("qxPZ"),l=n("xDBR"),c="".endsWith,f=Math.min,d=u("endsWith"),h=!l&&!d&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!h&&!d},{endsWith:function(e){var t=String(s(this));o(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:f(a(n),r),u=String(e);return c?c.call(t,u,i):t.slice(i-u.length,i)===u}})},iqWW:function(e,t,n){"use strict";var r=n("ZUd8").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},iqeF:function(e,t,n){var r=n("2oRo"),i=n("0Dky"),a=n("HH4o"),o=n("67WC").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;e.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},iwkZ:function(e,t,n){var r=n("dOgj");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"j+VE":function(e,t,n){n("bFeb")},"k+1r":function(e,t,n){var r=n("QkVE");function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},kCkZ:function(e,t,n){"use strict";var r=n("I+eb"),i=n("8GlL"),a=n("5mdu");r({target:"Promise",stat:!0},{try:function(e){var t=i.f(this),n=a(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},kOOl:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},kRJp:function(e,t,n){var r=n("g6v/"),i=n("m/L8"),a=n("XGwC");e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},kekF:function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},kmMV:function(e,t,n){"use strict";var r=n("rW0t"),i=n("n3/R"),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,u=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],f=u||c||l;f&&(s=function(e){var t,n,i,s,f=this,d=l&&f.sticky,h=r.call(f),p=f.source,v=0,m=e;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),m=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,v++),n=new RegExp("^(?:"+p+")",h)),c&&(n=new RegExp("^"+p+"$(?!\\s)",h)),u&&(t=f.lastIndex),i=a.call(d?n:f,m),d?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:u&&i&&(f.lastIndex=f.global?i.index+i[0].length:t),c&&i&&i.length>1&&o.call(i[0],n,(function(){for(s=1;s1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),d=s(i.set);return f(n,(function(e,n){r(n,e,t)&&d.call(i,e,n)}),void 0,!0,!0),i}})},lEou:function(e,t,n){var r=n("dG/n");r("toStringTag")},lMq5:function(e,t,n){var r=n("0Dky"),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},lSCD:function(e,t,n){var r=n("NykK"),i=n("GoyQ"),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function l(e){if(!i(e))return!1;var t=r(e);return t==o||t==s||t==a||t==u}e.exports=l},lehK:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{iaddh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},ljhN:function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},lmH4:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("mh/w"),l=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=u(this),n=o(e),r=n.has;return"function"!=typeof r&&(n=new(a("Set"))(e),r=s(n.has)),!l(t,(function(e){if(!1===r.call(n,e))return l.stop()}),void 0,!1,!0).stopped}})},"m+aA":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("i8i4"),i=n.n(r);function a(e){return e instanceof HTMLElement?e:i.a.findDOMNode(e)}},"m/L8":function(e,t,n){var r=n("g6v/"),i=n("DPsx"),a=n("glrk"),o=n("wE6v"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m92n:function(e,t,n){var r=n("glrk");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var a=e["return"];throw void 0!==a&&r(a.call(e)),o}}},mGGf:function(e,t,n){"use strict";n("4mDm");var r=n("I+eb"),i=n("0GbY"),a=n("DTth"),o=n("busE"),s=n("4syw"),u=n("1E5z"),l=n("ntOU"),c=n("afO8"),f=n("GarU"),d=n("UTVS"),h=n("A2ZE"),p=n("9d/t"),v=n("glrk"),m=n("hh1v"),g=n("fHMY"),y=n("XGwC"),b=n("mh/w"),x=n("NaFW"),w=n("tiKp"),_=i("fetch"),E=i("Headers"),S=w("iterator"),k="URLSearchParams",M=k+"Iterator",T=c.set,A=c.getterFor(k),O=c.getterFor(M),R=/\+/g,C=Array(4),L=function(e){return C[e-1]||(C[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},I=function(e){var t=e.replace(R," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(L(n--),P);return t}},N=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(e){return D[e]},F=function(e){return encodeURIComponent(e).replace(N,j)},U=function(e,t){if(t){var n,r,i=t.split("&"),a=0;while(a0?arguments[0]:void 0,c=this,h=[];if(T(c,{type:k,entries:h,updateURL:function(){},updateSearchParams:B}),void 0!==l)if(m(l))if(e=x(l),"function"===typeof e){t=e.call(l),n=t.next;while(!(r=n.call(t)).done){if(i=b(v(r.value)),a=i.next,(o=a.call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");h.push({key:o.value+"",value:s.value+""})}}else for(u in l)d(l,u)&&h.push({key:u,value:l[u]+""});else U(h,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},V=G.prototype;s(V,{append:function(e,t){z(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){z(arguments.length,1);var t=A(this),n=t.entries,r=e+"",i=0;while(ie.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),i=0;while(i1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===k&&(r=t.headers?new E(t.headers):new E,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),_.apply(this,i)}}),e.exports={URLSearchParams:G,getState:A}},mGKP:function(e,t,n){var r=n("EdiO");function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},ma9I:function(e,t,n){"use strict";var r=n("I+eb"),i=n("0Dky"),a=n("6LWA"),o=n("hh1v"),s=n("ewvW"),u=n("UMSQ"),l=n("hBjN"),c=n("ZfDv"),f=n("Hd5f"),d=n("tiKp"),h=n("LQDL"),p=d("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=h>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},x=!g||!y;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,i,a,o=s(this),f=c(o,0),d=0;for(t=-1,r=arguments.length;tv)throw TypeError(m);for(n=0;n=v)throw TypeError(m);l(f,d++,a)}return f.length=d,f}})},mdPL:function(e,t,n){(function(e){var r=n("WFqU"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u}).call(this,n("hOG+")(e))},mdU6:function(e,t,n){},mgyK:function(e,t,n){var r=n("NC/Y");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},"mh/w":function(e,t,n){var r=n("glrk"),i=n("NaFW");e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"n3/R":function(e,t,n){"use strict";var r=n("0Dky");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},n5b4:function(e,t,n){var r=n("I+eb"),i=n("2oRo"),a=n("tXUg"),o=n("xrYK"),s=i.process,u="process"==o(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=u&&s.domain;a(t?t.bind(e):e)}})},n5pg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("Sssf"),u=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop(e)}),void 0,!0,!0).result}})},nIe3:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("0GbY"),o=n("glrk"),s=n("HAuM"),u=n("A2ZE"),l=n("SEBh"),c=n("Sssf"),f=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,a("Map"))),d=s(i.set);return f(n,(function(e,n){d.call(i,r(n,e,t),n)}),void 0,!0,!0),i}})},nLCz:function(e,t,n){"use strict";function r(){var e=i(n("q1tI"));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=r()["default"].createContext({config:{mode:"doc",title:"",navs:{},menus:{},locales:[],repository:{branch:"master"},theme:{}},meta:{title:""},menu:[],nav:[],base:"",routes:[],apis:{},demos:{}});t["default"]=a},nmnc:function(e,t,n){var r=n("Kz5y"),i=r.Symbol;e.exports=i},ntOU:function(e,t,n){"use strict";var r=n("rpNk").IteratorPrototype,i=n("fHMY"),a=n("XGwC"),o=n("1E5z"),s=n("P4y1"),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=u,e}},nvu9:function(e,t,n){"use strict";t.__esModule=!0,t.getParameters=void 0;var r=n("e9O8");t.getParameters=r.getParameters},ny8l:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},o0kM:function(e,t,n){"use strict";var r=n("dmwd")["default"],i=n("5wUe")["default"];function a(){var e=n("q1tI");return a=function(){return e},e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n, mountNode);"),t}var b=function(e){var t=(0,a().useState)(),n=l(t,2),o=n[0],u=n[1],c=g();return(0,a().useEffect)((function(){if(e&&c&&1===Object.keys(e.sources).length){var t,n=document.createElement("form"),a=document.createElement("input");return n.method="POST",n.target="_blank",n.style.display="none",n.action=m,n.appendChild(a),n.setAttribute("data-demo",e.title||""),a.name="data",a.value=JSON.stringify({title:e.titlle,js:y(e),css:Object.entries(e.dependencies).filter((function(e){var t=i(e,2),n=t[1];return n.css})).map((function(e){var t=i(e,2),n=t[0],r=t[1],a=r.version,o=r.css;return"@import '~".concat(o.replace(new RegExp("^(".concat(n,")")),"$1@".concat(a)),"';")})).concat(e.background?"body {\n background: ".concat(e.background,";\n}"):"").join("\n"),json:JSON.stringify({description:e.description,dependencies:Object.entries(e.dependencies).reduce((function(e,t){var n=i(t,2),a=n[0],o=n[1].version;return s(s({},e),{},r({},a,o))}),{"react-dom":(null===(t=e.dependencies.react)||void 0===t?void 0:t.version)||"latest"})},null,2)}),document.body.appendChild(n),u((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e,c]),o};t["default"]=b},"oHi+":function(e,t,n){var r=n("ewvW"),i=n("UMSQ"),a=n("NaFW"),o=n("6VoE"),s=n("A2ZE"),u=n("67WC").aTypedArrayConstructor;e.exports=function(e){var t,n,l,c,f,d,h=r(e),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,g=a(h);if(void 0!=g&&!o(g)){f=g.call(h),d=f.next,h=[];while(!(c=d.call(f)).done)h.push(c.value)}for(m&&p>2&&(v=s(v,arguments[2],2)),n=i(h.length),l=new(u(this))(n),t=0;n>t;t++)l[t]=m?v(h[t],t):h[t];return l}},ofBz:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ntOU"),a=n("HYAF"),o=n("UMSQ"),s=n("HAuM"),u=n("glrk"),l=n("xrYK"),c=n("ROdP"),f=n("rW0t"),d=n("kRJp"),h=n("0Dky"),p=n("tiKp"),v=n("SEBh"),m=n("iqWW"),g=n("afO8"),y=n("xDBR"),b=p("matchAll"),x="RegExp String",w=x+" Iterator",_=g.set,E=g.getterFor(w),S=RegExp.prototype,k=S.exec,M="".matchAll,T=!!M&&!h((function(){"a".matchAll(/./)})),A=function(e,t){var n,r=e.exec;if("function"==typeof r){if(n=r.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return k.call(e,t)},O=i((function(e,t,n,r){_(this,{type:w,regexp:e,string:t,global:n,unicode:r,done:!1})}),x,(function(){var e=E(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=A(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""==String(r[0])&&(t.lastIndex=m(n,o(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),R=function(e){var t,n,r,i,a,s,l=u(this),c=String(e);return t=v(l,RegExp),n=l.flags,void 0===n&&l instanceof RegExp&&!("flags"in S)&&(n=f.call(l)),r=void 0===n?"":String(n),i=new t(t===RegExp?l.source:l,r),a=!!~r.indexOf("g"),s=!!~r.indexOf("u"),i.lastIndex=o(l.lastIndex),new O(i,c,a,s)};r({target:"String",proto:!0,forced:T},{matchAll:function(e){var t,n,r,i,o=a(this);if(null!=e){if(c(e)&&(t=String(a("flags"in S?e.flags:f.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(T)return M.apply(o,arguments);if(r=e[b],void 0===r&&y&&"RegExp"==l(e)&&(r=R),null!=r)return s(r).call(e,o)}else if(T)return M.apply(o,arguments);return n=String(o),i=new RegExp(e,"g"),y?R.call(i,n):i[b](n)}}),y||b in S||d(S,b,R)},or5M:function(e,t,n){var r=n("1hJj"),i=n("QoRX"),a=n("xYSL"),o=1,s=2;function u(e,t,n,u,l,c){var f=n&o,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=c.get(e),v=c.get(t);if(p&&v)return p==t&&v==e;var m=-1,g=!0,y=n&s?new r:void 0;c.set(e,t),c.set(t,e);while(++m0&&r(d))h=o(e,t,d,i(d.length),h,l-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=d}h++}p++}return h};e.exports=o},p532:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("/qmn"),o=n("0Dky"),s=n("0GbY"),u=n("SEBh"),l=n("zfnd"),c=n("busE"),f=!!a&&o((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=u(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof a||a.prototype["finally"]||c(a.prototype,"finally",s("Promise").prototype["finally"])},p5mE:function(e,t,n){var r=n("Tskq"),i=n("ENF9"),a=n("fHMY"),o=n("hh1v"),s=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=a(null)};s.prototype.get=function(e,t){return this[e]||(this[e]=t())},s.prototype.next=function(e,t,n){var a=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new i):this.primitives||(this.primitives=new r),o=a.get(t);return o||a.set(t,o=new s),o};var u=new s;e.exports=function(){var e,t,n=u,r=arguments.length;for(e=0;em)throw TypeError(g);for(c=u(y,r),f=0;fb-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>x;f--)d=f+r-1,h=f+n-1,d in y?y[h]=y[d]:delete y[h];for(f=0;fa)i.push(arguments[a++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,X.apply(null,i)}})}q[z][H]||T(q[z],H,q[z].valueOf),D(q,B),C[U]=!0},pSRY:function(e,t,n){var r=n("QkVE");function i(e){return r(this,e).has(e)}e.exports=i},pevA:function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("JiZb"),o=n("HAuM"),s=n("glrk"),u=n("hh1v"),l=n("GarU"),c=n("m/L8").f,f=n("kRJp"),d=n("4syw"),h=n("mh/w"),p=n("ImZN"),v=n("RN6c"),m=n("tiKp"),g=n("afO8"),y=m("observable"),b=g.get,x=g.set,w=function(e){return null==e?void 0:o(e)},_=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(n){v(n)}}},E=function(e){return void 0===e.observer},S=function(e,t){if(!i){e.closed=!0;var n=t.subscriptionObserver;n&&(n.closed=!0)}t.observer=void 0},k=function(e,t){var n,r=x(this,{cleanup:void 0,observer:s(e),subscriptionObserver:void 0});i||(this.closed=!1);try{(n=w(e.start))&&n.call(e,this)}catch(c){v(c)}if(!E(r)){var a=r.subscriptionObserver=new M(this);try{var u=t(a),l=u;null!=u&&(r.cleanup="function"===typeof u.unsubscribe?function(){l.unsubscribe()}:o(u))}catch(c){return void a.error(c)}E(r)&&_(r)}};k.prototype=d({},{unsubscribe:function(){var e=b(this);E(e)||(S(this,e),_(e))}}),i&&c(k.prototype,"closed",{configurable:!0,get:function(){return E(b(this))}});var M=function(e){x(this,{subscription:e}),i||(this.closed=!1)};M.prototype=d({},{next:function(e){var t=b(b(this).subscription);if(!E(t)){var n=t.observer;try{var r=w(n.next);r&&r.call(n,e)}catch(i){v(i)}}},error:function(e){var t=b(this).subscription,n=b(t);if(!E(n)){var r=n.observer;S(t,n);try{var i=w(r.error);i?i.call(r,e):v(e)}catch(a){v(a)}_(n)}},complete:function(){var e=b(this).subscription,t=b(e);if(!E(t)){var n=t.observer;S(e,t);try{var r=w(n.complete);r&&r.call(n)}catch(i){v(i)}_(t)}}}),i&&c(M.prototype,"closed",{configurable:!0,get:function(){return E(b(b(this).subscription))}});var T=function(e){l(this,T,"Observable"),x(this,{subscriber:o(e)})};d(T.prototype,{subscribe:function(e){var t=arguments.length;return new k("function"===typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:u(e)?e:{},b(this).subscriber)}}),d(T,{from:function(e){var t="function"===typeof this?this:T,n=w(s(e)[y]);if(n){var r=s(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var i=h(e);return new t((function(e){p(i,(function(t){if(e.next(t),e.closed)return p.stop()}),void 0,!1,!0),e.complete()}))},of:function(){var e="function"===typeof this?this:T,t=arguments.length,n=new Array(t),r=0;while(r0?r:n)(e)}},pv2x:function(e,t,n){var r=n("I+eb"),i=n("0GbY"),a=n("HAuM"),o=n("glrk"),s=n("0Dky"),u=i("Reflect","apply"),l=Function.apply,c=!s((function(){u((function(){}))}));r({target:"Reflect",stat:!0,forced:c},{apply:function(e,t,n){return a(e),o(n),u?u(e,t,n):l.call(e,t,n)}})},q1tI:function(e,t,n){"use strict";e.exports=n("viRO")},q3YX:function(e){e.exports=JSON.parse('{"menus":{"en-US":{"*":[{"path":"/","title":"Index","meta":{}}],"/guide":[{"title":"\u6307\u5357","children":[{"title":"\u5b89\u88c5","path":"/guide/installation"}]},{"title":"\u793a\u4f8b","children":[{"title":"\u81ea\u5b9a\u4e49\u80cc\u666f\u8272","path":"/guide/background"},{"title":"\u83b7\u53d6\u622a\u56fe","path":"/guide/snapshot"},{"title":"\u65cb\u8f6c\u6a21\u578b","path":"/guide/rotation"},{"title":"GLTF\u683c\u5f0f","path":"/guide/gltf"},{"title":"Collada\u683c\u5f0f","path":"/guide/collada"},{"title":"FBX\u683c\u5f0f","path":"/guide/fbx"},{"title":"OBJ\u683c\u5f0f","path":"/guide/obj"},{"title":"PLY\u683c\u5f0f","path":"/guide/ply"},{"title":"STL\u683c\u5f0f","path":"/guide/stl"}]}],"/guide/background":[{"path":"/guide/background","title":"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272","meta":{}}],"/guide/installation":[{"path":"/guide/installation","title":"\u5b89\u88c5","meta":{}}],"/guide/rotation":[{"path":"/guide/rotation","title":"\u65cb\u8f6c\u6a21\u578b","meta":{}}],"/guide/snapshot":[{"path":"/guide/snapshot","title":"\u83b7\u53d6\u622a\u56fe","meta":{}}]}},"locales":[{"name":"en-US","label":"English"}],"navs":{"en-US":[{"title":"\u6307\u5357","path":"/guide"},{"title":"GitHub","path":"https://github.com/xiaxiangfeng/react-3d-model"}]},"title":"react-3d-model","logo":"./3d.png","mode":"site","repository":{"url":"https://github.com/xiaxiangfeng/react-3d-model","branch":"master"},"theme":{}}')},qHiR:function(e,t,n){},qLMh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("QyJ8");function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(A){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),o=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var d={};function h(){}function p(){}function v(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(M([])));y&&y!==t&&n.call(y,o)&&(m=y);var b=v.prototype=h.prototype=Object.create(m);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(a,o,s,u){var l=f(e[a],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Object(r["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,u)}),(function(e){i("throw",e,s,u)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,u)}))}u(l.arg)}var a;this._invoke=function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}},qT12:function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol["for"],i=r?Symbol["for"]("react.element"):60103,a=r?Symbol["for"]("react.portal"):60106,o=r?Symbol["for"]("react.fragment"):60107,s=r?Symbol["for"]("react.strict_mode"):60108,u=r?Symbol["for"]("react.profiler"):60114,l=r?Symbol["for"]("react.provider"):60109,c=r?Symbol["for"]("react.context"):60110,f=r?Symbol["for"]("react.async_mode"):60111,d=r?Symbol["for"]("react.concurrent_mode"):60111,h=r?Symbol["for"]("react.forward_ref"):60112,p=r?Symbol["for"]("react.suspense"):60113,v=r?Symbol["for"]("react.suspense_list"):60120,m=r?Symbol["for"]("react.memo"):60115,g=r?Symbol["for"]("react.lazy"):60116,y=r?Symbol["for"]("react.block"):60121,b=r?Symbol["for"]("react.fundamental"):60117,x=r?Symbol["for"]("react.responder"):60118,w=r?Symbol["for"]("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type,e){case f:case d:case o:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof,e){case c:case h:case g:case m:case l:return e;default:return t}}case a:return t}}}function E(e){return _(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=u,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||_(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===a},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===u||e===s||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===x||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},qY7S:function(e,t,n){"use strict";var r=n("HAuM"),i=n("A2ZE"),a=n("ImZN");e.exports=function(e){var t,n,o,s,u=arguments.length,l=u>1?arguments[1]:void 0;return r(this),t=void 0!==l,t&&r(l),void 0==e?new this:(n=[],t?(o=0,s=i(l,u>2?arguments[2]:void 0,2),a(e,(function(e){n.push(s(e,o++))}))):a(e,n.push,n),new this(n))}},qYE9:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},qZTm:function(e,t,n){var r=n("fR/l"),i=n("MvSz"),a=n("7GkX");function o(e){return r(e,a,i)}e.exports=o},qaHo:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e){if(r(e,e,t))return u.stop()}),void 0,!1,!0).stopped}})},qc1c:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("HAuM"),s=n("ImZN");r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){var t=a(this),n=o(t.set),r=0;while(re.length)&&(t=e.length);for(var n=0,r=new Array(t);n,\n document.getElementById('root'),\n);"):"react-dom/client"===e?"/**\n* This is an auto-generated demo by dumi\n* if you think it is not working as expected,\n* please report the issue at\n* https://github.com/umijs/dumi/issues\n**/\nimport React from 'react';\nimport { createRoot } from \"react-dom/client\";\n".concat(t,'\nimport App from "./App";\n\nconst rootElement = document.getElementById("root");\nconst root = createRoot(rootElement);\n\nroot.render();'):void 0};function p(e){var t=document.createElement("span");t.innerHTML=e;var n=t.textContent;return t.remove(),n}function v(e){var t,n=Boolean(e.sources._.tsx),i=n?".tsx":".jsx",o={},s={},u=Object.values(e.dependencies).filter((function(e){return e.css})),l="App".concat(i),c="index".concat(i);return Object.entries(e.dependencies).forEach((function(e){var t=r(e,2),n=t[0],i=t[1].version;s[n]=i})),s["react-dom"]||(s["react-dom"]=s.react||"latest"),o["sandbox.config.json"]={content:JSON.stringify({template:n?"create-react-app-typescript":"create-react-app"},null,2),isBinary:!1},o["package.json"]={content:JSON.stringify({name:e.title,description:p(e.description)||"An auto-generated demo by dumi",main:c,dependencies:s,devDependencies:n?{typescript:"^3"}:{}},null,2),isBinary:!1},o["index.html"]={content:'
',isBinary:!1},o[c]={content:h((null===s||void 0===s||null===(t=s["react-dom"])||void 0===t?void 0:t.startsWith("18."))||"latest"===s.react?"react-dom/client":"react-dom",u.map((function(e){var t=e.css;return"import '".concat(t,"';")})).join("\n")),isBinary:!1},Object.entries(e.sources).forEach((function(e){var t=r(e,2),n=t[0],i=t[1],a=i.tsx,s=i.jsx,u=i.content;o["_"===n?l:n]={content:a||s||u,isBinary:!1}})),(0,a().getParameters)({files:o})}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=(0,i().useState)(),r=o(n,2),a=r[0],s=r[1];return(0,i().useEffect)((function(){if(e){var n=document.createElement("form"),r=document.createElement("input"),i=v(e);return n.method="POST",n.target="_blank",n.style.display="none",n.action=t,n.appendChild(r),n.setAttribute("data-demo",e.title||""),r.name="parameters",r.value=i,document.body.appendChild(n),s((function(){return function(){return n.submit()}})),function(){return n.remove()}}}),[e]),a};t["default"]=m},rB9j:function(e,t,n){"use strict";var r=n("I+eb"),i=n("kmMV");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},rEGp:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=n},rKzb:function(e,t,n){"use strict";var r=n("4syw"),i=n("8YOa").getWeakData,a=n("glrk"),o=n("hh1v"),s=n("GarU"),u=n("ImZN"),l=n("tycR"),c=n("UTVS"),f=n("afO8"),d=f.set,h=f.getterFor,p=l.find,v=l.findIndex,m=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,r){s(e,f,t),d(e,{type:t,id:m++,frozen:void 0}),void 0!=r&&u(r,e[l],e,n)})),p=h(t),v=function(e,t,n){var r=p(e),o=i(a(t),!0);return!0===o?g(r).set(t,n):o[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?g(t)["delete"](e):n&&c(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?g(t).has(e):n&&c(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=i(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},rNhl:function(e,t,n){var r=n("I+eb"),i=n("fhKU");r({global:!0,forced:parseFloat!=i},{parseFloat:i})},rOQg:function(e,t,n){"use strict";var r=n("I+eb"),i=n("0Dky"),a=n("Yhre"),o=n("glrk"),s=n("I8vh"),u=n("UMSQ"),l=n("SEBh"),c=a.ArrayBuffer,f=a.DataView,d=c.prototype.slice,h=i((function(){return!new c(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:h},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(o(this),e);var n=o(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),a=new(l(this,c))(u(i-r)),h=new f(this),p=new f(a),v=0;while(r-1&&e%1==0&&e<=n}e.exports=r},spTT:function(e,t,n){var r=n("I+eb"),i=n("qY7S");r({target:"WeakSet",stat:!0},{from:i})},"t/kZ":function(e,t,n){"use strict";var r=n("R5yR")["default"];function i(){var e=n("q1tI");return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=n("dEAq");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&n.push(f[r]);m(n)}else m([])}),[e,f.length]),v},m=function(){var e=(0,i().useContext)(a.context),t=e.config.algolia,n=(0,i().useCallback)((function(e){window.docsearch(s({inputSelector:e},t))}),[t]);return n},g=function(e){var t=(0,i().useContext)(a.context),n=t.config,r=v(e),o=m();return n.algolia?o:r};t["default"]=g},t23M:function(e,t,n){"use strict";var r=n("wx14"),i=n("q1tI"),a=n("Zm9Q"),o=(n("Kwbf"),n("VTBJ")),s=n("c+Xe"),u=n("m+aA"),l=n("bdgK"),c=new Map;function f(e){e.forEach((function(e){var t,n=e.target;null===(t=c.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var d=new l["a"](f);function h(e,t){c.has(e)||(c.set(e,new Set),d.observe(e)),c.get(e).add(t)}function p(e,t){c.has(e)&&(c.get(e)["delete"](t),c.get(e).size||(d.unobserve(e),c["delete"](e)))}var v=n("1OyB"),m=n("vuIU"),g=n("Ji7U"),y=n("LK+K"),b=function(e){Object(g["a"])(n,e);var t=Object(y["a"])(n);function n(){return Object(v["a"])(this,n),t.apply(this,arguments)}return Object(m["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(i["Component"]),x=i["createContext"](null);function w(e){var t=e.children,n=e.onBatchResize,r=i["useRef"](0),a=i["useRef"]([]),o=i["useContext"](x),s=i["useCallback"]((function(e,t,i){r.current+=1;var s=r.current;a.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){s===r.current&&(null===n||void 0===n||n(a.current),a.current=[])})),null===o||void 0===o||o(e,t,i)}),[n,o]);return i["createElement"](x.Provider,{value:s},t)}function _(e){var t=e.children,n=e.disabled,r=i["useRef"](null),a=i["useRef"](null),l=i["useContext"](x),c="function"===typeof t,f=c?t(r):t,d=i["useRef"]({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!c&&i["isValidElement"](f)&&Object(s["c"])(f),m=v?f.ref:null,g=i["useMemo"]((function(){return Object(s["a"])(m,r)}),[m,r]),y=i["useRef"](e);y.current=e;var w=i["useCallback"]((function(e){var t=y.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),a=i.width,s=i.height,u=e.offsetWidth,c=e.offsetHeight,f=Math.floor(a),h=Math.floor(s);if(d.current.width!==f||d.current.height!==h||d.current.offsetWidth!==u||d.current.offsetHeight!==c){var p={width:f,height:h,offsetWidth:u,offsetHeight:c};d.current=p;var v=u===Math.round(a)?a:u,m=c===Math.round(s)?s:c,g=Object(o["a"])(Object(o["a"])({},p),{},{offsetWidth:v,offsetHeight:m});null===l||void 0===l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return i["useEffect"]((function(){var e=Object(u["a"])(r.current)||Object(u["a"])(a.current);return e&&!n&&h(e,w),function(){return p(e,w)}}),[r.current,n]),i["createElement"](b,{ref:a},v?i["cloneElement"](f,{ref:g}):f)}var E="rc-observer-key";function S(e){var t=e.children,n="function"===typeof t?[t]:Object(a["a"])(t);return n.map((function(t,n){var a=(null===t||void 0===t?void 0:t.key)||"".concat(E,"-").concat(n);return i["createElement"](_,Object(r["a"])({},e,{key:a}),t)}))}S.Collection=w;t["a"]=S},tB8F:function(e,t,n){"use strict";n.r(t);n("pNMO"),n("4Brf"),n("tjZM"),n("3I1R"),n("7+kd"),n("KhsS"),n("gOCb"),n("a57n"),n("GXvd"),n("I1Gw"),n("gXIK"),n("lEou"),n("ma9I"),n("TeQF"),n("BIHw"),n("XbcX"),n("pjDv"),n("yq1k"),n("yXV3"),n("4mDm"),n("uqXc"),n("2B1R"),n("E9XD"),n("9N29"),n("Junv"),n("+2oP"),n("ToJy"),n("94Xl"),n("pDQq"),n("QGkA"),n("c9m3"),n("wZ/5"),n("rOQg"),n("7+zs"),n("tW5y"),n("DEfu"),n("Tskq"),n("Uydy"),n("QFcT"),n("I9xj"),n("w1rZ"),n("JevA"),n("toAj"),n("zKZe"),n("Eqjn"),n("5xtp"),n("T63A"),n("wfmh"),n("27RR"),n("v5b1"),n("W/eh"),n("07d7"),n("B6y2"),n("rNhl"),n("4l63"),n("5s+n"),n("p532"),n("pv2x"),n("SuFq"),n("ftMj"),n("TWNs"),n("rB9j"),n("U3f4"),n("JfAA"),n("YGK4"),n("inlA"),n("JTJg"),n("Rm1S"),n("hDyC"),n("TZCg"),n("UxlC"),n("hByQ"),n("EnZy"),n("LKBx"),n("SYor"),n("HiXI"),n("7ueG"),n("z8NH"),n("SpvK"),n("/Yfv"),n("iwkZ"),n("FDzp"),n("XMab"),n("ilnZ"),n("hMMk"),n("+ywr"),n("c162"),n("IL/d"),n("gvgV"),n("YL0P"),n("7JcK"),n("PF2M"),n("IZzc"),n("s5qe"),n("cvf0"),n("ENF9"),n("H+LF"),n("66V8"),n("iIM6"),n("2tOg"),n("gYJb"),n("EDT/"),n("j+VE"),n("wgYD"),n("R3/m"),n("l/vG"),n("0q/z"),n("n5pg"),n("zu+z"),n("ihrJ"),n("Q7Pz"),n("unQa"),n("Vnov"),n("nIe3"),n("CUyW"),n("qc1c"),n("5921"),n("VOz1"),n("Thag"),n("9D6x"),n("cOPa"),n("vdRX"),n("KrxN"),n("SL6q"),n("lehK"),n("eO0o"),n("NqR8"),n("w7s6"),n("uWhJ"),n("WPzJ"),n("NV22"),n("ny8l"),n("a5/B"),n("vzwy"),n("pevA"),n("8go2"),n("DrvE"),n("kCkZ"),n("++zV"),n("Y4C7"),n("ZsH6"),n("vZi8"),n("5r1n"),n("sQ9d"),n("bdeN"),n("AwgR"),n("qgGA"),n("49+q"),n("AVoK"),n("hcok"),n("dNT4"),n("3uUd"),n("tijO"),n("1kQv"),n("ZY7T"),n("C1JJ"),n("lmH4"),n("Co1j"),n("5JV0"),n("ctDJ"),n("8r4s"),n("JwUS"),n("qaHo"),n("Si40"),n("BGb9"),n("fN96"),n("UzNg"),n("DhMN"),n("rZ3M"),n("apDx"),n("4XaG"),n("6V7H"),n("cfiF"),n("702D"),n("TJ79"),n("Z4nd"),n("8STE"),n("spTT"),n("rb3L"),n("FZtP"),n("3bBZ"),n("Ew+T"),n("n5b4"),n("Kz25"),n("vxnP"),n("mGGf"),n("VWci");var r=n("bCY9"),i=n("FfOG"),a=n("LtsZ"),o=n("zlVK"),s=n("tJVT");function u(){var e=[{path:"/~demos/:uuid",layout:!1,wrappers:[n("afA6").default],component:e=>{var t=n("q1tI"),r=n("F4QJ"),i=r.default,a=n("Zxc8"),o=a.default,u=n("dEAq"),l=u.usePrefersColor,c=u.context,f=t.useContext(c),d=f.demos,h=t.useState([]),p=Object(s["a"])(h,2),v=p[0],m=p[1];switch(t.useLayoutEffect((()=>{m(i(e,d))}),[e.match.params.uuid,e.location.query.wrapper,e.location.query.capture]),l(),v.length){case 1:return v[0];case 2:return t.createElement(o,v[0],v[1]);default:return"Demo ".concat(e.match.params.uuid," not found :(")}}},{path:"/_demos/:uuid",redirect:"/~demos/:uuid"},{__dumiRoot:!0,layout:!1,path:"/",wrappers:[n("afA6").default,n("0Bia").default],routes:[{path:"/",component:n("F+kV").default,exact:!0,meta:{filePath:"docs/index.md",updatedTime:16663484e5,hero:{title:"react-3d-model",desc:'

react-3d-model site example

',actions:[{text:"Getting Started",link:"/guide"}]},footer:'

Open-source MIT Licensed | Copyright \xa9 2022

',slugs:[],hasPreviewer:!0,title:"Index"},title:"Index - react-3d-model"},{path:"/guide/collada",component:n("QiU6").default,exact:!0,meta:{filePath:"src/Collada/index.md",updatedTime:16663484e5,componentName:"Collada",nav:{title:"Collada",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d Collada",heading:"\u52a0\u8f7d-collada"}],title:"\u52a0\u8f7d Collada",hasPreviewer:!0,group:{path:"/guide/collada",title:"Collada"}},title:"\u52a0\u8f7d Collada - react-3d-model"},{path:"/guide/fbx",component:n("iOk6").default,exact:!0,meta:{filePath:"src/FBX/index.md",updatedTime:16663484e5,componentName:"FBX",nav:{title:"FBX",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/fbx",title:"FBX"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide/gltf",component:n("4mmX").default,exact:!0,meta:{filePath:"src/GLTF/index.md",updatedTime:16663484e5,componentName:"GLTF",nav:{title:"GLTF",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d GLTF",heading:"\u52a0\u8f7d-gltf"}],title:"\u52a0\u8f7d GLTF",hasPreviewer:!0,group:{path:"/guide/gltf",title:"GLTF"}},title:"\u52a0\u8f7d GLTF - react-3d-model"},{path:"/guide/background",component:n("vbWi").default,exact:!0,meta:{filePath:"src/guide/background.md",updatedTime:16663484e5,nav:{title:"\u80cc\u666f\u8272",path:"/guide/background"},slugs:[{depth:2,value:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272",heading:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272"}],title:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272",hasPreviewer:!0},title:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272 - react-3d-model"},{path:"/guide/installation",component:n("7wwI").default,exact:!0,meta:{filePath:"src/guide/installation.md",updatedTime:16663484e5,nav:{title:"\u5b89\u88c5",path:"/guide/installation"},slugs:[{depth:1,value:"\u5b89\u88c5",heading:"\u5b89\u88c5"},{depth:2,value:"\u4f7f\u7528\u5305\u7ba1\u7406\u5668",heading:"\u4f7f\u7528\u5305\u7ba1\u7406\u5668"}],title:"\u5b89\u88c5"},title:"\u5b89\u88c5 - react-3d-model"},{path:"/guide/rotation",component:n("YzKT").default,exact:!0,meta:{filePath:"src/guide/rotation.md",updatedTime:16663484e5,nav:{title:"\u65cb\u8f6c",path:"/guide/rotation"},slugs:[{depth:2,value:"\u65cb\u8f6c\u6a21\u578b",heading:"\u65cb\u8f6c\u6a21\u578b"}],title:"\u65cb\u8f6c\u6a21\u578b",hasPreviewer:!0},title:"\u65cb\u8f6c\u6a21\u578b - react-3d-model"},{path:"/guide/snapshot",component:n("zREE").default,exact:!0,meta:{filePath:"src/guide/snapshot.md",updatedTime:16663484e5,nav:{title:"\u622a\u56fe",path:"/guide/snapshot"},slugs:[{depth:2,value:"\u83b7\u53d6\u622a\u56fe",heading:"\u83b7\u53d6\u622a\u56fe"}],title:"\u83b7\u53d6\u622a\u56fe",hasPreviewer:!0},title:"\u83b7\u53d6\u622a\u56fe - react-3d-model"},{path:"/guide/obj",component:n("gIx/").default,exact:!0,meta:{filePath:"src/OBJ/index.md",updatedTime:16663484e5,componentName:"OBJ",nav:{title:"OBJ",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/obj",title:"OBJ"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide/ply",component:n("HblT").default,exact:!0,meta:{filePath:"src/PLY/index.md",updatedTime:16663484e5,componentName:"PLY",nav:{title:"PLY",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/ply",title:"PLY"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide/stl",component:n("KYY/").default,exact:!0,meta:{filePath:"src/STL/index.md",updatedTime:16663484e5,componentName:"STL",nav:{title:"STL",path:"/guide"},slugs:[{depth:2,value:"\u52a0\u8f7d FBX",heading:"\u52a0\u8f7d-fbx"}],title:"\u52a0\u8f7d FBX",hasPreviewer:!0,group:{path:"/guide/stl",title:"STL"}},title:"\u52a0\u8f7d FBX - react-3d-model"},{path:"/guide",meta:{},exact:!0,redirect:"/guide/installation"}],title:"react-3d-model",component:e=>e.children}];return r["a"].applyPlugins({key:"patchRoutes",type:a["ApplyPluginsType"].event,args:{routes:e}}),e}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].applyPlugins({key:"render",type:a["ApplyPluginsType"].compose,initialValue:()=>{var t=r["a"].applyPlugins({key:"modifyClientRenderOpts",type:a["ApplyPluginsType"].modify,initialValue:{routes:e.routes||u(),plugin:r["a"],history:Object(i["a"])(e.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,rootElement:"root",defaultTitle:"react-3d-model"}});return Object(o["renderClient"])(t)},args:e})},c=l();t["default"]=c();window.g_umi={version:"3.5.34"}},tEiQ:function(e,t,n){"use strict";(function(e){var r=n("q1tI"),i=n.n(r),a=n("dI71"),o=n("17x9"),s=n.n(o),u=1073741823,l="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function c(){var e="__global_unique_id__";return l[e]=(l[e]||0)+1}function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function d(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}function h(e){return Array.isArray(e)?e[0]:e}function p(e,t){var n,i,o="__create-react-context-"+c()+"__",l=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=d(t.props.value),t}Object(a["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;f(r,i)?n=0:(n="function"===typeof t?t(r,i):u,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);l.childContextTypes=(n={},n[o]=s.a.object.isRequired,n);var p=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(a["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?u:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?u:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return h(this.props.children)(this.state.value)},n}(r["Component"]);return p.contextTypes=(i={},i[o]=s.a.object,i),{Provider:l,Consumer:p}}var v=i.a.createContext||p;t["a"]=v}).call(this,n("IyRk"))},tJVT:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done);o=!0)if(a.push(r.value),t&&a.length===t)break}catch(u){s=!0,i=u}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw i}}return a}}n.d(t,"a",(function(){return s}));var a=n("Qw5x");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||Object(a["a"])(e,t)||o()}},tMB7:function(e,t,n){var r=n("y1pI");function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},tW5y:function(e,t,n){"use strict";var r=n("hh1v"),i=n("m/L8"),a=n("4WOD"),o=n("tiKp"),s=o("hasInstance"),u=Function.prototype;s in u||i.f(u,s,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=a(e))if(this.prototype===e)return!0;return!1}})},tXUg:function(e,t,n){var r,i,a,o,s,u,l,c,f=n("2oRo"),d=n("Bs8V").f,h=n("xrYK"),p=n("LPSS").set,v=n("HNyW"),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==h(g),x=d(f,"queueMicrotask"),w=x&&x.value;w||(r=function(){var e,t;b&&(e=g.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?o():a=void 0,n}}a=void 0,e&&e.enter()},b?o=function(){g.nextTick(r)}:m&&!v?(s=!0,u=document.createTextNode(""),new m(r).observe(u,{characterData:!0}),o=function(){u.data=s=!s}):y&&y.resolve?(l=y.resolve(void 0),c=l.then,o=function(){c.call(l,r)}):o=function(){p.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},tadb:function(e,t,n){var r=n("Cwc5"),i=n("Kz5y"),a=r(i,"DataView");e.exports=a},tiKp:function(e,t,n){var r=n("2oRo"),i=n("VpIT"),a=n("UTVS"),o=n("kOOl"),s=n("STAE"),u=n("/b8u"),l=i("wks"),c=r.Symbol,f=u?c:c&&c.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(c,e)?l[e]=c[e]:l[e]=f("Symbol."+e)),l[e]}},tijO:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("glrk"),o=n("A2ZE"),s=n("WGBp"),u=n("ImZN");r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e){if(r(e,e,t))return u.stop(e)}),void 0,!1,!0).result}})},tjZM:function(e,t,n){var r=n("dG/n");r("asyncIterator")},toAj:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ppGB"),a=n("QIpd"),o=n("EUja"),s=n("0Dky"),u=1..toFixed,l=Math.floor,c=function(e,t,n){return 0===t?n:t%2===1?c(e,t-1,n*e):c(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,s,u=a(this),d=i(e),h=[0,0,0,0,0,0],p="",v="0",m=function(e,t){var n=-1,r=t;while(++n<6)r+=e*h[n],h[n]=r%1e7,r=l(r/1e7)},g=function(e){var t=6,n=0;while(--t>=0)n+=h[t],h[t]=l(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==h[e]){var n=String(h[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(t=f(u*c(2,69,1))-69,n=t<0?u*c(2,-t,1):u/c(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),r=d;while(r>=7)m(1e7,0),r-=7;m(c(10,r,1),0),r=t-1;while(r>=23)g(1<<23),r-=23;g(1<0?(s=v.length,v=p+(s<=d?"0."+o.call("0",d-s)+v:v.slice(0,s-d)+"."+v.slice(s-d))):v=p+v,v}})},tycR:function(e,t,n){var r=n("A2ZE"),i=n("RK3t"),a=n("ewvW"),o=n("UMSQ"),s=n("ZfDv"),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f;return function(h,p,v,m){for(var g,y,b=a(h),x=i(b),w=r(p,v,3),_=o(x.length),E=0,S=m||s,k=t?S(h,_):n?S(h,0):void 0;_>E;E++)if((d||E in x)&&(g=x[E],y=w(g,E,b),e))if(t)k[E]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:u.call(k,g)}else if(c)return!1;return f?-1:l||c?c:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},u8Dt:function(e,t,n){var r=n("YESw"),i="__lodash_hash_undefined__",a=Object.prototype,o=a.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}e.exports=s},uWhJ:function(e,t,n){var r=n("I+eb"),i=Math.PI/180;r({target:"Math",stat:!0},{radians:function(e){return e*i}})},unQa:function(e,t,n){"use strict";var r=n("I+eb"),i=n("ImZN"),a=n("HAuM");r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;a(t);var r=a(n.set);return i(e,(function(e){r.call(n,t(e),e)})),n}})},uqXc:function(e,t,n){var r=n("I+eb"),i=n("5Yz+");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},uy83:function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},v5b1:function(e,t,n){"use strict";var r=n("I+eb"),i=n("g6v/"),a=n("6x0u"),o=n("ewvW"),s=n("wE6v"),u=n("4WOD"),l=n("Bs8V").f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=o(this),r=s(e,!0);do{if(t=l(n,r))return t.get}while(n=u(n))}})},vRGJ:function(e,t,n){var r=n("AqCL");e.exports=y,e.exports.parse=a,e.exports.compile=o,e.exports.tokensToFunction=l,e.exports.tokensToRegExp=g;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){var n,r=[],a=0,o=0,s="",u=t&&t.delimiter||"/";while(null!=(n=i.exec(e))){var l=n[0],d=n[1],h=n.index;if(s+=e.slice(o,h),o=h+l.length,d)s+=d[1];else{var p=e[o],v=n[2],m=n[3],g=n[4],y=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=v&&null!=p&&p!==v,_="+"===b||"*"===b,E="?"===b||"*"===b,S=n[2]||u,k=g||y;r.push({name:m||a++,prefix:v||"",delimiter:S,optional:E,repeat:_,partial:w,asterisk:!!x,pattern:k?f(k):x?".*":"[^"+c(S)+"]+?"})}}return o{var t=e.demos,n=t["background-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272"},i.a.createElement(a["AnchorLink"],{to:"#\u8bbe\u7f6e\u80cc\u666f\u989c\u8272","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u8bbe\u7f6e\u80cc\u666f\u989c\u8272"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["background-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},vdRX:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},viRO:function(e,t,n){"use strict";var r=n("MgzW"),i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nL.length&&L.push(e)}function N(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(r,e,""===t?"."+j(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;uu||n!=n?f*(1/0):f*n)}},voyM:function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},vuIU:function(e,t,n){"use strict";function r(e,t){for(var n=0;n36)throw RangeError(s);if(!u.test(e)||(r=a(e,n)).toString(n)!==e)throw SyntaxError(o);return l*r}})},w1rZ:function(e,t,n){var r=n("I+eb"),i=n("fhKU");r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},w7s6:function(e,t,n){var r=n("I+eb");r({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},wE6v:function(e,t,n){var r=n("hh1v");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"wF/u":function(e,t,n){var r=n("e5cp"),i=n("ExA7");function a(e,t,n,o,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,o,a,s))}e.exports=a},wJg7:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?n:t,!!t&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e>>0||(s.test(n)?16:10))}:o},wgJM:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var a=0,o=new Map;function s(e){o["delete"](e)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;a+=1;var n=a;function i(t){if(0===t)s(n),e();else{var a=r((function(){i(t-1)}));o.set(n,a)}}return i(t),n}u.cancel=function(e){var t=o.get(e);return s(t),i(t)}},wgYD:function(e,t,n){"use strict";var r=n("I+eb"),i=n("xDBR"),a=n("Cg3G");r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},wx14:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?arguments[1]:void 0)}})},yl30:function(e,t,n){"use strict";var r=n("q1tI"),i=n("MgzW"),a=n("JhMR");function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Z(e,t,n,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var J={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){J[e]=new Z(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];J[t]=new Z(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){J[e]=new Z(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){J[e]=new Z(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){J[e]=new Z(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){J[e]=new Z(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){J[e]=new Z(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){J[e]=new Z(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){J[e]=new Z(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,Q);J[t]=new Z(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,Q);J[t]=new Z(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,Q);J[t]=new Z(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){J[e]=new Z(e,1,!1,e.toLowerCase(),null,!1)})),J.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){J[e]=new Z(e,1,!1,e.toLowerCase(),null,!0)}));var ee=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function te(e,t,n,r){var i=J.hasOwnProperty(t)?J[t]:null,a=null!==i?0===i.type:!r&&(2=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Ee(n)}}function Ue(e,t){var n=Ee(t.value),r=Ee(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Be(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var ze={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function He(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?He(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ve,We=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n,r,i)}))}:e}((function(e,t){if(e.namespaceURI!==ze.svg||"innerHTML"in e)e.innerHTML=t;else{for(Ve=Ve||document.createElement("div"),Ve.innerHTML=""+t.valueOf().toString()+"",t=Ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function qe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Xe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ye={animationend:Xe("Animation","AnimationEnd"),animationiteration:Xe("Animation","AnimationIteration"),animationstart:Xe("Animation","AnimationStart"),transitionend:Xe("Transition","TransitionEnd")},Ke={},Ze={};function Je(e){if(Ke[e])return Ke[e];if(!Ye[e])return e;var t,n=Ye[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ze)return Ke[e]=n[t];return e}A&&(Ze=document.createElement("div").style,"AnimationEvent"in window||(delete Ye.animationend.animation,delete Ye.animationiteration.animation,delete Ye.animationstart.animation),"TransitionEvent"in window||delete Ye.transitionend.transition);var $e=Je("animationend"),Qe=Je("animationiteration"),et=Je("animationstart"),tt=Je("transitionend"),nt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rt=new("function"===typeof WeakMap?WeakMap:Map);function it(e){var t=rt.get(e);return void 0===t&&(t=new Map,rt.set(e,t)),t}function at(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!==(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ot(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function st(e){if(at(e)!==e)throw Error(o(188))}function ut(e){var t=e.alternate;if(!t){if(t=at(e),null===t)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(r=i.return,null!==r){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return st(i),e;if(a===r)return st(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}function lt(e){if(e=ut(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ct(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ft(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var dt=null;function ht(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rgt.length&>.push(e)}function bt(e,t,n,r){if(gt.length){var i=gt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function xt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=zn(r)}while(n);for(n=0;n=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xn(r)}}function _n(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?_n(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function En(){for(var e=window,t=bn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=bn(e.document)}return t}function Sn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var kn="$",Mn="/$",Tn="$?",An="$!",On=null,Rn=null;function Cn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ln(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Pn="function"===typeof setTimeout?setTimeout:void 0,In="function"===typeof clearTimeout?clearTimeout:void 0;function Nn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Dn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===kn||n===An||n===Tn){if(0===t)return e;t--}else n===Mn&&t++}e=e.previousSibling}return null}var jn=Math.random().toString(36).slice(2),Fn="__reactInternalInstance$"+jn,Un="__reactEventHandlers$"+jn,Bn="__reactContainere$"+jn;function zn(e){var t=e[Fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[Fn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dn(e);null!==e;){if(n=e[Fn])return n;e=Dn(e)}return t}e=n,n=e.parentNode}return null}function Hn(e){return e=e[Fn]||e[Bn],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Gn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Vn(e){return e[Un]||null}function Wn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function qn(e,t){var n=e.stateNode;if(!n)return null;var r=v(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}function Xn(e,t,n){(t=qn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ct(n._dispatchListeners,t),n._dispatchInstances=ct(n._dispatchInstances,e))}function Yn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Wn(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function sr(e){e.eventPool=[],e.getPooled=ar,e.release=or}i(ir.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){this.isPersistent=nr},isPersistent:rr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=rr,this._dispatchInstances=this._dispatchListeners=null}}),ir.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ir.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,sr(n),n},sr(ir);var ur=ir.extend({data:null}),lr=ir.extend({data:null}),cr=[9,13,27,32],fr=A&&"CompositionEvent"in window,dr=null;A&&"documentMode"in document&&(dr=document.documentMode);var hr=A&&"TextEvent"in window&&!dr,pr=A&&(!fr||dr&&8=dr),vr=String.fromCharCode(32),mr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},gr=!1;function yr(e,t){switch(e){case"keyup":return-1!==cr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function br(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var xr=!1;function wr(e,t){switch(e){case"compositionend":return br(t);case"keypress":return 32!==t.which?null:(gr=!0,vr);case"textInput":return e=t.data,e===vr&&gr?null:e;default:return null}}function _r(e,t){if(xr)return"compositionend"===e||!fr&&yr(e,t)?(e=tr(),er=Qn=$n=null,xr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,ii={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ai=null,oi=null,si=null,ui=!1;function li(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ui||null==ai||ai!==bn(n)?null:(n=ai,"selectionStart"in n&&Sn(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),si&&ni(si,n)?null:(si=n,e=ir.getPooled(ii.select,oi,e,t),e.type="select",e.target=ai,Jn(e),e))}var ci={eventTypes:ii,extractEvents:function(e,t,n,r,i,a){if(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument),!(a=!i)){e:{i=it(i),a=M.onSelect;for(var o=0;oki||(e.current=Si[ki],Si[ki]=null,ki--)}function Ti(e,t){ki++,Si[ki]=e.current,e.current=t}var Ai={},Oi={current:Ai},Ri={current:!1},Ci=Ai;function Li(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pi(e){return e=e.childContextTypes,null!==e&&void 0!==e}function Ii(){Mi(Ri),Mi(Oi)}function Ni(e,t,n){if(Oi.current!==Ai)throw Error(o(168));Ti(Oi,t),Ti(Ri,n)}function Di(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext(),r)if(!(a in e))throw Error(o(108,we(t)||"Unknown",a));return i({},n,{},r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Ci=Oi.current,Ti(Oi,e),Ti(Ri,Ri.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Di(e,t,Ci),r.__reactInternalMemoizedMergedChildContext=e,Mi(Ri),Mi(Oi),Ti(Oi,e)):Mi(Ri),Ti(Ri,n)}var Ui=a.unstable_runWithPriority,Bi=a.unstable_scheduleCallback,zi=a.unstable_cancelCallback,Hi=a.unstable_requestPaint,Gi=a.unstable_now,Vi=a.unstable_getCurrentPriorityLevel,Wi=a.unstable_ImmediatePriority,qi=a.unstable_UserBlockingPriority,Xi=a.unstable_NormalPriority,Yi=a.unstable_LowPriority,Ki=a.unstable_IdlePriority,Zi={},Ji=a.unstable_shouldYield,$i=void 0!==Hi?Hi:function(){},Qi=null,ea=null,ta=!1,na=Gi(),ra=1e4>na?Gi:function(){return Gi()-na};function ia(){switch(Vi()){case Wi:return 99;case qi:return 98;case Xi:return 97;case Yi:return 96;case Ki:return 95;default:throw Error(o(332))}}function aa(e){switch(e){case 99:return Wi;case 98:return qi;case 97:return Xi;case 96:return Yi;case 95:return Ki;default:throw Error(o(332))}}function oa(e,t){return e=aa(e),Ui(e,t)}function sa(e,t,n){return e=aa(e),Bi(e,t,n)}function ua(e){return null===Qi?(Qi=[e],ea=Bi(Wi,ca)):Qi.push(e),Zi}function la(){if(null!==ea){var e=ea;ea=null,zi(e)}ca()}function ca(){if(!ta&&null!==Qi){ta=!0;var e=0;try{var t=Qi;oa(99,(function(){for(;e=t&&(Yo=!0),e.firstContext=null)}function wa(e,t){if(ma!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ma=e,t=1073741823),t={context:e,observedBits:t,next:null},null===va){if(null===pa)throw Error(o(308));va=t,pa.dependencies={expirationTime:0,firstContext:t,responders:null}}else va=va.next=t;return e._currentValue}var _a=!1;function Ea(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ka(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function Ma(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ta(e,t){var n=e.alternate;null!==n&&Sa(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Aa(e,t,n,r){var a=e.updateQueue;_a=!1;var o=a.baseQueue,s=a.shared.pending;if(null!==s){if(null!==o){var u=o.next;o.next=s.next,s.next=u}o=s,a.shared.pending=null,u=e.alternate,null!==u&&(u=u.updateQueue,null!==u&&(u.baseQueue=s))}if(null!==o){u=o.next;var l=a.baseState,c=0,f=null,d=null,h=null;if(null!==u){var p=u;do{if(s=p.expirationTime,sc&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Du(s,p.suspenseConfig);e:{var m=e,g=p;switch(s=t,v=n,g.tag){case 1:if(m=g.payload,"function"===typeof m){l=m.call(v,l,s);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(m=g.payload,s="function"===typeof m?m.call(v,l,s):m,null===s||void 0===s)break e;l=i({},l,s);break e;case 2:_a=!0}}null!==p.callback&&(e.effectTag|=32,s=a.effects,null===s?a.effects=[p]:s.push(p))}if(p=p.next,null===p||p===u){if(s=a.shared.pending,null===s)break;p=o.next=s.next,s.next=u,a.baseQueue=o=s,a.shared.pending=null}}while(1)}null===h?f=l:h.next=d,a.baseState=f,a.baseQueue=h,ju(c),e.expirationTime=c,e.memoizedState=l}}function Oa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tv?(m=f,f=null):m=f.sibling;var g=h(i,f,s[v],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===c?l=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;vm?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,l);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),c;if(null===v){for(;!y.done;m++,y=u.next())y=d(i,y.value,l),null!==y&&(s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(i,v);!y.done;m++,y=u.next())y=p(v,i,m,y.value,l),null!==y&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"===typeof a&&null!==a&&a.type===oe&&null===a.key;l&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case ie:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(a.type===oe){n(e,l.sibling),r=i(l,a.props.children),r.return=e,e=r;break e}break;default:if(l.elementType===a.type){n(e,l.sibling),r=i(l,a.props),r.ref=Ua(e,l,a),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}a.type===oe?(r=sl(a.props.children,e.mode,u,a.key),r.return=e,e=r):(u=ol(a.type,a.key,a.props,null,e.mode,u),u.ref=Ua(e,r,a),u.return=e,e=u)}return s(e);case ae:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=i(r,a.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=ll(a,e.mode,u),r.return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=i(r,a),r.return=e,e=r):(n(e,r),r=ul(a,e.mode,u),r.return=e,e=r),s(e);if(Fa(a))return v(e,r,a,u);if(be(a))return m(e,r,a,u);if(c&&Ba(e,a),"undefined"===typeof a&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ha=za(!0),Ga=za(!1),Va={},Wa={current:Va},qa={current:Va},Xa={current:Va};function Ya(e){if(e===Va)throw Error(o(174));return e}function Ka(e,t){switch(Ti(Xa,t),Ti(qa,e),Ti(Wa,Va),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ge(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ge(t,e)}Mi(Wa),Ti(Wa,t)}function Za(){Mi(Wa),Mi(qa),Mi(Xa)}function Ja(e){Ya(Xa.current);var t=Ya(Wa.current),n=Ge(t,e.type);t!==n&&(Ti(qa,e),Ti(Wa,n))}function $a(e){qa.current===e&&(Mi(Wa),Mi(qa))}var Qa={current:0};function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===Tn||n.data===An))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function to(e,t){return{responder:e,props:t}}var no=ee.ReactCurrentDispatcher,ro=ee.ReactCurrentBatchConfig,io=0,ao=null,oo=null,so=null,uo=!1;function lo(){throw Error(o(321))}function co(e,t){if(null===t)return!1;for(var n=0;na))throw Error(o(301));a+=1,so=oo=null,t.updateQueue=null,no.current=jo,e=n(r,i)}while(t.expirationTime===io)}if(no.current=Io,t=null!==oo&&null!==oo.next,io=0,so=oo=ao=null,uo=!1,t)throw Error(o(300));return e}function ho(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===so?ao.memoizedState=so=e:so=so.next=e,so}function po(){if(null===oo){var e=ao.alternate;e=null!==e?e.memoizedState:null}else e=oo.next;var t=null===so?ao.memoizedState:so.next;if(null!==t)so=t,oo=e;else{if(null===e)throw Error(o(310));oo=e,e={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},null===so?ao.memoizedState=so=e:so=so.next=e}return so}function vo(e,t){return"function"===typeof t?t(e):t}function mo(e){var t=po(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=oo,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=a=null,l=i;do{var c=l.expirationTime;if(cao.expirationTime&&(ao.expirationTime=c,ju(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Du(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=s,ei(r,t.memoizedState)||(Yo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function go(e){var t=po(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ei(a,t.memoizedState)||(Yo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function yo(e){var t=ho();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},e=e.dispatch=Po.bind(null,ao,e),[t.memoizedState,e]}function bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ao.updateQueue,null===t?(t={lastEffect:null},ao.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xo(){return po().memoizedState}function wo(e,t,n,r){var i=ho();ao.effectTag|=e,i.memoizedState=bo(1|t,n,void 0,void 0===r?null:r)}function _o(e,t,n,r){var i=po();r=void 0===r?null:r;var a=void 0;if(null!==oo){var o=oo.memoizedState;if(a=o.destroy,null!==r&&co(r,o.deps))return void bo(t,n,a,r)}ao.effectTag|=e,i.memoizedState=bo(1|t,n,a,r)}function Eo(e,t){return wo(516,4,e,t)}function So(e,t){return _o(516,4,e,t)}function ko(e,t){return _o(4,2,e,t)}function Mo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function To(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_o(4,2,Mo.bind(null,t,e),n)}function Ao(){}function Oo(e,t){return ho().memoizedState=[e,void 0===t?null:t],e}function Ro(e,t){var n=po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Lo(e,t,n){var r=ia();oa(98>r?98:r,(function(){e(!0)})),oa(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(a,{is:r.is}):(e=u.createElement(a),"select"===a&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,a),e[Fn]=t,e[Un]=r,is(e,t,!1,!1),t.stateNode=e,u=vn(a,r),a){case"iframe":case"object":case"embed":nn("load",e),l=r;break;case"video":case"audio":for(l=0;lr.tailExpiration&&1t)&&yu.set(e,t)))}}function ku(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function Tu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=ua(Ou.bind(null,e));else{var t=Mu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=_u();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Zi&&zi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?ua(Ou.bind(null,e)):sa(r,Au.bind(null,e),{timeout:10*(1073741821-t)-ra()}),e.callbackNode=t}}}function Au(e,t){if(wu=0,t)return t=_u(),pl(e,t),Tu(e),null;var n=Mu(e);if(0!==n){if(t=e.callbackNode,($s&(Vs|Ws))!==Hs)throw Error(o(327));if(qu(),e===Qs&&n===tu||Pu(e,n),null!==eu){var r=$s;$s|=Vs;var i=Nu();do{try{Uu();break}catch(u){Iu(e,u)}}while(1);if(ga(),$s=r,Bs.current=i,nu===Xs)throw t=ru,Pu(e,n),dl(e,n),Tu(e),t;if(null===eu)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=nu,Qs=null,r){case qs:case Xs:throw Error(o(345));case Ys:pl(e,2=n){e.lastPingedTime=n,Pu(e,n);break}}if(a=Mu(e),0!==a&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Pn(Gu.bind(null,e),i);break}Gu(e);break;case Zs:if(dl(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Hu(i)),uu&&(i=e.lastPingedTime,0===i||i>=n)){e.lastPingedTime=n,Pu(e,n);break}if(i=Mu(e),0!==i&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==au?r=10*(1073741821-au)-ra():1073741823===iu?r=0:(r=10*(1073741821-iu)-5e3,i=ra(),n=10*(1073741821-n)-i,r=i-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Us(r/1960))-r,n=r?r=0:(i=0|s.busyDelayMs,a=ra()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)),r=a<=i?0:i+r-a),10 component higher in the tree to provide a loading indicator or placeholder to display."+_e(o))}nu!==Js&&(nu=Ys),s=gs(s,o),f=a;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=t;var x=Ds(f,u,t);Ta(f,x);break e;case 1:u=s;var w=f.type,_=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===pu||!pu.has(_)))){f.effectTag|=4096,f.expirationTime=t;var E=js(f,u,t);Ta(f,E);break e}}f=f.return}while(null!==f)}eu=zu(eu)}catch(S){t=S;continue}break}while(1)}function Nu(){var e=Bs.current;return Bs.current=Io,null===e?Io:e}function Du(e,t){esu&&(su=e)}function Fu(){for(;null!==eu;)eu=Bu(eu)}function Uu(){for(;null!==eu&&!Ji();)eu=Bu(eu)}function Bu(e){var t=Fs(e.alternate,e,tu);return e.memoizedProps=e.pendingProps,null===t&&(t=zu(e)),zs.current=null,t}function zu(e){eu=e;do{var t=eu.alternate;if(e=eu.return,0===(2048&eu.effectTag)){if(t=vs(t,eu,tu),1===tu||1!==eu.childExpirationTime){for(var n=0,r=eu.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}eu.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=eu.firstEffect),null!==eu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=eu.firstEffect),e.lastEffect=eu.lastEffect),1e?t:e}function Gu(e){var t=ia();return oa(99,Vu.bind(null,e,t)),null}function Vu(e,t){do{qu()}while(null!==mu);if(($s&(Vs|Ws))!==Hs)throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Hu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Qs&&(eu=Qs=null,tu=0),1u&&(c=u,u=s,s=c),c=wn(x,s),f=wn(x,u),c&&f&&(1!==_.rangeCount||_.anchorNode!==c.node||_.anchorOffset!==c.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&(w=w.createRange(),w.setStart(c.node,c.offset),_.removeAllRanges(),s>u?(_.addRange(w),_.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),_.addRange(w)))))),w=[];for(_=x;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof x.focus&&x.focus(),x=0;x=n?ls(e,t,n):(Ti(Qa,1&Qa.current),t=hs(e,t,n),null!==t?t.sibling:null);Ti(Qa,1&Qa.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return ds(e,t,n);t.effectTag|=64}if(i=t.memoizedState,null!==i&&(i.rendering=null,i.tail=null),Ti(Qa,Qa.current),!r)return null}return hs(e,t,n)}Yo=!1}}else Yo=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Li(t,Oi.current),xa(t,n),i=fo(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)){var a=!0;ji(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ea(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&La(t,r,s,e),i.updater=Pa,t.stateNode=i,i._reactInternalFiber=t,ja(t,r,e,n),t=ns(null,t,r,!0,a,n)}else t.tag=0,Ko(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,xe(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=il(i),e=da(i,e),a){case 0:t=es(null,t,i,e,n);break e;case 1:t=ts(null,t,i,e,n);break e;case 11:t=Zo(null,t,i,e,n);break e;case 14:t=Jo(null,t,i,da(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),es(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),ts(e,t,r,i,n);case 3:if(rs(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=t.memoizedState,i=null!==i?i.element:null,Sa(e,t),Aa(t,r,null,n),r=t.memoizedState.element,r===i)qo(),t=hs(e,t,n);else{if((i=t.stateNode.hydrate)&&(Uo=Nn(t.stateNode.containerInfo.firstChild),Fo=t,i=Bo=!0),i)for(n=Ga(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ko(e,t,r,n),qo();t=t.child}return t;case 5:return Ja(t),null===e&&Go(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Ln(r,i)?s=null:null!==a&&Ln(r,a)&&(t.effectTag|=16),Qo(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ko(e,t,s,n),t=t.child),t;case 6:return null===e&&Go(t),null;case 13:return ls(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ha(t,null,r,n):Ko(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),Zo(e,t,r,i,n);case 7:return Ko(e,t,t.pendingProps,n),t.child;case 8:return Ko(e,t,t.pendingProps.children,n),t.child;case 12:return Ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var u=t.type._context;if(Ti(ha,u._currentValue),u._currentValue=a,null!==s)if(u=s.value,a=ei(u,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823),0===a){if(s.children===i.children&&!Ri.current){t=hs(e,t,n);break e}}else for(u=t.child,null!==u&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===u.tag&&(c=ka(n,null),c.tag=2,Ma(u,c)),u.expirationTime=t&&e<=t}function dl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function hl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function pl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function vl(e,t,n,r){var i=t.current,a=_u(),s=Ra.suspense;a=Eu(a,i,s);e:if(n){n=n._reactInternalFiber;t:{if(at(n)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Pi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var l=n.type;if(Pi(l)){n=Di(n,l,u);break e}}n=u}else n=Ai;return null===t.context?t.context=n:t.pendingContext=n,t=ka(a,s),t.payload={element:e},r=void 0===r?null:r,null!==r&&(t.callback=r),Ma(i,t),Su(i,a),a}function ml(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gl(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTimeu)r(s,n=t[u++])&&(~a(l,n)||l.push(n));return l}},yq1k:function(e,t,n){"use strict";var r=n("I+eb"),i=n("TWQb").includes,a=n("RNIs"),o=n("rkAj"),s=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},"z01/":function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},z8NH:function(e,t,n){var r=n("dOgj");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},zBJ4:function(e,t,n){var r=n("2oRo"),i=n("hh1v"),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},zKZe:function(e,t,n){var r=n("I+eb"),i=n("YNrV");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},zLVn:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},zREE:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),a=n("dEAq"),o=n("Zxc8"),s=i.a.memo((e=>{var t=e.demos,n=t["snapshot-demo"].component;return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u83b7\u53d6\u622a\u56fe"},i.a.createElement(a["AnchorLink"],{to:"#\u83b7\u53d6\u622a\u56fe","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:"icon icon-link"})),"\u83b7\u53d6\u622a\u56fe"),i.a.createElement("p",null,"Demo:")),i.a.createElement(o["default"],t["snapshot-demo"].previewerProps,i.a.createElement(n,null))))}));t["default"]=e=>{var t=i.a.useContext(a["context"]),n=t.demos;return i.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&a["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),i.a.createElement(s,{demos:n})}},zYLY:function(e,t,n){"use strict";function r(){var e=n("q1tI");return r=function(){return e},e}function i(e,t){return l(e)||u(e,t)||o(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:0;if(a=0||(i[n]=e[n]);return i}function g(e,t){if(null==e)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function y(e,t){return b(e)||x(e,t)||w(e,t)||E()}function b(e){if(Array.isArray(e))return e}function x(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done);o=!0)if(a.push(r.value),t&&a.length===t)break}catch(u){s=!0,i=u}finally{try{o||null==n["return"]||n["return"]()}finally{if(s)throw i}}return a}}function w(e,t){if(e){if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function k(e){return l["default"].createElement(i.__RouterContext.Consumer,null,(function(t){var n=e.location||t.location,r=e.computedMatch,a=f(f({},t),{},{location:n,match:r}),o=e.render;return l["default"].createElement(i.__RouterContext.Provider,{value:a},a.match?o(f(f({},e.layoutProps),a)):null)}))}var M=["children"];function T(e){return l["default"].createElement(i.__RouterContext.Consumer,null,(function(t){var n,r=e.children,o=g(e,M),s=e.location||t.location,u=null;return a.Children.forEach(r,(function(e){if(null===u&&a.isValidElement(e)){n=e;var r=e.props.path||e.props.from;u=r?i.matchPath(s.pathname,f(f({},e.props),{},{path:r})):t.match}})),u?a.cloneElement(n,{location:s,computedMatch:u,layoutProps:o}):null}))}var A=["component"];function O(e,t){e.component;var n=g(e,A),o=e.component;function s(s){var u=a.useState((function(){return window.g_initialProps})),c=y(u,2),d=c[0],p=c[1];return a.useEffect((function(){var a=function(){var a=h(r().mark((function a(){var u,l,c,d,h;return r().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(l=o,!o.preload){r.next=6;break}return r.next=4,o.preload();case 4:l=r.sent,l=l["default"]||l;case 6:if(c=f(f({isServer:!1,match:null===s||void 0===s?void 0:s.match,history:null===s||void 0===s?void 0:s.history,route:e},t.getInitialPropsCtx||{}),n),!(null===(u=l)||void 0===u?void 0:u.getInitialProps)){r.next=15;break}return r.next=10,t.plugin.applyPlugins({key:"ssr.modifyGetInitialPropsCtx",type:i.ApplyPluginsType.modify,initialValue:c,async:!0});case 10:return d=r.sent,r.next=13,l.getInitialProps(d||c);case 13:h=r.sent,p(h);case 15:case"end":return r.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();window.g_initialProps||a()}),[window.location.pathname,window.location.search]),l["default"].createElement(o,v({},s,d))}return s.wrapInitialPropsLoaded=!0,s.displayName="ComponentWithInitialPropsFetch",s}function R(e){var t=e.route,n=e.opts,r=e.props,i=L(f(f({},n),{},{routes:t.routes||[],rootRoutes:n.rootRoutes}),{location:r.location}),o=t.component,s=t.wrappers;if(o){var u=n.isServer?{}:window.g_initialProps,c=f(f(f(f({},r),n.extraProps),n.pageInitialProps||u),{},{route:t,routes:n.rootRoutes}),d=l["default"].createElement(o,c,i);if(s){var h=s.length-1;while(h>=0)d=a.createElement(s[h],c,d),h-=1}return d}return i}function C(e){var t,n,r,a=e.route,o=e.index,s=e.opts,u={key:a.key||o,exact:a.exact,strict:a.strict,sensitive:a.sensitive,path:a.path};return a.redirect?l["default"].createElement(i.Redirect,v({},u,{from:a.path,to:a.redirect})):(!s.ssrProps||s.isServer||(null===(t=a.component)||void 0===t?void 0:t.wrapInitialPropsLoaded)||!(null===(n=a.component)||void 0===n?void 0:n.getInitialProps)&&!(null===(r=a.component)||void 0===r?void 0:r.preload)||(a.component=O(a,s)),l["default"].createElement(k,v({},u,{render:function(e){return R({route:a,opts:s,props:e})}})))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.routes?l["default"].createElement(T,t,e.routes.map((function(t,n){return C({route:t,index:n,opts:f(f({},e),{},{rootRoutes:e.rootRoutes||e.routes})})}))):null}var P=["history"];function I(e){var t=e.history,n=g(e,P);return a.useEffect((function(){function r(t,r){var a=s.matchRoutes(e.routes,t.pathname);"undefined"!==typeof document&&void 0!==n.defaultTitle&&(document.title=a.length&&a[a.length-1].route.title||n.defaultTitle||""),e.plugin.applyPlugins({key:"onRouteChange",type:i.ApplyPluginsType.event,args:{routes:e.routes,matchedRoutes:a,location:t,action:r}})}return window.g_useSSR&&(window.g_initialProps=null),r(t.location,"POP"),t.listen(r)}),[t]),l["default"].createElement(i.Router,{history:t},L(n))}function N(e){return e.plugin.applyPlugins({type:i.ApplyPluginsType.modify,key:"rootContainer",initialValue:l["default"].createElement(I,{history:e.history,routes:e.routes,plugin:e.plugin,ssrProps:e.ssrProps,defaultTitle:e.defaultTitle}),args:{history:e.history,routes:e.routes,plugin:e.plugin}})}function D(e){return j.apply(this,arguments)}function j(){return j=h(r().mark((function e(t){var n,i,a,o,u,l,c,f,d=arguments;return r().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:window.location.pathname,i=s.matchRoutes(t,n),a=S(i),e.prev=3,a.s();case 5:if((o=a.n()).done){e.next=19;break}if(l=o.value,c=l.route,"string"===typeof c.component||!(null===(u=c.component)||void 0===u?void 0:u.preload)){e.next=13;break}return e.next=11,c.component.preload();case 11:f=e.sent,c.component=f["default"]||f;case 13:if(!c.routes){e.next=17;break}return e.next=16,D(c.routes,n);case 16:c.routes=e.sent;case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e["catch"](3),a.e(e.t0);case 24:return e.prev=24,a.f(),e.finish(24);case 27:return e.abrupt("return",t);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27]])}))),j.apply(this,arguments)}function F(e){var t=N(e);if(!e.rootElement)return t;var n="string"===typeof e.rootElement?document.getElementById(e.rootElement):e.rootElement,r=e.callback||function(){};window.g_useSSR?e.dynamicImport?D(e.routes).then((function(){o.hydrate(t,n,r)})):o.hydrate(t,n,r):o.render(t,n,r)}t.renderClient=F,t.renderRoutes=L},zqmC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.LinkWrapper=void 0;var r=o(n("q1tI")),i=n("LtsZ"),a=["to"];function o(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var c=function(e){return function(t){var n=t.to,i=u(t,a),o=/^(\w+:)?\/\/|^(mailto|tel):/.test(n)||!n,l=r["default"].isValidElement(i.children);return r["default"].createElement(e,s({to:n||"",component:o?function(){return r["default"].createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n},i.children,n&&!l&&r["default"].createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15",className:"__dumi-default-external-link-icon"},r["default"].createElement("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),r["default"].createElement("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})))}:void 0},i,o?{}:{onClick:function(){var e;window.scrollTo({top:0});for(var t=arguments.length,n=new Array(t),r=0;r { return ( diff --git a/src/FBX/index.md b/src/FBX/index.md index d45c0b6..345132a 100644 --- a/src/FBX/index.md +++ b/src/FBX/index.md @@ -10,7 +10,7 @@ Demo: ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/src/GLTF/index.md b/src/GLTF/index.md index 92bc864..9ad7045 100644 --- a/src/GLTF/index.md +++ b/src/GLTF/index.md @@ -10,7 +10,7 @@ Demo: ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/src/OBJ/index.md b/src/OBJ/index.md index d78c31a..c3b7113 100644 --- a/src/OBJ/index.md +++ b/src/OBJ/index.md @@ -10,7 +10,7 @@ Demo: ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/src/PLY/index.md b/src/PLY/index.md index 1457274..49fc5b5 100644 --- a/src/PLY/index.md +++ b/src/PLY/index.md @@ -10,7 +10,7 @@ Demo: ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/src/STL/index.md b/src/STL/index.md index 7d16979..6f84e28 100644 --- a/src/STL/index.md +++ b/src/STL/index.md @@ -10,7 +10,7 @@ Demo: ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/src/guide/background.md b/src/guide/background.md index c1c9300..98bb467 100644 --- a/src/guide/background.md +++ b/src/guide/background.md @@ -10,7 +10,7 @@ Demo: ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => (
diff --git a/src/guide/installation.md b/src/guide/installation.md index f3e6575..a1e9727 100644 --- a/src/guide/installation.md +++ b/src/guide/installation.md @@ -13,17 +13,17 @@ nav: 使用 NPM: ```bash -npm install react-3d-model --save +npm install react-3dmodelx --save ``` 使用 Yarn: ```bash -yarn add react-3d-model +yarn add react-3dmodelx ``` 使用 PNPM: ```bash -pnpm install react-3d-model +pnpm install react-3dmodelx ``` diff --git a/src/guide/rotation.md b/src/guide/rotation.md index a2f3975..c721a45 100644 --- a/src/guide/rotation.md +++ b/src/guide/rotation.md @@ -10,7 +10,7 @@ Demo: ```tsx import React from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => { return ( diff --git a/src/guide/snapshot.md b/src/guide/snapshot.md index 76aba15..835b517 100644 --- a/src/guide/snapshot.md +++ b/src/guide/snapshot.md @@ -10,7 +10,7 @@ Demo: ```tsx import React, { useRef } from 'react'; -import Model from 'react-3d-model'; +import Model from 'react-3dmodelx'; export default () => { const model = useRef();