├── .gitignore ├── package-lock.json ├── package.json ├── public ├── .gitkeep ├── draco │ ├── README.md │ ├── draco_decoder.js │ ├── draco_decoder.wasm │ ├── draco_encoder.js │ ├── draco_wasm_wrapper.js │ └── gltf │ │ ├── draco_decoder.js │ │ ├── draco_decoder.wasm │ │ ├── draco_encoder.js │ │ └── draco_wasm_wrapper.js ├── models │ ├── .gitkeep │ └── Fox │ │ ├── README.md │ │ ├── glTF-Binary │ │ └── Fox.glb │ │ ├── glTF-Embedded │ │ └── Fox.gltf │ │ ├── glTF │ │ ├── Fox.bin │ │ ├── Fox.gltf │ │ └── Texture.png │ │ └── screenshot │ │ └── screenshot.jpg └── textures │ └── matcap.png ├── readme.md ├── sources ├── Experience │ ├── Camera.js │ ├── Experience.js │ ├── Renderer.js │ ├── Utils │ │ ├── Debug.js │ │ ├── EventEmitter.js │ │ ├── Resources.js │ │ ├── Sizes.js │ │ ├── Stats.js │ │ └── Time.js │ ├── World │ │ ├── Fox.js │ │ └── World.js │ └── sources.js ├── index.html ├── script.js └── style.scss └── vite.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.toptal.com/developers/gitignore/api/macos,node 3 | # Edit at https://www.toptal.com/developers/gitignore?templates=macos,node 4 | 5 | ### macOS ### 6 | # General 7 | .DS_Store 8 | .AppleDouble 9 | .LSOverride 10 | 11 | # Icon must end with two \r 12 | Icon 13 | 14 | 15 | # Thumbnails 16 | ._* 17 | 18 | # Files that might appear in the root of a volume 19 | .DocumentRevisions-V100 20 | .fseventsd 21 | .Spotlight-V100 22 | .TemporaryItems 23 | .Trashes 24 | .VolumeIcon.icns 25 | .com.apple.timemachine.donotpresent 26 | 27 | # Directories potentially created on remote AFP share 28 | .AppleDB 29 | .AppleDesktop 30 | Network Trash Folder 31 | Temporary Items 32 | .apdisk 33 | 34 | ### Node ### 35 | # Logs 36 | logs 37 | *.log 38 | npm-debug.log* 39 | yarn-debug.log* 40 | yarn-error.log* 41 | lerna-debug.log* 42 | .pnpm-debug.log* 43 | 44 | # Diagnostic reports (https://nodejs.org/api/report.html) 45 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 46 | 47 | # Runtime data 48 | pids 49 | *.pid 50 | *.seed 51 | *.pid.lock 52 | 53 | # Directory for instrumented libs generated by jscoverage/JSCover 54 | lib-cov 55 | 56 | # Coverage directory used by tools like istanbul 57 | coverage 58 | *.lcov 59 | 60 | # nyc test coverage 61 | .nyc_output 62 | 63 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 64 | .grunt 65 | 66 | # Bower dependency directory (https://bower.io/) 67 | bower_components 68 | 69 | # node-waf configuration 70 | .lock-wscript 71 | 72 | # Compiled binary addons (https://nodejs.org/api/addons.html) 73 | build/Release 74 | 75 | # Dependency directories 76 | node_modules/ 77 | jspm_packages/ 78 | 79 | # Snowpack dependency directory (https://snowpack.dev/) 80 | web_modules/ 81 | 82 | # TypeScript cache 83 | *.tsbuildinfo 84 | 85 | # Optional npm cache directory 86 | .npm 87 | 88 | # Optional eslint cache 89 | .eslintcache 90 | 91 | # Microbundle cache 92 | .rpt2_cache/ 93 | .rts2_cache_cjs/ 94 | .rts2_cache_es/ 95 | .rts2_cache_umd/ 96 | 97 | # Optional REPL history 98 | .node_repl_history 99 | 100 | # Output of 'npm pack' 101 | *.tgz 102 | 103 | # Yarn Integrity file 104 | .yarn-integrity 105 | 106 | # dotenv environment variables file 107 | .env 108 | .env.test 109 | .env.production 110 | 111 | # parcel-bundler cache (https://parceljs.org/) 112 | .cache 113 | .parcel-cache 114 | 115 | # Next.js build output 116 | .next 117 | out 118 | 119 | # Nuxt.js build / generate output 120 | .nuxt 121 | dist 122 | 123 | # Gatsby files 124 | .cache/ 125 | # Comment in the public line in if your project uses Gatsby and not Next.js 126 | # https://nextjs.org/blog/next-9-1#public-directory-support 127 | # public 128 | 129 | # vuepress build output 130 | .vuepress/dist 131 | 132 | # Serverless directories 133 | .serverless/ 134 | 135 | # FuseBox cache 136 | .fusebox/ 137 | 138 | # DynamoDB Local files 139 | .dynamodb/ 140 | 141 | # TernJS port file 142 | .tern-port 143 | 144 | # Stores VSCode versions used for testing VSCode extensions 145 | .vscode-test 146 | 147 | # yarn v2 148 | .yarn/cache 149 | .yarn/unplugged 150 | .yarn/build-state.yml 151 | .yarn/install-state.gz 152 | .pnp.* 153 | 154 | # End of https://www.toptal.com/developers/gitignore/api/macos,node -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "three-js-template", 3 | "lockfileVersion": 2, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "license": "UNLICENSED", 8 | "dependencies": { 9 | "lil-gui": "^0.16.1", 10 | "sass": "^1.54.8", 11 | "stats.js": "^0.17.0", 12 | "stylus": "^0.58.1", 13 | "three": "^0.141.0", 14 | "vite": "^2.9.12", 15 | "vite-plugin-glsl": "^0.1.2" 16 | } 17 | }, 18 | "node_modules/@esbuild/linux-loong64": { 19 | "version": "0.14.54", 20 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz", 21 | "integrity": "sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==", 22 | "cpu": [ 23 | "loong64" 24 | ], 25 | "optional": true, 26 | "os": [ 27 | "linux" 28 | ], 29 | "engines": { 30 | "node": ">=12" 31 | } 32 | }, 33 | "node_modules/@rollup/pluginutils": { 34 | "version": "4.2.1", 35 | "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", 36 | "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", 37 | "dependencies": { 38 | "estree-walker": "^2.0.1", 39 | "picomatch": "^2.2.2" 40 | }, 41 | "engines": { 42 | "node": ">= 8.0.0" 43 | } 44 | }, 45 | "node_modules/anymatch": { 46 | "version": "3.1.2", 47 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 48 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 49 | "dependencies": { 50 | "normalize-path": "^3.0.0", 51 | "picomatch": "^2.0.4" 52 | }, 53 | "engines": { 54 | "node": ">= 8" 55 | } 56 | }, 57 | "node_modules/atob": { 58 | "version": "2.1.2", 59 | "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", 60 | "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", 61 | "bin": { 62 | "atob": "bin/atob.js" 63 | }, 64 | "engines": { 65 | "node": ">= 4.5.0" 66 | } 67 | }, 68 | "node_modules/balanced-match": { 69 | "version": "1.0.2", 70 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 71 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 72 | }, 73 | "node_modules/binary-extensions": { 74 | "version": "2.2.0", 75 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 76 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 77 | "engines": { 78 | "node": ">=8" 79 | } 80 | }, 81 | "node_modules/brace-expansion": { 82 | "version": "1.1.11", 83 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 84 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 85 | "dependencies": { 86 | "balanced-match": "^1.0.0", 87 | "concat-map": "0.0.1" 88 | } 89 | }, 90 | "node_modules/braces": { 91 | "version": "3.0.2", 92 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 93 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 94 | "dependencies": { 95 | "fill-range": "^7.0.1" 96 | }, 97 | "engines": { 98 | "node": ">=8" 99 | } 100 | }, 101 | "node_modules/chokidar": { 102 | "version": "3.5.3", 103 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 104 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 105 | "funding": [ 106 | { 107 | "type": "individual", 108 | "url": "https://paulmillr.com/funding/" 109 | } 110 | ], 111 | "dependencies": { 112 | "anymatch": "~3.1.2", 113 | "braces": "~3.0.2", 114 | "glob-parent": "~5.1.2", 115 | "is-binary-path": "~2.1.0", 116 | "is-glob": "~4.0.1", 117 | "normalize-path": "~3.0.0", 118 | "readdirp": "~3.6.0" 119 | }, 120 | "engines": { 121 | "node": ">= 8.10.0" 122 | }, 123 | "optionalDependencies": { 124 | "fsevents": "~2.3.2" 125 | } 126 | }, 127 | "node_modules/concat-map": { 128 | "version": "0.0.1", 129 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 130 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 131 | }, 132 | "node_modules/css": { 133 | "version": "3.0.0", 134 | "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", 135 | "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", 136 | "dependencies": { 137 | "inherits": "^2.0.4", 138 | "source-map": "^0.6.1", 139 | "source-map-resolve": "^0.6.0" 140 | } 141 | }, 142 | "node_modules/debug": { 143 | "version": "4.3.4", 144 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 145 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 146 | "dependencies": { 147 | "ms": "2.1.2" 148 | }, 149 | "engines": { 150 | "node": ">=6.0" 151 | }, 152 | "peerDependenciesMeta": { 153 | "supports-color": { 154 | "optional": true 155 | } 156 | } 157 | }, 158 | "node_modules/decode-uri-component": { 159 | "version": "0.2.0", 160 | "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", 161 | "integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==", 162 | "engines": { 163 | "node": ">=0.10" 164 | } 165 | }, 166 | "node_modules/esbuild": { 167 | "version": "0.14.54", 168 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.54.tgz", 169 | "integrity": "sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==", 170 | "hasInstallScript": true, 171 | "bin": { 172 | "esbuild": "bin/esbuild" 173 | }, 174 | "engines": { 175 | "node": ">=12" 176 | }, 177 | "optionalDependencies": { 178 | "@esbuild/linux-loong64": "0.14.54", 179 | "esbuild-android-64": "0.14.54", 180 | "esbuild-android-arm64": "0.14.54", 181 | "esbuild-darwin-64": "0.14.54", 182 | "esbuild-darwin-arm64": "0.14.54", 183 | "esbuild-freebsd-64": "0.14.54", 184 | "esbuild-freebsd-arm64": "0.14.54", 185 | "esbuild-linux-32": "0.14.54", 186 | "esbuild-linux-64": "0.14.54", 187 | "esbuild-linux-arm": "0.14.54", 188 | "esbuild-linux-arm64": "0.14.54", 189 | "esbuild-linux-mips64le": "0.14.54", 190 | "esbuild-linux-ppc64le": "0.14.54", 191 | "esbuild-linux-riscv64": "0.14.54", 192 | "esbuild-linux-s390x": "0.14.54", 193 | "esbuild-netbsd-64": "0.14.54", 194 | "esbuild-openbsd-64": "0.14.54", 195 | "esbuild-sunos-64": "0.14.54", 196 | "esbuild-windows-32": "0.14.54", 197 | "esbuild-windows-64": "0.14.54", 198 | "esbuild-windows-arm64": "0.14.54" 199 | } 200 | }, 201 | "node_modules/esbuild-android-64": { 202 | "version": "0.14.54", 203 | "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.54.tgz", 204 | "integrity": "sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==", 205 | "cpu": [ 206 | "x64" 207 | ], 208 | "optional": true, 209 | "os": [ 210 | "android" 211 | ], 212 | "engines": { 213 | "node": ">=12" 214 | } 215 | }, 216 | "node_modules/esbuild-android-arm64": { 217 | "version": "0.14.54", 218 | "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.54.tgz", 219 | "integrity": "sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==", 220 | "cpu": [ 221 | "arm64" 222 | ], 223 | "optional": true, 224 | "os": [ 225 | "android" 226 | ], 227 | "engines": { 228 | "node": ">=12" 229 | } 230 | }, 231 | "node_modules/esbuild-darwin-64": { 232 | "version": "0.14.54", 233 | "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz", 234 | "integrity": "sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==", 235 | "cpu": [ 236 | "x64" 237 | ], 238 | "optional": true, 239 | "os": [ 240 | "darwin" 241 | ], 242 | "engines": { 243 | "node": ">=12" 244 | } 245 | }, 246 | "node_modules/esbuild-darwin-arm64": { 247 | "version": "0.14.54", 248 | "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.54.tgz", 249 | "integrity": "sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==", 250 | "cpu": [ 251 | "arm64" 252 | ], 253 | "optional": true, 254 | "os": [ 255 | "darwin" 256 | ], 257 | "engines": { 258 | "node": ">=12" 259 | } 260 | }, 261 | "node_modules/esbuild-freebsd-64": { 262 | "version": "0.14.54", 263 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.54.tgz", 264 | "integrity": "sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg==", 265 | "cpu": [ 266 | "x64" 267 | ], 268 | "optional": true, 269 | "os": [ 270 | "freebsd" 271 | ], 272 | "engines": { 273 | "node": ">=12" 274 | } 275 | }, 276 | "node_modules/esbuild-freebsd-arm64": { 277 | "version": "0.14.54", 278 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.54.tgz", 279 | "integrity": "sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==", 280 | "cpu": [ 281 | "arm64" 282 | ], 283 | "optional": true, 284 | "os": [ 285 | "freebsd" 286 | ], 287 | "engines": { 288 | "node": ">=12" 289 | } 290 | }, 291 | "node_modules/esbuild-linux-32": { 292 | "version": "0.14.54", 293 | "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.54.tgz", 294 | "integrity": "sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw==", 295 | "cpu": [ 296 | "ia32" 297 | ], 298 | "optional": true, 299 | "os": [ 300 | "linux" 301 | ], 302 | "engines": { 303 | "node": ">=12" 304 | } 305 | }, 306 | "node_modules/esbuild-linux-64": { 307 | "version": "0.14.54", 308 | "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz", 309 | "integrity": "sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==", 310 | "cpu": [ 311 | "x64" 312 | ], 313 | "optional": true, 314 | "os": [ 315 | "linux" 316 | ], 317 | "engines": { 318 | "node": ">=12" 319 | } 320 | }, 321 | "node_modules/esbuild-linux-arm": { 322 | "version": "0.14.54", 323 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.54.tgz", 324 | "integrity": "sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw==", 325 | "cpu": [ 326 | "arm" 327 | ], 328 | "optional": true, 329 | "os": [ 330 | "linux" 331 | ], 332 | "engines": { 333 | "node": ">=12" 334 | } 335 | }, 336 | "node_modules/esbuild-linux-arm64": { 337 | "version": "0.14.54", 338 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.54.tgz", 339 | "integrity": "sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig==", 340 | "cpu": [ 341 | "arm64" 342 | ], 343 | "optional": true, 344 | "os": [ 345 | "linux" 346 | ], 347 | "engines": { 348 | "node": ">=12" 349 | } 350 | }, 351 | "node_modules/esbuild-linux-mips64le": { 352 | "version": "0.14.54", 353 | "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz", 354 | "integrity": "sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw==", 355 | "cpu": [ 356 | "mips64el" 357 | ], 358 | "optional": true, 359 | "os": [ 360 | "linux" 361 | ], 362 | "engines": { 363 | "node": ">=12" 364 | } 365 | }, 366 | "node_modules/esbuild-linux-ppc64le": { 367 | "version": "0.14.54", 368 | "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.54.tgz", 369 | "integrity": "sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==", 370 | "cpu": [ 371 | "ppc64" 372 | ], 373 | "optional": true, 374 | "os": [ 375 | "linux" 376 | ], 377 | "engines": { 378 | "node": ">=12" 379 | } 380 | }, 381 | "node_modules/esbuild-linux-riscv64": { 382 | "version": "0.14.54", 383 | "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.54.tgz", 384 | "integrity": "sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg==", 385 | "cpu": [ 386 | "riscv64" 387 | ], 388 | "optional": true, 389 | "os": [ 390 | "linux" 391 | ], 392 | "engines": { 393 | "node": ">=12" 394 | } 395 | }, 396 | "node_modules/esbuild-linux-s390x": { 397 | "version": "0.14.54", 398 | "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.54.tgz", 399 | "integrity": "sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA==", 400 | "cpu": [ 401 | "s390x" 402 | ], 403 | "optional": true, 404 | "os": [ 405 | "linux" 406 | ], 407 | "engines": { 408 | "node": ">=12" 409 | } 410 | }, 411 | "node_modules/esbuild-netbsd-64": { 412 | "version": "0.14.54", 413 | "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.54.tgz", 414 | "integrity": "sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w==", 415 | "cpu": [ 416 | "x64" 417 | ], 418 | "optional": true, 419 | "os": [ 420 | "netbsd" 421 | ], 422 | "engines": { 423 | "node": ">=12" 424 | } 425 | }, 426 | "node_modules/esbuild-openbsd-64": { 427 | "version": "0.14.54", 428 | "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.54.tgz", 429 | "integrity": "sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==", 430 | "cpu": [ 431 | "x64" 432 | ], 433 | "optional": true, 434 | "os": [ 435 | "openbsd" 436 | ], 437 | "engines": { 438 | "node": ">=12" 439 | } 440 | }, 441 | "node_modules/esbuild-sunos-64": { 442 | "version": "0.14.54", 443 | "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.54.tgz", 444 | "integrity": "sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw==", 445 | "cpu": [ 446 | "x64" 447 | ], 448 | "optional": true, 449 | "os": [ 450 | "sunos" 451 | ], 452 | "engines": { 453 | "node": ">=12" 454 | } 455 | }, 456 | "node_modules/esbuild-windows-32": { 457 | "version": "0.14.54", 458 | "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.54.tgz", 459 | "integrity": "sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w==", 460 | "cpu": [ 461 | "ia32" 462 | ], 463 | "optional": true, 464 | "os": [ 465 | "win32" 466 | ], 467 | "engines": { 468 | "node": ">=12" 469 | } 470 | }, 471 | "node_modules/esbuild-windows-64": { 472 | "version": "0.14.54", 473 | "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.54.tgz", 474 | "integrity": "sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==", 475 | "cpu": [ 476 | "x64" 477 | ], 478 | "optional": true, 479 | "os": [ 480 | "win32" 481 | ], 482 | "engines": { 483 | "node": ">=12" 484 | } 485 | }, 486 | "node_modules/esbuild-windows-arm64": { 487 | "version": "0.14.54", 488 | "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.54.tgz", 489 | "integrity": "sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg==", 490 | "cpu": [ 491 | "arm64" 492 | ], 493 | "optional": true, 494 | "os": [ 495 | "win32" 496 | ], 497 | "engines": { 498 | "node": ">=12" 499 | } 500 | }, 501 | "node_modules/estree-walker": { 502 | "version": "2.0.2", 503 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 504 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" 505 | }, 506 | "node_modules/fill-range": { 507 | "version": "7.0.1", 508 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 509 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 510 | "dependencies": { 511 | "to-regex-range": "^5.0.1" 512 | }, 513 | "engines": { 514 | "node": ">=8" 515 | } 516 | }, 517 | "node_modules/fs.realpath": { 518 | "version": "1.0.0", 519 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 520 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 521 | }, 522 | "node_modules/fsevents": { 523 | "version": "2.3.2", 524 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 525 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 526 | "hasInstallScript": true, 527 | "optional": true, 528 | "os": [ 529 | "darwin" 530 | ], 531 | "engines": { 532 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 533 | } 534 | }, 535 | "node_modules/function-bind": { 536 | "version": "1.1.1", 537 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 538 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 539 | }, 540 | "node_modules/glob": { 541 | "version": "7.2.0", 542 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 543 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 544 | "dependencies": { 545 | "fs.realpath": "^1.0.0", 546 | "inflight": "^1.0.4", 547 | "inherits": "2", 548 | "minimatch": "^3.0.4", 549 | "once": "^1.3.0", 550 | "path-is-absolute": "^1.0.0" 551 | }, 552 | "engines": { 553 | "node": "*" 554 | }, 555 | "funding": { 556 | "url": "https://github.com/sponsors/isaacs" 557 | } 558 | }, 559 | "node_modules/glob-parent": { 560 | "version": "5.1.2", 561 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 562 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 563 | "dependencies": { 564 | "is-glob": "^4.0.1" 565 | }, 566 | "engines": { 567 | "node": ">= 6" 568 | } 569 | }, 570 | "node_modules/has": { 571 | "version": "1.0.3", 572 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 573 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 574 | "dependencies": { 575 | "function-bind": "^1.1.1" 576 | }, 577 | "engines": { 578 | "node": ">= 0.4.0" 579 | } 580 | }, 581 | "node_modules/immutable": { 582 | "version": "4.1.0", 583 | "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.1.0.tgz", 584 | "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==" 585 | }, 586 | "node_modules/inflight": { 587 | "version": "1.0.6", 588 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 589 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 590 | "dependencies": { 591 | "once": "^1.3.0", 592 | "wrappy": "1" 593 | } 594 | }, 595 | "node_modules/inherits": { 596 | "version": "2.0.4", 597 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 598 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 599 | }, 600 | "node_modules/is-binary-path": { 601 | "version": "2.1.0", 602 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 603 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 604 | "dependencies": { 605 | "binary-extensions": "^2.0.0" 606 | }, 607 | "engines": { 608 | "node": ">=8" 609 | } 610 | }, 611 | "node_modules/is-core-module": { 612 | "version": "2.9.0", 613 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", 614 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", 615 | "dependencies": { 616 | "has": "^1.0.3" 617 | }, 618 | "funding": { 619 | "url": "https://github.com/sponsors/ljharb" 620 | } 621 | }, 622 | "node_modules/is-extglob": { 623 | "version": "2.1.1", 624 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 625 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 626 | "engines": { 627 | "node": ">=0.10.0" 628 | } 629 | }, 630 | "node_modules/is-glob": { 631 | "version": "4.0.3", 632 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 633 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 634 | "dependencies": { 635 | "is-extglob": "^2.1.1" 636 | }, 637 | "engines": { 638 | "node": ">=0.10.0" 639 | } 640 | }, 641 | "node_modules/is-number": { 642 | "version": "7.0.0", 643 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 644 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 645 | "engines": { 646 | "node": ">=0.12.0" 647 | } 648 | }, 649 | "node_modules/lil-gui": { 650 | "version": "0.16.1", 651 | "resolved": "https://registry.npmjs.org/lil-gui/-/lil-gui-0.16.1.tgz", 652 | "integrity": "sha512-6wnnfBvQxJYRhdLyIA+w5b8utwbuVxNmtpTXElm36OSgHa8lyKp00Xz/4AEx3kvodT0AJYgbfadCFWAM0Q8DgQ==" 653 | }, 654 | "node_modules/minimatch": { 655 | "version": "3.1.2", 656 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 657 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 658 | "dependencies": { 659 | "brace-expansion": "^1.1.7" 660 | }, 661 | "engines": { 662 | "node": "*" 663 | } 664 | }, 665 | "node_modules/ms": { 666 | "version": "2.1.2", 667 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 668 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 669 | }, 670 | "node_modules/nanoid": { 671 | "version": "3.3.3", 672 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", 673 | "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", 674 | "bin": { 675 | "nanoid": "bin/nanoid.cjs" 676 | }, 677 | "engines": { 678 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 679 | } 680 | }, 681 | "node_modules/normalize-path": { 682 | "version": "3.0.0", 683 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 684 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 685 | "engines": { 686 | "node": ">=0.10.0" 687 | } 688 | }, 689 | "node_modules/once": { 690 | "version": "1.4.0", 691 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 692 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 693 | "dependencies": { 694 | "wrappy": "1" 695 | } 696 | }, 697 | "node_modules/path-is-absolute": { 698 | "version": "1.0.1", 699 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 700 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 701 | "engines": { 702 | "node": ">=0.10.0" 703 | } 704 | }, 705 | "node_modules/path-parse": { 706 | "version": "1.0.7", 707 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 708 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" 709 | }, 710 | "node_modules/picocolors": { 711 | "version": "1.0.0", 712 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 713 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 714 | }, 715 | "node_modules/picomatch": { 716 | "version": "2.3.1", 717 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 718 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 719 | "engines": { 720 | "node": ">=8.6" 721 | }, 722 | "funding": { 723 | "url": "https://github.com/sponsors/jonschlinkert" 724 | } 725 | }, 726 | "node_modules/postcss": { 727 | "version": "8.4.13", 728 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.13.tgz", 729 | "integrity": "sha512-jtL6eTBrza5MPzy8oJLFuUscHDXTV5KcLlqAWHl5q5WYRfnNRGSmOZmOZ1T6Gy7A99mOZfqungmZMpMmCVJ8ZA==", 730 | "funding": [ 731 | { 732 | "type": "opencollective", 733 | "url": "https://opencollective.com/postcss/" 734 | }, 735 | { 736 | "type": "tidelift", 737 | "url": "https://tidelift.com/funding/github/npm/postcss" 738 | } 739 | ], 740 | "dependencies": { 741 | "nanoid": "^3.3.3", 742 | "picocolors": "^1.0.0", 743 | "source-map-js": "^1.0.2" 744 | }, 745 | "engines": { 746 | "node": "^10 || ^12 || >=14" 747 | } 748 | }, 749 | "node_modules/readdirp": { 750 | "version": "3.6.0", 751 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 752 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 753 | "dependencies": { 754 | "picomatch": "^2.2.1" 755 | }, 756 | "engines": { 757 | "node": ">=8.10.0" 758 | } 759 | }, 760 | "node_modules/resolve": { 761 | "version": "1.22.0", 762 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", 763 | "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", 764 | "dependencies": { 765 | "is-core-module": "^2.8.1", 766 | "path-parse": "^1.0.7", 767 | "supports-preserve-symlinks-flag": "^1.0.0" 768 | }, 769 | "bin": { 770 | "resolve": "bin/resolve" 771 | }, 772 | "funding": { 773 | "url": "https://github.com/sponsors/ljharb" 774 | } 775 | }, 776 | "node_modules/rollup": { 777 | "version": "2.77.3", 778 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.3.tgz", 779 | "integrity": "sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g==", 780 | "bin": { 781 | "rollup": "dist/bin/rollup" 782 | }, 783 | "engines": { 784 | "node": ">=10.0.0" 785 | }, 786 | "optionalDependencies": { 787 | "fsevents": "~2.3.2" 788 | } 789 | }, 790 | "node_modules/sass": { 791 | "version": "1.54.8", 792 | "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.8.tgz", 793 | "integrity": "sha512-ib4JhLRRgbg6QVy6bsv5uJxnJMTS2soVcCp9Y88Extyy13A8vV0G1fAwujOzmNkFQbR3LvedudAMbtuNRPbQww==", 794 | "dependencies": { 795 | "chokidar": ">=3.0.0 <4.0.0", 796 | "immutable": "^4.0.0", 797 | "source-map-js": ">=0.6.2 <2.0.0" 798 | }, 799 | "bin": { 800 | "sass": "sass.js" 801 | }, 802 | "engines": { 803 | "node": ">=12.0.0" 804 | } 805 | }, 806 | "node_modules/sax": { 807 | "version": "1.2.4", 808 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", 809 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" 810 | }, 811 | "node_modules/source-map": { 812 | "version": "0.6.1", 813 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 814 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 815 | "engines": { 816 | "node": ">=0.10.0" 817 | } 818 | }, 819 | "node_modules/source-map-js": { 820 | "version": "1.0.2", 821 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 822 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 823 | "engines": { 824 | "node": ">=0.10.0" 825 | } 826 | }, 827 | "node_modules/source-map-resolve": { 828 | "version": "0.6.0", 829 | "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", 830 | "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", 831 | "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", 832 | "dependencies": { 833 | "atob": "^2.1.2", 834 | "decode-uri-component": "^0.2.0" 835 | } 836 | }, 837 | "node_modules/stats.js": { 838 | "version": "0.17.0", 839 | "resolved": "https://registry.npmjs.org/stats.js/-/stats.js-0.17.0.tgz", 840 | "integrity": "sha1-scPcRtlEmLV4t/05hbgaznExzH0=" 841 | }, 842 | "node_modules/stylus": { 843 | "version": "0.58.1", 844 | "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.58.1.tgz", 845 | "integrity": "sha512-AYiCHm5ogczdCPMfe9aeQa4NklB2gcf4D/IhzYPddJjTgPc+k4D/EVE0yfQbZD43MHP3lPy+8NZ9fcFxkrgs/w==", 846 | "dependencies": { 847 | "css": "^3.0.0", 848 | "debug": "^4.3.2", 849 | "glob": "^7.1.6", 850 | "sax": "~1.2.4", 851 | "source-map": "^0.7.3" 852 | }, 853 | "bin": { 854 | "stylus": "bin/stylus" 855 | }, 856 | "engines": { 857 | "node": "*" 858 | } 859 | }, 860 | "node_modules/stylus/node_modules/source-map": { 861 | "version": "0.7.4", 862 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", 863 | "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", 864 | "engines": { 865 | "node": ">= 8" 866 | } 867 | }, 868 | "node_modules/supports-preserve-symlinks-flag": { 869 | "version": "1.0.0", 870 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 871 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 872 | "engines": { 873 | "node": ">= 0.4" 874 | }, 875 | "funding": { 876 | "url": "https://github.com/sponsors/ljharb" 877 | } 878 | }, 879 | "node_modules/three": { 880 | "version": "0.141.0", 881 | "resolved": "https://registry.npmjs.org/three/-/three-0.141.0.tgz", 882 | "integrity": "sha512-JaSDAPWuk4RTzG5BYRQm8YZbERUxTfTDVouWgHMisS2to4E5fotMS9F2zPFNOIJyEFTTQDDKPpsgZVThKU3pXA==" 883 | }, 884 | "node_modules/to-regex-range": { 885 | "version": "5.0.1", 886 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 887 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 888 | "dependencies": { 889 | "is-number": "^7.0.0" 890 | }, 891 | "engines": { 892 | "node": ">=8.0" 893 | } 894 | }, 895 | "node_modules/tslib": { 896 | "version": "2.4.0", 897 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 898 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" 899 | }, 900 | "node_modules/vite": { 901 | "version": "2.9.15", 902 | "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.15.tgz", 903 | "integrity": "sha512-fzMt2jK4vQ3yK56te3Kqpkaeq9DkcZfBbzHwYpobasvgYmP2SoAr6Aic05CsB4CzCZbsDv4sujX3pkEGhLabVQ==", 904 | "dependencies": { 905 | "esbuild": "^0.14.27", 906 | "postcss": "^8.4.13", 907 | "resolve": "^1.22.0", 908 | "rollup": ">=2.59.0 <2.78.0" 909 | }, 910 | "bin": { 911 | "vite": "bin/vite.js" 912 | }, 913 | "engines": { 914 | "node": ">=12.2.0" 915 | }, 916 | "optionalDependencies": { 917 | "fsevents": "~2.3.2" 918 | }, 919 | "peerDependencies": { 920 | "less": "*", 921 | "sass": "*", 922 | "stylus": "*" 923 | }, 924 | "peerDependenciesMeta": { 925 | "less": { 926 | "optional": true 927 | }, 928 | "sass": { 929 | "optional": true 930 | }, 931 | "stylus": { 932 | "optional": true 933 | } 934 | } 935 | }, 936 | "node_modules/vite-plugin-glsl": { 937 | "version": "0.1.5", 938 | "resolved": "https://registry.npmjs.org/vite-plugin-glsl/-/vite-plugin-glsl-0.1.5.tgz", 939 | "integrity": "sha512-BsY0ndZthCXYipF/rc/Vri0s6N/JNwMyCDRJx7qiJNNY8+MiDgzhT2iOIHL7O7v3CvjOG9yOM2+WVTNvnHGT1w==", 940 | "dependencies": { 941 | "@rollup/pluginutils": "^4.2.1", 942 | "tslib": "^2.4.0" 943 | }, 944 | "engines": { 945 | "node": ">= 14.17.0", 946 | "npm": ">= 6.14.13" 947 | } 948 | }, 949 | "node_modules/wrappy": { 950 | "version": "1.0.2", 951 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 952 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 953 | } 954 | }, 955 | "dependencies": { 956 | "@esbuild/linux-loong64": { 957 | "version": "0.14.54", 958 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz", 959 | "integrity": "sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==", 960 | "optional": true 961 | }, 962 | "@rollup/pluginutils": { 963 | "version": "4.2.1", 964 | "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", 965 | "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", 966 | "requires": { 967 | "estree-walker": "^2.0.1", 968 | "picomatch": "^2.2.2" 969 | } 970 | }, 971 | "anymatch": { 972 | "version": "3.1.2", 973 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 974 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 975 | "requires": { 976 | "normalize-path": "^3.0.0", 977 | "picomatch": "^2.0.4" 978 | } 979 | }, 980 | "atob": { 981 | "version": "2.1.2", 982 | "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", 983 | "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" 984 | }, 985 | "balanced-match": { 986 | "version": "1.0.2", 987 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 988 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 989 | }, 990 | "binary-extensions": { 991 | "version": "2.2.0", 992 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 993 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" 994 | }, 995 | "brace-expansion": { 996 | "version": "1.1.11", 997 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 998 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 999 | "requires": { 1000 | "balanced-match": "^1.0.0", 1001 | "concat-map": "0.0.1" 1002 | } 1003 | }, 1004 | "braces": { 1005 | "version": "3.0.2", 1006 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 1007 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 1008 | "requires": { 1009 | "fill-range": "^7.0.1" 1010 | } 1011 | }, 1012 | "chokidar": { 1013 | "version": "3.5.3", 1014 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 1015 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 1016 | "requires": { 1017 | "anymatch": "~3.1.2", 1018 | "braces": "~3.0.2", 1019 | "fsevents": "~2.3.2", 1020 | "glob-parent": "~5.1.2", 1021 | "is-binary-path": "~2.1.0", 1022 | "is-glob": "~4.0.1", 1023 | "normalize-path": "~3.0.0", 1024 | "readdirp": "~3.6.0" 1025 | } 1026 | }, 1027 | "concat-map": { 1028 | "version": "0.0.1", 1029 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1030 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 1031 | }, 1032 | "css": { 1033 | "version": "3.0.0", 1034 | "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", 1035 | "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", 1036 | "requires": { 1037 | "inherits": "^2.0.4", 1038 | "source-map": "^0.6.1", 1039 | "source-map-resolve": "^0.6.0" 1040 | } 1041 | }, 1042 | "debug": { 1043 | "version": "4.3.4", 1044 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 1045 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 1046 | "requires": { 1047 | "ms": "2.1.2" 1048 | } 1049 | }, 1050 | "decode-uri-component": { 1051 | "version": "0.2.0", 1052 | "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", 1053 | "integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==" 1054 | }, 1055 | "esbuild": { 1056 | "version": "0.14.54", 1057 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.54.tgz", 1058 | "integrity": "sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==", 1059 | "requires": { 1060 | "@esbuild/linux-loong64": "0.14.54", 1061 | "esbuild-android-64": "0.14.54", 1062 | "esbuild-android-arm64": "0.14.54", 1063 | "esbuild-darwin-64": "0.14.54", 1064 | "esbuild-darwin-arm64": "0.14.54", 1065 | "esbuild-freebsd-64": "0.14.54", 1066 | "esbuild-freebsd-arm64": "0.14.54", 1067 | "esbuild-linux-32": "0.14.54", 1068 | "esbuild-linux-64": "0.14.54", 1069 | "esbuild-linux-arm": "0.14.54", 1070 | "esbuild-linux-arm64": "0.14.54", 1071 | "esbuild-linux-mips64le": "0.14.54", 1072 | "esbuild-linux-ppc64le": "0.14.54", 1073 | "esbuild-linux-riscv64": "0.14.54", 1074 | "esbuild-linux-s390x": "0.14.54", 1075 | "esbuild-netbsd-64": "0.14.54", 1076 | "esbuild-openbsd-64": "0.14.54", 1077 | "esbuild-sunos-64": "0.14.54", 1078 | "esbuild-windows-32": "0.14.54", 1079 | "esbuild-windows-64": "0.14.54", 1080 | "esbuild-windows-arm64": "0.14.54" 1081 | } 1082 | }, 1083 | "esbuild-android-64": { 1084 | "version": "0.14.54", 1085 | "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.54.tgz", 1086 | "integrity": "sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==", 1087 | "optional": true 1088 | }, 1089 | "esbuild-android-arm64": { 1090 | "version": "0.14.54", 1091 | "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.54.tgz", 1092 | "integrity": "sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==", 1093 | "optional": true 1094 | }, 1095 | "esbuild-darwin-64": { 1096 | "version": "0.14.54", 1097 | "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz", 1098 | "integrity": "sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==", 1099 | "optional": true 1100 | }, 1101 | "esbuild-darwin-arm64": { 1102 | "version": "0.14.54", 1103 | "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.54.tgz", 1104 | "integrity": "sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==", 1105 | "optional": true 1106 | }, 1107 | "esbuild-freebsd-64": { 1108 | "version": "0.14.54", 1109 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.54.tgz", 1110 | "integrity": "sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg==", 1111 | "optional": true 1112 | }, 1113 | "esbuild-freebsd-arm64": { 1114 | "version": "0.14.54", 1115 | "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.54.tgz", 1116 | "integrity": "sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==", 1117 | "optional": true 1118 | }, 1119 | "esbuild-linux-32": { 1120 | "version": "0.14.54", 1121 | "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.54.tgz", 1122 | "integrity": "sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw==", 1123 | "optional": true 1124 | }, 1125 | "esbuild-linux-64": { 1126 | "version": "0.14.54", 1127 | "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz", 1128 | "integrity": "sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==", 1129 | "optional": true 1130 | }, 1131 | "esbuild-linux-arm": { 1132 | "version": "0.14.54", 1133 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.54.tgz", 1134 | "integrity": "sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw==", 1135 | "optional": true 1136 | }, 1137 | "esbuild-linux-arm64": { 1138 | "version": "0.14.54", 1139 | "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.54.tgz", 1140 | "integrity": "sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig==", 1141 | "optional": true 1142 | }, 1143 | "esbuild-linux-mips64le": { 1144 | "version": "0.14.54", 1145 | "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz", 1146 | "integrity": "sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw==", 1147 | "optional": true 1148 | }, 1149 | "esbuild-linux-ppc64le": { 1150 | "version": "0.14.54", 1151 | "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.54.tgz", 1152 | "integrity": "sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==", 1153 | "optional": true 1154 | }, 1155 | "esbuild-linux-riscv64": { 1156 | "version": "0.14.54", 1157 | "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.54.tgz", 1158 | "integrity": "sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg==", 1159 | "optional": true 1160 | }, 1161 | "esbuild-linux-s390x": { 1162 | "version": "0.14.54", 1163 | "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.54.tgz", 1164 | "integrity": "sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA==", 1165 | "optional": true 1166 | }, 1167 | "esbuild-netbsd-64": { 1168 | "version": "0.14.54", 1169 | "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.54.tgz", 1170 | "integrity": "sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w==", 1171 | "optional": true 1172 | }, 1173 | "esbuild-openbsd-64": { 1174 | "version": "0.14.54", 1175 | "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.54.tgz", 1176 | "integrity": "sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==", 1177 | "optional": true 1178 | }, 1179 | "esbuild-sunos-64": { 1180 | "version": "0.14.54", 1181 | "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.54.tgz", 1182 | "integrity": "sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw==", 1183 | "optional": true 1184 | }, 1185 | "esbuild-windows-32": { 1186 | "version": "0.14.54", 1187 | "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.54.tgz", 1188 | "integrity": "sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w==", 1189 | "optional": true 1190 | }, 1191 | "esbuild-windows-64": { 1192 | "version": "0.14.54", 1193 | "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.54.tgz", 1194 | "integrity": "sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==", 1195 | "optional": true 1196 | }, 1197 | "esbuild-windows-arm64": { 1198 | "version": "0.14.54", 1199 | "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.54.tgz", 1200 | "integrity": "sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg==", 1201 | "optional": true 1202 | }, 1203 | "estree-walker": { 1204 | "version": "2.0.2", 1205 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 1206 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" 1207 | }, 1208 | "fill-range": { 1209 | "version": "7.0.1", 1210 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1211 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1212 | "requires": { 1213 | "to-regex-range": "^5.0.1" 1214 | } 1215 | }, 1216 | "fs.realpath": { 1217 | "version": "1.0.0", 1218 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1219 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 1220 | }, 1221 | "fsevents": { 1222 | "version": "2.3.2", 1223 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1224 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1225 | "optional": true 1226 | }, 1227 | "function-bind": { 1228 | "version": "1.1.1", 1229 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1230 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 1231 | }, 1232 | "glob": { 1233 | "version": "7.2.0", 1234 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 1235 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 1236 | "requires": { 1237 | "fs.realpath": "^1.0.0", 1238 | "inflight": "^1.0.4", 1239 | "inherits": "2", 1240 | "minimatch": "^3.0.4", 1241 | "once": "^1.3.0", 1242 | "path-is-absolute": "^1.0.0" 1243 | } 1244 | }, 1245 | "glob-parent": { 1246 | "version": "5.1.2", 1247 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1248 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1249 | "requires": { 1250 | "is-glob": "^4.0.1" 1251 | } 1252 | }, 1253 | "has": { 1254 | "version": "1.0.3", 1255 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1256 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1257 | "requires": { 1258 | "function-bind": "^1.1.1" 1259 | } 1260 | }, 1261 | "immutable": { 1262 | "version": "4.1.0", 1263 | "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.1.0.tgz", 1264 | "integrity": "sha512-oNkuqVTA8jqG1Q6c+UglTOD1xhC1BtjKI7XkCXRkZHrN5m18/XsnUp8Q89GkQO/z+0WjonSvl0FLhDYftp46nQ==" 1265 | }, 1266 | "inflight": { 1267 | "version": "1.0.6", 1268 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1269 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1270 | "requires": { 1271 | "once": "^1.3.0", 1272 | "wrappy": "1" 1273 | } 1274 | }, 1275 | "inherits": { 1276 | "version": "2.0.4", 1277 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1278 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1279 | }, 1280 | "is-binary-path": { 1281 | "version": "2.1.0", 1282 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1283 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1284 | "requires": { 1285 | "binary-extensions": "^2.0.0" 1286 | } 1287 | }, 1288 | "is-core-module": { 1289 | "version": "2.9.0", 1290 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", 1291 | "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", 1292 | "requires": { 1293 | "has": "^1.0.3" 1294 | } 1295 | }, 1296 | "is-extglob": { 1297 | "version": "2.1.1", 1298 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1299 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" 1300 | }, 1301 | "is-glob": { 1302 | "version": "4.0.3", 1303 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1304 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1305 | "requires": { 1306 | "is-extglob": "^2.1.1" 1307 | } 1308 | }, 1309 | "is-number": { 1310 | "version": "7.0.0", 1311 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1312 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" 1313 | }, 1314 | "lil-gui": { 1315 | "version": "0.16.1", 1316 | "resolved": "https://registry.npmjs.org/lil-gui/-/lil-gui-0.16.1.tgz", 1317 | "integrity": "sha512-6wnnfBvQxJYRhdLyIA+w5b8utwbuVxNmtpTXElm36OSgHa8lyKp00Xz/4AEx3kvodT0AJYgbfadCFWAM0Q8DgQ==" 1318 | }, 1319 | "minimatch": { 1320 | "version": "3.1.2", 1321 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1322 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1323 | "requires": { 1324 | "brace-expansion": "^1.1.7" 1325 | } 1326 | }, 1327 | "ms": { 1328 | "version": "2.1.2", 1329 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1330 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1331 | }, 1332 | "nanoid": { 1333 | "version": "3.3.3", 1334 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", 1335 | "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==" 1336 | }, 1337 | "normalize-path": { 1338 | "version": "3.0.0", 1339 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1340 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" 1341 | }, 1342 | "once": { 1343 | "version": "1.4.0", 1344 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1345 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1346 | "requires": { 1347 | "wrappy": "1" 1348 | } 1349 | }, 1350 | "path-is-absolute": { 1351 | "version": "1.0.1", 1352 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1353 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 1354 | }, 1355 | "path-parse": { 1356 | "version": "1.0.7", 1357 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1358 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" 1359 | }, 1360 | "picocolors": { 1361 | "version": "1.0.0", 1362 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1363 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 1364 | }, 1365 | "picomatch": { 1366 | "version": "2.3.1", 1367 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1368 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" 1369 | }, 1370 | "postcss": { 1371 | "version": "8.4.13", 1372 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.13.tgz", 1373 | "integrity": "sha512-jtL6eTBrza5MPzy8oJLFuUscHDXTV5KcLlqAWHl5q5WYRfnNRGSmOZmOZ1T6Gy7A99mOZfqungmZMpMmCVJ8ZA==", 1374 | "requires": { 1375 | "nanoid": "^3.3.3", 1376 | "picocolors": "^1.0.0", 1377 | "source-map-js": "^1.0.2" 1378 | } 1379 | }, 1380 | "readdirp": { 1381 | "version": "3.6.0", 1382 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1383 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1384 | "requires": { 1385 | "picomatch": "^2.2.1" 1386 | } 1387 | }, 1388 | "resolve": { 1389 | "version": "1.22.0", 1390 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", 1391 | "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", 1392 | "requires": { 1393 | "is-core-module": "^2.8.1", 1394 | "path-parse": "^1.0.7", 1395 | "supports-preserve-symlinks-flag": "^1.0.0" 1396 | } 1397 | }, 1398 | "rollup": { 1399 | "version": "2.77.3", 1400 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.3.tgz", 1401 | "integrity": "sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g==", 1402 | "requires": { 1403 | "fsevents": "~2.3.2" 1404 | } 1405 | }, 1406 | "sass": { 1407 | "version": "1.54.8", 1408 | "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.8.tgz", 1409 | "integrity": "sha512-ib4JhLRRgbg6QVy6bsv5uJxnJMTS2soVcCp9Y88Extyy13A8vV0G1fAwujOzmNkFQbR3LvedudAMbtuNRPbQww==", 1410 | "requires": { 1411 | "chokidar": ">=3.0.0 <4.0.0", 1412 | "immutable": "^4.0.0", 1413 | "source-map-js": ">=0.6.2 <2.0.0" 1414 | } 1415 | }, 1416 | "sax": { 1417 | "version": "1.2.4", 1418 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", 1419 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" 1420 | }, 1421 | "source-map": { 1422 | "version": "0.6.1", 1423 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1424 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" 1425 | }, 1426 | "source-map-js": { 1427 | "version": "1.0.2", 1428 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 1429 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" 1430 | }, 1431 | "source-map-resolve": { 1432 | "version": "0.6.0", 1433 | "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", 1434 | "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", 1435 | "requires": { 1436 | "atob": "^2.1.2", 1437 | "decode-uri-component": "^0.2.0" 1438 | } 1439 | }, 1440 | "stats.js": { 1441 | "version": "0.17.0", 1442 | "resolved": "https://registry.npmjs.org/stats.js/-/stats.js-0.17.0.tgz", 1443 | "integrity": "sha1-scPcRtlEmLV4t/05hbgaznExzH0=" 1444 | }, 1445 | "stylus": { 1446 | "version": "0.58.1", 1447 | "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.58.1.tgz", 1448 | "integrity": "sha512-AYiCHm5ogczdCPMfe9aeQa4NklB2gcf4D/IhzYPddJjTgPc+k4D/EVE0yfQbZD43MHP3lPy+8NZ9fcFxkrgs/w==", 1449 | "requires": { 1450 | "css": "^3.0.0", 1451 | "debug": "^4.3.2", 1452 | "glob": "^7.1.6", 1453 | "sax": "~1.2.4", 1454 | "source-map": "^0.7.3" 1455 | }, 1456 | "dependencies": { 1457 | "source-map": { 1458 | "version": "0.7.4", 1459 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", 1460 | "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==" 1461 | } 1462 | } 1463 | }, 1464 | "supports-preserve-symlinks-flag": { 1465 | "version": "1.0.0", 1466 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1467 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" 1468 | }, 1469 | "three": { 1470 | "version": "0.141.0", 1471 | "resolved": "https://registry.npmjs.org/three/-/three-0.141.0.tgz", 1472 | "integrity": "sha512-JaSDAPWuk4RTzG5BYRQm8YZbERUxTfTDVouWgHMisS2to4E5fotMS9F2zPFNOIJyEFTTQDDKPpsgZVThKU3pXA==" 1473 | }, 1474 | "to-regex-range": { 1475 | "version": "5.0.1", 1476 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1477 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1478 | "requires": { 1479 | "is-number": "^7.0.0" 1480 | } 1481 | }, 1482 | "tslib": { 1483 | "version": "2.4.0", 1484 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 1485 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" 1486 | }, 1487 | "vite": { 1488 | "version": "2.9.15", 1489 | "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.15.tgz", 1490 | "integrity": "sha512-fzMt2jK4vQ3yK56te3Kqpkaeq9DkcZfBbzHwYpobasvgYmP2SoAr6Aic05CsB4CzCZbsDv4sujX3pkEGhLabVQ==", 1491 | "requires": { 1492 | "esbuild": "^0.14.27", 1493 | "fsevents": "~2.3.2", 1494 | "postcss": "^8.4.13", 1495 | "resolve": "^1.22.0", 1496 | "rollup": ">=2.59.0 <2.78.0" 1497 | } 1498 | }, 1499 | "vite-plugin-glsl": { 1500 | "version": "0.1.5", 1501 | "resolved": "https://registry.npmjs.org/vite-plugin-glsl/-/vite-plugin-glsl-0.1.5.tgz", 1502 | "integrity": "sha512-BsY0ndZthCXYipF/rc/Vri0s6N/JNwMyCDRJx7qiJNNY8+MiDgzhT2iOIHL7O7v3CvjOG9yOM2+WVTNvnHGT1w==", 1503 | "requires": { 1504 | "@rollup/pluginutils": "^4.2.1", 1505 | "tslib": "^2.4.0" 1506 | } 1507 | }, 1508 | "wrappy": { 1509 | "version": "1.0.2", 1510 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1511 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1512 | } 1513 | } 1514 | } 1515 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "repository": "#", 3 | "license": "UNLICENSED", 4 | "scripts": { 5 | "dev": "vite serve --host", 6 | "build": "vite build", 7 | "preview": "vite preview" 8 | }, 9 | "dependencies": { 10 | "lil-gui": "^0.16.1", 11 | "sass": "^1.54.8", 12 | "stats.js": "^0.17.0", 13 | "stylus": "^0.58.1", 14 | "three": "^0.141.0", 15 | "vite": "^2.9.12", 16 | "vite-plugin-glsl": "^0.1.2" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /public/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidhckh/three-js-template/de0b0312bfe6378a1609f46e5ed5e567f99da99a/public/.gitkeep -------------------------------------------------------------------------------- /public/draco/README.md: -------------------------------------------------------------------------------- 1 | # Draco 3D Data Compression 2 | 3 | Draco is an open-source library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics. 4 | 5 | [Website](https://google.github.io/draco/) | [GitHub](https://github.com/google/draco) 6 | 7 | ## Contents 8 | 9 | This folder contains three utilities: 10 | 11 | * `draco_decoder.js` — Emscripten-compiled decoder, compatible with any modern browser. 12 | * `draco_decoder.wasm` — WebAssembly decoder, compatible with newer browsers and devices. 13 | * `draco_wasm_wrapper.js` — JavaScript wrapper for the WASM decoder. 14 | 15 | Each file is provided in two variations: 16 | 17 | * **Default:** Latest stable builds, tracking the project's [master branch](https://github.com/google/draco). 18 | * **glTF:** Builds targeted by the [glTF mesh compression extension](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression), tracking the [corresponding Draco branch](https://github.com/google/draco/tree/gltf_2.0_draco_extension). 19 | 20 | Either variation may be used with `THREE.DRACOLoader`: 21 | 22 | ```js 23 | var dracoLoader = new THREE.DRACOLoader(); 24 | dracoLoader.setDecoderPath('path/to/decoders/'); 25 | dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support. 26 | ``` 27 | 28 | Further [documentation on GitHub](https://github.com/google/draco/tree/master/javascript/example#static-loading-javascript-decoder). 29 | 30 | ## License 31 | 32 | [Apache License 2.0](https://github.com/google/draco/blob/master/LICENSE) 33 | -------------------------------------------------------------------------------- /public/draco/draco_decoder.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidhckh/three-js-template/de0b0312bfe6378a1609f46e5ed5e567f99da99a/public/draco/draco_decoder.wasm -------------------------------------------------------------------------------- /public/draco/draco_wasm_wrapper.js: -------------------------------------------------------------------------------- 1 | var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(f){var m=0;return function(){return m=d);)++b;if(16k?d+=String.fromCharCode(k):(k-=65536,d+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else d+=String.fromCharCode(k)}return d}function X(a,c){return a?h(ca,a,c):""}function e(a,c){0=d&&(d=65536+((d&1023)<<10)|a.charCodeAt(++b)&1023);127>=d?++c:c=2047>=d?c+2:65535>=d?c+3:c+4}c=Array(c+1);b=0;d=c.length;if(0=e){var f=a.charCodeAt(++k);e=65536+((e&1023)<<10)|f&1023}if(127>=e){if(b>=d)break;c[b++]=e}else{if(2047>=e){if(b+1>=d)break;c[b++]=192|e>>6}else{if(65535>=e){if(b+2>=d)break;c[b++]=224|e>>12}else{if(b+3>=d)break;c[b++]=240|e>>18;c[b++]=128|e>>12&63}c[b++]=128|e>>6&63}c[b++]=128| 18 | e&63}}c[b]=0}a=n.alloc(c,T);n.copy(c,T,a)}return a}function x(){throw"cannot construct a Status, no constructor in IDL";}function A(){this.ptr=Oa();u(A)[this.ptr]=this}function B(){this.ptr=Pa();u(B)[this.ptr]=this}function C(){this.ptr=Qa();u(C)[this.ptr]=this}function D(){this.ptr=Ra();u(D)[this.ptr]=this}function E(){this.ptr=Sa();u(E)[this.ptr]=this}function q(){this.ptr=Ta();u(q)[this.ptr]=this}function J(){this.ptr=Ua();u(J)[this.ptr]=this}function w(){this.ptr=Va();u(w)[this.ptr]=this}function F(){this.ptr= 19 | Wa();u(F)[this.ptr]=this}function r(){this.ptr=Xa();u(r)[this.ptr]=this}function G(){this.ptr=Ya();u(G)[this.ptr]=this}function H(){this.ptr=Za();u(H)[this.ptr]=this}function O(){this.ptr=$a();u(O)[this.ptr]=this}function K(){this.ptr=ab();u(K)[this.ptr]=this}function g(){this.ptr=bb();u(g)[this.ptr]=this}function y(){this.ptr=cb();u(y)[this.ptr]=this}function Q(){throw"cannot construct a VoidPtr, no constructor in IDL";}function I(){this.ptr=db();u(I)[this.ptr]=this}function L(){this.ptr=eb();u(L)[this.ptr]= 20 | this}m=m||{};var a="undefined"!==typeof m?m:{},Ga=!1,Ha=!1;a.onRuntimeInitialized=function(){Ga=!0;if(Ha&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Ha=!0;if(Ga&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3=a[1]?!0:0!=a[0]||10>2]},getStr:function(){return X(R.get())}, 26 | get64:function(){var a=R.get();R.get();return a},getZero:function(){R.get()}},Ka={__cxa_allocate_exception:function(a){return ib(a)},__cxa_throw:function(a,c,b){"uncaught_exception"in ta?ta.uncaught_exceptions++:ta.uncaught_exceptions=1;throw a;},abort:function(){z()},emscripten_get_sbrk_ptr:function(){return 18416},emscripten_memcpy_big:function(a,c,b){ca.set(ca.subarray(c,c+b),a)},emscripten_resize_heap:function(a){if(2147418112= 27 | c?e(2*c,65536):Math.min(e((3*c+2147483648)/4,65536),2147418112);a:{try{ia.grow(c-ka.byteLength+65535>>16);l(ia.buffer);var b=1;break a}catch(d){}b=void 0}return b?!0:!1},environ_get:function(a,c){var b=0;ba().forEach(function(d,e){var f=c+b;e=P[a+4*e>>2]=f;for(f=0;f>0]=d.charCodeAt(f);T[e>>0]=0;b+=d.length+1});return 0},environ_sizes_get:function(a,c){var b=ba();P[a>>2]=b.length;var d=0;b.forEach(function(a){d+=a.length+1});P[c>>2]=d;return 0},fd_close:function(a){return 0},fd_seek:function(a, 28 | c,b,d,e){return 0},fd_write:function(a,c,b,d){try{for(var e=0,f=0;f>2],k=P[c+(8*f+4)>>2],h=0;h>2]=e;return 0}catch(ua){return"undefined"!==typeof FS&&ua instanceof FS.ErrnoError||z(ua),ua.errno}},memory:ia,setTempRet0:function(a){},table:gb},La=function(){function e(c,b){a.asm=c.exports;aa--;a.monitorRunDependencies&&a.monitorRunDependencies(aa);0==aa&&(null!==sa&&(clearInterval(sa),sa=null),ja&&(c=ja,ja=null,c()))}function c(a){e(a.instance)} 29 | function b(a){return Ma().then(function(a){return WebAssembly.instantiate(a,d)}).then(a,function(a){Y("failed to asynchronously prepare wasm: "+a);z(a)})}var d={env:Ka,wasi_unstable:Ka};aa++;a.monitorRunDependencies&&a.monitorRunDependencies(aa);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(Na){return Y("Module.instantiateWasm callback failed with error: "+Na),!1}(function(){if(da||"function"!==typeof WebAssembly.instantiateStreaming||va(U)||"function"!==typeof fetch)return b(c);fetch(U, 30 | {credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,d).then(c,function(a){Y("wasm streaming compile failed: "+a);Y("falling back to ArrayBuffer instantiation");b(c)})})})();return{}}();a.asm=La;var hb=a.___wasm_call_ctors=function(){return a.asm.__wasm_call_ctors.apply(null,arguments)},jb=a._emscripten_bind_Status_code_0=function(){return a.asm.emscripten_bind_Status_code_0.apply(null,arguments)},kb=a._emscripten_bind_Status_ok_0=function(){return a.asm.emscripten_bind_Status_ok_0.apply(null, 31 | arguments)},lb=a._emscripten_bind_Status_error_msg_0=function(){return a.asm.emscripten_bind_Status_error_msg_0.apply(null,arguments)},mb=a._emscripten_bind_Status___destroy___0=function(){return a.asm.emscripten_bind_Status___destroy___0.apply(null,arguments)},Oa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0.apply(null,arguments)},nb=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoUInt16Array_GetValue_1.apply(null, 32 | arguments)},ob=a._emscripten_bind_DracoUInt16Array_size_0=function(){return a.asm.emscripten_bind_DracoUInt16Array_size_0.apply(null,arguments)},pb=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return a.asm.emscripten_bind_DracoUInt16Array___destroy___0.apply(null,arguments)},Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return a.asm.emscripten_bind_PointCloud_PointCloud_0.apply(null,arguments)},qb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return a.asm.emscripten_bind_PointCloud_num_attributes_0.apply(null, 33 | arguments)},rb=a._emscripten_bind_PointCloud_num_points_0=function(){return a.asm.emscripten_bind_PointCloud_num_points_0.apply(null,arguments)},sb=a._emscripten_bind_PointCloud___destroy___0=function(){return a.asm.emscripten_bind_PointCloud___destroy___0.apply(null,arguments)},Qa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0.apply(null,arguments)},tb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoUInt8Array_GetValue_1.apply(null, 34 | arguments)},ub=a._emscripten_bind_DracoUInt8Array_size_0=function(){return a.asm.emscripten_bind_DracoUInt8Array_size_0.apply(null,arguments)},vb=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return a.asm.emscripten_bind_DracoUInt8Array___destroy___0.apply(null,arguments)},Ra=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0.apply(null,arguments)},wb=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoUInt32Array_GetValue_1.apply(null, 35 | arguments)},xb=a._emscripten_bind_DracoUInt32Array_size_0=function(){return a.asm.emscripten_bind_DracoUInt32Array_size_0.apply(null,arguments)},yb=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return a.asm.emscripten_bind_DracoUInt32Array___destroy___0.apply(null,arguments)},Sa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0.apply(null,arguments)},zb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1= 36 | function(){return a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1.apply(null,arguments)},Ab=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0.apply(null,arguments)},Bb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0.apply(null,arguments)},Ta=a._emscripten_bind_PointAttribute_PointAttribute_0= 37 | function(){return a.asm.emscripten_bind_PointAttribute_PointAttribute_0.apply(null,arguments)},Cb=a._emscripten_bind_PointAttribute_size_0=function(){return a.asm.emscripten_bind_PointAttribute_size_0.apply(null,arguments)},Db=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0.apply(null,arguments)},Eb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return a.asm.emscripten_bind_PointAttribute_attribute_type_0.apply(null, 38 | arguments)},Fb=a._emscripten_bind_PointAttribute_data_type_0=function(){return a.asm.emscripten_bind_PointAttribute_data_type_0.apply(null,arguments)},Gb=a._emscripten_bind_PointAttribute_num_components_0=function(){return a.asm.emscripten_bind_PointAttribute_num_components_0.apply(null,arguments)},Hb=a._emscripten_bind_PointAttribute_normalized_0=function(){return a.asm.emscripten_bind_PointAttribute_normalized_0.apply(null,arguments)},Ib=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return a.asm.emscripten_bind_PointAttribute_byte_stride_0.apply(null, 39 | arguments)},Jb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return a.asm.emscripten_bind_PointAttribute_byte_offset_0.apply(null,arguments)},Kb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return a.asm.emscripten_bind_PointAttribute_unique_id_0.apply(null,arguments)},Lb=a._emscripten_bind_PointAttribute___destroy___0=function(){return a.asm.emscripten_bind_PointAttribute___destroy___0.apply(null,arguments)},Ua=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0= 40 | function(){return a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0.apply(null,arguments)},Mb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return a.asm.emscripten_bind_AttributeTransformData_transform_type_0.apply(null,arguments)},Nb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return a.asm.emscripten_bind_AttributeTransformData___destroy___0.apply(null,arguments)},Va=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0= 41 | function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0.apply(null,arguments)},Ob=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1.apply(null,arguments)},Pb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0.apply(null,arguments)}, 42 | Qb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1.apply(null,arguments)},Rb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_range_0.apply(null,arguments)},Sb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0.apply(null,arguments)}, 43 | Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0.apply(null,arguments)},Tb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoInt8Array_GetValue_1.apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_size_0=function(){return a.asm.emscripten_bind_DracoInt8Array_size_0.apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return a.asm.emscripten_bind_DracoInt8Array___destroy___0.apply(null, 44 | arguments)},Xa=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0.apply(null,arguments)},Wb=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_HasEntry_2.apply(null,arguments)},Xb=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2.apply(null,arguments)},Yb=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3= 45 | function(){return a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3.apply(null,arguments)},Zb=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2.apply(null,arguments)},$b=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2.apply(null,arguments)},ac=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return a.asm.emscripten_bind_MetadataQuerier_NumEntries_1.apply(null, 46 | arguments)},bc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2.apply(null,arguments)},cc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return a.asm.emscripten_bind_MetadataQuerier___destroy___0.apply(null,arguments)},Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0.apply(null,arguments)},dc=a._emscripten_bind_DracoInt16Array_GetValue_1= 47 | function(){return a.asm.emscripten_bind_DracoInt16Array_GetValue_1.apply(null,arguments)},ec=a._emscripten_bind_DracoInt16Array_size_0=function(){return a.asm.emscripten_bind_DracoInt16Array_size_0.apply(null,arguments)},fc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return a.asm.emscripten_bind_DracoInt16Array___destroy___0.apply(null,arguments)},Za=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0.apply(null, 48 | arguments)},gc=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoFloat32Array_GetValue_1.apply(null,arguments)},hc=a._emscripten_bind_DracoFloat32Array_size_0=function(){return a.asm.emscripten_bind_DracoFloat32Array_size_0.apply(null,arguments)},ic=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return a.asm.emscripten_bind_DracoFloat32Array___destroy___0.apply(null,arguments)},$a=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0.apply(null, 49 | arguments)},jc=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return a.asm.emscripten_bind_GeometryAttribute___destroy___0.apply(null,arguments)},ab=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0.apply(null,arguments)},kc=a._emscripten_bind_DecoderBuffer_Init_2=function(){return a.asm.emscripten_bind_DecoderBuffer_Init_2.apply(null,arguments)},lc=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return a.asm.emscripten_bind_DecoderBuffer___destroy___0.apply(null, 50 | arguments)},bb=a._emscripten_bind_Decoder_Decoder_0=function(){return a.asm.emscripten_bind_Decoder_Decoder_0.apply(null,arguments)},mc=a._emscripten_bind_Decoder_GetEncodedGeometryType_1=function(){return a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_1.apply(null,arguments)},nc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2.apply(null,arguments)},oc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2.apply(null, 51 | arguments)},pc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeId_2.apply(null,arguments)},qc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2.apply(null,arguments)},rc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3.apply(null,arguments)},sc=a._emscripten_bind_Decoder_GetAttribute_2= 52 | function(){return a.asm.emscripten_bind_Decoder_GetAttribute_2.apply(null,arguments)},tc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2.apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetMetadata_1=function(){return a.asm.emscripten_bind_Decoder_GetMetadata_1.apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2.apply(null, 53 | arguments)},wc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3.apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2.apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3.apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3= 54 | function(){return a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3.apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeFloat_3.apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3.apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3.apply(null, 55 | arguments)},Dc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3.apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3.apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3.apply(null,arguments)}, 56 | Gc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3.apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3.apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3.apply(null,arguments)},Jc= 57 | a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5.apply(null,arguments)},Kc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1.apply(null,arguments)},Lc=a._emscripten_bind_Decoder___destroy___0=function(){return a.asm.emscripten_bind_Decoder___destroy___0.apply(null,arguments)},cb=a._emscripten_bind_Mesh_Mesh_0=function(){return a.asm.emscripten_bind_Mesh_Mesh_0.apply(null, 58 | arguments)},Mc=a._emscripten_bind_Mesh_num_faces_0=function(){return a.asm.emscripten_bind_Mesh_num_faces_0.apply(null,arguments)},Nc=a._emscripten_bind_Mesh_num_attributes_0=function(){return a.asm.emscripten_bind_Mesh_num_attributes_0.apply(null,arguments)},Oc=a._emscripten_bind_Mesh_num_points_0=function(){return a.asm.emscripten_bind_Mesh_num_points_0.apply(null,arguments)},Pc=a._emscripten_bind_Mesh___destroy___0=function(){return a.asm.emscripten_bind_Mesh___destroy___0.apply(null,arguments)}, 59 | Qc=a._emscripten_bind_VoidPtr___destroy___0=function(){return a.asm.emscripten_bind_VoidPtr___destroy___0.apply(null,arguments)},db=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0.apply(null,arguments)},Rc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoInt32Array_GetValue_1.apply(null,arguments)},Sc=a._emscripten_bind_DracoInt32Array_size_0=function(){return a.asm.emscripten_bind_DracoInt32Array_size_0.apply(null, 60 | arguments)},Tc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return a.asm.emscripten_bind_DracoInt32Array___destroy___0.apply(null,arguments)},eb=a._emscripten_bind_Metadata_Metadata_0=function(){return a.asm.emscripten_bind_Metadata_Metadata_0.apply(null,arguments)},Uc=a._emscripten_bind_Metadata___destroy___0=function(){return a.asm.emscripten_bind_Metadata___destroy___0.apply(null,arguments)},Vc=a._emscripten_enum_draco_StatusCode_OK=function(){return a.asm.emscripten_enum_draco_StatusCode_OK.apply(null, 61 | arguments)},Wc=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR.apply(null,arguments)},Xc=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return a.asm.emscripten_enum_draco_StatusCode_IO_ERROR.apply(null,arguments)},Yc=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER.apply(null,arguments)},Zc=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION= 62 | function(){return a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION.apply(null,arguments)},$c=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION.apply(null,arguments)},ad=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return a.asm.emscripten_enum_draco_DataType_DT_INVALID.apply(null,arguments)},bd=a._emscripten_enum_draco_DataType_DT_INT8=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT8.apply(null, 63 | arguments)},cd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT8.apply(null,arguments)},dd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT16.apply(null,arguments)},ed=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT16.apply(null,arguments)},fd=a._emscripten_enum_draco_DataType_DT_INT32=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT32.apply(null, 64 | arguments)},gd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT32.apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INT64=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT64.apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT64.apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return a.asm.emscripten_enum_draco_DataType_DT_FLOAT32.apply(null, 65 | arguments)},kd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return a.asm.emscripten_enum_draco_DataType_DT_FLOAT64.apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return a.asm.emscripten_enum_draco_DataType_DT_BOOL.apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT.apply(null,arguments)},nd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE.apply(null, 66 | arguments)},od=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD.apply(null,arguments)},pd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH.apply(null,arguments)},qd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM.apply(null, 67 | arguments)},rd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM.apply(null,arguments)},sd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM.apply(null,arguments)},td=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM.apply(null, 68 | arguments)},ud=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID.apply(null,arguments)},vd=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION.apply(null,arguments)},wd=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL.apply(null,arguments)},xd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR= 69 | function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR.apply(null,arguments)},yd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD.apply(null,arguments)},zd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC.apply(null,arguments)};a._setThrew=function(){return a.asm.setThrew.apply(null,arguments)};var ta=a.__ZSt18uncaught_exceptionv= 70 | function(){return a.asm._ZSt18uncaught_exceptionv.apply(null,arguments)};a._free=function(){return a.asm.free.apply(null,arguments)};var ib=a._malloc=function(){return a.asm.malloc.apply(null,arguments)};a.stackSave=function(){return a.asm.stackSave.apply(null,arguments)};a.stackAlloc=function(){return a.asm.stackAlloc.apply(null,arguments)};a.stackRestore=function(){return a.asm.stackRestore.apply(null,arguments)};a.__growWasmMemory=function(){return a.asm.__growWasmMemory.apply(null,arguments)}; 71 | a.dynCall_ii=function(){return a.asm.dynCall_ii.apply(null,arguments)};a.dynCall_vi=function(){return a.asm.dynCall_vi.apply(null,arguments)};a.dynCall_iii=function(){return a.asm.dynCall_iii.apply(null,arguments)};a.dynCall_vii=function(){return a.asm.dynCall_vii.apply(null,arguments)};a.dynCall_iiii=function(){return a.asm.dynCall_iiii.apply(null,arguments)};a.dynCall_v=function(){return a.asm.dynCall_v.apply(null,arguments)};a.dynCall_viii=function(){return a.asm.dynCall_viii.apply(null,arguments)}; 72 | a.dynCall_viiii=function(){return a.asm.dynCall_viiii.apply(null,arguments)};a.dynCall_iiiiiii=function(){return a.asm.dynCall_iiiiiii.apply(null,arguments)};a.dynCall_iidiiii=function(){return a.asm.dynCall_iidiiii.apply(null,arguments)};a.dynCall_jiji=function(){return a.asm.dynCall_jiji.apply(null,arguments)};a.dynCall_viiiiii=function(){return a.asm.dynCall_viiiiii.apply(null,arguments)};a.dynCall_viiiii=function(){return a.asm.dynCall_viiiii.apply(null,arguments)};a.asm=La;var fa;a.then=function(e){if(fa)e(a); 73 | else{var c=a.onRuntimeInitialized;a.onRuntimeInitialized=function(){c&&c();e(a)}}return a};ja=function c(){fa||ma();fa||(ja=c)};a.run=ma;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=n.size?(t(0>=1;break;case 4:d>>=2;break;case 8:d>>=3}for(var c=0;c=d);)++b;if(16k?d+=String.fromCharCode(k):(k-=65536,d+=String.fromCharCode(55296|k>>10,56320|k&1023))}}else d+=String.fromCharCode(k)}return d}function X(a,c){return a?h(ca,a,c):""}function e(a,c){0=d&&(d=65536+((d&1023)<<10)|a.charCodeAt(++b)&1023);127>=d?++c:c=2047>=d?c+2:65535>=d?c+3:c+4}c=Array(c+1);b=0;d=c.length;if(0=e){var f=a.charCodeAt(++k);e=65536+((e&1023)<<10)|f&1023}if(127>=e){if(b>=d)break;c[b++]=e}else{if(2047>=e){if(b+1>=d)break;c[b++]=192|e>>6}else{if(65535>=e){if(b+2>=d)break;c[b++]=224|e>>12}else{if(b+3>=d)break;c[b++]=240|e>>18;c[b++]=128|e>>12&63}c[b++]=128|e>>6&63}c[b++]=128| 18 | e&63}}c[b]=0}a=n.alloc(c,T);n.copy(c,T,a)}return a}function x(){throw"cannot construct a Status, no constructor in IDL";}function A(){this.ptr=Oa();u(A)[this.ptr]=this}function B(){this.ptr=Pa();u(B)[this.ptr]=this}function C(){this.ptr=Qa();u(C)[this.ptr]=this}function D(){this.ptr=Ra();u(D)[this.ptr]=this}function E(){this.ptr=Sa();u(E)[this.ptr]=this}function q(){this.ptr=Ta();u(q)[this.ptr]=this}function J(){this.ptr=Ua();u(J)[this.ptr]=this}function w(){this.ptr=Va();u(w)[this.ptr]=this}function F(){this.ptr= 19 | Wa();u(F)[this.ptr]=this}function r(){this.ptr=Xa();u(r)[this.ptr]=this}function G(){this.ptr=Ya();u(G)[this.ptr]=this}function H(){this.ptr=Za();u(H)[this.ptr]=this}function O(){this.ptr=$a();u(O)[this.ptr]=this}function K(){this.ptr=ab();u(K)[this.ptr]=this}function g(){this.ptr=bb();u(g)[this.ptr]=this}function y(){this.ptr=cb();u(y)[this.ptr]=this}function Q(){throw"cannot construct a VoidPtr, no constructor in IDL";}function I(){this.ptr=db();u(I)[this.ptr]=this}function L(){this.ptr=eb();u(L)[this.ptr]= 20 | this}m=m||{};var a="undefined"!==typeof m?m:{},Ga=!1,Ha=!1;a.onRuntimeInitialized=function(){Ga=!0;if(Ha&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Ha=!0;if(Ga&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3=a[1]?!0:0!=a[0]||10>2]},getStr:function(){return X(R.get())}, 26 | get64:function(){var a=R.get();R.get();return a},getZero:function(){R.get()}},Ka={__cxa_allocate_exception:function(a){return ib(a)},__cxa_throw:function(a,c,b){"uncaught_exception"in ta?ta.uncaught_exceptions++:ta.uncaught_exceptions=1;throw a;},abort:function(){z()},emscripten_get_sbrk_ptr:function(){return 13664},emscripten_memcpy_big:function(a,c,b){ca.set(ca.subarray(c,c+b),a)},emscripten_resize_heap:function(a){if(2147418112= 27 | c?e(2*c,65536):Math.min(e((3*c+2147483648)/4,65536),2147418112);a:{try{ia.grow(c-ka.byteLength+65535>>16);l(ia.buffer);var b=1;break a}catch(d){}b=void 0}return b?!0:!1},environ_get:function(a,c){var b=0;ba().forEach(function(d,e){var f=c+b;e=P[a+4*e>>2]=f;for(f=0;f>0]=d.charCodeAt(f);T[e>>0]=0;b+=d.length+1});return 0},environ_sizes_get:function(a,c){var b=ba();P[a>>2]=b.length;var d=0;b.forEach(function(a){d+=a.length+1});P[c>>2]=d;return 0},fd_close:function(a){return 0},fd_seek:function(a, 28 | c,b,d,e){return 0},fd_write:function(a,c,b,d){try{for(var e=0,f=0;f>2],k=P[c+(8*f+4)>>2],h=0;h>2]=e;return 0}catch(ua){return"undefined"!==typeof FS&&ua instanceof FS.ErrnoError||z(ua),ua.errno}},memory:ia,setTempRet0:function(a){},table:gb},La=function(){function e(c,b){a.asm=c.exports;aa--;a.monitorRunDependencies&&a.monitorRunDependencies(aa);0==aa&&(null!==sa&&(clearInterval(sa),sa=null),ja&&(c=ja,ja=null,c()))}function c(a){e(a.instance)} 29 | function b(a){return Ma().then(function(a){return WebAssembly.instantiate(a,d)}).then(a,function(a){Y("failed to asynchronously prepare wasm: "+a);z(a)})}var d={env:Ka,wasi_unstable:Ka};aa++;a.monitorRunDependencies&&a.monitorRunDependencies(aa);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(Na){return Y("Module.instantiateWasm callback failed with error: "+Na),!1}(function(){if(da||"function"!==typeof WebAssembly.instantiateStreaming||va(U)||"function"!==typeof fetch)return b(c);fetch(U, 30 | {credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,d).then(c,function(a){Y("wasm streaming compile failed: "+a);Y("falling back to ArrayBuffer instantiation");b(c)})})})();return{}}();a.asm=La;var hb=a.___wasm_call_ctors=function(){return a.asm.__wasm_call_ctors.apply(null,arguments)},jb=a._emscripten_bind_Status_code_0=function(){return a.asm.emscripten_bind_Status_code_0.apply(null,arguments)},kb=a._emscripten_bind_Status_ok_0=function(){return a.asm.emscripten_bind_Status_ok_0.apply(null, 31 | arguments)},lb=a._emscripten_bind_Status_error_msg_0=function(){return a.asm.emscripten_bind_Status_error_msg_0.apply(null,arguments)},mb=a._emscripten_bind_Status___destroy___0=function(){return a.asm.emscripten_bind_Status___destroy___0.apply(null,arguments)},Oa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return a.asm.emscripten_bind_DracoUInt16Array_DracoUInt16Array_0.apply(null,arguments)},nb=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoUInt16Array_GetValue_1.apply(null, 32 | arguments)},ob=a._emscripten_bind_DracoUInt16Array_size_0=function(){return a.asm.emscripten_bind_DracoUInt16Array_size_0.apply(null,arguments)},pb=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return a.asm.emscripten_bind_DracoUInt16Array___destroy___0.apply(null,arguments)},Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return a.asm.emscripten_bind_PointCloud_PointCloud_0.apply(null,arguments)},qb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return a.asm.emscripten_bind_PointCloud_num_attributes_0.apply(null, 33 | arguments)},rb=a._emscripten_bind_PointCloud_num_points_0=function(){return a.asm.emscripten_bind_PointCloud_num_points_0.apply(null,arguments)},sb=a._emscripten_bind_PointCloud___destroy___0=function(){return a.asm.emscripten_bind_PointCloud___destroy___0.apply(null,arguments)},Qa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return a.asm.emscripten_bind_DracoUInt8Array_DracoUInt8Array_0.apply(null,arguments)},tb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoUInt8Array_GetValue_1.apply(null, 34 | arguments)},ub=a._emscripten_bind_DracoUInt8Array_size_0=function(){return a.asm.emscripten_bind_DracoUInt8Array_size_0.apply(null,arguments)},vb=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return a.asm.emscripten_bind_DracoUInt8Array___destroy___0.apply(null,arguments)},Ra=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return a.asm.emscripten_bind_DracoUInt32Array_DracoUInt32Array_0.apply(null,arguments)},wb=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoUInt32Array_GetValue_1.apply(null, 35 | arguments)},xb=a._emscripten_bind_DracoUInt32Array_size_0=function(){return a.asm.emscripten_bind_DracoUInt32Array_size_0.apply(null,arguments)},yb=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return a.asm.emscripten_bind_DracoUInt32Array___destroy___0.apply(null,arguments)},Sa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return a.asm.emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0.apply(null,arguments)},zb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1= 36 | function(){return a.asm.emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1.apply(null,arguments)},Ab=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return a.asm.emscripten_bind_AttributeOctahedronTransform_quantization_bits_0.apply(null,arguments)},Bb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return a.asm.emscripten_bind_AttributeOctahedronTransform___destroy___0.apply(null,arguments)},Ta=a._emscripten_bind_PointAttribute_PointAttribute_0= 37 | function(){return a.asm.emscripten_bind_PointAttribute_PointAttribute_0.apply(null,arguments)},Cb=a._emscripten_bind_PointAttribute_size_0=function(){return a.asm.emscripten_bind_PointAttribute_size_0.apply(null,arguments)},Db=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return a.asm.emscripten_bind_PointAttribute_GetAttributeTransformData_0.apply(null,arguments)},Eb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return a.asm.emscripten_bind_PointAttribute_attribute_type_0.apply(null, 38 | arguments)},Fb=a._emscripten_bind_PointAttribute_data_type_0=function(){return a.asm.emscripten_bind_PointAttribute_data_type_0.apply(null,arguments)},Gb=a._emscripten_bind_PointAttribute_num_components_0=function(){return a.asm.emscripten_bind_PointAttribute_num_components_0.apply(null,arguments)},Hb=a._emscripten_bind_PointAttribute_normalized_0=function(){return a.asm.emscripten_bind_PointAttribute_normalized_0.apply(null,arguments)},Ib=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return a.asm.emscripten_bind_PointAttribute_byte_stride_0.apply(null, 39 | arguments)},Jb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return a.asm.emscripten_bind_PointAttribute_byte_offset_0.apply(null,arguments)},Kb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return a.asm.emscripten_bind_PointAttribute_unique_id_0.apply(null,arguments)},Lb=a._emscripten_bind_PointAttribute___destroy___0=function(){return a.asm.emscripten_bind_PointAttribute___destroy___0.apply(null,arguments)},Ua=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0= 40 | function(){return a.asm.emscripten_bind_AttributeTransformData_AttributeTransformData_0.apply(null,arguments)},Mb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return a.asm.emscripten_bind_AttributeTransformData_transform_type_0.apply(null,arguments)},Nb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return a.asm.emscripten_bind_AttributeTransformData___destroy___0.apply(null,arguments)},Va=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0= 41 | function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0.apply(null,arguments)},Ob=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1.apply(null,arguments)},Pb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_quantization_bits_0.apply(null,arguments)}, 42 | Qb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_min_value_1.apply(null,arguments)},Rb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform_range_0.apply(null,arguments)},Sb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return a.asm.emscripten_bind_AttributeQuantizationTransform___destroy___0.apply(null,arguments)}, 43 | Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0.apply(null,arguments)},Tb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoInt8Array_GetValue_1.apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_size_0=function(){return a.asm.emscripten_bind_DracoInt8Array_size_0.apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return a.asm.emscripten_bind_DracoInt8Array___destroy___0.apply(null, 44 | arguments)},Xa=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return a.asm.emscripten_bind_MetadataQuerier_MetadataQuerier_0.apply(null,arguments)},Wb=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_HasEntry_2.apply(null,arguments)},Xb=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetIntEntry_2.apply(null,arguments)},Yb=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3= 45 | function(){return a.asm.emscripten_bind_MetadataQuerier_GetIntEntryArray_3.apply(null,arguments)},Zb=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetDoubleEntry_2.apply(null,arguments)},$b=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetStringEntry_2.apply(null,arguments)},ac=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return a.asm.emscripten_bind_MetadataQuerier_NumEntries_1.apply(null, 46 | arguments)},bc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return a.asm.emscripten_bind_MetadataQuerier_GetEntryName_2.apply(null,arguments)},cc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return a.asm.emscripten_bind_MetadataQuerier___destroy___0.apply(null,arguments)},Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return a.asm.emscripten_bind_DracoInt16Array_DracoInt16Array_0.apply(null,arguments)},dc=a._emscripten_bind_DracoInt16Array_GetValue_1= 47 | function(){return a.asm.emscripten_bind_DracoInt16Array_GetValue_1.apply(null,arguments)},ec=a._emscripten_bind_DracoInt16Array_size_0=function(){return a.asm.emscripten_bind_DracoInt16Array_size_0.apply(null,arguments)},fc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return a.asm.emscripten_bind_DracoInt16Array___destroy___0.apply(null,arguments)},Za=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return a.asm.emscripten_bind_DracoFloat32Array_DracoFloat32Array_0.apply(null, 48 | arguments)},gc=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoFloat32Array_GetValue_1.apply(null,arguments)},hc=a._emscripten_bind_DracoFloat32Array_size_0=function(){return a.asm.emscripten_bind_DracoFloat32Array_size_0.apply(null,arguments)},ic=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return a.asm.emscripten_bind_DracoFloat32Array___destroy___0.apply(null,arguments)},$a=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0.apply(null, 49 | arguments)},jc=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return a.asm.emscripten_bind_GeometryAttribute___destroy___0.apply(null,arguments)},ab=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return a.asm.emscripten_bind_DecoderBuffer_DecoderBuffer_0.apply(null,arguments)},kc=a._emscripten_bind_DecoderBuffer_Init_2=function(){return a.asm.emscripten_bind_DecoderBuffer_Init_2.apply(null,arguments)},lc=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return a.asm.emscripten_bind_DecoderBuffer___destroy___0.apply(null, 50 | arguments)},bb=a._emscripten_bind_Decoder_Decoder_0=function(){return a.asm.emscripten_bind_Decoder_Decoder_0.apply(null,arguments)},mc=a._emscripten_bind_Decoder_GetEncodedGeometryType_1=function(){return a.asm.emscripten_bind_Decoder_GetEncodedGeometryType_1.apply(null,arguments)},nc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return a.asm.emscripten_bind_Decoder_DecodeBufferToPointCloud_2.apply(null,arguments)},oc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return a.asm.emscripten_bind_Decoder_DecodeBufferToMesh_2.apply(null, 51 | arguments)},pc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeId_2.apply(null,arguments)},qc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeIdByName_2.apply(null,arguments)},rc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3.apply(null,arguments)},sc=a._emscripten_bind_Decoder_GetAttribute_2= 52 | function(){return a.asm.emscripten_bind_Decoder_GetAttribute_2.apply(null,arguments)},tc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeByUniqueId_2.apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetMetadata_1=function(){return a.asm.emscripten_bind_Decoder_GetMetadata_1.apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return a.asm.emscripten_bind_Decoder_GetAttributeMetadata_2.apply(null, 53 | arguments)},wc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return a.asm.emscripten_bind_Decoder_GetFaceFromMesh_3.apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return a.asm.emscripten_bind_Decoder_GetTriangleStripsFromMesh_2.apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return a.asm.emscripten_bind_Decoder_GetTrianglesUInt16Array_3.apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3= 54 | function(){return a.asm.emscripten_bind_Decoder_GetTrianglesUInt32Array_3.apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeFloat_3.apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3.apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeIntForAllPoints_3.apply(null, 55 | arguments)},Dc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3.apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3.apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3.apply(null,arguments)}, 56 | Gc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3.apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3.apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return a.asm.emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3.apply(null,arguments)},Jc= 57 | a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return a.asm.emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5.apply(null,arguments)},Kc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return a.asm.emscripten_bind_Decoder_SkipAttributeTransform_1.apply(null,arguments)},Lc=a._emscripten_bind_Decoder___destroy___0=function(){return a.asm.emscripten_bind_Decoder___destroy___0.apply(null,arguments)},cb=a._emscripten_bind_Mesh_Mesh_0=function(){return a.asm.emscripten_bind_Mesh_Mesh_0.apply(null, 58 | arguments)},Mc=a._emscripten_bind_Mesh_num_faces_0=function(){return a.asm.emscripten_bind_Mesh_num_faces_0.apply(null,arguments)},Nc=a._emscripten_bind_Mesh_num_attributes_0=function(){return a.asm.emscripten_bind_Mesh_num_attributes_0.apply(null,arguments)},Oc=a._emscripten_bind_Mesh_num_points_0=function(){return a.asm.emscripten_bind_Mesh_num_points_0.apply(null,arguments)},Pc=a._emscripten_bind_Mesh___destroy___0=function(){return a.asm.emscripten_bind_Mesh___destroy___0.apply(null,arguments)}, 59 | Qc=a._emscripten_bind_VoidPtr___destroy___0=function(){return a.asm.emscripten_bind_VoidPtr___destroy___0.apply(null,arguments)},db=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return a.asm.emscripten_bind_DracoInt32Array_DracoInt32Array_0.apply(null,arguments)},Rc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return a.asm.emscripten_bind_DracoInt32Array_GetValue_1.apply(null,arguments)},Sc=a._emscripten_bind_DracoInt32Array_size_0=function(){return a.asm.emscripten_bind_DracoInt32Array_size_0.apply(null, 60 | arguments)},Tc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return a.asm.emscripten_bind_DracoInt32Array___destroy___0.apply(null,arguments)},eb=a._emscripten_bind_Metadata_Metadata_0=function(){return a.asm.emscripten_bind_Metadata_Metadata_0.apply(null,arguments)},Uc=a._emscripten_bind_Metadata___destroy___0=function(){return a.asm.emscripten_bind_Metadata___destroy___0.apply(null,arguments)},Vc=a._emscripten_enum_draco_StatusCode_OK=function(){return a.asm.emscripten_enum_draco_StatusCode_OK.apply(null, 61 | arguments)},Wc=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return a.asm.emscripten_enum_draco_StatusCode_DRACO_ERROR.apply(null,arguments)},Xc=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return a.asm.emscripten_enum_draco_StatusCode_IO_ERROR.apply(null,arguments)},Yc=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return a.asm.emscripten_enum_draco_StatusCode_INVALID_PARAMETER.apply(null,arguments)},Zc=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION= 62 | function(){return a.asm.emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION.apply(null,arguments)},$c=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return a.asm.emscripten_enum_draco_StatusCode_UNKNOWN_VERSION.apply(null,arguments)},ad=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return a.asm.emscripten_enum_draco_DataType_DT_INVALID.apply(null,arguments)},bd=a._emscripten_enum_draco_DataType_DT_INT8=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT8.apply(null, 63 | arguments)},cd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT8.apply(null,arguments)},dd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT16.apply(null,arguments)},ed=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT16.apply(null,arguments)},fd=a._emscripten_enum_draco_DataType_DT_INT32=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT32.apply(null, 64 | arguments)},gd=a._emscripten_enum_draco_DataType_DT_UINT32=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT32.apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INT64=function(){return a.asm.emscripten_enum_draco_DataType_DT_INT64.apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return a.asm.emscripten_enum_draco_DataType_DT_UINT64.apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return a.asm.emscripten_enum_draco_DataType_DT_FLOAT32.apply(null, 65 | arguments)},kd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return a.asm.emscripten_enum_draco_DataType_DT_FLOAT64.apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return a.asm.emscripten_enum_draco_DataType_DT_BOOL.apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return a.asm.emscripten_enum_draco_DataType_DT_TYPES_COUNT.apply(null,arguments)},nd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE.apply(null, 66 | arguments)},od=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD.apply(null,arguments)},pd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH.apply(null,arguments)},qd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM.apply(null, 67 | arguments)},rd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM.apply(null,arguments)},sd=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM.apply(null,arguments)},td=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return a.asm.emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM.apply(null, 68 | arguments)},ud=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID.apply(null,arguments)},vd=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION.apply(null,arguments)},wd=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL.apply(null,arguments)},xd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR= 69 | function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR.apply(null,arguments)},yd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD.apply(null,arguments)},zd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC.apply(null,arguments)};a._setThrew=function(){return a.asm.setThrew.apply(null,arguments)};var ta=a.__ZSt18uncaught_exceptionv= 70 | function(){return a.asm._ZSt18uncaught_exceptionv.apply(null,arguments)};a._free=function(){return a.asm.free.apply(null,arguments)};var ib=a._malloc=function(){return a.asm.malloc.apply(null,arguments)};a.stackSave=function(){return a.asm.stackSave.apply(null,arguments)};a.stackAlloc=function(){return a.asm.stackAlloc.apply(null,arguments)};a.stackRestore=function(){return a.asm.stackRestore.apply(null,arguments)};a.__growWasmMemory=function(){return a.asm.__growWasmMemory.apply(null,arguments)}; 71 | a.dynCall_ii=function(){return a.asm.dynCall_ii.apply(null,arguments)};a.dynCall_vi=function(){return a.asm.dynCall_vi.apply(null,arguments)};a.dynCall_iii=function(){return a.asm.dynCall_iii.apply(null,arguments)};a.dynCall_vii=function(){return a.asm.dynCall_vii.apply(null,arguments)};a.dynCall_iiii=function(){return a.asm.dynCall_iiii.apply(null,arguments)};a.dynCall_v=function(){return a.asm.dynCall_v.apply(null,arguments)};a.dynCall_viii=function(){return a.asm.dynCall_viii.apply(null,arguments)}; 72 | a.dynCall_viiii=function(){return a.asm.dynCall_viiii.apply(null,arguments)};a.dynCall_iiiiiii=function(){return a.asm.dynCall_iiiiiii.apply(null,arguments)};a.dynCall_iidiiii=function(){return a.asm.dynCall_iidiiii.apply(null,arguments)};a.dynCall_jiji=function(){return a.asm.dynCall_jiji.apply(null,arguments)};a.dynCall_viiiiii=function(){return a.asm.dynCall_viiiiii.apply(null,arguments)};a.dynCall_viiiii=function(){return a.asm.dynCall_viiiii.apply(null,arguments)};a.asm=La;var fa;a.then=function(e){if(fa)e(a); 73 | else{var c=a.onRuntimeInitialized;a.onRuntimeInitialized=function(){c&&c();e(a)}}return a};ja=function c(){fa||ma();fa||(ja=c)};a.run=ma;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0=n.size?(t(0>=1;break;case 4:d>>=2;break;case 8:d>>=3}for(var c=0;c this.resize()); 42 | this.time.on("tick", () => this.update()); 43 | } 44 | 45 | resize() { 46 | this.camera.resize(); 47 | this.renderer.resize(); 48 | } 49 | 50 | update() { 51 | /**Begin analyzing frame */ 52 | this.stats.active && this.stats.beforeRender(); 53 | 54 | /**update everything */ 55 | this.camera.update(); 56 | this.world.update(); 57 | this.renderer.update(); 58 | 59 | /**Finish analyzing frame */ 60 | this.stats.active && this.stats.afterRender(); 61 | } 62 | 63 | destroy() { 64 | /**Clear Event Emitter*/ 65 | this.sizes.off("resize"); 66 | this.time.off("tick"); 67 | 68 | /**Traverse the whole scene and check if it's a mesh */ 69 | this.scene.traverse((child) => { 70 | if (child instanceof THREE.Mesh) { 71 | child.geometry.dispose(); 72 | 73 | /**Loop through the material properties */ 74 | for (const key in child.material) { 75 | const value = child.material[key]; 76 | 77 | /**Test if there is a dispose function */ 78 | if (value && typeof value.dispose === "function") { 79 | value.dispose(); 80 | } 81 | } 82 | } 83 | }); 84 | 85 | this.camera.controls.dispose(); 86 | this.renderer.instance.dispose(); 87 | 88 | if (this.debug.active) { 89 | this.debug.ui.destroy(); 90 | } 91 | 92 | if (this.stats.active) { 93 | this.stats.ui.destroy(); 94 | } 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /sources/Experience/Renderer.js: -------------------------------------------------------------------------------- 1 | import * as THREE from "three"; 2 | import Experience from "./Experience.js"; 3 | 4 | export default class Renderer { 5 | constructor() { 6 | this.experience = new Experience(); 7 | this.canvas = this.experience.canvas; 8 | this.sizes = this.experience.sizes; 9 | this.scene = this.experience.scene; 10 | this.camera = this.experience.camera; 11 | 12 | this.setInstance(); 13 | } 14 | 15 | setInstance() { 16 | this.instance = new THREE.WebGLRenderer({ 17 | canvas: this.canvas, 18 | antialias: true, 19 | }); 20 | 21 | this.instance.setClearColor("#262626", 1); 22 | this.instance.physicallyCorrectLights = true; 23 | this.instance.outputEncoding = THREE.sRGBEncoding; 24 | this.instance.toneMapping = THREE.NoToneMapping; 25 | this.instance.toneMappingExposure = 1; 26 | 27 | this.resize(); 28 | } 29 | 30 | resize() { 31 | this.instance.setSize(this.sizes.width, this.sizes.height); 32 | this.instance.setPixelRatio(Math.min(this.sizes.pixelRatio, 2)); 33 | } 34 | 35 | update() { 36 | this.instance.render(this.scene, this.camera.instance); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /sources/Experience/Utils/Debug.js: -------------------------------------------------------------------------------- 1 | import * as dat from "lil-gui"; 2 | 3 | export default class Debug { 4 | constructor() { 5 | this.active = window.location.hash === "#debug"; 6 | 7 | if (this.active) { 8 | this.ui = new dat.GUI(); 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /sources/Experience/Utils/EventEmitter.js: -------------------------------------------------------------------------------- 1 | export default class EventEmitter { 2 | constructor() { 3 | this.callbacks = {}; 4 | this.callbacks.base = {}; 5 | } 6 | 7 | on(_names, callback) { 8 | // Errors 9 | if (typeof _names === "undefined" || _names === "") { 10 | console.warn("wrong names"); 11 | return false; 12 | } 13 | 14 | if (typeof callback === "undefined") { 15 | console.warn("wrong callback"); 16 | return false; 17 | } 18 | 19 | // Resolve names 20 | const names = this.resolveNames(_names); 21 | 22 | // Each name 23 | names.forEach((_name) => { 24 | // Resolve name 25 | const name = this.resolveName(_name); 26 | 27 | // Create namespace if not exist 28 | if (!(this.callbacks[name.namespace] instanceof Object)) 29 | this.callbacks[name.namespace] = {}; 30 | 31 | // Create callback if not exist 32 | if (!(this.callbacks[name.namespace][name.value] instanceof Array)) 33 | this.callbacks[name.namespace][name.value] = []; 34 | 35 | // Add callback 36 | this.callbacks[name.namespace][name.value].push(callback); 37 | }); 38 | 39 | return this; 40 | } 41 | 42 | off(_names) { 43 | // Errors 44 | if (typeof _names === "undefined" || _names === "") { 45 | console.warn("wrong name"); 46 | return false; 47 | } 48 | 49 | // Resolve names 50 | const names = this.resolveNames(_names); 51 | 52 | // Each name 53 | names.forEach((_name) => { 54 | // Resolve name 55 | const name = this.resolveName(_name); 56 | 57 | // Remove namespace 58 | if (name.namespace !== "base" && name.value === "") { 59 | delete this.callbacks[name.namespace]; 60 | } 61 | 62 | // Remove specific callback in namespace 63 | else { 64 | // Default 65 | if (name.namespace === "base") { 66 | // Try to remove from each namespace 67 | for (const namespace in this.callbacks) { 68 | if ( 69 | this.callbacks[namespace] instanceof Object && 70 | this.callbacks[namespace][name.value] instanceof Array 71 | ) { 72 | delete this.callbacks[namespace][name.value]; 73 | 74 | // Remove namespace if empty 75 | if (Object.keys(this.callbacks[namespace]).length === 0) 76 | delete this.callbacks[namespace]; 77 | } 78 | } 79 | } 80 | 81 | // Specified namespace 82 | else if ( 83 | this.callbacks[name.namespace] instanceof Object && 84 | this.callbacks[name.namespace][name.value] instanceof Array 85 | ) { 86 | delete this.callbacks[name.namespace][name.value]; 87 | 88 | // Remove namespace if empty 89 | if (Object.keys(this.callbacks[name.namespace]).length === 0) 90 | delete this.callbacks[name.namespace]; 91 | } 92 | } 93 | }); 94 | 95 | return this; 96 | } 97 | 98 | trigger(_name, _args) { 99 | // Errors 100 | if (typeof _name === "undefined" || _name === "") { 101 | console.warn("wrong name"); 102 | return false; 103 | } 104 | 105 | let finalResult = null; 106 | let result = null; 107 | 108 | // Default args 109 | const args = !(_args instanceof Array) ? [] : _args; 110 | 111 | // Resolve names (should on have one event) 112 | let name = this.resolveNames(_name); 113 | 114 | // Resolve name 115 | name = this.resolveName(name[0]); 116 | 117 | // Default namespace 118 | if (name.namespace === "base") { 119 | // Try to find callback in each namespace 120 | for (const namespace in this.callbacks) { 121 | if ( 122 | this.callbacks[namespace] instanceof Object && 123 | this.callbacks[namespace][name.value] instanceof Array 124 | ) { 125 | this.callbacks[namespace][name.value].forEach(function (callback) { 126 | result = callback.apply(this, args); 127 | 128 | if (typeof finalResult === "undefined") { 129 | finalResult = result; 130 | } 131 | }); 132 | } 133 | } 134 | } 135 | 136 | // Specified namespace 137 | else if (this.callbacks[name.namespace] instanceof Object) { 138 | if (name.value === "") { 139 | console.warn("wrong name"); 140 | return this; 141 | } 142 | 143 | this.callbacks[name.namespace][name.value].forEach(function (callback) { 144 | result = callback.apply(this, args); 145 | 146 | if (typeof finalResult === "undefined") finalResult = result; 147 | }); 148 | } 149 | 150 | return finalResult; 151 | } 152 | 153 | resolveNames(_names) { 154 | let names = _names; 155 | names = names.replace(/[^a-zA-Z0-9 ,/.]/g, ""); 156 | names = names.replace(/[,/]+/g, " "); 157 | names = names.split(" "); 158 | 159 | return names; 160 | } 161 | 162 | resolveName(name) { 163 | const newName = {}; 164 | const parts = name.split("."); 165 | 166 | newName.original = name; 167 | newName.value = parts[0]; 168 | newName.namespace = "base"; // Base namespace 169 | 170 | // Specified namespace 171 | if (parts.length > 1 && parts[1] !== "") { 172 | newName.namespace = parts[1]; 173 | } 174 | 175 | return newName; 176 | } 177 | } 178 | -------------------------------------------------------------------------------- /sources/Experience/Utils/Resources.js: -------------------------------------------------------------------------------- 1 | import * as THREE from "three"; 2 | import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"; 3 | import EventEmitter from "./EventEmitter.js"; 4 | 5 | export default class Resources extends EventEmitter { 6 | constructor(sources) { 7 | super(); 8 | 9 | this.sources = sources; 10 | 11 | this.items = {}; 12 | this.toLoad = this.sources.length; 13 | this.loaded = 0; 14 | 15 | this.setLoaders(); 16 | this.startLoading(); 17 | } 18 | 19 | setLoaders() { 20 | this.loaders = {}; 21 | this.loaders.gltfLoader = new GLTFLoader(); 22 | this.loaders.textureLoader = new THREE.TextureLoader(); 23 | this.loaders.cubeTextureLoader = new THREE.CubeTextureLoader(); 24 | } 25 | 26 | startLoading() { 27 | /**load each source */ 28 | for (const source of this.sources) { 29 | if (source.type === "gltfModel") { 30 | this.loaders.gltfLoader.load(source.path, (file) => { 31 | this.sourceLoaded(source, file); 32 | }); 33 | } else if (source.type === "texture") { 34 | this.loaders.textureLoader.load(source.path, (file) => { 35 | this.sourceLoaded(source, file); 36 | }); 37 | } else if (source.type === "cubeTexture") { 38 | this.loaders.cubeTextureLoader.load(source.path, (file) => { 39 | this.sourceLoaded(source, file); 40 | }); 41 | } 42 | } 43 | } 44 | 45 | sourceLoaded(source, file) { 46 | this.items[source.name] = file; 47 | 48 | this.loaded++; 49 | 50 | /**Trigger Event Emitter if all sources are loaded */ 51 | if (this.loaded === this.toLoad) { 52 | this.trigger("ready"); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /sources/Experience/Utils/Sizes.js: -------------------------------------------------------------------------------- 1 | import EventEmitter from "./EventEmitter.js"; 2 | 3 | export default class Sizes extends EventEmitter { 4 | constructor() { 5 | super(); 6 | 7 | this.updateSizes(); 8 | 9 | /**Resize Event Listener */ 10 | window.addEventListener("resize", () => { 11 | this.updateSizes(); 12 | this.trigger("resize"); 13 | }); 14 | } 15 | 16 | updateSizes() { 17 | this.width = window.innerWidth; 18 | this.height = window.innerHeight; 19 | this.pixelRatio = Math.min(window.devicePixelRatio, 2); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /sources/Experience/Utils/Stats.js: -------------------------------------------------------------------------------- 1 | import StatsJs from "stats.js"; 2 | 3 | export default class Stats { 4 | constructor() { 5 | this.active = window.location.hash === "#debug"; 6 | 7 | if (this.active) { 8 | this.activate(); 9 | } 10 | } 11 | 12 | activate() { 13 | this.instance = new StatsJs(); 14 | this.instance.showPanel(0); 15 | document.body.appendChild(this.instance.dom); 16 | } 17 | 18 | beforeRender() { 19 | this.instance.begin(); 20 | } 21 | 22 | afterRender() { 23 | this.instance.end(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /sources/Experience/Utils/Time.js: -------------------------------------------------------------------------------- 1 | import EventEmitter from "./EventEmitter.js"; 2 | 3 | export default class Time extends EventEmitter { 4 | constructor() { 5 | super(); 6 | 7 | this.start = Date.now(); 8 | this.current = this.start; 9 | this.elapsed = 0; 10 | this.delta = 16; 11 | 12 | /**Tick on next animation frame */ 13 | window.requestAnimationFrame(() => { 14 | this.tick(); 15 | }); 16 | } 17 | 18 | tick() { 19 | /**Update time */ 20 | const currentTime = Date.now(); 21 | this.delta = currentTime - this.current; 22 | this.current = currentTime; 23 | this.elapsed = this.current - this.start; 24 | 25 | /**Trigger event Emitter */ 26 | this.trigger("tick"); 27 | 28 | /**Continue ticking on next animation frame*/ 29 | window.requestAnimationFrame(() => { 30 | this.tick(); 31 | }); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /sources/Experience/World/Fox.js: -------------------------------------------------------------------------------- 1 | import * as THREE from "three"; 2 | import Experience from "../Experience.js"; 3 | 4 | export default class Fox { 5 | constructor() { 6 | this.experience = new Experience(); 7 | this.scene = this.experience.scene; 8 | this.resources = this.experience.resources; 9 | this.time = this.experience.time; 10 | this.debug = this.experience.debug; 11 | 12 | // Debug 13 | if (this.debug.active) { 14 | this.debugFolder = this.debug.ui.addFolder("fox"); 15 | } 16 | 17 | // Resource 18 | this.resource = this.resources.items.foxModel; 19 | 20 | this.setModel(); 21 | this.setMaterial(); 22 | this.setAnimation(); 23 | } 24 | 25 | setModel() { 26 | this.model = this.resource.scene; 27 | this.model.scale.set(0.05, 0.05, 0.05); 28 | this.model.position.y -= 1.5; 29 | this.scene.add(this.model); 30 | } 31 | 32 | setMaterial() { 33 | this.material = new THREE.MeshMatcapMaterial({ 34 | matcap: this.resources.items.testMatcap, 35 | }); 36 | 37 | this.model.traverse((child) => { 38 | child.material = this.material; 39 | }); 40 | } 41 | 42 | setAnimation() { 43 | this.animation = {}; 44 | 45 | // Mixer 46 | this.animation.mixer = new THREE.AnimationMixer(this.model); 47 | 48 | // Actions 49 | this.animation.actions = {}; 50 | 51 | this.animation.actions.idle = this.animation.mixer.clipAction( 52 | this.resource.animations[0] 53 | ); 54 | this.animation.actions.walking = this.animation.mixer.clipAction( 55 | this.resource.animations[1] 56 | ); 57 | this.animation.actions.running = this.animation.mixer.clipAction( 58 | this.resource.animations[2] 59 | ); 60 | 61 | this.animation.actions.current = this.animation.actions.idle; 62 | this.animation.actions.current.play(); 63 | 64 | // Play the action 65 | this.animation.play = (name) => { 66 | const newAction = this.animation.actions[name]; 67 | const oldAction = this.animation.actions.current; 68 | 69 | newAction.reset(); 70 | newAction.play(); 71 | newAction.crossFadeFrom(oldAction, 1); 72 | 73 | this.animation.actions.current = newAction; 74 | }; 75 | 76 | // Debug 77 | if (this.debug.active) { 78 | const debugObject = { 79 | playIdle: () => { 80 | this.animation.play("idle"); 81 | }, 82 | playWalking: () => { 83 | this.animation.play("walking"); 84 | }, 85 | playRunning: () => { 86 | this.animation.play("running"); 87 | }, 88 | }; 89 | this.debugFolder.add(debugObject, "playIdle"); 90 | this.debugFolder.add(debugObject, "playWalking"); 91 | this.debugFolder.add(debugObject, "playRunning"); 92 | } 93 | } 94 | 95 | update() { 96 | this.animation.mixer.update(this.time.delta * 0.001); 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /sources/Experience/World/World.js: -------------------------------------------------------------------------------- 1 | import Experience from "../Experience.js"; 2 | import Fox from "./Fox.js"; 3 | 4 | export default class World { 5 | constructor() { 6 | this.experience = new Experience(); 7 | this.scene = this.experience.scene; 8 | this.resources = this.experience.resources; 9 | 10 | // Wait for resources 11 | this.resources.on("ready", () => { 12 | // Setup 13 | this.fox = new Fox(); 14 | }); 15 | } 16 | 17 | update() { 18 | if (this.fox) this.fox.update(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /sources/Experience/sources.js: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | name: "testMatcap", 4 | type: "texture", 5 | path: "textures/matcap.png", 6 | }, 7 | { 8 | name: "foxModel", 9 | type: "gltfModel", 10 | path: "models/Fox/glTF/Fox.gltf", 11 | }, 12 | ]; 13 | -------------------------------------------------------------------------------- /sources/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Three.js Experience 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /sources/script.js: -------------------------------------------------------------------------------- 1 | import "./style.scss"; 2 | import Experience from "./Experience/Experience.js"; 3 | 4 | const experience = new Experience(document.getElementById("experience")); 5 | -------------------------------------------------------------------------------- /sources/style.scss: -------------------------------------------------------------------------------- 1 | * 2 | { 3 | margin: 0; 4 | padding: 0; 5 | } 6 | 7 | html, 8 | body 9 | { 10 | overflow: hidden; 11 | } 12 | 13 | #experience 14 | { 15 | position: fixed; 16 | top: 0; 17 | left: 0; 18 | outline: none; 19 | } 20 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import path from 'path' 3 | 4 | const dirname = path.resolve() 5 | 6 | export default defineConfig({ 7 | root: 'sources', 8 | publicDir: '../public', 9 | build: 10 | { 11 | outDir: '../dist', 12 | emptyOutDir: true, 13 | sourcemap: true 14 | } 15 | }) --------------------------------------------------------------------------------