From aee03e4e9dcf0af61ec2856025356e6d9eb0fc70 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:27:56 +0000 Subject: [PATCH 001/125] build(deps): bump follow-redirects from 1.15.2 to 1.15.4 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 2611 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 2486 insertions(+), 125 deletions(-) diff --git a/package-lock.json b/package-lock.json index 060d3079f..47c832518 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "webgal-terre", - "version": "4.4.7", + "version": "4.4.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "webgal-terre", - "version": "4.4.7", + "version": "4.4.9", "devDependencies": { "concurrently": "^7.2.2", "iconv-lite": "^0.6.3" @@ -898,6 +898,11 @@ "node": ">=0.1.90" } }, + "node_modules/@emotion/hash": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz", + "integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==" + }, "node_modules/@esbuild/android-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", @@ -1325,174 +1330,2149 @@ "engines": { "node": ">=10" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.40.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@exodus/schemasafe": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz", + "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==", + "dev": true + }, + "node_modules/@floating-ui/core": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.3.tgz", + "integrity": "sha512-O0WKDOo0yhJuugCx6trZQj5jVJ9yR0ystG2JaNAemYUWce+pmM6WUEFIibnWyEJKdrDxhm75NoSRME35FNaM/Q==", + "dependencies": { + "@floating-ui/utils": "^0.2.0" + } + }, + "node_modules/@floating-ui/devtools": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@floating-ui/devtools/-/devtools-0.0.4.tgz", + "integrity": "sha512-lSlvB45PgGS+YmGtOPseYBLwa+u+wPsZ+g/bT5kgzK2zLAKR5m9L5hS3b/OFZhrFWwehRf73RRSZ/WXg4r5WMw==", + "peerDependencies": { + "@floating-ui/dom": ">=1.5.4" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.4.tgz", + "integrity": "sha512-jByEsHIY+eEdCjnTVu+E3ephzTOzkQ8hgUfGwos+bg7NlH33Zc5uO+QHz1mrQUOgIKKDD1RtS201P9NvAfq3XQ==", + "dependencies": { + "@floating-ui/core": "^1.5.3", + "@floating-ui/utils": "^0.2.0" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz", + "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" + }, + "node_modules/@fluentui/date-time-utilities": { + "version": "8.5.10", + "license": "MIT", + "dependencies": { + "@fluentui/set-version": "^8.2.9", + "tslib": "^2.1.0" + } + }, + "node_modules/@fluentui/dom-utilities": { + "version": "2.2.9", + "license": "MIT", + "dependencies": { + "@fluentui/set-version": "^8.2.9", + "tslib": "^2.1.0" + } + }, + "node_modules/@fluentui/font-icons-mdl2": { + "version": "8.5.17", + "license": "MIT", + "dependencies": { + "@fluentui/set-version": "^8.2.9", + "@fluentui/style-utilities": "^8.9.10", + "@fluentui/utilities": "^8.13.13", + "tslib": "^2.1.0" + } + }, + "node_modules/@fluentui/foundation-legacy": { + "version": "8.2.37", + "license": "MIT", + "dependencies": { + "@fluentui/merge-styles": "^8.5.10", + "@fluentui/set-version": "^8.2.9", + "@fluentui/style-utilities": "^8.9.10", + "@fluentui/utilities": "^8.13.13", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/keyboard-key": { + "version": "0.4.9", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@fluentui/keyboard-keys": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/@fluentui/keyboard-keys/-/keyboard-keys-9.0.7.tgz", + "integrity": "sha512-vaQ+lOveQTdoXJYqDQXWb30udSfTVcIuKk1rV0X0eGAgcHeSDeP1HxMy+OgHOQZH3OiBH4ZYeWxb+tmfiDiygQ==", + "dependencies": { + "@swc/helpers": "^0.5.1" + } + }, + "node_modules/@fluentui/keyboard-keys/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/merge-styles": { + "version": "8.5.10", + "license": "MIT", + "dependencies": { + "@fluentui/set-version": "^8.2.9", + "tslib": "^2.1.0" + } + }, + "node_modules/@fluentui/priority-overflow": { + "version": "9.1.11", + "resolved": "https://registry.npmjs.org/@fluentui/priority-overflow/-/priority-overflow-9.1.11.tgz", + "integrity": "sha512-sdrpavvKX2kepQ1d6IaI3ObLq5SAQBPRHPGx2+wiMWL7cEx9vGGM0fmeicl3soqqmM5uwCmWnZk9QZv9XOY98w==", + "dependencies": { + "@swc/helpers": "^0.5.1" + } + }, + "node_modules/@fluentui/priority-overflow/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react": { + "version": "8.109.3", + "license": "MIT", + "dependencies": { + "@fluentui/date-time-utilities": "^8.5.10", + "@fluentui/font-icons-mdl2": "^8.5.17", + "@fluentui/foundation-legacy": "^8.2.37", + "@fluentui/merge-styles": "^8.5.10", + "@fluentui/react-focus": "^8.8.23", + "@fluentui/react-hooks": "^8.6.24", + "@fluentui/react-portal-compat-context": "^9.0.5", + "@fluentui/react-window-provider": "^2.2.13", + "@fluentui/set-version": "^8.2.9", + "@fluentui/style-utilities": "^8.9.10", + "@fluentui/theme": "^2.6.29", + "@fluentui/utilities": "^8.13.13", + "@microsoft/load-themed-styles": "^1.10.26", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "@types/react-dom": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0", + "react-dom": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-alert": { + "version": "9.0.0-beta.100", + "resolved": "https://registry.npmjs.org/@fluentui/react-alert/-/react-alert-9.0.0-beta.100.tgz", + "integrity": "sha512-IPzC2ub+V7nSoBXGsCiEcGYIp9bcz/DpyAcyXKGo+Ql/+etx+r7TkXbWWl8+rRSGXs5zS6u6oGSIDfXNRto1Sg==", + "dependencies": { + "@fluentui/react-avatar": "^9.6.5", + "@fluentui/react-button": "^9.3.61", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-alert/node_modules/@fluentui/react-avatar": { + "version": "9.6.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-avatar/-/react-avatar-9.6.5.tgz", + "integrity": "sha512-1ncFDXrAhvFD/AB7hSbjvq3HCjEo5AvTVy+wKD1g/FFuFV60AcJiM8acXzTJMBPxQi7DTdcIG31Hm0I63AeFVg==", + "dependencies": { + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-tooltip": "^9.4.7", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-alert/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-alert/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-alert/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-alert/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-aria": { + "version": "9.6.2", + "resolved": "https://registry.npmjs.org/@fluentui/react-aria/-/react-aria-9.6.2.tgz", + "integrity": "sha512-DMM4l5fMfg7yltqM33TFlEJlua7eAqIdLnKtnQ4szezbG2QZOy+a+qmJOGNcScteuO1/kRfYC+WOXhxtnMeA7g==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-aria/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-badge": { + "version": "9.2.19", + "resolved": "https://registry.npmjs.org/@fluentui/react-badge/-/react-badge-9.2.19.tgz", + "integrity": "sha512-6HjUNeNV1KkSTuft+8YtPd5tfbJKJA5g0HO/8+M7h803cr0zhyyokPOZuKM/tH5r9VCWa+gPoyaHRZUiWyHqIA==", + "dependencies": { + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-badge/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-breadcrumb": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/@fluentui/react-breadcrumb/-/react-breadcrumb-9.0.7.tgz", + "integrity": "sha512-/Kmp8CJxpW7ymTHAhSi9e09btPRhZG//oaSP6AGtTR5/0A8N1Kd+rDfmlvTleRWDn8+MMth+azt+amRaenNouQ==", + "dependencies": { + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-button": "^9.3.61", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-link": "^9.2.4", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-breadcrumb/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-button": { + "version": "9.3.61", + "resolved": "https://registry.npmjs.org/@fluentui/react-button/-/react-button-9.3.61.tgz", + "integrity": "sha512-QYNZj6CxCbOJ0wKwhDx2QaAW4udS+vw4hlLcUUHZGnksYXrJt9vhKcflokShLpOKQikD9cPn+T8b5QzFGy2Skw==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-button/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-card": { + "version": "9.0.60", + "resolved": "https://registry.npmjs.org/@fluentui/react-card/-/react-card-9.0.60.tgz", + "integrity": "sha512-ykohMAPtGor2RXZJeQFjwitVhhu03cq6I79WTgHnQIQvwyZ9RiHHYJ8QKsQzDpdyleSqOcUA6O6yk3oiVKVjNw==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-card/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-checkbox": { + "version": "9.2.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-checkbox/-/react-checkbox-9.2.5.tgz", + "integrity": "sha512-lfodSwu83BeDPaZRHNftqWmIrv8m9SeHdOODuAp1VPDWUCNtZkajZZaHXv77RQRKsF/O4Q60bOy0QtTsRkTqzg==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-checkbox/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-dialog": { + "version": "9.9.3", + "resolved": "https://registry.npmjs.org/@fluentui/react-dialog/-/react-dialog-9.9.3.tgz", + "integrity": "sha512-WAQgrbt/I1X0XcLDnMt+qmAx30E3Ol/auJhACLhilkht/uQ6xoeWOjRGBY2k6yMA32QpLqdGbV4UA4EcLLBuSg==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1", + "react-transition-group": "^4.4.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-dialog/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-dialog/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-dialog/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-divider": { + "version": "9.2.55", + "resolved": "https://registry.npmjs.org/@fluentui/react-divider/-/react-divider-9.2.55.tgz", + "integrity": "sha512-WbV5nDhqe+2JXq4Igv7eZHrAB4v+CbICGhJ+sY86uHd9872hjBr9cHUSpBnY8yeffXc/PSmjF+i1NcmCOyHUyg==", + "dependencies": { + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-divider/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-drawer": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/@fluentui/react-drawer/-/react-drawer-9.0.7.tgz", + "integrity": "sha512-XKG5m+vFQvBl92R9O6LQOUMPSOqzh1KsR3iZQehfhcticEuShi0uIK9ys0/atYJ890ErWjuXPF7cJHvNU5IYXg==", + "dependencies": { + "@fluentui/react-dialog": "^9.9.3", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-motion-preview": "^0.5.7", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-drawer/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-field": { + "version": "9.1.47", + "resolved": "https://registry.npmjs.org/@fluentui/react-field/-/react-field-9.1.47.tgz", + "integrity": "sha512-FXVjdHkhEVr8bRKoKoZRFvrW5ZAU3ZRq4EUxMvZDOxfeVx0cxo8qIG2BOp2xe4GrVXyfVtq0Fguqx58ttlG5sg==", + "dependencies": { + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-field/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-field/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-field/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-focus": { + "version": "8.8.23", + "license": "MIT", + "dependencies": { + "@fluentui/keyboard-key": "^0.4.9", + "@fluentui/merge-styles": "^8.5.10", + "@fluentui/set-version": "^8.2.9", + "@fluentui/style-utilities": "^8.9.10", + "@fluentui/utilities": "^8.13.13", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-hooks": { + "version": "8.6.24", + "license": "MIT", + "dependencies": { + "@fluentui/react-window-provider": "^2.2.13", + "@fluentui/set-version": "^8.2.9", + "@fluentui/utilities": "^8.13.13", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-icon-provider": { + "version": "1.3.38", + "license": "MIT", + "dependencies": { + "@fluentui/set-version": "^8.2.9", + "@fluentui/style-utilities": "^8.9.10", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "@types/react-dom": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0", + "react-dom": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-icons": { + "version": "2.0.224", + "resolved": "https://registry.npmjs.org/@fluentui/react-icons/-/react-icons-2.0.224.tgz", + "integrity": "sha512-ld03dlc1pG7xeTQsK1y5in19jkMtWHNaoktFv+e7NV2xmrgV/SgPyyjEXbMrQHb8Naea/XCoCpNHnUNCy68akw==", + "dependencies": { + "@griffel/react": "^1.0.0", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "react": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-icons-mdl2": { + "version": "1.3.41", + "license": "MIT", + "dependencies": { + "@fluentui/react-icon-provider": "^1.3.38", + "@fluentui/set-version": "^8.2.9", + "@fluentui/utilities": "^8.13.13", + "@microsoft/load-themed-styles": "^1.10.26", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "react": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-image": { + "version": "9.1.52", + "resolved": "https://registry.npmjs.org/@fluentui/react-image/-/react-image-9.1.52.tgz", + "integrity": "sha512-gKlf1LJXAgvyUrYlskxk58ZHMF05v0tk21G9HMWczEiivThgigsrwIRtGC2jJI66Op8c5VLdZ8/wrNK5s43k2Q==", + "dependencies": { + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-image/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-infobutton": { + "version": "9.0.0-beta.84", + "resolved": "https://registry.npmjs.org/@fluentui/react-infobutton/-/react-infobutton-9.0.0-beta.84.tgz", + "integrity": "sha512-CFOrgLp5cKMKNjtUss8hxcyYP0KLvKrp2l9BbDeK9nTL/leNjyYL0gt+5tWiVgfwZ4eQ4iqowwUTH1UWZYnUHQ==", + "dependencies": { + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-infobutton/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-infobutton/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-infobutton/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-infobutton/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-infolabel": { + "version": "9.0.12", + "resolved": "https://registry.npmjs.org/@fluentui/react-infolabel/-/react-infolabel-9.0.12.tgz", + "integrity": "sha512-BFZVK0DizCy4t/8WLDxaF5xwf6WGb1uR9mkUmfjhtHtu4mzI1fk1EVLC5r3uBOA/nGQM0P4hMNW8EH7XOiz+lQ==", + "dependencies": { + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "@types/react-dom": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0", + "react-dom": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-infolabel/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-infolabel/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-infolabel/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-infolabel/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-input": { + "version": "9.4.57", + "resolved": "https://registry.npmjs.org/@fluentui/react-input/-/react-input-9.4.57.tgz", + "integrity": "sha512-zWcUzHQitMR6etKn2b0BvqjSiZxyX3LQ5XEdG2VW2QyXyF/sa+NTEOxiyqSo9Gk4wS3TO0WQb/3cPyMiubSWYQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-input/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-jsx-runtime": { + "version": "9.0.24", + "resolved": "https://registry.npmjs.org/@fluentui/react-jsx-runtime/-/react-jsx-runtime-9.0.24.tgz", + "integrity": "sha512-aWnu04Cfz7RmRYuL/ra2V5vfH0KVjP6dBAy6I+MntxY4m9QwyJ3cS0Z/CzqmexW57w2VjR8+J5uNGATSlwcuuw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1", + "react-is": "^17.0.2" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-jsx-runtime/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-label": { + "version": "9.1.55", + "resolved": "https://registry.npmjs.org/@fluentui/react-label/-/react-label-9.1.55.tgz", + "integrity": "sha512-lgWsw0F0g8qa5lHITvWbJpEinvhr5iMlX8/O73ynn2N4tt1Ltqx9HPld/J5E40s3KUZQCgYgTwCu3bw3/AbT5w==", + "dependencies": { + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-label/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-link": { + "version": "9.2.4", + "resolved": "https://registry.npmjs.org/@fluentui/react-link/-/react-link-9.2.4.tgz", + "integrity": "sha512-zO/DONs1ay5B2VfYH6pfZVsjSanKmMI1S0HqSk7pdGtkp8XhwRFl+G3Xm+v9J4aKfvakJEMemTCRNcHiuCwwsA==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-link/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-message-bar": { + "version": "9.0.12", + "resolved": "https://registry.npmjs.org/@fluentui/react-message-bar/-/react-message-bar-9.0.12.tgz", + "integrity": "sha512-/ysREhZ0CckNukrRr5S6SNdXJBJWxNlJoYuzYLFxiRV9xj05+EXpuoKxsQwaG5LMkl5I+x+tf3WuPBKJs9FcXA==", + "dependencies": { + "@fluentui/react-button": "^9.3.61", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1", + "react-transition-group": "^4.4.1" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "@types/react-dom": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0", + "react-dom": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-message-bar/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-motion-preview": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@fluentui/react-motion-preview/-/react-motion-preview-0.5.7.tgz", + "integrity": "sha512-RODcicznqfrMzHTwrs62JCOi9S+vS/W1VOJ/KQFS7SLh7DgyZuNRz6mqZwbZMy3xHibli4qITMnLrwOzBg7Lhg==", + "dependencies": { + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-motion-preview/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-persona": { + "version": "9.2.64", + "resolved": "https://registry.npmjs.org/@fluentui/react-persona/-/react-persona-9.2.64.tgz", + "integrity": "sha512-6ENXr555XzNyP1SeYwAKIAAicLupw44Dxq8IZpR9A8Bk0VT9ShwVKu9d6pD7YLf3GmZDaxJd5JLAmRsBs1q/Gw==", + "dependencies": { + "@fluentui/react-avatar": "^9.6.5", + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-persona/node_modules/@fluentui/react-avatar": { + "version": "9.6.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-avatar/-/react-avatar-9.6.5.tgz", + "integrity": "sha512-1ncFDXrAhvFD/AB7hSbjvq3HCjEo5AvTVy+wKD1g/FFuFV60AcJiM8acXzTJMBPxQi7DTdcIG31Hm0I63AeFVg==", + "dependencies": { + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-tooltip": "^9.4.7", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-persona/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-persona/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-persona/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-persona/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-portal": { + "version": "9.4.7", + "resolved": "https://registry.npmjs.org/@fluentui/react-portal/-/react-portal-9.4.7.tgz", + "integrity": "sha512-4g0vvs+YKmBri24MBi+C3hkgKAEGhbNUi4+u1Oa0olrcGmbtugM0G910raDLJXLV2ssgSO8znzVRmA/4Lg7XYw==", + "dependencies": { + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1", + "use-disposable": "^1.0.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-portal-compat-context": { + "version": "9.0.5", + "license": "MIT", + "dependencies": { + "@swc/helpers": "^0.4.14" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-portal/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-positioning": { + "version": "9.12.0", + "resolved": "https://registry.npmjs.org/@fluentui/react-positioning/-/react-positioning-9.12.0.tgz", + "integrity": "sha512-Unf9oMqE9QCf/+RTCs5Xk7z8XpxupYtIXVplUWUM3qyeHmtlEy4BsBAUQE0bXl6B52sl92JvevgrYI0IMuoADg==", + "dependencies": { + "@floating-ui/devtools": "0.0.4", + "@floating-ui/dom": "^1.2.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-positioning/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-progress": { + "version": "9.1.57", + "resolved": "https://registry.npmjs.org/@fluentui/react-progress/-/react-progress-9.1.57.tgz", + "integrity": "sha512-QFBz9A9N4lyshev1b/r7OE5ea7/Q60Tav3zVGbfqVGmfA24qemmoDIYU1qWscuScRBmblR6//fvAroHhiK/FrQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-progress/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-provider": { + "version": "9.13.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-provider/-/react-provider-9.13.5.tgz", + "integrity": "sha512-oxpGS8r5YEKHZy2csH9/kCJBgBMVms+HC0hiIA+J3M2iCdN+y1SuP0Y2zAYg/X/jRb1mXJzXtoWchsYvxVLnOQ==", + "dependencies": { + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/core": "^1.14.1", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-provider/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-select": { + "version": "9.1.57", + "resolved": "https://registry.npmjs.org/@fluentui/react-select/-/react-select-9.1.57.tgz", + "integrity": "sha512-QGlK+QYDiAzA6f3imGQBQOq9MQVVa88XyaSKWG82mjZfFWbs6vxaIZMXuCOTAsjcXKB4XDYVYOpman3apdLHjQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-select/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-shared-contexts": { + "version": "9.13.2", + "resolved": "https://registry.npmjs.org/@fluentui/react-shared-contexts/-/react-shared-contexts-9.13.2.tgz", + "integrity": "sha512-78aEZdff7vaUOmeRyMDPc/Ml+kbwn02BiRLPQhqgYtCyjy0V3YBpmYfqxO8N5hUIZcFTedyOaHWpzVeEYxpNmA==", + "dependencies": { + "@fluentui/react-theme": "^9.1.16", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-shared-contexts/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-skeleton": { + "version": "9.0.45", + "resolved": "https://registry.npmjs.org/@fluentui/react-skeleton/-/react-skeleton-9.0.45.tgz", + "integrity": "sha512-toOWQNoqONupLImvbkE4vf+ECq1lAyCUBf4hI6AOtYppDaXOOOWWsgSImsj25yLtS4dPYkzyWoMMdmjSOwXu6g==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-skeleton/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-slider": { + "version": "9.1.62", + "resolved": "https://registry.npmjs.org/@fluentui/react-slider/-/react-slider-9.1.62.tgz", + "integrity": "sha512-GHY1J3qpoYY3c1rwQsBRTHISExO1vBSJCH4lDgCJI/E9KOa8saJYFvuv3aYmnOq8CGSb2UCSb0eha5G9UB/4yQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-slider/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-spinbutton": { + "version": "9.2.57", + "resolved": "https://registry.npmjs.org/@fluentui/react-spinbutton/-/react-spinbutton-9.2.57.tgz", + "integrity": "sha512-FoYe0iUcEYjlhJtqjciBdQ/4wuQ7iPwpqE/VuGknvWrydXawJ7qI3fx7yP/58R5utbGAz4Rdkkjzc2xhtW/EVg==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-spinbutton/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-spinner": { + "version": "9.3.35", + "resolved": "https://registry.npmjs.org/@fluentui/react-spinner/-/react-spinner-9.3.35.tgz", + "integrity": "sha512-0JXgkVrB4+atN1P44XtuNup6xthg4gyJYPXGS+3x/EB2B0pi55c8IWE/mVjG9F/TBt2PFRb9nCzdrfvkhV/CsA==", + "dependencies": { + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-spinner/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-switch": { + "version": "9.1.62", + "resolved": "https://registry.npmjs.org/@fluentui/react-switch/-/react-switch-9.1.62.tgz", + "integrity": "sha512-L+MzTP3B5eWxw7az62Sf7FGzPhPQoD0CtyR78IHTrgPXQswnoSq9oJRkpVr5LBfND2SE4Y7UvPuUulBJXTlW5g==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-switch/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-table": { + "version": "9.11.1", + "resolved": "https://registry.npmjs.org/@fluentui/react-table/-/react-table-9.11.1.tgz", + "integrity": "sha512-zdmE2U3x/zy8QEAwtAIvLfPtTAg0mCBp7wWBQxuNq9UsPvA+GyMjvrJRiidB/q47ZQn/2Ji4fP1iVXW1B+KGWw==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-avatar": "^9.6.5", + "@fluentui/react-checkbox": "^9.2.5", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-radio": "^9.2.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-table/node_modules/@fluentui/react-avatar": { + "version": "9.6.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-avatar/-/react-avatar-9.6.5.tgz", + "integrity": "sha512-1ncFDXrAhvFD/AB7hSbjvq3HCjEo5AvTVy+wKD1g/FFuFV60AcJiM8acXzTJMBPxQi7DTdcIG31Hm0I63AeFVg==", + "dependencies": { + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-tooltip": "^9.4.7", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-table/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-table/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-table/node_modules/@fluentui/react-radio": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@fluentui/react-radio/-/react-radio-9.2.0.tgz", + "integrity": "sha512-TowAnE7aMDq3fxCiouetjs8CN4KogfaarXYep3pXQMW7xRKBfXdOOFElYtQx/WzmikMJpDhhkZcyrqEpM5KGDQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-table/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-table/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-tabster": { + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@fluentui/react-tabster/-/react-tabster-9.17.0.tgz", + "integrity": "sha512-+tFYkjH5QiF2YDCmJAz1FVzzs/09hiRT0xPe1yLlAkMYJV/s+iIungwKgSUF1RziP9iQh9NZZ2A5GMrzRw8SGg==", + "dependencies": { + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1", + "keyborg": "^2.3.0", + "tabster": "^5.0.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-tabster/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-tags": { + "version": "9.0.18", + "resolved": "https://registry.npmjs.org/@fluentui/react-tags/-/react-tags-9.0.18.tgz", + "integrity": "sha512-L46Hx8QM9H37VD5JmzGPBB8RxWfV1uVn+IapFEBVOEUd/Khtb0d5lyBMEyDZmLm3Yph14tOIJv7FeW4lv0fr7Q==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-avatar": "^9.6.5", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-tags/node_modules/@fluentui/react-avatar": { + "version": "9.6.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-avatar/-/react-avatar-9.6.5.tgz", + "integrity": "sha512-1ncFDXrAhvFD/AB7hSbjvq3HCjEo5AvTVy+wKD1g/FFuFV60AcJiM8acXzTJMBPxQi7DTdcIG31Hm0I63AeFVg==", + "dependencies": { + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-tooltip": "^9.4.7", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-tags/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-tags/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-tags/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-tags/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-text": { + "version": "9.4.4", + "resolved": "https://registry.npmjs.org/@fluentui/react-text/-/react-text-9.4.4.tgz", + "integrity": "sha512-FH/zua+u+T8QK1cDeg4w1Ahdfj+2A3Wd61g9lxU26ZfUzhWxV7F9enwGgiqTF0Swv7WsD1ahwI+FIZA5+WgEsw==", + "dependencies": { + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-text/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-textarea": { + "version": "9.3.57", + "resolved": "https://registry.npmjs.org/@fluentui/react-textarea/-/react-textarea-9.3.57.tgz", + "integrity": "sha512-E26jQ1s7/QLkJjTw72BQHfKtXP8PyNsfPSfWbwhmm5doe0HLa1V5+Gq1ZkdQiV78Q5Rl0bGKXrdR2Ccy/fBL/g==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" } }, - "node_modules/@eslint/js": { - "version": "8.40.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node_modules/@fluentui/react-textarea/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" } }, - "node_modules/@exodus/schemasafe": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz", - "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==", - "dev": true + "node_modules/@fluentui/react-theme": { + "version": "9.1.16", + "resolved": "https://registry.npmjs.org/@fluentui/react-theme/-/react-theme-9.1.16.tgz", + "integrity": "sha512-QK2dGE5aQXN1UGdiEmGKpYGP3tHXIchLvFf8DEEOWnF4XBc9SiEPNFYkvLMJjHxZmDz4D670rsOPe0r5jFDEKQ==", + "dependencies": { + "@fluentui/tokens": "1.0.0-alpha.13", + "@swc/helpers": "^0.5.1" + } }, - "node_modules/@fluentui/date-time-utilities": { - "version": "8.5.10", - "license": "MIT", + "node_modules/@fluentui/react-theme/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", "dependencies": { - "@fluentui/set-version": "^8.2.9", - "tslib": "^2.1.0" + "tslib": "^2.4.0" } }, - "node_modules/@fluentui/dom-utilities": { - "version": "2.2.9", - "license": "MIT", + "node_modules/@fluentui/react-toast": { + "version": "9.3.23", + "resolved": "https://registry.npmjs.org/@fluentui/react-toast/-/react-toast-9.3.23.tgz", + "integrity": "sha512-PJClzPYWmq303SoaNuPwgF0Drbn0pGrzqA6x8J3NgCx7F4c8n5SB34jxKtKlFAB5EiAk1y+v1om7Z6/v+3Zehg==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1", + "react-transition-group": "^4.4.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-toast/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", "dependencies": { - "@fluentui/set-version": "^8.2.9", - "tslib": "^2.1.0" + "tslib": "^2.4.0" } }, - "node_modules/@fluentui/font-icons-mdl2": { - "version": "8.5.17", - "license": "MIT", + "node_modules/@fluentui/react-toolbar": { + "version": "9.1.62", + "resolved": "https://registry.npmjs.org/@fluentui/react-toolbar/-/react-toolbar-9.1.62.tgz", + "integrity": "sha512-97mlwQsAXn5jYhvyUUU7FrMIwddN5CTQEpoTDOaibcZ1hvZTNyVDyLpvWy7CLjX8CPvde/jgjf4z+I74zYP0OA==", "dependencies": { - "@fluentui/set-version": "^8.2.9", - "@fluentui/style-utilities": "^8.9.10", - "@fluentui/utilities": "^8.13.13", - "tslib": "^2.1.0" + "@fluentui/react-button": "^9.3.61", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-divider": "^9.2.55", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-radio": "^9.2.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" } }, - "node_modules/@fluentui/foundation-legacy": { - "version": "8.2.37", - "license": "MIT", + "node_modules/@fluentui/react-toolbar/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", "dependencies": { - "@fluentui/merge-styles": "^8.5.10", - "@fluentui/set-version": "^8.2.9", - "@fluentui/style-utilities": "^8.9.10", - "@fluentui/utilities": "^8.13.13", - "tslib": "^2.1.0" + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" }, "peerDependencies": { - "@types/react": ">=16.8.0 <19.0.0", - "react": ">=16.8.0 <19.0.0" + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-toolbar/node_modules/@fluentui/react-radio": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@fluentui/react-radio/-/react-radio-9.2.0.tgz", + "integrity": "sha512-TowAnE7aMDq3fxCiouetjs8CN4KogfaarXYep3pXQMW7xRKBfXdOOFElYtQx/WzmikMJpDhhkZcyrqEpM5KGDQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" } }, - "node_modules/@fluentui/keyboard-key": { - "version": "0.4.9", - "license": "MIT", + "node_modules/@fluentui/react-toolbar/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", "dependencies": { - "tslib": "^2.1.0" + "tslib": "^2.4.0" } }, - "node_modules/@fluentui/merge-styles": { - "version": "8.5.10", - "license": "MIT", + "node_modules/@fluentui/react-toolbar/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, "dependencies": { - "@fluentui/set-version": "^8.2.9", - "tslib": "^2.1.0" + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" } }, - "node_modules/@fluentui/react": { - "version": "8.109.3", - "license": "MIT", + "node_modules/@fluentui/react-tooltip": { + "version": "9.4.7", + "resolved": "https://registry.npmjs.org/@fluentui/react-tooltip/-/react-tooltip-9.4.7.tgz", + "integrity": "sha512-lpDID7AnlkDv7ujqQrRfMhPv5LqGVyVuHwAPyEfQMhcHF+9J50uwuVFsmW40398DhU85+jB9e/TkSJMOKq+BNw==", "dependencies": { - "@fluentui/date-time-utilities": "^8.5.10", - "@fluentui/font-icons-mdl2": "^8.5.17", - "@fluentui/foundation-legacy": "^8.2.37", - "@fluentui/merge-styles": "^8.5.10", - "@fluentui/react-focus": "^8.8.23", - "@fluentui/react-hooks": "^8.6.24", - "@fluentui/react-portal-compat-context": "^9.0.5", - "@fluentui/react-window-provider": "^2.2.13", - "@fluentui/set-version": "^8.2.9", - "@fluentui/style-utilities": "^8.9.10", - "@fluentui/theme": "^2.6.29", - "@fluentui/utilities": "^8.13.13", - "@microsoft/load-themed-styles": "^1.10.26", - "tslib": "^2.1.0" + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" }, "peerDependencies": { - "@types/react": ">=16.8.0 <19.0.0", - "@types/react-dom": ">=16.8.0 <19.0.0", - "react": ">=16.8.0 <19.0.0", - "react-dom": ">=16.8.0 <19.0.0" + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" } }, - "node_modules/@fluentui/react-focus": { - "version": "8.8.23", - "license": "MIT", + "node_modules/@fluentui/react-tooltip/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", "dependencies": { - "@fluentui/keyboard-key": "^0.4.9", - "@fluentui/merge-styles": "^8.5.10", - "@fluentui/set-version": "^8.2.9", - "@fluentui/style-utilities": "^8.9.10", - "@fluentui/utilities": "^8.13.13", - "tslib": "^2.1.0" + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-tree": { + "version": "9.4.21", + "resolved": "https://registry.npmjs.org/@fluentui/react-tree/-/react-tree-9.4.21.tgz", + "integrity": "sha512-6o9aVfdkpr5nV7DdqJ1etfcSX6pUHnQDhI7gba4c4cvHOeD3AkMb4fv06w3HUaNPi4G+yOteX+RWiAZAe6R0eQ==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-avatar": "^9.6.5", + "@fluentui/react-button": "^9.3.61", + "@fluentui/react-checkbox": "^9.2.5", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-radio": "^9.2.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" }, "peerDependencies": { - "@types/react": ">=16.8.0 <19.0.0", - "react": ">=16.8.0 <19.0.0" + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-tree/node_modules/@fluentui/react-avatar": { + "version": "9.6.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-avatar/-/react-avatar-9.6.5.tgz", + "integrity": "sha512-1ncFDXrAhvFD/AB7hSbjvq3HCjEo5AvTVy+wKD1g/FFuFV60AcJiM8acXzTJMBPxQi7DTdcIG31Hm0I63AeFVg==", + "dependencies": { + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-tooltip": "^9.4.7", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" } }, - "node_modules/@fluentui/react-hooks": { - "version": "8.6.24", - "license": "MIT", + "node_modules/@fluentui/react-tree/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", "dependencies": { - "@fluentui/react-window-provider": "^2.2.13", - "@fluentui/set-version": "^8.2.9", - "@fluentui/utilities": "^8.13.13", - "tslib": "^2.1.0" + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" }, "peerDependencies": { - "@types/react": ">=16.8.0 <19.0.0", - "react": ">=16.8.0 <19.0.0" + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-tree/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "node_modules/@fluentui/react-tree/node_modules/@fluentui/react-radio": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@fluentui/react-radio/-/react-radio-9.2.0.tgz", + "integrity": "sha512-TowAnE7aMDq3fxCiouetjs8CN4KogfaarXYep3pXQMW7xRKBfXdOOFElYtQx/WzmikMJpDhhkZcyrqEpM5KGDQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" } }, - "node_modules/@fluentui/react-icon-provider": { - "version": "1.3.38", - "license": "MIT", + "node_modules/@fluentui/react-tree/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", "dependencies": { - "@fluentui/set-version": "^8.2.9", - "@fluentui/style-utilities": "^8.9.10", - "tslib": "^2.1.0" - }, - "peerDependencies": { - "@types/react": ">=16.8.0 <19.0.0", - "@types/react-dom": ">=16.8.0 <19.0.0", - "react": ">=16.8.0 <19.0.0", - "react-dom": ">=16.8.0 <19.0.0" + "tslib": "^2.4.0" } }, - "node_modules/@fluentui/react-icons-mdl2": { - "version": "1.3.41", - "license": "MIT", + "node_modules/@fluentui/react-tree/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, "dependencies": { - "@fluentui/react-icon-provider": "^1.3.38", - "@fluentui/set-version": "^8.2.9", - "@fluentui/utilities": "^8.13.13", - "@microsoft/load-themed-styles": "^1.10.26", - "tslib": "^2.1.0" + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@fluentui/react-utilities": { + "version": "9.15.6", + "resolved": "https://registry.npmjs.org/@fluentui/react-utilities/-/react-utilities-9.15.6.tgz", + "integrity": "sha512-Hli0iiA/gaWwADMe7NRD6TSy7KvL3bgek8j1sYkE9BiUI89GqyfJwU2Tm0it04iiCYvQ5WWrXPcRYyZ3/MHtpA==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-shared-contexts": "^9.13.2", + "@swc/helpers": "^0.5.1" }, "peerDependencies": { - "react": ">=16.8.0 <19.0.0" + "@types/react": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0" } }, - "node_modules/@fluentui/react-portal-compat-context": { - "version": "9.0.5", - "license": "MIT", + "node_modules/@fluentui/react-utilities/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", "dependencies": { - "@swc/helpers": "^0.4.14" + "tslib": "^2.4.0" + } + }, + "node_modules/@fluentui/react-virtualizer": { + "version": "9.0.0-alpha.63", + "resolved": "https://registry.npmjs.org/@fluentui/react-virtualizer/-/react-virtualizer-9.0.0-alpha.63.tgz", + "integrity": "sha512-Uddb1bIayzXwSEJg90ybNUa1NE84aOCFRKAf1E2by7mSQupyOk3NjrVSpm3O78vUdPyjJN+COZlTsEFE3EBbIg==", + "dependencies": { + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" }, "peerDependencies": { - "@types/react": ">=16.8.0 <19.0.0", - "react": ">=16.8.0 <19.0.0" + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0" + } + }, + "node_modules/@fluentui/react-virtualizer/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" } }, "node_modules/@fluentui/react-window-provider": { @@ -1540,6 +3520,22 @@ "react": ">=16.8.0 <19.0.0" } }, + "node_modules/@fluentui/tokens": { + "version": "1.0.0-alpha.13", + "resolved": "https://registry.npmjs.org/@fluentui/tokens/-/tokens-1.0.0-alpha.13.tgz", + "integrity": "sha512-IzYysTTBkAH7tQZxYKpzhxYnTJkvwXhjhTOpmERgnqTFifHTP8/vaQjJAAm7dI/9zlDx1oN+y/I+KzL9bDLHZQ==", + "dependencies": { + "@swc/helpers": "^0.5.1" + } + }, + "node_modules/@fluentui/tokens/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@fluentui/utilities": { "version": "8.13.13", "license": "MIT", @@ -1554,6 +3550,39 @@ "react": ">=16.8.0 <19.0.0" } }, + "node_modules/@griffel/core": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@griffel/core/-/core-1.15.1.tgz", + "integrity": "sha512-09w5axbOJuBzjTVFN5EycbAOIpCoxZeoJMZgT2fTrIl2GIxnTWpK3F2d63UzGBmQf1O+EgR6nK4FgMXFt1UFig==", + "dependencies": { + "@emotion/hash": "^0.9.0", + "@griffel/style-types": "^1.0.2", + "csstype": "^3.1.2", + "rtl-css-js": "^1.16.1", + "stylis": "^4.2.0", + "tslib": "^2.1.0" + } + }, + "node_modules/@griffel/react": { + "version": "1.5.19", + "resolved": "https://registry.npmjs.org/@griffel/react/-/react-1.5.19.tgz", + "integrity": "sha512-qefnZseAwcwCpFVzN33mG20t/hofpWci7VNtOwzSco/IxFLuJaB2ffki+uAdUgWCpV2A67bWQjXNlymBoMUysg==", + "dependencies": { + "@griffel/core": "^1.15.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "react": ">=16.8.0 <19.0.0" + } + }, + "node_modules/@griffel/style-types": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@griffel/style-types/-/style-types-1.0.2.tgz", + "integrity": "sha512-ka/Tpl1WU8js88LObwB/4EvpgXzx/EEJfbHhAr4ZNt29hrQKgL93X1zSY6M/FRhMhWrGIawauWkZP6/y6w/WiQ==", + "dependencies": { + "csstype": "^3.1.2" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "dev": true, @@ -6407,16 +8436,15 @@ "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "version": "1.15.4", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", + "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -8885,6 +10913,11 @@ "node": ">=4.0" } }, + "node_modules/keyborg": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/keyborg/-/keyborg-2.4.0.tgz", + "integrity": "sha512-EixFnyCc6m27NkFwyT5GNNQl+9wiTMePtAvVuKXZpc0CZLLJfJFB3zXGFBGnwtvEXymbJoPWoErzwTpiEQ+Msg==" + }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -11362,6 +13395,14 @@ "fsevents": "~2.3.2" } }, + "node_modules/rtl-css-js": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/rtl-css-js/-/rtl-css-js-1.16.1.tgz", + "integrity": "sha512-lRQgou1mu19e+Ya0LsTvKrVJ5TYUbqCVPAiImX3UfLTenarvPUl1QFdvu5Z3PYmHT9RCcwIfbjRQBntExyj3Zg==", + "dependencies": { + "@babel/runtime": "^7.1.2" + } + }, "node_modules/run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", @@ -12144,6 +14185,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/stylis": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.1.tgz", + "integrity": "sha512-EQepAV+wMsIaGVGX1RECzgrcqRRU/0sYOHkeLsZ3fzHaHXZy4DaOOX0vOlGQdlsjkh3mFHAIlVimpwAs4dslyQ==" + }, "node_modules/superagent": { "version": "8.0.9", "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.0.9.tgz", @@ -12441,6 +14487,15 @@ "node": ">=0.10" } }, + "node_modules/tabster": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/tabster/-/tabster-5.2.0.tgz", + "integrity": "sha512-cSi3a0gGeM9Co/gTKHlhTFfiitwVjcA+kP9lJux0U7QaRrZox1yYrfbwZhJXM7N0fux7BgvCYaOxME5k0EQ0tA==", + "dependencies": { + "keyborg": "^2.2.0", + "tslib": "^2.3.1" + } + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -13051,6 +15106,17 @@ "punycode": "^2.1.0" } }, + "node_modules/use-disposable": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/use-disposable/-/use-disposable-1.0.2.tgz", + "integrity": "sha512-UMaXVlV77dWOu4GqAFNjRzHzowYKUKbJBQfCexvahrYeIz4OkUYUjna4Tjjdf92NH8Nm8J7wEfFRgTIwYjO5jg==", + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "@types/react-dom": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0", + "react-dom": ">=16.8.0 <19.0.0" + } + }, "node_modules/use-memo-one": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/use-memo-one/-/use-memo-one-1.1.3.tgz", @@ -13641,10 +15707,12 @@ }, "packages/origine2": { "name": "webgal-origine-2", - "version": "4.4.8", + "version": "4.4.9", "license": "MPL-2.0", "dependencies": { "@fluentui/react": "^8.77.3", + "@fluentui/react-components": "^9.44.1", + "@fluentui/react-icons": "^2.0.224", "@fluentui/react-icons-mdl2": "^1.3.41", "@icon-park/react": "^1.4.2", "@monaco-editor/react": "^4.4.5", @@ -13690,9 +15758,302 @@ "vite": "^4.4.9" } }, + "packages/origine2/node_modules/@fluentui/react-accordion": { + "version": "9.3.34", + "resolved": "https://registry.npmjs.org/@fluentui/react-accordion/-/react-accordion-9.3.34.tgz", + "integrity": "sha512-kg6qUmDKFi2hY/HAcRIPpeXafOySHJcU5TguOoX1NCDfd0k9hj6facCD+b3uPt6HXBEALETAg0udcu+qNuSyPQ==", + "dependencies": { + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-avatar": { + "version": "9.6.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-avatar/-/react-avatar-9.6.5.tgz", + "integrity": "sha512-1ncFDXrAhvFD/AB7hSbjvq3HCjEo5AvTVy+wKD1g/FFuFV60AcJiM8acXzTJMBPxQi7DTdcIG31Hm0I63AeFVg==", + "dependencies": { + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-tooltip": "^9.4.7", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-combobox": { + "version": "9.5.39", + "resolved": "https://registry.npmjs.org/@fluentui/react-combobox/-/react-combobox-9.5.39.tgz", + "integrity": "sha512-opNvz8mXC23oloBoaw6uYlm/qWyV1uvfe1l8wtKS9DDXK/2Yp1tC2HWAng+4PX+W4vT8SzRlkQIsqqtFd6hp0w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-components": { + "version": "9.44.2", + "resolved": "https://registry.npmjs.org/@fluentui/react-components/-/react-components-9.44.2.tgz", + "integrity": "sha512-CqcVHn1KZsQjw28QszfcTWiuLgE0mj8RZADTQrsah7UMUVMVgzlyDnrvMO2rzuqChAzNUqTBC8xIiBBrwDAKiw==", + "dependencies": { + "@fluentui/react-accordion": "^9.3.34", + "@fluentui/react-alert": "9.0.0-beta.100", + "@fluentui/react-avatar": "^9.6.5", + "@fluentui/react-badge": "^9.2.19", + "@fluentui/react-breadcrumb": "^9.0.7", + "@fluentui/react-button": "^9.3.61", + "@fluentui/react-card": "^9.0.60", + "@fluentui/react-checkbox": "^9.2.5", + "@fluentui/react-combobox": "^9.5.39", + "@fluentui/react-dialog": "^9.9.3", + "@fluentui/react-divider": "^9.2.55", + "@fluentui/react-drawer": "^9.0.7", + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-image": "^9.1.52", + "@fluentui/react-infobutton": "9.0.0-beta.84", + "@fluentui/react-infolabel": "^9.0.12", + "@fluentui/react-input": "^9.4.57", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-link": "^9.2.4", + "@fluentui/react-menu": "^9.12.41", + "@fluentui/react-message-bar": "^9.0.12", + "@fluentui/react-overflow": "^9.1.5", + "@fluentui/react-persona": "^9.2.64", + "@fluentui/react-popover": "^9.8.29", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-progress": "^9.1.57", + "@fluentui/react-provider": "^9.13.5", + "@fluentui/react-radio": "^9.2.0", + "@fluentui/react-select": "^9.1.57", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-skeleton": "^9.0.45", + "@fluentui/react-slider": "^9.1.62", + "@fluentui/react-spinbutton": "^9.2.57", + "@fluentui/react-spinner": "^9.3.35", + "@fluentui/react-switch": "^9.1.62", + "@fluentui/react-table": "^9.11.1", + "@fluentui/react-tabs": "^9.4.3", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-tags": "^9.0.18", + "@fluentui/react-text": "^9.4.4", + "@fluentui/react-textarea": "^9.3.57", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-toast": "^9.3.23", + "@fluentui/react-toolbar": "^9.1.62", + "@fluentui/react-tooltip": "^9.4.7", + "@fluentui/react-tree": "^9.4.21", + "@fluentui/react-utilities": "^9.15.6", + "@fluentui/react-virtualizer": "9.0.0-alpha.63", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-context-selector": { + "version": "9.1.46", + "resolved": "https://registry.npmjs.org/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz", + "integrity": "sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw==", + "dependencies": { + "@fluentui/react-utilities": "^9.15.6", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-menu": { + "version": "9.12.41", + "resolved": "https://registry.npmjs.org/@fluentui/react-menu/-/react-menu-9.12.41.tgz", + "integrity": "sha512-XB4ZWOC1l7pZVgn2xVYohf6Utiz6NCENKfAfvEW7zrVU1kSGgQwkEu/4540fT8q9WMeOGBzi2b7i2QjFf7j0vw==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-icons": "^2.0.224", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-overflow": { + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/@fluentui/react-overflow/-/react-overflow-9.1.5.tgz", + "integrity": "sha512-8qdOL8MSnT0UeXRY9gVnzKgMx/LqmStTqGsY+luKDgmXxkzlc2hqx9SLnByry1ljDPVpI1LtOku9U6YZhGeg4g==", + "dependencies": { + "@fluentui/priority-overflow": "^9.1.11", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-popover": { + "version": "9.8.29", + "resolved": "https://registry.npmjs.org/@fluentui/react-popover/-/react-popover-9.8.29.tgz", + "integrity": "sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w==", + "dependencies": { + "@fluentui/keyboard-keys": "^9.0.7", + "@fluentui/react-aria": "^9.6.2", + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-portal": "^9.4.7", + "@fluentui/react-positioning": "^9.12.0", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-radio": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@fluentui/react-radio/-/react-radio-9.2.0.tgz", + "integrity": "sha512-TowAnE7aMDq3fxCiouetjs8CN4KogfaarXYep3pXQMW7xRKBfXdOOFElYtQx/WzmikMJpDhhkZcyrqEpM5KGDQ==", + "dependencies": { + "@fluentui/react-field": "^9.1.47", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-label": "^9.1.55", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@fluentui/react-tabs": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@fluentui/react-tabs/-/react-tabs-9.4.3.tgz", + "integrity": "sha512-H/bM6NfA3y81NdOMmCWMhpv4SDAWkxMq8ywx8Pr98pKvkearlIo9EuxFK84YEK0haibgn6OpWSPciVaBLx8dPw==", + "dependencies": { + "@fluentui/react-context-selector": "^9.1.46", + "@fluentui/react-jsx-runtime": "^9.0.24", + "@fluentui/react-shared-contexts": "^9.13.2", + "@fluentui/react-tabster": "^9.17.0", + "@fluentui/react-theme": "^9.1.16", + "@fluentui/react-utilities": "^9.15.6", + "@griffel/react": "^1.5.14", + "@swc/helpers": "^0.5.1" + }, + "peerDependencies": { + "@types/react": ">=16.14.0 <19.0.0", + "@types/react-dom": ">=16.14.0 <19.0.0", + "react": ">=16.14.0 <19.0.0", + "react-dom": ">=16.14.0 <19.0.0", + "scheduler": "^0.19.0 || ^0.20.0" + } + }, + "packages/origine2/node_modules/@swc/helpers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "packages/origine2/node_modules/scheduler": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, "packages/terre2": { "name": "webgal-terre-2", - "version": "4.4.8", + "version": "4.4.9", "license": "MPL-2.0", "dependencies": { "@nestjs/common": "^9.0.5", From 2144e5d092a668ecfbd075cd5426ff0eae549cd4 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Wed, 14 Feb 2024 14:47:22 +0800 Subject: [PATCH 002/125] update debug protocol --- packages/origine2/src/types/debugProtocol.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/origine2/src/types/debugProtocol.ts b/packages/origine2/src/types/debugProtocol.ts index 02d76a004..33b89a68a 100644 --- a/packages/origine2/src/types/debugProtocol.ts +++ b/packages/origine2/src/types/debugProtocol.ts @@ -9,6 +9,8 @@ export enum DebugCommand { SYNCFE, // 执行指令 EXE_COMMAND, + // 重新拉取模板样式文件 + REFETCH_TEMPLATE_FILES, } export interface IDebugMessage { From 3313e5be875be786851e50646eb8e01c8e07026a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=BF=8A?= Date: Sun, 18 Feb 2024 10:41:27 +0800 Subject: [PATCH 003/125] add template dirname --- .../origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts index 33a02377c..07e6618f8 100644 --- a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts +++ b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts @@ -7,6 +7,7 @@ dirnameToDisplayNameMap.set('animation', () => t(tPrefix + 'animation')); dirnameToDisplayNameMap.set('background', () => t(tPrefix + 'background')); dirnameToDisplayNameMap.set('bgm', () => t(tPrefix + 'bgm')); dirnameToDisplayNameMap.set('figure', () => t(tPrefix + 'figure')); +dirnameToDisplayNameMap.set('template', () => t(tPrefix + 'template')); dirnameToDisplayNameMap.set('scene', () => t(tPrefix + 'scene')); dirnameToDisplayNameMap.set('tex', () => t(tPrefix + 'tex')); dirnameToDisplayNameMap.set('video', () => t(tPrefix + 'video')); From 16ff201bd59cd14435455f30a26b8838426db5b6 Mon Sep 17 00:00:00 2001 From: loliko114514 <2359983693@qq.com> Date: Sun, 18 Feb 2024 10:50:54 +0800 Subject: [PATCH 004/125] add template extname --- .../origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts index 07e6618f8..c8189efc6 100644 --- a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts +++ b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts @@ -19,6 +19,7 @@ dirNameToExtNameMap.set('animation', ['.json']); dirNameToExtNameMap.set('background', ['.jpg', '.png', '.webp']); dirNameToExtNameMap.set('bgm', ['.mp3', '.ogg', '.wav']); dirNameToExtNameMap.set('figure', ['.png', '.webp', '.json']); +dirNameToExtNameMap.set('template', ['.scss']); dirNameToExtNameMap.set('scene', ['.txt']); dirNameToExtNameMap.set('tex', ['.png', '.webp']); dirNameToExtNameMap.set('video', ['.mp4']); From 3cc12d0d1f518500701b5e86c489e3c45fc4b6a8 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Sun, 18 Feb 2024 23:08:11 +0800 Subject: [PATCH 005/125] feat: preview template api --- packages/dev-server/index.js | 7 + packages/origine2/vite.config.ts | 5 + .../terre2/assets/editing-template/.gitkeep | 0 .../{index-e4a5e140.js => index-14aa7559.js} | 470 +++++++++--------- .../WebGAL_Template/assets/index-818b8d34.css | 1 + .../WebGAL_Template/assets/index-89f179fe.css | 1 - ...r-e4655b9f.js => initRegister-2b32cd56.js} | 2 +- .../templates/WebGAL_Template/index.html | 4 +- .../default/Stage/TextBox/textbox.scss | 63 +++ .../templates/default/UI/Title/title.scss | 58 +++ .../public/templates/default/template.json | 4 + .../template-preview.controller.ts | 44 ++ .../template-preview.module.ts | 11 + .../template-preview.service.ts | 29 ++ packages/terre2/src/app.module.ts | 9 +- 15 files changed, 465 insertions(+), 243 deletions(-) create mode 100644 packages/terre2/assets/editing-template/.gitkeep rename packages/terre2/assets/templates/WebGAL_Template/assets/{index-e4a5e140.js => index-14aa7559.js} (52%) create mode 100644 packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css delete mode 100644 packages/terre2/assets/templates/WebGAL_Template/assets/index-89f179fe.css rename packages/terre2/assets/templates/WebGAL_Template/assets/{initRegister-e4655b9f.js => initRegister-2b32cd56.js} (97%) create mode 100644 packages/terre2/public/templates/default/Stage/TextBox/textbox.scss create mode 100644 packages/terre2/public/templates/default/UI/Title/title.scss create mode 100644 packages/terre2/public/templates/default/template.json create mode 100644 packages/terre2/src/Modules/template-preview/template-preview.controller.ts create mode 100644 packages/terre2/src/Modules/template-preview/template-preview.module.ts create mode 100644 packages/terre2/src/Modules/template-preview/template-preview.service.ts diff --git a/packages/dev-server/index.js b/packages/dev-server/index.js index 200248dee..60dabbae4 100644 --- a/packages/dev-server/index.js +++ b/packages/dev-server/index.js @@ -32,6 +32,13 @@ app.use( }) ); +app.use( + createProxyMiddleware("/template-preview", { + target: `http://localhost:${WEBGAL_PORT + 1}`, // http代理跨域目标接口 + changeOrigin: true, + }) +); + app.use( createProxyMiddleware("/games", { target: `http://localhost:${WEBGAL_PORT + 1}`, // http代理跨域目标接口 diff --git a/packages/origine2/vite.config.ts b/packages/origine2/vite.config.ts index 82a013c55..f39814ac9 100644 --- a/packages/origine2/vite.config.ts +++ b/packages/origine2/vite.config.ts @@ -30,6 +30,11 @@ export default defineConfig({ secure: true, // 如果是https接口,需要配置这个参数 changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 }, + '/template-preview': { + target: `http://localhost:${WEBGAL_PORT + 1}`, // 接口的域名 + secure: true, // 如果是https接口,需要配置这个参数 + changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 + }, }, }, }); diff --git a/packages/terre2/assets/editing-template/.gitkeep b/packages/terre2/assets/editing-template/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js b/packages/terre2/assets/templates/WebGAL_Template/assets/index-14aa7559.js similarity index 52% rename from packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/index-14aa7559.js index 410490a89..a98e7d985 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-14aa7559.js @@ -1,54 +1,54 @@ -var UN=Object.defineProperty;var GN=(e,t,r)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var le=(e,t,r)=>(GN(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Wr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zN(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var yC={exports:{}},yl={};/* +var $L=Object.defineProperty;var UL=(e,t,r)=>t in e?$L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var se=(e,t,r)=>(UL(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var oO={exports:{}},Dl={};/* object-assign (c) Sindre Sorhus @license MIT -*/var Ab=Object.getOwnPropertySymbols,HN=Object.prototype.hasOwnProperty,VN=Object.prototype.propertyIsEnumerable;function WN(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qN(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Qy=qN()?Object.assign:function(e,t){for(var r,n=WN(e),i,o=1;o"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,p=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ye=L[ae];if(ye!==void 0&&0k(we,ee))Ue!==void 0&&0>k(Ue,we)?(L[ae]=Ue,L[Be]=ee,ae=Be):(L[ae]=we,L[be]=ee,ae=be);else if(Ue!==void 0&&0>k(Ue,ee))L[ae]=Ue,L[Be]=ee,ae=Be;else break e}}return V}return null}function k(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],F=1,D=null,H=3,re=!1,z=!1,q=!1;function ue(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function De(L){if(q=!1,ue(L),!z)if(w(A)!==null)z=!0,t(ge);else{var V=w(P);V!==null&&r(De,V.startTime-L)}}function ge(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(ue(V),D=w(A);D!==null&&(!(D.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=D.callback;if(typeof ae=="function"){D.callback=null,H=D.priorityLevel;var ye=ae(D.expirationTime<=V);V=e.unstable_now(),typeof ye=="function"?D.callback=ye:D===w(A)&&T(A),ue(V)}else T(A);D=w(A)}if(D!==null)var be=!0;else{var we=w(P);we!==null&&r(De,we.startTime-V),be=!1}return be}finally{D=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(ge))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r(De,ee-ae))):(L.sortIndex=ye,b(A,L),z||re||(z=!0,t(ge))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(DC);FC.exports=DC;var iL=FC.exports;/** @license React v17.0.2 + */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,v=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ge=L[ae];if(ge!==void 0&&0R(be,ee))He!==void 0&&0>R(He,be)?(L[ae]=He,L[Ue]=ee,ae=Ue):(L[ae]=be,L[xe]=ee,ae=xe);else if(He!==void 0&&0>R(He,ee))L[ae]=He,L[Ue]=ee,ae=Ue;else break e}}return V}return null}function R(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],D=1,F=null,H=3,re=!1,z=!1,q=!1;function le(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function $e(L){if(q=!1,le(L),!z)if(w(A)!==null)z=!0,t(me);else{var V=w(P);V!==null&&r($e,V.startTime-L)}}function me(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(le(V),F=w(A);F!==null&&(!(F.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=F.callback;if(typeof ae=="function"){F.callback=null,H=F.priorityLevel;var ge=ae(F.expirationTime<=V);V=e.unstable_now(),typeof ge=="function"?F.callback=ge:F===w(A)&&T(A),le(V)}else T(A);F=w(A)}if(F!==null)var xe=!0;else{var be=w(P);be!==null&&r($e,be.startTime-V),xe=!1}return xe}finally{F=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(me))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r($e,ee-ae))):(L.sortIndex=ge,b(A,L),z||re||(z=!0,t(me))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(EO);wO.exports=EO;var nM=wO.exports;/** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var lh=$,ut=Qy,Bt=iL;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oL=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rb=Object.prototype.hasOwnProperty,Nb={},Lb={};function aL(e){return Rb.call(Lb,e)?!0:Rb.call(Nb,e)?!1:oL.test(e)?Lb[e]=!0:(Nb[e]=!0,!1)}function sL(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uL(e,t,r,n){if(t===null||typeof t>"u"||sL(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yt[e]=new pr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yt[t]=new pr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yt[e]=new pr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yt[e]=new pr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yt[e]=new pr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yt[e]=new pr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yt[e]=new pr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yt[e]=new pr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yt[e]=new pr(e,5,!1,e.toLowerCase(),null,!1,!1)});var i_=/[\-:]([a-z])/g;function o_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i_,o_);Yt[t]=new pr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i_,o_);Yt[t]=new pr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i_,o_);Yt[t]=new pr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yt[e]=new pr(e,1,!1,e.toLowerCase(),null,!1,!1)});Yt.xlinkHref=new pr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yt[e]=new pr(e,1,!1,e.toLowerCase(),null,!0,!0)});function a_(e,t,r,n){var i=Yt.hasOwnProperty(t)?Yt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h1=Object.prototype.hasOwnProperty,d1={},p1={};function oM(e){return h1.call(p1,e)?!0:h1.call(d1,e)?!1:iM.test(e)?p1[e]=!0:(d1[e]=!0,!1)}function aM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sM(e,t,r,n){if(t===null||typeof t>"u"||aM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Qt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qt[e]=new yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var M_=/[\-:]([a-z])/g;function D_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M_,D_);Qt[t]=new yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M_,D_);Qt[t]=new yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M_,D_);Qt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Qt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function F_(e,t,r,n){var i=Qt.hasOwnProperty(t)?Qt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2s||i[a]!==o[s])return` -`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{jd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?nu(e):""}function lL(e){switch(e.tag){case 5:return nu(e.type);case 16:return nu("Lazy");case 13:return nu("Suspense");case 19:return nu("SuspenseList");case 0:case 2:case 15:return e=Ul(e.type,!1),e;case 11:return e=Ul(e.type.render,!1),e;case 22:return e=Ul(e.type._render,!1),e;case 1:return e=Ul(e.type,!0),e;default:return""}}function Ta(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yi:return"Fragment";case yo:return"Portal";case cu:return"Profiler";case s_:return"StrictMode";case fu:return"Suspense";case af:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l_:return(e.displayName||"Context")+".Consumer";case u_:return(e._context.displayName||"Context")+".Provider";case ch:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case fh:return Ta(e.type);case f_:return Ta(e._render);case c_:t=e._payload,e=e._init;try{return Ta(e(t))}catch{}}return null}function Ui(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $C(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cL(e){var t=$C(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gl(e){e._valueTracker||(e._valueTracker=cL(e))}function UC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=$C(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function sf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function im(e,t){var r=t.checked;return ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Fb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ui(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GC(e,t){t=t.checked,t!=null&&a_(e,"checked",t,!1)}function om(e,t){GC(e,t);var r=Ui(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?am(e,t.type,r):t.hasOwnProperty("defaultValue")&&am(e,t.type,Ui(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Db(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function am(e,t,r){(t!=="number"||sf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function fL(e){var t="";return lh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function sm(e,t){return e=ut({children:void 0},t),(t=fL(t.children))&&(e.children=t),e}function Ca(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ui(r)}}function zC(e,t){var r=Ui(t.value),n=Ui(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function jb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var lm={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function HC(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function cm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?HC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zl,VC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==lm.svg||"innerHTML"in e)e.innerHTML=t;else{for(zl=zl||document.createElement("div"),zl.innerHTML=""+t.valueOf().toString()+"",t=zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hL=["Webkit","ms","Moz","O"];Object.keys(hu).forEach(function(e){hL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hu[t]=hu[e]})});function WC(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hu.hasOwnProperty(e)&&hu[e]?(""+t).trim():t+"px"}function qC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=WC(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var dL=ut({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fm(e,t){if(t){if(dL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function hm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function p_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dm=null,Oa=null,Aa=null;function $b(e){if(e=bl(e)){if(typeof dm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=gh(t),dm(e.stateNode,e.type,t))}}function XC(e){Oa?Aa?Aa.push(e):Aa=[e]:Oa=e}function YC(){if(Oa){var e=Oa,t=Aa;if(Aa=Oa=null,$b(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function dh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Gi(t),e[t]=r}var Gi=Math.clz32?Math.clz32:PL,OL=Math.log,AL=Math.LN2;function PL(e){return e===0?32:31-(OL(e)/AL|0)|0}var kL=Bt.unstable_UserBlockingPriority,IL=Bt.unstable_runWithPriority,Mc=!0;function RL(e,t,r,n){_o||m_();var i=b_,o=_o;_o=!0;try{KC(i,e,t,r,n)}finally{(_o=o)||g_()}}function NL(e,t,r,n){IL(kL,b_.bind(null,e,t,r,n))}function b_(e,t,r,n){if(Mc){var i;if((i=(t&4)===0)&&0=pu),Kb=String.fromCharCode(32),Zb=!1;function dO(e,t){switch(e){case"keyup":return rM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function iM(e,t){switch(e){case"compositionend":return pO(t);case"keypress":return t.which!==32?null:(Zb=!0,Kb);case"textInput":return e=t.data,e===Kb&&Zb?null:e;default:return null}}function oM(e,t){if(va)return e==="compositionend"||!C_&&dO(e,t)?(e=fO(),Fc=w_=bi=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=t1(r)}}function yO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function n1(){for(var e=window,t=sf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=sf(e.document)}return t}function ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vM=li&&"documentMode"in document&&11>=document.documentMode,ma=null,_m=null,mu=null,xm=!1;function i1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;xm||ma==null||ma!==sf(n)||(n=ma,"selectionStart"in n&&ym(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mu&&Uu(mu,n)||(mu=n,n=ff(_m,"onSelect"),0ya||(e.current=Sm[ya],Sm[ya]=null,ya--)}function vt(e,t){ya++,Sm[ya]=e.current,e.current=t}var zi={},nr=Ji(zi),wr=Ji(!1),Ro=zi;function Ua(e,t){var r=e.type.contextTypes;if(!r)return zi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Er(e){return e=e.childContextTypes,e!=null}function pf(){it(wr),it(nr)}function d1(e,t,r){if(nr.current!==zi)throw Error(K(168));vt(nr,t),vt(wr,r)}function CO(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Ta(t)||"Unknown",i));return ut({},r,n)}function Bc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zi,Ro=nr.current,vt(nr,e),vt(wr,wr.current),!0}function p1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=CO(e,t,Ro),n.__reactInternalMemoizedMergedChildContext=e,it(wr),it(nr),vt(nr,e)):it(wr),vt(wr,r)}var A_=null,Co=null,yM=Bt.unstable_runWithPriority,P_=Bt.unstable_scheduleCallback,wm=Bt.unstable_cancelCallback,_M=Bt.unstable_shouldYield,v1=Bt.unstable_requestPaint,Em=Bt.unstable_now,xM=Bt.unstable_getCurrentPriorityLevel,yh=Bt.unstable_ImmediatePriority,OO=Bt.unstable_UserBlockingPriority,AO=Bt.unstable_NormalPriority,PO=Bt.unstable_LowPriority,kO=Bt.unstable_IdlePriority,Qd={},bM=v1!==void 0?v1:function(){},ei=null,jc=null,Jd=!1,m1=Em(),tr=1e4>m1?Em:function(){return Em()-m1};function Ga(){switch(xM()){case yh:return 99;case OO:return 98;case AO:return 97;case PO:return 96;case kO:return 95;default:throw Error(K(332))}}function IO(e){switch(e){case 99:return yh;case 98:return OO;case 97:return AO;case 96:return PO;case 95:return kO;default:throw Error(K(332))}}function No(e,t){return e=IO(e),yM(e,t)}function zu(e,t,r){return e=IO(e),P_(e,t,r)}function Un(){if(jc!==null){var e=jc;jc=null,wm(e)}RO()}function RO(){if(!Jd&&ei!==null){Jd=!0;var e=0;try{var t=ei;No(99,function(){for(;eT?(k=w,w=null):k=w.sibling;var A=h(p,w,y[T],_);if(A===null){w===null&&(w=k);break}e&&w&&A.alternate===null&&t(p,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=k}if(T===y.length)return r(p,w),x;if(w===null){for(;TT?(k=w,w=null):k=w.sibling;var P=h(p,w,A.value,_);if(P===null){w===null&&(w=k);break}e&&w&&P.alternate===null&&t(p,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=k}if(A.done)return r(p,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(p,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(p,w);!A.done;T++,A=y.next())A=d(w,p,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(F){return t(p,F)}),x}return function(p,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===yi&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case ru:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===yi){r(p,x.sibling),m=i(x,y.props.children),m.return=p,p=m;break e}break;default:if(x.elementType===y.type){r(p,x.sibling),m=i(x,y.props),m.ref=Ds(p,x,y),m.return=p,p=m;break e}}r(p,x);break}else t(p,x);x=x.sibling}y.type===yi?(m=La(y.props.children,p.mode,_,y.key),m.return=p,p=m):(_=zc(y.type,y.key,y.props,null,p.mode,_),_.ref=Ds(p,m,y),_.return=p,p=_)}return a(p);case yo:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{r(p,m);break}else t(p,m);m=m.sibling}m=op(y,p.mode,_),m.return=p,p=m}return a(p)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(p,m.sibling),m=i(m,y),m.return=p,p=m):(r(p,m),m=ip(y,p.mode,_),m.return=p,p=m),a(p);if(Wl(y))return v(p,m,y,_);if(Is(y))return g(p,m,y,_);if(b&&ql(p,y),typeof y>"u"&&!x)switch(p.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Ta(p.type)||"Component"))}return r(p,m)}}var _f=DO(!0),BO=DO(!1),Sl={},In=Ji(Sl),Vu=Ji(Sl),Wu=Ji(Sl);function bo(e){if(e===Sl)throw Error(K(174));return e}function Cm(e,t){switch(vt(Wu,t),vt(Vu,e),vt(In,Sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cm(t,e)}it(In),vt(In,t)}function za(){it(In),it(Vu),it(Wu)}function b1(e){bo(Wu.current);var t=bo(In.current),r=cm(t,e.type);t!==r&&(vt(Vu,e),vt(In,r))}function N_(e){Vu.current===e&&(it(In),it(Vu))}var pt=Ji(0);function xf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ii=null,wi=null,Rn=!1;function jO(e,t){var r=Vr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function S1(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Om(e){if(Rn){var t=wi;if(t){var r=t;if(!S1(e,t)){if(t=Pa(r.nextSibling),!t||!S1(e,t)){e.flags=e.flags&-1025|2,Rn=!1,ii=e;return}jO(ii,r)}ii=e,wi=Pa(t.firstChild)}else e.flags=e.flags&-1025|2,Rn=!1,ii=e}}function w1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ii=e}function Xl(e){if(e!==ii)return!1;if(!Rn)return w1(e),Rn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!bm(t,e.memoizedProps))for(t=wi;t;)jO(e,t),t=Pa(t.nextSibling);if(w1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){wi=Pa(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}wi=null}}else wi=ii?Pa(e.stateNode.nextSibling):null;return!0}function ep(){wi=ii=null,Rn=!1}var Ia=[];function L_(){for(var e=0;eo))throw Error(K(301));o+=1,qt=er=null,t.updateQueue=null,gu.current=CM,e=r(n,i)}while(yu)}if(gu.current=Tf,t=er!==null&&er.next!==null,qu=0,qt=er=xt=null,bf=!1,t)throw Error(K(300));return e}function So(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?xt.memoizedState=qt=e:qt=qt.next=e,qt}function Go(){if(er===null){var e=xt.alternate;e=e!==null?e.memoizedState:null}else e=er.next;var t=qt===null?xt.memoizedState:qt.next;if(t!==null)qt=t,er=e;else{if(e===null)throw Error(K(310));er=e,e={memoizedState:er.memoizedState,baseState:er.baseState,baseQueue:er.baseQueue,queue:er.queue,next:null},qt===null?xt.memoizedState=qt=e:qt=qt.next=e}return qt}function On(e,t){return typeof t=="function"?t(e):t}function Bs(e){var t=Go(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=er,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((qu&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,xt.lanes|=l,wl|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Hr(n,t.memoizedState)||(hn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function js(e){var t=Go(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Hr(o,t.memoizedState)||(hn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function E1(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(qu&e)===e)&&(t._workInProgressVersionPrimary=n,Ia.push(t))),e)return r(t._source);throw Ia.push(t),Error(K(350))}function $O(e,t,r,n){var i=cr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=gu.current,u=s.useState(function(){return E1(i,t,r)}),l=u[1],c=u[0];u=qt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,v=f.source;f=f.subscribe;var g=xt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var p=o(t._source);if(!Hr(a,p)){p=r(t._source),Hr(c,p)||(l(p),p=Ni(g),i.mutableReadLanes|=p&i.pendingLanes),p=i.mutableReadLanes,i.entangledLanes|=p;for(var m=i.entanglements,y=p;0r?98:r,function(){e(!0)}),No(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Si]=t,e[df]=n,YO(e,t,!1,!1),t.stateNode=e,a=hm(r,n),r){case"dialog":et("cancel",e),et("close",e),i=n;break;case"iframe":case"object":case"embed":et("load",e),i=n;break;case"video":case"audio":for(i=0;iDm&&(t.flags|=64,o=!0,Us(n,!1),t.lanes=33554432)}else{if(!o)if(e=xf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Us(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Rn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*tr()-n.renderingStartTime>Dm&&r!==1073741824&&(t.flags|=64,o=!0,Us(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=tr(),r.sibling=null,t=pt.current,vt(pt,o?t&1|2:t&1),r):null;case 23:case 24:return H_(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function PM(e){switch(e.tag){case 1:Er(e.type)&&pf();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(za(),it(wr),it(nr),L_(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return N_(e),null;case 13:return it(pt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return it(pt),null;case 4:return za(),null;case 10:return I_(e),null;case 23:case 24:return H_(),null;default:return null}}function $_(e,t){try{var r="",n=t;do r+=lL(n),n=n.return;while(n);var i=r}catch(o){i=` +`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{fp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?mu(e):""}function uM(e){switch(e.tag){case 5:return mu(e.type);case 16:return mu("Lazy");case 13:return mu("Suspense");case 19:return mu("SuspenseList");case 0:case 2:case 15:return e=ac(e.type,!1),e;case 11:return e=ac(e.type.render,!1),e;case 22:return e=ac(e.type._render,!1),e;case 1:return e=ac(e.type,!0),e;default:return""}}function Ma(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ai:return"Fragment";case Ao:return"Portal";case Eu:return"Profiler";case B_:return"StrictMode";case Tu:return"Suspense";case Pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $_:return(e.displayName||"Context")+".Consumer";case j_:return(e._context.displayName||"Context")+".Provider";case Ih:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Nh:return Ma(e.type);case G_:return Ma(e._render);case U_:t=e._payload,e=e._init;try{return Ma(e(t))}catch{}}return null}function Zi(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function OO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lM(e){var t=OO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sc(e){e._valueTracker||(e._valueTracker=lM(e))}function AO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=OO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function kf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nm(e,t){var r=t.checked;return ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function m1(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Zi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PO(e,t){t=t.checked,t!=null&&F_(e,"checked",t,!1)}function Lm(e,t){PO(e,t);var r=Zi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Mm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Mm(e,t.type,Zi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function g1(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Mm(e,t,r){(t!=="number"||kf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function cM(e){var t="";return Rh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Dm(e,t){return e=ft({children:void 0},t),(t=cM(t.children))&&(e.children=t),e}function Da(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Zi(r)}}function kO(e,t){var r=Zi(t.value),n=Zi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function _1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Bm={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function RO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?RO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uc,IO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==Bm.svg||"innerHTML"in e)e.innerHTML=t;else{for(uc=uc||document.createElement("div"),uc.innerHTML=""+t.valueOf().toString()+"",t=uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Cu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fM=["Webkit","ms","Moz","O"];Object.keys(Cu).forEach(function(e){fM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cu[t]=Cu[e]})});function NO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Cu.hasOwnProperty(e)&&Cu[e]?(""+t).trim():t+"px"}function LO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=NO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var hM=ft({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $m(e,t){if(t){if(hM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function Um(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function V_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gm=null,Fa=null,Ba=null;function x1(e){if(e=jl(e)){if(typeof Gm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=jh(t),Gm(e.stateNode,e.type,t))}}function MO(e){Fa?Ba?Ba.push(e):Ba=[e]:Fa=e}function DO(){if(Fa){var e=Fa,t=Ba;if(Ba=Fa=null,x1(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Mh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Qi(t),e[t]=r}var Qi=Math.clz32?Math.clz32:AM,CM=Math.log,OM=Math.LN2;function AM(e){return e===0?32:31-(CM(e)/OM|0)|0}var PM=Ut.unstable_UserBlockingPriority,kM=Ut.unstable_runWithPriority,rf=!0;function RM(e,t,r,n){Po||q_();var i=Q_,o=Po;Po=!0;try{FO(i,e,t,r,n)}finally{(Po=o)||X_()}}function IM(e,t,r,n){kM(PM,Q_.bind(null,e,t,r,n))}function Q_(e,t,r,n){if(rf){var i;if((i=(t&4)===0)&&0=Au),k1=String.fromCharCode(32),R1=!1;function eA(e,t){switch(e){case"keyup":return tD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ca=!1;function nD(e,t){switch(e){case"compositionend":return tA(t);case"keypress":return t.which!==32?null:(R1=!0,k1);case"textInput":return e=t.data,e===k1&&R1?null:e;default:return null}}function iD(e,t){if(Ca)return e==="compositionend"||!n0&&eA(e,t)?(e=QO(),nf=e0=Ri=null,Ca=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=M1(r)}}function oA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F1(){for(var e=window,t=kf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=kf(e.document)}return t}function qm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var pD=_i&&"documentMode"in document&&11>=document.documentMode,Oa=null,Xm=null,ku=null,Ym=!1;function B1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ym||Oa==null||Oa!==kf(n)||(n=Oa,"selectionStart"in n&&qm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ku&&tl(ku,n)||(ku=n,n=Lf(Xm,"onSelect"),0Pa||(e.current=Zm[Pa],Zm[Pa]=null,Pa--)}function yt(e,t){Pa++,Zm[Pa]=e.current,e.current=t}var Ji={},sr=lo(Ji),Ar=lo(!1),zo=Ji;function Qa(e,t){var r=e.type.contextTypes;if(!r)return Ji;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pr(e){return e=e.childContextTypes,e!=null}function Ff(){st(Ar),st(sr)}function q1(e,t,r){if(sr.current!==Ji)throw Error(K(168));yt(sr,t),yt(Ar,r)}function dA(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Ma(t)||"Unknown",i));return ft({},r,n)}function af(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ji,zo=sr.current,yt(sr,e),yt(Ar,Ar.current),!0}function X1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=dA(e,t,zo),n.__reactInternalMemoizedMergedChildContext=e,st(Ar),st(sr),yt(sr,e)):st(Ar),yt(Ar,r)}var o0=null,Fo=null,gD=Ut.unstable_runWithPriority,a0=Ut.unstable_scheduleCallback,Qm=Ut.unstable_cancelCallback,yD=Ut.unstable_shouldYield,Y1=Ut.unstable_requestPaint,Jm=Ut.unstable_now,_D=Ut.unstable_getCurrentPriorityLevel,$h=Ut.unstable_ImmediatePriority,pA=Ut.unstable_UserBlockingPriority,vA=Ut.unstable_NormalPriority,mA=Ut.unstable_LowPriority,gA=Ut.unstable_IdlePriority,Ep={},xD=Y1!==void 0?Y1:function(){},ci=null,sf=null,Tp=!1,K1=Jm(),or=1e4>K1?Jm:function(){return Jm()-K1};function Ja(){switch(_D()){case $h:return 99;case pA:return 98;case vA:return 97;case mA:return 96;case gA:return 95;default:throw Error(K(332))}}function yA(e){switch(e){case 99:return $h;case 98:return pA;case 97:return vA;case 96:return mA;case 95:return gA;default:throw Error(K(332))}}function Ho(e,t){return e=yA(e),gD(e,t)}function nl(e,t,r){return e=yA(e),a0(e,t,r)}function Zn(){if(sf!==null){var e=sf;sf=null,Qm(e)}_A()}function _A(){if(!Tp&&ci!==null){Tp=!0;var e=0;try{var t=ci;Ho(99,function(){for(;eT?(R=w,w=null):R=w.sibling;var A=h(v,w,y[T],_);if(A===null){w===null&&(w=R);break}e&&w&&A.alternate===null&&t(v,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=R}if(T===y.length)return r(v,w),x;if(w===null){for(;TT?(R=w,w=null):R=w.sibling;var P=h(v,w,A.value,_);if(P===null){w===null&&(w=R);break}e&&w&&P.alternate===null&&t(v,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=R}if(A.done)return r(v,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(v,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(v,w);!A.done;T++,A=y.next())A=d(w,v,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(D){return t(v,D)}),x}return function(v,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===Ai&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case vu:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===Ai){r(v,x.sibling),m=i(x,y.props.children),m.return=v,v=m;break e}break;default:if(x.elementType===y.type){r(v,x.sibling),m=i(x,y.props),m.ref=Ys(v,x,y),m.return=v,v=m;break e}}r(v,x);break}else t(v,x);x=x.sibling}y.type===Ai?(m=Ha(y.props.children,v.mode,_,y.key),m.return=v,v=m):(_=ff(y.type,y.key,y.props,null,v.mode,_),_.ref=Ys(v,m,y),_.return=v,v=_)}return a(v);case Ao:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=i(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Rp(y,v.mode,_),m.return=v,v=m}return a(v)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=i(m,y),m.return=v,v=m):(r(v,m),m=kp(y,v.mode,_),m.return=v,v=m),a(v);if(fc(y))return p(v,m,y,_);if(zs(y))return g(v,m,y,_);if(b&&hc(v,y),typeof y>"u"&&!x)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Ma(v.type)||"Component"))}return r(v,m)}}var Gf=EA(!0),TA=EA(!1),$l={},Un=lo($l),ol=lo($l),al=lo($l);function Ro(e){if(e===$l)throw Error(K(174));return e}function tg(e,t){switch(yt(al,t),yt(ol,e),yt(Un,$l),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jm(t,e)}st(Un),yt(Un,t)}function es(){st(Un),st(ol),st(al)}function tS(e){Ro(al.current);var t=Ro(Un.current),r=jm(t,e.type);t!==r&&(yt(ol,e),yt(Un,r))}function c0(e){ol.current===e&&(st(Un),st(ol))}var gt=lo(0);function zf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pi=null,Ni=null,Gn=!1;function CA(e,t){var r=Qr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function rS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function rg(e){if(Gn){var t=Ni;if(t){var r=t;if(!rS(e,t)){if(t=ja(r.nextSibling),!t||!rS(e,t)){e.flags=e.flags&-1025|2,Gn=!1,pi=e;return}CA(pi,r)}pi=e,Ni=ja(t.firstChild)}else e.flags=e.flags&-1025|2,Gn=!1,pi=e}}function nS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pi=e}function dc(e){if(e!==pi)return!1;if(!Gn)return nS(e),Gn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Km(t,e.memoizedProps))for(t=Ni;t;)CA(e,t),t=ja(t.nextSibling);if(nS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ni=ja(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ni=null}}else Ni=pi?ja(e.stateNode.nextSibling):null;return!0}function Cp(){Ni=pi=null,Gn=!1}var Ua=[];function f0(){for(var e=0;eo))throw Error(K(301));o+=1,Yt=ir=null,t.updateQueue=null,Ru.current=TD,e=r(n,i)}while(Iu)}if(Ru.current=Xf,t=ir!==null&&ir.next!==null,sl=0,Yt=ir=wt=null,Hf=!1,t)throw Error(K(300));return e}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?wt.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function Jo(){if(ir===null){var e=wt.alternate;e=e!==null?e.memoizedState:null}else e=ir.next;var t=Yt===null?wt.memoizedState:Yt.next;if(t!==null)Yt=t,ir=e;else{if(e===null)throw Error(K(310));ir=e,e={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},Yt===null?wt.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function Fn(e,t){return typeof t=="function"?t(e):t}function Ks(e){var t=Jo(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=ir,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((sl&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,wt.lanes|=l,Ul|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Zr(n,t.memoizedState)||(yn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Zs(e){var t=Jo(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Zr(o,t.memoizedState)||(yn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function iS(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(sl&e)===e)&&(t._workInProgressVersionPrimary=n,Ua.push(t))),e)return r(t._source);throw Ua.push(t),Error(K(350))}function OA(e,t,r,n){var i=pr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=Ru.current,u=s.useState(function(){return iS(i,t,r)}),l=u[1],c=u[0];u=Yt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,p=f.source;f=f.subscribe;var g=wt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var v=o(t._source);if(!Zr(a,v)){v=r(t._source),Zr(c,v)||(l(v),v=zi(g),i.mutableReadLanes|=v&i.pendingLanes),v=i.mutableReadLanes,i.entangledLanes|=v;for(var m=i.entanglements,y=v;0r?98:r,function(){e(!0)}),Ho(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Ii]=t,e[Df]=n,DA(e,t,!1,!1),t.stateNode=e,a=Um(r,n),r){case"dialog":nt("cancel",e),nt("close",e),i=n;break;case"iframe":case"object":case"embed":nt("load",e),i=n;break;case"video":case"audio":for(i=0;ihg&&(t.flags|=64,o=!0,Js(n,!1),t.lanes=33554432)}else{if(!o)if(e=zf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Js(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Gn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*or()-n.renderingStartTime>hg&&r!==1073741824&&(t.flags|=64,o=!0,Js(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=or(),r.sibling=null,t=gt.current,yt(gt,o?t&1|2:t&1),r):null;case 23:case 24:return b0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function AD(e){switch(e.tag){case 1:Pr(e.type)&&Ff();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(es(),st(Ar),st(sr),f0(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return c0(e),null;case 13:return st(gt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return st(gt),null;case 4:return es(),null;case 10:return u0(e),null;case 23:case 24:return b0(),null;default:return null}}function g0(e,t){try{var r="",n=t;do r+=uM(n),n=n.return;while(n);var i=r}catch(o){i=` Error generating stack: `+o.message+` -`+o.stack}return{value:e,source:t,stack:i}}function Rm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var kM=typeof WeakMap=="function"?WeakMap:Map;function QO(e,t,r){r=Ii(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Of||(Of=!0,Bm=n),Rm(e,t)},r}function JO(e,t,r){r=Ii(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return Rm(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(An===null?An=new Set([this]):An.add(this),Rm(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var IM=typeof WeakSet=="function"?WeakSet:Set;function D1(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Mi(e,r)}else t.current=null}function RM(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:cn(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&O_(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(K(163))}function NM(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(uA(r,e),UM(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:cn(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&y1(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}y1(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&EO(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&nO(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(K(163))}function B1(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=WC("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function j1(e,t){if(Co&&typeof Co.onCommitFiberUnmount=="function")try{Co.onCommitFiberUnmount(A_,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)uA(t,r);else{n=t;try{i()}catch(o){Mi(n,o)}}r=r.next}while(r!==e)}break;case 1:if(D1(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Mi(t,o)}break;case 5:D1(t);break;case 4:eA(e,t)}}function $1(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function U1(e){return e.tag===5||e.tag===3||e.tag===4}function G1(e){e:{for(var t=e.return;t!==null;){if(U1(t))break e;t=t.return}throw Error(K(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(K(161))}r.flags&16&&(Mu(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||U1(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?Nm(e,r,t):Lm(e,r,t)}function Nm(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=hf));else if(n!==4&&(e=e.child,e!==null))for(Nm(e,t,r),e=e.sibling;e!==null;)Nm(e,t,r),e=e.sibling}function Lm(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Lm(e,t,r),e=e.sibling;e!==null;)Lm(e,t,r),e=e.sibling}function eA(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(K(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,u=s;;)if(j1(a,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(j1(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function np(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[df]=n,e==="input"&&n.type==="radio"&&n.name!=null&&GC(r,n),hm(e,i),t=hm(e,n),i=0;ii&&(i=a),r&=~o}if(r=i,r=tr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MM(r/1960))-r,10i&&(i=a),r&=~o}if(r=i,r=or()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LD(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Xt!==5&&(Xt=2),u=$_(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=QO(h,o,t);g1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(An===null||!An.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var k=JO(h,o,t);g1(h,k);break e}}h=h.return}while(h!==null)}sA(r)}catch(A){t=A,At===r&&r!==null&&(At=r=r.return);continue}break}while(1)}function oA(){var e=Cf.current;return Cf.current=Tf,e===null?Tf:e}function au(e,t){var r=ve;ve|=16;var n=oA();cr===e&&rr===t||Na(e,t);do try{DM();break}catch(i){iA(e,i)}while(1);if(k_(),ve=r,Cf.current=n,At!==null)throw Error(K(261));return cr=null,rr=0,Xt}function DM(){for(;At!==null;)aA(At)}function BM(){for(;At!==null&&!_M();)aA(At)}function aA(e){var t=lA(e.alternate,e,Lo);e.memoizedProps=e.pendingProps,t===null?sA(e):At=t,U_.current=null}function sA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=PM(t),r!==null){r.flags&=2047,At=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=AM(r,t,Lo),r!==null){At=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Lo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=r1(y,b),o=r1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}Mc=!!Yd,Kd=Yd=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&NM(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var k=ie.stateNode;switch(ie.tag){case 5:_=k;break;default:_=k}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Mi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,bM(),ve=i}else e.current=r;if(Hi)Hi=!1,_u=e,ou=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(An=null),n===1?e===Um?xu++:(xu=0,Um=e):xu=0,r=r.stateNode,Co&&typeof Co.onCommitFiberRoot=="function")try{Co.onCommitFiberRoot(A_,r,void 0,(r.current.flags&64)===64)}catch{}if(Qr(e,tr()),Of)throw Of=!1,e=Bm,Bm=null,e;return ve&8||Un(),null}function $M(){for(;ie!==null;){var e=ie.alternate;Gc||bu===null||(ie.flags&8?Gb(ie,bu)&&(Gc=!0):ie.tag===13&&LM(e,ie)&&Gb(ie,bu)&&(Gc=!0));var t=ie.flags;t&256&&RM(e,ie),!(t&512)||Hi||(Hi=!0,zu(97,function(){return eo(),null})),ie=ie.nextEffect}}function eo(){if(ou!==90){var e=97tr()-z_?Na(e,0):G_|=r),Qr(e,t)}function HM(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ri===0&&(ri=os),t=fa(62914560&~ri),t===0&&(t=4194304)):t=Ga()===99?1:2:t=1),r=Lr(),e=bh(e,t),e!==null&&(dh(e,t,r),Qr(e,r))}var lA;lA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||wr.current)hn=!0;else if(r&n)hn=!!(e.flags&16384);else{switch(hn=!1,t.tag){case 3:k1(t),ep();break;case 5:b1(t);break;case 1:Er(t.type)&&Bc(t);break;case 4:Cm(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;vt(vf,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?I1(e,t,r):(vt(pt,pt.current&1),t=oi(e,t,r),t!==null?t.sibling:null);vt(pt,pt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return F1(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),vt(pt,pt.current),n)break;return null;case 23:case 24:return t.lanes=0,tp(e,t,r)}return oi(e,t,r)}else hn=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Ua(t,nr.current),ka(t,r),i=F_(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Er(n)){var o=!0;Bc(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,R_(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&yf(t,n,a,e),i.updater=_h,t.stateNode=i,i._reactInternals=t,Tm(t,n,e,r),t=km(null,t,n,!0,o,r)}else t.tag=0,yr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=WM(i),e=cn(i,e),o){case 0:t=Pm(null,t,i,e,r);break e;case 1:t=P1(null,t,i,e,r);break e;case 11:t=O1(null,t,i,e,r);break e;case 14:t=A1(null,t,i,cn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cn(n,i),Pm(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cn(n,i),P1(e,t,n,i,r);case 3:if(k1(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,LO(e,t),Hu(t,n,null,r),n=t.memoizedState.element,n===i)ep(),t=oi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(wi=Pa(t.stateNode.containerInfo.firstChild),ii=t,o=Rn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fA)}catch(e){console.error(e)}}fA(),MC.exports=tn;var hA=MC.exports;const Mn=Or(hA);const JM="_Title_main_13knx_2",eF="_Title_buttonList_13knx_9",tF="_Title_button_13knx_9",rF="_Title_button_text_13knx_43",nF="_Title_button_text_up_13knx_52",iF="_Title_backup_background_13knx_58",kt={Title_main:JM,Title_buttonList:eF,Title_button:tF,Title_button_text:rF,Title_button_text_up:nF,Title_backup_background:iF};function fn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:Y_(e)?2:K_(e)?3:0}function Ma(e,t){return us(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oF(e,t){return us(e)===2?e.get(t):e[t]}function dA(e,t,r){var n=us(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function pA(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Y_(e){return fF&&e instanceof Map}function K_(e){return hF&&e instanceof Set}function co(e){return e.o||e.t}function Z_(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=mA(e);delete t[st];for(var r=Fa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=aF),Object.freeze(e),t&&Mo(e,function(r,n){return Q_(n,!0)},!0)),e}function aF(){fn(2)}function J_(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Nn(e){var t=Wm[e];return t||fn(18,e),t}function sF(e,t){Wm[e]||(Wm[e]=t)}function zm(){return Xu}function sp(e,t){t&&(Nn("Patches"),e.u=[],e.s=[],e.v=t)}function Pf(e){Hm(e),e.p.forEach(uF),e.p=null}function Hm(e){e===Xu&&(Xu=e.l)}function W1(e){return Xu={p:[],l:Xu,h:e,m:!0,_:0}}function uF(e){var t=e[st];t.i===0||t.i===1?t.j():t.g=!0}function up(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Nn("ES5").S(t,e,n),n?(r[st].P&&(Pf(t),fn(4)),ci(e)&&(e=kf(t,e),t.l||If(t,e)),t.u&&Nn("Patches").M(r[st].t,e,t.u,t.s)):e=kf(t,r,[]),Pf(t),t.u&&t.v(t.u,t.s),e!==vA?e:void 0}function kf(e,t,r){if(J_(t))return t;var n=t[st];if(!n)return Mo(t,function(s,u){return q1(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return If(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Z_(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),Mo(o,function(s,u){return q1(e,n,i,s,u,r,a)}),If(e,i,!1),r&&e.u&&Nn("Patches").N(n,r,e.u,e.s)}return n.o}function q1(e,t,r,n,i,o,a){if(Wi(i)){var s=kf(e,i,o&&t&&t.i!==3&&!Ma(t.R,n)?o.concat(n):void 0);if(dA(r,n,s),!Wi(s))return;e.m=!1}else a&&r.add(i);if(ci(i)&&!J_(i)){if(!e.h.D&&e._<1)return;kf(e,i),t&&t.A.l||If(e,i)}}function If(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Q_(t,r)}function lp(e,t){var r=e[st];return(r?co(r):e)[t]}function X1(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function _i(e){e.P||(e.P=!0,e.l&&_i(e.l))}function cp(e){e.o||(e.o=Z_(e.t))}function Vm(e,t,r){var n=Y_(t)?Nn("MapSet").F(t,r):K_(t)?Nn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:zm(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=Yu;a&&(u=[s],l=su);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):Nn("ES5").J(t,r);return(r?r.A:zm()).p.push(n),n}function lF(e){return Wi(e)||fn(22,e),function t(r){if(!ci(r))return r;var n,i=r[st],o=us(r);if(i){if(!i.P&&(i.i<4||!Nn("ES5").K(i)))return i.t;i.I=!0,n=Y1(r,o),i.I=!1}else n=Y1(r,o);return Mo(n,function(a,s){i&&oF(i.t,a)===s||dA(n,a,t(s))}),o===3?new Set(n):n}(e)}function Y1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Z_(e)}function cF(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[st];return Yu.get(u,o)},set:function(u){var l=this[st];Yu.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][st];if(!s.P)switch(s.i){case 5:n(s)&&_i(s);break;case 4:r(s)&&_i(s)}}}function r(o){for(var a=o.t,s=o.k,u=Fa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==st){var f=a[c];if(f===void 0&&!Ma(a,c))return!0;var h=s[c],d=h&&h[st];if(d?d.t!==f:!pA(h,f))return!0}}var v=!!a[st];return u.length!==Fa(a).length+(v?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=Nn("Patches").$;return Wi(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Mr=new pF,gA=Mr.produce;Mr.produceWithPatches.bind(Mr);Mr.setAutoFreeze.bind(Mr);Mr.setUseProxies.bind(Mr);Mr.applyPatches.bind(Mr);Mr.createDraft.bind(Mr);Mr.finishDraft.bind(Mr);function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(e)}function vF(e,t){if(Dt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yA(e){var t=vF(e,"string");return Dt(t)=="symbol"?t:String(t)}function Dr(e,t,r){return t=yA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Jt(1));return r(_A)(e,t)}if(typeof e!="function")throw new Error(Jt(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(Jt(3));return o}function f(g){if(typeof g!="function")throw new Error(Jt(4));if(u)throw new Error(Jt(5));var p=!0;return l(),s.push(g),function(){if(p){if(u)throw new Error(Jt(6));p=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!mF(g))throw new Error(Jt(7));if(typeof g.type>"u")throw new Error(Jt(8));if(u)throw new Error(Jt(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var p=a=s,m=0;m"u")throw new Error(Jt(12));if(typeof r(void 0,{type:Rf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Jt(13))})}function yF(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(Jt(14));f[d]=p,c=c||p!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function Nf(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var oD=iD,aD=wh;function sD(e,t){var r=this.__data__,n=aD(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var uD=sD,lD=VF,cD=JF,fD=rD,hD=oD,dD=uD;function ls(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=dj}var c0=pj,vj=Cl,mj=c0,gj=Ho,yj="[object Arguments]",_j="[object Array]",xj="[object Boolean]",bj="[object Date]",Sj="[object Error]",wj="[object Function]",Ej="[object Map]",Tj="[object Number]",Cj="[object Object]",Oj="[object RegExp]",Aj="[object Set]",Pj="[object String]",kj="[object WeakMap]",Ij="[object ArrayBuffer]",Rj="[object DataView]",Nj="[object Float32Array]",Lj="[object Float64Array]",Mj="[object Int8Array]",Fj="[object Int16Array]",Dj="[object Int32Array]",Bj="[object Uint8Array]",jj="[object Uint8ClampedArray]",$j="[object Uint16Array]",Uj="[object Uint32Array]",tt={};tt[Nj]=tt[Lj]=tt[Mj]=tt[Fj]=tt[Dj]=tt[Bj]=tt[jj]=tt[$j]=tt[Uj]=!0;tt[yj]=tt[_j]=tt[Ij]=tt[xj]=tt[Rj]=tt[bj]=tt[Sj]=tt[wj]=tt[Ej]=tt[Tj]=tt[Cj]=tt[Oj]=tt[Aj]=tt[Pj]=tt[kj]=!1;function Gj(e){return gj(e)&&mj(e.length)&&!!tt[vj(e)]}var zj=Gj;function Hj(e){return function(t){return e(t)}}var f0=Hj,Mf={exports:{}};Mf.exports;(function(e,t){var r=TA,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Mf,Mf.exports);var h0=Mf.exports,Vj=zj,Wj=f0,vS=h0,mS=vS&&vS.isTypedArray,qj=mS?Wj(mS):Vj,RA=qj,Xj=KB,Yj=IA,Kj=hi,Zj=u0,Qj=l0,Jj=RA,e4=Object.prototype,t4=e4.hasOwnProperty;function r4(e,t){var r=Kj(e),n=!r&&Yj(e),i=!r&&!n&&Zj(e),o=!r&&!n&&!i&&Jj(e),a=r||n||i||o,s=a?Xj(e.length,String):[],u=s.length;for(var l in e)(t||t4.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Qj(l,u)))&&s.push(l);return s}var NA=r4,n4=Object.prototype;function i4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||n4;return e===r}var d0=i4;function o4(e,t){return function(r){return e(t(r))}}var LA=o4,a4=LA,s4=a4(Object.keys,Object),u4=s4,l4=d0,c4=u4,f4=Object.prototype,h4=f4.hasOwnProperty;function d4(e){if(!l4(e))return c4(e);var t=[];for(var r in Object(e))h4.call(e,r)&&r!="constructor"&&t.push(r);return t}var p4=d4,v4=OA,m4=c0;function g4(e){return e!=null&&m4(e.length)&&!v4(e)}var MA=g4,y4=NA,_4=p4,x4=MA;function b4(e){return x4(e)?y4(e):_4(e)}var Ah=b4,S4=Oh,w4=Ah;function E4(e,t){return e&&S4(t,w4(t),e)}var T4=E4;function C4(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O4=C4,A4=Gn,P4=d0,k4=O4,I4=Object.prototype,R4=I4.hasOwnProperty;function N4(e){if(!A4(e))return k4(e);var t=P4(e),r=[];for(var n in e)n=="constructor"&&(t||!R4.call(e,n))||r.push(n);return r}var L4=N4,M4=NA,F4=L4,D4=MA;function B4(e){return D4(e)?M4(e,!0):F4(e)}var p0=B4,j4=Oh,$4=p0;function U4(e,t){return e&&j4(t,$4(t),e)}var G4=U4,Ff={exports:{}};Ff.exports;(function(e,t){var r=mn,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(Ff,Ff.exports);var z4=Ff.exports;function H4(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e))(de||{});const YA={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1},g0=t0({name:"stage",initialState:Et(YA),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n}}}),{resetStageState:kh,setStage:Te,setStageVar:KA}=g0.actions,Ir=g0.actions,f5=g0.reducer;function Ql(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ZA={exports:{}};/*! +Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}Zt!==5&&(Zt=2),u=g0(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=jA(h,o,t);Z1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Bn===null||!Bn.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var R=$A(h,o,t);Z1(h,R);break e}}h=h.return}while(h!==null)}XA(r)}catch(A){t=A,It===r&&r!==null&&(It=r=r.return);continue}break}while(1)}function WA(){var e=Yf.current;return Yf.current=Xf,e===null?Xf:e}function _u(e,t){var r=pe;pe|=16;var n=WA();pr===e&&ar===t||za(e,t);do try{DD();break}catch(i){VA(e,i)}while(1);if(s0(),pe=r,Yf.current=n,It!==null)throw Error(K(261));return pr=null,ar=0,Zt}function DD(){for(;It!==null;)qA(It)}function FD(){for(;It!==null&&!yD();)qA(It)}function qA(e){var t=KA(e.alternate,e,Vo);e.memoizedProps=e.pendingProps,t===null?XA(e):It=t,y0.current=null}function XA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=AD(t),r!==null){r.flags&=2047,It=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=OD(r,t,Vo),r!==null){It=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Vo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=D1(y,b),o=D1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}rf=!!bp,Sp=bp=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&ID(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var R=ie.stateNode;switch(ie.tag){case 5:_=R;break;default:_=R}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Vi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,xD(),pe=i}else e.current=r;if(eo)eo=!1,Nu=e,yu=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(Bn=null),n===1?e===mg?Lu++:(Lu=0,mg=e):Lu=0,r=r.stateNode,Fo&&typeof Fo.onCommitFiberRoot=="function")try{Fo.onCommitFiberRoot(o0,r,void 0,(r.current.flags&64)===64)}catch{}if(on(e,or()),Kf)throw Kf=!1,e=dg,dg=null,e;return pe&8||Zn(),null}function jD(){for(;ie!==null;){var e=ie.alternate;cf||Mu===null||(ie.flags&8?S1(ie,Mu)&&(cf=!0):ie.tag===13&&ND(e,ie)&&S1(ie,Mu)&&(cf=!0));var t=ie.flags;t&256&&RD(e,ie),!(t&512)||eo||(eo=!0,nl(97,function(){return co(),null})),ie=ie.nextEffect}}function co(){if(yu!==90){var e=97or()-x0?za(e,0):_0|=r),on(e,t)}function zD(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(hi===0&&(hi=gs),t=Sa(62914560&~hi),t===0&&(t=4194304)):t=Ja()===99?1:2:t=1),r=$r(),e=zh(e,t),e!==null&&(Mh(e,t,r),on(e,r))}var KA;KA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ar.current)yn=!0;else if(r&n)yn=!!(e.flags&16384);else{switch(yn=!1,t.tag){case 3:cS(t),Cp();break;case 5:tS(t);break;case 1:Pr(t.type)&&af(t);break;case 4:tg(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;yt(Bf,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?fS(e,t,r):(yt(gt,gt.current&1),t=vi(e,t,r),t!==null?t.sibling:null);yt(gt,gt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return mS(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),yt(gt,gt.current),n)break;return null;case 23:case 24:return t.lanes=0,Op(e,t,r)}return vi(e,t,r)}else yn=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Qa(t,sr.current),$a(t,r),i=d0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(n)){var o=!0;af(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,l0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&Uf(t,n,a,e),i.updater=Uh,t.stateNode=i,i._reactInternals=t,eg(t,n,e,r),t=og(null,t,n,!0,o,r)}else t.tag=0,Sr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=VD(i),e=mn(i,e),o){case 0:t=ig(null,t,i,e,r);break e;case 1:t=lS(null,t,i,e,r);break e;case 11:t=sS(null,t,i,e,r);break e;case 14:t=uS(null,t,i,mn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),ig(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),lS(e,t,n,i,r);case 3:if(cS(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,bA(e,t),il(t,n,null,r),n=t.memoizedState.element,n===i)Cp(),t=vi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(Ni=ja(t.stateNode.containerInfo.firstChild),pi=t,o=Gn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QA)}catch(e){console.error(e)}}QA(),SO.exports=un;var JA=SO.exports;const Wn=Nr(JA);const QD="_Title_main_1s27r_2",JD="_Title_buttonList_1s27r_9",eF="_Title_button_1s27r_9",tF="_Title_button_text_1s27r_43",rF="_Title_backup_background_1s27r_52",Mr={Title_main:QD,Title_buttonList:JD,Title_button:eF,Title_button_text:tF,Title_backup_background:rF};function gn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:C0(e)?2:O0(e)?3:0}function Va(e,t){return xs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nF(e,t){return xs(e)===2?e.get(t):e[t]}function eP(e,t,r){var n=xs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function tP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function C0(e){return lF&&e instanceof Map}function O0(e){return cF&&e instanceof Set}function bo(e){return e.o||e.t}function A0(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=nP(e);delete t[ct];for(var r=Wa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=iF),Object.freeze(e),t&&Wo(e,function(r,n){return P0(n,!0)},!0)),e}function iF(){gn(2)}function k0(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zn(e){var t=bg[e];return t||gn(18,e),t}function oF(e,t){bg[e]||(bg[e]=t)}function yg(){return ul}function Np(e,t){t&&(zn("Patches"),e.u=[],e.s=[],e.v=t)}function Qf(e){_g(e),e.p.forEach(aF),e.p=null}function _g(e){e===ul&&(ul=e.l)}function CS(e){return ul={p:[],l:ul,h:e,m:!0,_:0}}function aF(e){var t=e[ct];t.i===0||t.i===1?t.j():t.g=!0}function Lp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||zn("ES5").S(t,e,n),n?(r[ct].P&&(Qf(t),gn(4)),xi(e)&&(e=Jf(t,e),t.l||eh(t,e)),t.u&&zn("Patches").M(r[ct].t,e,t.u,t.s)):e=Jf(t,r,[]),Qf(t),t.u&&t.v(t.u,t.s),e!==rP?e:void 0}function Jf(e,t,r){if(k0(t))return t;var n=t[ct];if(!n)return Wo(t,function(s,u){return OS(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return eh(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=A0(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),Wo(o,function(s,u){return OS(e,n,i,s,u,r,a)}),eh(e,i,!1),r&&e.u&&zn("Patches").N(n,r,e.u,e.s)}return n.o}function OS(e,t,r,n,i,o,a){if(ro(i)){var s=Jf(e,i,o&&t&&t.i!==3&&!Va(t.R,n)?o.concat(n):void 0);if(eP(r,n,s),!ro(s))return;e.m=!1}else a&&r.add(i);if(xi(i)&&!k0(i)){if(!e.h.D&&e._<1)return;Jf(e,i),t&&t.A.l||eh(e,i)}}function eh(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&P0(t,r)}function Mp(e,t){var r=e[ct];return(r?bo(r):e)[t]}function AS(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Pi(e){e.P||(e.P=!0,e.l&&Pi(e.l))}function Dp(e){e.o||(e.o=A0(e.t))}function xg(e,t,r){var n=C0(t)?zn("MapSet").F(t,r):O0(t)?zn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:yg(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=ll;a&&(u=[s],l=xu);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):zn("ES5").J(t,r);return(r?r.A:yg()).p.push(n),n}function sF(e){return ro(e)||gn(22,e),function t(r){if(!xi(r))return r;var n,i=r[ct],o=xs(r);if(i){if(!i.P&&(i.i<4||!zn("ES5").K(i)))return i.t;i.I=!0,n=PS(r,o),i.I=!1}else n=PS(r,o);return Wo(n,function(a,s){i&&nF(i.t,a)===s||eP(n,a,t(s))}),o===3?new Set(n):n}(e)}function PS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return A0(e)}function uF(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[ct];return ll.get(u,o)},set:function(u){var l=this[ct];ll.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ct];if(!s.P)switch(s.i){case 5:n(s)&&Pi(s);break;case 4:r(s)&&Pi(s)}}}function r(o){for(var a=o.t,s=o.k,u=Wa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==ct){var f=a[c];if(f===void 0&&!Va(a,c))return!0;var h=s[c],d=h&&h[ct];if(d?d.t!==f:!tP(h,f))return!0}}var p=!!a[ct];return u.length!==Wa(a).length+(p?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=zn("Patches").$;return ro(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Gr=new hF,iP=Gr.produce;Gr.produceWithPatches.bind(Gr);Gr.setAutoFreeze.bind(Gr);Gr.setUseProxies.bind(Gr);Gr.applyPatches.bind(Gr);Gr.createDraft.bind(Gr);Gr.finishDraft.bind(Gr);function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function dF(e,t){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oP(e){var t=dF(e,"string");return $t(t)=="symbol"?t:String(t)}function Hr(e,t,r){return t=oP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(nr(1));return r(aP)(e,t)}if(typeof e!="function")throw new Error(nr(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(nr(3));return o}function f(g){if(typeof g!="function")throw new Error(nr(4));if(u)throw new Error(nr(5));var v=!0;return l(),s.push(g),function(){if(v){if(u)throw new Error(nr(6));v=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!pF(g))throw new Error(nr(7));if(typeof g.type>"u")throw new Error(nr(8));if(u)throw new Error(nr(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var v=a=s,m=0;m"u")throw new Error(nr(12));if(typeof r(void 0,{type:th.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nr(13))})}function mF(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(nr(14));f[d]=v,c=c||v!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function rh(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var n3=r3,i3=Vh;function o3(e,t){var r=this.__data__,n=i3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var a3=o3,s3=zF,u3=ZF,l3=e3,c3=n3,f3=a3;function bs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=f4}var U0=h4,d4=Hl,p4=U0,v4=ta,m4="[object Arguments]",g4="[object Array]",y4="[object Boolean]",_4="[object Date]",x4="[object Error]",b4="[object Function]",S4="[object Map]",w4="[object Number]",E4="[object Object]",T4="[object RegExp]",C4="[object Set]",O4="[object String]",A4="[object WeakMap]",P4="[object ArrayBuffer]",k4="[object DataView]",R4="[object Float32Array]",I4="[object Float64Array]",N4="[object Int8Array]",L4="[object Int16Array]",M4="[object Int32Array]",D4="[object Uint8Array]",F4="[object Uint8ClampedArray]",B4="[object Uint16Array]",j4="[object Uint32Array]",it={};it[R4]=it[I4]=it[N4]=it[L4]=it[M4]=it[D4]=it[F4]=it[B4]=it[j4]=!0;it[m4]=it[g4]=it[P4]=it[y4]=it[k4]=it[_4]=it[x4]=it[b4]=it[S4]=it[w4]=it[E4]=it[T4]=it[C4]=it[O4]=it[A4]=!1;function $4(e){return v4(e)&&p4(e.length)&&!!it[d4(e)]}var U4=$4;function G4(e){return function(t){return e(t)}}var G0=G4,ih={exports:{}};ih.exports;(function(e,t){var r=hP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ih,ih.exports);var z0=ih.exports,z4=U4,H4=G0,YS=z0,KS=YS&&YS.isTypedArray,V4=KS?H4(KS):z4,_P=V4,W4=Xj,q4=yP,X4=Si,Y4=j0,K4=$0,Z4=_P,Q4=Object.prototype,J4=Q4.hasOwnProperty;function e$(e,t){var r=X4(e),n=!r&&q4(e),i=!r&&!n&&Y4(e),o=!r&&!n&&!i&&Z4(e),a=r||n||i||o,s=a?W4(e.length,String):[],u=s.length;for(var l in e)(t||J4.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||K4(l,u)))&&s.push(l);return s}var xP=e$,t$=Object.prototype;function r$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||t$;return e===r}var H0=r$;function n$(e,t){return function(r){return e(t(r))}}var bP=n$,i$=bP,o$=i$(Object.keys,Object),a$=o$,s$=H0,u$=a$,l$=Object.prototype,c$=l$.hasOwnProperty;function f$(e){if(!s$(e))return u$(e);var t=[];for(var r in Object(e))c$.call(e,r)&&r!="constructor"&&t.push(r);return t}var h$=f$,d$=pP,p$=U0;function v$(e){return e!=null&&p$(e.length)&&!d$(e)}var SP=v$,m$=xP,g$=h$,y$=SP;function _$(e){return y$(e)?m$(e):g$(e)}var Kh=_$,x$=Yh,b$=Kh;function S$(e,t){return e&&x$(t,b$(t),e)}var w$=S$;function E$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var T$=E$,C$=Qn,O$=H0,A$=T$,P$=Object.prototype,k$=P$.hasOwnProperty;function R$(e){if(!C$(e))return A$(e);var t=O$(e),r=[];for(var n in e)n=="constructor"&&(t||!k$.call(e,n))||r.push(n);return r}var I$=R$,N$=xP,L$=I$,M$=SP;function D$(e){return M$(e)?N$(e,!0):L$(e)}var V0=D$,F$=Yh,B$=V0;function j$(e,t){return e&&F$(t,B$(t),e)}var $$=j$,oh={exports:{}};oh.exports;(function(e,t){var r=En,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(oh,oh.exports);var U$=oh.exports;function G$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e[e.applyStyle=32]="applyStyle",e))(ke||{});const DP={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1,replacedUIlable:{}},X0=I0({name:"stage",initialState:At(DP),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n},replaceUIlable:(e,t)=>{e.replacedUIlable[t.payload[0]]=t.payload[1]}}}),{resetStageState:Qh,setStage:we,setStageVar:FP}=X0.actions,Er=X0.actions,l6=X0.reducer;function gc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var BP={exports:{}};/*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 -*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof Ql=="function"&&Ql;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(v){var g=n[l][1][v];return a(g||v)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof Ql=="function"&&Ql,u=0;u"u"&&r(3);var f=Promise;function h(E,I){I&&E.then(function(C){I(null,C)},function(C){I(C)})}function d(E,I,C){typeof I=="function"&&E.then(I),typeof C=="function"&&E.catch(C)}function v(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var I=E.length,C=new ArrayBuffer(I),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function k(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(I){return m=I,m})}function A(E){var I=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),I.deferredOperations.push(C),I.dbReady?I.dbReady=I.dbReady.then(function(){return C.promise}):I.dbReady=C.promise}function P(E){var I=y[E.name],C=I.deferredOperations.pop();if(C)return C.resolve(),C.promise}function F(E,I){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(I),N.promise}function D(E,I){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(I)A(E),E.db.close();else return C(E.db);var M=[E.name];I&&M.push(E.version);var R=u.open.apply(u,M);I&&(R.onupgradeneeded=function(B){var U=R.result;try{U.createObjectStore(E.storeName),B.oldVersion<=1&&U.createObjectStore(p)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+B.oldVersion+" to version "+B.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),R.onerror=function(B){B.preventDefault(),N(R.error)},R.onsuccess=function(){var B=R.result;B.onversionchange=function(U){U.target.close()},C(B),P(E)}})}function H(E){return D(E,!1)}function re(E){return D(E,!0)}function z(E,I){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==I&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var R=E.db.version+1;R>E.version&&(E.version=R)}return!0}return!1}function q(E){return new f(function(I,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var R=btoa(M.target.result||"");I({__local_forage_encoded_blob:!0,data:R,type:E.type})},N.readAsBinaryString(E)})}function ue(E){var I=w(atob(E.data));return c([I],{type:E.type})}function De(E){return E&&E.__local_forage_encoded_blob}function ge(E){var I=this,C=I._initReady().then(function(){var N=y[I._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var I=y[E.name],C=I.forages,N=0;N0&&(!E.db||R.name==="InvalidStateError"||R.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||R.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,I,C,N-1)})}).catch(C);C(R)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(I),I._initReady||(I._initReady=I.ready,I.ready=ge);var R=[];function B(){return f.resolve()}for(var U=0;U>4,J[M++]=(B&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function Id(E){var I=new Uint8Array(E),C="",N;for(N=0;N>2],C+=ot[(I[N]&3)<<4|I[N+1]>>4],C+=ot[(I[N+1]&15)<<2|I[N+2]>>6],C+=ot[I[N+2]&63];return I.length%3===2?C=C.substring(0,C.length-1)+"=":I.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function nN(E,I){var C="";if(E&&(C=xb.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&xb.call(E.buffer)==="[object ArrayBuffer]")){var N,M=sr;E instanceof ArrayBuffer?(N=E,M+=di):(N=E.buffer,C==="[object Int8Array]"?M+=Cs:C==="[object Uint8Array]"?M+=Os:C==="[object Uint8ClampedArray]"?M+=As:C==="[object Int16Array]"?M+=db:C==="[object Uint16Array]"?M+=vb:C==="[object Int32Array]"?M+=pb:C==="[object Uint32Array]"?M+=mb:C==="[object Float32Array]"?M+=gb:C==="[object Float64Array]"?M+=yb:I(new Error("Failed to get type for BinaryArray"))),I(M+Id(N))}else if(C==="[object Blob]"){var R=new FileReader;R.onload=function(){var B=Kt+E.type+"~"+Id(this.result);I(sr+Yo+B)},R.readAsArrayBuffer(E)}else try{I(JSON.stringify(E))}catch(B){console.error("Couldn't convert value into a JSON string: ",E),I(null,B)}}function iN(E){if(E.substring(0,xn)!==sr)return JSON.parse(E);var I=E.substring(_b),C=E.substring(xn,_b),N;if(C===Yo&&Ne.test(I)){var M=I.match(Ne);N=M[1],I=I.substring(M[0].length)}var R=bb(I);switch(C){case di:return R;case Yo:return c([R],{type:N});case Cs:return new Int8Array(R);case Os:return new Uint8Array(R);case As:return new Uint8ClampedArray(R);case db:return new Int16Array(R);case vb:return new Uint16Array(R);case pb:return new Int32Array(R);case mb:return new Uint32Array(R);case gb:return new Float32Array(R);case yb:return new Float64Array(R);default:throw new Error("Unkown type: "+C)}}var Rd={serialize:nN,deserialize:iN,stringToBuffer:bb,bufferToString:Id};function Sb(E,I,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+I.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function oN(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(R,B){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return B(U)}C.db.transaction(function(U){Sb(U,C,function(){I._dbInfo=C,R()},function(W,X){B(X)})},B)});return C.serializer=Rd,M}function pi(E,I,C,N,M,R){E.executeSql(C,N,M,function(B,U){U.code===U.SYNTAX_ERR?B.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[I.storeName],function(W,X){X.rows.length?R(W,U):Sb(W,I,function(){W.executeSql(C,N,M,R)},R)},R):R(B,U)},R)}function aN(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"SELECT * FROM "+B.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=B.serializer.deserialize(J)),M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function sN(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"SELECT * FROM "+B.storeName,[],function(W,X){for(var J=X.rows,se=J.length,Ce=0;Ce0){B(wb.apply(M,[E,W,C,N-1]));return}U(Ce)}})})}).catch(U)});return h(R,C),R}function uN(E,I,C){return wb.apply(this,[E,I,C,1])}function lN(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"DELETE FROM "+B.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function cN(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(B){pi(B,R,"DELETE FROM "+R.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function fN(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(B){pi(B,R,"SELECT COUNT(key) as c FROM "+R.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function hN(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var B=C._dbInfo;B.db.transaction(function(U){pi(U,B,"SELECT key FROM "+B.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function dN(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(B){pi(B,R,"SELECT key FROM "+R.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,R){for(var B=[],U=0;U0}function xN(E){var I=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=Eb(E,I._defaultConfig),_N()?(I._dbInfo=C,C.serializer=Rd,f.resolve()):f.reject()}function bN(E){var I=this,C=I.ready().then(function(){for(var N=I._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var R=localStorage.key(M);R.indexOf(N)===0&&localStorage.removeItem(R)}});return h(C,E),C}function SN(E,I){var C=this;E=v(E);var N=C.ready().then(function(){var M=C._dbInfo,R=localStorage.getItem(M.keyPrefix+E);return R&&(R=M.serializer.deserialize(R)),R});return h(N,I),N}function wN(E,I){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,R=M.keyPrefix,B=R.length,U=localStorage.length,W=1,X=0;X=0;B--){var U=localStorage.key(B);U.indexOf(R)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,I),M}var kN={_driver:"localStorageWrapper",_initStorage:xN,_support:gN(),iterate:wN,getItem:SN,setItem:AN,removeItem:ON,clear:bN,length:CN,key:EN,keys:TN,dropInstance:PN},IN=function(I,C){return I===C||typeof I=="number"&&typeof C=="number"&&isNaN(I)&&isNaN(C)},RN=function(I,C){for(var N=I.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var R=new f(function(B,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=Nd.concat("_initStorage"),se=0,Ce=J.length;se"u"}function d5(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function p5(e){return Vo.call(e)==="[object ArrayBuffer]"}function v5(e){return typeof FormData<"u"&&e instanceof FormData}function m5(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function g5(e){return typeof e=="string"}function y5(e){return typeof e=="number"}function JA(e){return e!==null&&typeof e=="object"}function Vc(e){if(Vo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _5(e){return Vo.call(e)==="[object Date]"}function x5(e){return Vo.call(e)==="[object File]"}function b5(e){return Vo.call(e)==="[object Blob]"}function eP(e){return Vo.call(e)==="[object Function]"}function S5(e){return JA(e)&&eP(e.pipe)}function w5(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function E5(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T5(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function x0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),_0(e))for(var r=0,n=e.length;r"u"||(Qo.isArray(u)?l=l+"[]":u=[u],Qo.forEach(u,function(f){Qo.isDate(f)?f=f.toISOString():Qo.isObject(f)&&(f=JSON.stringify(f)),o.push(RS(l)+"="+RS(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},A5=Br;function Ih(){this.handlers=[]}Ih.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Ih.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Ih.prototype.forEach=function(t){A5.forEach(this.handlers,function(n){n!==null&&t(n)})};var P5=Ih,k5=Br,I5=function(t,r){k5.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},rP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},vp,NS;function nP(){if(NS)return vp;NS=1;var e=rP;return vp=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},vp}var mp,LS;function R5(){if(LS)return mp;LS=1;var e=nP();return mp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},mp}var gp,MS;function N5(){if(MS)return gp;MS=1;var e=Br;return gp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),gp}var yp,FS;function L5(){return FS||(FS=1,yp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),yp}var _p,DS;function M5(){return DS||(DS=1,_p=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),_p}var xp,BS;function F5(){if(BS)return xp;BS=1;var e=L5(),t=M5();return xp=function(n,i){return n&&!e(i)?t(n,i):i},xp}var bp,jS;function D5(){if(jS)return bp;jS=1;var e=Br,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return bp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},bp}var Sp,$S;function B5(){if($S)return Sp;$S=1;var e=Br;return Sp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Sp}var wp,US;function Rh(){if(US)return wp;US=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,wp=e,wp}var Ep,GS;function zS(){if(GS)return Ep;GS=1;var e=Br,t=R5(),r=N5(),n=tP,i=F5(),o=D5(),a=B5(),s=nP(),u=Nh(),l=Rh();return Ep=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u.transitional;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Ep}var Tp,HS;function Nh(){if(HS)return Tp;HS=1;var e=Br,t=I5,r=rP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=zS()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(v){if(d)throw v.name==="SyntaxError"?r(v,this,"E_JSON_PARSE"):v}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Tp=s,Tp}var j5=Br,$5=Nh(),U5=function(t,r,n){var i=this||$5;return j5.forEach(n,function(a){t=a.call(i,t,r)}),t},Cp,VS;function iP(){return VS||(VS=1,Cp=function(t){return!!(t&&t.__CANCEL__)}),Cp}var WS=Br,Op=U5,G5=iP(),z5=Nh(),H5=Rh();function Ap(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new H5("canceled")}var V5=function(t){Ap(t),t.headers=t.headers||{},t.data=Op.call(t,t.data,t.headers,t.transformRequest),t.headers=WS.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),WS.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||z5.adapter;return r(t).then(function(i){return Ap(t),i.data=Op.call(t,i.data,i.headers,t.transformResponse),i},function(i){return G5(i)||(Ap(t),i&&i.response&&(i.response.data=Op.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Pr=Br,oP=function(t,r){r=r||{};var n={};function i(c,f){return Pr.isPlainObject(c)&&Pr.isPlainObject(f)?Pr.merge(c,f):Pr.isPlainObject(f)?Pr.merge({},f):Pr.isArray(f)?f.slice():f}function o(c){if(Pr.isUndefined(r[c])){if(!Pr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Pr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Pr.isUndefined(r[c])){if(!Pr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Pr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Pr.isUndefined(d)&&h!==u||(n[f]=d)}),n},Pp,qS;function aP(){return qS||(qS=1,Pp={version:"0.24.0"}),Pp}var W5=aP().version,b0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){b0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var XS={};b0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+W5+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!XS[a]&&(XS[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function q5(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var X5={assertOptions:q5,validators:b0},sP=Br,Y5=tP,YS=P5,KS=V5,Lh=oP,uP=X5,Jo=uP.validators;function Ol(e){this.defaults=e,this.interceptors={request:new YS,response:new YS}}Ol.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Lh(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&uP.assertOptions(r,{silentJSONParsing:Jo.transitional(Jo.boolean),forcedJSONParsing:Jo.transitional(Jo.boolean),clarifyTimeoutError:Jo.transitional(Jo.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[KS,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=KS(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Ol.prototype.getUri=function(t){return t=Lh(this.defaults,t),Y5(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};sP.forEach(["delete","get","head","options"],function(t){Ol.prototype[t]=function(r,n){return this.request(Lh(n||{},{method:t,url:r,data:(n||{}).data}))}});sP.forEach(["post","put","patch"],function(t){Ol.prototype[t]=function(r,n,i){return this.request(Lh(i||{},{method:t,url:r,data:n}))}});var K5=Ol,kp,ZS;function Z5(){if(ZS)return kp;ZS=1;var e=Rh();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var s6=a6;const u6=Or(s6),ne=new u6,l6={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{textSpeed:{title:"Speed of Text Showing",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},c6={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},f6={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},h6={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},d6={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},p6={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var Wo=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(Wo||{});const Bf={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},v6={en:{translation:l6},zhCn:{translation:f6},jp:{translation:c6},fr:{translation:h6},de:{translation:d6},zhTw:{translation:p6}},m6=0;var fr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(fr||{}),Kr=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(Kr||{}),Ln=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Ln||{}),Ku=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(Ku||{});const cP={slPage:1,volumeMain:100,textSpeed:fr.normal,autoSpeed:fr.normal,textSize:Kr.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Ln.song,textboxOpacity:75,language:Wo.zhCn,voiceInterruption:Ku.yes},tg={saveData:[],optionData:cP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},fP=t0({name:"userData",initialState:Et(tg),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetOptionSet(e){Object.assign(e.optionData,cP)},resetAllData(e){Object.assign(e,Et(tg))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:g6,resetUserData:S0,setOptionData:_t,setGlobalVar:y6,setSlPage:hP,unlockCgInUserData:dP,unlockBgmInUserData:pP,setFastSave:_6,resetOptionSet:x6,resetSaveData:b6,resetAllData:S6}=fP.actions,w6=fP.reducer,vP={backlog_size:200,fast_timeout:50},E6={textInitialDelay:80};class T6{constructor(t){le(this,"isSaveBacklogNext",!1);le(this,"backlog",[]);le(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=j.getState().stage,r=Et(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:Et(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>vP.backlog_size;)this.getBacklog().shift()}}function C6(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const tw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class O6{constructor(){le(this,"settledScenes",[]);le(this,"settledAssets",[]);le(this,"sceneData",Et(tw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=Et(tw.currentScene)}}class A6{constructor(){le(this,"nextEnterAnimationName",new Map);le(this,"nextExitAnimationName",new Map);le(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}function Pe(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const $e={audioContext:new AudioContext,source:null,analyser:void 0,dataArray:void 0,audioLevelInterval:setInterval(()=>{},0),blinkTimerID:setTimeout(()=>{},0),maxAudioLevel:0},P6=e=>($e.maxAudioLevel=Math.max(e,$e.maxAudioLevel),{OPEN_THRESHOLD:$e.maxAudioLevel*.75,HALF_OPEN_THRESHOLD:$e.maxAudioLevel*.5}),k6=e=>{let t=!1;function r(){var n;t||e.animationEndTime&&Date.now()>e.animationEndTime||(t=!0,(n=O.gameplay.pixiStage)==null||n.performBlinkAnimation(e.key,e.animationItem,"closed",e.pos),$e.blinkTimerID=setTimeout(()=>{var o;(o=O.gameplay.pixiStage)==null||o.performBlinkAnimation(e.key,e.animationItem,"open",e.pos),t=!1;const i=Math.random()*300+3500;$e.blinkTimerID=setTimeout(r,i)},200))}r()},I6=(e,t,r)=>{e.getByteFrequencyData(t);let n=0;for(let i=0;i{var h,d;const{audioLevel:t,OPEN_THRESHOLD:r,HALF_OPEN_THRESHOLD:n,currentMouthValue:i,lerpSpeed:o,key:a,animationItem:s,pos:u}=e;let l;t>r?l=1:t>n?l=.5:l=0;const c=i+(l-i)*o;(h=O.gameplay.pixiStage)==null||h.setModelMouthY(a,t);let f;c>.75?f="open":c>.25?f="half_open":f="closed",s!==void 0&&((d=O.gameplay.pixiStage)==null||d.performMouthSyncAnimation(a,s,f,u))};class R6{constructor(t){le(this,"cases",[]);le(this,"subject");le(this,"defaultCase");this.subject=t}with(t,r){return this.cases.push([t,r]),this}endsWith(t,r){return this.cases.push([t,r]),this.evaluate()}default(t){return this.defaultCase=t,this.evaluate()}evaluate(){for(const[t,r]of this.cases)if(t===this.subject)return r();if(this.defaultCase)return this.defaultCase()}}function Mh(e){return new R6(e)}const N6=e=>{ne.debug("play vocal");const t="vocal-play",r=Pe(e,"vocal"),n=Pe(e,"volume");let i;i=j.getState().stage;let o="",a="";const s=i.freeFigure,u=i.figureAssociatedAnimation;let l=0,c=0;const f=1;let h=document.getElementById("currentVocal");O.gameplay.performController.unmountPerform("vocal-play",!0),h!==null&&(h.currentTime=0,h.pause());for(const v of e.args)v.value===!0&&Mh(v.key).with("left",()=>{o="left"}).with("right",()=>{o="right"}).endsWith("center",()=>{o="center"}),v.key==="figureId"&&(a=`${v.value.toString()}`);j.dispatch(Te({key:"playVocal",value:r})),j.dispatch(Te({key:"vocal",value:r}));let d=!1;return{arrangePerformPromise:new Promise(v=>{setTimeout(()=>{let g=document.getElementById("currentVocal");if(typeof n=="number"&&n>=0&&n<=100?j.dispatch(Te({key:"vocalVolume",value:n})):j.dispatch(Te({key:"vocalVolume",value:100})),g!==null){g.currentTime=0;const p={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{g.oncanplay=()=>{},clearInterval($e.audioLevelInterval),g.pause(),a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);rw({audioLevel:0,OPEN_THRESHOLD:1,HALF_OPEN_THRESHOLD:1,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o}),clearTimeout($e.blinkTimerID)},blockingNext:()=>!1,blockingAuto:()=>!d,skipNextCollect:!0,stopTimeout:void 0};O.gameplay.performController.arrangeNewPerform(p,e,!1),g.oncanplay=()=>{a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);if(m){const y=s.find(b=>b.key===a);if(y&&(o=y.basePosition),!$e.audioContext){let b;b=new AudioContext,$e.analyser=b.createAnalyser(),$e.analyser.fftSize=256,$e.dataArray=new Uint8Array($e.analyser.frequencyBinCount)}$e.analyser||($e.analyser=$e.audioContext.createAnalyser(),$e.analyser.fftSize=256),l=$e.analyser.frequencyBinCount,$e.dataArray=new Uint8Array(l);let _=document.getElementById("currentVocal");$e.source||($e.source=$e.audioContext.createMediaElementSource(_),$e.source.connect($e.analyser)),$e.analyser.connect($e.audioContext.destination),$e.audioLevelInterval=setInterval(()=>{const b=I6($e.analyser,$e.dataArray,l),{OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T}=P6(b);rw({audioLevel:b,OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o})},50);let x;x=Date.now()+1e4,k6({key:a,animationItem:m,pos:o,animationEndTime:x}),setTimeout(()=>{clearTimeout($e.blinkTimerID)},1e4)}g==null||g.play()},g.onended=()=>{for(const m of O.gameplay.performController.performList)m.performName===t&&(d=!0,m.stopFunction(),O.gameplay.performController.unmountPerform(m.performName))}}},1)})}};function w0(e){switch(e){case fr.slow:return 80;case fr.normal:return 35;case fr.fast:return 3}}function mP(e){switch(e){case fr.slow:return 800;case fr.normal:return 350;case fr.fast:return 200}}const gP=e=>{const t=j.getState().stage,r=j.getState().userData,n=j.dispatch;let i=Math.random().toString(),o=e.content;const a=Pe(e,"concat"),s=Pe(e,"notend"),u=Pe(e,"speaker"),l=Pe(e,"clear"),c=Pe(e,"vocal");a?(i=t.currentDialogKey,o=t.showText+o,n(Te({key:"currentConcatDialogPrev",value:t.showText}))):n(Te({key:"currentConcatDialogPrev",value:""})),n(Te({key:"showText",value:o})),n(Te({key:"vocal",value:""})),r.optionData.voiceInterruption===Ku.no&&c===null||(n(Te({key:"playVocal",value:""})),O.gameplay.performController.unmountPerform("vocal-play",!0)),n(Te({key:"currentDialogKey",value:i}));const h=w0(r.optionData.textSpeed)*e.content.length;for(const p of e.args)if(p.key==="fontSize")switch(p.value){case"default":n(Te({key:"showTextSize",value:-1}));break;case"small":n(Te({key:"showTextSize",value:Kr.small}));break;case"medium":n(Te({key:"showTextSize",value:Kr.medium}));break;case"large":n(Te({key:"showTextSize",value:Kr.large}));break}let d=t.showName;u!==null&&(d=u),l&&(d=""),n(Te({key:"showName",value:d})),c&&N6(e);const v=tx();let g=750-r.optionData.textSpeed*250;return s&&(g=0),{performName:v,duration:h+g,isHoldOn:!1,stopFunction:()=>{O.eventBus.emit("text-settle")},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:s}},L6={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0},M6=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var Rr=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Rr||{});const Nr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const nw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=F6(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=D6(n,i,t),n};function F6(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function D6(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var St;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(St||(St={}));function yP(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,St.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const B6=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,St.vocal);case oe.changeBg:return r(e,St.background);case oe.changeFigure:return r(e,St.figure);case oe.bgm:return r(e,St.bgm);case oe.callScene:return r(e,St.scene);case oe.changeScene:return r(e,St.scene);case oe.miniAvatar:return r(e,St.figure);case oe.video:return r(e,St.video);case oe.choose:return j6(e,r);case oe.unlockBgm:return r(e,St.bgm);case oe.unlockCg:return r(e,St.background);default:return e}};function j6(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,St.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:St.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:St.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:St.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:St.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:St.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:St.bgm})),n},U6=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},G6=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=nw(c,r,n),i=l.type;for(const v of l.additionalArgs)i===oe.say&&v.key==="speaker"||s.push(v)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=nw(c,r,n),i=l.type;for(const v of l.additionalArgs)s.push(v)}const d=/ -/.exec(f);if(d){const v=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of yP(v,t))s.push(g)}return o=B6(f,i,t),u=$6(i,o,s),a=U6(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var Jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},z6=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,H6=z6,V6=H6,W6=typeof self=="object"&&self&&self.Object===Object&&self,q6=V6||W6||Function("return this")(),Fh=q6,X6=Fh,Y6=X6.Symbol,_P=Y6,iw=_P,xP=Object.prototype,K6=xP.hasOwnProperty,Z6=xP.toString,Hs=iw?iw.toStringTag:void 0;function Q6(e){var t=K6.call(e,Hs),r=e[Hs];try{e[Hs]=void 0;var n=!0}catch{}var i=Z6.call(e);return n&&(t?e[Hs]=r:delete e[Hs]),i}var J6=Q6,eG=Object.prototype,tG=eG.toString;function rG(e){return tG.call(e)}var nG=rG,ow=_P,iG=J6,oG=nG,aG="[object Null]",sG="[object Undefined]",aw=ow?ow.toStringTag:void 0;function uG(e){return e==null?e===void 0?sG:aG:aw&&aw in Object(e)?iG(e):oG(e)}var lG=uG;function cG(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bP=cG,fG=lG,hG=bP,dG="[object AsyncFunction]",pG="[object Function]",vG="[object GeneratorFunction]",mG="[object Proxy]";function gG(e){if(!hG(e))return!1;var t=fG(e);return t==pG||t==vG||t==dG||t==mG}var yG=gG,_G=Fh,xG=_G["__core-js_shared__"],bG=xG,Np=bG,sw=function(){var e=/[^.]+$/.exec(Np&&Np.keys&&Np.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SG(e){return!!sw&&sw in e}var wG=SG,EG=Function.prototype,TG=EG.toString;function CG(e){if(e!=null){try{return TG.call(e)}catch{}try{return e+""}catch{}}return""}var OG=CG,AG=yG,PG=wG,kG=bP,IG=OG,RG=/[\\^$.*+?()[\]{}|]/g,NG=/^\[object .+?Constructor\]$/,LG=Function.prototype,MG=Object.prototype,FG=LG.toString,DG=MG.hasOwnProperty,BG=RegExp("^"+FG.call(DG).replace(RG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jG(e){if(!kG(e)||PG(e))return!1;var t=AG(e)?BG:NG;return t.test(IG(e))}var $G=jG;function UG(e,t){return e==null?void 0:e[t]}var GG=UG,zG=$G,HG=GG;function VG(e,t){var r=HG(e,t);return zG(r)?r:void 0}var E0=VG,WG=E0,qG=WG(Object,"create"),Dh=qG,uw=Dh;function XG(){this.__data__=uw?uw(null):{},this.size=0}var YG=XG;function KG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZG=KG,QG=Dh,JG="__lodash_hash_undefined__",ez=Object.prototype,tz=ez.hasOwnProperty;function rz(e){var t=this.__data__;if(QG){var r=t[e];return r===JG?void 0:r}return tz.call(t,e)?t[e]:void 0}var nz=rz,iz=Dh,oz=Object.prototype,az=oz.hasOwnProperty;function sz(e){var t=this.__data__;return iz?t[e]!==void 0:az.call(t,e)}var uz=sz,lz=Dh,cz="__lodash_hash_undefined__";function fz(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lz&&t===void 0?cz:t,this}var hz=fz,dz=YG,pz=ZG,vz=nz,mz=uz,gz=hz;function ps(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var Mz=Lz,Fz=Bh;function Dz(e,t){var r=this.__data__,n=Fz(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Bz=Dz,jz=xz,$z=Pz,Uz=Rz,Gz=Mz,zz=Bz;function vs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var zH=GH;function HH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=h9){var l=t?null:c9(e);if(l)return f9(l);a=!1,i=l9,u=new a9}else u=t?[]:s;e:for(;++n{const u=e.split(` -`);let l=[],c=[];const f=u.map(h=>{const d=G6(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=g9(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function _9(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of yP(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function x9(e){return e.replaceAll("\r","").split(` -`).map(r=>_9(r)).filter(r=>r.command!=="")}class b9{constructor(t,r,n,i){le(this,"assetsPrefetcher");le(this,"assetSetter");le(this,"ADD_NEXT_ARG_LIST");le(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return y9(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return x9(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; -`,"")}}const S9="_FullScreenPerform_main_7er8a_2",w9="_FullScreenPerform_element_7er8a_9",E9="_fullScreen_video_7er8a_17",T9="_fadeIn_7er8a_74",C9="_intro_showSoftly_7er8a_1",O9="_slideIn_7er8a_80",A9="_typingEffect_7er8a_86",P9="_typing_7er8a_86",k9="_blinkCursor_7er8a_1",I9="_pixelateEffect_7er8a_95",R9="_pixelateAnimation_7er8a_1",N9="_revealAnimation_7er8a_101",L9="_videoContainer_7er8a_115",wn={FullScreenPerform_main:S9,FullScreenPerform_element:w9,fullScreen_video:E9,fadeIn:T9,intro_showSoftly:C9,slideIn:O9,typingEffect:A9,typing:P9,blinkCursor:k9,pixelateEffect:I9,pixelateAnimation:R9,revealAnimation:N9,videoContainer:L9},M9=e=>{const t=`introPerform${Math.random().toString()}`;let r,n="rgba(0, 0, 0, 1)",i="rgba(255, 255, 255, 1)";const o=(b,w=0)=>{switch(b){case"fadeIn":return wn.fadeIn;case"slideIn":return wn.slideIn;case"typingEffect":return`${wn.typingEffect} ${w}`;case"pixelateEffect":return wn.pixelateEffect;case"revealAnimation":return wn.revealAnimation;default:return wn.fadeIn}};let a=wn.fadeIn,s=1500,u=!1;for(const b of e.args){if(b.key==="backgroundColor"&&(n=b.value||"rgba(0, 0, 0, 1)"),b.key==="fontColor"&&(i=b.value||"rgba(255, 255, 255, 1)"),b.key==="fontSize")switch(b.value){case"small":r="280%";break;case"medium":r="350%";break;case"large":r="420%";break}if(b.key==="animation"&&(a=o(b.value)),b.key==="delayTime"){const w=parseInt(b.value.toString(),10);s=isNaN(w)?s:w}b.key==="hold"&&b.value===!0&&(u=!0)}const l={background:n,color:i,fontSize:r||"350%",width:"100%",height:"100%"},c=e.content.split(/\|/);let h=1e3+s*c.length;const d=u?1e3*60*60*24:1e3+s*c.length;let v=!0,g=setTimeout(()=>{v=!1},h),p=setTimeout(()=>{});const m=()=>{const b=document.getElementById("introContainer");if(h-=s,clearTimeout(g),g=setTimeout(()=>{v=!1},h),b){const w=b.childNodes[0].childNodes[0].childNodes,T=w.length;w.forEach((k,A)=>{const P=Number(k.style.animationDelay.split("ms")[0]);P>0&&(k.style.animationDelay=`${P-s}ms`),A===T-1&&(P===0?(clearTimeout(p),O.gameplay.performController.unmountPerform(t)):(clearTimeout(p),u||(p=setTimeout(()=>{O.gameplay.performController.unmountPerform(t),setTimeout(Ut,0)},h))))})}};O.eventBus.on("__NEXT",m);const y=c.map((b,w)=>S.jsxs("div",{style:{animationDelay:`${s*w}ms`},className:a,children:[b,b===""?" ":""]},"introtext"+w+Math.random().toString())),_=S.jsx("div",{style:l,children:S.jsx("div",{style:{padding:"3em 4em 3em 4em"},children:y})});Mn.render(_,document.getElementById("introContainer"));const x=document.getElementById("introContainer");return x&&(x.style.display="block"),{performName:t,duration:d,isHoldOn:!1,stopFunction:()=>{const b=document.getElementById("introContainer");b&&(b.style.display="none"),O.eventBus.off("__NEXT",m)},blockingNext:()=>v,blockingAuto:()=>v,stopTimeout:void 0,goNextWhenOver:!0}};function Zu(e,t,r){let n;const o=j.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function wP(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function EP(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const T0={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function TP(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Mp=.001,D9=.01,fw=10,B9=.05,j9=1;function $9({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;F9(e<=fw*1e3);let a=1-t;a=rg(B9,j9,a),e=rg(D9,fw,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=ng(l,a),v=Math.exp(-f);return Mp-h/d*v},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,v=Math.exp(-f),g=ng(Math.pow(l,2),a);return(-i(l)+Mp>0?-1:1)*((h-d)*v)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Mp+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=G9(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const U9=12;function G9(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function V9(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!hw(e,H9)&&hw(e,z9)){const r=$9(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function C0(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=TP(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=V9(o),d=dw,v=dw;function g(){const p=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=ng(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((p+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},v=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(p+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(p+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(p+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((p+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:p=>{const m=d(p);if(h)a.done=p>=f;else{const y=v(p)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}C0.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const dw=e=>0,CP=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},O0=(e,t,r)=>-r*e+r*t+e,OP=(e,t)=>r=>Math.max(Math.min(r,t),e),Su=e=>e%1?Number(e.toFixed(5)):e,$f=/(-)?([\d]*\.?[\d])+/g,ig=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,W9=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Al(e){return typeof e=="string"}const $h={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},AP=Object.assign(Object.assign({},$h),{transform:OP(0,1)});Object.assign(Object.assign({},$h),{default:1});const q9=e=>({test:t=>Al(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wu=q9("%");Object.assign(Object.assign({},wu),{parse:e=>wu.parse(e)/100,transform:e=>wu.transform(e*100)});const A0=(e,t)=>r=>!!(Al(r)&&W9.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),PP=(e,t,r)=>n=>{if(!Al(n))return n;const[i,o,a,s]=n.match($f);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},wo={test:A0("hsl","hue"),parse:PP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+wu.transform(Su(t))+", "+wu.transform(Su(r))+", "+Su(AP.transform(n))+")"},X9=OP(0,255),Fp=Object.assign(Object.assign({},$h),{transform:e=>Math.round(X9(e))}),Ei={test:A0("rgb","red"),parse:PP("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Fp.transform(e)+", "+Fp.transform(t)+", "+Fp.transform(r)+", "+Su(AP.transform(n))+")"};function Y9(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const og={test:A0("#"),parse:Y9,transform:Ei.transform},Uh={test:e=>Ei.test(e)||og.test(e)||wo.test(e),parse:e=>Ei.test(e)?Ei.parse(e):wo.test(e)?wo.parse(e):og.parse(e),transform:e=>Al(e)?e:e.hasOwnProperty("red")?Ei.transform(e):wo.transform(e)},kP="${c}",IP="${n}";function K9(e){var t,r,n,i;return isNaN(e)&&Al(e)&&((r=(t=e.match($f))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(ig))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function RP(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(ig);n&&(r=n.length,e=e.replace(ig,kP),t.push(...n.map(Uh.parse)));const i=e.match($f);return i&&(e=e.replace($f,IP),t.push(...i.map($h.parse))),{values:t,numColors:r,tokenised:e}}function NP(e){return RP(e).values}function LP(e){const{values:t,numColors:r,tokenised:n}=RP(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function Q9(e){const t=NP(e);return LP(e)(t.map(Z9))}const MP={test:K9,parse:NP,createTransformer:LP,getAnimatableNone:Q9};function Dp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function pw({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Dp(u,s,e+1/3),o=Dp(u,s,e),a=Dp(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const J9=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},eV=[og,Ei,wo],vw=e=>eV.find(t=>t.test(e)),FP=(e,t)=>{let r=vw(e),n=vw(t),i=r.parse(e),o=n.parse(t);r===wo&&(i=pw(i),r=Ei),n===wo&&(o=pw(o),n=Ei);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=J9(i[u],o[u],s));return a.alpha=O0(i.alpha,o.alpha,s),r.transform(a)}},tV=e=>typeof e=="number",rV=(e,t)=>r=>t(e(r)),DP=(...e)=>e.reduce(rV);function BP(e,t){return tV(e)?r=>O0(e,t,r):Uh.test(e)?FP(e,t):$P(e,t)}const jP=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>BP(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=BP(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function mw(e){const t=MP.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=MP.createTransformer(t),n=mw(e),i=mw(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?DP(jP(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},iV=(e,t)=>r=>O0(e,t,r);function oV(e){if(typeof e=="number")return iV;if(typeof e=="string")return Uh.test(e)?FP:$P;if(Array.isArray(e))return jP;if(typeof e=="object")return nV}function aV(e,t,r){const n=[],i=r||oV(e[0]),o=e.length-1;for(let a=0;ar(CP(e,t,n))}function uV(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=CP(e[o],e[o+1],i);return t[o](s)}}function UP(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;cw(o===t.length),cw(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=aV(t,n,i),s=o===2?sV(e,a):uV(e,a);return r?u=>s(rg(e[0],e[o-1],u)):s}const lV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cV=e=>t=>Math.pow(t,e),fV=e=>t=>t*t*((e+1)*t-e),hV=e=>{const t=fV(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},dV=1.525,pV=cV(2),vV=lV(pV);hV(dV);function mV(e,t){return e.map(()=>t||vV).splice(0,e.length-1)}function gV(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function yV(e,t){return e.map(r=>r*t)}function qc({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=yV(n&&n.length===a.length?n:gV(a),i);function u(){return UP(s,a,{ease:Array.isArray(r)?r:mV(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function _V({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const gw={keyframes:qc,spring:C0,decay:_V};function xV(e){if(Array.isArray(e.to))return qc;if(gw[e.type])return gw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?qc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?C0:qc}const GP=1/60*1e3,bV=typeof performance<"u"?()=>performance.now():()=>Date.now(),zP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bV()),GP);function SV(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=SV(()=>Qu=!0),e),{}),EV=Pl.reduce((e,t)=>{const r=Gh[t];return e[t]=(n,i=!1,o=!1)=>(Qu||OV(),r.schedule(n,i,o)),e},{}),TV=Pl.reduce((e,t)=>(e[t]=Gh[t].cancel,e),{});Pl.reduce((e,t)=>(e[t]=()=>Gh[t].process(Eu),e),{});const CV=e=>Gh[e].process(Eu),HP=e=>{Qu=!1,Eu.delta=ag?GP:Math.max(Math.min(e-Eu.timestamp,wV),1),Eu.timestamp=e,sg=!0,Pl.forEach(CV),sg=!1,Qu&&(ag=!1,zP(HP))},OV=()=>{Qu=!0,ag=!0,sg||zP(HP)},AV=EV;function VP(e,t,r=0){return e-t-r}function PV(e,t,r=0,n=!0){return n?VP(t+-e,t,r):t-(e-t)+r}function kV(e,t,r,n){return n?e>=t+r:e<=-r}const IV=e=>{const t=({delta:r})=>e(r);return{start:()=>AV.update(t,!0),stop:()=>TV.update(t)}};function RV(e){var t,r,{from:n,autoplay:i=!0,driver:o=IV,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:v}=e,g=TP(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:p}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const k=xV(g);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,p)&&(T=UP([0,100],[n,p],{clamp:!1}),n=0,p=100);const A=k(Object.assign(Object.assign({},g),{from:n,to:p}));function P(){y++,u==="reverse"?(w=y%2===0,a=PV(a,_,l,w)):(a=VP(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function F(){m.stop(),h&&h()}function D(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}v==null||v(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}var NV="__lodash_hash_undefined__";function LV(e){return this.__data__.set(e,NV),this}var MV=LV;function FV(e){return this.__data__.has(e)}var DV=FV,BV=o0,jV=MV,$V=DV;function Uf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new BV;++ts))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&XV?new HV:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=RV({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,$p(x,Xn)),Xn(y)||(s.scale.x=y),Xn(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();j.dispatch(Ir.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=v(),x=$p({x:m.x,y:m.y,..._},Xn);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(Xn(y.x)||(n.pixiContainer.scale.x=y.x),Xn(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=$p({x:m.x,y:m.y,..._},Xn);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(Xn(y.x)||(n.pixiContainer.scale.x=y.x),Xn(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function v(){return e[0]}function g(){return e[e.length-1]}function p(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...k}=m;return k}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:p}}function Gf(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=j.getState().stage.effects.find(u=>u.target===t),s=Et({...(a==null?void 0:a.transform)??T0,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),n2(i,t,r)}return null}function xr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function xi(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=wP(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=Gf(o,e,xr(o)),n=xr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=EP(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=Gf(o,e,xr(o)),n=xr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const rX=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=j.dispatch;r!==""&&i(dP({name:r,url:t,series:n})),i(Ir.removeEffectByTargetId("bg-main"));const o=Pe(e,"transform");let a=Pe(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=Zu("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=xr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=Zu("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=xr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Pe(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Pe(e,"enter").toString()),a=xr(Pe(e,"enter").toString())),Pe(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Pe(e,"exit").toString()),a=xr(Pe(e,"exit").toString())),i(Te({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function nX(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const v=j.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=Nr(u,Rr.figure);break;case"mouthClose":l=b.value.toString(),l=Nr(l,Rr.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=Nr(c,Rr.figure);break;case"eyesOpen":f=b.value.toString(),f=Nr(f,Rr.figure);break;case"eyesClose":h=b.value.toString(),h=Nr(h,Rr.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=j.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),v(Te({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=j.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&j.getState().stage.figName===e.content&&(_=!1),t==="left"&&j.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&j.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;j.dispatch(Ir.removeEffectByTargetId(b)),j.dispatch(Ir.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Pe(w,"transform"),k=Pe(w,"duration");k&&typeof k=="number"&&(s=k);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=Zu(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=xr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=Zu(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=xr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const F=Pe(w,"enter"),D=Pe(w,"exit");F&&(O.animationManager.nextEnterAnimationName.set(b,F.toString()),s=xr(F.toString())),D&&(O.animationManager.nextExitAnimationName.set(b+"-off",D.toString()),s=xr(D.toString()))};if(n){j.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&v(Ir.setLive2dMotion({target:a,motion:i})),o&&v(Ir.setLive2dExpression({target:a,expression:o})),v(Ir.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&v(Ir.setLive2dMotion({target:a,motion:i})),o&&v(Ir.setLive2dExpression({target:a,expression:o})),v(Te({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const iX=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),j.dispatch(Te({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var N0={exports:{}},i2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function aX(e){return e!==null&&!ug(e)&&e.constructor!==null&&!ug(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function o2(e){return to.call(e)==="[object ArrayBuffer]"}function sX(e){return to.call(e)==="[object FormData]"}function uX(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&o2(e.buffer),t}function lX(e){return typeof e=="string"}function cX(e){return typeof e=="number"}function a2(e){return e!==null&&typeof e=="object"}function Xc(e){if(to.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function fX(e){return to.call(e)==="[object Date]"}function hX(e){return to.call(e)==="[object File]"}function dX(e){return to.call(e)==="[object Blob]"}function s2(e){return to.call(e)==="[object Function]"}function pX(e){return a2(e)&&s2(e.pipe)}function vX(e){return to.call(e)==="[object URLSearchParams]"}function mX(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function gX(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function M0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),L0(e))for(var r=0,n=e.length;r"u"||(ea.isArray(u)?l=l+"[]":u=[u],ea.forEach(u,function(f){ea.isDate(f)?f=f.toISOString():ea.isObject(f)&&(f=JSON.stringify(f)),o.push(Nw(l)+"="+Nw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},xX=Ar;function Vh(){this.handlers=[]}Vh.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Vh.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Vh.prototype.forEach=function(t){xX.forEach(this.handlers,function(n){n!==null&&t(n)})};var bX=Vh,SX=Ar,wX=function(t,r){SX.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},l2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},c2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Up,Lw;function f2(){if(Lw)return Up;Lw=1;var e=l2;return Up=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},Up}var Gp,Mw;function EX(){if(Mw)return Gp;Mw=1;var e=f2();return Gp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Gp}var zp,Fw;function TX(){if(Fw)return zp;Fw=1;var e=Ar;return zp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zp}var Hp,Dw;function CX(){return Dw||(Dw=1,Hp=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Hp}var Vp,Bw;function OX(){return Bw||(Bw=1,Vp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Vp}var Wp,jw;function AX(){if(jw)return Wp;jw=1;var e=CX(),t=OX();return Wp=function(n,i){return n&&!e(i)?t(n,i):i},Wp}var qp,$w;function PX(){if($w)return qp;$w=1;var e=Ar,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return qp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},qp}var Xp,Uw;function kX(){if(Uw)return Xp;Uw=1;var e=Ar;return Xp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Xp}var Yp,Gw;function Wh(){if(Gw)return Yp;Gw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Yp=e,Yp}var Kp,zw;function Hw(){if(zw)return Kp;zw=1;var e=Ar,t=EX(),r=TX(),n=u2,i=AX(),o=PX(),a=kX(),s=f2(),u=c2,l=Wh();return Kp=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Kp}var Wt=Ar,Vw=wX,IX=l2,RX=c2,NX={"Content-Type":"application/x-www-form-urlencoded"};function Ww(e,t){!Wt.isUndefined(e)&&Wt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function LX(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Hw()),e}function MX(e,t,r){if(Wt.isString(e))try{return(t||JSON.parse)(e),Wt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var qh={transitional:RX,adapter:LX(),transformRequest:[function(t,r){return Vw(r,"Accept"),Vw(r,"Content-Type"),Wt.isFormData(t)||Wt.isArrayBuffer(t)||Wt.isBuffer(t)||Wt.isStream(t)||Wt.isFile(t)||Wt.isBlob(t)?t:Wt.isArrayBufferView(t)?t.buffer:Wt.isURLSearchParams(t)?(Ww(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Wt.isObject(t)||r&&r["Content-Type"]==="application/json"?(Ww(r,"application/json"),MX(t)):t}],transformResponse:[function(t){var r=this.transitional||qh.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Wt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?IX(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Wt.forEach(["delete","get","head"],function(t){qh.headers[t]={}});Wt.forEach(["post","put","patch"],function(t){qh.headers[t]=Wt.merge(NX)});var F0=qh,FX=Ar,DX=F0,BX=function(t,r,n){var i=this||DX;return FX.forEach(n,function(a){t=a.call(i,t,r)}),t},Zp,qw;function h2(){return qw||(qw=1,Zp=function(t){return!!(t&&t.__CANCEL__)}),Zp}var Xw=Ar,Qp=BX,jX=h2(),$X=F0,UX=Wh();function Jp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new UX("canceled")}var GX=function(t){Jp(t),t.headers=t.headers||{},t.data=Qp.call(t,t.data,t.headers,t.transformRequest),t.headers=Xw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Xw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||$X.adapter;return r(t).then(function(i){return Jp(t),i.data=Qp.call(t,i.data,i.headers,t.transformResponse),i},function(i){return jX(i)||(Jp(t),i&&i.response&&(i.response.data=Qp.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},kr=Ar,d2=function(t,r){r=r||{};var n={};function i(c,f){return kr.isPlainObject(c)&&kr.isPlainObject(f)?kr.merge(c,f):kr.isPlainObject(f)?kr.merge({},f):kr.isArray(f)?f.slice():f}function o(c){if(kr.isUndefined(r[c])){if(!kr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!kr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(kr.isUndefined(r[c])){if(!kr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return kr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);kr.isUndefined(d)&&h!==u||(n[f]=d)}),n},ev,Yw;function p2(){return Yw||(Yw=1,ev={version:"0.26.1"}),ev}var zX=p2().version,D0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){D0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Kw={};D0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+zX+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!Kw[a]&&(Kw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function HX(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var VX={assertOptions:HX,validators:D0},v2=Ar,WX=u2,Zw=bX,Qw=GX,Xh=d2,m2=VX,ta=m2.validators;function Il(e){this.defaults=e,this.interceptors={request:new Zw,response:new Zw}}Il.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xh(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&m2.assertOptions(n,{silentJSONParsing:ta.transitional(ta.boolean),forcedJSONParsing:ta.transitional(ta.boolean),clarifyTimeoutError:ta.transitional(ta.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[Qw,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=Qw(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Il.prototype.getUri=function(t){return t=Xh(this.defaults,t),WX(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};v2.forEach(["delete","get","head","options"],function(t){Il.prototype[t]=function(r,n){return this.request(Xh(n||{},{method:t,url:r,data:(n||{}).data}))}});v2.forEach(["post","put","patch"],function(t){Il.prototype[t]=function(r,n,i){return this.request(Xh(i||{},{method:t,url:r,data:n}))}});var qX=Il,tv,Jw;function XX(){if(Jw)return tv;Jw=1;var e=Wh();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{zf.get(e).then(r=>{const n=r.data.toString();t(n)})});function rY(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o-1}var vY=pY;function mY(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=IY){var l=t?null:PY(e);if(l)return kY(l);a=!1,i=AY,u=new TY}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),Vn(t).then(r=>{Wn(r,t,t)}))},y2=(e,t)=>{Vn(e).then(r=>{O.sceneManager.sceneData.currentScene=Wn(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Rl(n);Nl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Ut()})},nE=e=>{const t=e.content.split("/"),r=t[t.length-1];return y2(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},_2=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===de.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Ut,1)},DY="_Choose_Main_cegqk_1",BY="_Choose_item_cegqk_13",jY="_Choose_item_disabled_cegqk_29",ov={Choose_Main:DY,Choose_item:BY,Choose_item_disabled:jY},$Y=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,UY=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,x2="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",GY=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,b2="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var S2={exports:{}},w2={};/** +*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof gc=="function"&&gc;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(p){var g=n[l][1][p];return a(g||p)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof gc=="function"&&gc,u=0;u"u"&&r(3);var f=Promise;function h(E,k){k&&E.then(function(C){k(null,C)},function(C){k(C)})}function d(E,k,C){typeof k=="function"&&E.then(k),typeof C=="function"&&E.catch(C)}function p(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var v="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var k=E.length,C=new ArrayBuffer(k),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function R(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(k){return m=k,m})}function A(E){var k=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),k.deferredOperations.push(C),k.dbReady?k.dbReady=k.dbReady.then(function(){return C.promise}):k.dbReady=C.promise}function P(E){var k=y[E.name],C=k.deferredOperations.pop();if(C)return C.resolve(),C.promise}function D(E,k){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(k),N.promise}function F(E,k){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(k)A(E),E.db.close();else return C(E.db);var M=[E.name];k&&M.push(E.version);var I=u.open.apply(u,M);k&&(I.onupgradeneeded=function(j){var U=I.result;try{U.createObjectStore(E.storeName),j.oldVersion<=1&&U.createObjectStore(v)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),I.onerror=function(j){j.preventDefault(),N(I.error)},I.onsuccess=function(){var j=I.result;j.onversionchange=function(U){U.target.close()},C(j),P(E)}})}function H(E){return F(E,!1)}function re(E){return F(E,!0)}function z(E,k){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==k&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var I=E.db.version+1;I>E.version&&(E.version=I)}return!0}return!1}function q(E){return new f(function(k,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var I=btoa(M.target.result||"");k({__local_forage_encoded_blob:!0,data:I,type:E.type})},N.readAsBinaryString(E)})}function le(E){var k=w(atob(E.data));return c([k],{type:E.type})}function $e(E){return E&&E.__local_forage_encoded_blob}function me(E){var k=this,C=k._initReady().then(function(){var N=y[k._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var k=y[E.name],C=k.forages,N=0;N0&&(!E.db||I.name==="InvalidStateError"||I.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||I.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,k,C,N-1)})}).catch(C);C(I)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(k),k._initReady||(k._initReady=k.ready,k.ready=me);var I=[];function j(){return f.resolve()}for(var U=0;U>4,J[M++]=(j&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function np(E){var k=new Uint8Array(E),C="",N;for(N=0;N>2],C+=ut[(k[N]&3)<<4|k[N+1]>>4],C+=ut[(k[N+1]&15)<<2|k[N+2]>>6],C+=ut[k[N+2]&63];return k.length%3===2?C=C.substring(0,C.length-1)+"=":k.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function rL(E,k){var C="";if(E&&(C=e1.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&e1.call(E.buffer)==="[object ArrayBuffer]")){var N,M=fr;E instanceof ArrayBuffer?(N=E,M+=wi):(N=E.buffer,C==="[object Int8Array]"?M+=Bs:C==="[object Uint8Array]"?M+=js:C==="[object Uint8ClampedArray]"?M+=$s:C==="[object Int16Array]"?M+=qb:C==="[object Uint16Array]"?M+=Yb:C==="[object Int32Array]"?M+=Xb:C==="[object Uint32Array]"?M+=Kb:C==="[object Float32Array]"?M+=Zb:C==="[object Float64Array]"?M+=Qb:k(new Error("Failed to get type for BinaryArray"))),k(M+np(N))}else if(C==="[object Blob]"){var I=new FileReader;I.onload=function(){var j=Jt+E.type+"~"+np(this.result);k(fr+aa+j)},I.readAsArrayBuffer(E)}else try{k(JSON.stringify(E))}catch(j){console.error("Couldn't convert value into a JSON string: ",E),k(null,j)}}function nL(E){if(E.substring(0,An)!==fr)return JSON.parse(E);var k=E.substring(Jb),C=E.substring(An,Jb),N;if(C===aa&&Ne.test(k)){var M=k.match(Ne);N=M[1],k=k.substring(M[0].length)}var I=t1(k);switch(C){case wi:return I;case aa:return c([I],{type:N});case Bs:return new Int8Array(I);case js:return new Uint8Array(I);case $s:return new Uint8ClampedArray(I);case qb:return new Int16Array(I);case Yb:return new Uint16Array(I);case Xb:return new Int32Array(I);case Kb:return new Uint32Array(I);case Zb:return new Float32Array(I);case Qb:return new Float64Array(I);default:throw new Error("Unkown type: "+C)}}var ip={serialize:rL,deserialize:nL,stringToBuffer:t1,bufferToString:np};function r1(E,k,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+k.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function iL(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(I,j){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return j(U)}C.db.transaction(function(U){r1(U,C,function(){k._dbInfo=C,I()},function(W,X){j(X)})},j)});return C.serializer=ip,M}function Ei(E,k,C,N,M,I){E.executeSql(C,N,M,function(j,U){U.code===U.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[k.storeName],function(W,X){X.rows.length?I(W,U):r1(W,k,function(){W.executeSql(C,N,M,I)},I)},I):I(j,U)},I)}function oL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=j.serializer.deserialize(J)),M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function aL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"SELECT * FROM "+j.storeName,[],function(W,X){for(var J=X.rows,ue=J.length,Te=0;Te0){j(n1.apply(M,[E,W,C,N-1]));return}U(Te)}})})}).catch(U)});return h(I,C),I}function sL(E,k,C){return n1.apply(this,[E,k,C,1])}function uL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function lL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ei(j,I,"DELETE FROM "+I.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function cL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ei(j,I,"SELECT COUNT(key) as c FROM "+I.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function fL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function hL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ei(j,I,"SELECT key FROM "+I.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,I){for(var j=[],U=0;U0}function _L(E){var k=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=i1(E,k._defaultConfig),yL()?(k._dbInfo=C,C.serializer=ip,f.resolve()):f.reject()}function xL(E){var k=this,C=k.ready().then(function(){for(var N=k._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var I=localStorage.key(M);I.indexOf(N)===0&&localStorage.removeItem(I)}});return h(C,E),C}function bL(E,k){var C=this;E=p(E);var N=C.ready().then(function(){var M=C._dbInfo,I=localStorage.getItem(M.keyPrefix+E);return I&&(I=M.serializer.deserialize(I)),I});return h(N,k),N}function SL(E,k){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,I=M.keyPrefix,j=I.length,U=localStorage.length,W=1,X=0;X=0;j--){var U=localStorage.key(j);U.indexOf(I)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,k),M}var PL={_driver:"localStorageWrapper",_initStorage:_L,_support:mL(),iterate:SL,getItem:bL,setItem:OL,removeItem:CL,clear:xL,length:TL,key:wL,keys:EL,dropInstance:AL},kL=function(k,C){return k===C||typeof k=="number"&&typeof C=="number"&&isNaN(k)&&isNaN(C)},RL=function(k,C){for(var N=k.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var I=new f(function(j,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=op.concat("_initStorage"),ue=0,Te=J.length;ue"u"}function f6(e){return e!==null&&!Ag(e)&&e.constructor!==null&&!Ag(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function h6(e){return ra.call(e)==="[object ArrayBuffer]"}function d6(e){return typeof FormData<"u"&&e instanceof FormData}function p6(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function v6(e){return typeof e=="string"}function m6(e){return typeof e=="number"}function $P(e){return e!==null&&typeof e=="object"}function df(e){if(ra.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function g6(e){return ra.call(e)==="[object Date]"}function y6(e){return ra.call(e)==="[object File]"}function _6(e){return ra.call(e)==="[object Blob]"}function UP(e){return ra.call(e)==="[object Function]"}function x6(e){return $P(e)&&UP(e.pipe)}function b6(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function S6(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function w6(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Z0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),K0(e))for(var r=0,n=e.length;r"u"||(la.isArray(u)?l=l+"[]":u=[u],la.forEach(u,function(f){la.isDate(f)?f=f.toISOString():la.isObject(f)&&(f=JSON.stringify(f)),o.push(hw(l)+"="+hw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},C6=Vr;function Jh(){this.handlers=[]}Jh.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Jh.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Jh.prototype.forEach=function(t){C6.forEach(this.handlers,function(n){n!==null&&t(n)})};var O6=Jh,A6=Vr,P6=function(t,r){A6.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},zP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Up,dw;function HP(){if(dw)return Up;dw=1;var e=zP;return Up=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},Up}var Gp,pw;function k6(){if(pw)return Gp;pw=1;var e=HP();return Gp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Gp}var zp,vw;function R6(){if(vw)return zp;vw=1;var e=Vr;return zp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zp}var Hp,mw;function I6(){return mw||(mw=1,Hp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Hp}var Vp,gw;function N6(){return gw||(gw=1,Vp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Vp}var Wp,yw;function L6(){if(yw)return Wp;yw=1;var e=I6(),t=N6();return Wp=function(n,i){return n&&!e(i)?t(n,i):i},Wp}var qp,_w;function M6(){if(_w)return qp;_w=1;var e=Vr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return qp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},qp}var Xp,xw;function D6(){if(xw)return Xp;xw=1;var e=Vr;return Xp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Xp}var Yp,bw;function ed(){if(bw)return Yp;bw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Yp=e,Yp}var Kp,Sw;function ww(){if(Sw)return Kp;Sw=1;var e=Vr,t=k6(),r=R6(),n=GP,i=L6(),o=M6(),a=D6(),s=HP(),u=td(),l=ed();return Kp=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u.transitional;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Kp}var Zp,Ew;function td(){if(Ew)return Zp;Ew=1;var e=Vr,t=P6,r=zP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=ww()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(p){if(d)throw p.name==="SyntaxError"?r(p,this,"E_JSON_PARSE"):p}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Zp=s,Zp}var F6=Vr,B6=td(),j6=function(t,r,n){var i=this||B6;return F6.forEach(n,function(a){t=a.call(i,t,r)}),t},Qp,Tw;function VP(){return Tw||(Tw=1,Qp=function(t){return!!(t&&t.__CANCEL__)}),Qp}var Cw=Vr,Jp=j6,$6=VP(),U6=td(),G6=ed();function ev(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new G6("canceled")}var z6=function(t){ev(t),t.headers=t.headers||{},t.data=Jp.call(t,t.data,t.headers,t.transformRequest),t.headers=Cw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Cw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||U6.adapter;return r(t).then(function(i){return ev(t),i.data=Jp.call(t,i.data,i.headers,t.transformResponse),i},function(i){return $6(i)||(ev(t),i&&i.response&&(i.response.data=Jp.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Dr=Vr,WP=function(t,r){r=r||{};var n={};function i(c,f){return Dr.isPlainObject(c)&&Dr.isPlainObject(f)?Dr.merge(c,f):Dr.isPlainObject(f)?Dr.merge({},f):Dr.isArray(f)?f.slice():f}function o(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Dr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Dr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Dr.isUndefined(d)&&h!==u||(n[f]=d)}),n},tv,Ow;function qP(){return Ow||(Ow=1,tv={version:"0.24.0"}),tv}var H6=qP().version,Q0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Q0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Aw={};Q0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+H6+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!Aw[a]&&(Aw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function V6(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var W6={assertOptions:V6,validators:Q0},XP=Vr,q6=GP,Pw=O6,kw=z6,rd=WP,YP=W6,ca=YP.validators;function Vl(e){this.defaults=e,this.interceptors={request:new Pw,response:new Pw}}Vl.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=rd(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&YP.assertOptions(r,{silentJSONParsing:ca.transitional(ca.boolean),forcedJSONParsing:ca.transitional(ca.boolean),clarifyTimeoutError:ca.transitional(ca.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[kw,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=kw(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Vl.prototype.getUri=function(t){return t=rd(this.defaults,t),q6(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};XP.forEach(["delete","get","head","options"],function(t){Vl.prototype[t]=function(r,n){return this.request(rd(n||{},{method:t,url:r,data:(n||{}).data}))}});XP.forEach(["post","put","patch"],function(t){Vl.prototype[t]=function(r,n,i){return this.request(rd(i||{},{method:t,url:r,data:n}))}});var X6=Vl,rv,Rw;function Y6(){if(Rw)return rv;Rw=1;var e=ed();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var oG=iG;const aG=Nr(oG),ne=new aG,sG={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{textSpeed:{title:"Speed of Text Showing",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},uG={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},lG={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},cG={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},fG={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},hG={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var na=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(na||{});const sh={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},dG={en:{translation:sG},zhCn:{translation:lG},jp:{translation:uG},fr:{translation:cG},de:{translation:fG},zhTw:{translation:hG}},pG=0;var vr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(vr||{}),_n=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(_n||{}),Hn=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Hn||{}),cl=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(cl||{});const ZP={slPage:1,volumeMain:100,textSpeed:vr.normal,autoSpeed:vr.normal,textSize:_n.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Hn.song,textboxOpacity:75,language:na.zhCn,voiceInterruption:cl.yes},kg={saveData:[],optionData:ZP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},QP=I0({name:"userData",initialState:At(kg),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetOptionSet(e){Object.assign(e.optionData,ZP)},resetAllData(e){Object.assign(e,At(kg))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:vG,resetUserData:J0,setOptionData:St,setGlobalVar:mG,setSlPage:JP,unlockCgInUserData:e2,unlockBgmInUserData:t2,setFastSave:gG,resetOptionSet:yG,resetSaveData:_G,resetAllData:xG}=QP.actions,bG=QP.reducer,r2={backlog_size:200,fast_timeout:50},SG={textInitialDelay:80};class wG{constructor(t){se(this,"isSaveBacklogNext",!1);se(this,"backlog",[]);se(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=B.getState().stage,r=At(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:At(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>r2.backlog_size;)this.getBacklog().shift()}}const Mw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class EG{constructor(){se(this,"settledScenes",[]);se(this,"settledAssets",[]);se(this,"sceneData",At(Mw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=At(Mw.currentScene)}}class TG{constructor(){se(this,"nextEnterAnimationName",new Map);se(this,"nextExitAnimationName",new Map);se(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}const CG={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};var Br=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Br||{});const jr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}},OG=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const Dw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=AG(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=PG(n,i,t),n};function AG(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function PG(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Tt;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Tt||(Tt={}));function n2(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Tt.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const kG=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,Tt.vocal);case oe.changeBg:return r(e,Tt.background);case oe.changeFigure:return r(e,Tt.figure);case oe.bgm:return r(e,Tt.bgm);case oe.callScene:return r(e,Tt.scene);case oe.changeScene:return r(e,Tt.scene);case oe.miniAvatar:return r(e,Tt.figure);case oe.video:return r(e,Tt.video);case oe.choose:return RG(e,r);case oe.unlockBgm:return r(e,Tt.bgm);case oe.unlockCg:return r(e,Tt.background);default:return e}};function RG(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,Tt.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Tt.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Tt.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:Tt.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:Tt.bgm})),n},NG=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},LG=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=Dw(c,r,n),i=l.type;for(const p of l.additionalArgs)i===oe.say&&p.key==="speaker"||s.push(p)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=Dw(c,r,n),i=l.type;for(const p of l.additionalArgs)s.push(p)}const d=/ -/.exec(f);if(d){const p=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of n2(p,t))s.push(g)}return o=kG(f,i,t),u=IG(i,o,s),a=NG(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},MG=typeof yc=="object"&&yc&&yc.Object===Object&&yc,DG=MG,FG=DG,BG=typeof self=="object"&&self&&self.Object===Object&&self,jG=FG||BG||Function("return this")(),nd=jG,$G=nd,UG=$G.Symbol,i2=UG,Fw=i2,o2=Object.prototype,GG=o2.hasOwnProperty,zG=o2.toString,ru=Fw?Fw.toStringTag:void 0;function HG(e){var t=GG.call(e,ru),r=e[ru];try{e[ru]=void 0;var n=!0}catch{}var i=zG.call(e);return n&&(t?e[ru]=r:delete e[ru]),i}var VG=HG,WG=Object.prototype,qG=WG.toString;function XG(e){return qG.call(e)}var YG=XG,Bw=i2,KG=VG,ZG=YG,QG="[object Null]",JG="[object Undefined]",jw=Bw?Bw.toStringTag:void 0;function ez(e){return e==null?e===void 0?JG:QG:jw&&jw in Object(e)?KG(e):ZG(e)}var tz=ez;function rz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var a2=rz,nz=tz,iz=a2,oz="[object AsyncFunction]",az="[object Function]",sz="[object GeneratorFunction]",uz="[object Proxy]";function lz(e){if(!iz(e))return!1;var t=nz(e);return t==az||t==sz||t==oz||t==uz}var cz=lz,fz=nd,hz=fz["__core-js_shared__"],dz=hz,ov=dz,$w=function(){var e=/[^.]+$/.exec(ov&&ov.keys&&ov.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pz(e){return!!$w&&$w in e}var vz=pz,mz=Function.prototype,gz=mz.toString;function yz(e){if(e!=null){try{return gz.call(e)}catch{}try{return e+""}catch{}}return""}var _z=yz,xz=cz,bz=vz,Sz=a2,wz=_z,Ez=/[\\^$.*+?()[\]{}|]/g,Tz=/^\[object .+?Constructor\]$/,Cz=Function.prototype,Oz=Object.prototype,Az=Cz.toString,Pz=Oz.hasOwnProperty,kz=RegExp("^"+Az.call(Pz).replace(Ez,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rz(e){if(!Sz(e)||bz(e))return!1;var t=xz(e)?kz:Tz;return t.test(wz(e))}var Iz=Rz;function Nz(e,t){return e==null?void 0:e[t]}var Lz=Nz,Mz=Iz,Dz=Lz;function Fz(e,t){var r=Dz(e,t);return Mz(r)?r:void 0}var ex=Fz,Bz=ex,jz=Bz(Object,"create"),id=jz,Uw=id;function $z(){this.__data__=Uw?Uw(null):{},this.size=0}var Uz=$z;function Gz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zz=Gz,Hz=id,Vz="__lodash_hash_undefined__",Wz=Object.prototype,qz=Wz.hasOwnProperty;function Xz(e){var t=this.__data__;if(Hz){var r=t[e];return r===Vz?void 0:r}return qz.call(t,e)?t[e]:void 0}var Yz=Xz,Kz=id,Zz=Object.prototype,Qz=Zz.hasOwnProperty;function Jz(e){var t=this.__data__;return Kz?t[e]!==void 0:Qz.call(t,e)}var e9=Jz,t9=id,r9="__lodash_hash_undefined__";function n9(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t9&&t===void 0?r9:t,this}var i9=n9,o9=Uz,a9=zz,s9=Yz,u9=e9,l9=i9;function Cs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var O9=C9,A9=od;function P9(e,t){var r=this.__data__,n=A9(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var k9=P9,R9=h9,I9=b9,N9=E9,L9=O9,M9=k9;function Os(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var MH=LH;function DH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=iV){var l=t?null:rV(e);if(l)return nV(l);a=!1,i=tV,u=new QH}else u=t?[]:s;e:for(;++n{const u=e.split(` +`);let l=[],c=[];const f=u.map(h=>{const d=LG(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=lV(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function fV(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of n2(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function hV(e){return e.replaceAll("\r","").split(` +`).map(r=>fV(r)).filter(r=>r.command!=="")}class dV{constructor(t,r,n,i){se(this,"assetsPrefetcher");se(this,"assetSetter");se(this,"ADD_NEXT_ARG_LIST");se(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return cV(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return hV(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; +`,"")}}function Ae(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const pV=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Ae(e,"enter"),o=Ae(e,"volume");return r!==""&&B.dispatch(t2({name:r,url:t,series:n})),Nx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var tx={exports:{}},u2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function mV(e){return e!==null&&!Rg(e)&&e.constructor!==null&&!Rg(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function l2(e){return fo.call(e)==="[object ArrayBuffer]"}function gV(e){return fo.call(e)==="[object FormData]"}function yV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&l2(e.buffer),t}function _V(e){return typeof e=="string"}function xV(e){return typeof e=="number"}function c2(e){return e!==null&&typeof e=="object"}function vf(e){if(fo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function bV(e){return fo.call(e)==="[object Date]"}function SV(e){return fo.call(e)==="[object File]"}function wV(e){return fo.call(e)==="[object Blob]"}function f2(e){return fo.call(e)==="[object Function]"}function EV(e){return c2(e)&&f2(e.pipe)}function TV(e){return fo.call(e)==="[object URLSearchParams]"}function CV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function OV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function nx(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),rx(e))for(var r=0,n=e.length;r"u"||(fa.isArray(u)?l=l+"[]":u=[u],fa.forEach(u,function(f){fa.isDate(f)?f=f.toISOString():fa.isObject(f)&&(f=JSON.stringify(f)),o.push(zw(l)+"="+zw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},kV=Lr;function sd(){this.handlers=[]}sd.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};sd.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};sd.prototype.forEach=function(t){kV.forEach(this.handlers,function(n){n!==null&&t(n)})};var RV=sd,IV=Lr,NV=function(t,r){IV.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},d2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},p2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sv,Hw;function v2(){if(Hw)return sv;Hw=1;var e=d2;return sv=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},sv}var uv,Vw;function LV(){if(Vw)return uv;Vw=1;var e=v2();return uv=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},uv}var lv,Ww;function MV(){if(Ww)return lv;Ww=1;var e=Lr;return lv=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),lv}var cv,qw;function DV(){return qw||(qw=1,cv=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),cv}var fv,Xw;function FV(){return Xw||(Xw=1,fv=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),fv}var hv,Yw;function BV(){if(Yw)return hv;Yw=1;var e=DV(),t=FV();return hv=function(n,i){return n&&!e(i)?t(n,i):i},hv}var dv,Kw;function jV(){if(Kw)return dv;Kw=1;var e=Lr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return dv=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},dv}var pv,Zw;function $V(){if(Zw)return pv;Zw=1;var e=Lr;return pv=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),pv}var vv,Qw;function ud(){if(Qw)return vv;Qw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,vv=e,vv}var mv,Jw;function eE(){if(Jw)return mv;Jw=1;var e=Lr,t=LV(),r=MV(),n=h2,i=BV(),o=jV(),a=$V(),s=v2(),u=p2,l=ud();return mv=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},mv}var Xt=Lr,tE=NV,UV=d2,GV=p2,zV={"Content-Type":"application/x-www-form-urlencoded"};function rE(e,t){!Xt.isUndefined(e)&&Xt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function HV(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=eE()),e}function VV(e,t,r){if(Xt.isString(e))try{return(t||JSON.parse)(e),Xt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var ld={transitional:GV,adapter:HV(),transformRequest:[function(t,r){return tE(r,"Accept"),tE(r,"Content-Type"),Xt.isFormData(t)||Xt.isArrayBuffer(t)||Xt.isBuffer(t)||Xt.isStream(t)||Xt.isFile(t)||Xt.isBlob(t)?t:Xt.isArrayBufferView(t)?t.buffer:Xt.isURLSearchParams(t)?(rE(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Xt.isObject(t)||r&&r["Content-Type"]==="application/json"?(rE(r,"application/json"),VV(t)):t}],transformResponse:[function(t){var r=this.transitional||ld.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Xt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?UV(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Xt.forEach(["delete","get","head"],function(t){ld.headers[t]={}});Xt.forEach(["post","put","patch"],function(t){ld.headers[t]=Xt.merge(zV)});var ix=ld,WV=Lr,qV=ix,XV=function(t,r,n){var i=this||qV;return WV.forEach(n,function(a){t=a.call(i,t,r)}),t},gv,nE;function m2(){return nE||(nE=1,gv=function(t){return!!(t&&t.__CANCEL__)}),gv}var iE=Lr,yv=XV,YV=m2(),KV=ix,ZV=ud();function _v(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ZV("canceled")}var QV=function(t){_v(t),t.headers=t.headers||{},t.data=yv.call(t,t.data,t.headers,t.transformRequest),t.headers=iE.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),iE.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||KV.adapter;return r(t).then(function(i){return _v(t),i.data=yv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return YV(i)||(_v(t),i&&i.response&&(i.response.data=yv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Fr=Lr,g2=function(t,r){r=r||{};var n={};function i(c,f){return Fr.isPlainObject(c)&&Fr.isPlainObject(f)?Fr.merge(c,f):Fr.isPlainObject(f)?Fr.merge({},f):Fr.isArray(f)?f.slice():f}function o(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Fr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Fr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Fr.isUndefined(d)&&h!==u||(n[f]=d)}),n},xv,oE;function y2(){return oE||(oE=1,xv={version:"0.26.1"}),xv}var JV=y2().version,ox={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ox[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var aE={};ox.transitional=function(t,r,n){function i(o,a){return"[Axios v"+JV+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!aE[a]&&(aE[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function eW(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var tW={assertOptions:eW,validators:ox},_2=Lr,rW=h2,sE=RV,uE=QV,cd=g2,x2=tW,ha=x2.validators;function Wl(e){this.defaults=e,this.interceptors={request:new sE,response:new sE}}Wl.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=cd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&x2.assertOptions(n,{silentJSONParsing:ha.transitional(ha.boolean),forcedJSONParsing:ha.transitional(ha.boolean),clarifyTimeoutError:ha.transitional(ha.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[uE,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=uE(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Wl.prototype.getUri=function(t){return t=cd(this.defaults,t),rW(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};_2.forEach(["delete","get","head","options"],function(t){Wl.prototype[t]=function(r,n){return this.request(cd(n||{},{method:t,url:r,data:(n||{}).data}))}});_2.forEach(["post","put","patch"],function(t){Wl.prototype[t]=function(r,n,i){return this.request(cd(i||{},{method:t,url:r,data:n}))}});var nW=Wl,bv,lE;function iW(){if(lE)return bv;lE=1;var e=ud();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{fl.get(e).then(r=>{const n=r.data.toString();t(n)})});var hW="__lodash_hash_undefined__";function dW(e){return this.__data__.set(e,hW),this}var pW=dW;function vW(e){return this.__data__.has(e)}var mW=vW,gW=D0,yW=pW,_W=mW;function lh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new gW;++t-1}var NW=IW;function LW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=ZW){var l=t?null:YW(e);if(l)return KW(l);a=!1,i=XW,u=new VW}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),ti(t).then(r=>{ri(r,t,t)}))},n7=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),ti(e).then(r=>{O.sceneManager.sceneData.currentScene=ri(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=ql(n);Xl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Ht()})},i7=e=>{const t=e.content.split("/"),r=t[t.length-1];return n7(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function hl(e,t,r){let n;const o=B.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function E2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function T2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const sx={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function C2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Tv=.001,a7=.01,pE=10,s7=.05,u7=1;function l7({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;o7(e<=pE*1e3);let a=1-t;a=Ng(s7,u7,a),e=Ng(a7,pE,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=Lg(l,a),p=Math.exp(-f);return Tv-h/d*p},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,p=Math.exp(-f),g=Lg(Math.pow(l,2),a);return(-i(l)+Tv>0?-1:1)*((h-d)*p)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Tv+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=f7(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const c7=12;function f7(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function p7(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!vE(e,d7)&&vE(e,h7)){const r=l7(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ux(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=C2(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=p7(o),d=mE,p=mE;function g(){const v=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=Lg(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((v+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},p=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(v+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(v+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(v+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((v+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:v=>{const m=d(v);if(h)a.done=v>=f;else{const y=p(v)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}ux.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const mE=e=>0,O2=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},lx=(e,t,r)=>-r*e+r*t+e,A2=(e,t)=>r=>Math.max(Math.min(r,t),e),Du=e=>e%1?Number(e.toFixed(5)):e,ch=/(-)?([\d]*\.?[\d])+/g,Mg=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,v7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Yl(e){return typeof e=="string"}const fd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},P2=Object.assign(Object.assign({},fd),{transform:A2(0,1)});Object.assign(Object.assign({},fd),{default:1});const m7=e=>({test:t=>Yl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fu=m7("%");Object.assign(Object.assign({},Fu),{parse:e=>Fu.parse(e)/100,transform:e=>Fu.transform(e*100)});const cx=(e,t)=>r=>!!(Yl(r)&&v7.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),k2=(e,t,r)=>n=>{if(!Yl(n))return n;const[i,o,a,s]=n.match(ch);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},No={test:cx("hsl","hue"),parse:k2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Fu.transform(Du(t))+", "+Fu.transform(Du(r))+", "+Du(P2.transform(n))+")"},g7=A2(0,255),Cv=Object.assign(Object.assign({},fd),{transform:e=>Math.round(g7(e))}),Li={test:cx("rgb","red"),parse:k2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Cv.transform(e)+", "+Cv.transform(t)+", "+Cv.transform(r)+", "+Du(P2.transform(n))+")"};function y7(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Dg={test:cx("#"),parse:y7,transform:Li.transform},hd={test:e=>Li.test(e)||Dg.test(e)||No.test(e),parse:e=>Li.test(e)?Li.parse(e):No.test(e)?No.parse(e):Dg.parse(e),transform:e=>Yl(e)?e:e.hasOwnProperty("red")?Li.transform(e):No.transform(e)},R2="${c}",I2="${n}";function _7(e){var t,r,n,i;return isNaN(e)&&Yl(e)&&((r=(t=e.match(ch))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Mg))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function N2(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Mg);n&&(r=n.length,e=e.replace(Mg,R2),t.push(...n.map(hd.parse)));const i=e.match(ch);return i&&(e=e.replace(ch,I2),t.push(...i.map(fd.parse))),{values:t,numColors:r,tokenised:e}}function L2(e){return N2(e).values}function M2(e){const{values:t,numColors:r,tokenised:n}=N2(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function b7(e){const t=L2(e);return M2(e)(t.map(x7))}const D2={test:_7,parse:L2,createTransformer:M2,getAnimatableNone:b7};function Ov(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function gE({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Ov(u,s,e+1/3),o=Ov(u,s,e),a=Ov(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const S7=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},w7=[Dg,Li,No],yE=e=>w7.find(t=>t.test(e)),F2=(e,t)=>{let r=yE(e),n=yE(t),i=r.parse(e),o=n.parse(t);r===No&&(i=gE(i),r=Li),n===No&&(o=gE(o),n=Li);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=S7(i[u],o[u],s));return a.alpha=lx(i.alpha,o.alpha,s),r.transform(a)}},E7=e=>typeof e=="number",T7=(e,t)=>r=>t(e(r)),B2=(...e)=>e.reduce(T7);function j2(e,t){return E7(e)?r=>lx(e,t,r):hd.test(e)?F2(e,t):U2(e,t)}const $2=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>j2(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=j2(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function _E(e){const t=D2.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=D2.createTransformer(t),n=_E(e),i=_E(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?B2($2(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},O7=(e,t)=>r=>lx(e,t,r);function A7(e){if(typeof e=="number")return O7;if(typeof e=="string")return hd.test(e)?F2:U2;if(Array.isArray(e))return $2;if(typeof e=="object")return C7}function P7(e,t,r){const n=[],i=r||A7(e[0]),o=e.length-1;for(let a=0;ar(O2(e,t,n))}function R7(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=O2(e[o],e[o+1],i);return t[o](s)}}function G2(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;dE(o===t.length),dE(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=P7(t,n,i),s=o===2?k7(e,a):R7(e,a);return r?u=>s(Ng(e[0],e[o-1],u)):s}const I7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,N7=e=>t=>Math.pow(t,e),L7=e=>t=>t*t*((e+1)*t-e),M7=e=>{const t=L7(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},D7=1.525,F7=N7(2),B7=I7(F7);M7(D7);function j7(e,t){return e.map(()=>t||B7).splice(0,e.length-1)}function $7(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function U7(e,t){return e.map(r=>r*t)}function gf({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=U7(n&&n.length===a.length?n:$7(a),i);function u(){return G2(s,a,{ease:Array.isArray(r)?r:j7(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function G7({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const xE={keyframes:gf,spring:ux,decay:G7};function z7(e){if(Array.isArray(e.to))return gf;if(xE[e.type])return xE[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?gf:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ux:gf}const z2=1/60*1e3,H7=typeof performance<"u"?()=>performance.now():()=>Date.now(),H2=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(H7()),z2);function V7(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=V7(()=>dl=!0),e),{}),q7=Kl.reduce((e,t)=>{const r=dd[t];return e[t]=(n,i=!1,o=!1)=>(dl||K7(),r.schedule(n,i,o)),e},{}),X7=Kl.reduce((e,t)=>(e[t]=dd[t].cancel,e),{});Kl.reduce((e,t)=>(e[t]=()=>dd[t].process(Bu),e),{});const Y7=e=>dd[e].process(Bu),V2=e=>{dl=!1,Bu.delta=Fg?z2:Math.max(Math.min(e-Bu.timestamp,W7),1),Bu.timestamp=e,Bg=!0,Kl.forEach(Y7),Bg=!1,dl&&(Fg=!1,H2(V2))},K7=()=>{dl=!0,Fg=!0,Bg||H2(V2)},Z7=q7;function W2(e,t,r=0){return e-t-r}function Q7(e,t,r=0,n=!0){return n?W2(t+-e,t,r):t-(e-t)+r}function J7(e,t,r,n){return n?e>=t+r:e<=-r}const eq=e=>{const t=({delta:r})=>e(r);return{start:()=>Z7.update(t,!0),stop:()=>X7.update(t)}};function tq(e){var t,r,{from:n,autoplay:i=!0,driver:o=eq,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:p}=e,g=C2(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const R=z7(g);!((r=(t=R).needsInterpolation)===null||r===void 0)&&r.call(t,n,v)&&(T=G2([0,100],[n,v],{clamp:!1}),n=0,v=100);const A=R(Object.assign(Object.assign({},g),{from:n,to:v}));function P(){y++,u==="reverse"?(w=y%2===0,a=Q7(a,_,l,w)):(a=W2(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function D(){m.stop(),h&&h()}function F(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}p==null||p(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}function rq(e,t){for(var r=-1,n=e==null?0:e.length;++rs))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&uq?new iq:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=tq({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,kv(x,ii)),ii(y)||(s.scale.x=y),ii(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();B.dispatch(Er.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=p(),x=kv({x:m.x,y:m.y,..._},ii);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(ii(y.x)||(n.pixiContainer.scale.x=y.x),ii(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=kv({x:m.x,y:m.y,..._},ii);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(ii(y.x)||(n.pixiContainer.scale.x=y.x),ii(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function p(){return e[0]}function g(){return e[e.length-1]}function v(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...R}=m;return R}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:v}}function fh(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=B.getState().stage.effects.find(u=>u.target===t),s=At({...(a==null?void 0:a.transform)??sx,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),rk(i,t,r)}return null}function Tr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function ki(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=E2(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=fh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=T2(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=fh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const vK=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=B.dispatch;r!==""&&i(e2({name:r,url:t,series:n})),i(Er.removeEffectByTargetId("bg-main"));const o=Ae(e,"transform");let a=Ae(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=hl("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=hl("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Ae(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Ae(e,"enter").toString()),a=Tr(Ae(e,"enter").toString())),Ae(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Ae(e,"exit").toString()),a=Tr(Ae(e,"exit").toString())),i(we({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function mK(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const p=B.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=jr(u,Br.figure);break;case"mouthClose":l=b.value.toString(),l=jr(l,Br.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=jr(c,Br.figure);break;case"eyesOpen":f=b.value.toString(),f=jr(f,Br.figure);break;case"eyesClose":h=b.value.toString(),h=jr(h,Br.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=B.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),p(we({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=B.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&B.getState().stage.figName===e.content&&(_=!1),t==="left"&&B.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&B.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;B.dispatch(Er.removeEffectByTargetId(b)),B.dispatch(Er.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Ae(w,"transform"),R=Ae(w,"duration");R&&typeof R=="number"&&(s=R);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=hl(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=hl(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const D=Ae(w,"enter"),F=Ae(w,"exit");D&&(O.animationManager.nextEnterAnimationName.set(b,D.toString()),s=Tr(D.toString())),F&&(O.animationManager.nextExitAnimationName.set(b+"-off",F.toString()),s=Tr(F.toString()))};if(n){B.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(Er.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(we({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const nk=(e,t)=>{ti(e).then(r=>{O.sceneManager.sceneData.currentScene=ri(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=ql(n);Xl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Ht()})},gK=e=>{const t=e.content.split("/"),r=t[t.length-1];return nk(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},ik=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ke.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Ht,1)},yK="_Choose_Main_cegqk_1",_K="_Choose_item_cegqk_13",xK="_Choose_item_disabled_cegqk_29",Rv={Choose_Main:yK,Choose_item:_K,Choose_item_disabled:xK},bK=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,SK=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,ok="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",wK=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,ak="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var sk={exports:{}},uk={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -56,7 +56,7 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Va=$;function zY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var HY=typeof Object.is=="function"?Object.is:zY,VY=Va.useState,WY=Va.useEffect,qY=Va.useLayoutEffect,XY=Va.useDebugValue;function YY(e,t){var r=t(),n=VY({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return qY(function(){i.value=r,i.getSnapshot=t,av(i)&&o({inst:i})},[e,r,t]),WY(function(){return av(i)&&o({inst:i}),e(function(){av(i)&&o({inst:i})})},[e]),XY(r),r}function av(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!HY(e,r)}catch{return!0}}function KY(e,t){return t()}var ZY=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?KY:YY;w2.useSyncExternalStore=Va.useSyncExternalStore!==void 0?Va.useSyncExternalStore:ZY;S2.exports=w2;var QY=S2.exports,E2={exports:{}},T2={};/** + */var rs=$;function EK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TK=typeof Object.is=="function"?Object.is:EK,CK=rs.useState,OK=rs.useEffect,AK=rs.useLayoutEffect,PK=rs.useDebugValue;function kK(e,t){var r=t(),n=CK({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return AK(function(){i.value=r,i.getSnapshot=t,Iv(i)&&o({inst:i})},[e,r,t]),OK(function(){return Iv(i)&&o({inst:i}),e(function(){Iv(i)&&o({inst:i})})},[e]),PK(r),r}function Iv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!TK(e,r)}catch{return!0}}function RK(e,t){return t()}var IK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RK:kK;uk.useSyncExternalStore=rs.useSyncExternalStore!==void 0?rs.useSyncExternalStore:IK;sk.exports=uk;var NK=sk.exports,lk={exports:{}},ck={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -64,14 +64,14 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yh=$,JY=QY;function eK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tK=typeof Object.is=="function"?Object.is:eK,rK=JY.useSyncExternalStore,nK=Yh.useRef,iK=Yh.useEffect,oK=Yh.useMemo,aK=Yh.useDebugValue;T2.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=nK(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=oK(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var v=a.value;if(i(v,d))return f=v}return f=d}if(v=f,tK(c,d))return v;var g=n(d);return i!==void 0&&i(v,g)?v:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=rK(e,o[0],o[1]);return iK(function(){a.hasValue=!0,a.value=s},[s]),aK(s),s};E2.exports=T2;var sK=E2.exports;function uK(e){e()}let C2=uK;const lK=e=>C2=e,cK=()=>C2,iE=Symbol.for("react-redux-context"),oE=typeof globalThis<"u"?globalThis:{};function fK(){var e;if(!$.createContext)return{};const t=(e=oE[iE])!=null?e:oE[iE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const Xi=fK();function B0(e=Xi){return function(){return $.useContext(e)}}const O2=B0(),hK=()=>{throw new Error("uSES not initialized!")};let A2=hK;const dK=e=>{A2=e},pK=(e,t)=>e===t;function vK(e=Xi){const t=e===Xi?O2:B0(e);return function(n,i={}){const{equalityFn:o=pK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),v=A2(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(v),v}}const Se=vK();function mK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var P2={exports:{}},We={};/** @license React v16.13.1 + */var md=$,LK=NK;function MK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DK=typeof Object.is=="function"?Object.is:MK,FK=LK.useSyncExternalStore,BK=md.useRef,jK=md.useEffect,$K=md.useMemo,UK=md.useDebugValue;ck.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=BK(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=$K(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var p=a.value;if(i(p,d))return f=p}return f=d}if(p=f,DK(c,d))return p;var g=n(d);return i!==void 0&&i(p,g)?p:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=FK(e,o[0],o[1]);return jK(function(){a.hasValue=!0,a.value=s},[s]),UK(s),s};lk.exports=ck;var GK=lk.exports;function zK(e){e()}let fk=zK;const HK=e=>fk=e,VK=()=>fk,DE=Symbol.for("react-redux-context"),FE=typeof globalThis<"u"?globalThis:{};function WK(){var e;if(!$.createContext)return{};const t=(e=FE[DE])!=null?e:FE[DE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const io=WK();function px(e=io){return function(){return $.useContext(e)}}const hk=px(),qK=()=>{throw new Error("uSES not initialized!")};let dk=qK;const XK=e=>{dk=e},YK=(e,t)=>e===t;function KK(e=io){const t=e===io?hk:px(e);return function(n,i={}){const{equalityFn:o=YK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),p=dk(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(p),p}}const Ee=KK();function ZK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var pk={exports:{}},Ye={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $t=typeof Symbol=="function"&&Symbol.for,j0=$t?Symbol.for("react.element"):60103,$0=$t?Symbol.for("react.portal"):60106,Kh=$t?Symbol.for("react.fragment"):60107,Zh=$t?Symbol.for("react.strict_mode"):60108,Qh=$t?Symbol.for("react.profiler"):60114,Jh=$t?Symbol.for("react.provider"):60109,ed=$t?Symbol.for("react.context"):60110,U0=$t?Symbol.for("react.async_mode"):60111,td=$t?Symbol.for("react.concurrent_mode"):60111,rd=$t?Symbol.for("react.forward_ref"):60112,nd=$t?Symbol.for("react.suspense"):60113,gK=$t?Symbol.for("react.suspense_list"):60120,id=$t?Symbol.for("react.memo"):60115,od=$t?Symbol.for("react.lazy"):60116,yK=$t?Symbol.for("react.block"):60121,_K=$t?Symbol.for("react.fundamental"):60117,xK=$t?Symbol.for("react.responder"):60118,bK=$t?Symbol.for("react.scope"):60119;function jr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case j0:switch(e=e.type,e){case U0:case td:case Kh:case Qh:case Zh:case nd:return e;default:switch(e=e&&e.$$typeof,e){case ed:case rd:case od:case id:case Jh:return e;default:return t}}case $0:return t}}}function k2(e){return jr(e)===td}We.AsyncMode=U0;We.ConcurrentMode=td;We.ContextConsumer=ed;We.ContextProvider=Jh;We.Element=j0;We.ForwardRef=rd;We.Fragment=Kh;We.Lazy=od;We.Memo=id;We.Portal=$0;We.Profiler=Qh;We.StrictMode=Zh;We.Suspense=nd;We.isAsyncMode=function(e){return k2(e)||jr(e)===U0};We.isConcurrentMode=k2;We.isContextConsumer=function(e){return jr(e)===ed};We.isContextProvider=function(e){return jr(e)===Jh};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===j0};We.isForwardRef=function(e){return jr(e)===rd};We.isFragment=function(e){return jr(e)===Kh};We.isLazy=function(e){return jr(e)===od};We.isMemo=function(e){return jr(e)===id};We.isPortal=function(e){return jr(e)===$0};We.isProfiler=function(e){return jr(e)===Qh};We.isStrictMode=function(e){return jr(e)===Zh};We.isSuspense=function(e){return jr(e)===nd};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kh||e===td||e===Qh||e===Zh||e===nd||e===gK||typeof e=="object"&&e!==null&&(e.$$typeof===od||e.$$typeof===id||e.$$typeof===Jh||e.$$typeof===ed||e.$$typeof===rd||e.$$typeof===_K||e.$$typeof===xK||e.$$typeof===bK||e.$$typeof===yK)};We.typeOf=jr;P2.exports=We;var SK=P2.exports,I2=SK,wK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},EK={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R2={};R2[I2.ForwardRef]=wK;R2[I2.Memo]=EK;var Xe={};/** + */var zt=typeof Symbol=="function"&&Symbol.for,vx=zt?Symbol.for("react.element"):60103,mx=zt?Symbol.for("react.portal"):60106,gd=zt?Symbol.for("react.fragment"):60107,yd=zt?Symbol.for("react.strict_mode"):60108,_d=zt?Symbol.for("react.profiler"):60114,xd=zt?Symbol.for("react.provider"):60109,bd=zt?Symbol.for("react.context"):60110,gx=zt?Symbol.for("react.async_mode"):60111,Sd=zt?Symbol.for("react.concurrent_mode"):60111,wd=zt?Symbol.for("react.forward_ref"):60112,Ed=zt?Symbol.for("react.suspense"):60113,QK=zt?Symbol.for("react.suspense_list"):60120,Td=zt?Symbol.for("react.memo"):60115,Cd=zt?Symbol.for("react.lazy"):60116,JK=zt?Symbol.for("react.block"):60121,eZ=zt?Symbol.for("react.fundamental"):60117,tZ=zt?Symbol.for("react.responder"):60118,rZ=zt?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vx:switch(e=e.type,e){case gx:case Sd:case gd:case _d:case yd:case Ed:return e;default:switch(e=e&&e.$$typeof,e){case bd:case wd:case Cd:case Td:case xd:return e;default:return t}}case mx:return t}}}function vk(e){return Wr(e)===Sd}Ye.AsyncMode=gx;Ye.ConcurrentMode=Sd;Ye.ContextConsumer=bd;Ye.ContextProvider=xd;Ye.Element=vx;Ye.ForwardRef=wd;Ye.Fragment=gd;Ye.Lazy=Cd;Ye.Memo=Td;Ye.Portal=mx;Ye.Profiler=_d;Ye.StrictMode=yd;Ye.Suspense=Ed;Ye.isAsyncMode=function(e){return vk(e)||Wr(e)===gx};Ye.isConcurrentMode=vk;Ye.isContextConsumer=function(e){return Wr(e)===bd};Ye.isContextProvider=function(e){return Wr(e)===xd};Ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vx};Ye.isForwardRef=function(e){return Wr(e)===wd};Ye.isFragment=function(e){return Wr(e)===gd};Ye.isLazy=function(e){return Wr(e)===Cd};Ye.isMemo=function(e){return Wr(e)===Td};Ye.isPortal=function(e){return Wr(e)===mx};Ye.isProfiler=function(e){return Wr(e)===_d};Ye.isStrictMode=function(e){return Wr(e)===yd};Ye.isSuspense=function(e){return Wr(e)===Ed};Ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gd||e===Sd||e===_d||e===yd||e===Ed||e===QK||typeof e=="object"&&e!==null&&(e.$$typeof===Cd||e.$$typeof===Td||e.$$typeof===xd||e.$$typeof===bd||e.$$typeof===wd||e.$$typeof===eZ||e.$$typeof===tZ||e.$$typeof===rZ||e.$$typeof===JK)};Ye.typeOf=Wr;pk.exports=Ye;var nZ=pk.exports,mk=nZ,iZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gk={};gk[mk.ForwardRef]=iZ;gk[mk.Memo]=oZ;var Ze={};/** * @license React * react-is.production.min.js * @@ -79,60 +79,62 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var G0=Symbol.for("react.element"),z0=Symbol.for("react.portal"),ad=Symbol.for("react.fragment"),sd=Symbol.for("react.strict_mode"),ud=Symbol.for("react.profiler"),ld=Symbol.for("react.provider"),cd=Symbol.for("react.context"),TK=Symbol.for("react.server_context"),fd=Symbol.for("react.forward_ref"),hd=Symbol.for("react.suspense"),dd=Symbol.for("react.suspense_list"),pd=Symbol.for("react.memo"),vd=Symbol.for("react.lazy"),CK=Symbol.for("react.offscreen"),N2;N2=Symbol.for("react.module.reference");function rn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case G0:switch(e=e.type,e){case ad:case ud:case sd:case hd:case dd:return e;default:switch(e=e&&e.$$typeof,e){case TK:case cd:case fd:case vd:case pd:case ld:return e;default:return t}}case z0:return t}}}Xe.ContextConsumer=cd;Xe.ContextProvider=ld;Xe.Element=G0;Xe.ForwardRef=fd;Xe.Fragment=ad;Xe.Lazy=vd;Xe.Memo=pd;Xe.Portal=z0;Xe.Profiler=ud;Xe.StrictMode=sd;Xe.Suspense=hd;Xe.SuspenseList=dd;Xe.isAsyncMode=function(){return!1};Xe.isConcurrentMode=function(){return!1};Xe.isContextConsumer=function(e){return rn(e)===cd};Xe.isContextProvider=function(e){return rn(e)===ld};Xe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===G0};Xe.isForwardRef=function(e){return rn(e)===fd};Xe.isFragment=function(e){return rn(e)===ad};Xe.isLazy=function(e){return rn(e)===vd};Xe.isMemo=function(e){return rn(e)===pd};Xe.isPortal=function(e){return rn(e)===z0};Xe.isProfiler=function(e){return rn(e)===ud};Xe.isStrictMode=function(e){return rn(e)===sd};Xe.isSuspense=function(e){return rn(e)===hd};Xe.isSuspenseList=function(e){return rn(e)===dd};Xe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ad||e===ud||e===sd||e===hd||e===dd||e===CK||typeof e=="object"&&e!==null&&(e.$$typeof===vd||e.$$typeof===pd||e.$$typeof===ld||e.$$typeof===cd||e.$$typeof===fd||e.$$typeof===N2||e.getModuleId!==void 0)};Xe.typeOf=rn;function OK(){const e=cK();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const aE={notify(){},get:()=>[]};function AK(e,t){let r,n=aE,i=0,o=!1;function a(g){c();const p=n.subscribe(g);let m=!1;return()=>{m||(m=!0,p(),f())}}function s(){n.notify()}function u(){v.onStateChange&&v.onStateChange()}function l(){return o}function c(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=OK())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=aE)}function h(){o||(o=!0,c())}function d(){o&&(o=!1,f())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:l,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return v}const PK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kK=PK?$.useLayoutEffect:$.useEffect;function IK({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){const a=$.useMemo(()=>{const l=AK(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),s=$.useMemo(()=>e.getState(),[e]);kK(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const u=t||Xi;return $.createElement(u.Provider,{value:a},r)}function L2(e=Xi){const t=e===Xi?O2:B0(e);return function(){const{store:n}=t();return n}}const RK=L2();function NK(e=Xi){const t=e===Xi?RK:L2(e);return function(){return t().dispatch}}const or=NK();dK(sK.useSyncExternalStoreWithSelector);lK(hA.unstable_batchedUpdates);const vr=()=>{const e=or();return{playSeEnter:()=>{e(Te({key:"uiSe",value:x2}))},playSeClick:()=>{e(Te({key:"uiSe",value:b2}))},playSePageChange:()=>{e(Te({key:"uiSe",value:$Y}))},playSeDialogOpen:()=>{e(Te({key:"uiSe",value:GY}))},playSeSwitch:()=>{e(Te({key:"uiSe",value:UY}))}}},H0=()=>({playSeEnter:()=>{j.dispatch(Te({key:"uiSe",value:x2}))},playSeClick:()=>{j.dispatch(Te({key:"uiSe",value:b2}))}});class V0{constructor(t,r){le(this,"text");le(this,"jump");le(this,"jumpToScene");le(this,"showCondition");le(this,"enableCondition");this.text=t,this.jump=r,this.jumpToScene=r.match(/\./)!==null}static parse(t){const r=t.split("->"),n=r.length>1?r[0]:null,o=(r.length>1?r[1]:r[0]).split(":"),a=new V0(o[0],o[1]);if(n!==null){const s=n.match(/\((.*)\)/);s&&(a.showCondition=s[1]);const u=n.match(/\[(.*)\]/);u&&(a.enableCondition=u[1])}return a}}const LK=e=>{const r=e.content.split("|").map(u=>V0.parse(u)),i=j.getState().userData.optionData.textboxFont===Ln.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:o,playSeClick:a}=H0(),s=u=>u.filter((l,c)=>hg(l.showCondition)).map((l,c)=>{const f=hg(l.enableCondition),h=f?ov.Choose_item:ov.Choose_item_disabled,d=f?()=>{a(),l.jumpToScene?y2(l.jump,l.text):_2(l.jump),O.gameplay.performController.unmountPerform("choose")}:()=>{};return S.jsx("div",{className:h,style:{fontFamily:i},onClick:d,onMouseEnter:o,children:l.text},l.jump+c)});return Mn.render(S.jsx("div",{className:ov.Choose_Main,children:s(r)}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{Mn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},W0=(e,t=!0)=>{e&&O.backlogManager.makeBacklogEmpty(),t&&O.sceneManager.resetScene(),O.gameplay.performController.removeAllPerform(),O.gameplay.resetGamePlay();const r=Et(YA),n=j.getState().stage.GameVar;j.dispatch(kh(r)),t||j.dispatch(Te({key:"GameVar",value:n}))},MK=e=>{W0(!0);const t=j.dispatch,r=Nr("start.txt",Rr.scene);return Vn(r).then(n=>{O.sceneManager.sceneData.currentScene=Wn(n,"start.txt",r)}),t(Me({component:"showTitle",visibility:!0})),rx(j.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},FK=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Pe(e,"enter"),o=Pe(e,"volume");return r!==""&&j.dispatch(pP({name:r,url:t,series:n})),rx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},DK=e=>{const t=j.getState().userData,r=t.optionData.volumeMain,n=r*.01*t.optionData.vocalVolume*.01,i=r*.01*t.optionData.bgmVolume*.01,o=tx();let a=Pe(e,"skipOff"),s=!1;a&&(s=!0),Mn.render(S.jsx("div",{className:wn.videoContainer,children:S.jsx("video",{className:wn.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer"));let u=!1;return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>s,blockingAuto:()=>!0,stopTimeout:void 0,arrangePerformPromise:new Promise(l=>{setTimeout(()=>{let c=document.getElementById("playVideoElement");if(c!==null){c.currentTime=0,c.volume=i;const f=()=>{for(const v of O.gameplay.performController.performList)v.performName===o&&(u=!0,v.stopFunction(),O.gameplay.performController.unmountPerform(v.performName),Ut())},h=()=>{f()};O.eventBus.on("fullscreen-dbclick",()=>{h()});const d={performName:o,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{c.oncanplay=()=>{};const v=document.getElementById("currentBgm");v&&(v.volume=i.toString());const g=document.getElementById("currentVocal");v&&(g.volume=n.toString()),Mn.render(S.jsx("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>s,blockingAuto:()=>!u,stopTimeout:void 0,goNextWhenOver:!0};l(d),c.oncanplay=()=>{const p=document.getElementById("currentBgm");p&&(p.volume=0 .toString());const m=document.getElementById("currentVocal");p&&(m.volume=0 .toString()),c==null||c.play()},c.onended=()=>{f()}}},1)})}};function BK(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0,r.pixiContainer.blur=0)}function i(){r&&(r.pixiContainer.alpha=1,r.pixiContainer.blur=5)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,l=t/u*a,c=1/l,f=5/l;s.alpha<1&&(s.alpha+=c),s.blur<5&&(s.blur+=f)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const jK=[{name:"universalSoftIn",animationGenerateFunc:wP},{name:"universalSoftOff",animationGenerateFunc:EP},{name:"testblur",animationGenerateFunc:BK}],$K=e=>{var s,u;j.getState().stage.currentDialogKey;const t=e.content,r=Pe(e,"duration")??0,n=Pe(e,"target")??0,i=`${n}-${t}-${r}`,o=UK(t);let a=()=>{};if(o){ne.debug(`动画${t}作用在${n}`,r);const l=o(n,r);(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n),(u=O.gameplay.pixiStage)==null||u.registerAnimation(l,i,n),a=()=>{var c;j.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(i)}}return{performName:i,duration:r,isHoldOn:!1,stopFunction:a,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function UK(e){const t=jK.find(r=>r.name===e);return ne.debug("装载动画",t),t?t.animationGenerateFunc:null}const GK=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),zK=e=>(O.gameplay.performController.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){ne.warn("pixi 被脚本重新初始化",t.performName);for(let r=0;r{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),HK="modulepreload",VK=function(e,t){return new URL(e,t).href},sE={},WK=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=VK(o,n),o in sE)return;sE[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":HK,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},M2=new Map;function qK(e){return e?typeof e=="string"?e:e():null}function F2(e){const t=qK(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function Fme(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);M2.set(F2(e),t)}function XK(e,t=[]){const r=M2.get(F2(e));if(!r||!(r instanceof Function))throw ne.error(`Can't call the perform named "${e}"`),new Error(`"${e}" don't have the pixiPerform callback.`);return r(...t)}WK(()=>import("./initRegister-e4655b9f.js"),[],import.meta.url);const YK=e=>{const t="PixiPerform"+e.content;O.gameplay.performController.performList.forEach(o=>{if(o.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});const r=XK(e.content),{container:n,tickerKey:i}=r;return{performName:t,duration:0,isHoldOn:!0,stopFunction:()=>{var o,a;ne.warn("现在正在卸载pixi演出"),n.destroy({texture:!0,baseTexture:!0}),(o=O.gameplay.pixiStage)==null||o.effectsContainer.removeChild(n),(a=O.gameplay.pixiStage)==null||a.removeAnimation(i)},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},KK=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),ZK=e=>(_2(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0});var q0={},Ju={document:{}},D2=Object.prototype.hasOwnProperty,B2=function(e){return md(e)?e.toLowerCase():e},Tu=Array.isArray,QK=function(e){return md(e)?e.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):e};"I".toLowerCase()!=="i"&&(B2=QK);var JK,X0=Object.prototype.toString,j2=Object.getPrototypeOf,sv=H2("ng");Ju.angular||(Ju.angular={});Ju.document.documentMode;function eZ(e){if(e==null||Z0(e))return!1;if(Tu(e)||md(e)||JK)return!0;var t="length"in Object(e)&&e.length;return K0(t)&&(t>=0&&(t-1 in e||e instanceof Array)||typeof e.item=="function")}function ct(e,t,r){var n,i;if(e)if(G2(e))for(n in e)n!=="prototype"&&n!=="length"&&n!=="name"&&e.hasOwnProperty(n)&&t.call(r,e[n],n,e);else if(Tu(e)||eZ(e)){var o=typeof e!="object";for(n=0,i=e.length;n"u"}function xa(e){return typeof e<"u"}function $2(e){return e!==null&&typeof e=="object"}function U2(e){return e!==null&&typeof e=="object"&&!j2(e)}function md(e){return typeof e=="string"}function K0(e){return typeof e=="number"}function G2(e){return typeof e=="function"}function Z0(e){return e&&e.window===e}function z2(e){return e&&e.$evalAsync&&e.$watch}var nZ=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;function iZ(e){return e&&K0(e.length)&&nZ.test(X0.call(e))}function oZ(e){return X0.call(e)==="[object ArrayBuffer]"}function aZ(e,t){var r=[],n=[];if(t){if(iZ(t)||oZ(t))throw sv("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw sv("cpi","Can't copy! Source and destination are identical.");return Tu(t)?t.length=0:ct(t,function(s,u){u!=="$$hashKey"&&delete t[u]}),r.push(e),n.push(t),i(e,t)}return o(e);function i(s,u){var l=u.$$hashKey,c;if(Tu(s))for(var f=0,h=s.length;f=0)return"...";t.push(n)}return n})}function uE(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):rZ(e)?"undefined":typeof e!="string"?cZ(e):e}function H2(e,t){return t=t||Error,function(){var r=2,n=arguments,i=n[0],o="["+(e?e+":":"")+i+"] ",a=n[1],s,u;for(o+=a.replace(/\{\d+\}/g,function(l){var c=+l.slice(1,-1),f=c+r;return f <= >= && || ! = |".split(" "),function(e){Kc[e]=!0});var fZ={n:` -`,f:"\f",r:"\r",t:" ",v:"\v","'":"'",'"':'"'},cg=function(t){this.options=t};cg.prototype={constructor:cg,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&r<=56319&&n>=56320&&n<=57343?e+t:e},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,r){r=r||this.index;var n=xa(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,r)+"]":" "+r;throw ba("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:G.Program,body:e}},expressionStatement:function(){return{type:G.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!X2(e))throw ba("lval","Trying to assign a value to a non l-value");e={type:G.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:G.ConditionalExpression,test:e,alternate:t,consequent:r}):e},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:G.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:G.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e=this.relational(),t;t=this.expect("==","!=","===","!==");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var e=this.additive(),t;t=this.expect("<",">","<=",">=");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var e=this.multiplicative(),t;t=this.expect("+","-");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var e=this.unary(),t;t=this.expect("*","/","%");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:G.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=aZ(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:G.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)t.text==="("?(e={type:G.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(e={type:G.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?e={type:G.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],r={type:G.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var e=[];if(this.peekToken().text!==")")do e.push(this.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:G.Identifier,name:e.text}},constant:function(){return{type:G.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:G.ArrayExpression,elements:e}},object:function(){var e=[],t;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;t={type:G.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:G.ObjectExpression,properties:e}},throwError:function(e,t){throw ba("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(this.tokens.length===0)throw ba("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw ba("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,r,n){return this.peekAhead(0,e,t,r,n)},peekAhead:function(e,t,r,n,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===r||a===n||a===i||!t&&!r&&!n&&!i)return o}return!1},expect:function(e,t,r,n){var i=this.peek(e,t,r,n);return i?(this.tokens.shift(),i):!1},selfReferential:{this:{type:G.ThisExpression},$locals:{type:G.LocalsExpression}}};function hZ(e,t){return typeof e<"u"?e:t}function W2(e,t){return typeof e>"u"?t:typeof t>"u"?e:e+t}function dZ(e,t){var r=e(t);if(!r)throw new Error("Filter '"+t+"' is not defined");return!r.$stateful}function Rt(e,t){var r,n,i;switch(e.type){case G.Program:r=!0,ct(e.body,function(o){Rt(o.expression,t),r=r&&o.expression.constant}),e.constant=r;break;case G.Literal:e.constant=!0,e.toWatch=[];break;case G.UnaryExpression:Rt(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case G.BinaryExpression:Rt(e.left,t),Rt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case G.LogicalExpression:Rt(e.left,t),Rt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case G.ConditionalExpression:Rt(e.test,t),Rt(e.alternate,t),Rt(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case G.Identifier:e.constant=!1,e.toWatch=[e];break;case G.MemberExpression:Rt(e.object,t),e.computed&&Rt(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case G.CallExpression:i=e.filter?dZ(t,e.callee.name):!1,r=i,n=[],ct(e.arguments,function(o){Rt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=i?n:[e];break;case G.AssignmentExpression:Rt(e.left,t),Rt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case G.ArrayExpression:r=!0,n=[],ct(e.elements,function(o){Rt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ObjectExpression:r=!0,n=[],ct(e.properties,function(o){Rt(o.value,t),r=r&&o.value.constant&&!o.computed,o.value.constant||n.push.apply(n,o.value.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ThisExpression:e.constant=!1,e.toWatch=[];break;case G.LocalsExpression:e.constant=!1,e.toWatch=[];break}}function q2(e){if(e.length===1){var t=e[0].expression,r=t.toWatch;return r.length!==1||r[0]!==t?r:void 0}}function X2(e){return e.type===G.Identifier||e.type===G.MemberExpression}function Y2(e){if(e.body.length===1&&X2(e.body[0].expression))return{type:G.AssignmentExpression,left:e.body[0].expression,right:{type:G.NGValueParameter},operator:"="}}function K2(e){return e.body.length===0||e.body.length===1&&(e.body[0].expression.type===G.Literal||e.body[0].expression.type===G.ArrayExpression||e.body[0].expression.type===G.ObjectExpression)}function Z2(e){return e.constant}function Q2(e,t){this.astBuilder=e,this.$filter=t}Q2.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Rt(r,t.$filter);var n="",i;if(this.stage="assign",i=Y2(r)){this.state.computing="assign";var o=this.nextId();this.recurse(i,o),this.return_(o),n="fn.assign="+this.generateFunction("assign","s,v,l")}var a=q2(r.body);t.stage="inputs",ct(a,function(l,c){var f="fn"+c;t.state[f]={vars:[],body:[],own:{}},t.state.computing=f;var h=t.nextId();t.recurse(l,h),t.return_(h),t.state.inputs.push(f),l.watchId=c}),this.state.computing="fn",this.stage="main",this.recurse(r);var s='"'+this.USE+" "+this.STRICT+`"; -`+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,V2,hZ,W2);return this.state=this.stage=void 0,u.ast=r,u.literal=K2(r),u.constant=Z2(r),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,r=this;return ct(t,function(n){e.push("var "+n+"="+r.generateFunction(n,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return ct(this.state.filters,function(r,n){e.push(r+"=$filter("+t.escape(n)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,n,i,o){var a,s,u=this,l,c,f;if(n=n||Y0,!o&&xa(e.watchId)){t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.unsafeComputedMember("i",e.watchId)),this.lazyRecurse(e,t,r,n,i,!0));return}switch(e.type){case G.Program:ct(e.body,function(d,v){u.recurse(d.expression,void 0,void 0,function(g){s=g}),v!==e.body.length-1?u.current().body.push(s,";"):u.return_(s)});break;case G.Literal:c=this.escape(e.value),this.assign(t,c),n(t||c);break;case G.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(d){s=d}),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),n(c);break;case G.BinaryExpression:this.recurse(e.left,void 0,void 0,function(d){a=d}),this.recurse(e.right,void 0,void 0,function(d){s=d}),e.operator==="+"?c=this.plus(a,s):e.operator==="-"?c=this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):c="("+a+")"+e.operator+"("+s+")",this.assign(t,c),n(c);break;case G.LogicalExpression:t=t||this.nextId(),u.recurse(e.left,t),u.if_(e.operator==="&&"?t:u.not(t),u.lazyRecurse(e.right,t)),n(t);break;case G.ConditionalExpression:t=t||this.nextId(),u.recurse(e.test,t),u.if_(t,u.lazyRecurse(e.alternate,t),u.lazyRecurse(e.consequent,t)),n(t);break;case G.Identifier:t=t||this.nextId();var h=u.current().inAssignment;r&&(h?r.context=this.assign(this.nextId(),"s"):r.context=u.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),u.if_(u.stage==="inputs"||u.not(u.getHasOwnProperty("l",e.name)),function(){u.if_(u.stage==="inputs"||u.and_("s",u.or_(u.isNull(u.nonComputedMember("s",e.name)),u.hasOwnProperty_("s",e.name))),function(){i&&i!==1&&u.if_(u.isNull(u.nonComputedMember("s",e.name)),u.lazyAssign(u.nonComputedMember("s",e.name),"{}")),u.assign(t,u.nonComputedMember("s",e.name))})},t&&u.lazyAssign(t,u.nonComputedMember("l",e.name))),n(t);break;case G.MemberExpression:a=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),u.recurse(e.object,a,void 0,function(){var d=null,v=u.current().inAssignment;e.computed?(s=u.nextId(),v||u.state.computing==="assign"?d=u.unsafeComputedMember(a,s):d=u.computedMember(a,s)):(v||u.state.computing==="assign"?d=u.unsafeNonComputedMember(a,e.property.name):d=u.nonComputedMember(a,e.property.name),s=e.property.name),e.computed&&e.property.type===G.Literal&&u.recurse(e.property,s),u.if_(u.and_(u.notNull(a),u.or_(u.isNull(d),u.hasOwnProperty_(a,s,e.computed))),function(){e.computed?(e.property.type!==G.Literal&&u.recurse(e.property,s),i&&i!==1&&u.if_(u.not(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!0,r.name=s)):(i&&i!==1&&u.if_(u.isNull(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!1,r.name=e.property.name))},function(){u.assign(t,"undefined")}),n(t)},!!i);break;case G.CallExpression:t=t||this.nextId(),e.filter?(s=u.filter(e.callee.name),l=[],ct(e.arguments,function(d){var v=u.nextId();u.recurse(d,v),l.push(v)}),c=s+".call("+s+","+l.join(",")+")",u.assign(t,c),n(t)):(s=u.nextId(),a={},l=[],u.recurse(e.callee,s,a,function(){u.if_(u.notNull(s),function(){if(ct(e.arguments,function(v){u.recurse(v,e.constant?void 0:u.nextId(),void 0,function(g){l.push(g)})}),a.name){var d=u.member(a.context,a.name,a.computed);c="("+d+" === null ? null : "+u.unsafeMember(a.context,a.name,a.computed)+".call("+[a.context].concat(l).join(",")+"))"}else c=s+"("+l.join(",")+")";u.assign(t,c)},function(){u.assign(t,"undefined")}),n(t)}));break;case G.AssignmentExpression:s=this.nextId(),a={},u.current().inAssignment=!0,this.recurse(e.left,void 0,a,function(){u.if_(u.and_(u.notNull(a.context),u.or_(u.hasOwnProperty_(a.context,a.name),u.isNull(u.member(a.context,a.name,a.computed)))),function(){u.recurse(e.right,s),c=u.member(a.context,a.name,a.computed)+e.operator+s,u.assign(t,c),n(t||c)}),u.current().inAssignment=!1,u.recurse(e.right,s),u.current().inAssignment=!0},1),u.current().inAssignment=!1;break;case G.ArrayExpression:l=[],ct(e.elements,function(d){u.recurse(d,e.constant?void 0:u.nextId(),void 0,function(v){l.push(v)})}),c="["+l.join(",")+"]",this.assign(t,c),n(t||c);break;case G.ObjectExpression:l=[],f=!1,ct(e.properties,function(d){d.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),ct(e.properties,function(d){d.computed?(a=u.nextId(),u.recurse(d.key,a)):a=d.key.type===G.Identifier?d.key.name:""+d.key.value,s=u.nextId(),u.recurse(d.value,s),u.assign(u.unsafeMember(t,a,d.computed),s)})):(ct(e.properties,function(d){u.recurse(d.value,e.constant?void 0:u.nextId(),void 0,function(v){l.push(u.escape(d.key.type===G.Identifier?d.key.name:""+d.key.value)+":"+v)})}),c="{"+l.join(",")+"}",this.assign(t,c)),n(t||c);break;case G.ThisExpression:this.assign(t,"s"),n(t||"s");break;case G.LocalsExpression:this.assign(t,"l"),n(t||"l");break;case G.NGValueParameter:this.assign(t,"v"),n(t||"v");break}},getHasOwnProperty:function(e,t){var r=e+"."+t,n=this.current().own;return n.hasOwnProperty(r)||(n[r]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[r]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,r){if(e===!0)t();else{var n=this.current().body;n.push("if(",e,"){"),t(),n.push("}"),r&&(n.push("else{"),r(),n.push("}"))}},or_:function(e,t){return"("+e+") || ("+t+")"},hasOwnProperty_:function(e,t,r){return r?"(Object.prototype.hasOwnProperty.call("+e+","+t+"))":"(Object.prototype.hasOwnProperty.call("+e+",'"+t+"'))"},and_:function(e,t){return"("+e+") && ("+t+")"},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var r=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,n=/[^$_a-zA-Z0-9]/g,i="";return r.test(t)?i=e+"."+t:(t=t.replace(n,this.stringEscapeFn),i=e+'["'+t+'"]'),i},unsafeComputedMember:function(e,t){return e+"["+t+"]"},unsafeNonComputedMember:function(e,t){return this.nonComputedMember(e,t)},computedMember:function(e,t){return this.state.computing==="assign"?this.unsafeComputedMember(e,t):"("+e+".hasOwnProperty("+t+") ? "+e+"["+t+"] : null)"},unsafeMember:function(e,t,r){return r?this.unsafeComputedMember(e,t):this.unsafeNonComputedMember(e,t)},member:function(e,t,r){return r?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,r,n,i,o){var a=this;return function(){a.recurse(e,t,r,n,i,o)}},lazyAssign:function(e,t){var r=this;return function(){r.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(md(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(K0(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(e===null)return"null";if(typeof e>"u")return"undefined";throw ba("esc","IMPOSSIBLE")},nextId:function(e,t){var r="v"+this.state.nextId++;return e||this.current().vars.push(r+(t?"="+t:"")),r},current:function(){return this.state[this.state.computing]}};function J2(e,t){this.astBuilder=e,this.$filter=t}J2.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);Rt(r,t.$filter);var n,i;(n=Y2(r))&&(i=this.recurse(n));var o=q2(r.body),a;o&&(a=[],ct(o,function(l,c){var f=t.recurse(l);l.input=f,a.push(f),l.watchId=c}));var s=[];ct(r.body,function(l){s.push(t.recurse(l.expression))});var u=r.body.length===0?Y0:r.body.length===1?s[0]:function(l,c){var f;return ct(s,function(h){f=h(l,c)}),f};return i&&(u.assign=function(l,c,f){return i(l,f,c)}),a&&(u.inputs=a),u.ast=r,u.literal=K2(r),u.constant=Z2(r),u},recurse:function(e,t,r){var n,i,o=this,a;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case G.Literal:return this.value(e.value,t);case G.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case G.BinaryExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.LogicalExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case G.Identifier:return o.identifier(e.name,t,r);case G.MemberExpression:return n=this.recurse(e.object,!1,!!r),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(n,i,t,r):this.nonComputedMember(n,i,t,r);case G.CallExpression:return a=[],ct(e.arguments,function(s){a.push(o.recurse(s))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(s,u,l,c){for(var f=[],h=0;h":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>t(n,i,o,a);return r?{value:s}:s}},"binary<=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)<=t(n,i,o,a);return r?{value:s}:s}},"binary>=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>=t(n,i,o,a);return r?{value:s}:s}},"binary&&":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)&&t(n,i,o,a);return r?{value:s}:s}},"binary||":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)||t(n,i,o,a);return r?{value:s}:s}},"ternary?:":function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):r(i,o,a,s);return n?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,r){return function(n,i,o,a){var s=i&&e in i?i:n;r&&r!==1&&s&&s[e]==null&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s),l,c;return u!=null&&(l=t(i,o,a,s),l=V2(l),n&&n!==1&&u&&!u[l]&&(u[l]={}),Object.prototype.hasOwnProperty.call(u,l)&&(c=u[l])),r?{context:u,name:l,value:c}:c}},nonComputedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s);n&&n!==1&&u&&u[t]==null&&(u[t]={});var l=void 0;return u!=null&&Object.prototype.hasOwnProperty.call(u,t)&&(l=u[t]),r?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(r,n,i,o){return o?o[t]:e(r,n,i)}}};var fg=function(t,r,n){this.lexer=t,this.$filter=r,this.options=n,this.ast=new G(t,n),this.astCompiler=n.csp?new J2(this.ast,r):new Q2(this.ast,r)};fg.prototype={constructor:fg,parse:function(e){return this.astCompiler.compile(e)}};q0.Lexer=cg;q0.Parser=fg;var ek=q0,pZ={},vZ=ek.Lexer,mZ=ek.Parser;function Cu(e,t){t=t||{};var r;if(typeof e!="string")throw new TypeError("src must be a string, instead saw '"+typeof e+"'");var n={csp:!1,literals:{true:!0,false:!1,null:null,undefined:void 0}},i=new vZ(t),o=new mZ(i,function(s){return pZ[s]},n);return Cu.cache?(r=Cu.cache[e],r||(r=Cu.cache[e]=o.parse(e)),r):o.parse(e)}Cu.cache=Object.create(null);var tk=Cu;const gZ=e=>{let t=!1;e.args.forEach(n=>{n.key==="global"&&(t=!0)});let r;if(t?r=y6:r=KA,e.content.match(/=/)){const n=e.content.split(/=/)[0],i=e.content.split(/=/)[1];if(i==="random()")j.dispatch(r({key:n,value:Math.random()}));else if(i.match(/[+\-*\/()]/)){const a=i.split(/([+\-*\/()])/g).map(l=>l.match(/[a-zA-Z]/)?Q0(l).toString():l).reduce((l,c)=>l+c,""),u=tk(a)();j.dispatch(r({key:n,value:u}))}else i.match(/true|false/)?(i.match(/true/)&&j.dispatch(r({key:n,value:!0})),i.match(/false/)&&j.dispatch(r({key:n,value:!1}))):isNaN(Number(i))?j.dispatch(r({key:n,value:i})):j.dispatch(r({key:n,value:Number(i)}));t?(ne.debug("设置全局变量:",{key:n,value:j.getState().userData.globalGameVar[n]}),Ou()):ne.debug("设置变量:",{key:n,value:j.getState().stage.GameVar[n]})}return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function Q0(e){let t=0;return j.getState().stage.GameVar.hasOwnProperty(e)?t=j.getState().stage.GameVar[e]:j.getState().userData.globalGameVar.hasOwnProperty(e)&&(t=j.getState().userData.globalGameVar[e]),t}const yZ=e=>{const t=j.getState().stage,r=j.getState().userData,n=j.dispatch,i={stageGameVar:t.GameVar,globalGameVar:r.globalGameVar};n(Te({key:"showText",value:JSON.stringify(i)})),n(Te({key:"showName",value:"展示变量"})),ne.debug("展示变量:",i),setTimeout(()=>{O.eventBus.emit("text-settle")},0);const o=tx(),a=750-r.optionData.textSpeed*250;return{performName:o,duration:a,isHoldOn:!1,stopFunction:()=>{O.eventBus.emit("text-settle")},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},_Z=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁CG:${r},路径:${t},所属系列:${n}`),j.dispatch(dP({name:r,url:t,series:n}));const i=j.getState().userData;return Df.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},xZ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁BGM:${r},路径:${t},所属系列:${n}`),j.dispatch(pP({name:r,url:t,series:n}));const i=j.getState().userData;return Df.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},bZ=e=>(e.content!==""&&e.content!=="none"?j.dispatch(Te({key:"enableFilm",value:e.content})):j.dispatch(Te({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),SZ=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),Vn(e).then(r=>{O.sceneManager.sceneData.currentScene=Wn(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Rl(n);Nl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Ut()})},wZ=e=>{const t=e.content.split("/"),r=t[t.length-1];return SZ(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function EZ(e){return e.content==="hide"?j.dispatch(Te({key:"isDisableTextbox",value:!0})):j.dispatch(Te({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const TZ=e=>{j.getState().stage.currentDialogKey;const t=e.content,r=xr(t),n=(Pe(e,"target")??"default_id").toString(),i=`${n}-${t}-${r}`;let o;return setTimeout(()=>{var s,u;(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n);const a=Gf(t,n,r);a&&(ne.debug(`动画${t}作用在${n}`,r),(u=O.gameplay.pixiStage)==null||u.registerAnimation(a,i,n))},0),o=()=>{setTimeout(()=>{var a;j.getState().stage.currentDialogKey,(a=O.gameplay.pixiStage)==null||a.removeAnimationWithSetEffects(i)},0)},{performName:i,duration:r,isHoldOn:!1,stopFunction:o,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},CZ=e=>{ne.debug("play SE");let t="effect-sound";O.gameplay.performController.unmountPerform(t,!0);let r=e.content,n=!1;Pe(e,"id")&&(t=`effect-sound-${Pe(e,"id")}`,O.gameplay.performController.unmountPerform(t,!0),n=!0);let i=!1;return{performName:"none",blockingAuto(){return!1},blockingNext(){return!1},isHoldOn:!1,stopFunction(){},stopTimeout:void 0,duration:1e3*60*60,arrangePerformPromise:new Promise(o=>{setTimeout(()=>{var d;const a=Pe(e,"volume");let s=document.createElement("audio");s.src=r,n&&(s.loop=!0);const u=j.getState().userData,l=u.optionData.volumeMain,c=typeof a=="number"&&a>=0&&a<=100?a:100,f=l*.01*(((d=u.optionData)==null?void 0:d.seVolume)??100)*.01*c*.01;s.volume=f,s.currentTime=0;const h={performName:t,duration:1e3*60*60,isHoldOn:n,skipNextCollect:!0,stopFunction:()=>{s.oncanplay=()=>{},s.pause()},blockingNext:()=>!1,blockingAuto:()=>!i,stopTimeout:void 0};o(h),s.oncanplay=()=>{s==null||s.play()},s.onended=()=>{for(const v of O.gameplay.performController.performList)v.performName===t&&(i=!0,v.stopFunction(),O.gameplay.performController.unmountPerform(v.performName))}},1)})}},OZ=e=>{j.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;try{n=JSON.parse(r)}catch{n=[]}const i={name:t,effects:n};O.animationManager.addAnimation(i);const o=xr(t),a=Pe(e,"target")??0,s=`${a}-${t}-${o}`;let u=()=>{};return setTimeout(()=>{var c,f;(c=O.gameplay.pixiStage)==null||c.stopPresetAnimationOnTarget(a);const l=Gf(t,a,o);l&&(ne.debug(`动画${t}作用在${a}`,o),(f=O.gameplay.pixiStage)==null||f.registerAnimation(l,s,a))},0),u=()=>{setTimeout(()=>{var l;j.getState().stage.currentDialogKey,(l=O.gameplay.pixiStage)==null||l.removeAnimationWithSetEffects(s)},0)},{performName:s,duration:o,isHoldOn:!1,stopFunction:u,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},AZ=e=>(ne.debug(`脚本内注释${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),PZ=e=>{j.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;const i=Pe(e,"duration"),o=Pe(e,"target")??0;try{const c=JSON.parse(r);n=Zu(o,c,i)}catch{n=[]}const a={name:t,effects:n};O.animationManager.addAnimation(a);const s=IZ(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(o);const c=kZ(t,o,s);c&&(ne.debug(`动画${t}作用在${o}`,s),(h=O.gameplay.pixiStage)==null||h.registerAnimation(c,u,o))},0),l=()=>{setTimeout(()=>{var c;j.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(u)},0)},{performName:u,duration:s,isHoldOn:!1,stopFunction:l,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function kZ(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=Et({...T0,duration:0});return Object.assign(a,o),a.duration=o.duration,a});return ne.debug("装载自定义动画",i),n2(i,t,r)}return null}function IZ(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}const RZ=e=>{let t="";for(const r of e.args)r.key==="target"&&(t=r.value.toString());return Pe(e,"enter")&&O.animationManager.nextEnterAnimationName.set(t,Pe(e,"enter").toString()),Pe(e,"exit")&&O.animationManager.nextExitAnimationName.set(t+"-off",Pe(e,"exit").toString()),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},NZ="_Choose_Main_4xkm5_1",LZ="_Choose_item_4xkm5_13",MZ="_glabalDialog_container_inner_4xkm5_28",FZ="_glabalDialog_container_4xkm5_28",DZ="_title_4xkm5_47",BZ="_button_4xkm5_59",ra={Choose_Main:NZ,Choose_item:LZ,glabalDialog_container_inner:MZ,glabalDialog_container:FZ,title:DZ,button:BZ},jZ=e=>{const t=e.content.toString().trim(),r=Pe(e,"title"),n=(r===0?"Please Input":r)??"Please Input",i=Pe(e,"buttonText"),o=(i===0?"OK":i)??"OK",s=j.getState().userData.optionData.textboxFont===Ln.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:u,playSeClick:l}=H0(),c=S.jsx("div",{style:{fontFamily:s},className:ra.glabalDialog_container,children:S.jsxs("div",{className:ra.glabalDialog_container_inner,children:[S.jsx("div",{className:ra.title,children:n}),S.jsx("input",{id:"user-input",className:ra.Choose_item}),S.jsx("div",{onMouseEnter:u,onClick:()=>{const f=document.getElementById("user-input");f&&j.dispatch(KA({key:t,value:(f==null?void 0:f.value)??""})),l(),O.gameplay.performController.unmountPerform("userInput"),Ut()},className:ra.button,children:o})]})});return Mn.render(S.jsx("div",{className:ra.Choose_Main,children:c}),document.getElementById("chooseContainer")),{performName:"userInput",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{Mn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},rk=[{scriptString:"intro",scriptType:de.intro,scriptFunction:M9},{scriptString:"changeBg",scriptType:de.changeBg,scriptFunction:rX},{scriptString:"changeFigure",scriptType:de.changeFigure,scriptFunction:nX},{scriptString:"miniAvatar",scriptType:de.miniAvatar,scriptFunction:iX},{scriptString:"changeScene",scriptType:de.changeScene,scriptFunction:nE},{scriptString:"choose",scriptType:de.choose,scriptFunction:LK},{scriptString:"end",scriptType:de.end,scriptFunction:MK},{scriptString:"bgm",scriptType:de.bgm,scriptFunction:FK},{scriptString:"playVideo",scriptType:de.video,scriptFunction:DK},{scriptString:"setComplexAnimation",scriptType:de.setComplexAnimation,scriptFunction:$K},{scriptString:"setFilter",scriptType:de.setFilter,scriptFunction:GK},{scriptString:"pixiInit",scriptType:de.pixiInit,scriptFunction:zK},{scriptString:"pixiPerform",scriptType:de.pixi,scriptFunction:YK},{scriptString:"label",scriptType:de.label,scriptFunction:KK},{scriptString:"jumpLabel",scriptType:de.jumpLabel,scriptFunction:ZK},{scriptString:"setVar",scriptType:de.setVar,scriptFunction:gZ},{scriptString:"callScene",scriptType:de.callScene,scriptFunction:nE},{scriptString:"showVars",scriptType:de.showVars,scriptFunction:yZ},{scriptString:"unlockCg",scriptType:de.unlockCg,scriptFunction:_Z},{scriptString:"unlockBgm",scriptType:de.unlockBgm,scriptFunction:xZ},{scriptString:"say",scriptType:de.say,scriptFunction:gP},{scriptString:"filmMode",scriptType:de.filmMode,scriptFunction:bZ},{scriptString:"callScene",scriptType:de.callScene,scriptFunction:wZ},{scriptString:"setTextbox",scriptType:de.setTextbox,scriptFunction:EZ},{scriptString:"setAnimation",scriptType:de.setAnimation,scriptFunction:TZ},{scriptString:"playEffect",scriptType:de.playEffect,scriptFunction:CZ},{scriptString:"setTempAnimation",scriptType:de.setTempAnimation,scriptFunction:OZ},{scriptString:"__commment",scriptType:de.comment,scriptFunction:AZ},{scriptString:"setTransform",scriptType:de.setTransform,scriptFunction:PZ},{scriptString:"setTransition",scriptType:de.setTransition,scriptFunction:RZ},{scriptString:"getUserInput",scriptType:de.getUserInput,scriptFunction:jZ}],$Z=[de.bgm,de.pixi,de.pixiInit,de.label,de.if,de.miniAvatar,de.setVar,de.unlockBgm,de.unlockCg,de.filmMode,de.playEffect,de.comment,de.setTransition],J0=new b9(M6,Nr,$Z,rk),Wn=(e,t,r)=>{const n=J0.parse(e,t,r);return ne.info(`解析场景:${t},数据为:`,n),n},ex=e=>{let t=L6,r=gP;const n=new Map;rk.forEach(i=>{n.set(i.scriptType,i.scriptFunction)}),n.has(e.command)&&(r=n.get(e.command)),t=r(e),t.arrangePerformPromise?t.arrangePerformPromise.then(i=>O.gameplay.performController.arrangeNewPerform(i,e)):O.gameplay.performController.arrangeNewPerform(t,e)},UZ=e=>{Vn(e.sceneUrl).then(t=>{O.sceneManager.sceneData.currentScene=Wn(t,e.sceneName,e.sceneUrl),O.sceneManager.sceneData.currentSentenceId=e.continueLine+1,ne.debug("现在恢复场景,恢复后场景:",O.sceneManager.sceneData.currentScene),Ut()})};function GZ(e){return tk(e)()}const hg=e=>{if(e===void 0)return!0;const r=e.split(/([+\-*\/()>=|<=|==)/g).map(n=>n.match(/[a-zA-Z]/)?n.match(/true/)||n.match(/false/)?n:Q0(n).toString():n).reduce((n,i)=>n+i,"");return!!GZ(r)},nk=()=>{if(O.sceneManager.sceneData.currentSentenceId>O.sceneManager.sceneData.currentScene.sentenceList.length-1){if(O.sceneManager.sceneData.sceneStack.length!==0){const l=O.sceneManager.sceneData.sceneStack.pop();l!==void 0&&UZ(l)}return}const e=O.sceneManager.sceneData.currentScene.sentenceList[O.sceneManager.sceneData.currentSentenceId],t=l=>{let c=l;const f=c.match(new RegExp("(?{const d=Q0(h.replace(new RegExp("(?{e.content=t(e.content),e.args.forEach(l=>{l.value&&typeof l.value=="string"&&(l.value=t(l.value))})})();let n=!0,i=!1,o="";if(e.args.forEach(l=>{l.key==="when"&&(i=!0,o=l.value.toString())}),i&&(n=hg(o)),!n){ne.warn("不满足条件,跳过本句!"),O.sceneManager.sceneData.currentSentenceId++,Ut();return}ex(e);let a=!1;e.args.forEach(l=>{l.key==="next"&&l.value&&(a=!0)});let s=e.command===de.say;e.args.forEach(l=>{l.key==="notend"&&l.value===!0&&(s=!1)});let u;if(a){O.sceneManager.sceneData.currentSentenceId++,nk();return}setTimeout(()=>{u=j.getState().stage;const l={currentStageState:u,globalGameVar:j.getState().userData.globalGameVar};ne.debug("本条语句执行结果",l),s&&O.backlogManager.saveCurrentStateToBacklog()},0),O.sceneManager.sceneData.currentSentenceId++},Ut=()=>{if(O.eventBus.emit("__NEXT"),j.getState().GUI.showTitle)return;let t=!1;if(O.gameplay.performController.performList.forEach(i=>{i.blockingNext()&&(t=!0)}),t){ne.warn("next 被阻塞!");return}let r=!0;if(O.gameplay.performController.performList.forEach(i=>{!i.isHoldOn&&!i.skipNextCollect&&(r=!1)}),r){const i=j.getState().stage,o=Et(i);for(let a=0;aMath.random().toString().substring(0,10);class zZ{constructor(){le(this,"performList",[]);le(this,"timeoutList",[])}arrangeNewPerform(t,r,n=!0){if(t.performName!=="none"){if(n){const i={id:t.performName,isHoldOn:t.isHoldOn,script:r};j.dispatch(Ir.addPerform(i))}t.stopTimeout=setTimeout(()=>{t.isHoldOn||(this.unmountPerform(t.performName),t.goNextWhenOver&&this.goNextWhenOver())},t.duration),this.performList.push(t)}}unmountPerform(t,r=!1){if(r)for(let n=0;n{r.blockingAuto()&&(t=!0)}),t?setTimeout(this.goNextWhenOver,100):Ut()}}class HZ{constructor(){le(this,"isAuto",!1);le(this,"isFast",!1);le(this,"autoInterval",null);le(this,"fastInterval",null);le(this,"autoTimeout",null);le(this,"pixiStage",null);le(this,"performController",new zZ)}resetGamePlay(){this.performController.timeoutList=[],this.isAuto=!1,this.isFast=!1;const t=this.autoInterval;t!==null&&clearInterval(t),this.autoInterval=null;const r=this.fastInterval;r!==null&&clearInterval(r),this.fastInterval=null;const n=this.autoTimeout;n!==null&&clearInterval(n),this.autoTimeout=null}}class VZ{constructor(){le(this,"sceneManager",new O6);le(this,"backlogManager",new T6(this.sceneManager));le(this,"animationManager",new A6);le(this,"gameplay",new HZ);le(this,"gameName","");le(this,"gameKey","");le(this,"eventBus",C6())}}const O=new VZ,Ke=ik(()=>{const e=j.getState().userData;qi.setItem(O.gameKey,e).then(()=>{ne.info("写入本地存储")})},100),el=ik(()=>{qi.getItem(O.gameKey).then(e=>{if(!e||!ok(e)){ne.warn("现在重置数据"),Ke();return}j.dispatch(S0(e))})},100);function ik(e,t){let r;function n(...i){clearTimeout(r);let o;return r=setTimeout(()=>{o=e.apply(n,i)},t),o}return n}const Ou=()=>{const e=j.getState().userData;qi.setItem(O.gameKey,e).then(()=>{qi.getItem(O.gameKey).then(t=>{if(!t){Ke();return}j.dispatch(S0(t))}),ne.info("同步本地存储")})};function ok(e){let t=!0;for(const r in tg)e.hasOwnProperty(r)||(t=!1);return t}async function WZ(){const e=j.getState().userData;return await qi.setItem(O.gameKey,e)}async function ak(){const e=await qi.getItem(O.gameKey);if(!e||!ok(e)){const t=j.getState().userData;return ne.warn("现在重置数据"),await qi.setItem(O.gameKey,t)}else j.dispatch(S0(e))}var qe=(e=>(e[e.Save=0]="Save",e[e.Load=1]="Load",e[e.Option=2]="Option",e))(qe||{});const qZ={showBacklog:!1,showStarter:!0,showTitle:!0,showMenuPanel:!1,showTextBox:!0,showControls:!0,controlsVisibility:!0,currentMenuTag:qe.Option,titleBg:"",titleBgm:"",logoImage:[],showExtra:!1,showGlobalDialog:!1,showPanicOverlay:!1,isEnterGame:!1,isShowLogo:!0,theme:{textbox:"standard"}},sk=t0({name:"gui",initialState:qZ,reducers:{setVisibility:(e,t)=>{el();const{component:r,visibility:n}=t.payload;e[r]=n},setMenuPanelTag:(e,t)=>{el(),e.currentMenuTag=t.payload},setGuiAsset:(e,t)=>{const{asset:r,value:n}=t.payload;e[r]=n},setLogoImage:(e,t)=>{e.logoImage=[...t.payload]},setThemeConfigItem:(e,t)=>{e.theme[t.payload.key]=t.payload.value}}}),{setThemeConfigItem:XZ,setVisibility:Me,setMenuPanelTag:Oo,setGuiAsset:Hf,setLogoImage:YZ}=sk.actions,KZ=sk.reducer,j=LF({reducer:{stage:f5,GUI:KZ,userData:w6},middleware:wA({serializableCheck:!1})});let lE;function rx(e,t=0,r=100){if(ne.info("playing bgm"+e),e===""){lE=setTimeout(()=>{j.dispatch(Te({key:"bgm",value:{src:"",enter:0,volume:100}}))},t);const i=j.getState().stage.bgm.src;j.dispatch(Te({key:"bgm",value:{src:i,enter:-t,volume:r}}))}else clearTimeout(lE),j.dispatch(Te({key:"bgm",value:{src:e,enter:t,volume:r}}));const n=document.getElementById("currentBgm");n.src&&(n==null||n.play())}function Ll(e){const t=document.getElementById("ebg");t&&(t.style.backgroundImage=`url("${e}")`)}const nx=()=>{ne.warn("清除所有演出");for(let e=0;e{j.getState().stage.PerformList.forEach(t=>{ex(t.script)})},ZZ=e=>{const t=j.dispatch,r=O.backlogManager.getBacklog()[e];ne.debug("读取的backlog数据",r),Vn(r.saveScene.sceneUrl).then(i=>{O.sceneManager.sceneData.currentScene=Wn(i,r.saveScene.sceneName,r.saveScene.sceneUrl);const o=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const a=Rl(o);Nl(a)}),O.sceneManager.sceneData.currentSentenceId=r.saveScene.currentSentenceId,O.sceneManager.sceneData.sceneStack=Et(r.saveScene.sceneStack),nx();for(let i=O.backlogManager.getBacklog().length-1;i>e;i--)O.backlogManager.getBacklog().pop();O.backlogManager.isSaveBacklogNext=!0;const n=Et(r.currentStageState);t(kh(n)),setTimeout(ix,0),t(Me({component:"showBacklog",visibility:!1})),t(Me({component:"showTextBox",visibility:!0}))},uk=e=>{const r=j.getState().userData.saveData[e];ne.debug("读取的存档数据",r),lk(r)};function lk(e){if(!e){ne.info("暂无存档");return}const t=e;Vn(t.sceneData.sceneUrl).then(o=>{O.sceneManager.sceneData.currentScene=Wn(o,t.sceneData.sceneName,t.sceneData.sceneUrl);const a=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const s=Rl(a);Nl(s)}),O.sceneManager.sceneData.currentSentenceId=t.sceneData.currentSentenceId,O.sceneManager.sceneData.sceneStack=Et(t.sceneData.sceneStack),nx();const r=t.backlog;O.backlogManager.getBacklog().splice(0,O.backlogManager.getBacklog().length);for(const o of r)O.backlogManager.getBacklog().push(o);const n=Et(t.nowStageState),i=j.dispatch;i(kh(n)),setTimeout(ix,0),i(Me({component:"showTitle",visibility:!1})),i(Me({component:"showMenuPanel",visibility:!1})),Ll(j.getState().stage.bgName)}const dg=e=>{const t=j.getState().userData,r=ck(e);ne.debug("存档数据:",r);const n=Et(t.saveData);ne.debug("newSaveData:",n),n[e]=r,j.dispatch(g6({key:"saveData",value:[...n]})),ne.debug("存档完成,存档结果:",n),Ou()};function ck(e){const t=j.getState().stage,r=Et(O.backlogManager.getBacklog()),n=document.getElementById("pixiCanvas"),i=document.createElement("canvas"),o=i.getContext("2d");i.width=480,i.height=270,o.drawImage(n,0,0,480,270);const a=i.toDataURL("image/webp",.5);return i.remove(),{nowStageState:Et(t),backlog:r,index:e,saveTime:new Date().toLocaleDateString()+" "+new Date().toLocaleTimeString("chinese",{hour12:!1}),sceneData:{currentSentenceId:O.sceneManager.sceneData.currentSentenceId,sceneStack:Et(O.sceneManager.sceneData.sceneStack),sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl},previewImage:a}}function QZ(){`${O.gameName}${O.gameKey}`,`${O.gameName}${O.gameKey}`}async function JZ(){const e=ck(-1),t=Et(e);j.dispatch(_6(t)),await WZ()}async function eQ(){return await ak(),j.getState().userData.quickSaveData!==null}async function tQ(){await ak();const e=j.getState().userData.quickSaveData;e&&lk(e)}const rQ=()=>{W0(!0);const e=Nr("start.txt",Rr.scene);Vn(e).then(t=>{O.sceneManager.sceneData.currentScene=Wn(t,"start.txt",e),Ut()}),j.dispatch(Me({component:"showTitle",visibility:!1}))};async function nQ(){if(Ll(j.getState().stage.bgName),await eQ()&&O.sceneManager.sceneData.currentSentenceId===0){await tQ();return}O.sceneManager.sceneData.currentSentenceId===0&&O.sceneManager.sceneData.currentScene.sceneName==="start.txt"?Ut():ix()}function ox(e,t){if(e==null)return{};var r=mK(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var iQ={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const oQ=Or(iQ);var aQ=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function cE(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(oQ[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(aQ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var sQ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,uQ=/^\s*$/,lQ=Object.create(null);function fk(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(fk,"")+"";case"comment":return e+""}}var cQ={parse:function(e,t){t||(t={}),t.components||(t.components=lQ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(sQ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith("");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(uJ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var lJ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,cJ=/^\s*$/,fJ=Object.create(null);function Jk(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(Jk,"")+"";case"comment":return e+""}}var hJ={parse:function(e,t){t||(t={}),t.components||(t.components=fJ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(lJ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith(")]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(jn),kx=function(e){Je(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];jn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Ft.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Ft.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(jn),Ix=function(e){Je(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(jn);hl.push(Ed,Ix,Ox,kx,Px,Xo,Ax,Cx);var uI={__proto__:null,Resource:Do,BaseImageResource:jn,INSTALLED:hl,autoDetectResource:Sd,AbstractMultiResource:wd,ArrayResource:Cx,BufferResource:Xo,CanvasResource:Ox,CubeResource:Ax,ImageResource:Ed,SVGResource:Px,VideoResource:kx,ImageBitmapResource:Ix},Hie=function(e){Je(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Jr.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(Xo),Zf=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Mt("disposeFramebuffer"),this.multisample=nt.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Ie(null,{scaleMode:br.NEAREST,resolution:1,mipmap:Cr.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Ie(new Hie(null,{width:this.width,height:this.height}),{scaleMode:br.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Cr.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete _r[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Ie),cc(t._EMPTY),cc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Ie.from(r)),cc(t._WHITE),cc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(ys),Zi=function(e){Je(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||nt.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,zr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,zr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=zr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===zr.CLEAR||r===zr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(qr.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(qr.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Tt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=nt.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||nt.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=fc[0],i=fc[1],o=fc[2],a=fc[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?Av.copyFrom(o):Av.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),Fl=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),Fx=function(){function e(t){this.renderer=t,this.emptyRenderer=new Fl(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=Dn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),hI=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=nt.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),Zie=new Re,Bx=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Zf(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Re,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===Dn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=rl.COLOR|rl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new hI(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=nt.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(r),i}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(r){this._mipmap!==r&&(this._mipmap=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(r){this._scaleMode!==r&&(this._scaleMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(r){this._wrapMode!==r&&(this._wrapMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(r,n){var i;return r!==void 0&&r!==this.scaleMode&&(this.scaleMode=r,i=!0),n!==void 0&&n!==this.mipmap&&(this.mipmap=n,i=!0),i&&this.dirtyStyleId++,this},t.prototype.setSize=function(r,n,i){return i=i||this.resolution,this.setRealSize(r*i,n*i,i)},t.prototype.setRealSize=function(r,n,i){return this.resolution=i||this.resolution,this.width=Math.round(r)/this.resolution,this.height=Math.round(n)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=cy(this.realWidth)&&cy(this.realHeight)},t.prototype.setResolution=function(r){var n=this.resolution;return n===r?this:(this.resolution=r,this.valid&&(this.width=Math.round(this.width*n)/r,this.height=Math.round(this.height*n)/r,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(r){if(this.resource===r)return this;if(this.resource)throw new Error("Resource can be set only once");return r.bind(this),this.resource=r,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(r){this.emit("error",this,r)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Yr[this.cacheId],delete wr[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(r,n,i){i===void 0&&(i=te.STRICT_TEXTURE_CACHE);var o=typeof r=="string",a=null;if(o)a=r;else{if(!r._pixiId){var s=n&&n.pixiIdPrefix||"pixiid";r._pixiId=s+"_"+oo()}a=r._pixiId}var u=Yr[a];if(o&&i&&!u)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return u||(u=new t(r,n),u.cacheId=a,t.addToCache(u,a)),u},t.fromBuffer=function(r,n,i,o){r=r||new Float32Array(n*i*4);var a=new oa(r,{width:n,height:i}),s=r instanceof Float32Array?fe.FLOAT:fe.UNSIGNED_BYTE;return new t(a,Object.assign({},Dae,o||{width:n,height:i,type:s}))},t.addToCache=function(r,n){n&&(r.textureCacheIds.indexOf(n)===-1&&r.textureCacheIds.push(n),Yr[n]&&console.warn("BaseTexture added to the cache with an id ["+n+"] that already had an entry"),Yr[n]=r)},t.removeFromCache=function(r){if(typeof r=="string"){var n=Yr[r];if(n){var i=n.textureCacheIds.indexOf(r);return i>-1&&n.textureCacheIds.splice(i,1),delete Yr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;o0)if(r.resource)this.addResourceAt(r.resource,n);else throw new Error("CubeResource does not support copying of renderTexture.");else r.target=Xi.TEXTURE_CUBE_MAP_POSITIVE_X+n,r.parentTextureArray=this.baseTexture,this.items[n]=r;return r.valid&&!this.valid&&this.resize(r.realWidth,r.realHeight),this.items[n]=r,this},t.prototype.upload=function(r,n,i){for(var o=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(Yn),cb=function(e){rt(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];Yn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(Yn),fb=function(e){rt(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(Yn);kl.push(Kd,fb,sb,cb,lb,oa,ub,ab);var sI={__proto__:null,Resource:Xo,BaseImageResource:Yn,INSTALLED:kl,autoDetectResource:Xd,AbstractMultiResource:Yd,ArrayResource:ab,BufferResource:oa,CanvasResource:sb,CubeResource:ub,ImageResource:Kd,SVGResource:lb,VideoResource:cb,ImageBitmapResource:fb},Fae=function(e){rt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===an.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(oa),xh=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Bt("disposeFramebuffer"),this.multisample=at.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Re(null,{scaleMode:Cr.NEAREST,resolution:1,mipmap:Ir.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Re(new Fae(null,{width:this.width,height:this.height}),{scaleMode:Cr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Ir.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete wr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Re),Rc(t._EMPTY),Rc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Re.from(r)),Rc(t._WHITE),Rc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(ks),so=function(e){rt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||at.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,Kr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,Kr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=Kr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===Kr.CLEAR||r===Kr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(en.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(en.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Pt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=at.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||at.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=Ic[0],i=Ic[1],o=Ic[2],a=Ic[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?nm.copyFrom(o):nm.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),tc=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),mb=function(){function e(t){this.renderer=t,this.emptyRenderer=new tc(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=qn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),fI=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=at.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),Hae=new Ie,yb=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new xh(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Ie,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===qn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=xl.COLOR|xl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new fI(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=at.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=Dn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Ws=t}return Ws}var hc;function Jie(){if(!hc){hc=Sr.MEDIUM;var e=mI();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);hc=t.precision?Sr.HIGH:Sr.MEDIUM}}return hc}function vT(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Sr.HIGH&&r!==Sr.HIGH&&(n=Sr.MEDIUM),"precision "+n+` float; -`+e}else if(r!==Sr.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var eoe={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function gI(e){return eoe[e]}var dc=null,mT={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function yI(e,t){if(!dc){var r=Object.keys(mT);dc={};for(var n=0;n=qn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),ou=t}return ou}var Nc;function Wae(){if(!Nc){Nc=Or.MEDIUM;var e=vI();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Nc=t.precision?Or.HIGH:Or.MEDIUM}}return Nc}function rC(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Or.HIGH&&r!==Or.HIGH&&(n=Or.MEDIUM),"precision "+n+` float; +`+e}else if(r!==Or.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var qae={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function mI(e){return qae[e]}var Lc=null,nC={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function gI(e,t){if(!Lc){var r=Object.keys(nC);Lc={};for(var n=0;n0&&(t+=` -else `),r0&&(t+=` +else `),r"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),bI=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),yT=new Tt,_T=[],Ux=function(e){Je(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=_T.pop())!==null&&n!==void 0?n:new Re);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?yT.copyFrom(a):yT.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&_T.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(bI),Gx=function(e){Je(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(bI),zx=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Tt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),io=new Re,Xs=new Re,Hx=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Re,this.destinationFrame=new Re,this.viewportFrame=new Re}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(io.width=t.frame.width,io.height=t.frame.height,r=io),n||(Xs.x=t.frame.x,Xs.y=t.frame.y,Xs.width=r.width,Xs.height=r.height,n=Xs),a=o.framebuffer):(s=i.resolution,r||(io.width=i.screen.width,io.height=i.screen.height,r=io),n||(n=io,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function poe(e,t,r,n,i){r.buffer.update(i)}var voe={float:` +`,iC=new Pt,Zd=function(){function e(t,r){this._texture=t,this.mapCoord=new Pt,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof r>"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),xI=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),oC=new Pt,aC=[],bb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=aC.pop())!==null&&n!==void 0?n:new Ie);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?oC.copyFrom(a):oC.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&aC.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(xI),Sb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(xI),wb=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Pt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),vo=new Ie,su=new Ie,Eb=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Ie,this.destinationFrame=new Ie,this.viewportFrame=new Ie}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(vo.width=t.frame.width,vo.height=t.frame.height,r=vo),n||(su.x=t.frame.x,su.y=t.frame.y,su.width=r.width,su.height=r.height,n=su),a=o.framebuffer):(s=i.resolution,r||(vo.width=i.screen.width,vo.height=i.screen.height,r=vo),n||(n=vo,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function sse(e,t,r,n,i){r.buffer.update(i)}var use={float:` data[offset] = v; `,vec2:` data[offset] = v[0]; @@ -568,7 +570,7 @@ void main(void) { data[offset + i] = v[i]; } - `},SI={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function wI(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function EI(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function TI(e,t){if(!e.autoManage)return{size:0,syncFunc:poe};for(var r=EI(e.uniforms,t),n=wI(r),i=n.uboElements,o=n.size,a=[` + `},bI={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function SI(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function wI(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function EI(e,t){if(!e.autoManage)return{size:0,syncFunc:sse};for(var r=wI(e.uniforms,t),n=SI(r),i=n.uboElements,o=n.size,a=[` var v = null; var v2 = null; var cv = null; @@ -576,7 +578,7 @@ void main(void) var gl = renderer.gl var index = 0; var data = buffer.data; - `],s=0;s1){var v=gI(u.data.type),g=Math.max(SI[u.data.type]/16,1),p=v/g,m=(4-p%4)%4;a.push(` + `],s=0;s1){var p=mI(u.data.type),g=Math.max(bI[u.data.type]/16,1),v=p/g,m=(4-v%4)%4;a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -585,14 +587,14 @@ void main(void) for(var i=0; i < `+u.data.size*g+`; i++) { - for(var j = 0; j < `+p+`; j++) + for(var j = 0; j < `+v+`; j++) { data[offset++] = v[t++]; } offset += `+m+`; } - `)}else{var y=voe[u.data.type];a.push(` + `)}else{var y=use[u.data.type];a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -600,7 +602,7 @@ void main(void) `)}}return a.push(` renderer.buffer.update(buffer); `),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(` -`))}}var moe=function(){function e(){}return e}(),CI=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function goe(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function Ooe(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,v,g,p,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(v={},v[Z.RGB]=e.R11F_G11F_B10F,v),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(p={},p[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,p),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var tf=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Xx=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Ie,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Ooe(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==nl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new tf(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==nl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&ko(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Cr.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=dn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Cr.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===br.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===br.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===br.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===br.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),AI={__proto__:null,FilterSystem:Mx,BatchSystem:Fx,ContextSystem:Dx,FramebufferSystem:Bx,GeometrySystem:jx,MaskSystem:$x,ScissorSystem:Ux,StencilSystem:Gx,ProjectionSystem:zx,RenderTextureSystem:Hx,ShaderSystem:Vx,StateSystem:Wx,TextureGCSystem:qx,TextureSystem:Xx},Dv=new Tt,PI=function(e){Je(t,e);function t(r,n){r===void 0&&(r=Wa.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Re(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(hr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(hr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=Gie(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=Zi.create($g({width:o.width,height:o.height},s));return Dv.tx=-o.x,Dv.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:Dv,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=Wa.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=yx(r),jt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(ys),Aoe=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Poe=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=nt.HIGH?this.multisample=nt.HIGH:n>=nt.MEDIUM?this.multisample=nt.MEDIUM:n>=nt.LOW?this.multisample=nt.LOW:this.multisample=nt.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof Zi?(hr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return hr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){hr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),qn.add({name:r,type:Ve.RendererPlugin,ref:n})},t.__plugins={},t}(PI);qn.handleByMap(Ve.RendererPlugin,Yx.__plugins);function kI(e){return Yx.create(e)}var koe=`attribute vec2 aVertexPosition; +`))}}var lse=function(){function e(){}return e}(),TI=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function cse(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function xse(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,g,v,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[Z.RGB]=e.R11F_G11F_B10F,p),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(v={},v[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,v),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var Tf=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Ab=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Re,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=xse(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==bl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new Tf(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==bl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&Uo(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Ir.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=xn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Ir.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Cr.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),OI={__proto__:null,FilterSystem:vb,BatchSystem:mb,ContextSystem:gb,FramebufferSystem:yb,GeometrySystem:_b,MaskSystem:xb,ScissorSystem:bb,StencilSystem:Sb,ProjectionSystem:wb,RenderTextureSystem:Eb,ShaderSystem:Tb,StateSystem:Cb,TextureGCSystem:Ob,TextureSystem:Ab},hm=new Pt,AI=function(e){rt(t,e);function t(r,n){r===void 0&&(r=is.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Ie(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(mr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(mr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=Mae(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=so.create(gy({width:o.width,height:o.height},s));return hm.tx=-o.x,hm.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:hm,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=is.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=Qx(r),Gt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(ks),bse=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Sse=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=at.HIGH?this.multisample=at.HIGH:n>=at.MEDIUM?this.multisample=at.MEDIUM:n>=at.LOW?this.multisample=at.LOW:this.multisample=at.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof so?(mr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return mr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){mr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ni.add({name:r,type:Xe.RendererPlugin,ref:n})},t.__plugins={},t}(AI);ni.handleByMap(Xe.RendererPlugin,Pb.__plugins);function PI(e){return Pb.create(e)}var wse=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -611,7 +613,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Ioe=`attribute vec2 aVertexPosition; +}`,Ese=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -637,7 +639,7 @@ void main(void) gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } -`,II=koe,Kx=Ioe,Roe=function(){function e(t){hr("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}return e.prototype.destroy=function(){this.renderer=null},e}(),Qf=function(){function e(){this.texArray=null,this.blend=0,this.type=qr.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),Jf=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Ie._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),v._batchEnabled=l,v.touched=u,f.elements[f.count++]=v)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;dthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Re._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),p._batchEnabled=l,p.touched=u,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;d0&&(r+=` else `),n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=mc+"px",r.style.height=mc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=ST.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===Foe&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Ve.RendererPlugin,Ve.CanvasRendererPlugin]},e}();/*! + */var DI={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};_t.mixin(DI);var Pse=9,Fc=100,kse=0,Rse=0,lC=2,cC=1,Ise=-1e3,Nse=-1e3,Lse=2,FI=function(){function e(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(tn.tablet||tn.phone)&&this.createTouchHook();var r=document.createElement("div");r.style.width=Fc+"px",r.style.height=Fc+"px",r.style.position="absolute",r.style.top=kse+"px",r.style.left=Rse+"px",r.style.zIndex=lC.toString(),this.div=r,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),e.prototype.createTouchHook=function(){var t=this,r=document.createElement("button");r.style.width=cC+"px",r.style.height=cC+"px",r.style.position="absolute",r.style.top=Ise+"px",r.style.left=Nse+"px",r.style.zIndex=Lse.toString(),r.style.backgroundColor="#FF0000",r.title="select to enable accessibility for this content",r.addEventListener("focus",function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()}),document.body.appendChild(r),this._hookDiv=r},e.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},e.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)===null||t===void 0||t.appendChild(this.div))},e.prototype.deactivate=function(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)===null||t===void 0||t.removeChild(this.div))},e.prototype.updateAccessibleObjects=function(t){if(!(!t.visible||!t.accessibleChildren)){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var r=t.children;if(r)for(var n=0;n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=Fc+"px",r.style.height=Fc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=lC.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===Pse&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Xe.RendererPlugin,Xe.CanvasRendererPlugin]},e}();/*! * @pixi/interaction - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/interaction is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Gg=function(){function e(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new Oe,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(e.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),e.prototype.getLocalPosition=function(t,r,n){return t.worldTransform.applyInverse(n||this.global,r)},e.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var r="buttons"in t&&t.buttons;this.buttons=Number.isInteger(r)?r:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},e}();/*! ***************************************************************************** + */var _y=function(){function e(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new Ce,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(e.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),e.prototype.getLocalPosition=function(t,r,n){return t.worldTransform.applyInverse(n||this.global,r)},e.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var r="buttons"in t&&t.buttons;this.buttons=Number.isInteger(r)?r:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -701,25 +703,25 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var zg=function(e,t){return zg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zg(e,t)};function Goe(e,t){zg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jI=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),rf=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),zoe=function(){function e(){this._tempPoint=new Oe}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var v=h[d],g=this.recursiveFindHit(t,v,n,i,l);if(g){if(!v.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),$I={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};mt.mixin($I);var gc=1,yc={target:null,data:{global:null}},UI=function(e){Goe(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new Gg,i.mouse.identifier=gc,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[gc]=i.mouse,i.interactionDataPool=[],i.eventData=new jI,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new zoe,i._tempDisplayObject=new Tx,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return yc.target=null,yc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(yc,n,null,!0),yc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(Ft.system.add(this.tickerUpdate,this,Bn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(Ft.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=gc),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Ve.RendererPlugin,Ve.CanvasRendererPlugin]},t}(ys);/*! +***************************************************************************** */var xy=function(e,t){return xy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},xy(e,t)};function Mse(e,t){xy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var BI=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),Cf=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),Dse=function(){function e(){this._tempPoint=new Ce}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var p=h[d],g=this.recursiveFindHit(t,p,n,i,l);if(g){if(!p.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),jI={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};_t.mixin(jI);var Bc=1,jc={target:null,data:{global:null}},$I=function(e){Mse(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new _y,i.mouse.identifier=Bc,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[Bc]=i.mouse,i.interactionDataPool=[],i.eventData=new BI,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new Dse,i._tempDisplayObject=new ob,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return jc.target=null,jc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(jc,n,null,!0),jc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(jt.system.add(this.tickerUpdate,this,Xn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(jt.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=Bc),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Xe.RendererPlugin,Xe.CanvasRendererPlugin]},t}(ks);/*! * @pixi/extract - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/extract is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Hoe=new Re,Voe=4,GI=function(){function e(t){this.renderer=t}return e.prototype.image=function(t,r,n){var i=new Image;return i.src=this.base64(t,r,n),i},e.prototype.base64=function(t,r,n){return this.canvas(t).toDataURL(r,n)},e.prototype.canvas=function(t,r){var n=this._rawPixels(t,r),i=n.pixels,o=n.width,a=n.height,s=n.flipY,u=new Fg(o,a,1),l=u.context.getImageData(0,0,o,a);if(e.arrayPostDivide(i,l.data),u.context.putImageData(l,0,0),s){var c=new Fg(u.width,u.height,1);c.context.scale(1,-1),c.context.drawImage(u.canvas,0,-a),u.destroy(),u=c}return u.canvas},e.prototype.pixels=function(t,r){var n=this._rawPixels(t,r).pixels;return e.arrayPostDivide(n,n),n},e.prototype._rawPixels=function(t,r){var n=this.renderer,i,o=!1,a,s=!1;if(t)if(t instanceof Zi)a=t;else{var u=n.context.webGLVersion>=2?n.multisample:nt.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==nt.NONE){var l=Zi.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=Hoe,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(Voe*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n=2?n.multisample:at.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==at.NONE){var l=so.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=Fse,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(Bse*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n"u"&&(Bv=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),Bv&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?TT:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===Woe&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=TT:n===Xoe&&(n=qoe);var i=n/100|0;if(i===Yoe)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,xc||(xc=document.createElement("a")),xc.href=t;var n=zI(xc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(ht||(ht={}));function oo(){}function Koe(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o"u"&&(dm=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),dm&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?hC:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===jse&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=hC:n===Use&&(n=$se);var i=n/100|0;if(i===Gse)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,Uc||(Uc=document.createElement("a")),Uc.href=t;var n=GI(Uc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(vt||(vt={}));function mo(){}function zse(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*dl[n],p=0;p1?f:d,levelHeight:i>1?h:v,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*dl[n];return l},t}(qI),XI=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===ht.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,F=0;F<_;F++)b.push(new Uint8Array(e,z,k)),z+=k}return b.map(function(q){return new th(q,{format:x,width:o,height:i,levels:a})})}throw u&fae?new Error("DDSParser does not support uncompressed texture data."):u&hae?new Error("DDSParser does not supported YUV uncompressed texture data."):u&dae?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&lae?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var vi,Kn,Ks,PT=[171,75,84,88,32,49,49,187,13,10,26,10],bae=67305985,sn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},Wg=64,qg=(vi={},vi[fe.UNSIGNED_BYTE]=1,vi[fe.UNSIGNED_SHORT]=2,vi[fe.INT]=4,vi[fe.UNSIGNED_INT]=4,vi[fe.FLOAT]=4,vi[fe.HALF_FLOAT]=8,vi),ZI=(Kn={},Kn[Z.RGBA]=4,Kn[Z.RGB]=3,Kn[Z.RG]=2,Kn[Z.RED]=1,Kn[Z.LUMINANCE]=1,Kn[Z.LUMINANCE_ALPHA]=2,Kn[Z.ALPHA]=1,Kn),QI=(Ks={},Ks[fe.UNSIGNED_SHORT_4_4_4_4]=2,Ks[fe.UNSIGNED_SHORT_5_5_5_1]=2,Ks[fe.UNSIGNED_SHORT_5_6_5]=2,Ks);function JI(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!Sae(e,n))return null;var i=n.getUint32(sn.ENDIANNESS,!0)===bae,o=n.getUint32(sn.GL_TYPE,i),a=n.getUint32(sn.GL_FORMAT,i),s=n.getUint32(sn.GL_INTERNAL_FORMAT,i),u=n.getUint32(sn.PIXEL_WIDTH,i),l=n.getUint32(sn.PIXEL_HEIGHT,i)||1,c=n.getUint32(sn.PIXEL_DEPTH,i)||1,f=n.getUint32(sn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(sn.NUMBER_OF_FACES,i),d=n.getUint32(sn.NUMBER_OF_MIPMAP_LEVELS,i),v=n.getUint32(sn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,p=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?qg[o]?b=qg[o]*ZI[a]:b=QI[o]:b=dl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?Eae(n,v,i):null,T=x*b,k=T,A=u,P=l,F=m,D=y,H=Wg+v,re=0;re1||o!==0?A:F,levelHeight:d>1||o!==0?P:D,levelBuffer:new Uint8Array(t,q,k)},q+=k}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,F=A+g-1&~(g-1),D=P+p-1&~(p-1),k=F*D*b}return o!==0?{uncompressed:_.map(function(ge){var Q=ge[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4)),{resource:new Xo(Q,{width:ge[0].levelWidth,height:ge[0].levelHeight}),type:o,format:L?wae(a):a}}),kvData:w}:{compressed:_.map(function(ge){return new th(null,{format:s,width:u,height:l,levels:d,levelBuffers:ge})}),kvData:w}}function Sae(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;u0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Rl[n],v=0;v1?f:d,levelHeight:i>1?h:p,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Rl[n];return l},t}(WI),qI=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===vt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,D=0;D<_;D++)b.push(new Uint8Array(e,z,R)),z+=R}return b.map(function(q){return new Eh(q,{format:x,width:o,height:i,levels:a})})}throw u&iue?new Error("DDSParser does not support uncompressed texture data."):u&oue?new Error("DDSParser does not supported YUV uncompressed texture data."):u&aue?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&rue?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var Ti,ai,lu,mC=[171,75,84,88,32,49,49,187,13,10,26,10],pue=67305985,dn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},wy=64,Ey=(Ti={},Ti[fe.UNSIGNED_BYTE]=1,Ti[fe.UNSIGNED_SHORT]=2,Ti[fe.INT]=4,Ti[fe.UNSIGNED_INT]=4,Ti[fe.FLOAT]=4,Ti[fe.HALF_FLOAT]=8,Ti),KI=(ai={},ai[Z.RGBA]=4,ai[Z.RGB]=3,ai[Z.RG]=2,ai[Z.RED]=1,ai[Z.LUMINANCE]=1,ai[Z.LUMINANCE_ALPHA]=2,ai[Z.ALPHA]=1,ai),ZI=(lu={},lu[fe.UNSIGNED_SHORT_4_4_4_4]=2,lu[fe.UNSIGNED_SHORT_5_5_5_1]=2,lu[fe.UNSIGNED_SHORT_5_6_5]=2,lu);function QI(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!vue(e,n))return null;var i=n.getUint32(dn.ENDIANNESS,!0)===pue,o=n.getUint32(dn.GL_TYPE,i),a=n.getUint32(dn.GL_FORMAT,i),s=n.getUint32(dn.GL_INTERNAL_FORMAT,i),u=n.getUint32(dn.PIXEL_WIDTH,i),l=n.getUint32(dn.PIXEL_HEIGHT,i)||1,c=n.getUint32(dn.PIXEL_DEPTH,i)||1,f=n.getUint32(dn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(dn.NUMBER_OF_FACES,i),d=n.getUint32(dn.NUMBER_OF_MIPMAP_LEVELS,i),p=n.getUint32(dn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,v=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?Ey[o]?b=Ey[o]*KI[a]:b=ZI[o]:b=Rl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?gue(n,p,i):null,T=x*b,R=T,A=u,P=l,D=m,F=y,H=wy+p,re=0;re1||o!==0?A:D,levelHeight:d>1||o!==0?P:F,levelBuffer:new Uint8Array(t,q,R)},q+=R}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,D=A+g-1&~(g-1),F=P+v-1&~(v-1),R=D*F*b}return o!==0?{uncompressed:_.map(function(me){var Q=me[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)),{resource:new oa(Q,{width:me[0].levelWidth,height:me[0].levelHeight}),type:o,format:L?mue(a):a}}),kvData:w}:{compressed:_.map(function(me){return new Eh(null,{format:s,width:u,height:l,levels:d,levelBuffers:me})}),kvData:w}}function vue(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;us&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,jt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengths&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Gt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengthi&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=bx(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=Kk(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,v=0,g=0;vo&&(p=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,v,p);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?xd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Ve.RendererPlugin},t}(Fl);/*! +`,rN=function(e){tN(t,e);function t(r){var n=e.call(this,r)||this;return n.shader=null,n.properties=null,n.tempMatrix=new Pt,n.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:n.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:n.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:n.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:n.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:fe.UNSIGNED_BYTE,uploadFunction:n.uploadTint,offset:0}],n.shader=yi.from(xue,_ue,{}),n.state=po.for2d(),n}return t.prototype.render=function(r){var n=r.children,i=r._maxSize,o=r._batchSize,a=this.renderer,s=n.length;if(s!==0){s>i&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=tb(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=YR(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,p=0,g=0;po&&(v=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,p,v);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?Wd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Xe.RendererPlugin},t}(tc);/*! * @pixi/graphics - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/graphics is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Tn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Tn||(Tn={}));var ai;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(ai||(ai={}));var Za={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},eb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=pe.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=pe.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** + */var Mn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Mn||(Mn={}));var mi;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(mi||(mi={}));var ls={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},Lb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -803,7 +805,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Yg=function(e,t){return Yg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Yg(e,t)};function tb(e,t){Yg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function IT(e,t){var r,n;t===void 0&&(t=!1);var i=e.length;if(!(i<6)){for(var o=0,a=0,s=e[i-2],u=e[i-1];a0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){IT(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),v=d*8+(i?4:0)+(o?4:0);if(t.length=v,v!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,p=d*4+(i?2:0)+2,m=p,y=v;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--p]=T,t[--p]=w,o){var k=n-x;t[m++]=w,t[m++]=k,t[--y]=k,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,v=Math.abs(d),g=Math.sqrt(u*u+l*l),p=(15*v*Math.sqrt(g)/Math.PI>>0)+1,m=d/p;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Tn.ROUND?v+=ao(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4:v+=2,h.push(b-F*q,w-D*q),h.push(b+F*z,w+D*z));continue}var ye=(-A+_)*(-P+w)-(-A+b)*(-P+x),be=(-F+T)*(-D+w)-(-F+b)*(-D+k),we=(De*be-Q*ye)/ee,Be=(L*ye-ge*be)/ee,Ue=(we-b)*(we-b)+(Be-w)*(Be-w),Ye=b+(we-b)*z,Ae=w+(Be-w)*z,Fe=b-(we-b)*q,Ge=w-(Be-w)*q,Ee=Math.min(De*De+ge*ge,Q*Q+L*L),ot=ae?z:q,Kt=Ee+ot*ot*m,Ne=Ue<=Kt;Ne?o.join===Tn.BEVEL||Ue/m>y?(ae?(h.push(Ye,Ae),h.push(b+A*q,w+P*q),h.push(Ye,Ae),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,Ge),h.push(b-F*z,w-D*z),h.push(Fe,Ge)),v+=2):o.join===Tn.ROUND?ae?(h.push(Ye,Ae),h.push(b+A*q,w+P*q),v+=ao(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+4,h.push(Ye,Ae),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,Ge),v+=ao(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4,h.push(b-F*z,w-D*z),h.push(Fe,Ge)):(h.push(Ye,Ae),h.push(Fe,Ge)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Tn.ROUND?ae?v+=ao(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+2:v+=ao(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+2:o.join===Tn.MITER&&Ue/m<=y&&(ae?(h.push(Fe,Ge),h.push(Fe,Ge)):(h.push(Ye,Ae),h.push(Ye,Ae)),v+=2),h.push(b-F*z,w-D*z),h.push(b+F*q,w+D*q),v+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=p,P*=p,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===ai.ROUND?v+=ao(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===ai.SQUARE&&(v+=RT(b,w,A,P,z,q,!1,h)));for(var sr=t.indices,xn=Za.epsilon*Za.epsilon,ue=g;ueh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=Za._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/cl)*40),h=c/(f*2),d=h*2,v=Math.cos(h),g=Math.sin(h),p=f-1,m=p%1/p,y=0;y<=p;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((v*b+g*w)*o+n,(v*-w+g*b)*o+i)}},e}(),aR=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,v=0,g=0,p=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,v=1-f,g=v*v,p=g*v,m=p*t+3*g*f*n+3*v*h*o+d*s,y=p*r+3*g*f*i+3*v*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=Za._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,v=0,g=0;s.push(u,l);for(var p=1,m=0;p<=c;++p)m=p/c,f=1-m,h=f*f,d=h*f,v=m*m,g=v*m,s.push(d*u+3*h*m*t+3*f*v*n+g*o,d*l+3*h*m*r+3*f*v*i+g*a)},e}(),sR=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,v=2*Math.sqrt(f+h+d),g=Math.sqrt(f),p=2*f*g,m=2*Math.sqrt(d),y=h/g;return(p*v+g*h*(v-m)+(4*d*f-h*h)*Math.log((2*g+y+v)/(y+m)))/(4*p)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=Za._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),uR=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),so,nf=(so={},so[Ot.POLY]=rb,so[Ot.CIRC]=pl,so[Ot.ELIP]=pl,so[Ot.RECT]=iR,so[Ot.RREC]=oR,so),Qg=[],lu=[],Jg=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),sa=new Oe,lR=function(e){tb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new fl,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new Jg(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new Jg(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=lu.pop(),a||(a=new Qf,a.texArray=new Jf),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),p.touched=1,p._batchEnabled=r,p._batchLocation=s,p.wrapMode=dn.REPEAT,a.texArray.elements[a.texArray.count++]=p,s++)),a.size+=d.size,h+=d.size,l=p._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Ie._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=xd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Ru,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Ru,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),sR.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),aR.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=Zg.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,v=u.anticlockwise;this.arc(l,c,f,h,d,v)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=cl:s&&o<=a&&(o+=cl);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),v=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Re(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new oI(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new nI(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new iI(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){yC(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),p=d*8+(i?4:0)+(o?4:0);if(t.length=p,p!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,v=d*4+(i?2:0)+2,m=v,y=p;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--v]=T,t[--v]=w,o){var R=n-x;t[m++]=w,t[m++]=R,t[--y]=R,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,p=Math.abs(d),g=Math.sqrt(u*u+l*l),v=(15*p*Math.sqrt(g)/Math.PI>>0)+1,m=d/v;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Mn.ROUND?p+=go(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4:p+=2,h.push(b-D*q,w-F*q),h.push(b+D*z,w+F*z));continue}var ge=(-A+_)*(-P+w)-(-A+b)*(-P+x),xe=(-D+T)*(-F+w)-(-D+b)*(-F+R),be=($e*xe-Q*ge)/ee,Ue=(L*ge-me*xe)/ee,He=(be-b)*(be-b)+(Ue-w)*(Ue-w),Qe=b+(be-b)*z,Oe=w+(Ue-w)*z,De=b-(be-b)*q,Ve=w-(Ue-w)*q,Se=Math.min($e*$e+me*me,Q*Q+L*L),ut=ae?z:q,Jt=Se+ut*ut*m,Ne=He<=Jt;Ne?o.join===Mn.BEVEL||He/m>y?(ae?(h.push(Qe,Oe),h.push(b+A*q,w+P*q),h.push(Qe,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(De,Ve),h.push(b-D*z,w-F*z),h.push(De,Ve)),p+=2):o.join===Mn.ROUND?ae?(h.push(Qe,Oe),h.push(b+A*q,w+P*q),p+=go(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+4,h.push(Qe,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(De,Ve),p+=go(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4,h.push(b-D*z,w-F*z),h.push(De,Ve)):(h.push(Qe,Oe),h.push(De,Ve)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Mn.ROUND?ae?p+=go(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+2:p+=go(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+2:o.join===Mn.MITER&&He/m<=y&&(ae?(h.push(De,Ve),h.push(De,Ve)):(h.push(Qe,Oe),h.push(Qe,Oe)),p+=2),h.push(b-D*z,w-F*z),h.push(b+D*q,w+F*q),p+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=v,P*=v,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===mi.ROUND?p+=go(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===mi.SQUARE&&(p+=_C(b,w,A,P,z,q,!1,h)));for(var fr=t.indices,An=ls.epsilon*ls.epsilon,le=g;leh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=ls._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/Al)*40),h=c/(f*2),d=h*2,p=Math.cos(h),g=Math.sin(h),v=f-1,m=v%1/v,y=0;y<=v;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((p*b+g*w)*o+n,(p*-w+g*b)*o+i)}},e}(),oN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,p=0,g=0,v=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,p=1-f,g=p*p,v=g*p,m=v*t+3*g*f*n+3*p*h*o+d*s,y=v*r+3*g*f*i+3*p*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=ls._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,p=0,g=0;s.push(u,l);for(var v=1,m=0;v<=c;++v)m=v/c,f=1-m,h=f*f,d=h*f,p=m*m,g=p*m,s.push(d*u+3*h*m*t+3*f*p*n+g*o,d*l+3*h*m*r+3*f*p*i+g*a)},e}(),aN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,p=2*Math.sqrt(f+h+d),g=Math.sqrt(f),v=2*f*g,m=2*Math.sqrt(d),y=h/g;return(v*p+g*h*(p-m)+(4*d*f-h*h)*Math.log((2*g+y+p)/(y+m)))/(4*v)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=ls._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),sN=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),yo,Of=(yo={},yo[Rt.POLY]=Db,yo[Rt.CIRC]=Il,yo[Rt.ELIP]=Il,yo[Rt.RECT]=nN,yo[Rt.RREC]=iN,yo),Py=[],wu=[],ky=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),ya=new Ce,uN=function(e){Mb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new Pl,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new ky(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new ky(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=wu.pop(),a||(a=new bh,a.texArray=new Sh),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),v.touched=1,v._batchEnabled=r,v._batchLocation=s,v.wrapMode=xn.REPEAT,a.texArray.elements[a.texArray.count++]=v,s++)),a.size+=d.size,h+=d.size,l=v._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Re._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=Wd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Wu,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Wu,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),aN.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),oN.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=Ay.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,p=u.anticlockwise;this.arc(l,c,f,h,d,p)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=Al:s&&o<=a&&(o+=Al);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),p=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Ie(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new iI(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new rI(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new nI(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d=o&&Zs.x=a&&Zs.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||pe.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(dr);/*! +***************************************************************************** */var Ry=function(e,t){return Ry=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ry(e,t)};function Tue(e,t){Ry(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var cu=new Ce,Cue=new Uint16Array([0,1,2,0,2,3]),jn=function(e){Tue(t,e);function t(r){var n=e.call(this)||this;return n._anchor=new Di(n._onAnchorUpdate,n,r?r.defaultAnchor.x:0,r?r.defaultAnchor.y:0),n._texture=null,n._width=0,n._height=0,n._tint=null,n._tintRGB=null,n.tint=16777215,n.blendMode=ce.NORMAL,n._cachedTint=16777215,n.uvs=null,n.texture=r||de.EMPTY,n.vertexData=new Float32Array(8),n.vertexTrimmedData=null,n._transformID=-1,n._textureID=-1,n._transformTrimmedID=-1,n._textureTrimmedID=-1,n.indices=Cue,n.pluginName="batch",n.isSprite=!0,n._roundPixels=te.ROUND_PIXELS,n}return t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Mo(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Mo(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){var r=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===r._updateID)){this._textureID!==r._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=r._updateID;var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this.vertexData,f=r.trim,h=r.orig,d=this._anchor,p=0,g=0,v=0,m=0;if(f?(g=f.x-d._x*h.width,p=g+f.width,m=f.y-d._y*h.height,v=m+f.height):(g=-d._x*h.width,p=g+h.width,m=-d._y*h.height,v=m+h.height),c[0]=i*g+a*m+u,c[1]=s*m+o*g+l,c[2]=i*p+a*m+u,c[3]=s*m+o*p+l,c[4]=i*p+a*v+u,c[5]=s*v+o*p+l,c[6]=i*g+a*v+u,c[7]=s*v+o*g+l,this._roundPixels)for(var y=te.RESOLUTION,_=0;_=o&&cu.x=a&&cu.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||de.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(gr);/*! * @pixi/text - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -841,8 +843,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ty=function(e,t){return ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},ty(e,t)};function Lae(e,t){ty(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Qa;(function(e){e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(Qa||(Qa={}));var Hv={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Qa.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},Mae=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Bo=function(){function e(t){this.styleID=0,this.reset(),Wv(this,t,t)}return e.prototype.clone=function(){var t={};return Wv(t,this,Hv),new e(t)},e.prototype.reset=function(){Wv(this,Hv,Hv)},Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var r=Vv(t);this._dropShadowColor!==r&&(this._dropShadowColor=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){var r=Vv(t);this._fill!==r&&(this._fill=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){Fae(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var r=Vv(t);this._stroke!==r&&(this._stroke=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),e.prototype.toFontString=function(){var t=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,r=this.fontFamily;Array.isArray(this.fontFamily)||(r=this.fontFamily.split(","));for(var n=r.length-1;n>=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&Mae.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function NT(e){return typeof e=="number"?yx(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function Vv(e){if(Array.isArray(e)){for(var t=0;tv)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wv&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=F}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var D=p===g.length-1;s+=e.addLine(m,!D),d=!1,a="",o=0}else x+o>v&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` -`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&p>m&&(y=(m+p)/2);var _=m+g,x=i.lineHeight*(v+1),b=_;v+1=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&Aue.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function xC(e){return typeof e=="number"?Qx(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function xm(e){if(Array.isArray(e)){for(var t=0;tp)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wp&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=D}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var F=v===g.length-1;s+=e.addLine(m,!F),d=!1,a="",o=0}else x+o>p&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` +`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&v>m&&(y=(m+v)/2);var _=m+g,x=i.lineHeight*(p+1),b=_;p+10},e}();function jae(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&Ft.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function dR(e,t){return t instanceof Ie?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function Wae(e,t){if(!(t instanceof vl))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i0},e}();function Iue(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&jt.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function hN(e,t){return t instanceof Re?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function jue(e,t){if(!(t instanceof Nl))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i=o&&Qs.x=a&&Qs.y=o&&fu.x=a&&fu.y1?ui.from(Qae,Jae,n):ui.from(LT,Zae,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==dn.CLAMP:l.wrapMode===dn.CLAMP&&(l.wrapMode=dn.REPEAT));var v=d?this.simpleShader:this.shader,g=u.width,p=u.height,m=r._width,y=r._height;Cc.set(f.a*g/m,f.b*g/y,f.c*p/m,f.d*p/y,f.tx/m,f.ty/y),Cc.invert(),d?Cc.prepend(h.mapCoord):(v.uniforms.uMapCoord=h.mapCoord.toArray(!0),v.uniforms.uClampFrame=h.uClampFrame,v.uniforms.uClampOffset=h.uClampOffset),v.uniforms.uTransform=Cc.toArray(!0),v.uniforms.uColor=Sx(r.tint,r.worldAlpha,v.uniforms.uColor,c),v.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),v.uniforms.uSampler=u,n.shader.bind(v),n.geometry.bind(i),this.state.blendMode=bx(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Ve.RendererPlugin},t}(Fl);/*! +`,qc=new Pt,gN=function(e){mN(t,e);function t(r){var n=e.call(this,r)||this;return r.runners.contextChange.add(n),n.quad=new pb,n.state=po.for2d(),n}return t.prototype.contextChange=function(){var r=this.renderer,n={globals:r.globalUniforms};this.simpleShader=yi.from(bC,zue,n),this.shader=r.context.webGLVersion>1?yi.from(Vue,Wue,n):yi.from(bC,Hue,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==xn.CLAMP:l.wrapMode===xn.CLAMP&&(l.wrapMode=xn.REPEAT));var p=d?this.simpleShader:this.shader,g=u.width,v=u.height,m=r._width,y=r._height;qc.set(f.a*g/m,f.b*g/y,f.c*v/m,f.d*v/y,f.tx/m,f.ty/y),qc.invert(),d?qc.prepend(h.mapCoord):(p.uniforms.uMapCoord=h.mapCoord.toArray(!0),p.uniforms.uClampFrame=h.uClampFrame,p.uniforms.uClampOffset=h.uClampOffset),p.uniforms.uTransform=qc.toArray(!0),p.uniforms.uColor=rb(r.tint,r.worldAlpha,p.uniforms.uColor,c),p.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),p.uniforms.uSampler=u,n.shader.bind(p),n.geometry.bind(i),this.state.blendMode=tb(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Xe.RendererPlugin},t}(tc);/*! * @pixi/mesh - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1019,7 +1021,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var iy=function(e,t){return iy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},iy(e,t)};function ib(e,t){iy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _R=function(){function e(t,r){this.uvBuffer=t,this.uvMatrix=r,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return e.prototype.update=function(t){if(!(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var r=this.uvBuffer.data;(!this.data||this.data.length!==r.length)&&(this.data=new Float32Array(r.length)),this.uvMatrix.multiplyUvs(r,this.data),this._updateID++}},e}(),qv=new Oe,MT=new Ru,Ja=function(e){ib(t,e);function t(r,n,i,o){o===void 0&&(o=qr.TRIANGLES);var a=e.call(this)||this;return a.geometry=r,a.shader=n,a.state=i||no.for2d(),a.drawMode=o,a.start=0,a.size=0,a.uvs=null,a.indices=null,a.vertexData=new Float32Array(1),a.vertexDirty=-1,a._transformID=-1,a._roundPixels=te.ROUND_PIXELS,a.batchUvs=null,a}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},set:function(r){this._geometry!==r&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=r,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"material",{get:function(){return this.shader},set:function(r){this.shader=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(r){this.state.blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(r){this._roundPixels!==r&&(this._transformID=-1),this._roundPixels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(r){this.shader.tint=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(r){this.shader.texture=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){var n=this.geometry.buffers[0].data,i=this.shader;i.batchable&&this.drawMode===qr.TRIANGLES&&n.length>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;Sx(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(ui),Dl=function(e){ib(t,e);function t(r,n,i){var o=e.call(this)||this,a=new wt(r),s=new wt(n,!0),u=new wt(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(xs);/*! +`,hs=function(e){Bb(t,e);function t(r,n){var i=this,o={uSampler:r,alpha:1,uTextureMatrix:Pt.IDENTITY,uColor:new Float32Array([1,1,1,1])};return n=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},n),n.uniforms&&Object.assign(o,n.uniforms),i=e.call(this,n.program||Ns.from(Xue,que),o)||this,i._colorDirty=!1,i.uvMatrix=new Zd(r),i.batchable=n.program===void 0,i.pluginName=n.pluginName,i.tint=n.tint,i.alpha=n.alpha,i}return Object.defineProperty(t.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(r){this.uniforms.uSampler!==r&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!r.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=r,this.uvMatrix.texture=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){r!==this._alpha&&(this._alpha=r,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){r!==this._tint&&(this._tint=r,this._tintRGB=(r>>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;rb(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(yi),rc=function(e){Bb(t,e);function t(r,n,i){var o=e.call(this)||this,a=new Ct(r),s=new Ct(n,!0),u=new Ct(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Is);/*! * @pixi/text-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1062,7 +1064,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var oy=function(e,t){return oy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},oy(e,t)};function rse(e,t){oy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ml=function(){function e(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return e}(),xR=function(){function e(){}return e.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},e.parse=function(t){var r=t.match(/^[a-z]+\s+.+$/gm),n={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var i in r){var o=r[i].match(/^[a-z]+/gm)[0],a=r[i].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var u in a){var l=a[u].split("="),c=l[0],f=l[1].replace(/"/gm,""),h=parseFloat(f),d=isNaN(h)?f:h;s[c]=d}n[o].push(s)}var v=new ml;return n.info.forEach(function(g){return v.info.push({face:g.face,size:parseInt(g.size,10)})}),n.common.forEach(function(g){return v.common.push({lineHeight:parseInt(g.lineHeight,10)})}),n.page.forEach(function(g){return v.page.push({id:parseInt(g.id,10),file:g.file})}),n.char.forEach(function(g){return v.char.push({id:parseInt(g.id,10),page:parseInt(g.page,10),x:parseInt(g.x,10),y:parseInt(g.y,10),width:parseInt(g.width,10),height:parseInt(g.height,10),xoffset:parseInt(g.xoffset,10),yoffset:parseInt(g.yoffset,10),xadvance:parseInt(g.xadvance,10)})}),n.kerning.forEach(function(g){return v.kerning.push({first:parseInt(g.first,10),second:parseInt(g.second,10),amount:parseInt(g.amount,10)})}),n.distanceField.forEach(function(g){return v.distanceField.push({distanceRange:parseInt(g.distanceRange,10),fieldType:g.fieldType})}),v},e}(),rh=function(){function e(){}return e.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null},e.parse=function(t){for(var r=new ml,n=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),a=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),u=t.getElementsByTagName("distanceField"),l=0;l")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return rh.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return rh.parse(r)},e}(),Xv=[xR,rh,bR];function ob(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,p=null,m=null,y=null,g=0,v=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+v>=h){if(v===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),v=0,_=0;continue}ise(p,m,T,v,g,s,f);var F=of(T.text);d.char.push({id:F,page:x.length-1,x:v/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(k-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),v+=(P+2*a)*s,v=Math.ceil(v)}if(!(n!=null&&n.skipKerning))for(var b=0,D=c.length;b")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Th.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Th.parse(r)},e}(),wm=[_N,Th,xN];function jb(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,v=null,m=null,y=null,g=0,p=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+p>=h){if(p===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),p=0,_=0;continue}Zue(v,m,T,p,g,s,f);var D=Af(T.text);d.char.push({id:D,page:x.length-1,x:p/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(R-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),p+=(P+2*a)*s,p=Math.ceil(p)}if(!(n!=null&&n.skipKerning))for(var b=0,F=c.length;b0&&a.x>h&&(++x,ko(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),p=Math.max(p,_),m++,a.x=0,a.y+=n.lineHeight,v=null,w=0)}}var D=f[f.length-1];D!=="\r"&&D!==` -`&&(/(?:\s)/.test(D)&&(g=_),u.push(g),p=Math.max(p,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=p-u[T]:this._align==="center"?re=(p-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(p-u[T])/l[T]),H.push(re)}var z=s.length,q={},ue=[],De=this._activePagesMeshData;d.push.apply(d,De);for(var T=0;T6*we)||L.vertices.length0&&a.x>h&&(++x,Uo(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),v=Math.max(v,_),m++,a.x=0,a.y+=n.lineHeight,p=null,w=0)}}var F=f[f.length-1];F!=="\r"&&F!==` +`&&(/(?:\s)/.test(F)&&(g=_),u.push(g),v=Math.max(v,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=v-u[T]:this._align==="center"?re=(v-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(v-u[T])/l[T]),H.push(re)}var z=s.length,q={},le=[],$e=this._activePagesMeshData;d.push.apply(d,$e);for(var T=0;T6*be)||L.vertices.length=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` -`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var gl=function(e){TR(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=hse(a,r),l=vse(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,zr.CLEAR);for(var c=1;c=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` +`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var Ml=function(e){EN(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=ole(a,r),l=ule(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,Kr.CLEAR);for(var c=1;c>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),v=s*(1-i)-u*o,g=s*(1-i)-u*o,p=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,v,0,0,g,p,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(me);ly.prototype.grayscale=ly.prototype.greyscale;/*! +`,$y=function(e){cle(t,e);function t(){var r=this,n={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return r=e.call(this,kb,fle,n)||this,r.alpha=1,r}return t.prototype._loadMatrix=function(r,n){n===void 0&&(n=!1);var i=r;n&&(this._multiply(i,this.uniforms.m,r),i=this._colorMatrix(i)),this.uniforms.m=i},t.prototype._multiply=function(r,n,i){return r[0]=n[0]*i[0]+n[1]*i[5]+n[2]*i[10]+n[3]*i[15],r[1]=n[0]*i[1]+n[1]*i[6]+n[2]*i[11]+n[3]*i[16],r[2]=n[0]*i[2]+n[1]*i[7]+n[2]*i[12]+n[3]*i[17],r[3]=n[0]*i[3]+n[1]*i[8]+n[2]*i[13]+n[3]*i[18],r[4]=n[0]*i[4]+n[1]*i[9]+n[2]*i[14]+n[3]*i[19]+n[4],r[5]=n[5]*i[0]+n[6]*i[5]+n[7]*i[10]+n[8]*i[15],r[6]=n[5]*i[1]+n[6]*i[6]+n[7]*i[11]+n[8]*i[16],r[7]=n[5]*i[2]+n[6]*i[7]+n[7]*i[12]+n[8]*i[17],r[8]=n[5]*i[3]+n[6]*i[8]+n[7]*i[13]+n[8]*i[18],r[9]=n[5]*i[4]+n[6]*i[9]+n[7]*i[14]+n[8]*i[19]+n[9],r[10]=n[10]*i[0]+n[11]*i[5]+n[12]*i[10]+n[13]*i[15],r[11]=n[10]*i[1]+n[11]*i[6]+n[12]*i[11]+n[13]*i[16],r[12]=n[10]*i[2]+n[11]*i[7]+n[12]*i[12]+n[13]*i[17],r[13]=n[10]*i[3]+n[11]*i[8]+n[12]*i[13]+n[13]*i[18],r[14]=n[10]*i[4]+n[11]*i[9]+n[12]*i[14]+n[13]*i[19]+n[14],r[15]=n[15]*i[0]+n[16]*i[5]+n[17]*i[10]+n[18]*i[15],r[16]=n[15]*i[1]+n[16]*i[6]+n[17]*i[11]+n[18]*i[16],r[17]=n[15]*i[2]+n[16]*i[7]+n[17]*i[12]+n[18]*i[17],r[18]=n[15]*i[3]+n[16]*i[8]+n[17]*i[13]+n[18]*i[18],r[19]=n[15]*i[4]+n[16]*i[9]+n[17]*i[14]+n[18]*i[19]+n[19],r},t.prototype._colorMatrix=function(r){var n=new Float32Array(r);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},t.prototype.brightness=function(r,n){var i=[r,0,0,0,0,0,r,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.tint=function(r,n){var i=r>>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),p=s*(1-i)-u*o,g=s*(1-i)-u*o,v=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,p,0,0,g,v,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(ve);$y.prototype.grayscale=$y.prototype.greyscale;/*! * @pixi/filter-displacement - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1285,7 +1287,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var cy=function(e,t){return cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},cy(e,t)};function _se(e,t){cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xse=`varying vec2 vFilterCoord; +***************************************************************************** */var Uy=function(e,t){return Uy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Uy(e,t)};function hle(e,t){Uy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var dle=`varying vec2 vFilterCoord; varying vec2 vTextureCoord; uniform vec2 scale; @@ -1305,7 +1307,7 @@ void main(void) gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw)); } -`,bse=`attribute vec2 aVertexPosition; +`,ple=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; uniform mat3 filterMatrix; @@ -1334,7 +1336,7 @@ void main(void) vTextureCoord = filterTextureCoord(); vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy; } -`,Sse=function(e){_se(t,e);function t(r,n){var i=this,o=new Tt;return r.renderable=!1,i=e.call(this,bse,xse,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Oe(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(me);/*! +`,vle=function(e){hle(t,e);function t(r,n){var i=this,o=new Pt;return r.renderable=!1,i=e.call(this,ple,dle,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Ce(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-fxaa - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1353,7 +1355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var fy=function(e,t){return fy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},fy(e,t)};function wse(e,t){fy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ese=` +***************************************************************************** */var Gy=function(e,t){return Gy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Gy(e,t)};function mle(e,t){Gy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var gle=` attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1395,7 +1397,7 @@ void main(void) { texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); } -`,Tse=`varying vec2 v_rgbNW; +`,yle=`varying vec2 v_rgbNW; varying vec2 v_rgbNE; varying vec2 v_rgbSW; varying vec2 v_rgbSE; @@ -1516,7 +1518,7 @@ void main() { gl_FragColor = color; } -`,Cse=function(e){wse(t,e);function t(){return e.call(this,Ese,Tse)||this}return t}(me);/*! +`,_le=function(e){mle(t,e);function t(){return e.call(this,gle,yle)||this}return t}(ve);/*! * @pixi/filter-noise - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1535,7 +1537,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var hy=function(e,t){return hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},hy(e,t)};function Ose(e,t){hy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ase=`precision highp float; +***************************************************************************** */var zy=function(e,t){return zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zy(e,t)};function xle(e,t){zy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ble=`precision highp float; varying vec2 vTextureCoord; varying vec4 vColor; @@ -1569,31 +1571,31 @@ void main() gl_FragColor = color; } -`,Pse=function(e){Ose(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,Kx,Ase,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(me);/*! +`,Sle=function(e){xle(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,kb,ble,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/mixin-cache-as-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var CR=new Tt;mt.prototype._cacheAsBitmap=!1;mt.prototype._cacheData=null;mt.prototype._cacheAsBitmapResolution=null;mt.prototype._cacheAsBitmapMultisample=nt.NONE;var kse=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(mt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new kse),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});mt.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};mt.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=Zi.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+Yi();this._cacheData.textureCacheId=f,Ie.addToCache(c.baseTexture,f),pe.addToCache(c,f);var h=this.transform.localTransform.copyTo(CR).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new Pn(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};mt.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};mt.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=Zi.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+Yi();this._cacheData.textureCacheId=s,Ie.addToCache(a.baseTexture,s),pe.addToCache(a,s);var u=CR;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new Pn(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};mt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};mt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};mt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Ie.removeFromCache(this._cacheData.textureCacheId),pe.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};mt.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! + */var TN=new Pt;_t.prototype._cacheAsBitmap=!1;_t.prototype._cacheData=null;_t.prototype._cacheAsBitmapResolution=null;_t.prototype._cacheAsBitmapMultisample=at.NONE;var wle=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(_t.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new wle),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});_t.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};_t.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=so.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+oo();this._cacheData.textureCacheId=f,Re.addToCache(c.baseTexture,f),de.addToCache(c,f);var h=this.transform.localTransform.copyTo(TN).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new jn(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};_t.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};_t.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=so.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+oo();this._cacheData.textureCacheId=s,Re.addToCache(a.baseTexture,s),de.addToCache(a,s);var u=TN;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new jn(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};_t.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};_t.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};_t.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Re.removeFromCache(this._cacheData.textureCacheId),de.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};_t.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! * @pixi/mixin-get-child-by-name - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-get-child-by-name is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */mt.prototype.name=null;dr.prototype.getChildByName=function(t,r){for(var n=0,i=this.children.length;n0){var v=l.x-r[h].x,g=l.y-r[h].y,p=Math.sqrt(v*v+g*g);l=r[h],u+=p/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(Dl),Ise=function(e){Ss(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new PR(r.height,n,i),s=new es(r);return i>0&&(r.baseTexture.wrapMode=dn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(Ja),kR=function(e){Ss(t,e);function t(r,n,i){var o=this,a=new AR(r.width,r.height,n,i),s=new es(pe.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(Ja),Rse=function(e){Ss(t,e);function t(r,n,i,o,a){r===void 0&&(r=pe.EMPTY);var s=this,u=new Dl(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new es(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(Ja),Oc=10,Nse=function(e){Ss(t,e);function t(r,n,i,o,a){n===void 0&&(n=Oc),i===void 0&&(i=Oc),o===void 0&&(o=Oc),a===void 0&&(a=Oc);var s=e.call(this,pe.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(kR);/*! +***************************************************************************** */var Hy=function(e,t){return Hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Hy(e,t)};function Ls(e,t){Hy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ON=function(e){Ls(t,e);function t(r,n,i,o){r===void 0&&(r=100),n===void 0&&(n=100),i===void 0&&(i=10),o===void 0&&(o=10);var a=e.call(this)||this;return a.segWidth=i,a.segHeight=o,a.width=r,a.height=n,a.build(),a}return t.prototype.build=function(){for(var r=this.segWidth*this.segHeight,n=[],i=[],o=[],a=this.segWidth-1,s=this.segHeight-1,u=this.width/a,l=this.height/s,c=0;c0){var p=l.x-r[h].x,g=l.y-r[h].y,v=Math.sqrt(p*p+g*g);l=r[h],u+=v/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(rc),Ele=function(e){Ls(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new AN(r.height,n,i),s=new hs(r);return i>0&&(r.baseTexture.wrapMode=xn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(fs),PN=function(e){Ls(t,e);function t(r,n,i){var o=this,a=new ON(r.width,r.height,n,i),s=new hs(de.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(fs),Tle=function(e){Ls(t,e);function t(r,n,i,o,a){r===void 0&&(r=de.EMPTY);var s=this,u=new rc(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new hs(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(fs),Xc=10,Cle=function(e){Ls(t,e);function t(r,n,i,o,a){n===void 0&&(n=Xc),i===void 0&&(i=Xc),o===void 0&&(o=Xc),a===void 0&&(a=Xc);var s=e.call(this,de.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(PN);/*! * @pixi/sprite-animated - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1631,13 +1633,13 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var py=function(e,t){return py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},py(e,t)};function Lse(e,t){py(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Mse=function(e){Lse(t,e);function t(r,n){n===void 0&&(n=!0);var i=e.call(this,r[0]instanceof pe?r[0]:r[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=n,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=r,i}return t.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Ft.shared.remove(this.update,this),this._isConnectedToTicker=!1))},t.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Ft.shared.add(this.update,this,Bn.HIGH),this._isConnectedToTicker=!0))},t.prototype.gotoAndStop=function(r){this.stop();var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(r){var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(r){if(this._playing){var n=this.animationSpeed*r,i=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=n/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var a=Math.sign(this.animationSpeed*r);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Oe?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(me);/*! +`,Ch=function(e){uce(t,e);function t(r,n,i){r===void 0&&(r=4),n===void 0&&(n=3),i===void 0&&(i=!1);var o=e.call(this,lce,i?fce:cce)||this;return o._kernels=[],o._blur=4,o._quality=3,o.uniforms.uOffset=new Float32Array(2),o._pixelSize=new Ce,o.pixelSize=1,o._clamp=i,Array.isArray(r)?o.kernels=r:(o._blur=r,o.quality=n),o}return t.prototype.apply=function(r,n,i,o){var a=this._pixelSize.x/n._frame.width,s=this._pixelSize.y/n._frame.height,u;if(this._quality===1||this._blur===0)u=this._kernels[0]+.5,this.uniforms.uOffset[0]=u*a,this.uniforms.uOffset[1]=u*s,r.applyFilter(this,n,i,o);else{for(var l=r.getFilterTexture(),c=n,f=l,h=void 0,d=this._quality-1,p=0;p0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Ce?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-advanced-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2410,7 +2412,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var wy=function(e,t){return wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},wy(e,t)};function RR(e,t){wy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var NR=`attribute vec2 aVertexPosition; +***************************************************************************** */var e_=function(e,t){return e_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e_(e,t)};function RN(e,t){e_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var IN=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2421,7 +2423,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,_ue=` +}`,hce=` uniform sampler2D uSampler; varying vec2 vTextureCoord; @@ -2442,7 +2444,7 @@ void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } } -`,xue=function(e){RR(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,NR,_ue)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(me),bue=`uniform sampler2D uSampler; +`,dce=function(e){RN(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,IN,hce)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(ve),pce=`uniform sampler2D uSampler; varying vec2 vTextureCoord; uniform sampler2D bloomTexture; @@ -2456,7 +2458,7 @@ void main() { bloomColor.rgb *= bloomScale; gl_FragColor = color + bloomColor; } -`;(function(e){RR(t,e);function t(r){var n=e.call(this,NR,bue)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new xue(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new nh(o):new nh(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(me);/*! +`;(function(e){RN(t,e);function t(r){var n=e.call(this,IN,pce)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new dce(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new Ch(o):new Ch(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(ve);/*! * @pixi/filter-ascii - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2475,7 +2477,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ey=function(e,t){return Ey=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ey(e,t)};function Sue(e,t){Ey(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wue=`attribute vec2 aVertexPosition; +***************************************************************************** */var t_=function(e,t){return t_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},t_(e,t)};function vce(e,t){t_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2486,7 +2488,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Eue=`varying vec2 vTextureCoord; +}`,gce=`varying vec2 vTextureCoord; uniform vec4 filterArea; uniform float pixelSize; @@ -2560,7 +2562,7 @@ void main() gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0); } -`;(function(e){Sue(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,wue,Eue)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){vce(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,mce,gce)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bevel - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2579,7 +2581,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ty=function(e,t){return Ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ty(e,t)};function Tue(e,t){Ty(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Cue=`attribute vec2 aVertexPosition; +***************************************************************************** */var r_=function(e,t){return r_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},r_(e,t)};function yce(e,t){r_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _ce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2590,7 +2592,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Oue=`precision mediump float; +}`,xce=`precision mediump float; varying vec2 vTextureCoord; uniform sampler2D uSampler; @@ -2613,7 +2615,7 @@ void main(void) { color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0)); gl_FragColor = vec4(color.rgb * color.a, color.a); } -`;(function(e){Tue(t,e);function t(r){var n=e.call(this,Cue,Oue)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/Ki},set:function(r){this._angle=r*Ki,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return en(this.uniforms.lightColor)},set:function(r){jt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return en(this.uniforms.shadowColor)},set:function(r){jt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){yce(t,e);function t(r){var n=e.call(this,_ce,xce)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/ao},set:function(r){this._angle=r*ao,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return sn(this.uniforms.lightColor)},set:function(r){Gt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return sn(this.uniforms.shadowColor)},set:function(r){Gt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2632,7 +2634,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Cy=function(e,t){return Cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Cy(e,t)};function Aue(e,t){Cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){Aue(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Oe?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new gl(!0,s,n,i,o),a.blurYFilter=new gl(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new ER,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(me);/*! +***************************************************************************** */var n_=function(e,t){return n_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n_(e,t)};function bce(e,t){n_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){bce(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Ce?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new Ml(!0,s,n,i,o),a.blurYFilter=new Ml(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new wN,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bulge-pinch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2651,7 +2653,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Oy=function(e,t){return Oy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Oy(e,t)};function Pue(e,t){Oy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var kue=`attribute vec2 aVertexPosition; +***************************************************************************** */var i_=function(e,t){return i_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},i_(e,t)};function Sce(e,t){i_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2662,7 +2664,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Iue=`uniform float radius; +}`,Ece=`uniform float radius; uniform float strength; uniform vec2 center; uniform sampler2D uSampler; @@ -2695,7 +2697,7 @@ void main() gl_FragColor = color; } -`;(function(e){Pue(t,e);function t(r){var n=e.call(this,kue,Iue)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(me);/*! +`;(function(e){Sce(t,e);function t(r){var n=e.call(this,wce,Ece)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(ve);/*! * @pixi/filter-color-map - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2714,7 +2716,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ay=function(e,t){return Ay=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ay(e,t)};function Rue(e,t){Ay(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Nue=`attribute vec2 aVertexPosition; +***************************************************************************** */var o_=function(e,t){return o_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},o_(e,t)};function Tce(e,t){o_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Cce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2725,7 +2727,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Lue=`varying vec2 vTextureCoord; +}`,Oce=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform sampler2D colorMap; uniform float _mix; @@ -2755,7 +2757,7 @@ void main() { } gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a); -}`;(function(e){Rue(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,Nue,Lue)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof pe||(r=pe.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Cr.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?br.NEAREST:br.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Cr.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(me);/*! +}`;(function(e){Tce(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,Cce,Oce)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof de||(r=de.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Ir.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?Cr.NEAREST:Cr.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Ir.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(ve);/*! * @pixi/filter-color-overlay - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2774,7 +2776,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Py=function(e,t){return Py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Py(e,t)};function Mue(e,t){Py(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Fue=`attribute vec2 aVertexPosition; +***************************************************************************** */var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},a_(e,t)};function Ace(e,t){a_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2785,7 +2787,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Due=`varying vec2 vTextureCoord; +}`,kce=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 color; uniform float alpha; @@ -2794,7 +2796,7 @@ void main(void) { vec4 currentColor = texture2D(uSampler, vTextureCoord); gl_FragColor = vec4(mix(currentColor.rgb, color.rgb, currentColor.a * alpha), currentColor.a); } -`;(function(e){Mue(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,Fue,Due)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(jt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=en(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){Ace(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,Pce,kce)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(Gt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2813,7 +2815,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ky=function(e,t){return ky=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ky(e,t)};function Bue(e,t){ky(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jue=`attribute vec2 aVertexPosition; +***************************************************************************** */var s_=function(e,t){return s_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},s_(e,t)};function Rce(e,t){s_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ice=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2824,7 +2826,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,$ue=`varying vec2 vTextureCoord; +}`,Nce=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 originalColor; uniform vec3 newColor; @@ -2836,7 +2838,7 @@ void main(void) { float doReplace = step(colorDistance, epsilon); gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a); } -`;(function(e){Bue(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,jue,$ue)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(jt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=en(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(jt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=en(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){Rce(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,Ice,Nce)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(Gt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(Gt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-convolution - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2855,7 +2857,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Iy=function(e,t){return Iy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Iy(e,t)};function Uue(e,t){Iy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Gue=`attribute vec2 aVertexPosition; +***************************************************************************** */var u_=function(e,t){return u_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},u_(e,t)};function Lce(e,t){u_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Mce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2866,7 +2868,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,zue=`precision mediump float; +}`,Dce=`precision mediump float; varying mediump vec2 vTextureCoord; @@ -2895,7 +2897,7 @@ void main(void) gl_FragColor.a = c22.a; } -`;(function(e){Uue(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,Gue,zue)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){Lce(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,Mce,Dce)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-cross-hatch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2914,7 +2916,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ry=function(e,t){return Ry=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ry(e,t)};function Hue(e,t){Ry(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vue=`attribute vec2 aVertexPosition; +***************************************************************************** */var l_=function(e,t){return l_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},l_(e,t)};function Fce(e,t){l_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Bce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2925,7 +2927,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Wue=`precision mediump float; +}`,jce=`precision mediump float; varying vec2 vTextureCoord; @@ -2969,7 +2971,7 @@ void main(void) } } } -`;(function(e){Hue(t,e);function t(){return e.call(this,Vue,Wue)||this}return t})(me);/*! +`;(function(e){Fce(t,e);function t(){return e.call(this,Bce,jce)||this}return t})(ve);/*! * @pixi/filter-crt - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2988,7 +2990,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ny=function(e,t){return Ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ny(e,t)};function que(e,t){Ny(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xue=`attribute vec2 aVertexPosition; +***************************************************************************** */var c_=function(e,t){return c_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},c_(e,t)};function $ce(e,t){c_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Uce=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2999,7 +3001,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Yue=`varying vec2 vTextureCoord; +}`,Gce=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec4 filterArea; @@ -3065,7 +3067,7 @@ void main(void) gl_FragColor.rgb = rgb; } -`;(function(e){que(t,e);function t(r){var n=e.call(this,Xue,Yue)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(me);/*! +`;(function(e){$ce(t,e);function t(r){var n=e.call(this,Uce,Gce)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(ve);/*! * @pixi/filter-drop-shadow - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3084,7 +3086,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ly=function(e,t){return Ly=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ly(e,t)};function Kue(e,t){Ly(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ih=function(){return ih=Object.assign||function(t){for(var r=arguments,n,i=1,o=arguments.length;i>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(me);/*! +`;(function(e){Qce(t,e);function t(r,n,i){r===void 0&&(r=[0,0]),n===void 0&&(n=5),i===void 0&&(i=0);var o=e.call(this,Jce,efe)||this;return o.kernelSize=5,o.uniforms.uVelocity=new Float32Array(2),o._velocity=new Di(o.velocityChanged,o),o.setVelocity(r),o.kernelSize=n,o.offset=i,o}return t.prototype.apply=function(r,n,i,o){var a=this.velocity,s=a.x,u=a.y;this.uniforms.uKernelSize=s!==0||u!==0?this.kernelSize:0,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"velocity",{get:function(){return this._velocity},set:function(r){this.setVelocity(r)},enumerable:!1,configurable:!0}),t.prototype.setVelocity=function(r){if(Array.isArray(r)){var n=r[0],i=r[1];this._velocity.set(n,i)}else this._velocity.copyFrom(r)},t.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y,this.padding=(Math.max(Math.abs(this._velocity.x),Math.abs(this._velocity.y))>>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-multi-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3353,7 +3355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var By=function(e,t){return By=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},By(e,t)};function ule(e,t){By(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var lle=`attribute vec2 aVertexPosition; +***************************************************************************** */var v_=function(e,t){return v_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},v_(e,t)};function tfe(e,t){v_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var rfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -3364,7 +3366,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,cle=`varying vec2 vTextureCoord; +}`,nfe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform float epsilon; @@ -3402,7 +3404,7 @@ void main(void) } } } -`;(function(e){ule(t,e);function t(r,n,i){n===void 0&&(n=.05),i===void 0&&(i=r.length);var o=e.call(this,lle,cle.replace(/%maxColors%/g,i.toFixed(0)))||this;return o._replacements=[],o._maxColors=0,o.epsilon=n,o._maxColors=i,o.uniforms.originalColors=new Float32Array(i*3),o.uniforms.targetColors=new Float32Array(i*3),o.replacements=r,o}return Object.defineProperty(t.prototype,"replacements",{get:function(){return this._replacements},set:function(r){var n=this.uniforms.originalColors,i=this.uniforms.targetColors,o=r.length;if(o>this._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;athis._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;ao===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new IR.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new Hse;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new Xse;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new Qse;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new rue;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new aue;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new fue;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return Ble(this,r)}get shockwaveFilter(){return jle(this)}set shockwaveFilter(r){$le(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return Gle(this,r)}get radiusAlphaFilter(){return zle(this)}set radiusAlphaFilter(r){Hle(this,r)}}window.PIXI=Fse;class Vle{constructor(){le(this,"currentApp",null);le(this,"effectsContainer");le(this,"frameDuration",16.67);le(this,"notUpdateBacklogEffects",!1);le(this,"figureContainer");le(this,"figureObjects",[]);le(this,"backgroundContainer");le(this,"backgroundObjects",[]);le(this,"stageAnimations",[]);le(this,"assetLoader",new Ka);le(this,"loadQueue",[]);le(this,"live2dFigureRecorder",[]);le(this,"lockTransformTarget",[]);le(this,"stageWidth",2560);le(this,"stageHeight",1440);le(this,"MAX_TEX_COUNT",10);const t=new ab({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),sb&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new dr,this.effectsContainer.zIndex=3,this.figureContainer=new dr,this.figureContainer.zIndex=2,this.backgroundContainer=new dr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Pc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Pc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};j.dispatch(Ir.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new Pn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),p{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new Pn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),pf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Pc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const v=f.width,g=f.height,p=this.stageWidth/v,m=this.stageHeight/g,y=Math.max(p,m),_=new Pn(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new $T;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Pc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,v;const h=(v=(d=i.resources)==null?void 0:d[r])==null?void 0:v.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,p=h.height,m=this.stageWidth/g,y=this.stageHeight/p,_=Math.min(m,y),x=new Pn(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=p*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,v;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const p=o.pixiContainer.children;for(const m of p)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((v=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||v.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){Qk()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Yv==null||Yv(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Yv=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),MR={version:"WebGAL 4.4.11",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},Wle=navigator.userAgent,sb=!!Wle.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),qle=()=>{ne.info(MR.version),ne.info("Github: https://github.com/MakinoharaShoko/WebGAL "),ne.info("Made with ❤ by MakinoharaShoko"),sb&&alert(`iOS 用户请横屏使用以获得最佳体验 + `;super(null,n),this.uniforms.center=[t.x,t.y],this.uniforms.radius=r}set center(t){this.uniforms.center=[t.x,t.y]}get center(){return new Ce(this.uniforms.center[0],this.uniforms.center[1])}set radius(t){console.log(t),this.uniforms.radius=t}get radius(){return this.uniforms.radius}}function Mfe(e,t){const r=e.containerFilters.get(C_);if(r)return r;if(t){const n=new Lfe(new Ce(.5,.5),T_);return n.radius=T_,e.addFilter(n),e.containerFilters.set(C_,n),n}}function Dfe(e){return e.getOrCreateShockwaveFilter(!1)?e.getOrCreateRadiusAlphaFilter().radius:T_}function Ffe(e,t){if(t===0)e.removeFilter(C_);else{const r=e.getOrCreateRadiusAlphaFilter();r&&(r.radius=t)}}class OC extends gr{constructor(){super();se(this,"containerFilters",new Map);se(this,"baseX",0);se(this,"baseY",0)}addFilter(r){this.filters?this.filters.push(r):this.filters=[r]}removeFilter(r){const n=this.containerFilters.get(r);if(n){const i=((this==null?void 0:this.filters)??[]).findIndex(o=>o===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new kN.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new Fle;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new Ule;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new Vle;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new Yle;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new Jle;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new ice;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return Rfe(this,r)}get shockwaveFilter(){return Ife(this)}set shockwaveFilter(r){Nfe(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return Mfe(this,r)}get radiusAlphaFilter(){return Dfe(this)}set radiusAlphaFilter(r){Ffe(this,r)}}window.PIXI=Ple;class Bfe{constructor(){se(this,"currentApp",null);se(this,"effectsContainer");se(this,"frameDuration",16.67);se(this,"notUpdateBacklogEffects",!1);se(this,"figureContainer");se(this,"figureObjects",[]);se(this,"backgroundContainer");se(this,"backgroundObjects",[]);se(this,"stageAnimations",[]);se(this,"assetLoader",new us);se(this,"loadQueue",[]);se(this,"live2dFigureRecorder",[]);se(this,"lockTransformTarget",[]);se(this,"stageWidth",2560);se(this,"stageHeight",1440);se(this,"MAX_TEX_COUNT",10);const t=new $b({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),Ub&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new gr,this.effectsContainer.zIndex=3,this.figureContainer=new gr,this.figureContainer.zIndex=2,this.backgroundContainer=new gr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Kc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Kc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};B.dispatch(Er.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new jn(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),v{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new jn(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),vf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Kc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const p=f.width,g=f.height,v=this.stageWidth/p,m=this.stageHeight/g,y=Math.max(v,m),_=new jn(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new OC;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Kc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,p;const h=(p=(d=i.resources)==null?void 0:d[r])==null?void 0:p.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,v=h.height,m=this.stageWidth/g,y=this.stageHeight/v,_=Math.min(m,y),x=new jn(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=v*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,p;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const v=o.pixiContainer.children;for(const m of v)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((p=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||p.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){ZR()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Em==null||Em(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Em=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),LN={version:"WebGAL 4.4.11",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},jfe=navigator.userAgent,Ub=!!jfe.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),$fe=()=>{ne.info(LN.version),ne.info("Github: https://github.com/OpenWebGAL/WebGAL "),ne.info("Made with ❤ by OpenWebGAL"),Ub&&alert(`iOS 用户请横屏使用以获得最佳体验 | Please use landscape mode on iOS for the best experience -| iOS ユーザーは横画面での使用をお勧めします`),Xle("./game/userStyleSheet.css"),Yle(),jQ("./game/config.txt");const e=Nr("start.txt",Rr.scene);Vn(e).then(t=>{O.sceneManager.sceneData.currentScene=Wn(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=Rl(r);Nl(n)}),O.gameplay.pixiStage=new Vle,UQ(),GQ()};function Xle(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function Yle(){zf.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)zf.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const Kle="_Menu_main_1a7i6_1",Zle="_Menu_ShowSoftly_1a7i6_1",Qle="_Menu_TagContent_1a7i6_10",UT={Menu_main:Kle,Menu_ShowSoftly:Zle,Menu_TagContent:Qle},Jle="_MenuPanel_main_1nje1_1",ece="_MenuPanel_button_1nje1_10",tce="_MenuPanel_button_icon_1nje1_34",wa={MenuPanel_main:Jle,MenuPanel_button:ece,MenuPanel_button_icon:tce};var rce=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function GT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zT(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oce(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var ace={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function sce(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function uce(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var FR=$.createContext(ace);FR.Provider;function lt(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=ice(n,rce),d=$.useContext(FR),v=$.useMemo(sce,[]),g=uce(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),p=[d.prefix+"-icon"];return p.push(d.prefix+"-icon-"+e),t&&d.rtl&&p.push(d.prefix+"-icon-rtl"),f&&p.push(d.prefix+"-icon-spin"),c&&p.push(c),Y.createElement("span",zT(zT({},h),{},{className:p.join(" ")}),r(g))}}const lce=lt("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),DR=lt("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),cce=lt("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),fce=lt("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hce=lt("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),BR=lt("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),dce=lt("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),pce=lt("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vce=lt("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),jR=lt("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),mce=lt("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gce=lt("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),yce=lt("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),_ce=lt("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),$R=lt("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),xce=lt("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),bce=lt("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Sce=lt("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),wce=lt("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),UR=lt("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),GR=lt("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Ece=lt("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),Tce=lt("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Cce=lt("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),Oce=e=>{let t;switch(e.iconName){case"save":t=S.jsx(UR,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(BR,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(GR,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(jR,{theme:"outline",size:"1.2em",fill:"rgba(185,185,185,1)",strokeWidth:2});break;case"exit":t=S.jsx(yce,{theme:"outline",size:"1.2em",fill:"rgba(185,185,185,1)",strokeWidth:2});break;default:t=S.jsx("div",{})}return t},Js=e=>{const{playSePageChange:t,playSeEnter:r}=vr();let n=wa.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc(),t()},onMouseEnter:r,style:{color:e.tagColor},children:[S.jsx("div",{className:wa.MenuPanel_button_icon,children:S.jsx(Oce,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},Ace="_main_15mmi_1",Pce="_button_15mmi_16",kce="_button_text_15mmi_23",Ice="_button_on_15mmi_31",Rce="_singleButton_15mmi_42",Nce="_fastSlPreview_15mmi_59",Lce="_fastSlEnter_15mmi_1",Mce="_fastsave_15mmi_73",Fce="_fastSPreview_15mmi_73",Dce="_fastload_15mmi_77",Bce="_fastLPreview_15mmi_77",jce="_slPreviewMain_15mmi_89",$ce="_imgContainer_15mmi_97",Uce="_textContainer_15mmi_105",he={main:Ace,button:Pce,button_text:kce,button_on:Ice,singleButton:Rce,fastSlPreview:Nce,fastSlEnter:Lce,fastsave:Mce,fastSPreview:Fce,fastload:Dce,fastLPreview:Bce,slPreviewMain:jce,imgContainer:$ce,textContainer:Uce},zR=e=>{const t=document.getElementById("Button_ControlPanel_auto");t&&(e?t.className=he.button_on:t.className=he.singleButton)},ub=()=>{O.gameplay.isAuto=!1,zR(!1),O.gameplay.autoInterval!==null&&(clearInterval(O.gameplay.autoInterval),O.gameplay.autoInterval=null),O.gameplay.autoTimeout!==null&&(clearTimeout(O.gameplay.autoTimeout),O.gameplay.autoTimeout=null)},HR=()=>{O.gameplay.isAuto?ub():(O.gameplay.isAuto=!0,zR(!0),O.gameplay.autoInterval=setInterval(zce,100))},Gce=()=>{Ut(),O.gameplay.autoTimeout=null},zce=()=>{const t=750-250*j.getState().userData.optionData.autoSpeed;let r=!1;O.gameplay.performController.performList.forEach(n=>{n.blockingAuto()&&(r=!0)}),!r&&O.gameplay.autoTimeout===null&&(O.gameplay.autoTimeout=setTimeout(Gce,t))},VR=e=>{const t=document.getElementById("Button_ControlPanel_fast");t&&(e?t.className=he.button_on:t.className=he.singleButton)},ja=()=>{qR()&&(O.gameplay.isFast=!1,VR(!1),O.gameplay.fastInterval!==null&&(clearInterval(O.gameplay.fastInterval),O.gameplay.fastInterval=null))},WR=()=>{qR()||(O.gameplay.isFast=!0,VR(!0),O.gameplay.fastInterval=setInterval(()=>{Ut()},vP.fast_timeout))},qR=function(){return O.gameplay.isFast},lb=()=>{ja(),ub()},XR=()=>{O.gameplay.isFast?ja():WR()},cb=()=>{const e=j.dispatch;nx(),ub(),ja(),e(Te({key:"playVocal",value:""})),e(Me({component:"showTitle",visibility:!0})),Ll(j.getState().GUI.titleBg)},Hce=()=>{const e=Tr("menu."),{playSeClick:t,playSeEnter:r}=vr(),n=Se(v=>v.GUI),i=or(),o=n.currentMenuTag===qe.Save?` ${wa.MenuPanel_button_hl}`:"",a=n.currentMenuTag===qe.Load?` ${wa.MenuPanel_button_hl}`:"",s=n.currentMenuTag===qe.Option?` ${wa.MenuPanel_button_hl}`:"",u=n.currentMenuTag===qe.Save?"rgba(74, 34, 93, 0.9)":"rgba(8, 8, 8, 0.3)",l=n.currentMenuTag===qe.Load?"rgba(11, 52, 110, 0.9)":"rgba(8, 8, 8, 0.3)",c=n.currentMenuTag===qe.Option?"rgba(81, 110, 65, 0.9)":"rgba(8, 8, 8, 0.3)",f=n.currentMenuTag===qe.Save?"rgba(74, 34, 93, 0.9)":"rgba(185, 185, 185, 1)",h=n.currentMenuTag===qe.Load?"rgba(11, 52, 110, 0.9)":"rgba(185, 185, 185, 1)",d=n.currentMenuTag===qe.Option?"rgba(81, 110, 65, 0.9)":"rgba(185, 185, 185, 1)";return S.jsxs("div",{className:wa.MenuPanel_main,children:[S.jsx(Js,{iconName:"save",buttonOnClassName:o,iconColor:f,tagColor:u,clickFunc:()=>{t(),!n.showTitle&&i(Oo(qe.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(Js,{iconName:"load",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{t(),i(Oo(qe.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(Js,{iconName:"option",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{t(),i(Oo(qe.Option))},tagName:e("options.title")},"optionButton"),S.jsx(Js,{iconName:"title",clickFunc:()=>{t(),cb(),i(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("title.title")},"titleIcon"),S.jsx(Js,{iconName:"exit",clickFunc:()=>{t(),i(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},Vce="_Save_Load_main_16zg1_2",Wce="_Save_Load_top_16zg1_9",qce="_Elements_in_16zg1_1",Xce="_Save_Load_title_16zg1_17",Yce="_Save_title_text_16zg1_32",Kce="_Load_title_text_16zg1_40",Zce="_Save_Load_top_buttonList_16zg1_48",Qce="_Save_Load_top_button_16zg1_48",Jce="_Save_Load_top_button_text_16zg1_67",efe="_Save_Load_top_button_on_16zg1_78",tfe="_Load_top_button_on_16zg1_91",rfe="_Load_top_button_16zg1_91",nfe="_Save_Load_content_16zg1_104",ife="_Save_Load_content_element_16zg1_113",ofe="_Elements_in_transform_16zg1_1",afe="_Save_Load_content_element_top_16zg1_129",sfe="_Save_Load_content_element_top_index_16zg1_136",ufe="_Load_content_elememt_top_index_16zg1_145",lfe="_Save_Load_content_element_top_date_16zg1_149",cfe="_Load_content_element_top_date_16zg1_160",ffe="_Save_Load_content_text_16zg1_164",hfe="_Save_Load_content_text_padding_16zg1_178",dfe="_Save_Load_content_speaker_16zg1_182",pfe="_Load_content_speaker_16zg1_191",vfe="_Load_content_text_16zg1_195",mfe="_Save_Load_content_miniRen_16zg1_199",gfe="_Save_Load_content_miniRen_bg_16zg1_206",yfe="_Save_Load_content_miniRen_figure_16zg1_213",_fe="_Save_Load_content_miniRen_figLeft_16zg1_221",xfe="_Save_Load_content_miniRen_figRight_16zg1_226",xe={Save_Load_main:Vce,Save_Load_top:Wce,Elements_in:qce,Save_Load_title:Xce,Save_title_text:Yce,Load_title_text:Kce,Save_Load_top_buttonList:Zce,Save_Load_top_button:Qce,Save_Load_top_button_text:Jce,Save_Load_top_button_on:efe,Load_top_button_on:tfe,Load_top_button:rfe,Save_Load_content:nfe,Save_Load_content_element:ife,Elements_in_transform:ofe,Save_Load_content_element_top:afe,Save_Load_content_element_top_index:sfe,Load_content_elememt_top_index:ufe,Save_Load_content_element_top_date:lfe,Load_content_element_top_date:cfe,Save_Load_content_text:ffe,Save_Load_content_text_padding:hfe,Save_Load_content_speaker:dfe,Load_content_speaker:pfe,Load_content_text:vfe,Save_Load_content_miniRen:mfe,Save_Load_content_miniRen_bg:gfe,Save_Load_content_miniRen_figure:yfe,Save_Load_content_miniRen_figLeft:_fe,Save_Load_content_miniRen_figRight:xfe},bfe="_GlobalDialog_main_101j8_2",Sfe="_showGlobalDialog_101j8_1",wfe="_glabalDialog_container_inner_101j8_17",Efe="_glabalDialog_container_101j8_17",Tfe="_title_101j8_36",Cfe="_button_list_101j8_41",Ofe="_button_101j8_41",uo={GlobalDialog_main:bfe,showGlobalDialog:Sfe,glabalDialog_container_inner:wfe,glabalDialog_container:Efe,title:Tfe,button_list:Cfe,button:Ofe};function Afe(){const e=Se(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Ea(e){const{playSeClick:t,playSeEnter:r}=H0();j.dispatch(Me({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),HT()},i=()=>{t(),e.rightFunc(),HT()},o=S.jsx("div",{className:uo.GlobalDialog_main,children:S.jsx("div",{className:uo.glabalDialog_container,children:S.jsxs("div",{className:uo.glabalDialog_container_inner,children:[S.jsx("div",{className:uo.title,children:e.title}),S.jsxs("div",{className:uo.button_list,children:[S.jsx("div",{className:uo.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:uo.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{Mn.render(o,document.getElementById("globalDialogContainer"))},100)}function HT(){j.dispatch(Me({component:"showGlobalDialog",visibility:!1}))}function Pfe(){j.dispatch(Me({component:"showControls",visibility:!0}))}function kfe(){j.dispatch(Me({component:"showControls",visibility:!1}))}function Ife(){j.getState().GUI.showControls===!0?kfe():Pfe()}const Rfe=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=vr(),n=Se(p=>p.userData),i=or(),o=[];for(let p=1;p<=20;p++){let m=xe.Save_Load_top_button;p===n.optionData.slPage&&(m=m+" "+xe.Save_Load_top_button_on);const y=S.jsx("div",{onClick:()=>{i(hP(p)),Ke(),e()},onMouseEnter:t,className:m,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:p})},"Save_element_page"+p);o.push(y)}const{i18n:a}=gs(),u=a.language==="fr",l={fontSize:"150%",padding:"0 0.2em 0 0.2em",margin:"0 0 0 0.8em",letterSpacing:"0.05em"},c=Tr("common."),f=[],h=(n.optionData.slPage-1)*10+1,d=h+9;let v=0;for(let p=h;p<=d;p++){v++;const m=n.saveData[p];let y=S.jsx("div",{});if(m){const x=m.nowStageState.showName===""?" ":`${m.nowStageState.showName}`;y=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index,children:m.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date,children:m.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:m.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker,children:x}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:m.nowStageState.showText})]})]})}const _=S.jsx("div",{onClick:()=>{n.saveData[p]?(r(),Ea({title:g("saving.isOverwrite"),leftText:c("yes"),rightText:c("no"),leftFunc:()=>{dg(p),Ke()},rightFunc:()=>{}})):(e(),dg(p))},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${v*30}ms`},children:y},"saveElement_"+p);f.push(_)}const g=Tr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,style:u?l:void 0,children:S.jsx("div",{className:xe.Save_title_text,children:g("saving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:f})]})},Nfe=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=vr(),n=Se(g=>g.userData),i=or(),o=[];for(let g=1;g<=20;g++){let p=xe.Save_Load_top_button+" "+xe.Load_top_button;g===n.optionData.slPage&&(p=p+" "+xe.Save_Load_top_button_on+" "+xe.Load_top_button_on);const m=S.jsx("div",{onClick:()=>{i(hP(g)),Ke(),r()},onMouseEnter:t,className:p,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:g})},"Load_element_page"+g);o.push(m)}const{i18n:a}=gs(),u=a.language==="fr",l={fontSize:"150%",padding:"0 0.2em 0 0.2em",margin:"0 0 0 0.8em",letterSpacing:"0.05em"},c=[],f=(n.optionData.slPage-1)*10+1,h=f+9;let d=0;for(let g=f;g<=h;g++){d++;const p=n.saveData[g];let m=S.jsx("div",{});if(p){const _=p.nowStageState.showName===""?" ":`${p.nowStageState.showName}`;m=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index+" "+xe.Load_content_elememt_top_index,children:p.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date+" "+xe.Load_content_element_top_date,children:p.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:p.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker+" "+xe.Load_content_speaker,children:_}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:p.nowStageState.showText})]})]})}const y=S.jsx("div",{onClick:()=>{uk(g),e()},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${d*30}ms`},children:m},"loadElement_"+g);c.push(y)}const v=Tr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,style:u?l:void 0,children:S.jsx("div",{className:xe.Load_title_text,children:v("loadSaving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:c})]})},Lfe="_Options_main_kotpu_2",Mfe="_Options_top_kotpu_10",Ffe="_Options_title_kotpu_17",Dfe="_Option_title_text_kotpu_26",Bfe="_Elements_in_kotpu_1",jfe="_Option_title_text_shadow_kotpu_35",$fe="_Option_title_text_ts_kotpu_42",Ufe="_Options_main_content_kotpu_49",Gfe="_Options_main_content_half_kotpu_56",zfe="_About_title_text_kotpu_66",Hfe="_About_text_kotpu_74",Vfe="_Options_page_container_kotpu_93",Wfe="_Options_button_list_kotpu_99",qfe="_Options_page_button_kotpu_103",Xfe="_Options_page_button_active_kotpu_115",ur={Options_main:Lfe,Options_top:Mfe,Options_title:Ffe,Option_title_text:Dfe,Elements_in:Bfe,Option_title_text_shadow:jfe,Option_title_text_ts:$fe,Options_main_content:Ufe,Options_main_content_half:Gfe,About_title_text:zfe,About_text:Hfe,Options_page_container:Vfe,Options_button_list:Wfe,Options_page_button:qfe,Options_page_button_active:Xfe},Yfe="_NormalOption_ogzuv_1",Kfe="_Elements_in_ogzuv_1",Zfe="_NormalOption_title_ogzuv_10",Qfe="_NormalOption_title_bef_ogzuv_19",Jfe="_NormalOption_title_sd_ogzuv_29",ehe="_NormalOption_buttonList_ogzuv_39",Kv={NormalOption:Yfe,Elements_in:Kfe,NormalOption_title:Zfe,NormalOption_title_bef:Qfe,NormalOption_title_sd:Jfe,NormalOption_buttonList:ehe},lr=e=>S.jsxs("div",{className:Kv.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Kv.NormalOption_title,children:e.title}),S.jsx("div",{className:Kv.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),the="_NormalButton_1qk3b_1",rhe="_NormalButtonChecked_1qk3b_18",Zv={NormalButton:the,NormalButtonChecked:rhe},Oi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=vr();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Zv.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function ws(e){const t=Se(e),r=$.useRef(t);return $.useEffect(()=>{r.current=t},[t]),r}function nhe(e){return Wo[e]}function YR(){const{i18n:e}=gs(),t=ws(n=>n.userData),r=or();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??Wo.zhCn,a=nhe(o);e.changeLanguage(a),r(_t({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&Ke()}}const ihe="_backButton_qbk37_1",ohe="_about_qbk37_16",ahe="_icon_qbk37_20",she="_title_qbk37_24",uhe="_text_qbk37_34",lhe="_contributor_qbk37_43",Ur={backButton:ihe,about:ohe,icon:ahe,title:she,text:uhe,contributor:lhe};function che(e){const t=Tr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Ur.about,children:[S.jsx("div",{className:Ur.backButton,onClick:e.onClose,children:S.jsx(mce,{className:Ur.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Ur.title,children:t("subTitle")}),S.jsx("div",{className:Ur.title,children:t("version")}),S.jsx("div",{className:Ur.text,children:MR.version}),S.jsx("div",{className:Ur.title,children:t("source")}),S.jsx("div",{className:Ur.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Ur.title,children:t("contributors")}),S.jsx("div",{className:Ur.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Ur.title,children:t("website")}),S.jsx("div",{className:Ur.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function fhe(){const e=Se(f=>f.userData),t=or(),r=YR(),n=Tr("menu.options.pages.system.options."),{playSeDialogOpen:i}=vr();function o(){Ke(),Df.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),v=URL.createObjectURL(d),g=document.createElement("a");g.href=v,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=v=>{const g=v.target.result;try{const p=JSON.parse(g);i(),Ea({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{Df.setItem(O.gameKey,p).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),el()},rightFunc:()=>{}})}catch(p){ne.error(n("gameSave.dialogs.import.error"),p)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:ur.Options_main_content_half,children:[s&&S.jsx(che,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(lr,{title:n("autoSpeed.title"),children:S.jsx(Oi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(_t({key:"autoSpeed",value:fr.slow})),Ke()},()=>{t(_t({key:"autoSpeed",value:fr.normal})),Ke()},()=>{t(_t({key:"autoSpeed",value:fr.fast})),Ke()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(lr,{title:n("language.title"),children:S.jsx(Oi,{currentChecked:e.optionData.language,textList:Object.values(Bf),functionList:Object.keys(Bf).map(f=>()=>r(Wo[f]))})},"option7"),S.jsx(lr,{title:n("resetData.title"),children:S.jsx(Oi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Ea({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(b6()),Ou()},rightFunc:()=>{}})},()=>{i(),Ea({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(x6()),Ou()},rightFunc:()=>{}})},()=>{i(),Ea({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(S6()),Ou()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(lr,{title:n("gameSave.title"),children:S.jsx(Oi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:ur.About_title_text,onClick:l,children:S.jsx("span",{className:ur.About_text,children:n("about.title")})})]})]})}const hhe="_textPreviewMain_nolr3_1",dhe="_textbox_nolr3_8",VT={textPreviewMain:hhe,textbox:dhe};function KR(){const e=Se(r=>r.userData.optionData.textboxFont);function t(){return Mh(e).with(Ln.song,()=>'"思源宋体", serif').with(Ln.lxgw,()=>'"LXGW", serif').with(Ln.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function Ky(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const phe="_TextBox_EventHandler_1fi2w_1",vhe="_TextBox_main_1fi2w_9",mhe="_showSoftly_1fi2w_1",ghe="_TextBox_showName_1fi2w_28",yhe="_TextBox_textElement_start_1fi2w_44",_he="_TextDelayShow_1fi2w_1",xhe="_outer_1fi2w_50",bhe="_inner_1fi2w_62",She="_zhanwei_1fi2w_71",whe="_TextBox_textElement_Settled_1fi2w_76",Ehe="_miniAvatarContainer_1fi2w_89",The="_miniAvatarImg_1fi2w_98",Che="_nameContainer_1fi2w_106",Ohe="_outerName_1fi2w_112",Ahe="_innerName_1fi2w_123",Phe="_text_1fi2w_130",Gt={TextBox_EventHandler:phe,TextBox_main:vhe,showSoftly:mhe,TextBox_showName:ghe,TextBox_textElement_start:yhe,TextDelayShow:_he,outer:xhe,inner:bhe,zhanwei:She,TextBox_textElement_Settled:whe,miniAvatarContainer:Ehe,miniAvatarImg:The,nameContainer:Che,outerName:Ohe,innerName:Ahe,text:Phe};function oh(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,textSizeState:d,isUseStroke:v,textboxOpacity:g}=e,p=l!=="";$.useEffect(()=>{function b(){[...document.querySelectorAll(".Textelement_start")].forEach(k=>{k.className=Gt.TextBox_textElement_Settled})}return O.eventBus.on("text-settle",b),()=>{O.eventBus.off("text-settle",b)}},[]);const m=t.map((b,w)=>{let T=w*r,k=n.length;return n!==""&&w>=k&&(T=T-k*r),wS.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Gt.zhanwei,children:[b,S.jsx("span",{className:Gt.outer,children:b}),v&&S.jsx("span",{className:Gt.inner,children:b})]})},b+w))},c),S.jsx("div",{className:Gt.text,style:{fontSize:u,wordBreak:a||s?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:m})]})})}const khe="_TextBox_EventHandler_ujldp_1",Ihe="_TextBox_main_ujldp_9",Rhe="_showSoftly_ujldp_1",Nhe="_TextBox_textElement_start_ujldp_39",Lhe="_TextDelayShow_ujldp_1",Mhe="_outer_ujldp_45",Fhe="_inner_ujldp_57",Dhe="_zhanwei_ujldp_66",Bhe="_TextBox_textElement_Settled_ujldp_71",jhe="_TextBox_showName_ujldp_76",$he="_miniAvatarContainer_ujldp_95",Uhe="_miniAvatarImg_ujldp_105",Ghe="_nameContainer_ujldp_113",zhe="_outerName_ujldp_119",Hhe="_innerName_ujldp_130",Vhe="_text_ujldp_137",zt={TextBox_EventHandler:khe,TextBox_main:Ihe,showSoftly:Rhe,TextBox_textElement_start:Nhe,TextDelayShow:Lhe,outer:Mhe,inner:Fhe,zhanwei:Dhe,TextBox_textElement_Settled:Bhe,TextBox_showName:jhe,miniAvatarContainer:$he,miniAvatarImg:Uhe,nameContainer:Ghe,outerName:zhe,innerName:Hhe,text:Vhe};function ZR(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:v}=e;$.useEffect(()=>{function p(){[...document.querySelectorAll(".Textelement_start")].forEach(_=>{_.className=zt.TextBox_textElement_Settled})}return O.eventBus.on("text-settle",p),()=>{O.eventBus.off("text-settle",p)}},[]);const g=t.map((p,m)=>{let y=m*r,_=n.length;return n!==""&&m>=_&&(y=y-_*r),m<_?S.jsx("span",{id:`${y}`,className:zt.TextBox_textElement_Settled,style:{animationDelay:`${y}ms`,animationDuration:`${h}ms`},children:S.jsxs("span",{className:zt.zhanwei,children:[p,S.jsx("span",{className:zt.outer,children:p}),d&&S.jsx("span",{className:zt.inner,children:p})]})},i+m):S.jsx("span",{"data-text":p,id:`${y}`,className:`${zt.TextBox_textElement_start} Textelement_start`,style:{animationDelay:`${y}ms`,position:"relative"},children:S.jsxs("span",{className:zt.zhanwei,children:[p,S.jsx("span",{className:zt.outer,children:p}),d&&S.jsx("span",{className:zt.inner,children:p})]})},i+m)});return S.jsx(S.Fragment,{children:o&&S.jsxs("div",{id:"textBoxMain",className:zt.TextBox_main,style:{fontFamily:f,left:l===""?25:void 0,background:`linear-gradient( - rgba(245, 247, 250, ${v/100}) 0%, - rgba(189, 198, 222, ${v/100}) 100% - )`},children:[S.jsx("div",{id:"miniAvatar",className:zt.miniAvatarContainer,children:l!==""&&S.jsx("img",{className:zt.miniAvatarImg,alt:"miniAvatar",src:l})}),c!==""&&S.jsx("div",{className:zt.TextBox_showName,style:{fontSize:"200%",background:`rgba(11, 52, 110, ${v/100*.9})`,border:`4px solid rgba(255, 255, 255, ${v/100*.75})`,boxShadow:`3px 3px 10px rgba(100, 100, 100, ${v/100*.5})`},children:c.split("").map((p,m)=>S.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:zt.zhanwei,children:[p,S.jsx("span",{className:zt.outerName,children:p}),d&&S.jsx("span",{className:zt.innerName,children:p})]})},p+m))},c),S.jsx("div",{className:zt.text,style:{fontSize:u,wordBreak:a||e.isFirefox?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:g})]})})}const QR=navigator.userAgent,Whe=/firefox/i.test(QR),qhe=/^((?!chrome|android).)*safari/i.test(QR);function Xhe(e){switch(e){case"standard":return oh;case"imss":return ZR;default:return oh}}const Yhe=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const _=()=>{const w=window.innerHeight,T=window.innerWidth,k=w/1440,A=T/2560,P=T/1440,F=w/2560;[k,A,P,F].forEach(D=>{D<=.2?t(!1):t(!0)})};return window.addEventListener("resize",_),_(),()=>{window.removeEventListener("resize",_)}},[]);const r=Se(_=>_.stage),n=Se(_=>_.userData),i=w0(n.optionData.textSpeed),o=mP(n.optionData.textSpeed);let a=Ky(n.optionData.textSize)+"%";const s=KR(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=Ky(r.showTextSize)+"%",l=r.showTextSize);const c=Mh(n.optionData.textSize).with(Kr.small,()=>3).with(Kr.medium,()=>2).with(Kr.large,()=>2).default(()=>2),f=fb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,v=r.currentDialogKey,g=r.miniAvatar,p=Se(_=>_.GUI.theme),m=n.optionData.textboxOpacity,y=Xhe(p.textbox);return S.jsx(y,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:v,isSafari:qhe,isFirefox:Whe,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:m})};function WT(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function fb(e,t,r){const a=e.split("|").map(s=>Zhe(s)).map(s=>{const u=[];return s.forEach((l,c)=>{Mh(l.type).with("SegmentType.String",()=>{const f=Khe(l.value);u.push(...f)}).endsWith("SegmentType.Link",()=>{const f=l.value,h=S.jsxs("ruby",{children:[f.text,S.jsx("rt",{children:f.link})]},c+f.text);u.push(h)})}),u}).slice(0,r?void 0:t).reduce((s,u,l)=>[...s,...u,S.jsx("br",{},`br-${l}`)],[]);return a.pop(),a}function Khe(e){if(!e)return[];const t=[];let r="",n=WT(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(WT(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Zhe(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const Qhe=e=>{const t=Tr("menu.options.pages.display.options."),r=Se(_=>_.GUI.theme),n=Se(_=>_.userData),o=Se(_=>_.stage).bgName,a=w0(n.optionData.textSpeed),s=mP(n.optionData.textSpeed),u=n.optionData.textboxOpacity,l=Ky(n.optionData.textSize)+"%",c=KR(),f=navigator.userAgent,h=/firefox/i.test(f),d=/^((?!chrome|android).)*safari/i.test(f),v=t("textPreview.text"),g=fb(v,3),m=new Map([["standard",oh],["imss",ZR]]).get(r.textbox)||oh,y={textArray:g,isText:!0,textDelay:a,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:l,currentDialogKey:"",isSafari:d,isFirefox:h,miniAvatar:"",textDuration:s,font:c,textSizeState:l,lineLimit:3,isUseStroke:!0,textboxOpacity:u};return S.jsx("div",{className:VT.textPreviewMain,style:{background:o?`bottom / cover no-repeat url(${o})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:VT.textbox,children:S.jsx(m,{...y})},`previewTextbox-${a}`)})};const da=e=>{const{playSeEnter:t}=vr();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function Jhe(){const e=Se(n=>n.userData),t=or(),r=Tr("menu.options.pages.display.options.");return S.jsxs("div",{className:ur.Options_main_content_half,children:[S.jsx(lr,{title:r("textSpeed.title"),children:S.jsx(Oi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(_t({key:"textSpeed",value:fr.slow})),Ke()},()=>{t(_t({key:"textSpeed",value:fr.normal})),Ke()},()=>{t(_t({key:"textSpeed",value:fr.fast})),Ke()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(lr,{title:r("textSize.title"),children:S.jsx(Oi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(_t({key:"textSize",value:Kr.small})),Ke()},()=>{t(_t({key:"textSize",value:Kr.medium})),Ke()},()=>{t(_t({key:"textSize",value:Kr.large})),Ke()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(lr,{title:r("textFont.title"),children:S.jsx(Oi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(_t({key:"textboxFont",value:Ln.song})),Ke()},()=>{t(_t({key:"textboxFont",value:Ln.hei})),Ke()},()=>{t(_t({key:"textboxFont",value:Ln.lxgw})),Ke()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(lr,{title:r("textboxOpacity.title"),children:S.jsx(da,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(_t({key:"textboxOpacity",value:Number(i)})),Ke()}})},"textboxOpacity"),S.jsx(lr,{full:!0,title:r("textPreview.title"),children:S.jsx(Qhe,{})},"textPreview")]})}function ede(){const e=Se(n=>n.userData),t=or(),r=Tr("menu.options.pages.sound.options.");return S.jsxs("div",{className:ur.Options_main_content_half,children:[S.jsx(lr,{title:r("volumeMain.title"),children:S.jsx(da,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(_t({key:"volumeMain",value:Number(i)})),Ke()}})},"option4"),S.jsx(lr,{title:r("vocalVolume.title"),children:S.jsx(da,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"vocalVolume",value:Number(i)})),Ke()}})},"option5"),S.jsx(lr,{title:r("bgmVolume.title"),children:S.jsx(da,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"bgmVolume",value:Number(i)})),Ke()}})},"option6"),S.jsx(lr,{title:r("seVolume.title"),children:S.jsx(da,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"seVolume",value:Number(i)})),Ke()}})},"option7"),S.jsx(lr,{title:r("uiSeVolume.title"),children:S.jsx(da,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(_t({key:"uiSeVolume",value:Number(i)})),Ke()}})},"option8"),S.jsx(lr,{title:r("voiceOption.title"),children:S.jsx(Oi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(_t({key:"voiceInterruption",value:Ku.yes})),Ke()},()=>{t(_t({key:"voiceInterruption",value:Ku.no})),Ke()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const tde=()=>{const{playSeEnter:e,playSeSwitch:t}=vr(),r=Fn(0);$.useEffect(el,[]);function n(o){return o===r.value?ur.Options_page_button+" "+ur.Options_page_button_active:ur.Options_page_button}const i=Tr("menu.options.");return S.jsxs("div",{className:ur.Options_main,children:[S.jsx("div",{className:ur.Options_top,children:S.jsx("div",{className:ur.Options_title,children:S.jsx("div",{className:ur.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:ur.Options_page_container,children:[S.jsxs("div",{className:ur.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:ur.Options_main_content,children:[r.value===1&&S.jsx(Jhe,{}),r.value===0&&S.jsx(fhe,{}),r.value===2&&S.jsx(ede,{})]})]})]})},rde=()=>{const e=Se(r=>r.GUI);let t;switch(e.currentMenuTag){case qe.Save:t=S.jsx(Rfe,{});break;case qe.Load:t=S.jsx(Nfe,{});break;case qe.Option:t=S.jsx(tde,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:UT.Menu_main,children:[S.jsx("div",{className:UT.Menu_TagContent,children:t}),S.jsx(Hce,{})]})})},nde="_MainStage_main_9enex_1",ide="_MainStage_main_container_9enex_10",ode="_MainStage_bgContainer_9enex_17",ade="_MainStage_showBgSoftly_9enex_1",sde="_MainStage_bgContainer_Settled_9enex_27",ude="_MainStage_oldBgContainer_9enex_37",lde="_MainStage_oldBgFadeout_9enex_1",cde="_MainStage_oldBgContainer_Settled_9enex_47",fde="_pixiContainer_9enex_72",hde="_chooseContainer_9enex_77",Qv={MainStage_main:nde,MainStage_main_container:ide,MainStage_bgContainer:ode,MainStage_showBgSoftly:ade,MainStage_bgContainer_Settled:sde,MainStage_oldBgContainer:ude,MainStage_oldBgFadeout:lde,MainStage_oldBgContainer_Settled:cde,pixiContainer:fde,chooseContainer:hde},dde=()=>{var g;const e=Se(p=>p.stage),t=Se(p=>p.GUI.titleBgm),r=Se(p=>p.GUI.showTitle),n=Se(p=>p.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=Se(p=>p.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),v=(p,m,y)=>{y>=0?p.volume=0:p.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{p.volume+x>=m?p.volume=m:p.volume+x<=0?(p.volume=0,j.dispatch(Te({key:"bgm",value:{src:"",enter:0,volume:100}}))):(p.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const p=document.getElementById("currentBgm");p&&(s===0?p.volume=a:v(p,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const p=document.getElementById("currentVocal");p&&(p.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const p=document.createElement("audio");p.src=u,p.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),p.volume=isNaN(l)?i/100:l/100):p.volume=c,p.play(),p.addEventListener("ended",()=>{p.remove()}),j.dispatch(Te({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},pde=()=>{const e=Se(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:wn.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},vde="_TextBox_EventHandler_449dq_2",mde="_TextBox_main_449dq_10",gde="_showSoftly_449dq_1",yde="_TextBox_textElement_449dq_38",_de="_TextBox_textElement_start_449dq_43",xde="_TextDelayShow_449dq_1",bde="_TextBox_textElement_Settled_449dq_48",Sde="_TextBox_showName_449dq_52",wde="_miniAvatarContainer_449dq_68",Ede="_miniAvatarImg_449dq_76",Jv={TextBox_EventHandler:vde,TextBox_main:mde,showSoftly:gde,TextBox_textElement:yde,TextBox_textElement_start:_de,TextDelayShow:xde,TextBox_textElement_Settled:bde,TextBox_showName:Sde,miniAvatarContainer:wde,miniAvatarImg:Ede},Tde=()=>{const e=Se(a=>a.stage),t=Se(a=>a.userData);$.useEffect(()=>{});const r=E6.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{e()},[])}function Ts(e){$.useEffect(()=>function(){e()},[])}function Cde(e){$.useEffect(()=>{e()})}const Ode="_Backlog_main_zwyao_2",Ade="_backlog_soft_in_zwyao_1",Pde="_Backlog_main_out_zwyao_15",kde="_backlog_soft_out_zwyao_1",Ide="_Backlog_main_out_IndexHide_zwyao_28",Rde="_Backlog_main_DisableScroll_zwyao_32",Nde="_backlog_top_zwyao_36",Lde="_backlog_top_icon_zwyao_42",Mde="_backlog_icon_softin_zwyao_1",Fde="_backlog_title_zwyao_62",Dde="_backlog_content_zwyao_72",Bde="_backlog_item_zwyao_84",jde="_backlog_item_in_zwyao_1",$de="_backlog_item_out_zwyao_94",Ude="_backlog_func_area_zwyao_104",Gde="_backlog_item_content_name_zwyao_113",zde="_backlog_item_content_zwyao_113",Hde="_backlog_item_button_list_zwyao_137",Vde="_backlog_item_button_element_zwyao_144",Wde="_backlog_item_content_text_zwyao_157",Vt={Backlog_main:Ode,backlog_soft_in:Ade,Backlog_main_out:Pde,backlog_soft_out:kde,Backlog_main_out_IndexHide:Ide,Backlog_main_DisableScroll:Rde,backlog_top:Nde,backlog_top_icon:Lde,backlog_icon_softin:Mde,backlog_title:Fde,backlog_content:Dde,backlog_item:Bde,backlog_item_in:jde,backlog_item_out:$de,backlog_func_area:Ude,backlog_item_content_name:Gde,backlog_item_content:zde,backlog_item_button_list:Hde,backlog_item_button_element:Vde,backlog_item_content_text:Wde};var qde=mn,Xde=function(){return qde.Date.now()},Yde=Xde,Kde=/\s/;function Zde(e){for(var t=e.length;t--&&Kde.test(e.charAt(t)););return t}var Qde=Zde,Jde=Qde,epe=/^\s+/;function tpe(e){return e&&e.slice(0,Jde(e)+1).replace(epe,"")}var rpe=tpe,npe=rpe,qT=Gn,ipe=zh,XT=0/0,ope=/^[-+]0x[0-9a-f]+$/i,ape=/^0b[01]+$/i,spe=/^0o[0-7]+$/i,upe=parseInt;function lpe(e){if(typeof e=="number")return e;if(ipe(e))return XT;if(qT(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qT(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=npe(e);var r=ape.test(e);return r||spe.test(e)?upe(e.slice(2),r?2:8):ope.test(e)?XT:+e}var cpe=lpe,fpe=Gn,em=Yde,YT=cpe,hpe="Expected a function",dpe=Math.max,ppe=Math.min;function vpe(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(hpe);t=YT(t)||0,fpe(r)&&(c=!!r.leading,f="maxWait"in r,o=f?dpe(YT(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function d(w){var T=n,k=i;return n=i=void 0,l=w,a=e.apply(k,T),a}function v(w){return l=w,s=setTimeout(m,t),c?d(w):a}function g(w){var T=w-u,k=w-l,A=t-T;return f?ppe(A,o-k):A}function p(w){var T=w-u,k=w-l;return u===void 0||T>=t||T<0||f&&k>=o}function m(){var w=em();if(p(w))return y(w);s=setTimeout(m,g(w))}function y(w){return s=void 0,h&&n?d(w):(n=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function x(){return s===void 0?a:y(em())}function b(){var w=em(),T=p(w);if(n=arguments,i=this,u=w,T){if(s===void 0)return v(u);if(f)return clearTimeout(s),s=setTimeout(m,t),d(u)}return s===void 0&&(s=setTimeout(m,t)),a}return b.cancel=_,b.flush=x,b}var mpe=vpe,gpe=mpe,ype=Gn,_pe="Expected a function";function xpe(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(_pe);return ype(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),gpe(e,t,{leading:n,maxWait:t,trailing:i})}var bpe=xpe;const Spe=Or(bpe);function wpe(e){Epe(),Tpe(),Ope(),Cpe(),Ape(),Npe()}function Epe(){const e=ws(u=>u.GUI),t=Ad(),r=Od(e),n=JR(e),i=Ppe(e),o=Ipe(e),a=kpe(e),s=$.useCallback(u=>i()?(t("showGlobalDialog",!1),u.preventDefault(),!1):(a()&&t("showExtra",!1),r()&&t("showTextBox",!e.current.showTextBox),n()&&(t("showBacklog",!1),t("showTextBox",!0)),o()&&t("showMenuPanel",!1),u.preventDefault(),!1),[]);Es(()=>{document.addEventListener("contextmenu",s)}),Ts(()=>{document.removeEventListener("contextmenu",s)})}function Tpe(){const e=ws(u=>u.GUI),t=Ad(),r=Od(e),n=JR(e),i=eN(e),o=$.useCallback(Spe(()=>{Ut()},100),[]),a=$.useRef(0),s=$.useCallback(u=>{if(i())return;const l=u.wheelDelta&&(u.wheelDelta>0?"up":"down")||u.detail&&(u.detail<0?"up":"down")||"down",c=u.ctrlKey,f=document.querySelector(`.${Vt.backlog_content}`);if(r()&&l==="up"&&!c)t("showBacklog",!0),t("showTextBox",!1);else if(n()&&l==="down"&&!c){if(f){let h=Lpe(f),d=new Date().getTime();h&&d-a.current>100&&(t("showBacklog",!1),t("showTextBox",!0)),a.current=d}}else r()&&l==="down"&&!c&&o()},[]);Es(()=>{document.addEventListener("wheel",s)}),Ts(()=>{document.removeEventListener("wheel",s)})}function Cpe(){const e=$.useCallback(a=>!a.isComposing&&!a.defaultPrevented&&a.code==="Escape",[]),t=ws(a=>a.GUI),r=$.useCallback(()=>t.current.showTitle,[t]),n=eN(t),i=Ad(),o=$.useCallback(a=>{!e(a)||r()||(n()?i("showPanicOverlay",!1):(i("showPanicOverlay",!0),lb()))},[]);Es(()=>{document.addEventListener("keyup",o)}),Ts(()=>{document.removeEventListener("keyup",o)})}function Ope(){const e=ws(a=>a.GUI),t=Od(e),r=$.useCallback(a=>a.keyCode===17,[]),n=$.useCallback(a=>{r(a)&&t()&&WR()},[]),i=$.useCallback(a=>{r(a)&&t()&&ja()},[]),o=$.useCallback(a=>{ja()},[]);Es(()=>{document.addEventListener("keydown",n),document.addEventListener("keyup",i),window.addEventListener("blur",o)}),Ts(()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",i),window.removeEventListener("blur",o)}),Cde(()=>{t()||ja()})}function Ape(){const e=Rpe(),t=$.useCallback(async r=>{e()&&await JZ()},[]);Es(()=>{window.addEventListener("beforeunload",t)}),Ts(()=>{window.removeEventListener("beforeunload",t)})}function Od(e){return $.useCallback(()=>!e.current.showTitle&&!e.current.showMenuPanel&&!e.current.showBacklog&&!e.current.showPanicOverlay,[e])}function JR(e){return $.useCallback(()=>e.current.showBacklog,[e])}function Ppe(e){return $.useCallback(()=>e.current.showGlobalDialog,[e])}function kpe(e){return $.useCallback(()=>e.current.showExtra,[e])}function eN(e){return $.useCallback(()=>e.current.showPanicOverlay,[e])}function Ipe(e){return $.useCallback(()=>[qe.Save,qe.Load,qe.Option].includes(e.current.currentMenuTag),[e])}function Rpe(){return $.useCallback(()=>O.sceneManager.sceneData.currentSentenceId!==0,[O.sceneManager.sceneData])}function Ad(){const e=or();return(t,r)=>{e(Me({component:t,visibility:r}))}}function Npe(){const e=ws(u=>u.GUI),t=Od(e),r=Ad(),n=$.useRef(!1),i=$.useCallback(u=>u.keyCode===32||u.keyCode===13,[]),o=$.useCallback(u=>{if(i(u)&&t()&&!n.current){if(!e.current.showTextBox){r("showTextBox",!0);return}lb(),Ut(),n.current=!0}},[]),a=$.useCallback(u=>{i(u)&&t()&&(n.current=!1)},[]),s=$.useCallback(u=>{n.current=!1},[]);Es(()=>{document.addEventListener("keydown",o),document.addEventListener("keyup",a),document.addEventListener("blur",s)}),Ts(()=>{document.removeEventListener("keydown",o),document.removeEventListener("keyup",a),document.removeEventListener("blur",s)})}function Lpe(e){const{scrollTop:t,clientHeight:r,scrollHeight:n}=e;return t===0}function Mpe(e){const t=e.bgName;$.useEffect(()=>{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&KT(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),Ll(t),ne.debug("重设背景");const{duration:s,animation:u}=xi("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&KT(a)}},[t])}function KT(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=xi("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function Fpe(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==r&&Zn(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&kc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:p,animation:m}=xi(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除中立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==r&&Zn(v,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==t&&Zn(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&kc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:p,animation:m}=xi(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除左立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==t&&Zn(v,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==n&&Zn(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&kc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:p,animation:m}=xi(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==n&&Zn(v,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,v;for(const g of i){const p=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(p);if(y){if(y.sourceUrl!==g.name){Zn(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(p,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=xi(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(p,g.name,g.basePosition),/.json$/.test(g.name)&&kc(p,g.name,g.basePosition,((f=o.find(w=>w.target===p))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===p))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=xi(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(p);y&&y.sourceUrl!==g.name&&Zn(y,m,e.effects)}}const s=(v=O.gameplay.pixiStage)==null?void 0:v.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const p=g.key;if(i.findIndex(y=>y.key===p)<0){const y=`${g.key}-softin`;Zn(g,y,e.effects)}}}},[i])}function Zn(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=xi(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function kc(...e){}function Dpe(e){const t=e.effects;setTimeout(()=>{Bpe(t)},10)}function Bpe(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,ZT(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,ZT(T0))}}}}function ZT(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function jpe(){const e=Se(t=>t.stage);return Mpe(e),Fpe(e),Dpe(e),S.jsx("div",{style:{display:"none"}})}const $pe="_introContainer_119k8_1",Upe={introContainer:$pe};function Gpe(){return S.jsx("div",{className:Upe.introContainer,id:"introContainer"})}function QT(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(Me({component:"controlsVisibility",visibility:!1}))},1e3)):zpe(e,r,n)}const Wpe=()=>{const e=Se(n=>n.stage),t=Se(n=>n.GUI),r=or();return wpe(),S.jsxs("div",{className:Qv.MainStage_main,children:[S.jsx(pde,{}),S.jsx(jpe,{}),S.jsx("div",{id:"pixiContianer",className:Qv.pixiContainer,style:{zIndex:sb?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:Qv.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx(Yhe,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(Tde,{}),S.jsx(dde,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(Me({component:"showTextBox",visibility:!0}));return}lb(),Ut()},onDoubleClick:()=>{O.eventBus.emit("fullscreen-dbclick")},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&Vpe(n,e,t,r)}),S.jsx(Gpe,{})]})},qpe=()=>{const e=Tr("gaming."),t=2.5,{i18n:r}=gs(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=vr(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=Se(m=>m.GUI),f=Se(m=>m.stage),h=or(),d=(m,y)=>{h(Me({component:m,visibility:y}))},v=m=>{h(Oo(m))},g=Se(m=>m.userData.saveData);let p=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];p=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(xce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(bce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(lce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(Sce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{HR(),i()},onMouseEnter:n,children:[S.jsx($R,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{XR(),i()},onMouseEnter:n,children:[S.jsx(fce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{dg(0),i()},onMouseEnter:n,children:[S.jsx(cce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:p})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{uk(0),i()},onMouseEnter:n,children:[S.jsx(hce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:p})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(qe.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(UR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(qe.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(BR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(qe.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(GR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Ea({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{cb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(jR,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{Ife(),i()},onMouseEnter:n,children:c.showControls?S.jsx(gce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(Tce,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},Xpe=()=>{var h,d;const e=Tr("gaming."),{playSeEnter:t,playSeClick:r}=vr(),n=Se(v=>v.GUI),i=or(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let v=[];for(let g=0;gb==="

"?S.jsx("br",{},`br${w}`):b),x=S.jsxs("div",{className:Vt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:Vt.backlog_func_area,children:[S.jsxs("div",{className:Vt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),ZZ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:Vt.backlog_item_button_element,children:S.jsx(wce,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),p.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=j.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:Vt.backlog_item_button_element,children:S.jsx(Cce,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:Vt.backlog_item_content_name,children:p.currentStageState.showName})]}),S.jsx("div",{className:Vt.backlog_item_content,children:S.jsx("span",{className:Vt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:p.currentStageState.vocal})]},"backlogItem"+p.currentStageState.showText+p.saveScene.currentSentenceId);v.unshift(x)}return v},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` - ${n.showBacklog?Vt.Backlog_main:Vt.Backlog_main_out} - ${a?Vt.Backlog_main_out_IndexHide:""} - `,children:[S.jsxs("div",{className:Vt.backlog_top,children:[S.jsx(DR,{className:Vt.backlog_top_icon,onClick:()=>{r(),i(Me({component:"showBacklog",visibility:!1})),i(Me({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:Vt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${Vt.backlog_content} ${u?Vt.Backlog_main_DisableScroll:""}`,children:f})]})})};function Ype(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=Se(g=>g.userData.appreciationData),i="Title_BGM",o=Fn(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,p)=>{g.url===r&&(a=g.name,s=p)});const f=Fn("");a!==i&&a!==f.value&&f.set(a);const h=or();function d(g){const p=n.bgm[g];f.set(p.name),h(Hf({asset:"titleBgm",value:p.url}))}const v=n.bgm.map((g,p)=>{let m=rt.bgmElement;return g.name===f.value&&(m=m+" "+rt.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(Hf({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${p*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:rt.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:rt.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx(pce,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx($R,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx(dce,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:rt.bgmControlButton,children:S.jsx(Ece,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:rt.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:rt.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(_ce,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:rt.bgmListContainer,children:[" ",v]})]})}function bve(e){const t=Fn(!1),{playSeEnter:r,playSeClick:n}=vr();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:rt.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:rt.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:rt.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function Sve(){const t=Se(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=Fn(1),{playSeEnter:i,playSeClick:o}=vr(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:rt.cgMain,children:[S.jsx("div",{className:rt.cgShowDiv,children:S.jsx("div",{className:rt.cgShowDivWarpper,children:u})}),S.jsx("div",{className:rt.cgContainer,children:a})]})}function wve(e,t){return Math.round(Math.random()*(t-e))+e}function Eve(){const{playSeClick:e}=vr(),t=Se(i=>i.GUI.showExtra),r=or(),n=Tr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:rt.extra,children:[S.jsxs("div",{className:rt.extra_top,children:[S.jsx(DR,{className:rt.extra_top_icon,onClick:()=>{r(Me({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:rt.extra_title,children:n("title")})]}),S.jsxs("div",{className:rt.mainContainer,children:[S.jsx(Sve,{}),S.jsx(xve,{})]})]})})}const Tve="_tag_yghix_2",Cve="_container_yghix_17",Ove="_showContainer_yghix_1",Ave="_singleButton_yghix_33",Pve="_button_text_yghix_37",It={tag:Tve,container:Cve,showContainer:Ove,singleButton:Ave,button_text:Pve},kve=()=>{const e=Fn(!1),t=Se(o=>o.stage),r=or(),n=(o,a)=>{r(Me({component:o,visibility:a}))},i=o=>{r(Oo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:It.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(vce,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:It.container,children:[S.jsx("span",{className:It.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:It.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:It.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:It.singleButton,onClick:()=>{HR(),e.set(!e.value)},children:S.jsx("span",{className:It.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:It.singleButton,onClick:()=>{XR(),e.set(!e.value)},children:S.jsx("span",{className:It.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),i(qe.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:It.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),i(qe.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:It.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),i(qe.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:It.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:It.singleButton,onClick:()=>{e.set(!e.value),cb()},children:S.jsx("span",{className:It.button_text,children:"标题 / TITLE"})})]})]})})},Ive="_devPanelMain_11x6i_1",Rve="_devPanelOpener_11x6i_13",JT={devPanelMain:Ive,devPanelOpener:Rve};function Nve(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function Lve(){function e(){return!!window.location.hash.match(/dev/)}const t=Fn(!1),r=Fn(window.location.hash),n=Se(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=gs(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>Nve(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:JT.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:JT.devPanelOpener,children:"Open Dev Panel"})]})}const Mve="_trans_8uz61_2",Fve="_langWrapper_8uz61_10",Dve="_lang_8uz61_10",Bve="_langSelect_8uz61_29",jve="_langSelectButton_8uz61_35",eu={trans:Mve,langWrapper:Fve,lang:Dve,langSelect:Bve,langSelectButton:jve};function $ve(){const e=YR(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:eu.trans,children:S.jsxs("div",{className:eu.langWrapper,children:[S.jsx("div",{className:eu.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:eu.langSelect,children:Object.keys(Bf).map(i=>S.jsx("div",{className:eu.langSelectButton,onClick:()=>n(Wo[i]),children:Bf[i]},i))})]})})})}const Uve="_panic_overlay_main_1ysz4_1",Gve={panic_overlay_main:Uve},zve="_yoozle_blue_1r48o_1",Hve="_yoozle_red_1r48o_5",Vve="_yoozle_yellow_1r48o_9",Wve="_yoozle_green_1r48o_13",qve="_yoozle_e_rotate_1r48o_17",Xve="_yoozle_container_1r48o_22",Yve="_yoozle_title_1r48o_28",Kve="_yoozle_search_1r48o_37",Zve="_yoozle_search_bar_1r48o_44",Qve="_yoozle_search_buttons_1r48o_51",Jve="_yoozle_button_1r48o_55",gr={yoozle_blue:zve,yoozle_red:Hve,yoozle_yellow:Vve,yoozle_green:Wve,yoozle_e_rotate:qve,yoozle_container:Xve,yoozle_title:Yve,yoozle_search:Kve,yoozle_search_bar:Zve,yoozle_search_buttons:Qve,yoozle_button:Jve},eme=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:gr.yoozle_container,children:[S.jsx("div",{className:gr.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:gr.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:gr.yoozle_red,children:"o"}),S.jsx("span",{className:gr.yoozle_yellow,children:"o"}),S.jsx("span",{className:gr.yoozle_blue,children:"z"}),S.jsx("span",{className:gr.yoozle_green,children:"l"}),S.jsx("span",{className:`${gr.yoozle_red} ${gr.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:gr.yoozle_search,children:[S.jsx("input",{className:gr.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:gr.yoozle_search_buttons,children:[S.jsx("input",{className:gr.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:gr.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),tme=()=>{const e=Se(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),Mn.createPortal(S.jsx("div",{className:t?Gve.panic_overlay_main:"",children:t&&S.jsx(eme,{})}),document.querySelector("div#panic-overlay"))};function rme(){return $.useEffect(()=>{qle()},[]),S.jsx("div",{className:"App",children:S.jsxs(IK,{store:j,children:[S.jsx($ve,{}),S.jsx(Wpe,{}),S.jsx(qpe,{}),S.jsx(kve,{}),S.jsx(Xpe,{}),S.jsx(NQ,{}),S.jsx(BQ,{}),S.jsx(Eve,{}),S.jsx(rde,{}),S.jsx(Afe,{}),S.jsx(tme,{}),S.jsx(Lve,{})]})})}function $i(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function Pd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Bl(e,t){if(t&&(Dt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $i(e)}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(e)}function nme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ime(e){return gk(e)||nme(e)||yk(e)||_k()}function eC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};gn(this,e),this.init(t,r)}return yn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||ome,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function nC(e,t,r){var n=hb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function ume(e,t,r,n){var i=hb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function ah(e,t){var r=hb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function lme(e,t,r){var n=ah(e,r);return n!==void 0?n:ah(t,r)}function tN(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):tN(e[n],t[n],r):e[n]=t[n]);return e}function ua(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var cme={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function fme(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return cme[t]}):e}var kd=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,hme=[" ",",","?","!",";"];function dme(e,t,r){t=t||"",r=r||"";var n=hme.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function sh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?sh(u,l,r):void 0}i=i[n[o]]}return i}}function iC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var mme=function(e){Pd(r,e);var t=pme(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return gn(this,r),i=t.call(this),kd&&Qi.call($i(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return yn(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=ah(this.data,c);return f||!l||typeof a!="string"?f:sh(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),nC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=ah(this.data,c)||{};s?tN(f,a,u):f=Ic(Ic({},f),a),nC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ic(Ic({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(Qi),rN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function oC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var aC={},sC=function(e){Pd(r,e);var t=gme(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return gn(this,r),i=t.call(this),kd&&Qi.call($i(i)),sme(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,$i(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=kn.create("translator"),i}return yn(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!dme(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if(Dt(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Dt(o)==="object"&&(o=Zt({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],v=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(g){var p=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(p).concat(f),usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:"".concat(d).concat(p).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(k&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,Zt(Zt({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var F=b==="[object Array]",D=F?[]:{},H=F?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);D[re]=this.translate(z,Zt(Zt({},o),{joinArrays:!1,ns:h})),D[re]===z&&(D[re]=y[re])}y=D}}else if(k&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,ue=!1,De=o.count!==void 0&&typeof o.count!="string",ge=r.hasDefaultValue(o),Q=De?this.pluralResolver.getSuffix(v,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&ge&&(q=!0,y=L),this.isValidLookup(y)||(ue=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&ue?void 0:y,ae=ge&&L!==y&&this.options.updateMissing;if(ue||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",v,d,f,ae?L:y),l){var ye=this.resolve(f,Zt(Zt({},o),{},{keySeparator:!1}));ye&&ye.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var be=[],we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(var Be=0;Be1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),v=d.key;u=v;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var p=a.count!==void 0&&typeof a.count!="string",m=p&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!aC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(aC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,v,b,x,a);else{var T;p&&(T=o.pluralResolver.getSuffix(b,a.count,a));var k="".concat(o.options.pluralSeparator,"zero");if(p&&(w.push(v+T),m&&w.push(v+k)),y){var A="".concat(v).concat(o.options.contextSeparator).concat(a.context);w.push(A),p&&(w.push(A+T),m&&w.push(A+k))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(Qi);function rm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var uC=function(){function e(t){gn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kn.create("languageUtils")}return yn(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=rm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=rm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=rm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),_me=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xme={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},bme=["v1","v2","v3"],lC={zero:0,one:1,two:2,few:3,many:4,other:5};function Sme(){var e={};return _me.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:xme[t.fc]}})}),e}var wme=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gn(this,e),this.languageUtils=t,this.options=r,this.logger=kn.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Sme()}return yn(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return lC[a]-lC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!bme.includes(this.options.compatibilityJSON)}}]),e}();function cC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function un(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=lme(e,t,r);return!o&&i&&typeof r=="string"&&(o=sh(e,r,n),o===void 0&&(o=sh(t,r,n))),o}var Eme=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gn(this,e),this.logger=kn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return yn(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:fme,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ua(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ua(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ua(n.nestingPrefix):n.nestingPrefixEscaped||ua("$t("),this.nestingSuffix=n.nestingSuffix?ua(n.nestingSuffix):n.nestingSuffixEscaped||ua(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(p){return p.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=fC(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,un(un(un({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(fC(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,un(un(un({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(p){for(l=0;s=p.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(v){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=rC(u));var _=p.safeValue(u);if(r=r.replace(s[0],_),v?(p.regex.lastIndex+=u.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,v){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var p=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(p[1]);d=p[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),v&&(u=un(un({},v),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=un({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=rC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,v){return i.format(d,v,o.lng,un(un({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function hC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=ime(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function la(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var Cme=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gn(this,e),this.logger=kn.create("formatter"),this.options=t,this.formats={number:la(function(r,n){var i=new Intl.NumberFormat(r,Qn({},n));return function(o){return i.format(o)}}),currency:la(function(r,n){var i=new Intl.NumberFormat(r,Qn(Qn({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:la(function(r,n){var i=new Intl.DateTimeFormat(r,Qn({},n));return function(o){return i.format(o)}}),relativetime:la(function(r,n){var i=new Intl.RelativeTimeFormat(r,Qn({},n));return function(o){return i.format(o,n.range||"day")}}),list:la(function(r,n){var i=new Intl.ListFormat(r,Qn({},n));return function(o){return i.format(o)}})},this.init(t)}return yn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=la(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=Tme(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var v=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},p=g.locale||g.lng||a.locale||a.lng||i;v=o.formats[h](l,p,Qn(Qn(Qn({},d),a),g))}catch(m){o.logger.warn(m)}return v}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function dC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pC(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pme(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var kme=function(e){Pd(r,e);var t=Ome(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return gn(this,r),a=t.call(this),kd&&Qi.call($i(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=kn.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return yn(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var v=!0;o.forEach(function(g){var p="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[p]=2:u.state[p]<0||(u.state[p]===1?c[p]===void 0&&(c[p]=!0):(u.state[p]=1,v=!1,c[p]===void 0&&(c[p]=!0),l[p]===void 0&&(l[p]=!0),h[g]===void 0&&(h[g]=!0)))}),v||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){ume(f.loaded,[u],l),Pme(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(v){c[h][v]===void 0&&(c[h][v]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,p){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&p&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=pC(pC({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(v){return c(null,v)}).catch(c):c(null,d)}catch(v){c(v)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(Qi);function vC(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(Dt(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),Dt(t[2])==="object"||Dt(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mC(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function gC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rc(){}function Nme(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var uh=function(e){Pd(r,e);var t=Ime(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(gn(this,r),n=t.call(this),kd&&Qi.call($i(n)),n.options=mC(i),n.services={},n.logger=kn,n.modules={external:[]},Nme($i(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),Bl(n,$i(n));setTimeout(function(){n.init(i,o)},0)}return n}return yn(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=vC();this.options=Sn(Sn(Sn({},s),this.options),mC(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Sn(Sn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?kn.init(u(this.modules.logger),this.options):kn.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=Cme);var c=new uC(this.options);this.store=new mme(this.options.resources,this.options);var f=this.services;f.logger=kn,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new wme(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Eme(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new kme(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=tu(),p=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rc,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var v=o.services.languageUtils.toResolveHierarchy(d);v.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=tu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Rc),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&rN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=tu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(v){l(v,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if(Dt(f)!=="object"){for(var d=arguments.length,v=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,v){var g=o.services.backendConnector.state["".concat(d,"|").concat(v)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=tu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=tu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new uC(vC());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rc,s=Sn(Sn(Sn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=Sn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new sC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new uh(e,t)});var ar=uh.createInstance();ar.createInstance=uh.createInstance;ar.createInstance;ar.dir;ar.init;ar.loadResources;ar.reloadResources;ar.use;ar.changeLanguage;ar.getFixedT;ar.t;ar.exists;ar.setDefaultNamespace;ar.hasLoadedNamespace;ar.loadNamespaces;ar.loadLanguages;ar.use(TQ).init({resources:v6||{},lng:Wo[m6]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));Mn.render(S.jsx(Y.StrictMode,{children:S.jsx(PQ,{children:S.jsx(rme,{})})}),document.getElementById("root"));export{dr as C,Pn as S,pe as T,O as W,Fme as r}; +| iOS ユーザーは横画面での使用をお勧めします`),Ufe("./game/userStyleSheet.css"),Gfe(),Iee("./game/config.txt");const e=jr("start.txt",Br.scene);ti(e).then(t=>{O.sceneManager.sceneData.currentScene=ri(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=ql(r);Xl(n)}),O.gameplay.pixiStage=new Bfe,Lee(),Mee()};function Ufe(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function Gfe(){fl.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)fl.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const zfe="_Menu_main_1a7i6_1",Hfe="_Menu_ShowSoftly_1a7i6_1",Vfe="_Menu_TagContent_1a7i6_10",AC={Menu_main:zfe,Menu_ShowSoftly:Hfe,Menu_TagContent:Vfe},Wfe="_MenuPanel_main_1c9ky_1",qfe="_MenuPanel_button_1c9ky_10",Xfe="_MenuPanel_button_icon_1c9ky_38",Yfe="_MenuPanel_button_hl_1c9ky_44",La={MenuPanel_main:Wfe,MenuPanel_button:qfe,MenuPanel_button_icon:Xfe,MenuPanel_button_hl:Yfe};var Kfe=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function PC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jfe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var ehe={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function the(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function rhe(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var MN=$.createContext(ehe);MN.Provider;function ht(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=Qfe(n,Kfe),d=$.useContext(MN),p=$.useMemo(the,[]),g=rhe(p,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),v=[d.prefix+"-icon"];return v.push(d.prefix+"-icon-"+e),t&&d.rtl&&v.push(d.prefix+"-icon-rtl"),f&&v.push(d.prefix+"-icon-spin"),c&&v.push(c),Y.createElement("span",kC(kC({},h),{},{className:v.join(" ")}),r(g))}}const nhe=ht("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),DN=ht("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ihe=ht("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ohe=ht("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ahe=ht("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),FN=ht("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),she=ht("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),uhe=ht("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),lhe=ht("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),BN=ht("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),che=ht("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),fhe=ht("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hhe=ht("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),dhe=ht("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),jN=ht("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),phe=ht("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vhe=ht("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),mhe=ht("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ghe=ht("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),$N=ht("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),UN=ht("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),yhe=ht("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),_he=ht("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),xhe=ht("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),bhe=e=>{let t;switch(e.iconName){case"save":t=S.jsx($N,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(FN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(UN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(BN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"exit":t=S.jsx(hhe,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;default:t=S.jsx("div",{})}return t},hu=e=>{const{playSePageChange:t,playSeEnter:r}=_r();let n=La.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc()},onMouseEnter:r,style:{...e.style,color:e.tagColor},children:[S.jsx("div",{className:La.MenuPanel_button_icon,children:S.jsx(bhe,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},She="_main_15mmi_1",whe="_button_15mmi_16",Ehe="_button_text_15mmi_23",The="_button_on_15mmi_31",Che="_singleButton_15mmi_42",Ohe="_fastSlPreview_15mmi_59",Ahe="_fastSlEnter_15mmi_1",Phe="_fastsave_15mmi_73",khe="_fastSPreview_15mmi_73",Rhe="_fastload_15mmi_77",Ihe="_fastLPreview_15mmi_77",Nhe="_slPreviewMain_15mmi_89",Lhe="_imgContainer_15mmi_97",Mhe="_textContainer_15mmi_105",he={main:She,button:whe,button_text:Ehe,button_on:The,singleButton:Che,fastSlPreview:Ohe,fastSlEnter:Ahe,fastsave:Phe,fastSPreview:khe,fastload:Rhe,fastLPreview:Ihe,slPreviewMain:Nhe,imgContainer:Lhe,textContainer:Mhe},GN=e=>{const t=document.getElementById("Button_ControlPanel_auto");t&&(e?t.className=he.button_on:t.className=he.singleButton)},Gb=()=>{O.gameplay.isAuto=!1,GN(!1),O.gameplay.autoInterval!==null&&(clearInterval(O.gameplay.autoInterval),O.gameplay.autoInterval=null),O.gameplay.autoTimeout!==null&&(clearTimeout(O.gameplay.autoTimeout),O.gameplay.autoTimeout=null)},zN=()=>{O.gameplay.isAuto?Gb():(O.gameplay.isAuto=!0,GN(!0),O.gameplay.autoInterval=setInterval(Fhe,100))},Dhe=()=>{Ht(),O.gameplay.autoTimeout=null},Fhe=()=>{const t=750-250*B.getState().userData.optionData.autoSpeed;let r=!1;O.gameplay.performController.performList.forEach(n=>{n.blockingAuto()&&(r=!0)}),!r&&O.gameplay.autoTimeout===null&&(O.gameplay.autoTimeout=setTimeout(Dhe,t))},HN=e=>{const t=document.getElementById("Button_ControlPanel_fast");t&&(e?t.className=he.button_on:t.className=he.singleButton)},Ka=()=>{WN()&&(O.gameplay.isFast=!1,HN(!1),O.gameplay.fastInterval!==null&&(clearInterval(O.gameplay.fastInterval),O.gameplay.fastInterval=null))},VN=()=>{WN()||(O.gameplay.isFast=!0,HN(!0),O.gameplay.fastInterval=setInterval(()=>{Ht()},r2.fast_timeout))},WN=function(){return O.gameplay.isFast},zb=()=>{Ka(),Gb()},qN=()=>{O.gameplay.isFast?Ka():VN()},Hb=()=>{const e=B.dispatch;Lx(),Gb(),Ka(),e(we({key:"playVocal",value:""})),e(Me({component:"showTitle",visibility:!0})),Ql(B.getState().GUI.titleBg)},Bhe="_GlobalDialog_main_101j8_2",jhe="_showGlobalDialog_101j8_1",$he="_glabalDialog_container_inner_101j8_17",Uhe="_glabalDialog_container_101j8_17",Ghe="_title_101j8_36",zhe="_button_list_101j8_41",Hhe="_button_101j8_41",_o={GlobalDialog_main:Bhe,showGlobalDialog:jhe,glabalDialog_container_inner:$he,glabalDialog_container:Uhe,title:Ghe,button_list:zhe,button:Hhe};function Vhe(){const e=Ee(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Do(e){const{playSeClick:t,playSeEnter:r}=xx();B.dispatch(Me({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),RC()},i=()=>{t(),e.rightFunc(),RC()},o=S.jsx("div",{className:_o.GlobalDialog_main,children:S.jsx("div",{className:_o.glabalDialog_container,children:S.jsxs("div",{className:_o.glabalDialog_container_inner,children:[S.jsx("div",{className:_o.title,children:e.title}),S.jsxs("div",{className:_o.button_list,children:[S.jsx("div",{className:_o.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:_o.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{Wn.render(o,document.getElementById("globalDialogContainer"))},100)}function RC(){B.dispatch(Me({component:"showGlobalDialog",visibility:!1}))}function Whe(){B.dispatch(Me({component:"showControls",visibility:!0}))}function qhe(){B.dispatch(Me({component:"showControls",visibility:!1}))}function Xhe(){B.getState().GUI.showControls===!0?qhe():Whe()}const Yhe=()=>{const e=kr("menu."),{playSeClick:t,playSeDialogOpen:r,playSePageChange:n}=_r(),i=Ee(g=>g.GUI),o=lr(),a=i.currentMenuTag===Ke.Save?` ${La.MenuPanel_button_hl}`:"",s=i.currentMenuTag===Ke.Load?` ${La.MenuPanel_button_hl}`:"",u=i.currentMenuTag===Ke.Option?` ${La.MenuPanel_button_hl}`:"",l=i.currentMenuTag===Ke.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",c=i.currentMenuTag===Ke.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",f=i.currentMenuTag===Ke.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)",h=i.currentMenuTag===Ke.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",d=i.currentMenuTag===Ke.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",p=i.currentMenuTag===Ke.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)";return S.jsxs("div",{className:La.MenuPanel_main,children:[S.jsx(hu,{iconName:"save",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{n(),!i.showTitle&&o(Bo(Ke.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(hu,{iconName:"load",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{n(),o(Bo(Ke.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(hu,{iconName:"title",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{r(),Do({title:e("$gaming.buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Hb(),o(Me({component:"showMenuPanel",visibility:!1}))},rightFunc:()=>{}})},tagName:e("title.title")},"titleIcon"),S.jsx(hu,{iconName:"option",style:{marginLeft:"auto"},buttonOnClassName:u,iconColor:p,tagColor:f,clickFunc:()=>{n(),o(Bo(Ke.Option))},tagName:e("options.title")},"optionButton"),S.jsx(hu,{iconName:"exit",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{t(),o(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},Khe="_Save_Load_main_a3o8b_2",Zhe="_Save_Load_top_a3o8b_9",Qhe="_Elements_in_a3o8b_1",Jhe="_Save_Load_title_a3o8b_17",ede="_Save_title_text_a3o8b_35",tde="_Load_title_text_a3o8b_43",rde="_Save_Load_top_buttonList_a3o8b_51",nde="_Save_Load_top_button_a3o8b_51",ide="_Save_Load_top_button_text_a3o8b_69",ode="_Save_Load_top_button_on_a3o8b_80",ade="_Load_top_button_on_a3o8b_93",sde="_Load_top_button_a3o8b_93",ude="_Save_Load_content_a3o8b_106",lde="_Save_Load_content_element_a3o8b_115",cde="_Elements_in_transform_a3o8b_1",fde="_Save_Load_content_element_top_a3o8b_131",hde="_Save_Load_content_element_top_index_a3o8b_138",dde="_Load_content_elememt_top_index_a3o8b_147",pde="_Save_Load_content_element_top_date_a3o8b_151",vde="_Load_content_element_top_date_a3o8b_162",mde="_Save_Load_content_text_a3o8b_166",gde="_Save_Load_content_text_padding_a3o8b_180",yde="_Save_Load_content_speaker_a3o8b_184",_de="_Load_content_speaker_a3o8b_193",xde="_Load_content_text_a3o8b_197",bde="_Save_Load_content_miniRen_a3o8b_201",Sde="_Save_Load_content_miniRen_bg_a3o8b_208",wde="_Save_Load_content_miniRen_figure_a3o8b_215",Ede="_Save_Load_content_miniRen_figLeft_a3o8b_223",Tde="_Save_Load_content_miniRen_figRight_a3o8b_228",_e={Save_Load_main:Khe,Save_Load_top:Zhe,Elements_in:Qhe,Save_Load_title:Jhe,Save_title_text:ede,Load_title_text:tde,Save_Load_top_buttonList:rde,Save_Load_top_button:nde,Save_Load_top_button_text:ide,Save_Load_top_button_on:ode,Load_top_button_on:ade,Load_top_button:sde,Save_Load_content:ude,Save_Load_content_element:lde,Elements_in_transform:cde,Save_Load_content_element_top:fde,Save_Load_content_element_top_index:hde,Load_content_elememt_top_index:dde,Save_Load_content_element_top_date:pde,Load_content_element_top_date:vde,Save_Load_content_text:mde,Save_Load_content_text_padding:gde,Save_Load_content_speaker:yde,Load_content_speaker:_de,Load_content_text:xde,Save_Load_content_miniRen:bde,Save_Load_content_miniRen_bg:Sde,Save_Load_content_miniRen_figure:wde,Save_Load_content_miniRen_figLeft:Ede,Save_Load_content_miniRen_figRight:Tde},Cde=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=_r(),n=Ee(h=>h.userData),i=lr(),o=[];for(let h=1;h<=20;h++){let d=_e.Save_Load_top_button;h===n.optionData.slPage&&(d=d+" "+_e.Save_Load_top_button_on);const p=S.jsx("div",{onClick:()=>{i(JP(h)),Je(),e()},onMouseEnter:t,className:d,children:S.jsx("div",{className:_e.Save_Load_top_button_text,children:h})},"Save_element_page"+h);o.push(p)}const a=kr("common."),s=[],u=(n.optionData.slPage-1)*10+1,l=u+9;let c=0;for(let h=u;h<=l;h++){c++;const d=n.saveData[h];let p=S.jsx("div",{});if(d){const v=d.nowStageState.showName===""?" ":`${d.nowStageState.showName}`;p=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:_e.Save_Load_content_element_top,children:[S.jsx("div",{className:_e.Save_Load_content_element_top_index,children:d.index}),S.jsx("div",{className:_e.Save_Load_content_element_top_date,children:d.saveTime})]}),S.jsx("div",{className:_e.Save_Load_content_miniRen,children:S.jsx("img",{className:_e.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:d.previewImage})}),S.jsxs("div",{className:_e.Save_Load_content_text,children:[S.jsx("div",{className:_e.Save_Load_content_speaker,children:v}),S.jsx("div",{className:_e.Save_Load_content_text_padding,children:d.nowStageState.showText})]})]})}const g=S.jsx("div",{onClick:()=>{n.saveData[h]?(r(),Do({title:f("saving.isOverwrite"),leftText:a("yes"),rightText:a("no"),leftFunc:()=>{Gg(h),Je()},rightFunc:()=>{}})):(e(),Gg(h))},onMouseEnter:t,className:_e.Save_Load_content_element,style:{animationDelay:`${c*30}ms`},children:p},"saveElement_"+h);s.push(g)}const f=kr("menu.");return S.jsxs("div",{className:_e.Save_Load_main,children:[S.jsxs("div",{className:_e.Save_Load_top,children:[S.jsx("div",{className:_e.Save_Load_title,children:S.jsx("div",{className:_e.Save_title_text,children:f("saving.title")})}),S.jsx("div",{className:_e.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:_e.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:s})]})},Ode=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=_r(),n=Ee(f=>f.userData),i=lr(),o=[];for(let f=1;f<=20;f++){let h=_e.Save_Load_top_button+" "+_e.Load_top_button;f===n.optionData.slPage&&(h=h+" "+_e.Save_Load_top_button_on+" "+_e.Load_top_button_on);const d=S.jsx("div",{onClick:()=>{i(JP(f)),Je(),r()},onMouseEnter:t,className:h,children:S.jsx("div",{className:_e.Save_Load_top_button_text,children:f})},"Load_element_page"+f);o.push(d)}const a=[],s=(n.optionData.slPage-1)*10+1,u=s+9;let l=0;for(let f=s;f<=u;f++){l++;const h=n.saveData[f];let d=S.jsx("div",{});if(h){const g=h.nowStageState.showName===""?" ":`${h.nowStageState.showName}`;d=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:_e.Save_Load_content_element_top,children:[S.jsx("div",{className:_e.Save_Load_content_element_top_index+" "+_e.Load_content_elememt_top_index,children:h.index}),S.jsx("div",{className:_e.Save_Load_content_element_top_date+" "+_e.Load_content_element_top_date,children:h.saveTime})]}),S.jsx("div",{className:_e.Save_Load_content_miniRen,children:S.jsx("img",{className:_e.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:h.previewImage})}),S.jsxs("div",{className:_e.Save_Load_content_text,children:[S.jsx("div",{className:_e.Save_Load_content_speaker+" "+_e.Load_content_speaker,children:g}),S.jsx("div",{className:_e.Save_Load_content_text_padding,children:h.nowStageState.showText})]})]})}const p=S.jsx("div",{onClick:()=>{Kk(f),e()},onMouseEnter:t,className:_e.Save_Load_content_element,style:{animationDelay:`${l*30}ms`},children:d},"loadElement_"+f);a.push(p)}const c=kr("menu.");return S.jsxs("div",{className:_e.Save_Load_main,children:[S.jsxs("div",{className:_e.Save_Load_top,children:[S.jsx("div",{className:_e.Save_Load_title,children:S.jsx("div",{className:_e.Load_title_text,children:c("loadSaving.title")})}),S.jsx("div",{className:_e.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:_e.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:a})]})},Ade="_Options_main_u5orq_2",Pde="_Options_top_u5orq_9",kde="_Options_title_u5orq_16",Rde="_Option_title_text_u5orq_25",Ide="_Elements_in_u5orq_1",Nde="_Option_title_text_shadow_u5orq_34",Lde="_Option_title_text_ts_u5orq_41",Mde="_Options_main_content_u5orq_48",Dde="_Options_main_content_half_u5orq_55",Fde="_About_title_text_u5orq_65",Bde="_About_text_u5orq_73",jde="_Options_page_container_u5orq_92",$de="_Options_button_list_u5orq_98",Ude="_Options_page_button_u5orq_102",Gde="_Options_page_button_active_u5orq_114",hr={Options_main:Ade,Options_top:Pde,Options_title:kde,Option_title_text:Rde,Elements_in:Ide,Option_title_text_shadow:Nde,Option_title_text_ts:Lde,Options_main_content:Mde,Options_main_content_half:Dde,About_title_text:Fde,About_text:Bde,Options_page_container:jde,Options_button_list:$de,Options_page_button:Ude,Options_page_button_active:Gde},zde="_NormalOption_ogzuv_1",Hde="_Elements_in_ogzuv_1",Vde="_NormalOption_title_ogzuv_10",Wde="_NormalOption_title_bef_ogzuv_19",qde="_NormalOption_title_sd_ogzuv_29",Xde="_NormalOption_buttonList_ogzuv_39",Tm={NormalOption:zde,Elements_in:Hde,NormalOption_title:Vde,NormalOption_title_bef:Wde,NormalOption_title_sd:qde,NormalOption_buttonList:Xde},dr=e=>S.jsxs("div",{className:Tm.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Tm.NormalOption_title,children:e.title}),S.jsx("div",{className:Tm.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),Yde="_NormalButton_1qk3b_1",Kde="_NormalButtonChecked_1qk3b_18",Cm={NormalButton:Yde,NormalButtonChecked:Kde},Fi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=_r();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Cm.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function Ms(e){const t=Ee(e),r=$.useRef(t);return $.useEffect(()=>{r.current=t},[t]),r}function Zde(e){return na[e]}function XN(){const{i18n:e}=jd(),t=Ms(n=>n.userData),r=lr();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??na.zhCn,a=Zde(o);e.changeLanguage(a),r(St({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&Je()}}const Qde="_backButton_qbk37_1",Jde="_about_qbk37_16",epe="_icon_qbk37_20",tpe="_title_qbk37_24",rpe="_text_qbk37_34",npe="_contributor_qbk37_43",Xr={backButton:Qde,about:Jde,icon:epe,title:tpe,text:rpe,contributor:npe};function ipe(e){const t=kr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Xr.about,children:[S.jsx("div",{className:Xr.backButton,onClick:e.onClose,children:S.jsx(che,{className:Xr.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Xr.title,children:t("subTitle")}),S.jsx("div",{className:Xr.title,children:t("version")}),S.jsx("div",{className:Xr.text,children:LN.version}),S.jsx("div",{className:Xr.title,children:t("source")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Xr.title,children:t("contributors")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Xr.title,children:t("website")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function ope(){const e=Ee(f=>f.userData),t=lr(),r=XN(),n=kr("menu.options.pages.system.options."),{playSeDialogOpen:i}=_r();function o(){Je(),ah.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),p=URL.createObjectURL(d),g=document.createElement("a");g.href=p,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=p=>{const g=p.target.result;try{const v=JSON.parse(g);i(),Do({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{ah.setItem(O.gameKey,v).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),vl()},rightFunc:()=>{}})}catch(v){ne.error(n("gameSave.dialogs.import.error"),v)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:hr.Options_main_content_half,children:[s&&S.jsx(ipe,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(dr,{title:n("autoSpeed.title"),children:S.jsx(Fi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(St({key:"autoSpeed",value:vr.slow})),Je()},()=>{t(St({key:"autoSpeed",value:vr.normal})),Je()},()=>{t(St({key:"autoSpeed",value:vr.fast})),Je()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(dr,{title:n("language.title"),children:S.jsx(Fi,{currentChecked:e.optionData.language,textList:Object.values(sh),functionList:Object.keys(sh).map(f=>()=>r(na[f]))})},"option7"),S.jsx(dr,{title:n("resetData.title"),children:S.jsx(Fi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Do({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(_G()),Uu()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(yG()),Uu()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(xG()),Uu()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(dr,{title:n("gameSave.title"),children:S.jsx(Fi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:hr.About_title_text,onClick:l,children:S.jsx("span",{className:hr.About_text,children:n("about.title")})})]})]})}const ape="_textPreviewMain_nolr3_1",spe="_textbox_nolr3_8",IC={textPreviewMain:ape,textbox:spe};function YN(){const e=Ee(r=>r.userData.optionData.textboxFont);function t(){return Fd(e).with(Hn.song,()=>'"思源宋体", serif').with(Hn.lxgw,()=>'"LXGW", serif').with(Hn.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function O_(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const upe="_TextBox_EventHandler_ujldp_1",lpe="_TextBox_main_ujldp_9",cpe="_showSoftly_ujldp_1",fpe="_TextBox_textElement_start_ujldp_39",hpe="_TextDelayShow_ujldp_1",dpe="_outer_ujldp_45",ppe="_inner_ujldp_57",vpe="_zhanwei_ujldp_66",mpe="_TextBox_textElement_Settled_ujldp_71",gpe="_TextBox_showName_ujldp_76",ype="_miniAvatarContainer_ujldp_95",_pe="_miniAvatarImg_ujldp_105",xpe="_nameContainer_ujldp_113",bpe="_outerName_ujldp_119",Spe="_innerName_ujldp_130",wpe="_text_ujldp_137",Vt={TextBox_EventHandler:upe,TextBox_main:lpe,showSoftly:cpe,TextBox_textElement_start:fpe,TextDelayShow:hpe,outer:dpe,inner:ppe,zhanwei:vpe,TextBox_textElement_Settled:mpe,TextBox_showName:gpe,miniAvatarContainer:ype,miniAvatarImg:_pe,nameContainer:xpe,outerName:bpe,innerName:Spe,text:wpe};function KN(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:p}=e,g=yR("Stage/TextBox/textbox.scss");$.useEffect(()=>{function m(){[...document.querySelectorAll(".Textelement_start")].forEach(x=>{x.className=g("TextBox_textElement_Settled",Vt.TextBox_textElement_Settled)})}return O.events.textSettle.on(m),()=>{O.events.textSettle.off(m)}},[]);const v=t.map((m,y)=>{let _=y*r,x=n.length;return n!==""&&y>=x&&(_=_-x*r),yS.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Vt.zhanwei,children:[m,S.jsx("span",{className:g("outerName",Vt.outerName),children:m}),d&&S.jsx("span",{className:g("innerName",Vt.innerName),children:m})]})},m+y))},c),S.jsx("div",{className:g("text",Vt.text),style:{fontSize:u,wordBreak:a||e.isFirefox?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:v})]})})}const ZN=navigator.userAgent,Epe=/firefox/i.test(ZN),Tpe=/^((?!chrome|android).)*safari/i.test(ZN),Cpe=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const y=()=>{const b=window.innerHeight,w=window.innerWidth,T=b/1440,R=w/2560,A=w/1440,P=b/2560;[T,R,A,P].forEach(D=>{D<=.2?t(!1):t(!0)})};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[]);const r=Ee(y=>y.stage),n=Ee(y=>y.userData),i=wx(n.optionData.textSpeed),o=Sk(n.optionData.textSpeed);let a=O_(n.optionData.textSize)+"%";const s=YN(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=O_(r.showTextSize)+"%",l=r.showTextSize);const c=Fd(n.optionData.textSize).with(_n.small,()=>3).with(_n.medium,()=>2).with(_n.large,()=>2).default(()=>2),f=Vb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,p=r.currentDialogKey,g=r.miniAvatar,v=n.optionData.textboxOpacity,m=KN;return S.jsx(m,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:p,isSafari:Tpe,isFirefox:Epe,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:v})};function NC(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function Vb(e,t,r){const a=e.split("|").map(s=>Ape(s)).map(s=>{const u=[];return s.forEach((l,c)=>{Fd(l.type).with("SegmentType.String",()=>{const f=Ope(l.value);u.push(...f)}).endsWith("SegmentType.Link",()=>{const f=l.value,h=S.jsxs("ruby",{children:[f.text,S.jsx("rt",{children:f.link})]},c+f.text);u.push(h)})}),u}).slice(0,r?void 0:t).reduce((s,u,l)=>[...s,...u,S.jsx("br",{},`br-${l}`)],[]);return a.pop(),a}function Ope(e){if(!e)return[];const t=[];let r="",n=NC(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(NC(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Ape(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const Ppe=e=>{const t=kr("menu.options.pages.display.options."),r=Ee(m=>m.userData),i=Ee(m=>m.stage).bgName,o=wx(r.optionData.textSpeed),a=Sk(r.optionData.textSpeed),s=r.optionData.textboxOpacity,u=O_(r.optionData.textSize)+"%",l=YN(),c=navigator.userAgent,f=/firefox/i.test(c),h=/^((?!chrome|android).)*safari/i.test(c),d=t("textPreview.text"),p=Vb(d,3),g=KN,v={textArray:p,isText:!0,textDelay:o,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:u,currentDialogKey:"",isSafari:h,isFirefox:f,miniAvatar:"",textDuration:a,font:l,textSizeState:u,lineLimit:3,isUseStroke:!0,textboxOpacity:s};return S.jsx("div",{className:IC.textPreviewMain,style:{background:i?`bottom / cover no-repeat url(${i})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:IC.textbox,children:S.jsx(g,{...v})},`previewTextbox-${o}`)})};const Ea=e=>{const{playSeEnter:t}=_r();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function kpe(){const e=Ee(n=>n.userData),t=lr(),r=kr("menu.options.pages.display.options.");return S.jsxs("div",{className:hr.Options_main_content_half,children:[S.jsx(dr,{title:r("textSpeed.title"),children:S.jsx(Fi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(St({key:"textSpeed",value:vr.slow})),Je()},()=>{t(St({key:"textSpeed",value:vr.normal})),Je()},()=>{t(St({key:"textSpeed",value:vr.fast})),Je()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(dr,{title:r("textSize.title"),children:S.jsx(Fi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(St({key:"textSize",value:_n.small})),Je()},()=>{t(St({key:"textSize",value:_n.medium})),Je()},()=>{t(St({key:"textSize",value:_n.large})),Je()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(dr,{title:r("textFont.title"),children:S.jsx(Fi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(St({key:"textboxFont",value:Hn.song})),Je()},()=>{t(St({key:"textboxFont",value:Hn.hei})),Je()},()=>{t(St({key:"textboxFont",value:Hn.lxgw})),Je()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(dr,{title:r("textboxOpacity.title"),children:S.jsx(Ea,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(St({key:"textboxOpacity",value:Number(i)})),Je()}})},"textboxOpacity"),S.jsx(dr,{full:!0,title:r("textPreview.title"),children:S.jsx(Ppe,{})},"textPreview")]})}function Rpe(){const e=Ee(n=>n.userData),t=lr(),r=kr("menu.options.pages.sound.options.");return S.jsxs("div",{className:hr.Options_main_content_half,children:[S.jsx(dr,{title:r("volumeMain.title"),children:S.jsx(Ea,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(St({key:"volumeMain",value:Number(i)})),Je()}})},"option4"),S.jsx(dr,{title:r("vocalVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"vocalVolume",value:Number(i)})),Je()}})},"option5"),S.jsx(dr,{title:r("bgmVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"bgmVolume",value:Number(i)})),Je()}})},"option6"),S.jsx(dr,{title:r("seVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"seVolume",value:Number(i)})),Je()}})},"option7"),S.jsx(dr,{title:r("uiSeVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"uiSeVolume",value:Number(i)})),Je()}})},"option8"),S.jsx(dr,{title:r("voiceOption.title"),children:S.jsx(Fi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(St({key:"voiceInterruption",value:cl.yes})),Je()},()=>{t(St({key:"voiceInterruption",value:cl.no})),Je()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const Ipe=()=>{const{playSeEnter:e,playSeSwitch:t}=_r(),r=wn(0);$.useEffect(vl,[]);function n(o){return o===r.value?hr.Options_page_button+" "+hr.Options_page_button_active:hr.Options_page_button}const i=kr("menu.options.");return S.jsxs("div",{className:hr.Options_main,children:[S.jsx("div",{className:hr.Options_top,children:S.jsx("div",{className:hr.Options_title,children:S.jsx("div",{className:hr.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:hr.Options_page_container,children:[S.jsxs("div",{className:hr.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:hr.Options_main_content,children:[r.value===1&&S.jsx(kpe,{}),r.value===0&&S.jsx(ope,{}),r.value===2&&S.jsx(Rpe,{})]})]})]})},Npe=()=>{const e=Ee(r=>r.GUI);let t;switch(e.currentMenuTag){case Ke.Save:t=S.jsx(Cde,{});break;case Ke.Load:t=S.jsx(Ode,{});break;case Ke.Option:t=S.jsx(Ipe,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:AC.Menu_main,children:[S.jsx("div",{className:AC.Menu_TagContent,children:t}),S.jsx(Yhe,{})]})})},Lpe="_MainStage_main_9enex_1",Mpe="_MainStage_main_container_9enex_10",Dpe="_MainStage_bgContainer_9enex_17",Fpe="_MainStage_showBgSoftly_9enex_1",Bpe="_MainStage_bgContainer_Settled_9enex_27",jpe="_MainStage_oldBgContainer_9enex_37",$pe="_MainStage_oldBgFadeout_9enex_1",Upe="_MainStage_oldBgContainer_Settled_9enex_47",Gpe="_pixiContainer_9enex_72",zpe="_chooseContainer_9enex_77",Om={MainStage_main:Lpe,MainStage_main_container:Mpe,MainStage_bgContainer:Dpe,MainStage_showBgSoftly:Fpe,MainStage_bgContainer_Settled:Bpe,MainStage_oldBgContainer:jpe,MainStage_oldBgFadeout:$pe,MainStage_oldBgContainer_Settled:Upe,pixiContainer:Gpe,chooseContainer:zpe},Hpe=()=>{var g;const e=Ee(v=>v.stage),t=Ee(v=>v.GUI.titleBgm),r=Ee(v=>v.GUI.showTitle),n=Ee(v=>v.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=Ee(v=>v.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),p=(v,m,y)=>{y>=0?v.volume=0:v.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{v.volume+x>=m?v.volume=m:v.volume+x<=0?(v.volume=0,B.dispatch(we({key:"bgm",value:{src:"",enter:0,volume:100}}))):(v.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const v=document.getElementById("currentBgm");v&&(s===0?v.volume=a:p(v,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const v=document.getElementById("currentVocal");v&&(v.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const v=document.createElement("audio");v.src=u,v.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),v.volume=isNaN(l)?i/100:l/100):v.volume=c,v.play(),v.addEventListener("ended",()=>{v.remove()}),B.dispatch(we({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},Vpe=()=>{const e=Ee(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:Rn.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},Wpe="_TextBox_EventHandler_449dq_2",qpe="_TextBox_main_449dq_10",Xpe="_showSoftly_449dq_1",Ype="_TextBox_textElement_449dq_38",Kpe="_TextBox_textElement_start_449dq_43",Zpe="_TextDelayShow_449dq_1",Qpe="_TextBox_textElement_Settled_449dq_48",Jpe="_TextBox_showName_449dq_52",eve="_miniAvatarContainer_449dq_68",tve="_miniAvatarImg_449dq_76",Am={TextBox_EventHandler:Wpe,TextBox_main:qpe,showSoftly:Xpe,TextBox_textElement:Ype,TextBox_textElement_start:Kpe,TextDelayShow:Zpe,TextBox_textElement_Settled:Qpe,TextBox_showName:Jpe,miniAvatarContainer:eve,miniAvatarImg:tve},rve=()=>{const e=Ee(a=>a.stage),t=Ee(a=>a.userData);$.useEffect(()=>{});const r=SG.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{e()},[])}function Fs(e){$.useEffect(()=>function(){e()},[])}function nve(e){$.useEffect(()=>{e()})}const ive="_Backlog_main_zwyao_2",ove="_backlog_soft_in_zwyao_1",ave="_Backlog_main_out_zwyao_15",sve="_backlog_soft_out_zwyao_1",uve="_Backlog_main_out_IndexHide_zwyao_28",lve="_Backlog_main_DisableScroll_zwyao_32",cve="_backlog_top_zwyao_36",fve="_backlog_top_icon_zwyao_42",hve="_backlog_icon_softin_zwyao_1",dve="_backlog_title_zwyao_62",pve="_backlog_content_zwyao_72",vve="_backlog_item_zwyao_84",mve="_backlog_item_in_zwyao_1",gve="_backlog_item_out_zwyao_94",yve="_backlog_func_area_zwyao_104",_ve="_backlog_item_content_name_zwyao_113",xve="_backlog_item_content_zwyao_113",bve="_backlog_item_button_list_zwyao_137",Sve="_backlog_item_button_element_zwyao_144",wve="_backlog_item_content_text_zwyao_157",qt={Backlog_main:ive,backlog_soft_in:ove,Backlog_main_out:ave,backlog_soft_out:sve,Backlog_main_out_IndexHide:uve,Backlog_main_DisableScroll:lve,backlog_top:cve,backlog_top_icon:fve,backlog_icon_softin:hve,backlog_title:dve,backlog_content:pve,backlog_item:vve,backlog_item_in:mve,backlog_item_out:gve,backlog_func_area:yve,backlog_item_content_name:_ve,backlog_item_content:xve,backlog_item_button_list:bve,backlog_item_button_element:Sve,backlog_item_content_text:wve};var Eve=En,Tve=function(){return Eve.Date.now()},Cve=Tve,Ove=/\s/;function Ave(e){for(var t=e.length;t--&&Ove.test(e.charAt(t)););return t}var Pve=Ave,kve=Pve,Rve=/^\s+/;function Ive(e){return e&&e.slice(0,kve(e)+1).replace(Rve,"")}var Nve=Ive,Lve=Nve,LC=Qn,Mve=pd,MC=0/0,Dve=/^[-+]0x[0-9a-f]+$/i,Fve=/^0b[01]+$/i,Bve=/^0o[0-7]+$/i,jve=parseInt;function $ve(e){if(typeof e=="number")return e;if(Mve(e))return MC;if(LC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=LC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lve(e);var r=Fve.test(e);return r||Bve.test(e)?jve(e.slice(2),r?2:8):Dve.test(e)?MC:+e}var Uve=$ve,Gve=Qn,Pm=Cve,DC=Uve,zve="Expected a function",Hve=Math.max,Vve=Math.min;function Wve(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(zve);t=DC(t)||0,Gve(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Hve(DC(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function d(w){var T=n,R=i;return n=i=void 0,l=w,a=e.apply(R,T),a}function p(w){return l=w,s=setTimeout(m,t),c?d(w):a}function g(w){var T=w-u,R=w-l,A=t-T;return f?Vve(A,o-R):A}function v(w){var T=w-u,R=w-l;return u===void 0||T>=t||T<0||f&&R>=o}function m(){var w=Pm();if(v(w))return y(w);s=setTimeout(m,g(w))}function y(w){return s=void 0,h&&n?d(w):(n=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function x(){return s===void 0?a:y(Pm())}function b(){var w=Pm(),T=v(w);if(n=arguments,i=this,u=w,T){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(m,t),d(u)}return s===void 0&&(s=setTimeout(m,t)),a}return b.cancel=_,b.flush=x,b}var qve=Wve,Xve=qve,Yve=Qn,Kve="Expected a function";function Zve(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Kve);return Yve(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Xve(e,t,{leading:n,maxWait:t,trailing:i})}var Qve=Zve;const Jve=Nr(Qve);function eme(e){tme(),nme(),ome(),ime(),ame(),fme()}function tme(){const e=Ms(u=>u.GUI),t=ep(),r=Jd(e),n=QN(e),i=sme(e),o=lme(e),a=ume(e),s=$.useCallback(u=>i()?(t("showGlobalDialog",!1),u.preventDefault(),!1):(a()&&t("showExtra",!1),r()&&t("showTextBox",!e.current.showTextBox),n()&&(t("showBacklog",!1),t("showTextBox",!0)),o()&&t("showMenuPanel",!1),u.preventDefault(),!1),[]);Ds(()=>{document.addEventListener("contextmenu",s)}),Fs(()=>{document.removeEventListener("contextmenu",s)})}let rme=setTimeout(()=>{},0);function nme(){const e=Ms(u=>u.GUI),t=ep(),r=Jd(e),n=QN(e),i=JN(e),o=$.useCallback(Jve(()=>{Ht()},100),[]),a=$.useRef(0),s=$.useCallback(u=>{if(i())return;const l=u.wheelDelta&&(u.wheelDelta>0?"up":"down")||u.detail&&(u.detail<0?"up":"down")||"down",c=u.ctrlKey,f=document.querySelector(`.${qt.backlog_content}`);if(r()&&l==="up"&&!c)t("showBacklog",!0),t("showTextBox",!1);else if(n()&&l==="down"&&!c){if(f){let h=hme(f),d=new Date().getTime();h&&d-a.current>100&&(t("showBacklog",!1),t("showTextBox",!0)),a.current=d}}else r()&&l==="down"&&!c&&(clearTimeout(rme),O.gameplay.isFast=!0,setTimeout(()=>{O.gameplay.isFast=!1},150),o())},[]);Ds(()=>{document.addEventListener("wheel",s)}),Fs(()=>{document.removeEventListener("wheel",s)})}function ime(){const e=$.useCallback(a=>!a.isComposing&&!a.defaultPrevented&&a.code==="Escape",[]),t=Ms(a=>a.GUI),r=$.useCallback(()=>t.current.showTitle,[t]),n=JN(t),i=ep(),o=$.useCallback(a=>{!e(a)||r()||(n()?i("showPanicOverlay",!1):(i("showPanicOverlay",!0),zb()))},[]);Ds(()=>{document.addEventListener("keyup",o)}),Fs(()=>{document.removeEventListener("keyup",o)})}function ome(){const e=Ms(a=>a.GUI),t=Jd(e),r=$.useCallback(a=>a.keyCode===17,[]),n=$.useCallback(a=>{r(a)&&t()&&VN()},[]),i=$.useCallback(a=>{r(a)&&t()&&Ka()},[]),o=$.useCallback(a=>{Ka()},[]);Ds(()=>{document.addEventListener("keydown",n),document.addEventListener("keyup",i),window.addEventListener("blur",o)}),Fs(()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",i),window.removeEventListener("blur",o)}),nve(()=>{t()||Ka()})}function ame(){const e=cme(),t=$.useCallback(async r=>{e()&&await tJ()},[]);Ds(()=>{window.addEventListener("beforeunload",t)}),Fs(()=>{window.removeEventListener("beforeunload",t)})}function Jd(e){return $.useCallback(()=>!e.current.showTitle&&!e.current.showMenuPanel&&!e.current.showBacklog&&!e.current.showPanicOverlay,[e])}function QN(e){return $.useCallback(()=>e.current.showBacklog,[e])}function sme(e){return $.useCallback(()=>e.current.showGlobalDialog,[e])}function ume(e){return $.useCallback(()=>e.current.showExtra,[e])}function JN(e){return $.useCallback(()=>e.current.showPanicOverlay,[e])}function lme(e){return $.useCallback(()=>[Ke.Save,Ke.Load,Ke.Option].includes(e.current.currentMenuTag),[e])}function cme(){return $.useCallback(()=>O.sceneManager.sceneData.currentSentenceId!==0,[O.sceneManager.sceneData])}function ep(){const e=lr();return(t,r)=>{e(Me({component:t,visibility:r}))}}function fme(){const e=Ms(u=>u.GUI),t=Jd(e),r=ep(),n=$.useRef(!1),i=$.useCallback(u=>u.keyCode===32||u.keyCode===13,[]),o=$.useCallback(u=>{if(i(u)&&t()&&!n.current){if(!e.current.showTextBox){r("showTextBox",!0);return}zb(),Ht(),n.current=!0}},[]),a=$.useCallback(u=>{i(u)&&t()&&(n.current=!1)},[]),s=$.useCallback(u=>{n.current=!1},[]);Ds(()=>{document.addEventListener("keydown",o),document.addEventListener("keyup",a),document.addEventListener("blur",s)}),Fs(()=>{document.removeEventListener("keydown",o),document.removeEventListener("keyup",a),document.removeEventListener("blur",s)})}function hme(e){const{scrollTop:t,clientHeight:r,scrollHeight:n}=e;return t===0}function dme(e){const t=e.bgName;$.useEffect(()=>{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&FC(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),Ql(t),ne.debug("重设背景");const{duration:s,animation:u}=ki("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&FC(a)}},[t])}function FC(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=ki("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function pme(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==r&&si(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&Zc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:v,animation:m}=ki(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除中立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==r&&si(p,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==t&&si(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&Zc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:v,animation:m}=ki(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除左立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==t&&si(p,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==n&&si(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&Zc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:v,animation:m}=ki(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==n&&si(p,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,p;for(const g of i){const v=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(v);if(y){if(y.sourceUrl!==g.name){si(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(v,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=ki(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(v,g.name,g.basePosition),/.json$/.test(g.name)&&Zc(v,g.name,g.basePosition,((f=o.find(w=>w.target===v))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===v))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=ki(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(v);y&&y.sourceUrl!==g.name&&si(y,m,e.effects)}}const s=(p=O.gameplay.pixiStage)==null?void 0:p.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const v=g.key;if(i.findIndex(y=>y.key===v)<0){const y=`${g.key}-softin`;si(g,y,e.effects)}}}},[i])}function si(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=ki(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function Zc(...e){}function vme(e){const t=e.effects;setTimeout(()=>{mme(t)},10)}function mme(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,BC(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,BC(sx))}}}}function BC(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function gme(){const e=Ee(t=>t.stage);return dme(e),pme(e),vme(e),S.jsx("div",{style:{display:"none"}})}const yme="_introContainer_119k8_1",_me={introContainer:yme};function xme(){return S.jsx("div",{className:_me.introContainer,id:"introContainer"})}function jC(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(Me({component:"controlsVisibility",visibility:!1}))},1e3)):bme(e,r,n)}const Eme=()=>{const e=Ee(n=>n.stage),t=Ee(n=>n.GUI),r=lr();return eme(),S.jsxs("div",{className:Om.MainStage_main,children:[S.jsx(Vpe,{}),S.jsx(gme,{}),S.jsx("div",{id:"pixiContianer",className:Om.pixiContainer,style:{zIndex:Ub?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:Om.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx(Cpe,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(rve,{}),S.jsx(Hpe,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(Me({component:"showTextBox",visibility:!0}));return}zb(),Ht()},onDoubleClick:()=>{O.events.fullscreenDbClick.emit()},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&wme(n,e,t,r)}),S.jsx(xme,{})]})},Tme=()=>{const e=kr("gaming."),t=2.5,{i18n:r}=jd(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=_r(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=Ee(m=>m.GUI),f=Ee(m=>m.stage),h=lr(),d=(m,y)=>{h(Me({component:m,visibility:y}))},p=m=>{h(Bo(m))},g=Ee(m=>m.userData.saveData);let v=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];v=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(phe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(vhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(nhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(mhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{zN(),i()},onMouseEnter:n,children:[S.jsx(jN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{qN(),i()},onMouseEnter:n,children:[S.jsx(ohe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{Gg(0),i()},onMouseEnter:n,children:[S.jsx(ihe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:v})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{Kk(0),i()},onMouseEnter:n,children:[S.jsx(ahe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:v})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ke.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx($N,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ke.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(FN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ke.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(UN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Do({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Hb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(BN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{Xhe(),i()},onMouseEnter:n,children:c.showControls?S.jsx(fhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(_he,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},Cme=()=>{var h,d;const e=kr("gaming."),{playSeEnter:t,playSeClick:r}=_r(),n=Ee(p=>p.GUI),i=lr(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let p=[];for(let g=0;gb==="
"?S.jsx("br",{},`br${w}`):b),x=S.jsxs("div",{className:qt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:qt.backlog_func_area,children:[S.jsxs("div",{className:qt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),JQ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(ghe,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),v.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=B.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(xhe,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:qt.backlog_item_content_name,children:v.currentStageState.showName})]}),S.jsx("div",{className:qt.backlog_item_content,children:S.jsx("span",{className:qt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:v.currentStageState.vocal})]},"backlogItem"+v.currentStageState.showText+v.saveScene.currentSentenceId);p.unshift(x)}return p},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` + ${n.showBacklog?qt.Backlog_main:qt.Backlog_main_out} + ${a?qt.Backlog_main_out_IndexHide:""} + `,children:[S.jsxs("div",{className:qt.backlog_top,children:[S.jsx(DN,{className:qt.backlog_top_icon,onClick:()=>{r(),i(Me({component:"showBacklog",visibility:!1})),i(Me({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:qt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${qt.backlog_content} ${u?qt.Backlog_main_DisableScroll:""}`,children:f})]})})};function Ome(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=Ee(g=>g.userData.appreciationData),i="Title_BGM",o=wn(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,v)=>{g.url===r&&(a=g.name,s=v)});const f=wn("");a!==i&&a!==f.value&&f.set(a);const h=lr();function d(g){const v=n.bgm[g];f.set(v.name),h(hh({asset:"titleBgm",value:v.url}))}const p=n.bgm.map((g,v)=>{let m=ot.bgmElement;return g.name===f.value&&(m=m+" "+ot.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(hh({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${v*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:ot.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:ot.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(uhe,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(jN,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(she,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(yhe,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:ot.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:ot.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(dhe,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:ot.bgmListContainer,children:[" ",p]})]})}function Jme(e){const t=wn(!1),{playSeEnter:r,playSeClick:n}=_r();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:ot.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:ot.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:ot.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function ege(){const t=Ee(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=wn(1),{playSeEnter:i,playSeClick:o}=_r(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:ot.cgMain,children:[S.jsx("div",{className:ot.cgShowDiv,children:S.jsx("div",{className:ot.cgShowDivWarpper,children:u})}),S.jsx("div",{className:ot.cgContainer,children:a})]})}function tge(e,t){return Math.round(Math.random()*(t-e))+e}function rge(){const{playSeClick:e}=_r(),t=Ee(i=>i.GUI.showExtra),r=lr(),n=kr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:ot.extra,children:[S.jsxs("div",{className:ot.extra_top,children:[S.jsx(DN,{className:ot.extra_top_icon,onClick:()=>{r(Me({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:ot.extra_title,children:n("title")})]}),S.jsxs("div",{className:ot.mainContainer,children:[S.jsx(ege,{}),S.jsx(Qme,{})]})]})})}const nge="_tag_yghix_2",ige="_container_yghix_17",oge="_showContainer_yghix_1",age="_singleButton_yghix_33",sge="_button_text_yghix_37",Lt={tag:nge,container:ige,showContainer:oge,singleButton:age,button_text:sge},uge=()=>{const e=wn(!1),t=Ee(o=>o.stage),r=lr(),n=(o,a)=>{r(Me({component:o,visibility:a}))},i=o=>{r(Bo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Lt.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(lhe,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:Lt.container,children:[S.jsx("span",{className:Lt.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:Lt.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:Lt.singleButton,onClick:()=>{zN(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:Lt.singleButton,onClick:()=>{qN(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ke.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ke.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ke.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),Hb()},children:S.jsx("span",{className:Lt.button_text,children:"标题 / TITLE"})})]})]})})},lge="_devPanelMain_11x6i_1",cge="_devPanelOpener_11x6i_13",$C={devPanelMain:lge,devPanelOpener:cge};function fge(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function hge(){function e(){return!!window.location.hash.match(/dev/)}const t=wn(!1),r=wn(window.location.hash),n=Ee(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=jd(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>fge(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:$C.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:$C.devPanelOpener,children:"Open Dev Panel"})]})}const dge="_trans_8uz61_2",pge="_langWrapper_8uz61_10",vge="_lang_8uz61_10",mge="_langSelect_8uz61_29",gge="_langSelectButton_8uz61_35",du={trans:dge,langWrapper:pge,lang:vge,langSelect:mge,langSelectButton:gge};function yge(){const e=XN(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:du.trans,children:S.jsxs("div",{className:du.langWrapper,children:[S.jsx("div",{className:du.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:du.langSelect,children:Object.keys(sh).map(i=>S.jsx("div",{className:du.langSelectButton,onClick:()=>n(na[i]),children:sh[i]},i))})]})})})}const _ge="_panic_overlay_main_1ysz4_1",xge={panic_overlay_main:_ge},bge="_yoozle_blue_1r48o_1",Sge="_yoozle_red_1r48o_5",wge="_yoozle_yellow_1r48o_9",Ege="_yoozle_green_1r48o_13",Tge="_yoozle_e_rotate_1r48o_17",Cge="_yoozle_container_1r48o_22",Oge="_yoozle_title_1r48o_28",Age="_yoozle_search_1r48o_37",Pge="_yoozle_search_bar_1r48o_44",kge="_yoozle_search_buttons_1r48o_51",Rge="_yoozle_button_1r48o_55",br={yoozle_blue:bge,yoozle_red:Sge,yoozle_yellow:wge,yoozle_green:Ege,yoozle_e_rotate:Tge,yoozle_container:Cge,yoozle_title:Oge,yoozle_search:Age,yoozle_search_bar:Pge,yoozle_search_buttons:kge,yoozle_button:Rge},Ige=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:br.yoozle_container,children:[S.jsx("div",{className:br.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:br.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:br.yoozle_red,children:"o"}),S.jsx("span",{className:br.yoozle_yellow,children:"o"}),S.jsx("span",{className:br.yoozle_blue,children:"z"}),S.jsx("span",{className:br.yoozle_green,children:"l"}),S.jsx("span",{className:`${br.yoozle_red} ${br.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:br.yoozle_search,children:[S.jsx("input",{className:br.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:br.yoozle_search_buttons,children:[S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),Nge=()=>{const e=Ee(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),Wn.createPortal(S.jsx("div",{className:t?xge.panic_overlay_main:"",children:t&&S.jsx(Ige,{})}),document.querySelector("div#panic-overlay"))};function Lge(){return $.useEffect(()=>{$fe()},[]),S.jsx("div",{className:"App",children:S.jsxs(hZ,{store:B,children:[S.jsx(yge,{}),S.jsx(Eme,{}),S.jsx(Tme,{}),S.jsx(uge,{}),S.jsx(Cme,{}),S.jsx(Cee,{}),S.jsx(Ree,{}),S.jsx(rge,{}),S.jsx(Npe,{}),S.jsx(Vhe,{}),S.jsx(Nge,{}),S.jsx(hge,{})]})})}function Ki(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A_(e,t){return A_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},A_(e,t)}function tp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A_(e,t)}function nc(e,t){if(t&&($t(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ki(e)}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kn(e)}function Mge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dge(e){return oR(e)||Mge(e)||aR(e)||sR()}function UC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function GC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.init(t,r)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||Fge,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function HC(e,t,r){var n=Wb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function $ge(e,t,r,n){var i=Wb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function Ah(e,t){var r=Wb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Uge(e,t,r){var n=Ah(e,r);return n!==void 0?n:Ah(t,r)}function eL(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):eL(e[n],t[n],r):e[n]=t[n]);return e}function _a(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Gge={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function zge(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Gge[t]}):e}var rp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Hge=[" ",",","?","!",";"];function Vge(e,t,r){t=t||"",r=r||"";var n=Hge.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Ph(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Ph(u,l,r):void 0}i=i[n[o]]}return i}}function VC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Xge=function(e){tp(r,e);var t=Wge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Tn(this,r),i=t.call(this),rp&&uo.call(Ki(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Cn(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=Ah(this.data,c);return f||!l||typeof a!="string"?f:Ph(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),HC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=Ah(this.data,c)||{};s?eL(f,a,u):f=Qc(Qc({},f),a),HC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Qc(Qc({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(uo),tL={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function WC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var qC={},XC=function(e){tp(r,e);var t=Yge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Tn(this,r),i=t.call(this),rp&&uo.call(Ki(i)),jge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Ki(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=$n.create("translator"),i}return Cn(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Vge(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if($t(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),$t(o)==="object"&&(o=er({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],p=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var v=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(v).concat(f),usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:"".concat(d).concat(v).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(R&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,er(er({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var D=b==="[object Array]",F=D?[]:{},H=D?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);F[re]=this.translate(z,er(er({},o),{joinArrays:!1,ns:h})),F[re]===z&&(F[re]=y[re])}y=F}}else if(R&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,le=!1,$e=o.count!==void 0&&typeof o.count!="string",me=r.hasDefaultValue(o),Q=$e?this.pluralResolver.getSuffix(p,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&me&&(q=!0,y=L),this.isValidLookup(y)||(le=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&le?void 0:y,ae=me&&L!==y&&this.options.updateMissing;if(le||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",p,d,f,ae?L:y),l){var ge=this.resolve(f,er(er({},o),{},{keySeparator:!1}));ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var xe=[],be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(var Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),p=d.key;u=p;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var v=a.count!==void 0&&typeof a.count!="string",m=v&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!qC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(qC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[p];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,p,b,x,a);else{var T;v&&(T=o.pluralResolver.getSuffix(b,a.count,a));var R="".concat(o.options.pluralSeparator,"zero");if(v&&(w.push(p+T),m&&w.push(p+R)),y){var A="".concat(p).concat(o.options.contextSeparator).concat(a.context);w.push(A),v&&(w.push(A+T),m&&w.push(A+R))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(uo);function Rm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var YC=function(){function e(t){Tn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$n.create("languageUtils")}return Cn(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Rm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),Zge=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Qge={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},Jge=["v1","v2","v3"],KC={zero:0,one:1,two:2,few:3,many:4,other:5};function eye(){var e={};return Zge.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:Qge[t.fc]}})}),e}var tye=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.languageUtils=t,this.options=r,this.logger=$n.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=eye()}return Cn(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return KC[a]-KC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!Jge.includes(this.options.compatibilityJSON)}}]),e}();function ZC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Uge(e,t,r);return!o&&i&&typeof r=="string"&&(o=Ph(e,r,n),o===void 0&&(o=Ph(t,r,n))),o}var rye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return Cn(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:zge,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?_a(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?_a(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?_a(n.nestingPrefix):n.nestingPrefixEscaped||_a("$t("),this.nestingSuffix=n.nestingSuffix?_a(n.nestingSuffix):n.nestingSuffixEscaped||_a(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(v){return v.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=QC(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,pn(pn(pn({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(QC(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,pn(pn(pn({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(v){for(l=0;s=v.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(p){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=zC(u));var _=v.safeValue(u);if(r=r.replace(s[0],_),p?(v.regex.lastIndex+=u.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,p){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var v=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(v[1]);d=v[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),p&&(u=pn(pn({},p),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=pn({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=zC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,p){return i.format(d,p,o.lng,pn(pn({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function JC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ui(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=Dge(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function xa(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var iye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("formatter"),this.options=t,this.formats={number:xa(function(r,n){var i=new Intl.NumberFormat(r,ui({},n));return function(o){return i.format(o)}}),currency:xa(function(r,n){var i=new Intl.NumberFormat(r,ui(ui({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:xa(function(r,n){var i=new Intl.DateTimeFormat(r,ui({},n));return function(o){return i.format(o)}}),relativetime:xa(function(r,n){var i=new Intl.RelativeTimeFormat(r,ui({},n));return function(o){return i.format(o,n.range||"day")}}),list:xa(function(r,n){var i=new Intl.ListFormat(r,ui({},n));return function(o){return i.format(o)}})},this.init(t)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=xa(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=nye(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var p=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=g.locale||g.lng||a.locale||a.lng||i;p=o.formats[h](l,v,ui(ui(ui({},d),a),g))}catch(m){o.logger.warn(m)}return p}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tO(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var uye=function(e){tp(r,e);var t=oye(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Tn(this,r),a=t.call(this),rp&&uo.call(Ki(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=$n.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Cn(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var p=!0;o.forEach(function(g){var v="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[v]=2:u.state[v]<0||(u.state[v]===1?c[v]===void 0&&(c[v]=!0):(u.state[v]=1,p=!1,c[v]===void 0&&(c[v]=!0),l[v]===void 0&&(l[v]=!0),h[g]===void 0&&(h[g]=!0)))}),p||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){$ge(f.loaded,[u],l),sye(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(p){c[h][p]===void 0&&(c[h][p]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,v){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&v&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=tO(tO({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(p){return c(null,p)}).catch(c):c(null,d)}catch(p){c(p)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(uo);function rO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if($t(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),$t(t[2])==="object"||$t(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function nO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function iO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jc(){}function fye(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var kh=function(e){tp(r,e);var t=lye(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Tn(this,r),n=t.call(this),rp&&uo.call(Ki(n)),n.options=nO(i),n.services={},n.logger=$n,n.modules={external:[]},fye(Ki(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),nc(n,Ki(n));setTimeout(function(){n.init(i,o)},0)}return n}return Cn(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=rO();this.options=kn(kn(kn({},s),this.options),nO(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=kn(kn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?$n.init(u(this.modules.logger),this.options):$n.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=iye);var c=new YC(this.options);this.store=new Xge(this.options.resources,this.options);var f=this.services;f.logger=$n,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new tye(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new rye(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new uye(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var p=["addResource","addResources","addResourceBundle","removeResourceBundle"];p.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=pu(),v=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jc,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var p=o.services.languageUtils.toResolveHierarchy(d);p.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=pu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Jc),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&tL.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=pu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(p){l(p,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if($t(f)!=="object"){for(var d=arguments.length,p=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,p){var g=o.services.backendConnector.state["".concat(d,"|").concat(p)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=pu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=pu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new YC(rO());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jc,s=kn(kn(kn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=kn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new XC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new kh(e,t)});var cr=kh.createInstance();cr.createInstance=kh.createInstance;cr.createInstance;cr.dir;cr.init;cr.loadResources;cr.reloadResources;cr.use;cr.changeLanguage;cr.getFixedT;cr.t;cr.exists;cr.setDefaultNamespace;cr.hasLoadedNamespace;cr.loadNamespaces;cr.loadLanguages;cr.use(OJ).init({resources:dG||{},lng:na[pG]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));Wn.render(S.jsx(Y.StrictMode,{children:S.jsx(RJ,{children:S.jsx(Lge,{})})}),document.getElementById("root"));export{gr as C,jn as S,de as T,O as W,pye as r}; diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css b/packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css new file mode 100644 index 000000000..8f93722f9 --- /dev/null +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css @@ -0,0 +1 @@ +@charset "UTF-8";@font-face{font-family:思源宋体;src:url(./SourceHanSerifCN-Regular-1e60cc2e.ttf) format("truetype")}@font-face{font-family:LXGW;src:url(./LXGWWenKai-Regular-9375313a.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R-ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{background-color:#000;font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-webkit-user-select:none;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:2560px;height:1440px;overflow:hidden;font-size:160%}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}#ebg{height:100vh;width:100vw;filter:blur(50px);background-position:center;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}.App{height:100%;width:100%;background:rgba(0,0,0,1);overflow:hidden;perspective:0;-webkit-overflow-scrolling:auto}#pixiCanvas{z-index:5}._Title_main_1s27r_2{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_1s27r_9{font-family:思源宋体,serif;display:flex;position:absolute;left:0;min-width:25%;height:100%;justify-content:center;align-items:flex-start;flex-flow:column;transition:background .75s;padding-left:120px}._Title_button_1s27r_9{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:1em 2em;margin:20px 0;transition:all .33s;background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:4px;transform:skew(-10deg);background:linear-gradient(to right,rgba(0,0,0,.3),rgba(0,0,0,.1))}._Title_button_1s27r_9:hover{text-shadow:0 0 10px rgb(255,255,255);padding:1em 6em 1em 3em}._Title_button_text_1s27r_43{font-size:165%;color:transparent;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%);-webkit-background-clip:text;padding:0 .5em;letter-spacing:.2em}._Title_backup_background_1s27r_52{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._Choose_Main_cegqk_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_cegqk_13{font-family:WebgalUI,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_disabled_cegqk_29{font-family:WebgalUI,serif;cursor:not-allowed;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a80;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.5);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_cegqk_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._Choose_Main_4xkm5_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_4xkm5_13{cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#005caf;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._glabalDialog_container_inner_4xkm5_28{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_4xkm5_28{color:#fff;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_4xkm5_47{font-size:300%;letter-spacing:.05em;text-shadow:0 0 10px rgba(255,255,255,.5)}._Choose_item_4xkm5_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #005caf}._button_4xkm5_59{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_4xkm5_59:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}._FullScreenPerform_main_7er8a_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_7er8a_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_7er8a_17{position:absolute;display:block;width:100%;height:100%;z-index:11}@keyframes _slideIn_7er8a_80{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _typing_7er8a_86{0%{width:0;height:0}to{width:100%;height:auto;border-right:1px solid}}@keyframes _blinkCursor_7er8a_1{50%{border-color:transparent}}@keyframes _pixelateAnimation_7er8a_1{0%{filter:none;opacity:0}50%{filter:blur(5px)}to{filter:none;opacity:1}}@keyframes _revealAnimation_7er8a_101{0%{opacity:0;clip-path:polygon(0% 0%,0% 0%,0% 100%,0% 100%)}to{opacity:1;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%)}}._fadeIn_7er8a_74{opacity:0;animation:_intro_showSoftly_7er8a_1 1.5s ease-out forwards;font-family:思源宋体,serif}._slideIn_7er8a_80{opacity:0;animation:_slideIn_7er8a_80 1.5s forwards;font-family:思源宋体,serif}._typingEffect_7er8a_86{display:block;overflow:hidden;white-space:pre-line;width:0;animation:_typing_7er8a_86 1.5s forwards,_blinkCursor_7er8a_1 1s infinite 1.5s;font-family:思源宋体,serif}._pixelateEffect_7er8a_95{opacity:0;animation:_pixelateAnimation_7er8a_1 3s forwards;font-family:思源宋体,serif}._revealAnimation_7er8a_101{opacity:0;animation:_revealAnimation_7er8a_101 3s forwards;font-family:思源宋体,serif}@keyframes _intro_showSoftly_7er8a_1{0%{opacity:0}to{opacity:1}}._videoContainer_7er8a_115{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._Logo_main_1bne2_1{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;animation:_change-img-anim_1bne2_1 5s forwards;background-size:cover;z-index:14}@keyframes _change-img-anim_1bne2_1{0%{opacity:0}35%{opacity:1}65%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Logo_Back_1bne2_32{width:100%;height:100%;position:absolute;top:0;left:0;right:0;opacity:1;bottom:0;background-size:cover;z-index:14;background:white}._animationActive_1bne2_46{animation:_fadeout_1bne2_1 5s forwards}@keyframes _fadeout_1bne2_1{0%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_1c9ky_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;padding:0 55px}._MenuPanel_button_1c9ky_10{padding:.25em 15px 0;margin-right:15px;display:flex;justify-content:center;font-size:200%;text-align:center;border-radius:6px;min-width:12.5%;cursor:pointer;color:#7b90a9;background:rgba(0,0,0,0);overflow:hidden;transition:text-shadow .7s,background-color .7s}._MenuPanel_button_1c9ky_10:last-child{margin-right:0}._MenuPanel_button_1c9ky_10:hover{background-color:#f5f6f726}._MenuPanel_button_1c9ky_10:last-child{border-right:none}._MenuPanel_button_icon_1c9ky_38{transform:translateY(.125em);padding:0 .15em 0 0;margin:0 .15em 0 0}._MenuPanel_button_hl_1c9ky_44{background-color:#f5f6f759!important}._main_15mmi_1{position:absolute;bottom:20px;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;height:70px;right:20px;border-radius:35px;padding:.15em 1.75em;font-size:80%}._button_15mmi_16{position:relative;top:2px;padding:0;filter:drop-shadow(1px 1px 5px rgb(0,0,0))}._button_text_15mmi_23{position:relative;bottom:8px;color:#fff;text-shadow:1px 1px 5px rgb(0,0,0);padding-left:3px}._button_on_15mmi_31{height:100%;display:inline-block;font-size:150%;padding:.25em .3em 0 .15em;transition:background-color .5s;background:rgba(255,255,255,.3);border-radius:4px;margin:0 .1em}._singleButton_15mmi_42{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.3em .3em 0 .15em;transition:background-color .5s;cursor:pointer;border-radius:4px;margin:0 .1em;position:relative}._singleButton_15mmi_42:hover{background-color:#ffffff4d}._fastSlPreview_15mmi_59{position:absolute;top:-250px;right:0;background:linear-gradient(315deg,rgba(253,251,251,.9) 0%,rgba(235,237,238,.85) 100%);width:900px;height:230px;color:#005caf;border-radius:5px;display:none;animation:_fastSlEnter_15mmi_1 .33s;transition:opacity .33s}._fastsave_15mmi_73:hover ._fastSPreview_15mmi_73,._fastload_15mmi_77:hover ._fastLPreview_15mmi_77{display:block}@keyframes _fastSlEnter_15mmi_1{0%{opacity:0}to{opacity:1}}._slPreviewMain_15mmi_89{padding:.5em;display:flex;box-sizing:border-box;height:100%;width:100%}._imgContainer_15mmi_97{display:flex;overflow:hidden;border-radius:5px;flex-shrink:0;height:100%}._textContainer_15mmi_105{overflow:hidden;padding:0 0 0 .5em}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Save_Load_main_a3o8b_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_a3o8b_9{height:10%;width:100%;display:flex;animation:_Elements_in_a3o8b_1 ease-out 1s forwards;justify-content:center}._Save_Load_title_a3o8b_17{font-family:思源宋体,serif;letter-spacing:.1em;width:auto;font-size:500%;min-width:350px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:absolute;left:20px;top:0;z-index:-1;opacity:.2;transform:translateY(-10px)}._Save_title_text_a3o8b_35{font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_a3o8b_43{font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_a3o8b_51{height:100%;display:flex}._Save_Load_top_button_a3o8b_51{cursor:pointer;font-size:200%;width:2.05em;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_a3o8b_69{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_a3o8b_51:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_a3o8b_80{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_a3o8b_51:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_a3o8b_93{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_a3o8b_93:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_a3o8b_106{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_a3o8b_115{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_a3o8b_1 1s ease-out forwards,_Elements_in_transform_a3o8b_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_a3o8b_115:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_a3o8b_131{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_a3o8b_138{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_a3o8b_147{background-color:#51a8dd}._Save_Load_content_element_top_date_a3o8b_151{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_a3o8b_162{background-color:#005caf}._Save_Load_content_text_a3o8b_166{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_a3o8b_180{padding:.2em .75em}._Save_Load_content_speaker_a3o8b_184{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_a3o8b_193{color:#005caf}._Load_content_text_a3o8b_197{background-color:#005cafbf}._Save_Load_content_miniRen_a3o8b_201{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_a3o8b_208{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_a3o8b_215{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_a3o8b_223{bottom:0;left:0}._Save_Load_content_miniRen_figRight_a3o8b_228{bottom:0;right:0}@keyframes _Elements_in_a3o8b_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_a3o8b_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._Options_main_u5orq_2{position:absolute;cursor:default;height:90%;width:100%}._Options_top_u5orq_9{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_u5orq_16{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_u5orq_25{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Option_title_text_shadow_u5orq_34{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_u5orq_41{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_u5orq_48{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_u5orq_55{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_u5orq_65{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_u5orq_1 ease-out .7s forwards;cursor:pointer}._About_text_u5orq_73{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_u5orq_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_u5orq_92{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_u5orq_98{animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Options_page_button_u5orq_102{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_u5orq_114{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_u5orq_102:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_ujldp_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_ujldp_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_ujldp_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_ujldp_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_ujldp_39{position:relative;animation:_TextDelayShow_ujldp_1 1s ease-out forwards;opacity:0}._outer_ujldp_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_ujldp_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_ujldp_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_ujldp_71{position:relative;opacity:1}._TextBox_showName_ujldp_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_ujldp_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_ujldp_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_ujldp_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_ujldp_113{position:absolute;left:2em;top:-3.5em}._outerName_ujldp_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_ujldp_130{position:absolute;left:0;top:0;z-index:1}._text_ujldp_137{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_1tymt_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_1tymt_14{padding:0;display:flex;height:10%}._extra_top_icon_1tymt_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_1tymt_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_1tymt_1 .25s ease-out forwards}@keyframes _extra_icon_softin_1tymt_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_1tymt_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_1tymt_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_1tymt_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_1tymt_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_1tymt_91{display:flex}._bgmControlButton_1tymt_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_1tymt_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_1tymt_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_1tymt_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_1tymt_1{0%{opacity:.95}to{opacity:1}}._bgmElement_1tymt_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_1tymt_148{background-color:#ffffffd9!important;color:#666}._cgMain_1tymt_153{width:100%;height:88%}._cgContainer_1tymt_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_1tymt_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_1tymt_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_1tymt_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;border-radius:7px;padding:12px 15px}._cgNav_1tymt_203{font-size:170%;color:#fff;padding:.12em 1em;margin:0 .25em;text-align:center;cursor:pointer;transition:background-color .5s,color .5s,font-weight .5s;border-radius:7px}._cgNav_1tymt_203:first-child{margin-left:0}._cgNav_1tymt_203:last-child{margin-right:0}._cgNav_active_1tymt_222{background-color:#005caf1a!important;color:#005caf;font-weight:700}._cgNav_1tymt_203:hover{background-color:#005caf0d}._showFullContainer_1tymt_232{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_1tymt_245{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_1tymt_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_1tymt_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-89f179fe.css b/packages/terre2/assets/templates/WebGAL_Template/assets/index-89f179fe.css deleted file mode 100644 index 6b2cea4b1..000000000 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-89f179fe.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";@font-face{font-family:思源宋体;src:url(./SourceHanSerifCN-Regular-1e60cc2e.ttf) format("truetype")}@font-face{font-family:LXGW;src:url(./LXGWWenKai-Regular-9375313a.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R-ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{background-color:#000;font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-webkit-user-select:none;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:2560px;height:1440px;overflow:hidden;font-size:160%}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}#ebg{height:100vh;width:100vw;filter:blur(50px);background-position:center;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}.App{height:100%;width:100%;background:rgba(0,0,0,1);overflow:hidden;perspective:0;-webkit-overflow-scrolling:auto}#pixiCanvas{z-index:5}._Title_main_13knx_2{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_13knx_9{font-family:思源宋体,serif;display:flex;position:absolute;left:0;min-width:25%;height:100%;justify-content:center;align-items:flex-start;flex-flow:column;transition:background .75s;padding-left:120px}._Title_button_13knx_9{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:1em 2em;margin:20px 0;transition:all .33s;background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:4px;transform:skew(-10deg);background:linear-gradient(to right,rgba(0,0,0,.3),rgba(0,0,0,.1))}._Title_button_13knx_9:hover{text-shadow:0 0 10px rgb(255,255,255);padding:1em 6em 1em 3em}._Title_button_text_13knx_43{font-size:165%;color:transparent;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%);-webkit-background-clip:text;padding:0 .5em;letter-spacing:.2em}._Title_button_text_up_13knx_52{font-size:200%;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;letter-spacing:.15em}._Title_backup_background_13knx_58{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._FullScreenPerform_main_7er8a_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_7er8a_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_7er8a_17{position:absolute;display:block;width:100%;height:100%;z-index:11}@keyframes _slideIn_7er8a_80{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _typing_7er8a_86{0%{width:0;height:0}to{width:100%;height:auto;border-right:1px solid}}@keyframes _blinkCursor_7er8a_1{50%{border-color:transparent}}@keyframes _pixelateAnimation_7er8a_1{0%{filter:none;opacity:0}50%{filter:blur(5px)}to{filter:none;opacity:1}}@keyframes _revealAnimation_7er8a_101{0%{opacity:0;clip-path:polygon(0% 0%,0% 0%,0% 100%,0% 100%)}to{opacity:1;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%)}}._fadeIn_7er8a_74{opacity:0;animation:_intro_showSoftly_7er8a_1 1.5s ease-out forwards;font-family:思源宋体,serif}._slideIn_7er8a_80{opacity:0;animation:_slideIn_7er8a_80 1.5s forwards;font-family:思源宋体,serif}._typingEffect_7er8a_86{display:block;overflow:hidden;white-space:pre-line;width:0;animation:_typing_7er8a_86 1.5s forwards,_blinkCursor_7er8a_1 1s infinite 1.5s;font-family:思源宋体,serif}._pixelateEffect_7er8a_95{opacity:0;animation:_pixelateAnimation_7er8a_1 3s forwards;font-family:思源宋体,serif}._revealAnimation_7er8a_101{opacity:0;animation:_revealAnimation_7er8a_101 3s forwards;font-family:思源宋体,serif}@keyframes _intro_showSoftly_7er8a_1{0%{opacity:0}to{opacity:1}}._videoContainer_7er8a_115{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._Choose_Main_cegqk_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_cegqk_13{font-family:WebgalUI,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_disabled_cegqk_29{font-family:WebgalUI,serif;cursor:not-allowed;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a80;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.5);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_cegqk_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._Choose_Main_4xkm5_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_4xkm5_13{cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#005caf;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._glabalDialog_container_inner_4xkm5_28{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_4xkm5_28{color:#fff;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_4xkm5_47{font-size:300%;letter-spacing:.05em;text-shadow:0 0 10px rgba(255,255,255,.5)}._Choose_item_4xkm5_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #005caf}._button_4xkm5_59{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_4xkm5_59:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}._Logo_main_1bne2_1{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;animation:_change-img-anim_1bne2_1 5s forwards;background-size:cover;z-index:14}@keyframes _change-img-anim_1bne2_1{0%{opacity:0}35%{opacity:1}65%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Logo_Back_1bne2_32{width:100%;height:100%;position:absolute;top:0;left:0;right:0;opacity:1;bottom:0;background-size:cover;z-index:14;background:white}._animationActive_1bne2_46{animation:_fadeout_1bne2_1 5s forwards}@keyframes _fadeout_1bne2_1{0%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_1nje1_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;background-color:#fff}._MenuPanel_button_1nje1_10{padding:.35em 0 0;display:flex;justify-content:center;font-size:200%;text-align:center;font-weight:700;width:20%;cursor:pointer;color:#0808084d;background:rgba(0,0,0,0);overflow:hidden;border-right:1.5px solid rgba(0,0,0,.15);transition:text-shadow .7s,backgroud .7s,all .33s}._MenuPanel_button_1nje1_10:hover{background:rgba(0,0,0,.05)}._MenuPanel_button_1nje1_10:last-child{border-right:none}._MenuPanel_button_icon_1nje1_34{transform:translateY(.125em);padding:0 .15em 0 0;margin:0 .15em 0 0}._main_15mmi_1{position:absolute;bottom:20px;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;height:70px;right:20px;border-radius:35px;padding:.15em 1.75em;font-size:80%}._button_15mmi_16{position:relative;top:2px;padding:0;filter:drop-shadow(1px 1px 5px rgb(0,0,0))}._button_text_15mmi_23{position:relative;bottom:8px;color:#fff;text-shadow:1px 1px 5px rgb(0,0,0);padding-left:3px}._button_on_15mmi_31{height:100%;display:inline-block;font-size:150%;padding:.25em .3em 0 .15em;transition:background-color .5s;background:rgba(255,255,255,.3);border-radius:4px;margin:0 .1em}._singleButton_15mmi_42{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.3em .3em 0 .15em;transition:background-color .5s;cursor:pointer;border-radius:4px;margin:0 .1em;position:relative}._singleButton_15mmi_42:hover{background-color:#ffffff4d}._fastSlPreview_15mmi_59{position:absolute;top:-250px;right:0;background:linear-gradient(315deg,rgba(253,251,251,.9) 0%,rgba(235,237,238,.85) 100%);width:900px;height:230px;color:#005caf;border-radius:5px;display:none;animation:_fastSlEnter_15mmi_1 .33s;transition:opacity .33s}._fastsave_15mmi_73:hover ._fastSPreview_15mmi_73,._fastload_15mmi_77:hover ._fastLPreview_15mmi_77{display:block}@keyframes _fastSlEnter_15mmi_1{0%{opacity:0}to{opacity:1}}._slPreviewMain_15mmi_89{padding:.5em;display:flex;box-sizing:border-box;height:100%;width:100%}._imgContainer_15mmi_97{display:flex;overflow:hidden;border-radius:5px;flex-shrink:0;height:100%}._textContainer_15mmi_105{overflow:hidden;padding:0 0 0 .5em}._Save_Load_main_16zg1_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_16zg1_9{height:10%;width:100%;display:flex;background-color:#fff;animation:_Elements_in_16zg1_1 ease-out 1s forwards}._Save_Load_title_16zg1_17{font-family:思源宋体,serif;letter-spacing:.1em;width:auto;height:100%;font-size:275%;min-width:350px;margin:0 0 0 .8em;padding:0 .8em;box-sizing:border-box;display:flex;justify-content:center;align-items:center}._Save_title_text_16zg1_32{font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_16zg1_40{font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_16zg1_48{height:100%;display:flex;padding:0 0 0 2em}._Save_Load_top_button_16zg1_48{cursor:pointer;font-size:200%;width:2.05em;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_16zg1_67{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_16zg1_48:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_16zg1_78{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_16zg1_48:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_16zg1_91{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_16zg1_91:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_16zg1_104{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_16zg1_113{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_16zg1_1 1s ease-out forwards,_Elements_in_transform_16zg1_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_16zg1_113:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_16zg1_129{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_16zg1_136{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_16zg1_145{background-color:#51a8dd}._Save_Load_content_element_top_date_16zg1_149{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_16zg1_160{background-color:#005caf}._Save_Load_content_text_16zg1_164{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_16zg1_178{padding:.2em .75em}._Save_Load_content_speaker_16zg1_182{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_16zg1_191{color:#005caf}._Load_content_text_16zg1_195{background-color:#005cafbf}._Save_Load_content_miniRen_16zg1_199{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_16zg1_206{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_16zg1_213{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_16zg1_221{bottom:0;left:0}._Save_Load_content_miniRen_figRight_16zg1_226{bottom:0;right:0}@keyframes _Elements_in_16zg1_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_16zg1_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Options_main_kotpu_2{position:absolute;cursor:default;height:90%;width:100%;background:rgba(255,255,255,.65)}._Options_top_kotpu_10{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_kotpu_17{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_kotpu_26{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_kotpu_1 ease-out .7s forwards}._Option_title_text_shadow_kotpu_35{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_kotpu_42{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_kotpu_49{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_kotpu_56{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_kotpu_66{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_kotpu_1 ease-out .7s forwards;cursor:pointer}._About_text_kotpu_74{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_kotpu_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_kotpu_93{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_kotpu_99{animation:_Elements_in_kotpu_1 ease-out .7s forwards}._Options_page_button_kotpu_103{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_kotpu_115{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_kotpu_103:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_1fi2w_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_1fi2w_9{position:absolute;z-index:6;right:0;bottom:0;left:0;min-height:430px;max-height:430px;font-weight:700;padding:30px 50px 100px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_1fi2w_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s,padding-left .33s}._TextBox_showName_1fi2w_28{font-size:85%;min-width:25%;height:70px;transition:left .33s;border-bottom:3px solid rgba(255,255,255,.8)}@keyframes _showSoftly_1fi2w_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_1fi2w_44{position:relative;animation:_TextDelayShow_1fi2w_1 1s ease-out forwards;opacity:0}._outer_1fi2w_50{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#ffffff 0%,#f5f7fa 45%,#c3cfe2 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_1fi2w_62{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.085em rgba(0,0,0,.35);z-index:1}._zhanwei_1fi2w_71{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_1fi2w_76{position:relative;opacity:1}@keyframes _TextDelayShow_1fi2w_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_1fi2w_89{position:absolute;height:450px;width:450px;bottom:0;left:0;overflow:hidden}._miniAvatarImg_1fi2w_98{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_1fi2w_106{position:absolute;left:2em;top:-3.5em}._outerName_1fi2w_112{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_1fi2w_123{position:absolute;left:0;top:0;z-index:1}._text_1fi2w_130{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}._TextBox_EventHandler_ujldp_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_ujldp_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_ujldp_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_ujldp_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_ujldp_39{position:relative;animation:_TextDelayShow_ujldp_1 1s ease-out forwards;opacity:0}._outer_ujldp_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_ujldp_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_ujldp_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_ujldp_71{position:relative;opacity:1}._TextBox_showName_ujldp_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_ujldp_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_ujldp_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_ujldp_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_ujldp_113{position:absolute;left:2em;top:-3.5em}._outerName_ujldp_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_ujldp_130{position:absolute;left:0;top:0;z-index:1}._text_ujldp_137{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_uvcgw_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_uvcgw_14{padding:0;display:flex;height:10%}._extra_top_icon_uvcgw_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_uvcgw_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_uvcgw_1 .25s ease-out forwards}@keyframes _extra_icon_softin_uvcgw_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_uvcgw_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_uvcgw_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_uvcgw_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_uvcgw_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_uvcgw_91{display:flex}._bgmControlButton_uvcgw_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_uvcgw_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_uvcgw_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_uvcgw_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_uvcgw_1{0%{opacity:.95}to{opacity:1}}._bgmElement_uvcgw_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_uvcgw_148{background-color:#ffffffd9!important;color:#666}._cgMain_uvcgw_153{width:100%;height:88%}._cgContainer_uvcgw_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_uvcgw_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_uvcgw_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_uvcgw_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;background:rgba(0,0,0,.1);border-radius:4px}._cgNav_uvcgw_203{font-size:170%;color:#fff;padding:.25em 1em;margin:0 .25em;text-align:center;transition:background-color 1s,color 1s;cursor:pointer;border-radius:7px}._cgNav_uvcgw_203:first-child{margin-left:0}._cgNav_uvcgw_203:last-child{margin-right:0}._cgNav_active_uvcgw_222{background-color:#ffffffd9!important;color:#666}._cgNav_uvcgw_203:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._showFullContainer_uvcgw_233{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_uvcgw_246{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_uvcgw_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_uvcgw_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-e4655b9f.js b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-2b32cd56.js similarity index 97% rename from packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-e4655b9f.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-2b32cd56.js index c1dfcbfa7..7ce150d48 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-e4655b9f.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-2b32cd56.js @@ -1 +1 @@ -import{r as S,W as h,C as u,T as w,S as C}from"./index-e4a5e140.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); +import{r as S,W as h,C as u,T as w,S as C}from"./index-14aa7559.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); diff --git a/packages/terre2/assets/templates/WebGAL_Template/index.html b/packages/terre2/assets/templates/WebGAL_Template/index.html index 9203efc58..d7ac002a5 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/index.html +++ b/packages/terre2/assets/templates/WebGAL_Template/index.html @@ -7,8 +7,8 @@ WebGAL - - + + diff --git a/packages/terre2/public/templates/default/Stage/TextBox/textbox.scss b/packages/terre2/public/templates/default/Stage/TextBox/textbox.scss new file mode 100644 index 000000000..eb3f1d796 --- /dev/null +++ b/packages/terre2/public/templates/default/Stage/TextBox/textbox.scss @@ -0,0 +1,63 @@ +.TextBox_main { + +} + +.TextBox_textElement_start { + +} + +.TextBox_textElement_Settled { + +} + +.text { + +} + +.outer { + +} + +.inner { + +} + +.TextBox_showName { + +} + +.outerName { + +} + +.innerName { + +} + +.miniAvatarContainer { + +} + +.miniAvatarImg { + +} + +@keyframes showSoftly { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +@keyframes TextDelayShow { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} diff --git a/packages/terre2/public/templates/default/UI/Title/title.scss b/packages/terre2/public/templates/default/UI/Title/title.scss new file mode 100644 index 000000000..48073c96b --- /dev/null +++ b/packages/terre2/public/templates/default/UI/Title/title.scss @@ -0,0 +1,58 @@ +.Title_main { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; +} + +.Title_buttonList { + font-family: "思源宋体", serif; + display: flex; + position: absolute; + left: 0; + min-width: 25%; + height: 100%; + justify-content: center; + align-items: flex-start; + flex-flow: column; + transition: background 0.75s; + padding-left: 120px; +} + +.Title_button { + font-weight: bold; + text-align: center; + flex: 0 1 auto; + cursor: pointer; + padding: 1em 2em 1em 2em; + margin: 20px 0; + transition: all 0.33s; + background: rgba(255, 255, 255, 0.15); + backdrop-filter: blur(5px); + border-radius: 4px; + transform: skewX(-10deg); + background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); + + &:hover { + text-shadow: 0 0 10px rgba(255, 255, 255, 1); + padding: 1em 6em 1em 3em; + } +} + +.Title_button_text { + color: transparent; + background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); + -webkit-background-clip: text; + padding: 0 0.5em 0 0.5em; + font-size: 200%; + font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + letter-spacing: 0.15em; +} + +.Title_backup_background { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; + background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); +} diff --git a/packages/terre2/public/templates/default/template.json b/packages/terre2/public/templates/default/template.json new file mode 100644 index 000000000..d7885e992 --- /dev/null +++ b/packages/terre2/public/templates/default/template.json @@ -0,0 +1,4 @@ +{ + "name":"Default Template", + "webgal-version":"4.4.12" +} diff --git a/packages/terre2/src/Modules/template-preview/template-preview.controller.ts b/packages/terre2/src/Modules/template-preview/template-preview.controller.ts new file mode 100644 index 000000000..519ccd407 --- /dev/null +++ b/packages/terre2/src/Modules/template-preview/template-preview.controller.ts @@ -0,0 +1,44 @@ +import { + ConsoleLogger, + Controller, + Get, + NotFoundException, + Param, + Req, + Res, +} from '@nestjs/common'; +import { TemplatePreviewService } from './template-preview.service'; + +@Controller('template-preview') +export class TemplatePreviewController { + constructor( + private readonly logger: ConsoleLogger, + private readonly templatePreviewService: TemplatePreviewService, + ) {} + + @Get('/:templateName/game/template/:path(*)') + getTemplateAsset( + @Param('path') path: string, + @Param('templateName') templateName: string, + @Res() res: Response, + @Req() req: Request, + ) { + const url = req.url; + + const templateFilePath = url.split('/template/')?.[1] ?? ''; + const targetPath = `${templateName}/${templateFilePath}`; + const readResult = + this.templatePreviewService.getTemplateFileByPath(targetPath); + if (readResult) { + // 如果文件存在,可以直接使用 res.sendFile(filePath) 来发送文件 + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + readResult.pipe(res); + } else { + // 如果文件不存在,你可以尝试手动触发 ServeStaticModule 的逻辑,但这在 NestJS 中不是直接支持的行为 + // 一个可能的解决方案是抛出一个 NotFoundException,让 NestJS 继续寻找下一个匹配的路由/处理器 + // 注意:这里抛出的异常会被全局异常过滤器捕获,可能不会直接触发 ServeStaticModule + throw new NotFoundException('The requested file does not exist.'); + } + } +} diff --git a/packages/terre2/src/Modules/template-preview/template-preview.module.ts b/packages/terre2/src/Modules/template-preview/template-preview.module.ts new file mode 100644 index 000000000..5e35b0c05 --- /dev/null +++ b/packages/terre2/src/Modules/template-preview/template-preview.module.ts @@ -0,0 +1,11 @@ +import { Module } from '@nestjs/common'; +import { TemplatePreviewController } from './template-preview.controller'; +import { TemplatePreviewService } from './template-preview.service'; +import { WebgalFsModule } from '../webgal-fs/webgal-fs.module'; + +@Module({ + imports: [WebgalFsModule], + controllers: [TemplatePreviewController], + providers: [TemplatePreviewService], +}) +export class TemplatePreviewModule {} diff --git a/packages/terre2/src/Modules/template-preview/template-preview.service.ts b/packages/terre2/src/Modules/template-preview/template-preview.service.ts new file mode 100644 index 000000000..422cd526d --- /dev/null +++ b/packages/terre2/src/Modules/template-preview/template-preview.service.ts @@ -0,0 +1,29 @@ +import { ConsoleLogger, Injectable } from '@nestjs/common'; +import { WebgalFsService } from '../webgal-fs/webgal-fs.service'; +import * as fsp from 'fs/promises'; +import { createReadStream, ReadStream } from 'fs'; + +@Injectable() +export class TemplatePreviewService { + constructor( + private readonly logger: ConsoleLogger, + private readonly webgalFs: WebgalFsService, + ) {} + + /** + * 获取某个模板下的文件 + * @param path path 形如 templateName/UI/xxx.scss + */ + getTemplateFileByPath(path: string): undefined | ReadStream { + const targetPath = this.webgalFs.getPathFromRoot( + `/public/templates/${path}`, + ); + let result: ReadStream | undefined; + try { + result = createReadStream(targetPath); + } catch (e) { + result = undefined; + } + return result; + } +} diff --git a/packages/terre2/src/app.module.ts b/packages/terre2/src/app.module.ts index 558d0e806..5b97bc3b1 100644 --- a/packages/terre2/src/app.module.ts +++ b/packages/terre2/src/app.module.ts @@ -5,12 +5,14 @@ import { ServeStaticModule } from '@nestjs/serve-static'; import { join } from 'path'; import { ManageGameModule } from './Modules/manage-game/manage-game.module'; import { LspModule } from './Modules/lsp/lsp.module'; +import { TemplatePreviewModule } from './Modules/template-preview/template-preview.module'; @Module({ imports: [ // 代码提示 LspModule, ManageGameModule, + TemplatePreviewModule, // 静态文件服务:游戏与编辑器静态资源文件 ServeStaticModule.forRoot({ rootPath: join(process.cwd(), 'public'), @@ -21,8 +23,13 @@ import { LspModule } from './Modules/lsp/lsp.module'; rootPath: join(process.cwd(), 'assets', 'templates', 'WebGAL_Template'), serveRoot: '/games/:gamename/', }), + // 静态文件服务:引擎模板预览用游戏 + ServeStaticModule.forRoot({ + rootPath: join(process.cwd(), 'assets', 'templates', 'WebGAL_Template'), + serveRoot: '/template-preview/:template/', + }), ], controllers: [AppController], providers: [AppService], }) -export class AppModule { } +export class AppModule {} From bce2c1fb82d3b2ff257c43b8c78c0bb9c7398154 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Sun, 18 Feb 2024 23:19:07 +0800 Subject: [PATCH 006/125] refactor: use StreamableFile instead of res.pipe. --- .../template-preview.controller.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/terre2/src/Modules/template-preview/template-preview.controller.ts b/packages/terre2/src/Modules/template-preview/template-preview.controller.ts index 519ccd407..1c3887049 100644 --- a/packages/terre2/src/Modules/template-preview/template-preview.controller.ts +++ b/packages/terre2/src/Modules/template-preview/template-preview.controller.ts @@ -1,18 +1,16 @@ import { - ConsoleLogger, Controller, Get, NotFoundException, Param, Req, - Res, + StreamableFile, } from '@nestjs/common'; import { TemplatePreviewService } from './template-preview.service'; @Controller('template-preview') export class TemplatePreviewController { constructor( - private readonly logger: ConsoleLogger, private readonly templatePreviewService: TemplatePreviewService, ) {} @@ -20,24 +18,16 @@ export class TemplatePreviewController { getTemplateAsset( @Param('path') path: string, @Param('templateName') templateName: string, - @Res() res: Response, @Req() req: Request, ) { const url = req.url; - const templateFilePath = url.split('/template/')?.[1] ?? ''; const targetPath = `${templateName}/${templateFilePath}`; const readResult = this.templatePreviewService.getTemplateFileByPath(targetPath); if (readResult) { - // 如果文件存在,可以直接使用 res.sendFile(filePath) 来发送文件 - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - readResult.pipe(res); + return new StreamableFile(readResult); } else { - // 如果文件不存在,你可以尝试手动触发 ServeStaticModule 的逻辑,但这在 NestJS 中不是直接支持的行为 - // 一个可能的解决方案是抛出一个 NotFoundException,让 NestJS 继续寻找下一个匹配的路由/处理器 - // 注意:这里抛出的异常会被全局异常过滤器捕获,可能不会直接触发 ServeStaticModule throw new NotFoundException('The requested file does not exist.'); } } From 7988ff57c18b63f38eef25e08faf547df04b915d Mon Sep 17 00:00:00 2001 From: loliko114514 <2359983693@qq.com> Date: Mon, 19 Feb 2024 16:53:45 +0800 Subject: [PATCH 007/125] Revert "add template dirname" This reverts commit 3313e5be875be786851e50646eb8e01c8e07026a. --- .../origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts index c8189efc6..5ff7f40b6 100644 --- a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts +++ b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts @@ -7,7 +7,6 @@ dirnameToDisplayNameMap.set('animation', () => t(tPrefix + 'animation')); dirnameToDisplayNameMap.set('background', () => t(tPrefix + 'background')); dirnameToDisplayNameMap.set('bgm', () => t(tPrefix + 'bgm')); dirnameToDisplayNameMap.set('figure', () => t(tPrefix + 'figure')); -dirnameToDisplayNameMap.set('template', () => t(tPrefix + 'template')); dirnameToDisplayNameMap.set('scene', () => t(tPrefix + 'scene')); dirnameToDisplayNameMap.set('tex', () => t(tPrefix + 'tex')); dirnameToDisplayNameMap.set('video', () => t(tPrefix + 'video')); From f783e095987c7bc9c8c0b7c06fc7033ddba1e560 Mon Sep 17 00:00:00 2001 From: loliko114514 <2359983693@qq.com> Date: Mon, 19 Feb 2024 16:54:24 +0800 Subject: [PATCH 008/125] Revert "add template extname" This reverts commit 16ff201bd59cd14435455f30a26b8838426db5b6. --- .../origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts index 5ff7f40b6..33a02377c 100644 --- a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts +++ b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts @@ -18,7 +18,6 @@ dirNameToExtNameMap.set('animation', ['.json']); dirNameToExtNameMap.set('background', ['.jpg', '.png', '.webp']); dirNameToExtNameMap.set('bgm', ['.mp3', '.ogg', '.wav']); dirNameToExtNameMap.set('figure', ['.png', '.webp', '.json']); -dirNameToExtNameMap.set('template', ['.scss']); dirNameToExtNameMap.set('scene', ['.txt']); dirNameToExtNameMap.set('tex', ['.png', '.webp']); dirNameToExtNameMap.set('video', ['.mp4']); From 49f67d225c26b7f28a4864528b47e1d69f2e9e56 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:18:32 +0800 Subject: [PATCH 009/125] Update electron version --- packages/WebGAL-electron/package.json | 4 +- packages/WebGAL-electron/yarn.lock | 3216 +++++++++++++------------ yarn.lock | 2141 ++++++++-------- 3 files changed, 2768 insertions(+), 2593 deletions(-) diff --git a/packages/WebGAL-electron/package.json b/packages/WebGAL-electron/package.json index 57629912c..28bfb2b5e 100644 --- a/packages/WebGAL-electron/package.json +++ b/packages/WebGAL-electron/package.json @@ -13,8 +13,8 @@ "build:arm64": "electron-builder --arm64" }, "devDependencies": { - "electron": "^18.3.7", - "electron-builder": "^23.0.3" + "electron": "^29.0.0", + "electron-builder": "^24.12.0" }, "build": { "productName": "WebGAL", diff --git a/packages/WebGAL-electron/yarn.lock b/packages/WebGAL-electron/yarn.lock index 2d2688d5e..027e108ed 100644 --- a/packages/WebGAL-electron/yarn.lock +++ b/packages/WebGAL-electron/yarn.lock @@ -2,1607 +2,1719 @@ # yarn lockfile v1 +"7zip-bin@~5.2.0": + version "5.2.0" + resolved "https://registry.yarnpkg.com/7zip-bin/-/7zip-bin-5.2.0.tgz#7a03314684dd6572b7dfa89e68ce31d60286854d" + integrity sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A== + "@develar/schema-utils@~2.6.5": - "integrity" "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==" - "resolved" "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz" - "version" "2.6.5" - dependencies: - "ajv" "^6.12.0" - "ajv-keywords" "^3.4.1" - -"@electron/get@^1.13.0": - "integrity" "sha512-BrZYyL/6m0ZXz/lDxy/nlVhQz+WF+iPS6qXolEU8atw7h6v1aYkjwJZ63m+bJMBTxDE66X+r2tPS4a/8C82sZw==" - "resolved" "https://registry.npmjs.org/@electron/get/-/get-1.14.1.tgz" - "version" "1.14.1" - dependencies: - "debug" "^4.1.1" - "env-paths" "^2.2.0" - "fs-extra" "^8.1.0" - "got" "^9.6.0" - "progress" "^2.0.3" - "semver" "^6.2.0" - "sumchecker" "^3.0.1" + version "2.6.5" + resolved "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz" + integrity sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig== + dependencies: + ajv "^6.12.0" + ajv-keywords "^3.4.1" + +"@electron/asar@^3.2.1": + version "3.2.8" + resolved "https://registry.yarnpkg.com/@electron/asar/-/asar-3.2.8.tgz#2ea722f3452583dbd4ffdcc4b4f5dc903f1d8178" + integrity sha512-cmskk5M06ewHMZAplSiF4AlME3IrnnZhKnWbtwKVLRkdJkKyUVjMLhDIiPIx/+6zQWVlKX/LtmK9xDme7540Sg== + dependencies: + commander "^5.0.0" + glob "^7.1.6" + minimatch "^3.0.4" + +"@electron/get@^2.0.0": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@electron/get/-/get-2.0.3.tgz#fba552683d387aebd9f3fcadbcafc8e12ee4f960" + integrity sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ== + dependencies: + debug "^4.1.1" + env-paths "^2.2.0" + fs-extra "^8.1.0" + got "^11.8.5" + progress "^2.0.3" + semver "^6.2.0" + sumchecker "^3.0.1" optionalDependencies: - "global-agent" "^3.0.0" - "global-tunnel-ng" "^2.7.1" - -"@electron/universal@1.2.1": - "integrity" "sha512-7323HyMh7KBAl/nPDppdLsC87G6RwRU02dy5FPeGB1eS7rUePh55+WNWiDPLhFQqqVPHzh77M69uhmoT8XnwMQ==" - "resolved" "https://registry.npmjs.org/@electron/universal/-/universal-1.2.1.tgz" - "version" "1.2.1" - dependencies: + global-agent "^3.0.0" + +"@electron/notarize@2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@electron/notarize/-/notarize-2.1.0.tgz#76aaec10c8687225e8d0a427cc9df67611c46ff3" + integrity sha512-Q02xem1D0sg4v437xHgmBLxI2iz/fc0D4K7fiVWHa/AnW8o7D751xyKNXgziA6HrTOme9ul1JfWN5ark8WH1xA== + dependencies: + debug "^4.1.1" + fs-extra "^9.0.1" + promise-retry "^2.0.1" + +"@electron/osx-sign@1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@electron/osx-sign/-/osx-sign-1.0.5.tgz#0af7149f2fce44d1a8215660fd25a9fb610454d8" + integrity sha512-k9ZzUQtamSoweGQDV2jILiRIHUu7lYlJ3c6IEmjv1hC17rclE+eb9U+f6UFlOOETo0JzY1HNlXy4YOlCvl+Lww== + dependencies: + compare-version "^0.1.2" + debug "^4.3.4" + fs-extra "^10.0.0" + isbinaryfile "^4.0.8" + minimist "^1.2.6" + plist "^3.0.5" + +"@electron/universal@1.4.1": + version "1.4.1" + resolved "https://registry.yarnpkg.com/@electron/universal/-/universal-1.4.1.tgz#3fbda2a5ed9ff9f3304c8e8316b94c1e3a7b3785" + integrity sha512-lE/U3UNw1YHuowNbTmKNs9UlS3En3cPgwM5MI+agIgr/B1hSze9NdOP0qn7boZaI9Lph8IDv3/24g9IxnJP7aQ== + dependencies: + "@electron/asar" "^3.2.1" "@malept/cross-spawn-promise" "^1.1.0" - "asar" "^3.1.0" - "debug" "^4.3.1" - "dir-compare" "^2.4.0" - "fs-extra" "^9.0.1" - "minimatch" "^3.0.4" - "plist" "^3.0.4" + debug "^4.3.1" + dir-compare "^3.0.0" + fs-extra "^9.0.1" + minimatch "^3.0.4" + plist "^3.0.4" + +"@isaacs/cliui@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" + integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== + dependencies: + string-width "^5.1.2" + string-width-cjs "npm:string-width@^4.2.0" + strip-ansi "^7.0.1" + strip-ansi-cjs "npm:strip-ansi@^6.0.1" + wrap-ansi "^8.1.0" + wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" "@malept/cross-spawn-promise@^1.1.0": - "integrity" "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==" - "resolved" "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz" - "version" "1.1.1" + version "1.1.1" + resolved "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz" + integrity sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ== dependencies: - "cross-spawn" "^7.0.1" + cross-spawn "^7.0.1" "@malept/flatpak-bundler@^0.4.0": - "integrity" "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==" - "resolved" "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz" - "version" "0.4.0" + version "0.4.0" + resolved "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz" + integrity sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q== dependencies: - "debug" "^4.1.1" - "fs-extra" "^9.0.0" - "lodash" "^4.17.15" - "tmp-promise" "^3.0.2" + debug "^4.1.1" + fs-extra "^9.0.0" + lodash "^4.17.15" + tmp-promise "^3.0.2" -"@sindresorhus/is@^0.14.0": - "integrity" "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" - "resolved" "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz" - "version" "0.14.0" +"@pkgjs/parseargs@^0.11.0": + version "0.11.0" + resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" + integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== -"@szmarczak/http-timer@^1.1.2": - "integrity" "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==" - "resolved" "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz" - "version" "1.1.2" +"@sindresorhus/is@^4.0.0": + version "4.6.0" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f" + integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw== + +"@szmarczak/http-timer@^4.0.5": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz#b4a914bb62e7c272d4e5989fe4440f812ab1d807" + integrity sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w== dependencies: - "defer-to-connect" "^1.0.1" + defer-to-connect "^2.0.0" "@tootallnate/once@2": - "integrity" "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==" - "resolved" "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz" - "version" "2.0.0" + version "2.0.0" + resolved "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz" + integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== + +"@types/cacheable-request@^6.0.1": + version "6.0.3" + resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.3.tgz#a430b3260466ca7b5ca5bfd735693b36e7a9d183" + integrity sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw== + dependencies: + "@types/http-cache-semantics" "*" + "@types/keyv" "^3.1.4" + "@types/node" "*" + "@types/responselike" "^1.0.0" "@types/debug@^4.1.6": - "integrity" "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==" - "resolved" "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz" - "version" "4.1.8" + version "4.1.8" + resolved "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz" + integrity sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ== dependencies: "@types/ms" "*" -"@types/fs-extra@^9.0.11": - "integrity" "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==" - "resolved" "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz" - "version" "9.0.13" +"@types/fs-extra@9.0.13", "@types/fs-extra@^9.0.11": + version "9.0.13" + resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-9.0.13.tgz#7594fbae04fe7f1918ce8b3d213f74ff44ac1f45" + integrity sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA== dependencies: "@types/node" "*" -"@types/glob@^7.1.1": - "integrity" "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==" - "resolved" "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz" - "version" "7.2.0" +"@types/http-cache-semantics@*": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz#b979ebad3919799c979b17c72621c0bc0a31c6c4" + integrity sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA== + +"@types/keyv@^3.1.4": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.4.tgz#3ccdb1c6751b0c7e52300bcdacd5bcbf8faa75b6" + integrity sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg== dependencies: - "@types/minimatch" "*" "@types/node" "*" -"@types/minimatch@*": - "integrity" "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==" - "resolved" "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz" - "version" "5.1.2" - "@types/ms@*": - "integrity" "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" - "resolved" "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz" - "version" "0.7.31" + version "0.7.31" + resolved "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz" + integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA== "@types/node@*": - "integrity" "sha512-+ImzUB3mw2c5ISJUq0punjDilUQ5GnUim0ZRvchHIWJmOC0G+p0kzhXBqj6cDjK0QdPFwzrHWgrJp3RPvCG5qg==" - "resolved" "https://registry.npmjs.org/@types/node/-/node-18.16.14.tgz" - "version" "18.16.14" - -"@types/node@^16.11.26": - "integrity" "sha512-VmVm7gXwhkUimRfBwVI1CHhwp86jDWR04B5FGebMMyxV90SlCmFujwUHrxTD4oO+SOYU86SoxvhgeRQJY7iXFg==" - "resolved" "https://registry.npmjs.org/@types/node/-/node-16.18.34.tgz" - "version" "16.18.34" - -"@types/yargs-parser@*": - "integrity" "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" - "resolved" "https://registry.npmmirror.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz" - "version" "21.0.0" - -"@types/yargs@^17.0.1": - "integrity" "sha512-gmEaFwpj/7f/ROdtIlci1R1VYU1J4j95m8T+Tj3iBgiBFKg1foE/PSl93bBd5T9LDXNPo8UlNN6W0qwD8O5OaA==" - "resolved" "https://registry.npmmirror.com/@types/yargs/-/yargs-17.0.10.tgz" - "version" "17.0.10" - dependencies: - "@types/yargs-parser" "*" - -"7zip-bin@~5.1.1": - "integrity" "sha512-sAP4LldeWNz0lNzmTird3uWfFDWWTeg6V/MsmyyLR9X1idwKBWIgt/ZvinqQldJm3LecKEs1emkbquO6PCiLVQ==" - "resolved" "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.1.1.tgz" - "version" "5.1.1" - -"agent-base@6": - "integrity" "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==" - "resolved" "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" - "version" "6.0.2" - dependencies: - "debug" "4" - -"ajv-keywords@^3.4.1": - "integrity" "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==" - "resolved" "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz" - "version" "3.5.2" - -"ajv@^6.12.0", "ajv@^6.9.1": - "integrity" "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==" - "resolved" "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" - "version" "6.12.6" - dependencies: - "fast-deep-equal" "^3.1.1" - "fast-json-stable-stringify" "^2.0.0" - "json-schema-traverse" "^0.4.1" - "uri-js" "^4.2.2" - -"ansi-regex@^5.0.1": - "integrity" "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" - "version" "5.0.1" - -"ansi-styles@^4.0.0", "ansi-styles@^4.1.0": - "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" - "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - "version" "4.3.0" - dependencies: - "color-convert" "^2.0.1" - -"app-builder-bin@4.0.0": - "integrity" "sha512-xwdG0FJPQMe0M0UA4Tz0zEB8rBJTRA5a476ZawAqiBkMv16GRK5xpXThOjMaEOFnZ6zabejjG4J3da0SXG63KA==" - "resolved" "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-4.0.0.tgz" - "version" "4.0.0" - -"app-builder-lib@23.6.0": - "integrity" "sha512-dQYDuqm/rmy8GSCE6Xl/3ShJg6Ab4bZJMT8KaTKGzT436gl1DN4REP3FCWfXoh75qGTJ+u+WsdnnpO9Jl8nyMA==" - "resolved" "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-23.6.0.tgz" - "version" "23.6.0" + version "18.16.14" + resolved "https://registry.npmjs.org/@types/node/-/node-18.16.14.tgz" + integrity sha512-+ImzUB3mw2c5ISJUq0punjDilUQ5GnUim0ZRvchHIWJmOC0G+p0kzhXBqj6cDjK0QdPFwzrHWgrJp3RPvCG5qg== + +"@types/node@^20.9.0": + version "20.11.19" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.19.tgz#b466de054e9cb5b3831bee38938de64ac7f81195" + integrity sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ== + dependencies: + undici-types "~5.26.4" + +"@types/plist@^3.0.1": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@types/plist/-/plist-3.0.5.tgz#9a0c49c0f9886c8c8696a7904dd703f6284036e0" + integrity sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA== + dependencies: + "@types/node" "*" + xmlbuilder ">=11.0.1" + +"@types/responselike@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.3.tgz#cc29706f0a397cfe6df89debfe4bf5cea159db50" + integrity sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw== + dependencies: + "@types/node" "*" + +"@types/verror@^1.10.3": + version "1.10.9" + resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.9.tgz#420c32adb9a2dd50b3db4c8f96501e05a0e72941" + integrity sha512-MLx9Z+9lGzwEuW16ubGeNkpBDE84RpB/NyGgg6z2BTpWzKkGU451cAY3UkUzZEp72RHF585oJ3V8JVNqIplcAQ== + +"@types/yauzl@^2.9.1": + version "2.10.3" + resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.3.tgz#e9b2808b4f109504a03cda958259876f61017999" + integrity sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q== + dependencies: + "@types/node" "*" + +"@xmldom/xmldom@^0.8.8": + version "0.8.10" + resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.10.tgz#a1337ca426aa61cef9fe15b5b28e340a72f6fa99" + integrity sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw== + +agent-base@6: + version "6.0.2" + resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +ajv-keywords@^3.4.1: + version "3.5.2" + resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv@^6.10.0, ajv@^6.12.0: + version "6.12.6" + resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +ansi-styles@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== + +app-builder-bin@4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-4.0.0.tgz" + integrity sha512-xwdG0FJPQMe0M0UA4Tz0zEB8rBJTRA5a476ZawAqiBkMv16GRK5xpXThOjMaEOFnZ6zabejjG4J3da0SXG63KA== + +app-builder-lib@24.12.0: + version "24.12.0" + resolved "https://registry.yarnpkg.com/app-builder-lib/-/app-builder-lib-24.12.0.tgz#2e985968c341d28fc887be3ecee658e6a240e147" + integrity sha512-t/xinVrMbsEhwljLDoFOtGkiZlaxY1aceZbHERGAS02EkUHJp9lgs/+L8okXLlYCaDSqYdB05Yb8Co+krvguXA== dependencies: "@develar/schema-utils" "~2.6.5" - "@electron/universal" "1.2.1" + "@electron/notarize" "2.1.0" + "@electron/osx-sign" "1.0.5" + "@electron/universal" "1.4.1" "@malept/flatpak-bundler" "^0.4.0" - "7zip-bin" "~5.1.1" - "async-exit-hook" "^2.0.1" - "bluebird-lst" "^1.0.9" - "builder-util" "23.6.0" - "builder-util-runtime" "9.1.1" - "chromium-pickle-js" "^0.2.0" - "debug" "^4.3.4" - "ejs" "^3.1.7" - "electron-osx-sign" "^0.6.0" - "electron-publish" "23.6.0" - "form-data" "^4.0.0" - "fs-extra" "^10.1.0" - "hosted-git-info" "^4.1.0" - "is-ci" "^3.0.0" - "isbinaryfile" "^4.0.10" - "js-yaml" "^4.1.0" - "lazy-val" "^1.0.5" - "minimatch" "^3.1.2" - "read-config-file" "6.2.0" - "sanitize-filename" "^1.6.3" - "semver" "^7.3.7" - "tar" "^6.1.11" - "temp-file" "^3.4.0" - -"argparse@^2.0.1": - "integrity" "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - "resolved" "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" - "version" "2.0.1" - -"asar@^3.1.0": - "integrity" "sha512-COdw2ZQvKdFGFxXwX3oYh2/sOsJWJegrdJCGxnN4MZ7IULgRBp9P6665aqj9z1v9VwP4oP1hRBojRDQ//IGgAg==" - "resolved" "https://registry.npmjs.org/asar/-/asar-3.2.0.tgz" - "version" "3.2.0" - dependencies: - "chromium-pickle-js" "^0.2.0" - "commander" "^5.0.0" - "glob" "^7.1.6" - "minimatch" "^3.0.4" - optionalDependencies: - "@types/glob" "^7.1.1" - -"async-exit-hook@^2.0.1": - "integrity" "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==" - "resolved" "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz" - "version" "2.0.1" - -"async@^3.2.3": - "integrity" "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" - "resolved" "https://registry.npmjs.org/async/-/async-3.2.4.tgz" - "version" "3.2.4" - -"asynckit@^0.4.0": - "integrity" "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - "resolved" "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" - "version" "0.4.0" - -"at-least-node@^1.0.0": - "integrity" "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" - "resolved" "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" - "version" "1.0.0" - -"balanced-match@^1.0.0": - "integrity" "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" - "version" "1.0.2" - -"base64-js@^1.5.1": - "integrity" "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - "resolved" "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" - "version" "1.5.1" - -"bluebird-lst@^1.0.9": - "integrity" "sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw==" - "resolved" "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz" - "version" "1.0.9" - dependencies: - "bluebird" "^3.5.5" - -"bluebird@^3.5.0", "bluebird@^3.5.5": - "integrity" "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" - "resolved" "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz" - "version" "3.7.2" - -"boolean@^3.0.1": - "integrity" "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==" - "resolved" "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz" - "version" "3.2.0" - -"brace-expansion@^1.1.7": - "integrity" "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" - "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" - "version" "1.1.11" - dependencies: - "balanced-match" "^1.0.0" - "concat-map" "0.0.1" - -"brace-expansion@^2.0.1": - "integrity" "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==" - "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "balanced-match" "^1.0.0" - -"buffer-alloc-unsafe@^1.1.0": - "integrity" "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" - "resolved" "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz" - "version" "1.1.0" - -"buffer-alloc@^1.2.0": - "integrity" "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==" - "resolved" "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz" - "version" "1.2.0" - dependencies: - "buffer-alloc-unsafe" "^1.1.0" - "buffer-fill" "^1.0.0" - -"buffer-crc32@~0.2.3": - "integrity" "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==" - "resolved" "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz" - "version" "0.2.13" - -"buffer-equal@1.0.0": - "integrity" "sha512-tcBWO2Dl4e7Asr9hTGcpVrCe+F7DubpmqWCTbj4FHLmjqO2hIaC383acQubWtRJhdceqs5uBHs6Es+Sk//RKiQ==" - "resolved" "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz" - "version" "1.0.0" - -"buffer-fill@^1.0.0": - "integrity" "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==" - "resolved" "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz" - "version" "1.0.0" - -"buffer-from@^1.0.0": - "integrity" "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - "resolved" "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" - "version" "1.1.2" - -"builder-util-runtime@9.1.1": - "integrity" "sha512-azRhYLEoDvRDR8Dhis4JatELC/jUvYjm4cVSj7n9dauGTOM2eeNn9KS0z6YA6oDsjI1xphjNbY6PZZeHPzzqaw==" - "resolved" "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.1.1.tgz" - "version" "9.1.1" - dependencies: - "debug" "^4.3.4" - "sax" "^1.2.4" - -"builder-util@23.6.0": - "integrity" "sha512-QiQHweYsh8o+U/KNCZFSvISRnvRctb8m/2rB2I1JdByzvNKxPeFLlHFRPQRXab6aYeXc18j9LpsDLJ3sGQmWTQ==" - "resolved" "https://registry.npmjs.org/builder-util/-/builder-util-23.6.0.tgz" - "version" "23.6.0" - dependencies: + "@types/fs-extra" "9.0.13" + async-exit-hook "^2.0.1" + bluebird-lst "^1.0.9" + builder-util "24.9.4" + builder-util-runtime "9.2.3" + chromium-pickle-js "^0.2.0" + debug "^4.3.4" + ejs "^3.1.8" + electron-publish "24.9.4" + form-data "^4.0.0" + fs-extra "^10.1.0" + hosted-git-info "^4.1.0" + is-ci "^3.0.0" + isbinaryfile "^5.0.0" + js-yaml "^4.1.0" + lazy-val "^1.0.5" + minimatch "^5.1.1" + read-config-file "6.3.2" + sanitize-filename "^1.6.3" + semver "^7.3.8" + tar "^6.1.12" + temp-file "^3.4.0" + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== + +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + +async-exit-hook@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz" + integrity sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw== + +async@^3.2.3: + version "3.2.4" + resolved "https://registry.npmjs.org/async/-/async-3.2.4.tgz" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +base64-js@^1.3.1, base64-js@^1.5.1: + version "1.5.1" + resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +bluebird-lst@^1.0.9: + version "1.0.9" + resolved "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz" + integrity sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw== + dependencies: + bluebird "^3.5.5" + +bluebird@^3.5.5: + version "3.7.2" + resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz" + integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== + +boolean@^3.0.1: + version "3.2.0" + resolved "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz" + integrity sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw== + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +buffer-crc32@~0.2.3: + version "0.2.13" + resolved "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz" + integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== + +buffer-equal@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/buffer-equal/-/buffer-equal-1.0.1.tgz#2f7651be5b1b3f057fcd6e7ee16cf34767077d90" + integrity sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg== + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +buffer@^5.1.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +builder-util-runtime@9.2.3: + version "9.2.3" + resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-9.2.3.tgz#0a82c7aca8eadef46d67b353c638f052c206b83c" + integrity sha512-FGhkqXdFFZ5dNC4C+yuQB9ak311rpGAw+/ASz8ZdxwODCv1GGMWgLDeofRkdi0F3VCHQEWy/aXcJQozx2nOPiw== + dependencies: + debug "^4.3.4" + sax "^1.2.4" + +builder-util@24.9.4: + version "24.9.4" + resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-24.9.4.tgz#8cde880e7c719285e9cb30e6850ddd5bf475ac04" + integrity sha512-YNon3rYjPSm4XDDho9wD6jq7vLRJZUy9FR+yFZnHoWvvdVCnZakL4BctTlPABP41MvIH5yk2cTZ2YfkOhGistQ== + dependencies: + "7zip-bin" "~5.2.0" "@types/debug" "^4.1.6" - "@types/fs-extra" "^9.0.11" - "7zip-bin" "~5.1.1" - "app-builder-bin" "4.0.0" - "bluebird-lst" "^1.0.9" - "builder-util-runtime" "9.1.1" - "chalk" "^4.1.1" - "cross-spawn" "^7.0.3" - "debug" "^4.3.4" - "fs-extra" "^10.0.0" - "http-proxy-agent" "^5.0.0" - "https-proxy-agent" "^5.0.0" - "is-ci" "^3.0.0" - "js-yaml" "^4.1.0" - "source-map-support" "^0.5.19" - "stat-mode" "^1.0.0" - "temp-file" "^3.4.0" - -"cacheable-request@^6.0.0": - "integrity" "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==" - "resolved" "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz" - "version" "6.1.0" - dependencies: - "clone-response" "^1.0.2" - "get-stream" "^5.1.0" - "http-cache-semantics" "^4.0.0" - "keyv" "^3.0.0" - "lowercase-keys" "^2.0.0" - "normalize-url" "^4.1.0" - "responselike" "^1.0.2" - -"chalk@^4.0.2", "chalk@^4.1.1": - "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - "version" "4.1.2" - dependencies: - "ansi-styles" "^4.1.0" - "supports-color" "^7.1.0" - -"chownr@^2.0.0": - "integrity" "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" - "resolved" "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz" - "version" "2.0.0" - -"chromium-pickle-js@^0.2.0": - "integrity" "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==" - "resolved" "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz" - "version" "0.2.0" - -"ci-info@^3.2.0": - "integrity" "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==" - "resolved" "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz" - "version" "3.8.0" - -"cliui@^8.0.1": - "integrity" "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==" - "resolved" "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" - "version" "8.0.1" - dependencies: - "string-width" "^4.2.0" - "strip-ansi" "^6.0.1" - "wrap-ansi" "^7.0.0" - -"clone-response@^1.0.2": - "integrity" "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==" - "resolved" "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz" - "version" "1.0.3" - dependencies: - "mimic-response" "^1.0.0" - -"color-convert@^2.0.1": - "integrity" "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" - "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "color-name" "~1.1.4" - -"color-name@~1.1.4": - "integrity" "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - "version" "1.1.4" - -"colors@1.0.3": - "integrity" "sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==" - "resolved" "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz" - "version" "1.0.3" - -"combined-stream@^1.0.8": - "integrity" "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==" - "resolved" "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" - "version" "1.0.8" - dependencies: - "delayed-stream" "~1.0.0" - -"commander@^5.0.0": - "integrity" "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" - "resolved" "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz" - "version" "5.1.0" - -"commander@2.9.0": - "integrity" "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A==" - "resolved" "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz" - "version" "2.9.0" - dependencies: - "graceful-readlink" ">= 1.0.0" - -"compare-version@^0.1.2": - "integrity" "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==" - "resolved" "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz" - "version" "0.1.2" - -"concat-map@0.0.1": - "integrity" "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - "resolved" "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" - "version" "0.0.1" - -"concat-stream@^1.6.2": - "integrity" "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==" - "resolved" "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz" - "version" "1.6.2" - dependencies: - "buffer-from" "^1.0.0" - "inherits" "^2.0.3" - "readable-stream" "^2.2.2" - "typedarray" "^0.0.6" - -"config-chain@^1.1.11": - "integrity" "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==" - "resolved" "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz" - "version" "1.1.13" - dependencies: - "ini" "^1.3.4" - "proto-list" "~1.2.1" - -"core-util-is@~1.0.0": - "integrity" "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" - "resolved" "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" - "version" "1.0.2" - -"cross-spawn@^7.0.1", "cross-spawn@^7.0.3": - "integrity" "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==" - "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" - "version" "7.0.3" - dependencies: - "path-key" "^3.1.0" - "shebang-command" "^2.0.0" - "which" "^2.0.1" - -"debug@^2.6.8": - "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" - "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - "version" "2.6.9" - dependencies: - "ms" "2.0.0" - -"debug@^2.6.9": - "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" - "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - "version" "2.6.9" - dependencies: - "ms" "2.0.0" - -"debug@^4.1.0", "debug@^4.1.1", "debug@^4.3.1", "debug@^4.3.4", "debug@4": - "integrity" "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==" - "resolved" "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" - "version" "4.3.4" - dependencies: - "ms" "2.1.2" - -"decompress-response@^3.3.0": - "integrity" "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==" - "resolved" "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz" - "version" "3.3.0" - dependencies: - "mimic-response" "^1.0.0" - -"defer-to-connect@^1.0.1": - "integrity" "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" - "resolved" "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz" - "version" "1.1.3" - -"define-properties@^1.1.3": - "integrity" "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==" - "resolved" "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz" - "version" "1.2.0" - dependencies: - "has-property-descriptors" "^1.0.0" - "object-keys" "^1.1.1" - -"delayed-stream@~1.0.0": - "integrity" "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - "resolved" "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - "version" "1.0.0" - -"detect-node@^2.0.4": - "integrity" "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - "resolved" "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz" - "version" "2.1.0" - -"dir-compare@^2.4.0": - "integrity" "sha512-l9hmu8x/rjVC9Z2zmGzkhOEowZvW7pmYws5CWHutg8u1JgvsKWMx7Q/UODeu4djLZ4FgW5besw5yvMQnBHzuCA==" - "resolved" "https://registry.npmjs.org/dir-compare/-/dir-compare-2.4.0.tgz" - "version" "2.4.0" - dependencies: - "buffer-equal" "1.0.0" - "colors" "1.0.3" - "commander" "2.9.0" - "minimatch" "3.0.4" - -"dmg-builder@23.6.0": - "integrity" "sha512-jFZvY1JohyHarIAlTbfQOk+HnceGjjAdFjVn3n8xlDWKsYNqbO4muca6qXEZTfGXeQMG7TYim6CeS5XKSfSsGA==" - "resolved" "https://registry.npmjs.org/dmg-builder/-/dmg-builder-23.6.0.tgz" - "version" "23.6.0" - dependencies: - "app-builder-lib" "23.6.0" - "builder-util" "23.6.0" - "builder-util-runtime" "9.1.1" - "fs-extra" "^10.0.0" - "iconv-lite" "^0.6.2" - "js-yaml" "^4.1.0" + app-builder-bin "4.0.0" + bluebird-lst "^1.0.9" + builder-util-runtime "9.2.3" + chalk "^4.1.2" + cross-spawn "^7.0.3" + debug "^4.3.4" + fs-extra "^10.1.0" + http-proxy-agent "^5.0.0" + https-proxy-agent "^5.0.1" + is-ci "^3.0.0" + js-yaml "^4.1.0" + source-map-support "^0.5.19" + stat-mode "^1.0.0" + temp-file "^3.4.0" + +cacheable-lookup@^5.0.3: + version "5.0.4" + resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz#5a6b865b2c44357be3d5ebc2a467b032719a7005" + integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA== + +cacheable-request@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.4.tgz#7a33ebf08613178b403635be7b899d3e69bbe817" + integrity sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg== + dependencies: + clone-response "^1.0.2" + get-stream "^5.1.0" + http-cache-semantics "^4.0.0" + keyv "^4.0.0" + lowercase-keys "^2.0.0" + normalize-url "^6.0.1" + responselike "^2.0.0" + +chalk@^4.0.2, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chownr@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz" + integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== + +chromium-pickle-js@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz" + integrity sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw== + +ci-info@^3.2.0: + version "3.8.0" + resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz" + integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== + +cli-truncate@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-2.1.0.tgz#c39e28bf05edcde5be3b98992a22deed5a2b93c7" + integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== + dependencies: + slice-ansi "^3.0.0" + string-width "^4.2.0" + +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +clone-response@^1.0.2: + version "1.0.3" + resolved "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz" + integrity sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA== + dependencies: + mimic-response "^1.0.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commander@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz" + integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg== + +compare-version@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz" + integrity sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A== + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +config-file-ts@^0.2.4: + version "0.2.6" + resolved "https://registry.yarnpkg.com/config-file-ts/-/config-file-ts-0.2.6.tgz#b424ff74612fb37f626d6528f08f92ddf5d22027" + integrity sha512-6boGVaglwblBgJqGyxm4+xCmEGcWgnWHSWHY5jad58awQhB6gftq0G8HbzU39YqCIYHMLAiL1yjwiZ36m/CL8w== + dependencies: + glob "^10.3.10" + typescript "^5.3.3" + +core-util-is@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== + +crc@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/crc/-/crc-3.8.0.tgz#ad60269c2c856f8c299e2c4cc0de4556914056c6" + integrity sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ== + dependencies: + buffer "^5.1.0" + +cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.4: + version "4.3.4" + resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + +decompress-response@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" + integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== + dependencies: + mimic-response "^3.1.0" + +defer-to-connect@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" + integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== + +define-properties@^1.1.3: + version "1.2.0" + resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz" + integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +detect-node@^2.0.4: + version "2.1.0" + resolved "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz" + integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== + +dir-compare@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/dir-compare/-/dir-compare-3.3.0.tgz#2c749f973b5c4b5d087f11edaae730db31788416" + integrity sha512-J7/et3WlGUCxjdnD3HAAzQ6nsnc0WL6DD7WcwJb7c39iH1+AWfg+9OqzJNaI6PkBwBvm1mhZNL9iY/nRiZXlPg== + dependencies: + buffer-equal "^1.0.0" + minimatch "^3.0.4" + +dmg-builder@24.12.0: + version "24.12.0" + resolved "https://registry.yarnpkg.com/dmg-builder/-/dmg-builder-24.12.0.tgz#62a08162f2b3160a286d03ebb6db65c36a3711c7" + integrity sha512-nS22OyHUIYcK40UnILOtqC5Qffd1SN1Ljqy/6e+QR2H1wM3iNBrKJoEbDRfEmYYaALKNFRkKPqSbZKRsGUBdPw== + dependencies: + app-builder-lib "24.12.0" + builder-util "24.9.4" + builder-util-runtime "9.2.3" + fs-extra "^10.1.0" + iconv-lite "^0.6.2" + js-yaml "^4.1.0" optionalDependencies: - "dmg-license" "^1.0.11" - -"dotenv-expand@^5.1.0": - "integrity" "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" - "resolved" "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz" - "version" "5.1.0" - -"dotenv@^9.0.2": - "integrity" "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==" - "resolved" "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz" - "version" "9.0.2" - -"duplexer3@^0.1.4": - "integrity" "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==" - "resolved" "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz" - "version" "0.1.5" - -"ejs@^3.1.7": - "integrity" "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==" - "resolved" "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz" - "version" "3.1.9" - dependencies: - "jake" "^10.8.5" - -"electron-builder@^23.0.3": - "integrity" "sha512-y8D4zO+HXGCNxFBV/JlyhFnoQ0Y0K7/sFH+XwIbj47pqaW8S6PGYQbjoObolKBR1ddQFPt4rwp4CnwMJrW3HAw==" - "resolved" "https://registry.npmjs.org/electron-builder/-/electron-builder-23.6.0.tgz" - "version" "23.6.0" - dependencies: - "@types/yargs" "^17.0.1" - "app-builder-lib" "23.6.0" - "builder-util" "23.6.0" - "builder-util-runtime" "9.1.1" - "chalk" "^4.1.1" - "dmg-builder" "23.6.0" - "fs-extra" "^10.0.0" - "is-ci" "^3.0.0" - "lazy-val" "^1.0.5" - "read-config-file" "6.2.0" - "simple-update-notifier" "^1.0.7" - "yargs" "^17.5.1" - -"electron-osx-sign@^0.6.0": - "integrity" "sha512-+hiIEb2Xxk6eDKJ2FFlpofCnemCbjbT5jz+BKGpVBrRNT3kWTGs4DfNX6IzGwgi33hUcXF+kFs9JW+r6Wc1LRg==" - "resolved" "https://registry.npmjs.org/electron-osx-sign/-/electron-osx-sign-0.6.0.tgz" - "version" "0.6.0" - dependencies: - "bluebird" "^3.5.0" - "compare-version" "^0.1.2" - "debug" "^2.6.8" - "isbinaryfile" "^3.0.2" - "minimist" "^1.2.0" - "plist" "^3.0.1" - -"electron-publish@23.6.0": - "integrity" "sha512-jPj3y+eIZQJF/+t5SLvsI5eS4mazCbNYqatv5JihbqOstIM13k0d1Z3vAWntvtt13Itl61SO6seicWdioOU5dg==" - "resolved" "https://registry.npmjs.org/electron-publish/-/electron-publish-23.6.0.tgz" - "version" "23.6.0" + dmg-license "^1.0.11" + +dmg-license@^1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/dmg-license/-/dmg-license-1.0.11.tgz#7b3bc3745d1b52be7506b4ee80cb61df6e4cd79a" + integrity sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q== + dependencies: + "@types/plist" "^3.0.1" + "@types/verror" "^1.10.3" + ajv "^6.10.0" + crc "^3.8.0" + iconv-corefoundation "^1.1.7" + plist "^3.0.4" + smart-buffer "^4.0.2" + verror "^1.10.0" + +dotenv-expand@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz" + integrity sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA== + +dotenv@^9.0.2: + version "9.0.2" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz" + integrity sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg== + +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== + +ejs@^3.1.8: + version "3.1.9" + resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.9.tgz#03c9e8777fe12686a9effcef22303ca3d8eeb361" + integrity sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ== + dependencies: + jake "^10.8.5" + +electron-builder@^24.12.0: + version "24.12.0" + resolved "https://registry.yarnpkg.com/electron-builder/-/electron-builder-24.12.0.tgz#95c41d14b3b1cc177db62715e42ef9fd27344491" + integrity sha512-dH4O9zkxFxFbBVFobIR5FA71yJ1TZSCvjZ2maCskpg7CWjBF+SNRSQAThlDyUfRuB+jBTMwEMzwARywmap0CSw== + dependencies: + app-builder-lib "24.12.0" + builder-util "24.9.4" + builder-util-runtime "9.2.3" + chalk "^4.1.2" + dmg-builder "24.12.0" + fs-extra "^10.1.0" + is-ci "^3.0.0" + lazy-val "^1.0.5" + read-config-file "6.3.2" + simple-update-notifier "2.0.0" + yargs "^17.6.2" + +electron-publish@24.9.4: + version "24.9.4" + resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-24.9.4.tgz#70db542763a78e4980e4e6409c203aef320d0d05" + integrity sha512-FghbeVMfxHneHjsG2xUSC0NMZYWOOWhBxfZKPTbibcJ0CjPH0Ph8yb5CUO62nqywXfA5u1Otq6K8eOdOixxmNg== dependencies: "@types/fs-extra" "^9.0.11" - "builder-util" "23.6.0" - "builder-util-runtime" "9.1.1" - "chalk" "^4.1.1" - "fs-extra" "^10.0.0" - "lazy-val" "^1.0.5" - "mime" "^2.5.2" - -"electron@^18.3.7": - "integrity" "sha512-frkBt8skyo8SmlG4TbByDxZw6/tqttRYYIBaeTBfkoG18OyD59IVwVaXXHO8UYKB5/1C2Rce0Gj6uoxlAHQHzQ==" - "resolved" "https://registry.npmjs.org/electron/-/electron-18.3.15.tgz" - "version" "18.3.15" - dependencies: - "@electron/get" "^1.13.0" - "@types/node" "^16.11.26" - "extract-zip" "^1.0.3" - -"emoji-regex@^8.0.0": - "integrity" "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" - "version" "8.0.0" - -"encodeurl@^1.0.2": - "integrity" "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" - "resolved" "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" - "version" "1.0.2" - -"end-of-stream@^1.1.0": - "integrity" "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==" - "resolved" "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" - "version" "1.4.4" - dependencies: - "once" "^1.4.0" - -"env-paths@^2.2.0": - "integrity" "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==" - "resolved" "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz" - "version" "2.2.1" - -"es6-error@^4.1.1": - "integrity" "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==" - "resolved" "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz" - "version" "4.1.1" - -"escalade@^3.1.1": - "integrity" "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - "resolved" "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" - "version" "3.1.1" - -"escape-string-regexp@^4.0.0": - "integrity" "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - "version" "4.0.0" - -"extract-zip@^1.0.3": - "integrity" "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==" - "resolved" "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz" - "version" "1.7.0" - dependencies: - "concat-stream" "^1.6.2" - "debug" "^2.6.9" - "mkdirp" "^0.5.4" - "yauzl" "^2.10.0" - -"fast-deep-equal@^3.1.1": - "integrity" "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - "resolved" "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" - "version" "3.1.3" - -"fast-json-stable-stringify@^2.0.0": - "integrity" "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - "resolved" "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" - "version" "2.1.0" - -"fd-slicer@~1.1.0": - "integrity" "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==" - "resolved" "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz" - "version" "1.1.0" - dependencies: - "pend" "~1.2.0" - -"filelist@^1.0.4": - "integrity" "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==" - "resolved" "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz" - "version" "1.0.4" - dependencies: - "minimatch" "^5.0.1" - -"form-data@^4.0.0": - "integrity" "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==" - "resolved" "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "asynckit" "^0.4.0" - "combined-stream" "^1.0.8" - "mime-types" "^2.1.12" - -"fs-extra@^10.0.0": - "integrity" "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" - "version" "10.1.0" - dependencies: - "graceful-fs" "^4.2.0" - "jsonfile" "^6.0.1" - "universalify" "^2.0.0" - -"fs-extra@^10.1.0": - "integrity" "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" - "version" "10.1.0" - dependencies: - "graceful-fs" "^4.2.0" - "jsonfile" "^6.0.1" - "universalify" "^2.0.0" - -"fs-extra@^8.1.0": - "integrity" "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" - "version" "8.1.0" - dependencies: - "graceful-fs" "^4.2.0" - "jsonfile" "^4.0.0" - "universalify" "^0.1.0" - -"fs-extra@^9.0.0": - "integrity" "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" - "version" "9.1.0" - dependencies: - "at-least-node" "^1.0.0" - "graceful-fs" "^4.2.0" - "jsonfile" "^6.0.1" - "universalify" "^2.0.0" - -"fs-extra@^9.0.1": - "integrity" "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" - "version" "9.1.0" - dependencies: - "at-least-node" "^1.0.0" - "graceful-fs" "^4.2.0" - "jsonfile" "^6.0.1" - "universalify" "^2.0.0" - -"fs-minipass@^2.0.0": - "integrity" "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==" - "resolved" "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz" - "version" "2.1.0" - dependencies: - "minipass" "^3.0.0" - -"fs.realpath@^1.0.0": - "integrity" "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" - "version" "1.0.0" - -"function-bind@^1.1.1": - "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" - "version" "1.1.1" - -"get-caller-file@^2.0.5": - "integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - "resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" - "version" "2.0.5" - -"get-intrinsic@^1.1.1": - "integrity" "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==" - "resolved" "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz" - "version" "1.2.1" - dependencies: - "function-bind" "^1.1.1" - "has" "^1.0.3" - "has-proto" "^1.0.1" - "has-symbols" "^1.0.3" - -"get-stream@^4.1.0": - "integrity" "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==" - "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "pump" "^3.0.0" - -"get-stream@^5.1.0": - "integrity" "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==" - "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" - "version" "5.2.0" - dependencies: - "pump" "^3.0.0" - -"glob@^7.1.3", "glob@^7.1.6": - "integrity" "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==" - "resolved" "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" - "version" "7.2.3" - dependencies: - "fs.realpath" "^1.0.0" - "inflight" "^1.0.4" - "inherits" "2" - "minimatch" "^3.1.1" - "once" "^1.3.0" - "path-is-absolute" "^1.0.0" - -"global-agent@^3.0.0": - "integrity" "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==" - "resolved" "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "boolean" "^3.0.1" - "es6-error" "^4.1.1" - "matcher" "^3.0.0" - "roarr" "^2.15.3" - "semver" "^7.3.2" - "serialize-error" "^7.0.1" - -"global-tunnel-ng@^2.7.1": - "integrity" "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==" - "resolved" "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz" - "version" "2.7.1" - dependencies: - "encodeurl" "^1.0.2" - "lodash" "^4.17.10" - "npm-conf" "^1.1.3" - "tunnel" "^0.0.6" - -"globalthis@^1.0.1": - "integrity" "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==" - "resolved" "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz" - "version" "1.0.3" - dependencies: - "define-properties" "^1.1.3" - -"got@^9.6.0": - "integrity" "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==" - "resolved" "https://registry.npmjs.org/got/-/got-9.6.0.tgz" - "version" "9.6.0" - dependencies: - "@sindresorhus/is" "^0.14.0" - "@szmarczak/http-timer" "^1.1.2" - "cacheable-request" "^6.0.0" - "decompress-response" "^3.3.0" - "duplexer3" "^0.1.4" - "get-stream" "^4.1.0" - "lowercase-keys" "^1.0.1" - "mimic-response" "^1.0.1" - "p-cancelable" "^1.0.0" - "to-readable-stream" "^1.0.0" - "url-parse-lax" "^3.0.0" - -"graceful-fs@^4.1.6", "graceful-fs@^4.2.0": - "integrity" "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - "resolved" "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.10.tgz" - "version" "4.2.10" - -"graceful-readlink@>= 1.0.0": - "integrity" "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==" - "resolved" "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz" - "version" "1.0.1" - -"has-flag@^4.0.0": - "integrity" "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" - "version" "4.0.0" - -"has-property-descriptors@^1.0.0": - "integrity" "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==" - "resolved" "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" - "version" "1.0.0" - dependencies: - "get-intrinsic" "^1.1.1" - -"has-proto@^1.0.1": - "integrity" "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" - "resolved" "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz" - "version" "1.0.1" - -"has-symbols@^1.0.3": - "integrity" "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - "resolved" "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" - "version" "1.0.3" - -"has@^1.0.3": - "integrity" "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==" - "resolved" "https://registry.npmjs.org/has/-/has-1.0.3.tgz" - "version" "1.0.3" - dependencies: - "function-bind" "^1.1.1" - -"hosted-git-info@^4.1.0": - "integrity" "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==" - "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "lru-cache" "^6.0.0" - -"http-cache-semantics@^4.0.0": - "integrity" "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - "resolved" "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz" - "version" "4.1.1" - -"http-proxy-agent@^5.0.0": - "integrity" "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==" - "resolved" "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz" - "version" "5.0.0" + builder-util "24.9.4" + builder-util-runtime "9.2.3" + chalk "^4.1.2" + fs-extra "^10.1.0" + lazy-val "^1.0.5" + mime "^2.5.2" + +electron@^29.0.0: + version "29.0.0" + resolved "https://registry.yarnpkg.com/electron/-/electron-29.0.0.tgz#2c1d34a95fc23a5b3530aa53de6eacca89a410b1" + integrity sha512-HhrRC5vWb6fAbWXP3A6ABwKUO9JvYSC4E141RzWFgnDBqNiNtabfmgC8hsVeCR65RQA2MLSDgC8uP52I9zFllQ== + dependencies: + "@electron/get" "^2.0.0" + "@types/node" "^20.9.0" + extract-zip "^2.0.1" + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== + +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +env-paths@^2.2.0: + version "2.2.1" + resolved "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz" + integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== + +err-code@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/err-code/-/err-code-2.0.3.tgz#23c2f3b756ffdfc608d30e27c9a941024807e7f9" + integrity sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA== + +es6-error@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz" + integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg== + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +extract-zip@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-2.0.1.tgz#663dca56fe46df890d5f131ef4a06d22bb8ba13a" + integrity sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg== + dependencies: + debug "^4.1.1" + get-stream "^5.1.0" + yauzl "^2.10.0" + optionalDependencies: + "@types/yauzl" "^2.9.1" + +extsprintf@^1.2.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" + integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== + +fast-deep-equal@^3.1.1: + version "3.1.3" + resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fd-slicer@~1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz" + integrity sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g== + dependencies: + pend "~1.2.0" + +filelist@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz" + integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== + dependencies: + minimatch "^5.0.1" + +foreground-child@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.1.1.tgz#1d173e776d75d2772fed08efe4a0de1ea1b12d0d" + integrity sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg== + dependencies: + cross-spawn "^7.0.0" + signal-exit "^4.0.1" + +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +fs-extra@^10.0.0, fs-extra@^10.1.0: + version "10.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs-extra@^9.0.0, fs-extra@^9.0.1: + version "9.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" + integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs-minipass@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz" + integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== + dependencies: + minipass "^3.0.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-intrinsic@^1.1.1: + version "1.2.1" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz" + integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-proto "^1.0.1" + has-symbols "^1.0.3" + +get-stream@^5.1.0: + version "5.2.0" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== + dependencies: + pump "^3.0.0" + +glob@^10.3.10: + version "10.3.10" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.10.tgz#0351ebb809fd187fe421ab96af83d3a70715df4b" + integrity sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g== + dependencies: + foreground-child "^3.1.0" + jackspeak "^2.3.5" + minimatch "^9.0.1" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + path-scurry "^1.10.1" + +glob@^7.1.3, glob@^7.1.6: + version "7.2.3" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +global-agent@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz" + integrity sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q== + dependencies: + boolean "^3.0.1" + es6-error "^4.1.1" + matcher "^3.0.0" + roarr "^2.15.3" + semver "^7.3.2" + serialize-error "^7.0.1" + +globalthis@^1.0.1: + version "1.0.3" + resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== + dependencies: + define-properties "^1.1.3" + +got@^11.8.5: + version "11.8.6" + resolved "https://registry.yarnpkg.com/got/-/got-11.8.6.tgz#276e827ead8772eddbcfc97170590b841823233a" + integrity sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g== + dependencies: + "@sindresorhus/is" "^4.0.0" + "@szmarczak/http-timer" "^4.0.5" + "@types/cacheable-request" "^6.0.1" + "@types/responselike" "^1.0.0" + cacheable-lookup "^5.0.3" + cacheable-request "^7.0.2" + decompress-response "^6.0.0" + http2-wrapper "^1.0.0-beta.5.2" + lowercase-keys "^2.0.0" + p-cancelable "^2.0.0" + responselike "^2.0.0" + +graceful-fs@^4.1.6, graceful-fs@^4.2.0: + version "4.2.10" + resolved "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.10.tgz" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== + dependencies: + get-intrinsic "^1.1.1" + +has-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz" + integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== + +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hosted-git-info@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz" + integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== + dependencies: + lru-cache "^6.0.0" + +http-cache-semantics@^4.0.0: + version "4.1.1" + resolved "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz" + integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== + +http-proxy-agent@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz" + integrity sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w== dependencies: "@tootallnate/once" "2" - "agent-base" "6" - "debug" "4" - -"https-proxy-agent@^5.0.0": - "integrity" "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==" - "resolved" "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" - "version" "5.0.1" - dependencies: - "agent-base" "6" - "debug" "4" - -"iconv-lite@^0.6.2": - "integrity" "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==" - "resolved" "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz" - "version" "0.6.3" - dependencies: - "safer-buffer" ">= 2.1.2 < 3.0.0" - -"inflight@^1.0.4": - "integrity" "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==" - "resolved" "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" - "version" "1.0.6" - dependencies: - "once" "^1.3.0" - "wrappy" "1" - -"inherits@^2.0.3", "inherits@~2.0.3", "inherits@2": - "integrity" "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" - "version" "2.0.4" - -"ini@^1.3.4": - "integrity" "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - "resolved" "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" - "version" "1.3.8" - -"is-ci@^3.0.0": - "integrity" "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==" - "resolved" "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "ci-info" "^3.2.0" - -"is-fullwidth-code-point@^3.0.0": - "integrity" "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" - "version" "3.0.0" - -"isarray@~1.0.0": - "integrity" "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - "resolved" "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" - "version" "1.0.0" - -"isbinaryfile@^3.0.2": - "integrity" "sha512-8cJBL5tTd2OS0dM4jz07wQd5g0dCCqIhUxPIGtZfa5L6hWlvV5MHTITy/DBAsF+Oe2LS1X3krBUhNwaGUWpWxw==" - "resolved" "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.3.tgz" - "version" "3.0.3" - dependencies: - "buffer-alloc" "^1.2.0" - -"isbinaryfile@^4.0.10": - "integrity" "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==" - "resolved" "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz" - "version" "4.0.10" - -"isexe@^2.0.0": - "integrity" "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - "resolved" "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" - "version" "2.0.0" - -"jake@^10.8.5": - "integrity" "sha512-G43Ub9IYEFfu72sua6rzooi8V8Gz2lkfk48rW20vEWCGizeaEPlKB1Kh8JIA84yQbiAEfqlPmSpGgCKKxH3rDA==" - "resolved" "https://registry.npmjs.org/jake/-/jake-10.8.6.tgz" - "version" "10.8.6" - dependencies: - "async" "^3.2.3" - "chalk" "^4.0.2" - "filelist" "^1.0.4" - "minimatch" "^3.1.2" - -"js-yaml@^4.1.0": - "integrity" "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==" - "resolved" "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "argparse" "^2.0.1" - -"json-buffer@3.0.0": - "integrity" "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" - "resolved" "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz" - "version" "3.0.0" - -"json-schema-traverse@^0.4.1": - "integrity" "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" - "version" "0.4.1" - -"json-stringify-safe@^5.0.1": - "integrity" "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - "resolved" "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" - "version" "5.0.1" - -"json5@^2.2.0": - "integrity" "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" - "resolved" "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" - "version" "2.2.3" - -"jsonfile@^4.0.0": - "integrity" "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==" - "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" - "version" "4.0.0" + agent-base "6" + debug "4" + +http2-wrapper@^1.0.0-beta.5.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/http2-wrapper/-/http2-wrapper-1.0.3.tgz#b8f55e0c1f25d4ebd08b3b0c2c079f9590800b3d" + integrity sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg== + dependencies: + quick-lru "^5.1.1" + resolve-alpn "^1.0.0" + +https-proxy-agent@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + +iconv-corefoundation@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz#31065e6ab2c9272154c8b0821151e2c88f1b002a" + integrity sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ== + dependencies: + cli-truncate "^2.1.0" + node-addon-api "^1.6.3" + +iconv-lite@^0.6.2: + version "0.6.3" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +ieee754@^1.1.13: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2: + version "2.0.4" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +is-ci@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" + integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ== + dependencies: + ci-info "^3.2.0" + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +isbinaryfile@^4.0.8: + version "4.0.10" + resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz#0c5b5e30c2557a2f06febd37b7322946aaee42b3" + integrity sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw== + +isbinaryfile@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-5.0.2.tgz#fe6e4dfe2e34e947ffa240c113444876ba393ae0" + integrity sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +jackspeak@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.6.tgz#647ecc472238aee4b06ac0e461acc21a8c505ca8" + integrity sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ== + dependencies: + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" + +jake@^10.8.5: + version "10.8.6" + resolved "https://registry.npmjs.org/jake/-/jake-10.8.6.tgz" + integrity sha512-G43Ub9IYEFfu72sua6rzooi8V8Gz2lkfk48rW20vEWCGizeaEPlKB1Kh8JIA84yQbiAEfqlPmSpGgCKKxH3rDA== + dependencies: + async "^3.2.3" + chalk "^4.0.2" + filelist "^1.0.4" + minimatch "^3.1.2" + +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-stringify-safe@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" + integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== + +json5@^2.2.0: + version "2.2.3" + resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== optionalDependencies: - "graceful-fs" "^4.1.6" + graceful-fs "^4.1.6" -"jsonfile@^6.0.1": - "integrity" "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==" - "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" - "version" "6.1.0" +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== dependencies: - "universalify" "^2.0.0" + universalify "^2.0.0" optionalDependencies: - "graceful-fs" "^4.1.6" + graceful-fs "^4.1.6" -"keyv@^3.0.0": - "integrity" "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==" - "resolved" "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz" - "version" "3.1.0" +keyv@^4.0.0: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== dependencies: - "json-buffer" "3.0.0" + json-buffer "3.0.1" -"lazy-val@^1.0.4", "lazy-val@^1.0.5": - "integrity" "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==" - "resolved" "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz" - "version" "1.0.5" +lazy-val@^1.0.4, lazy-val@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz" + integrity sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q== -"lodash@^4.17.10", "lodash@^4.17.15": - "integrity" "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - "resolved" "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" - "version" "4.17.21" +lodash@^4.17.15: + version "4.17.21" + resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -"lowercase-keys@^1.0.0", "lowercase-keys@^1.0.1": - "integrity" "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" - "resolved" "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz" - "version" "1.0.1" +lowercase-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz" + integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" -"lowercase-keys@^2.0.0": - "integrity" "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" - "resolved" "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz" - "version" "2.0.0" - -"lru-cache@^6.0.0": - "integrity" "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==" - "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" - "version" "6.0.0" - dependencies: - "yallist" "^4.0.0" - -"matcher@^3.0.0": - "integrity" "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==" - "resolved" "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "escape-string-regexp" "^4.0.0" - -"mime-db@1.52.0": - "integrity" "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - "resolved" "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" - "version" "1.52.0" - -"mime-types@^2.1.12": - "integrity" "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==" - "resolved" "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" - "version" "2.1.35" - dependencies: - "mime-db" "1.52.0" - -"mime@^2.5.2": - "integrity" "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==" - "resolved" "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz" - "version" "2.6.0" - -"mimic-response@^1.0.0", "mimic-response@^1.0.1": - "integrity" "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" - "resolved" "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz" - "version" "1.0.1" - -"minimatch@^3.0.4", "minimatch@^3.1.1", "minimatch@^3.1.2": - "integrity" "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==" - "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - "version" "3.1.2" - dependencies: - "brace-expansion" "^1.1.7" - -"minimatch@^5.0.1": - "integrity" "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==" - "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz" - "version" "5.1.6" - dependencies: - "brace-expansion" "^2.0.1" - -"minimatch@3.0.4": - "integrity" "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==" - "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" - "version" "3.0.4" - dependencies: - "brace-expansion" "^1.1.7" - -"minimist@^1.2.0", "minimist@^1.2.6": - "integrity" "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" - "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" - "version" "1.2.8" - -"minipass@^3.0.0": - "integrity" "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==" - "resolved" "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz" - "version" "3.3.6" - dependencies: - "yallist" "^4.0.0" - -"minipass@^5.0.0": - "integrity" "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==" - "resolved" "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz" - "version" "5.0.0" - -"minizlib@^2.1.1": - "integrity" "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==" - "resolved" "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz" - "version" "2.1.2" - dependencies: - "minipass" "^3.0.0" - "yallist" "^4.0.0" - -"mkdirp@^0.5.4": - "integrity" "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==" - "resolved" "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" - "version" "0.5.6" - dependencies: - "minimist" "^1.2.6" - -"mkdirp@^1.0.3": - "integrity" "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" - "resolved" "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" - "version" "1.0.4" - -"ms@2.0.0": - "integrity" "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - "resolved" "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" - "version" "2.0.0" - -"ms@2.1.2": - "integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" - "version" "2.1.2" - -"normalize-url@^4.1.0": - "integrity" "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==" - "resolved" "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz" - "version" "4.5.1" - -"npm-conf@^1.1.3": - "integrity" "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==" - "resolved" "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz" - "version" "1.1.3" - dependencies: - "config-chain" "^1.1.11" - "pify" "^3.0.0" - -"object-keys@^1.1.1": - "integrity" "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - "resolved" "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" - "version" "1.1.1" - -"once@^1.3.0", "once@^1.3.1", "once@^1.4.0": - "integrity" "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==" - "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - "version" "1.4.0" - dependencies: - "wrappy" "1" - -"p-cancelable@^1.0.0": - "integrity" "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" - "resolved" "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz" - "version" "1.1.0" - -"path-is-absolute@^1.0.0": - "integrity" "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" - "resolved" "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - "version" "1.0.1" - -"path-key@^3.1.0": - "integrity" "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" - "resolved" "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" - "version" "3.1.1" - -"pend@~1.2.0": - "integrity" "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" - "resolved" "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz" - "version" "1.2.0" - -"pify@^3.0.0": - "integrity" "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==" - "resolved" "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz" - "version" "3.0.0" - -"plist@^3.0.1", "plist@^3.0.4": - "integrity" "sha512-WiIVYyrp8TD4w8yCvyeIr+lkmrGRd5u0VbRnU+tP/aRLxP/YadJUYOMZJ/6hIa3oUyVCsycXvtNRgd5XBJIbiA==" - "resolved" "https://registry.npmjs.org/plist/-/plist-3.0.6.tgz" - "version" "3.0.6" - dependencies: - "base64-js" "^1.5.1" - "xmlbuilder" "^15.1.1" - -"prepend-http@^2.0.0": - "integrity" "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==" - "resolved" "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz" - "version" "2.0.0" - -"process-nextick-args@~2.0.0": - "integrity" "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - "resolved" "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" - "version" "2.0.1" - -"progress@^2.0.3": - "integrity" "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" - "resolved" "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" - "version" "2.0.3" - -"proto-list@~1.2.1": - "integrity" "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" - "resolved" "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz" - "version" "1.2.4" - -"pump@^3.0.0": - "integrity" "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==" - "resolved" "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "end-of-stream" "^1.1.0" - "once" "^1.3.1" - -"punycode@^2.1.0": - "integrity" "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" - "resolved" "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" - "version" "2.3.0" - -"read-config-file@6.2.0": - "integrity" "sha512-gx7Pgr5I56JtYz+WuqEbQHj/xWo+5Vwua2jhb1VwM4Wid5PqYmZ4i00ZB0YEGIfkVBsCv9UrjgyqCiQfS/Oosg==" - "resolved" "https://registry.npmjs.org/read-config-file/-/read-config-file-6.2.0.tgz" - "version" "6.2.0" - dependencies: - "dotenv" "^9.0.2" - "dotenv-expand" "^5.1.0" - "js-yaml" "^4.1.0" - "json5" "^2.2.0" - "lazy-val" "^1.0.4" - -"readable-stream@^2.2.2": - "integrity" "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==" - "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz" - "version" "2.3.8" - dependencies: - "core-util-is" "~1.0.0" - "inherits" "~2.0.3" - "isarray" "~1.0.0" - "process-nextick-args" "~2.0.0" - "safe-buffer" "~5.1.1" - "string_decoder" "~1.1.1" - "util-deprecate" "~1.0.1" - -"require-directory@^2.1.1": - "integrity" "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" - "resolved" "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" - "version" "2.1.1" - -"responselike@^1.0.2": - "integrity" "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==" - "resolved" "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "lowercase-keys" "^1.0.0" - -"rimraf@^3.0.0": - "integrity" "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==" - "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - "version" "3.0.2" - dependencies: - "glob" "^7.1.3" - -"roarr@^2.15.3": - "integrity" "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==" - "resolved" "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz" - "version" "2.15.4" - dependencies: - "boolean" "^3.0.1" - "detect-node" "^2.0.4" - "globalthis" "^1.0.1" - "json-stringify-safe" "^5.0.1" - "semver-compare" "^1.0.0" - "sprintf-js" "^1.1.2" - -"safe-buffer@~5.1.0", "safe-buffer@~5.1.1": - "integrity" "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" - "version" "5.1.2" +"lru-cache@^9.1.1 || ^10.0.0": + version "10.2.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.0.tgz#0bd445ca57363465900f4d1f9bd8db343a4d95c3" + integrity sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q== + +matcher@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz" + integrity sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng== + dependencies: + escape-string-regexp "^4.0.0" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@^2.5.2: + version "2.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz" + integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== + +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + +mimic-response@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" + integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== + +minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^5.0.1, minimatch@^5.1.1: + version "5.1.6" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz" + integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^9.0.1: + version "9.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" + integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== + dependencies: + brace-expansion "^2.0.1" + +minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +minipass@^3.0.0: + version "3.3.6" + resolved "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz" + integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== + dependencies: + yallist "^4.0.0" + +minipass@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz" + integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== + +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0": + version "7.0.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.0.4.tgz#dbce03740f50a4786ba994c1fb908844d27b038c" + integrity sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ== + +minizlib@^2.1.1: + version "2.1.2" + resolved "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz" + integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== + dependencies: + minipass "^3.0.0" + yallist "^4.0.0" + +mkdirp@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +node-addon-api@^1.6.3: + version "1.7.2" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-1.7.2.tgz#3df30b95720b53c24e59948b49532b662444f54d" + integrity sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg== + +normalize-url@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" + integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== + +object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +p-cancelable@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf" + integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-scurry@^1.10.1: + version "1.10.1" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.10.1.tgz#9ba6bf5aa8500fe9fd67df4f0d9483b2b0bfc698" + integrity sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ== + dependencies: + lru-cache "^9.1.1 || ^10.0.0" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + +pend@~1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz" + integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== + +plist@^3.0.4: + version "3.0.6" + resolved "https://registry.npmjs.org/plist/-/plist-3.0.6.tgz" + integrity sha512-WiIVYyrp8TD4w8yCvyeIr+lkmrGRd5u0VbRnU+tP/aRLxP/YadJUYOMZJ/6hIa3oUyVCsycXvtNRgd5XBJIbiA== + dependencies: + base64-js "^1.5.1" + xmlbuilder "^15.1.1" + +plist@^3.0.5: + version "3.1.0" + resolved "https://registry.yarnpkg.com/plist/-/plist-3.1.0.tgz#797a516a93e62f5bde55e0b9cc9c967f860893c9" + integrity sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ== + dependencies: + "@xmldom/xmldom" "^0.8.8" + base64-js "^1.5.1" + xmlbuilder "^15.1.1" + +progress@^2.0.3: + version "2.0.3" + resolved "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +promise-retry@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-2.0.1.tgz#ff747a13620ab57ba688f5fc67855410c370da22" + integrity sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g== + dependencies: + err-code "^2.0.2" + retry "^0.12.0" + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +punycode@^2.1.0: + version "2.3.0" + resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" + integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== + +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + +read-config-file@6.3.2: + version "6.3.2" + resolved "https://registry.yarnpkg.com/read-config-file/-/read-config-file-6.3.2.tgz#556891aa6ffabced916ed57457cb192e61880411" + integrity sha512-M80lpCjnE6Wt6zb98DoW8WHR09nzMSpu8XHtPkiTHrJ5Az9CybfeQhTJ8D7saeBHpGhLPIVyA8lcL6ZmdKwY6Q== + dependencies: + config-file-ts "^0.2.4" + dotenv "^9.0.2" + dotenv-expand "^5.1.0" + js-yaml "^4.1.0" + json5 "^2.2.0" + lazy-val "^1.0.4" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +resolve-alpn@^1.0.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz#b7adbdac3546aaaec20b45e7d8265927072726f9" + integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== + +responselike@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.1.tgz#9a0bc8fdc252f3fb1cca68b016591059ba1422bc" + integrity sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw== + dependencies: + lowercase-keys "^2.0.0" + +retry@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" + integrity sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow== + +rimraf@^3.0.0: + version "3.0.2" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +roarr@^2.15.3: + version "2.15.4" + resolved "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz" + integrity sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A== + dependencies: + boolean "^3.0.1" + detect-node "^2.0.4" + globalthis "^1.0.1" + json-stringify-safe "^5.0.1" + semver-compare "^1.0.0" + sprintf-js "^1.1.2" "safer-buffer@>= 2.1.2 < 3.0.0": - "integrity" "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" - "version" "2.1.2" - -"sanitize-filename@^1.6.3": - "integrity" "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==" - "resolved" "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz" - "version" "1.6.3" - dependencies: - "truncate-utf8-bytes" "^1.0.0" + version "2.1.2" + resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sanitize-filename@^1.6.3: + version "1.6.3" + resolved "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz" + integrity sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg== + dependencies: + truncate-utf8-bytes "^1.0.0" + +sax@^1.2.4: + version "1.2.4" + resolved "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +semver-compare@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" + integrity sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow== + +semver@^6.2.0: + version "6.3.0" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^7.3.2: + version "7.5.1" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz" + integrity sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw== + dependencies: + lru-cache "^6.0.0" + +semver@^7.3.8, semver@^7.5.3: + version "7.6.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" + integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== + dependencies: + lru-cache "^6.0.0" + +serialize-error@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz" + integrity sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw== + dependencies: + type-fest "^0.13.1" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +signal-exit@^4.0.1: + version "4.1.0" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== + +simple-update-notifier@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz#d70b92bdab7d6d90dfd73931195a30b6e3d7cebb" + integrity sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w== + dependencies: + semver "^7.5.3" -"sax@^1.2.4": - "integrity" "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - "resolved" "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz" - "version" "1.2.4" - -"semver-compare@^1.0.0": - "integrity" "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==" - "resolved" "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" - "version" "1.0.0" - -"semver@^6.2.0": - "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" - "version" "6.3.0" - -"semver@^7.3.2": - "integrity" "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz" - "version" "7.5.1" - dependencies: - "lru-cache" "^6.0.0" +slice-ansi@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" + integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + +smart-buffer@^4.0.2: + version "4.2.0" + resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" + integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== + +source-map-support@^0.5.19: + version "0.5.21" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0: + version "0.6.1" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +sprintf-js@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz" + integrity sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug== + +stat-mode@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz" + integrity sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg== + +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" -"semver@^7.3.7": - "integrity" "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz" - "version" "7.5.1" +string-width@^5.0.1, string-width@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== dependencies: - "lru-cache" "^6.0.0" - -"semver@~7.0.0": - "integrity" "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==" - "resolved" "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz" - "version" "7.0.0" - -"serialize-error@^7.0.1": - "integrity" "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==" - "resolved" "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz" - "version" "7.0.1" - dependencies: - "type-fest" "^0.13.1" - -"shebang-command@^2.0.0": - "integrity" "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==" - "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" - "version" "2.0.0" - dependencies: - "shebang-regex" "^3.0.0" - -"shebang-regex@^3.0.0": - "integrity" "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" - "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" - "version" "3.0.0" - -"simple-update-notifier@^1.0.7": - "integrity" "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==" - "resolved" "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz" - "version" "1.1.0" - dependencies: - "semver" "~7.0.0" - -"source-map-support@^0.5.19": - "integrity" "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==" - "resolved" "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz" - "version" "0.5.21" - dependencies: - "buffer-from" "^1.0.0" - "source-map" "^0.6.0" - -"source-map@^0.6.0": - "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" - "version" "0.6.1" - -"sprintf-js@^1.1.2": - "integrity" "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==" - "resolved" "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz" - "version" "1.1.2" - -"stat-mode@^1.0.0": - "integrity" "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==" - "resolved" "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz" - "version" "1.0.0" - -"string_decoder@~1.1.1": - "integrity" "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==" - "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - "version" "1.1.1" - dependencies: - "safe-buffer" "~5.1.0" - -"string-width@^4.1.0", "string-width@^4.2.0", "string-width@^4.2.3": - "integrity" "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==" - "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - "version" "4.2.3" - dependencies: - "emoji-regex" "^8.0.0" - "is-fullwidth-code-point" "^3.0.0" - "strip-ansi" "^6.0.1" - -"strip-ansi@^6.0.0", "strip-ansi@^6.0.1": - "integrity" "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==" - "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - "version" "6.0.1" - dependencies: - "ansi-regex" "^5.0.1" - -"sumchecker@^3.0.1": - "integrity" "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==" - "resolved" "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz" - "version" "3.0.1" - dependencies: - "debug" "^4.1.0" - -"supports-color@^7.1.0": - "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==" - "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" - "version" "7.2.0" - dependencies: - "has-flag" "^4.0.0" - -"tar@^6.1.11": - "integrity" "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==" - "resolved" "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz" - "version" "6.1.15" - dependencies: - "chownr" "^2.0.0" - "fs-minipass" "^2.0.0" - "minipass" "^5.0.0" - "minizlib" "^2.1.1" - "mkdirp" "^1.0.3" - "yallist" "^4.0.0" - -"temp-file@^3.4.0": - "integrity" "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==" - "resolved" "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz" - "version" "3.4.0" - dependencies: - "async-exit-hook" "^2.0.1" - "fs-extra" "^10.0.0" - -"tmp-promise@^3.0.2": - "integrity" "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==" - "resolved" "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz" - "version" "3.0.3" - dependencies: - "tmp" "^0.2.0" - -"tmp@^0.2.0": - "integrity" "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==" - "resolved" "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz" - "version" "0.2.1" - dependencies: - "rimraf" "^3.0.0" - -"to-readable-stream@^1.0.0": - "integrity" "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" - "resolved" "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz" - "version" "1.0.0" - -"truncate-utf8-bytes@^1.0.0": - "integrity" "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==" - "resolved" "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz" - "version" "1.0.2" - dependencies: - "utf8-byte-length" "^1.0.1" - -"tunnel@^0.0.6": - "integrity" "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" - "resolved" "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz" - "version" "0.0.6" - -"type-fest@^0.13.1": - "integrity" "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz" - "version" "0.13.1" - -"typedarray@^0.0.6": - "integrity" "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" - "resolved" "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" - "version" "0.0.6" - -"universalify@^0.1.0": - "integrity" "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - "resolved" "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" - "version" "0.1.2" - -"universalify@^2.0.0": - "integrity" "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" - "resolved" "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" - "version" "2.0.0" - -"uri-js@^4.2.2": - "integrity" "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==" - "resolved" "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" - "version" "4.4.1" - dependencies: - "punycode" "^2.1.0" - -"url-parse-lax@^3.0.0": - "integrity" "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==" - "resolved" "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz" - "version" "3.0.0" - dependencies: - "prepend-http" "^2.0.0" - -"utf8-byte-length@^1.0.1": - "integrity" "sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA==" - "resolved" "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz" - "version" "1.0.4" - -"util-deprecate@~1.0.1": - "integrity" "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - "resolved" "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" - "version" "1.0.2" - -"which@^2.0.1": - "integrity" "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==" - "resolved" "https://registry.npmjs.org/which/-/which-2.0.2.tgz" - "version" "2.0.2" - dependencies: - "isexe" "^2.0.0" - -"wrap-ansi@^7.0.0": - "integrity" "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==" - "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - "version" "7.0.0" - dependencies: - "ansi-styles" "^4.0.0" - "string-width" "^4.1.0" - "strip-ansi" "^6.0.0" - -"wrappy@1": - "integrity" "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - "resolved" "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" - "version" "1.0.2" - -"xmlbuilder@^15.1.1": - "integrity" "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==" - "resolved" "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz" - "version" "15.1.1" - -"y18n@^5.0.5": - "integrity" "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - "resolved" "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" - "version" "5.0.8" - -"yallist@^4.0.0": - "integrity" "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - "resolved" "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" - "version" "4.0.0" - -"yargs-parser@^21.1.1": - "integrity" "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" - "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" - "version" "21.1.1" - -"yargs@^17.5.1": - "integrity" "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==" - "resolved" "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" - "version" "17.7.2" - dependencies: - "cliui" "^8.0.1" - "escalade" "^3.1.1" - "get-caller-file" "^2.0.5" - "require-directory" "^2.1.1" - "string-width" "^4.2.3" - "y18n" "^5.0.5" - "yargs-parser" "^21.1.1" - -"yauzl@^2.10.0": - "integrity" "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==" - "resolved" "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz" - "version" "2.10.0" - dependencies: - "buffer-crc32" "~0.2.3" - "fd-slicer" "~1.1.0" + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.0.1" + +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.0.1: + version "7.1.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== + dependencies: + ansi-regex "^6.0.1" + +sumchecker@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz" + integrity sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg== + dependencies: + debug "^4.1.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +tar@^6.1.12: + version "6.2.0" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.0.tgz#b14ce49a79cb1cd23bc9b016302dea5474493f73" + integrity sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^5.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" + +temp-file@^3.4.0: + version "3.4.0" + resolved "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz" + integrity sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg== + dependencies: + async-exit-hook "^2.0.1" + fs-extra "^10.0.0" + +tmp-promise@^3.0.2: + version "3.0.3" + resolved "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz" + integrity sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ== + dependencies: + tmp "^0.2.0" + +tmp@^0.2.0: + version "0.2.1" + resolved "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz" + integrity sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ== + dependencies: + rimraf "^3.0.0" + +truncate-utf8-bytes@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz" + integrity sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ== + dependencies: + utf8-byte-length "^1.0.1" + +type-fest@^0.13.1: + version "0.13.1" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz" + integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg== + +typescript@^5.3.3: + version "5.3.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" + integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== + +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +utf8-byte-length@^1.0.1: + version "1.0.4" + resolved "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz" + integrity sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA== + +verror@^1.10.0: + version "1.10.1" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.1.tgz#4bf09eeccf4563b109ed4b3d458380c972b0cdeb" + integrity sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg== + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" + integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +xmlbuilder@>=11.0.1, xmlbuilder@^15.1.1: + version "15.1.1" + resolved "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz" + integrity sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs@^17.6.2: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + +yauzl@^2.10.0: + version "2.10.0" + resolved "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz" + integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g== + dependencies: + buffer-crc32 "~0.2.3" + fd-slicer "~1.1.0" diff --git a/yarn.lock b/yarn.lock index 1d1a95852..333dac1d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -73,7 +73,7 @@ ora "5.4.1" rxjs "6.6.7" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7", "@babel/code-frame@^7.22.13", "@babel/code-frame@^7.23.5": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7", "@babel/code-frame@^7.23.5": version "7.23.5" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244" integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA== @@ -87,20 +87,20 @@ integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.5": - version "7.23.7" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.7.tgz#4d8016e06a14b5f92530a13ed0561730b5c6483f" - integrity sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw== + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.9.tgz#b028820718000f267870822fec434820e9b1e4d1" + integrity sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.23.5" "@babel/generator" "^7.23.6" "@babel/helper-compilation-targets" "^7.23.6" "@babel/helper-module-transforms" "^7.23.3" - "@babel/helpers" "^7.23.7" - "@babel/parser" "^7.23.6" - "@babel/template" "^7.22.15" - "@babel/traverse" "^7.23.7" - "@babel/types" "^7.23.6" + "@babel/helpers" "^7.23.9" + "@babel/parser" "^7.23.9" + "@babel/template" "^7.23.9" + "@babel/traverse" "^7.23.9" + "@babel/types" "^7.23.9" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" @@ -209,14 +209,14 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== -"@babel/helpers@^7.23.7": - version "7.23.8" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.8.tgz#fc6b2d65b16847fd50adddbd4232c76378959e34" - integrity sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ== +"@babel/helpers@^7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.9.tgz#c3e20bbe7f7a7e10cb9b178384b4affdf5995c7d" + integrity sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ== dependencies: - "@babel/template" "^7.22.15" - "@babel/traverse" "^7.23.7" - "@babel/types" "^7.23.6" + "@babel/template" "^7.23.9" + "@babel/traverse" "^7.23.9" + "@babel/types" "^7.23.9" "@babel/highlight@^7.23.4": version "7.23.4" @@ -232,10 +232,10 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.4.tgz#6774231779dd700e0af29f6ad8d479582d7ce5ef" integrity sha512-FDge0dFazETFcxGw/EXzOkN8uJp0PC7Qbm+Pe9T+av2zlBpOgunFHkQPPn+eRuClU73JF+98D531UgayY89tow== -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.22.15", "@babel/parser@^7.23.6": - version "7.23.6" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.6.tgz#ba1c9e512bda72a47e285ae42aff9d2a635a9e3b" - integrity sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.9.tgz#7b903b6149b0f8fa7ad564af646c4c38a77fc44b" + integrity sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -343,25 +343,25 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/runtime@^7.1.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.15.4", "@babel/runtime@^7.20.6", "@babel/runtime@^7.21.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": - version "7.23.8" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.8.tgz#8ee6fe1ac47add7122902f257b8ddf55c898f650" - integrity sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw== + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.9.tgz#47791a15e4603bb5f905bc0753801cf21d6345f7" + integrity sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw== dependencies: regenerator-runtime "^0.14.0" -"@babel/template@^7.22.15", "@babel/template@^7.3.3": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" - integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== +"@babel/template@^7.22.15", "@babel/template@^7.23.9", "@babel/template@^7.3.3": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.23.9.tgz#f881d0487cba2828d3259dcb9ef5005a9731011a" + integrity sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA== dependencies: - "@babel/code-frame" "^7.22.13" - "@babel/parser" "^7.22.15" - "@babel/types" "^7.22.15" + "@babel/code-frame" "^7.23.5" + "@babel/parser" "^7.23.9" + "@babel/types" "^7.23.9" -"@babel/traverse@^7.23.7", "@babel/traverse@^7.7.2": - version "7.23.7" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.7.tgz#9a7bf285c928cb99b5ead19c3b1ce5b310c9c305" - integrity sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg== +"@babel/traverse@^7.23.9", "@babel/traverse@^7.7.2": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.9.tgz#2f9d6aead6b564669394c5ce0f9302bb65b9d950" + integrity sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg== dependencies: "@babel/code-frame" "^7.23.5" "@babel/generator" "^7.23.6" @@ -369,8 +369,8 @@ "@babel/helper-function-name" "^7.23.0" "@babel/helper-hoist-variables" "^7.22.5" "@babel/helper-split-export-declaration" "^7.22.6" - "@babel/parser" "^7.23.6" - "@babel/types" "^7.23.6" + "@babel/parser" "^7.23.9" + "@babel/types" "^7.23.9" debug "^4.3.1" globals "^11.1.0" @@ -383,10 +383,10 @@ "@babel/helper-validator-identifier" "^7.18.6" to-fast-properties "^2.0.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.2", "@babel/types@^7.20.7", "@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.6", "@babel/types@^7.3.3": - version "7.23.6" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.6.tgz#be33fdb151e1f5a56877d704492c240fc71c7ccd" - integrity sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg== +"@babel/types@^7.0.0", "@babel/types@^7.18.2", "@babel/types@^7.20.7", "@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.6", "@babel/types@^7.23.9", "@babel/types@^7.3.3": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.9.tgz#1dd7b59a9a2b5c87f8b41e52770b5ecbf492e002" + integrity sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q== dependencies: "@babel/helper-string-parser" "^7.23.4" "@babel/helper-validator-identifier" "^7.22.20" @@ -588,72 +588,72 @@ resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.3.0.tgz#731656abe21e8e769a7f70a4d833e6312fe59b7f" integrity sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw== -"@floating-ui/core@^1.5.3": - version "1.5.3" - resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.5.3.tgz#b6aa0827708d70971c8679a16cf680a515b8a52a" - integrity sha512-O0WKDOo0yhJuugCx6trZQj5jVJ9yR0ystG2JaNAemYUWce+pmM6WUEFIibnWyEJKdrDxhm75NoSRME35FNaM/Q== +"@floating-ui/core@^1.0.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.6.0.tgz#fa41b87812a16bf123122bf945946bae3fdf7fc1" + integrity sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g== dependencies: - "@floating-ui/utils" "^0.2.0" + "@floating-ui/utils" "^0.2.1" -"@floating-ui/devtools@0.0.4": - version "0.0.4" - resolved "https://registry.yarnpkg.com/@floating-ui/devtools/-/devtools-0.0.4.tgz#48b6e2d5d1314964f5665a28bfc48ccdedad3a72" - integrity sha512-lSlvB45PgGS+YmGtOPseYBLwa+u+wPsZ+g/bT5kgzK2zLAKR5m9L5hS3b/OFZhrFWwehRf73RRSZ/WXg4r5WMw== +"@floating-ui/devtools@0.2.1": + version "0.2.1" + resolved "https://registry.yarnpkg.com/@floating-ui/devtools/-/devtools-0.2.1.tgz#3e8023e09ede273a7aa426e7911f3dac630024c5" + integrity sha512-8PHJLbD6VhBh+LJ1uty/Bz30qs02NXCE5u8WpOhSewlYXUWl03GNXknr9AS2yaAWJEQaY27x7eByJs44gODBcw== "@floating-ui/dom@^1.2.0": - version "1.5.4" - resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.5.4.tgz#28df1e1cb373884224a463235c218dcbd81a16bb" - integrity sha512-jByEsHIY+eEdCjnTVu+E3ephzTOzkQ8hgUfGwos+bg7NlH33Zc5uO+QHz1mrQUOgIKKDD1RtS201P9NvAfq3XQ== + version "1.6.3" + resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.6.3.tgz#954e46c1dd3ad48e49db9ada7218b0985cee75ef" + integrity sha512-RnDthu3mzPlQ31Ss/BTwQ1zjzIhr3lk1gZB1OC56h/1vEtaXkESrOqL5fQVMfXpwGtRwX+YsZBdyHtJMQnkArw== dependencies: - "@floating-ui/core" "^1.5.3" + "@floating-ui/core" "^1.0.0" "@floating-ui/utils" "^0.2.0" -"@floating-ui/utils@^0.2.0": +"@floating-ui/utils@^0.2.0", "@floating-ui/utils@^0.2.1": version "0.2.1" resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.1.tgz#16308cea045f0fc777b6ff20a9f25474dd8293d2" integrity sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q== -"@fluentui/date-time-utilities@^8.5.15": - version "8.5.15" - resolved "https://registry.yarnpkg.com/@fluentui/date-time-utilities/-/date-time-utilities-8.5.15.tgz#0bd445a0aa1208d44fe922bde2c69544e39a74ed" - integrity sha512-offoCjjSTlREPps/2JJeFCxjfhTf1ULoEeKT6D3P02Uerr7HYvYyrIjkv555QCqn+xjrq3GBF5oU2SMglrroUw== +"@fluentui/date-time-utilities@^8.5.16": + version "8.5.16" + resolved "https://registry.yarnpkg.com/@fluentui/date-time-utilities/-/date-time-utilities-8.5.16.tgz#cd8177baaaee57d147b30d621f453b68f502aae0" + integrity sha512-l+mLfJ2VhdHjBpELLLPDaWgT7GMLynm2aqR7SttbEb6Jh7hc/7ck1MWm93RTb3gYVHYai8SENqimNcvIxHt/zg== dependencies: - "@fluentui/set-version" "^8.2.13" + "@fluentui/set-version" "^8.2.14" tslib "^2.1.0" -"@fluentui/dom-utilities@^2.2.13": - version "2.2.13" - resolved "https://registry.yarnpkg.com/@fluentui/dom-utilities/-/dom-utilities-2.2.13.tgz#2dc3d2dab59a44b1bbc0597a81fe7d94a1670f4d" - integrity sha512-mIb1njyLp1sIwZsokHCfqbdgbA1YRHO/BQ5NwIrNH44sp6hWo1d3Ytu2FoQebPU+caIniAXIsTzpa1AsfeOPgQ== +"@fluentui/dom-utilities@^2.2.14": + version "2.2.14" + resolved "https://registry.yarnpkg.com/@fluentui/dom-utilities/-/dom-utilities-2.2.14.tgz#3df0435e428d5e289b957425178749a94c545ea9" + integrity sha512-+4DVm5sNfJh+l8fM+7ylpOkGNZkNr4X1z1uKQPzRJ1PRhlnvc6vLpWNNicGwpjTbgufSrVtGKXwP5sf++r81lg== dependencies: - "@fluentui/set-version" "^8.2.13" + "@fluentui/set-version" "^8.2.14" tslib "^2.1.0" -"@fluentui/font-icons-mdl2@^8.5.29": - version "8.5.29" - resolved "https://registry.yarnpkg.com/@fluentui/font-icons-mdl2/-/font-icons-mdl2-8.5.29.tgz#086b3e308967423b0c7ec0bf70b104294dfedb9e" - integrity sha512-mhsA5umhJbxRmuzoCJAdHLOyitm8Cu1ZCytTP6yaFd/7JNBEJpItlJw0uXqwhVRxP9crIboMsahJu898A9+7Ag== +"@fluentui/font-icons-mdl2@^8.5.32": + version "8.5.32" + resolved "https://registry.yarnpkg.com/@fluentui/font-icons-mdl2/-/font-icons-mdl2-8.5.32.tgz#5560fa74da3455a9da8e283637adb1d5464d2bd9" + integrity sha512-PCZMijJlDQ5Zy8oNb80vUD6I4ORiR03qFgDT8o08mAGu+KzQO96q4jm0rzPRQuI9CO7pDD/6naOo8UVrmhZ2Aw== dependencies: - "@fluentui/set-version" "^8.2.13" - "@fluentui/style-utilities" "^8.10.0" - "@fluentui/utilities" "^8.13.22" + "@fluentui/set-version" "^8.2.14" + "@fluentui/style-utilities" "^8.10.3" + "@fluentui/utilities" "^8.13.24" tslib "^2.1.0" -"@fluentui/foundation-legacy@^8.2.49": - version "8.2.49" - resolved "https://registry.yarnpkg.com/@fluentui/foundation-legacy/-/foundation-legacy-8.2.49.tgz#11712b32e7d7cad3bdaf9ea4dbc836a744ddbf0c" - integrity sha512-slUxpgL0rBW4S/IY+Jz0i5vY/62sBycFuq9gat0RXNT331MU/GXkQm6hzQRkyVXGg7LdsJeewlkFaHYhyQV37A== +"@fluentui/foundation-legacy@^8.2.52": + version "8.2.52" + resolved "https://registry.yarnpkg.com/@fluentui/foundation-legacy/-/foundation-legacy-8.2.52.tgz#e73f54596b183c6f62755a179adda19065c2c3dd" + integrity sha512-tHCD0m58Zja7wN1FTsvj4Gaj0B22xOhRTpyDzyvxRfjFGYPpR2Jgx/y/KRB3JTOX5EfJHAVzInyWZBeN5IfsVA== dependencies: - "@fluentui/merge-styles" "^8.5.14" - "@fluentui/set-version" "^8.2.13" - "@fluentui/style-utilities" "^8.10.0" - "@fluentui/utilities" "^8.13.22" + "@fluentui/merge-styles" "^8.5.15" + "@fluentui/set-version" "^8.2.14" + "@fluentui/style-utilities" "^8.10.3" + "@fluentui/utilities" "^8.13.24" tslib "^2.1.0" -"@fluentui/keyboard-key@^0.4.13": - version "0.4.13" - resolved "https://registry.yarnpkg.com/@fluentui/keyboard-key/-/keyboard-key-0.4.13.tgz#e40adfea8ef87bc5441bab62cbf611ed4d3d082a" - integrity sha512-T00hJwg1ez3SWT+MmyvjsPMcQNg+MrGArQSg0ezMZwiEzOo3n0TC4TuecOyoMlMpJHtm52Y8a3KlE9klZKl35g== +"@fluentui/keyboard-key@^0.4.14": + version "0.4.14" + resolved "https://registry.yarnpkg.com/@fluentui/keyboard-key/-/keyboard-key-0.4.14.tgz#858eb9599a29534363ebf5f4a79413a57e4477b5" + integrity sha512-XzZHcyFEM20H23h3i15UpkHi2AhRBriXPGAHq0Jm98TKFppXehedjjEFuUsh+CyU5JKBhDalWp8TAQ1ArpNzow== dependencies: tslib "^2.1.0" @@ -664,12 +664,12 @@ dependencies: "@swc/helpers" "^0.5.1" -"@fluentui/merge-styles@^8.5.14": - version "8.5.14" - resolved "https://registry.yarnpkg.com/@fluentui/merge-styles/-/merge-styles-8.5.14.tgz#9ce69cde884275ade2de75365bb0334afbb5a19e" - integrity sha512-OrFEizI56NwO7C9zpEx04WYfrqPmPCWXNtNlXaCd3VW7/MNPQm2wpYqOF2b3xlP5Tnzn6/+w+XR2ym0vLIdM6g== +"@fluentui/merge-styles@^8.5.15": + version "8.5.15" + resolved "https://registry.yarnpkg.com/@fluentui/merge-styles/-/merge-styles-8.5.15.tgz#8327b5ff264a9cd1a2d6a6fd780071914d30edb5" + integrity sha512-4CdKwo4k1Un2QLulpSVIz/KMgLNBMgin4NPyapmKDMVuO1OOxJUqfocubRGNO5x9mKgAMMYwBKGO9i0uxMMpJw== dependencies: - "@fluentui/set-version" "^8.2.13" + "@fluentui/set-version" "^8.2.14" tslib "^2.1.0" "@fluentui/priority-overflow@^9.1.11": @@ -679,510 +679,515 @@ dependencies: "@swc/helpers" "^0.5.1" -"@fluentui/react-accordion@^9.3.34": - version "9.3.34" - resolved "https://registry.yarnpkg.com/@fluentui/react-accordion/-/react-accordion-9.3.34.tgz#397ebfa62a7f4b15621e1a022ac0831dcff133a9" - integrity sha512-kg6qUmDKFi2hY/HAcRIPpeXafOySHJcU5TguOoX1NCDfd0k9hj6facCD+b3uPt6HXBEALETAg0udcu+qNuSyPQ== +"@fluentui/react-accordion@^9.3.42": + version "9.3.42" + resolved "https://registry.yarnpkg.com/@fluentui/react-accordion/-/react-accordion-9.3.42.tgz#f64f1ecd5e4751f1bfab3cb217c17fa6bb22ecbf" + integrity sha512-j1zNjjRgcWmy9qffBUuOC1cQTt9yIgLJ2OmaRm2frTJMJWwbFl/6NH+j5MKe57pF/EBkUONiLcz5gFhSjQOxLg== dependencies: - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-alert@9.0.0-beta.100": - version "9.0.0-beta.100" - resolved "https://registry.yarnpkg.com/@fluentui/react-alert/-/react-alert-9.0.0-beta.100.tgz#690b49313a774a5c3e24a7705ab96b4fdbd18628" - integrity sha512-IPzC2ub+V7nSoBXGsCiEcGYIp9bcz/DpyAcyXKGo+Ql/+etx+r7TkXbWWl8+rRSGXs5zS6u6oGSIDfXNRto1Sg== +"@fluentui/react-alert@9.0.0-beta.110": + version "9.0.0-beta.110" + resolved "https://registry.yarnpkg.com/@fluentui/react-alert/-/react-alert-9.0.0-beta.110.tgz#19703c3b18f67687ac1cb5a02414750ccdefb482" + integrity sha512-QBlj7Qt2f4fgyq5RRCxDk36B/Z6okbqxDyMzWJSauoLoZSC/SZ5VI1eJMeELxmTyH9m8zLm4+KrEm1BETsjg/w== dependencies: - "@fluentui/react-avatar" "^9.6.5" - "@fluentui/react-button" "^9.3.61" + "@fluentui/react-avatar" "^9.6.15" + "@fluentui/react-button" "^9.3.69" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-aria@^9.6.2": - version "9.6.2" - resolved "https://registry.yarnpkg.com/@fluentui/react-aria/-/react-aria-9.6.2.tgz#e3889cbd6ff8893d3b2138d76105a556ef71b841" - integrity sha512-DMM4l5fMfg7yltqM33TFlEJlua7eAqIdLnKtnQ4szezbG2QZOy+a+qmJOGNcScteuO1/kRfYC+WOXhxtnMeA7g== +"@fluentui/react-aria@^9.9.0": + version "9.9.0" + resolved "https://registry.yarnpkg.com/@fluentui/react-aria/-/react-aria-9.9.0.tgz#326955801fe5589bcd8567da06dfbe9961ff222a" + integrity sha512-YTmKRtl8joM30d21/GEsG3DbcKUEkhlliYbvs6aL/aXuNvsjToEj61DWouiC+LkFKyfKvQsDDL/5ULL4w7mULQ== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" + "@fluentui/react-utilities" "^9.18.1" "@swc/helpers" "^0.5.1" -"@fluentui/react-avatar@^9.6.5": - version "9.6.5" - resolved "https://registry.yarnpkg.com/@fluentui/react-avatar/-/react-avatar-9.6.5.tgz#0170b1ea47eb1f7e90e4a47a33abb2e04ae5a99c" - integrity sha512-1ncFDXrAhvFD/AB7hSbjvq3HCjEo5AvTVy+wKD1g/FFuFV60AcJiM8acXzTJMBPxQi7DTdcIG31Hm0I63AeFVg== +"@fluentui/react-avatar@^9.6.15": + version "9.6.15" + resolved "https://registry.yarnpkg.com/@fluentui/react-avatar/-/react-avatar-9.6.15.tgz#62a28a90f903e08d01cfc93661e44624a9a76b1e" + integrity sha512-XUWe7beR2dFFD0m5drgt+neFWoJrHPO0ZIxjWSWm7Fqjs0y5WS3VsYWx0mB+qpaZGJPWnBNtu17VhJnqCmy7EA== dependencies: - "@fluentui/react-badge" "^9.2.19" - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-badge" "^9.2.25" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-popover" "^9.8.29" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-popover" "^9.8.39" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-tooltip" "^9.4.7" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-tooltip" "^9.4.17" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-badge@^9.2.19": - version "9.2.19" - resolved "https://registry.yarnpkg.com/@fluentui/react-badge/-/react-badge-9.2.19.tgz#7fb5e56b7c190ee9349d41c098a3c1f098126daa" - integrity sha512-6HjUNeNV1KkSTuft+8YtPd5tfbJKJA5g0HO/8+M7h803cr0zhyyokPOZuKM/tH5r9VCWa+gPoyaHRZUiWyHqIA== +"@fluentui/react-badge@^9.2.25": + version "9.2.25" + resolved "https://registry.yarnpkg.com/@fluentui/react-badge/-/react-badge-9.2.25.tgz#487b7fe4db73551484d6b356a3ead55b1bb98917" + integrity sha512-lm3DnYZLw9yUf4k8PChwTahkbiysL+L/9NLhEGtCspVyzK7WAD4cOQn3NlVhMFv6rnuGnGYEQXMCrsWoipUFEA== dependencies: "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-breadcrumb@^9.0.7": - version "9.0.7" - resolved "https://registry.yarnpkg.com/@fluentui/react-breadcrumb/-/react-breadcrumb-9.0.7.tgz#97fc8cdf353dcb1e4b38863381209b45b9e81b74" - integrity sha512-/Kmp8CJxpW7ymTHAhSi9e09btPRhZG//oaSP6AGtTR5/0A8N1Kd+rDfmlvTleRWDn8+MMth+azt+amRaenNouQ== +"@fluentui/react-breadcrumb@^9.0.15": + version "9.0.15" + resolved "https://registry.yarnpkg.com/@fluentui/react-breadcrumb/-/react-breadcrumb-9.0.15.tgz#288e6166c895c2ed2cc4d4a3b6acc60cefc0d2c5" + integrity sha512-lNNfJnCIJIvqu97vcXbj3QdkEIBdY1JEojriH+kAF5IX2Mv+Z7HW468bvRPNgZjOIgWzLVRN4GWsi0o2vwtr5A== dependencies: - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-button" "^9.3.61" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-button" "^9.3.69" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-link" "^9.2.4" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-link" "^9.2.11" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-button@^9.3.61": - version "9.3.61" - resolved "https://registry.yarnpkg.com/@fluentui/react-button/-/react-button-9.3.61.tgz#2f940a34d2814050a8d1af4fca8cb4e4b07d80e6" - integrity sha512-QYNZj6CxCbOJ0wKwhDx2QaAW4udS+vw4hlLcUUHZGnksYXrJt9vhKcflokShLpOKQikD9cPn+T8b5QzFGy2Skw== +"@fluentui/react-button@^9.3.69": + version "9.3.69" + resolved "https://registry.yarnpkg.com/@fluentui/react-button/-/react-button-9.3.69.tgz#d044c76f6e2f19f79df07b7205cbc47646d6953b" + integrity sha512-SUAxUnm4pzq+v7JESiPnoWYOEb40zNnNyLFfacZ/ZBmBh8JcA8uomV5lJ8H1Aj1cS8yVVChPdEveXehR82cjvA== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" + "@fluentui/react-aria" "^9.9.0" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-card@^9.0.60": - version "9.0.60" - resolved "https://registry.yarnpkg.com/@fluentui/react-card/-/react-card-9.0.60.tgz#4deab47e34a4bf193c0cc2d49f657750abb183ae" - integrity sha512-ykohMAPtGor2RXZJeQFjwitVhhu03cq6I79WTgHnQIQvwyZ9RiHHYJ8QKsQzDpdyleSqOcUA6O6yk3oiVKVjNw== +"@fluentui/react-card@^9.0.68": + version "9.0.68" + resolved "https://registry.yarnpkg.com/@fluentui/react-card/-/react-card-9.0.68.tgz#6fdc41bc34cca4e8a0ff42eb0c59b6b872b35d16" + integrity sha512-qDmtL8f2JOAzoBuQm9RV1Ty/UPS6UR1l+gBBb9p1jarGbBxGb7TS+fx5tuOiEB7sejFT+vC7otFsQ+mCNS1Rtw== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-checkbox@^9.2.5": - version "9.2.5" - resolved "https://registry.yarnpkg.com/@fluentui/react-checkbox/-/react-checkbox-9.2.5.tgz#7d177e556c203c7ea517610585383ec28543f80b" - integrity sha512-lfodSwu83BeDPaZRHNftqWmIrv8m9SeHdOODuAp1VPDWUCNtZkajZZaHXv77RQRKsF/O4Q60bOy0QtTsRkTqzg== +"@fluentui/react-checkbox@^9.2.13": + version "9.2.13" + resolved "https://registry.yarnpkg.com/@fluentui/react-checkbox/-/react-checkbox-9.2.13.tgz#a8dc2e6eb66c189f47e3de3504ce056f9a64d273" + integrity sha512-xyOin0H6k4ojHcnyAaimo/tTnxoL49KdLONa40YcMXlk65KTtlbfpmrK8G7gPn2/abJY7Uq0+4zmXwmT2vJEqw== dependencies: - "@fluentui/react-field" "^9.1.47" + "@fluentui/react-field" "^9.1.54" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-label" "^9.1.55" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-label" "^9.1.62" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-combobox@^9.5.39": - version "9.5.39" - resolved "https://registry.yarnpkg.com/@fluentui/react-combobox/-/react-combobox-9.5.39.tgz#c1d3f6cb20aefb57c5764787f5687e96185c5bde" - integrity sha512-opNvz8mXC23oloBoaw6uYlm/qWyV1uvfe1l8wtKS9DDXK/2Yp1tC2HWAng+4PX+W4vT8SzRlkQIsqqtFd6hp0w== +"@fluentui/react-combobox@^9.8.0": + version "9.8.0" + resolved "https://registry.yarnpkg.com/@fluentui/react-combobox/-/react-combobox-9.8.0.tgz#01fe214a44b486c00d95601398fbe804a9b75612" + integrity sha512-nrlwT7F1LcvUS9dFaRLJpgzcalR4tKNWHEChUu2z+cLxg2GVDXPyZl7AxZUgaPNuNPTFfSKm4PXBGrx/OsoUIQ== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-context-selector" "^9.1.46" - "@fluentui/react-field" "^9.1.47" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-context-selector" "^9.1.52" + "@fluentui/react-field" "^9.1.54" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-portal" "^9.4.7" - "@fluentui/react-positioning" "^9.12.0" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-portal" "^9.4.14" + "@fluentui/react-positioning" "^9.13.4" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" "@fluentui/react-components@^9.44.1": - version "9.44.2" - resolved "https://registry.yarnpkg.com/@fluentui/react-components/-/react-components-9.44.2.tgz#e5a190295982f6d3e6a04bad9c4e3373beb32d82" - integrity sha512-CqcVHn1KZsQjw28QszfcTWiuLgE0mj8RZADTQrsah7UMUVMVgzlyDnrvMO2rzuqChAzNUqTBC8xIiBBrwDAKiw== - dependencies: - "@fluentui/react-accordion" "^9.3.34" - "@fluentui/react-alert" "9.0.0-beta.100" - "@fluentui/react-avatar" "^9.6.5" - "@fluentui/react-badge" "^9.2.19" - "@fluentui/react-breadcrumb" "^9.0.7" - "@fluentui/react-button" "^9.3.61" - "@fluentui/react-card" "^9.0.60" - "@fluentui/react-checkbox" "^9.2.5" - "@fluentui/react-combobox" "^9.5.39" - "@fluentui/react-dialog" "^9.9.3" - "@fluentui/react-divider" "^9.2.55" - "@fluentui/react-drawer" "^9.0.7" - "@fluentui/react-field" "^9.1.47" - "@fluentui/react-image" "^9.1.52" - "@fluentui/react-infobutton" "9.0.0-beta.84" - "@fluentui/react-infolabel" "^9.0.12" - "@fluentui/react-input" "^9.4.57" - "@fluentui/react-label" "^9.1.55" - "@fluentui/react-link" "^9.2.4" - "@fluentui/react-menu" "^9.12.41" - "@fluentui/react-message-bar" "^9.0.12" - "@fluentui/react-overflow" "^9.1.5" - "@fluentui/react-persona" "^9.2.64" - "@fluentui/react-popover" "^9.8.29" - "@fluentui/react-portal" "^9.4.7" - "@fluentui/react-positioning" "^9.12.0" - "@fluentui/react-progress" "^9.1.57" - "@fluentui/react-provider" "^9.13.5" - "@fluentui/react-radio" "^9.2.0" - "@fluentui/react-select" "^9.1.57" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-skeleton" "^9.0.45" - "@fluentui/react-slider" "^9.1.62" - "@fluentui/react-spinbutton" "^9.2.57" - "@fluentui/react-spinner" "^9.3.35" - "@fluentui/react-switch" "^9.1.62" - "@fluentui/react-table" "^9.11.1" - "@fluentui/react-tabs" "^9.4.3" - "@fluentui/react-tabster" "^9.17.0" - "@fluentui/react-tags" "^9.0.18" - "@fluentui/react-text" "^9.4.4" - "@fluentui/react-textarea" "^9.3.57" + version "9.46.5" + resolved "https://registry.yarnpkg.com/@fluentui/react-components/-/react-components-9.46.5.tgz#b092b99eec0e999652e34aac5bd821f71f7cbb1f" + integrity sha512-h79Nq18DbqXMBaPfGaOMykge/3wXpBLQWfdTzLsZrJXUxcOUFzxB+RP7dewgmKQs5kihXY70sNI+P+uCUdaSCg== + dependencies: + "@fluentui/react-accordion" "^9.3.42" + "@fluentui/react-alert" "9.0.0-beta.110" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-avatar" "^9.6.15" + "@fluentui/react-badge" "^9.2.25" + "@fluentui/react-breadcrumb" "^9.0.15" + "@fluentui/react-button" "^9.3.69" + "@fluentui/react-card" "^9.0.68" + "@fluentui/react-checkbox" "^9.2.13" + "@fluentui/react-combobox" "^9.8.0" + "@fluentui/react-dialog" "^9.9.11" + "@fluentui/react-divider" "^9.2.61" + "@fluentui/react-drawer" "^9.1.5" + "@fluentui/react-field" "^9.1.54" + "@fluentui/react-image" "^9.1.58" + "@fluentui/react-infobutton" "9.0.0-beta.94" + "@fluentui/react-infolabel" "^9.0.22" + "@fluentui/react-input" "^9.4.64" + "@fluentui/react-label" "^9.1.62" + "@fluentui/react-link" "^9.2.11" + "@fluentui/react-menu" "^9.13.0" + "@fluentui/react-message-bar" "^9.0.20" + "@fluentui/react-overflow" "^9.1.11" + "@fluentui/react-persona" "^9.2.74" + "@fluentui/react-popover" "^9.8.39" + "@fluentui/react-portal" "^9.4.14" + "@fluentui/react-positioning" "^9.13.4" + "@fluentui/react-progress" "^9.1.64" + "@fluentui/react-provider" "^9.13.12" + "@fluentui/react-radio" "^9.2.8" + "@fluentui/react-select" "^9.1.64" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-skeleton" "^9.0.52" + "@fluentui/react-slider" "^9.1.70" + "@fluentui/react-spinbutton" "^9.2.64" + "@fluentui/react-spinner" "^9.3.42" + "@fluentui/react-switch" "^9.1.70" + "@fluentui/react-table" "^9.11.11" + "@fluentui/react-tabs" "^9.4.10" + "@fluentui/react-tabster" "^9.19.1" + "@fluentui/react-tags" "^9.0.28" + "@fluentui/react-text" "^9.4.10" + "@fluentui/react-textarea" "^9.3.64" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-toast" "^9.3.23" - "@fluentui/react-toolbar" "^9.1.62" - "@fluentui/react-tooltip" "^9.4.7" - "@fluentui/react-tree" "^9.4.21" - "@fluentui/react-utilities" "^9.15.6" - "@fluentui/react-virtualizer" "9.0.0-alpha.63" + "@fluentui/react-toast" "^9.3.31" + "@fluentui/react-toolbar" "^9.1.71" + "@fluentui/react-tooltip" "^9.4.17" + "@fluentui/react-tree" "^9.4.31" + "@fluentui/react-utilities" "^9.18.1" + "@fluentui/react-virtualizer" "9.0.0-alpha.69" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-context-selector@^9.1.46": - version "9.1.46" - resolved "https://registry.yarnpkg.com/@fluentui/react-context-selector/-/react-context-selector-9.1.46.tgz#7714a42bfb9d403e407238d29bebe51a7dac9e3a" - integrity sha512-CDoGob3p9ZRL7AwzrxAjTPHJIjGvdMOfa+oIFL7O6EHATvU/7BQUPcCRPvhfZK4N4jD1w7AJgYwPPgkOqYbHpw== +"@fluentui/react-context-selector@^9.1.52": + version "9.1.52" + resolved "https://registry.yarnpkg.com/@fluentui/react-context-selector/-/react-context-selector-9.1.52.tgz#6752b0879dc51fd55e3766005350d9dd5b6b5c53" + integrity sha512-smcbz8l0CT4LC6KfjZPRb8Q1RKsxPvKzFCQ8F4EmZ2F/PJWzV4Wln3USfC+NWpYC5mU+NGrKKEO8OSHCb5gP4Q== dependencies: - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@swc/helpers" "^0.5.1" -"@fluentui/react-dialog@^9.9.3": - version "9.9.3" - resolved "https://registry.yarnpkg.com/@fluentui/react-dialog/-/react-dialog-9.9.3.tgz#95ddb49e50d01b29c58920dce7420545c4dfc7d2" - integrity sha512-WAQgrbt/I1X0XcLDnMt+qmAx30E3Ol/auJhACLhilkht/uQ6xoeWOjRGBY2k6yMA32QpLqdGbV4UA4EcLLBuSg== +"@fluentui/react-dialog@^9.9.11": + version "9.9.11" + resolved "https://registry.yarnpkg.com/@fluentui/react-dialog/-/react-dialog-9.9.11.tgz#1789bba116cd6df1f6f7713e9ffa27054b848784" + integrity sha512-ENvIy+jEYcYSMoDulUzo3Img5D3ZBEIYx+D8nf3ZaQj3W/ghkAB45Cu1p0hTDG6cbM2Ib8Nxmr2WcSdrGnoFKw== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-portal" "^9.4.7" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-portal" "^9.4.14" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" react-transition-group "^4.4.1" -"@fluentui/react-divider@^9.2.55": - version "9.2.55" - resolved "https://registry.yarnpkg.com/@fluentui/react-divider/-/react-divider-9.2.55.tgz#5d0c70de5a7023a58235b09b5286696e8aa14ff5" - integrity sha512-WbV5nDhqe+2JXq4Igv7eZHrAB4v+CbICGhJ+sY86uHd9872hjBr9cHUSpBnY8yeffXc/PSmjF+i1NcmCOyHUyg== +"@fluentui/react-divider@^9.2.61": + version "9.2.61" + resolved "https://registry.yarnpkg.com/@fluentui/react-divider/-/react-divider-9.2.61.tgz#8db84122a0ed23edaa1f3df8c212ff7fedb31746" + integrity sha512-pFTwqPKXUH9VSeV2mBqG+oNW8nV1+Cp63immcO9PqDc+TSKO5zdE47vh4doVi9Dmp6zolFk+ZgD6CoXDeUqhxA== dependencies: - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-drawer@^9.0.7": - version "9.0.7" - resolved "https://registry.yarnpkg.com/@fluentui/react-drawer/-/react-drawer-9.0.7.tgz#edfac796a7cc3ed1162b9dd321aafed547fa6ac0" - integrity sha512-XKG5m+vFQvBl92R9O6LQOUMPSOqzh1KsR3iZQehfhcticEuShi0uIK9ys0/atYJ890ErWjuXPF7cJHvNU5IYXg== - dependencies: - "@fluentui/react-dialog" "^9.9.3" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-motion-preview" "^0.5.7" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" +"@fluentui/react-drawer@^9.1.5": + version "9.1.5" + resolved "https://registry.yarnpkg.com/@fluentui/react-drawer/-/react-drawer-9.1.5.tgz#cdfba828fb3ffca74028e9373f4a7ed648a8146c" + integrity sha512-BV+/4QO3/zyBi1DwehqUdkKFJIvdPelD8+AoY4YM24cRDrJfsfqi4QX+wD7O0vra9os7FyKFNuz3eOZNXNNvoQ== + dependencies: + "@fluentui/react-dialog" "^9.9.11" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-motion-preview" "^0.5.13" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-field@^9.1.47": - version "9.1.47" - resolved "https://registry.yarnpkg.com/@fluentui/react-field/-/react-field-9.1.47.tgz#c2f078f39b45b30199c135efeedbc75ad53f7552" - integrity sha512-FXVjdHkhEVr8bRKoKoZRFvrW5ZAU3ZRq4EUxMvZDOxfeVx0cxo8qIG2BOp2xe4GrVXyfVtq0Fguqx58ttlG5sg== +"@fluentui/react-field@^9.1.54": + version "9.1.54" + resolved "https://registry.yarnpkg.com/@fluentui/react-field/-/react-field-9.1.54.tgz#646814beb6a18a2f6bc59da2cea47689283113b5" + integrity sha512-7fBfb1i/o2FBPwLQKiPP7ixwh52Lzc8Cr/J53GIbweAo6NsW87k9Lh9lI+awhGe9xmq6OUnUJtxiK5Mk1mHJJw== dependencies: - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-label" "^9.1.55" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-label" "^9.1.62" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-focus@^8.8.36": - version "8.8.36" - resolved "https://registry.yarnpkg.com/@fluentui/react-focus/-/react-focus-8.8.36.tgz#208363d341e258da026e15767886f46db3279a99" - integrity sha512-PZ3xO7+n4peIgYNWPieGvyjSMtE4f6k4OjwBCuobV2wHzFcTNECTcFzfO3Mr3JOdfT7/7VzWBv65/jJUO05n2Q== +"@fluentui/react-focus@^8.8.40": + version "8.8.40" + resolved "https://registry.yarnpkg.com/@fluentui/react-focus/-/react-focus-8.8.40.tgz#2124a848673b2f35c5d8aac1360cc3eb45431ade" + integrity sha512-ha0CbLv5EIbjYCtQky6LVZObxOeMfhixrgrzfXm3Ta2eGs1NyZRDm1VeM6acOolWB/8QiN/CbdGckjALli8L2g== dependencies: - "@fluentui/keyboard-key" "^0.4.13" - "@fluentui/merge-styles" "^8.5.14" - "@fluentui/set-version" "^8.2.13" - "@fluentui/style-utilities" "^8.10.0" - "@fluentui/utilities" "^8.13.22" + "@fluentui/keyboard-key" "^0.4.14" + "@fluentui/merge-styles" "^8.5.15" + "@fluentui/set-version" "^8.2.14" + "@fluentui/style-utilities" "^8.10.3" + "@fluentui/utilities" "^8.13.24" tslib "^2.1.0" -"@fluentui/react-hooks@^8.6.34": - version "8.6.34" - resolved "https://registry.yarnpkg.com/@fluentui/react-hooks/-/react-hooks-8.6.34.tgz#8f7acc1305c1f36409689d549345ad1606d8886e" - integrity sha512-FtfvsOHuNz4JfmACAUpJKyh/62i14s5K8lk4GGoe4soETyaKAlmYX9HbBOrFi9FkKk6scrFytLCViQ8sR15bDA== +"@fluentui/react-hooks@^8.6.36": + version "8.6.36" + resolved "https://registry.yarnpkg.com/@fluentui/react-hooks/-/react-hooks-8.6.36.tgz#d10b3ba289e38c489c238dd4f76b8fe2c469b81a" + integrity sha512-kI0Z4Q4xHUs4SOmmI5n5OH5fPckqMSCovTRpiuxzCO2TNzLmfC861+nqf4Ygw/ChqNm2gWNZZfUADfnNAEsq+Q== dependencies: - "@fluentui/react-window-provider" "^2.2.17" - "@fluentui/set-version" "^8.2.13" - "@fluentui/utilities" "^8.13.22" + "@fluentui/react-window-provider" "^2.2.18" + "@fluentui/set-version" "^8.2.14" + "@fluentui/utilities" "^8.13.24" tslib "^2.1.0" -"@fluentui/react-icon-provider@^1.3.50": - version "1.3.50" - resolved "https://registry.yarnpkg.com/@fluentui/react-icon-provider/-/react-icon-provider-1.3.50.tgz#3145e1300bb5bcd6ca13143a3a90fe4286fa4c00" - integrity sha512-MITR/SOCegmgq+1YZEKlFR2Bw8o0J4m+t4iRahAjfwHWQw9bTp4DAh+npHG7ddPDwBZNxVp0TrlJNsmcaBZ/cw== +"@fluentui/react-icon-provider@^1.3.53": + version "1.3.53" + resolved "https://registry.yarnpkg.com/@fluentui/react-icon-provider/-/react-icon-provider-1.3.53.tgz#8afa1a2cbcf65f41d4e6596f6ebd469f17d8f0ba" + integrity sha512-6FnwH4raUdBFc5vDvw1Yf9nqpqCNHyObe9Q7wIOulmIfQ7Xla8SQTJypnQtrdUCU9bNxDockSnTPRMklSVkVXw== dependencies: - "@fluentui/set-version" "^8.2.13" - "@fluentui/style-utilities" "^8.10.0" + "@fluentui/set-version" "^8.2.14" + "@fluentui/style-utilities" "^8.10.3" tslib "^2.1.0" "@fluentui/react-icons-mdl2@^1.3.41": - version "1.3.54" - resolved "https://registry.yarnpkg.com/@fluentui/react-icons-mdl2/-/react-icons-mdl2-1.3.54.tgz#f0cd0b77800e971e08fd8a065ac8a31d19e54a71" - integrity sha512-mQZ2rsTtCEn9n0JScRXBPJjETk2WLca0veQocID42FH4/JyYIBLLKIEQgNPKN8ApbC9Eb0SEH37MtX7rRPtq+g== + version "1.3.57" + resolved "https://registry.yarnpkg.com/@fluentui/react-icons-mdl2/-/react-icons-mdl2-1.3.57.tgz#1f57d95607338d66402bec6358401c5b041beda4" + integrity sha512-wbIXof+Ll1QMIBq5cZ0HOslXw7ie257FdXVnzaYVWcCt6vqVObdaPlGDKtV53xIFaS/wmKbZB+TqF75vQIQ4lw== dependencies: - "@fluentui/react-icon-provider" "^1.3.50" - "@fluentui/set-version" "^8.2.13" - "@fluentui/utilities" "^8.13.22" + "@fluentui/react-icon-provider" "^1.3.53" + "@fluentui/set-version" "^8.2.14" + "@fluentui/utilities" "^8.13.24" "@microsoft/load-themed-styles" "^1.10.26" tslib "^2.1.0" "@fluentui/react-icons@^2.0.224": - version "2.0.224" - resolved "https://registry.yarnpkg.com/@fluentui/react-icons/-/react-icons-2.0.224.tgz#fff0f4126b130f206f1efaa7c7e357e3bf29750a" - integrity sha512-ld03dlc1pG7xeTQsK1y5in19jkMtWHNaoktFv+e7NV2xmrgV/SgPyyjEXbMrQHb8Naea/XCoCpNHnUNCy68akw== + version "2.0.228" + resolved "https://registry.yarnpkg.com/@fluentui/react-icons/-/react-icons-2.0.228.tgz#74a8dfaf3a5b129bf0ece16780e62e2f7d2d403b" + integrity sha512-k6wbAYgi9pQxtS+e0/3oddkn9OX0hfM2uLh41v3zGOdpRGnyjzjqXyfk6RsVP8oG7oheHDBcK24ae7E5/t1ksA== dependencies: "@griffel/react" "^1.0.0" tslib "^2.1.0" -"@fluentui/react-image@^9.1.52": - version "9.1.52" - resolved "https://registry.yarnpkg.com/@fluentui/react-image/-/react-image-9.1.52.tgz#a4929f2e4ee86bd3301961285d7a464614587e6d" - integrity sha512-gKlf1LJXAgvyUrYlskxk58ZHMF05v0tk21G9HMWczEiivThgigsrwIRtGC2jJI66Op8c5VLdZ8/wrNK5s43k2Q== +"@fluentui/react-image@^9.1.58": + version "9.1.58" + resolved "https://registry.yarnpkg.com/@fluentui/react-image/-/react-image-9.1.58.tgz#9483c2d3c868c32735f8a8ed0fe570f99a712ea4" + integrity sha512-9dZBlx2GeYBXUcizPc/qYamhs3kQukFLnc7bZ+IKGrdAUuvD5VWNLrwjeo6lDBwzs97yp7/1fOlnXlq4FdTiYg== dependencies: - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-infobutton@9.0.0-beta.84": - version "9.0.0-beta.84" - resolved "https://registry.yarnpkg.com/@fluentui/react-infobutton/-/react-infobutton-9.0.0-beta.84.tgz#35c2e9af6a100720acafb6cd2a8c757af9a12c5f" - integrity sha512-CFOrgLp5cKMKNjtUss8hxcyYP0KLvKrp2l9BbDeK9nTL/leNjyYL0gt+5tWiVgfwZ4eQ4iqowwUTH1UWZYnUHQ== +"@fluentui/react-infobutton@9.0.0-beta.94": + version "9.0.0-beta.94" + resolved "https://registry.yarnpkg.com/@fluentui/react-infobutton/-/react-infobutton-9.0.0-beta.94.tgz#ccec498f2ab2121f75f90f5a80f0f53f396fc05f" + integrity sha512-xlNsKXNZjRSdDX84tU53zBnHm/ueAfnZGvvYZjmxGc+XDPvL3b3HJPd8WfYuhFl6njexxhNCI5Az4ckvRSp2Eg== dependencies: "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-label" "^9.1.55" - "@fluentui/react-popover" "^9.8.29" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-label" "^9.1.62" + "@fluentui/react-popover" "^9.8.39" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-infolabel@^9.0.12": - version "9.0.12" - resolved "https://registry.yarnpkg.com/@fluentui/react-infolabel/-/react-infolabel-9.0.12.tgz#87f56d3d6126dec5474ba5abb9324362cb0feb26" - integrity sha512-BFZVK0DizCy4t/8WLDxaF5xwf6WGb1uR9mkUmfjhtHtu4mzI1fk1EVLC5r3uBOA/nGQM0P4hMNW8EH7XOiz+lQ== +"@fluentui/react-infolabel@^9.0.22": + version "9.0.22" + resolved "https://registry.yarnpkg.com/@fluentui/react-infolabel/-/react-infolabel-9.0.22.tgz#864c5da0091a1f91e5d37f09533fc48975644169" + integrity sha512-FUSNASn103jOrHp9gNXCM1xV7ttSE2OOs6uoFMd9odJfXd3g+shMd4kja43LbXBzLh2UUi6WLJ73ZHcZJQiK7Q== dependencies: "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-label" "^9.1.55" - "@fluentui/react-popover" "^9.8.29" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-label" "^9.1.62" + "@fluentui/react-popover" "^9.8.39" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-input@^9.4.57": - version "9.4.57" - resolved "https://registry.yarnpkg.com/@fluentui/react-input/-/react-input-9.4.57.tgz#813d9ced154b537f91ffe13efbae2197d16c8fd9" - integrity sha512-zWcUzHQitMR6etKn2b0BvqjSiZxyX3LQ5XEdG2VW2QyXyF/sa+NTEOxiyqSo9Gk4wS3TO0WQb/3cPyMiubSWYQ== +"@fluentui/react-input@^9.4.64": + version "9.4.64" + resolved "https://registry.yarnpkg.com/@fluentui/react-input/-/react-input-9.4.64.tgz#6b6ff16020487276465a8bd077dbe161981bd023" + integrity sha512-NGCUiYUoJf4dKb4on0SCTtlhFakXJmEIAoM8xXZyFEO9h4OU4+WfrKtAsghO55n0q628NPUWqhXaYwI/m8OO5w== dependencies: - "@fluentui/react-field" "^9.1.47" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-field" "^9.1.54" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-jsx-runtime@^9.0.24": - version "9.0.24" - resolved "https://registry.yarnpkg.com/@fluentui/react-jsx-runtime/-/react-jsx-runtime-9.0.24.tgz#5e4b04c88a678e3102ab8e2cbed146957b5465e9" - integrity sha512-aWnu04Cfz7RmRYuL/ra2V5vfH0KVjP6dBAy6I+MntxY4m9QwyJ3cS0Z/CzqmexW57w2VjR8+J5uNGATSlwcuuw== +"@fluentui/react-jsx-runtime@^9.0.30": + version "9.0.30" + resolved "https://registry.yarnpkg.com/@fluentui/react-jsx-runtime/-/react-jsx-runtime-9.0.30.tgz#1a23684dd8c427ef27f990e8b0b01d8da8355078" + integrity sha512-8d0hJPPKNad6IFOjbc42g9R8RaYJKXxn0Dxk9Rd7JUSk1TQEqSjrLyUbQEuK0b8LWvrYb+gD9LqyGCr5Wgb6pw== dependencies: - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@swc/helpers" "^0.5.1" react-is "^17.0.2" -"@fluentui/react-label@^9.1.55": - version "9.1.55" - resolved "https://registry.yarnpkg.com/@fluentui/react-label/-/react-label-9.1.55.tgz#dbe602291468818b78776fb635765fd8e0c2bf4f" - integrity sha512-lgWsw0F0g8qa5lHITvWbJpEinvhr5iMlX8/O73ynn2N4tt1Ltqx9HPld/J5E40s3KUZQCgYgTwCu3bw3/AbT5w== +"@fluentui/react-label@^9.1.62": + version "9.1.62" + resolved "https://registry.yarnpkg.com/@fluentui/react-label/-/react-label-9.1.62.tgz#e1d472983fc0d2022a15dd6d18aadc27b9c89113" + integrity sha512-2lcojdQ3KDZZhbpwkSnfYuoyPv/ymSjg1CT7PdZ4OZOGM2H2o9LmPZ3B2oSvAqgLaHLiiVk4ZdCog7AZSK/4tA== dependencies: - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-link@^9.2.4": - version "9.2.4" - resolved "https://registry.yarnpkg.com/@fluentui/react-link/-/react-link-9.2.4.tgz#c8cdc5d74725dfa7e4b08dc9a4cb92cd3519d8f7" - integrity sha512-zO/DONs1ay5B2VfYH6pfZVsjSanKmMI1S0HqSk7pdGtkp8XhwRFl+G3Xm+v9J4aKfvakJEMemTCRNcHiuCwwsA== +"@fluentui/react-link@^9.2.11": + version "9.2.11" + resolved "https://registry.yarnpkg.com/@fluentui/react-link/-/react-link-9.2.11.tgz#8127a9ed373ab358c6166230bbe3404f32b4e2b8" + integrity sha512-zfrgNWkwoi/+RKdbtX3HGAWfkf1MTuAGasuSL5yfukU/XW0FPOof3qa4o1wsYYF+xNaaIC9Fl3xL04TncxUYLw== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-menu@^9.12.41": - version "9.12.41" - resolved "https://registry.yarnpkg.com/@fluentui/react-menu/-/react-menu-9.12.41.tgz#8f14b041cfe3c61b3de762910f4f42bbbf2c7f06" - integrity sha512-XB4ZWOC1l7pZVgn2xVYohf6Utiz6NCENKfAfvEW7zrVU1kSGgQwkEu/4540fT8q9WMeOGBzi2b7i2QjFf7j0vw== +"@fluentui/react-menu@^9.13.0": + version "9.13.0" + resolved "https://registry.yarnpkg.com/@fluentui/react-menu/-/react-menu-9.13.0.tgz#3c67965d47bf702abd1537c0c11896453e7811b2" + integrity sha512-3rrGKt+dDVE/FVnjzo1kDYYhpaV3avdpVDhcsQLA6Ng6n/+4zFHHr+ALB9dGOriRmXUT8hVA8Kueray/h8qxag== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-portal" "^9.4.7" - "@fluentui/react-positioning" "^9.12.0" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-portal" "^9.4.14" + "@fluentui/react-positioning" "^9.13.4" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-message-bar@^9.0.12": - version "9.0.12" - resolved "https://registry.yarnpkg.com/@fluentui/react-message-bar/-/react-message-bar-9.0.12.tgz#ae8561e6cae61d48ed43eb82b4964ca1a4e9b749" - integrity sha512-/ysREhZ0CckNukrRr5S6SNdXJBJWxNlJoYuzYLFxiRV9xj05+EXpuoKxsQwaG5LMkl5I+x+tf3WuPBKJs9FcXA== +"@fluentui/react-message-bar@^9.0.20": + version "9.0.20" + resolved "https://registry.yarnpkg.com/@fluentui/react-message-bar/-/react-message-bar-9.0.20.tgz#cd0452fcb7b356b20505f452b5f3af69707674a2" + integrity sha512-eTKK2HL+ADRwa9ZXtaJdF83+nu+pLdhuLOgzrL0xCHz4OuAP0/xgT0uQAm0pMqohbVKJHMJj9Uha81LmD0XATA== dependencies: - "@fluentui/react-button" "^9.3.61" + "@fluentui/react-button" "^9.3.69" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" react-transition-group "^4.4.1" -"@fluentui/react-motion-preview@^0.5.7": - version "0.5.7" - resolved "https://registry.yarnpkg.com/@fluentui/react-motion-preview/-/react-motion-preview-0.5.7.tgz#e89d0a9009f58c3fc0229da5f7e22660da8a99cd" - integrity sha512-RODcicznqfrMzHTwrs62JCOi9S+vS/W1VOJ/KQFS7SLh7DgyZuNRz6mqZwbZMy3xHibli4qITMnLrwOzBg7Lhg== +"@fluentui/react-motion-preview@^0.5.13": + version "0.5.13" + resolved "https://registry.yarnpkg.com/@fluentui/react-motion-preview/-/react-motion-preview-0.5.13.tgz#e4ccbd8fb8f87c93f9fca2e580fdfdb4fe89d118" + integrity sha512-4tPN4x2ST6q+1OwJ6FGDui+07KAjOVoYNDpsOzkdrCgSBTALWgRGjDwYVme1EOnvxvmQT4oAYJN59KGDCoZA0Q== dependencies: - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-overflow@^9.1.5": - version "9.1.5" - resolved "https://registry.yarnpkg.com/@fluentui/react-overflow/-/react-overflow-9.1.5.tgz#4d6119bfe700db4d0ed08b4226350e567a00e640" - integrity sha512-8qdOL8MSnT0UeXRY9gVnzKgMx/LqmStTqGsY+luKDgmXxkzlc2hqx9SLnByry1ljDPVpI1LtOku9U6YZhGeg4g== +"@fluentui/react-overflow@^9.1.11": + version "9.1.11" + resolved "https://registry.yarnpkg.com/@fluentui/react-overflow/-/react-overflow-9.1.11.tgz#4549ef46f76d2cd3e2f04e51024e48c9cbcd1450" + integrity sha512-aj9Jv63RO5V5XoD/afaxKSjeyNCqyHlJJ+b3jfT+zU1PSdD0+bHBmv7pu5HrUGKM1lkCvi+JH15bfSyqfthQQQ== dependencies: "@fluentui/priority-overflow" "^9.1.11" - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-persona@^9.2.64": - version "9.2.64" - resolved "https://registry.yarnpkg.com/@fluentui/react-persona/-/react-persona-9.2.64.tgz#7c7b67a238a039ea59114a7cfc9509529c3375f5" - integrity sha512-6ENXr555XzNyP1SeYwAKIAAicLupw44Dxq8IZpR9A8Bk0VT9ShwVKu9d6pD7YLf3GmZDaxJd5JLAmRsBs1q/Gw== +"@fluentui/react-persona@^9.2.74": + version "9.2.74" + resolved "https://registry.yarnpkg.com/@fluentui/react-persona/-/react-persona-9.2.74.tgz#4719aa01862178b0866bc335d3766f5bce56fc79" + integrity sha512-Xr6DGAYjmRwaSx0vUXOjfDLx8vGpNBWXEWu5OUIAvcLEZ1kyV3GjMQ3qRR22E3LUGtr6IjA3Sp5AVtaOrOyS7w== dependencies: - "@fluentui/react-avatar" "^9.6.5" - "@fluentui/react-badge" "^9.2.19" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-avatar" "^9.6.15" + "@fluentui/react-badge" "^9.2.25" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-popover@^9.8.29": - version "9.8.29" - resolved "https://registry.yarnpkg.com/@fluentui/react-popover/-/react-popover-9.8.29.tgz#7409425e7d9492be6986e2b101bfb200818a400c" - integrity sha512-75s049Rwyx4nItD7qq8tg1Rh5euRcTwq4kyHyZ7M1lelvEwH4JeS73qsoLWSqz4K3MXQP5RVcOK0mSQM9e3O3w== +"@fluentui/react-popover@^9.8.39": + version "9.8.39" + resolved "https://registry.yarnpkg.com/@fluentui/react-popover/-/react-popover-9.8.39.tgz#8704ced7131461adfba60bdba88861e512a5f24b" + integrity sha512-U0AmSejhjV6Ol6p3mIQkfGSqZXyJpfh2ovuUQeXj8DNO2t1O5e6UP7bFdRn1ZJkkMVzy4/j4hpp4ruj/lM32Lg== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-context-selector" "^9.1.46" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-portal" "^9.4.7" - "@fluentui/react-positioning" "^9.12.0" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-context-selector" "^9.1.52" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-portal" "^9.4.14" + "@fluentui/react-positioning" "^9.13.4" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" @@ -1193,253 +1198,253 @@ dependencies: "@swc/helpers" "^0.5.1" -"@fluentui/react-portal@^9.4.7": - version "9.4.7" - resolved "https://registry.yarnpkg.com/@fluentui/react-portal/-/react-portal-9.4.7.tgz#88518dff876550c9cf40b647b3ed15dd96782c4c" - integrity sha512-4g0vvs+YKmBri24MBi+C3hkgKAEGhbNUi4+u1Oa0olrcGmbtugM0G910raDLJXLV2ssgSO8znzVRmA/4Lg7XYw== +"@fluentui/react-portal@^9.4.14": + version "9.4.14" + resolved "https://registry.yarnpkg.com/@fluentui/react-portal/-/react-portal-9.4.14.tgz#774ed26df0c0c3f0c51ab5996ce8d4cebdbcb54c" + integrity sha512-7NjhPBXS64+O4hJcfbdFNtcoC+mHpHmimiT7VZg8csi9uRN2cXVuHISzr2x6i4umEagpixCklCVhnvtSvbamFg== dependencies: - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" use-disposable "^1.0.1" -"@fluentui/react-positioning@^9.12.0": - version "9.12.0" - resolved "https://registry.yarnpkg.com/@fluentui/react-positioning/-/react-positioning-9.12.0.tgz#8f6195c8e2747b997450406db77a92fdef84fa89" - integrity sha512-Unf9oMqE9QCf/+RTCs5Xk7z8XpxupYtIXVplUWUM3qyeHmtlEy4BsBAUQE0bXl6B52sl92JvevgrYI0IMuoADg== +"@fluentui/react-positioning@^9.13.4": + version "9.13.4" + resolved "https://registry.yarnpkg.com/@fluentui/react-positioning/-/react-positioning-9.13.4.tgz#9eabe35e9ff12869b2a8d466bb963f7362a6d7ab" + integrity sha512-xA+GajiUbLpAwAX4QKn+LIt48izcyA4Tab5ZfJJ3hxFsUXeeuajkZkc408nnVElGnPAp4Xqfb+VEsf/BVvKoYQ== dependencies: - "@floating-ui/devtools" "0.0.4" + "@floating-ui/devtools" "0.2.1" "@floating-ui/dom" "^1.2.0" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-progress@^9.1.57": - version "9.1.57" - resolved "https://registry.yarnpkg.com/@fluentui/react-progress/-/react-progress-9.1.57.tgz#69afde401a4d09718a56ffc30fcbe2974e2641cb" - integrity sha512-QFBz9A9N4lyshev1b/r7OE5ea7/Q60Tav3zVGbfqVGmfA24qemmoDIYU1qWscuScRBmblR6//fvAroHhiK/FrQ== +"@fluentui/react-progress@^9.1.64": + version "9.1.64" + resolved "https://registry.yarnpkg.com/@fluentui/react-progress/-/react-progress-9.1.64.tgz#345109db7f7bc637e7838e52730775728112a618" + integrity sha512-SAQZW05o84klVc2k+HhbpNPMVE7JVnW+UTR3mGm89EaWqrxxIZTvjsxbp4L8JDkPmIfciUYPJXIXN/l2aGzpyA== dependencies: - "@fluentui/react-field" "^9.1.47" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-field" "^9.1.54" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-provider@^9.13.5": - version "9.13.5" - resolved "https://registry.yarnpkg.com/@fluentui/react-provider/-/react-provider-9.13.5.tgz#a9b0706e4130097be5e53ad31bf5cee5e9095470" - integrity sha512-oxpGS8r5YEKHZy2csH9/kCJBgBMVms+HC0hiIA+J3M2iCdN+y1SuP0Y2zAYg/X/jRb1mXJzXtoWchsYvxVLnOQ== +"@fluentui/react-provider@^9.13.12": + version "9.13.12" + resolved "https://registry.yarnpkg.com/@fluentui/react-provider/-/react-provider-9.13.12.tgz#bba82105225897840dd1d8f4cdfd45a3f41a1a16" + integrity sha512-4LDVXLjHOw5kxmON5VctVi57B/o0h1yd+4utPMIW1gtUt0XH+hR5hVAb+a7vtAo7CgNFBzVI2Taaymuec2p4SQ== dependencies: "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/core" "^1.14.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-radio@^9.2.0": - version "9.2.0" - resolved "https://registry.yarnpkg.com/@fluentui/react-radio/-/react-radio-9.2.0.tgz#04878becf9bee04f90e7eb9ae3197406c519c1ac" - integrity sha512-TowAnE7aMDq3fxCiouetjs8CN4KogfaarXYep3pXQMW7xRKBfXdOOFElYtQx/WzmikMJpDhhkZcyrqEpM5KGDQ== - dependencies: - "@fluentui/react-field" "^9.1.47" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-label" "^9.1.55" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" +"@fluentui/react-radio@^9.2.8": + version "9.2.8" + resolved "https://registry.yarnpkg.com/@fluentui/react-radio/-/react-radio-9.2.8.tgz#a6d2b210813c65408502b0828847735d1dbd4f37" + integrity sha512-C5Ru6Er2T56A6HRsz+jPbOo5UNZ6snkP9BIt2Hv8C+a9sJbPyIFwuEwBMshtz1BjcvSGJtboDRi8cCja8ujdVg== + dependencies: + "@fluentui/react-field" "^9.1.54" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-label" "^9.1.62" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-select@^9.1.57": - version "9.1.57" - resolved "https://registry.yarnpkg.com/@fluentui/react-select/-/react-select-9.1.57.tgz#cc12b4fb903b7df783925c7d2569ac6ae8df554d" - integrity sha512-QGlK+QYDiAzA6f3imGQBQOq9MQVVa88XyaSKWG82mjZfFWbs6vxaIZMXuCOTAsjcXKB4XDYVYOpman3apdLHjQ== +"@fluentui/react-select@^9.1.64": + version "9.1.64" + resolved "https://registry.yarnpkg.com/@fluentui/react-select/-/react-select-9.1.64.tgz#b23da05abc1ac316c51b549fbe2417fa4201f685" + integrity sha512-804giUvH29u1A9yjh0lOPCY2ueA/0PkC03FkYk10WAmK/XSuy5kZ4qtkJQPpMj+cu8bGoKfpQaDLFrB8o5O1wA== dependencies: - "@fluentui/react-field" "^9.1.47" + "@fluentui/react-field" "^9.1.54" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-shared-contexts@^9.13.2": - version "9.13.2" - resolved "https://registry.yarnpkg.com/@fluentui/react-shared-contexts/-/react-shared-contexts-9.13.2.tgz#45351ccf67d5bb5d362f74e4dfffa0a7b3c5dcca" - integrity sha512-78aEZdff7vaUOmeRyMDPc/Ml+kbwn02BiRLPQhqgYtCyjy0V3YBpmYfqxO8N5hUIZcFTedyOaHWpzVeEYxpNmA== +"@fluentui/react-shared-contexts@^9.14.0": + version "9.14.0" + resolved "https://registry.yarnpkg.com/@fluentui/react-shared-contexts/-/react-shared-contexts-9.14.0.tgz#b239bb969bcf26617a02b513d4863a2669242916" + integrity sha512-P9yhg31WYfB1W66/gD3+qVCLBsyIEcOzQvKVaIQvd9UhF67lNW4kMXUB6YVOk5PV0Og4hXnkH/vuHl7YMD9RHw== dependencies: "@fluentui/react-theme" "^9.1.16" "@swc/helpers" "^0.5.1" -"@fluentui/react-skeleton@^9.0.45": - version "9.0.45" - resolved "https://registry.yarnpkg.com/@fluentui/react-skeleton/-/react-skeleton-9.0.45.tgz#29055e44658cbf61f60b69e64a75bc9b630c2332" - integrity sha512-toOWQNoqONupLImvbkE4vf+ECq1lAyCUBf4hI6AOtYppDaXOOOWWsgSImsj25yLtS4dPYkzyWoMMdmjSOwXu6g== +"@fluentui/react-skeleton@^9.0.52": + version "9.0.52" + resolved "https://registry.yarnpkg.com/@fluentui/react-skeleton/-/react-skeleton-9.0.52.tgz#e6dcefc2c57a0213ccd25ae83b725b608e708adb" + integrity sha512-eETBSLZjpgiIlIYkwjH+3q9p4ITGKVWCLhva0wgo7iFMovnKSxoQykbuKbJrIyjLhKwwKKHekQPWWUo75RNwPA== dependencies: - "@fluentui/react-field" "^9.1.47" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-field" "^9.1.54" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-slider@^9.1.62": - version "9.1.62" - resolved "https://registry.yarnpkg.com/@fluentui/react-slider/-/react-slider-9.1.62.tgz#4347f229fd16f18966fd26ef3cfa735d7e575d91" - integrity sha512-GHY1J3qpoYY3c1rwQsBRTHISExO1vBSJCH4lDgCJI/E9KOa8saJYFvuv3aYmnOq8CGSb2UCSb0eha5G9UB/4yQ== +"@fluentui/react-slider@^9.1.70": + version "9.1.70" + resolved "https://registry.yarnpkg.com/@fluentui/react-slider/-/react-slider-9.1.70.tgz#6de27b5a6d7f1d103d55596714b7e87cc1434c65" + integrity sha512-0gyL6BbKN3T6TK1N040UjZBefLltNpcYuNm4yEVfCN98xbVwp6/SCJWMpZrkFLwd0J2wcHtNgpnegXAHkvR1eg== dependencies: - "@fluentui/react-field" "^9.1.47" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-field" "^9.1.54" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-spinbutton@^9.2.57": - version "9.2.57" - resolved "https://registry.yarnpkg.com/@fluentui/react-spinbutton/-/react-spinbutton-9.2.57.tgz#692bf6011d98fe007c01dd9df49d4d6ffc77abe9" - integrity sha512-FoYe0iUcEYjlhJtqjciBdQ/4wuQ7iPwpqE/VuGknvWrydXawJ7qI3fx7yP/58R5utbGAz4Rdkkjzc2xhtW/EVg== +"@fluentui/react-spinbutton@^9.2.64": + version "9.2.64" + resolved "https://registry.yarnpkg.com/@fluentui/react-spinbutton/-/react-spinbutton-9.2.64.tgz#a2d49f27db30852ec90e2d721f01c42e96f9f9fa" + integrity sha512-k7lfnBNEOJ0eeF3Id8YIp6XN7v22FRMGsyRZWeZvCbdQ6luLTjBOdQOIoZ4DQfmUbu9Ma34O7HnnO1uRY3gR5g== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-field" "^9.1.47" + "@fluentui/react-field" "^9.1.54" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-spinner@^9.3.35": - version "9.3.35" - resolved "https://registry.yarnpkg.com/@fluentui/react-spinner/-/react-spinner-9.3.35.tgz#e0400f173eb3e48e5d37b0260df7ebd42821d1f4" - integrity sha512-0JXgkVrB4+atN1P44XtuNup6xthg4gyJYPXGS+3x/EB2B0pi55c8IWE/mVjG9F/TBt2PFRb9nCzdrfvkhV/CsA== +"@fluentui/react-spinner@^9.3.42": + version "9.3.42" + resolved "https://registry.yarnpkg.com/@fluentui/react-spinner/-/react-spinner-9.3.42.tgz#98449f8e2db47c5f4ff4243f9d9e4180048e7b9a" + integrity sha512-2KzAIwpmJSGkyhTk2+rnLD6CrZTPnqA/SUsiyTK40xNLPjCSm0lBXgD1dnDGodqweho06+exGoOiIJTvd+uyNg== dependencies: - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-label" "^9.1.55" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-label" "^9.1.62" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-switch@^9.1.62": - version "9.1.62" - resolved "https://registry.yarnpkg.com/@fluentui/react-switch/-/react-switch-9.1.62.tgz#2934756421c240bb56cbdbb8d880a240f51ffc77" - integrity sha512-L+MzTP3B5eWxw7az62Sf7FGzPhPQoD0CtyR78IHTrgPXQswnoSq9oJRkpVr5LBfND2SE4Y7UvPuUulBJXTlW5g== +"@fluentui/react-switch@^9.1.70": + version "9.1.70" + resolved "https://registry.yarnpkg.com/@fluentui/react-switch/-/react-switch-9.1.70.tgz#030b10c6afc9edea0191d7736bba1832f0d9cff2" + integrity sha512-kTUs3QfXeiR7+a/Es1/3UG3Ou9xbUo3GB5oFKaKd9VZ4tMyM12bHFb/Xqy/b424Y/6SvDzXdT68qFaMhTyNL/Q== dependencies: - "@fluentui/react-field" "^9.1.47" + "@fluentui/react-field" "^9.1.54" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-label" "^9.1.55" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-label" "^9.1.62" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-table@^9.11.1": - version "9.11.1" - resolved "https://registry.yarnpkg.com/@fluentui/react-table/-/react-table-9.11.1.tgz#eba53e8e859ecc3078ced8a2566822c8a7fcfad6" - integrity sha512-zdmE2U3x/zy8QEAwtAIvLfPtTAg0mCBp7wWBQxuNq9UsPvA+GyMjvrJRiidB/q47ZQn/2Ji4fP1iVXW1B+KGWw== +"@fluentui/react-table@^9.11.11": + version "9.11.11" + resolved "https://registry.yarnpkg.com/@fluentui/react-table/-/react-table-9.11.11.tgz#93d80d6de422efa37acc9592bf4f703715854f26" + integrity sha512-CuUL1LNIaF4QblqxMiUaxREk9YX57mL1Wavcf1ph4cCstA+OtpOK3ns55teXgzAm/DqfOpj+JgUGaFxGMH86Dw== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-avatar" "^9.6.5" - "@fluentui/react-checkbox" "^9.2.5" - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-avatar" "^9.6.15" + "@fluentui/react-checkbox" "^9.2.13" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-radio" "^9.2.0" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-radio" "^9.2.8" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-tabs@^9.4.3": - version "9.4.3" - resolved "https://registry.yarnpkg.com/@fluentui/react-tabs/-/react-tabs-9.4.3.tgz#6873e62c46f87a4048d7766f3edb3dd52638cefc" - integrity sha512-H/bM6NfA3y81NdOMmCWMhpv4SDAWkxMq8ywx8Pr98pKvkearlIo9EuxFK84YEK0haibgn6OpWSPciVaBLx8dPw== +"@fluentui/react-tabs@^9.4.10": + version "9.4.10" + resolved "https://registry.yarnpkg.com/@fluentui/react-tabs/-/react-tabs-9.4.10.tgz#ec280e9191c9f61368d18e697c0ca64618717d66" + integrity sha512-Xh9LBw5aiuVNhoBQj9yCjhuXVJbVEIr1UHE6TCDu2WO7noIu3dnZD5UXWXf9UykCh4NVB9KmfYc0rG4Ikv4UOw== dependencies: - "@fluentui/react-context-selector" "^9.1.46" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-context-selector" "^9.1.52" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-tabster@^9.17.0": - version "9.17.0" - resolved "https://registry.yarnpkg.com/@fluentui/react-tabster/-/react-tabster-9.17.0.tgz#689ce3315e42357593ea5582398c04d851110e36" - integrity sha512-+tFYkjH5QiF2YDCmJAz1FVzzs/09hiRT0xPe1yLlAkMYJV/s+iIungwKgSUF1RziP9iQh9NZZ2A5GMrzRw8SGg== +"@fluentui/react-tabster@^9.19.1": + version "9.19.1" + resolved "https://registry.yarnpkg.com/@fluentui/react-tabster/-/react-tabster-9.19.1.tgz#bcf0d6c715db2c1e2279441f8405a842ed08a290" + integrity sha512-Sx5mdSh6TLcApox86iiK4JZaFZOUmhs+FwuF/LgARHNGJam9Nc7nyTkCGyTmaPr2ERSxzG3pNLtav24CWg90qA== dependencies: - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" - keyborg "^2.3.0" - tabster "^5.0.1" + keyborg "^2.5.0" + tabster "^6.0.1" -"@fluentui/react-tags@^9.0.18": - version "9.0.18" - resolved "https://registry.yarnpkg.com/@fluentui/react-tags/-/react-tags-9.0.18.tgz#1f92ec2515d9b764ce1cdb981ba05c703134acce" - integrity sha512-L46Hx8QM9H37VD5JmzGPBB8RxWfV1uVn+IapFEBVOEUd/Khtb0d5lyBMEyDZmLm3Yph14tOIJv7FeW4lv0fr7Q== +"@fluentui/react-tags@^9.0.28": + version "9.0.28" + resolved "https://registry.yarnpkg.com/@fluentui/react-tags/-/react-tags-9.0.28.tgz#b88ffdc39eb747ca43f4bb8066e442e86399ed55" + integrity sha512-4UhFxsIKbGdbtYQzgSP2eJDLD7PZ6OLqInptnsL5Newr8g7My8XkZF8ziWZGtrUnaIaaQW9bakka1fCyjQWfUA== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-avatar" "^9.6.5" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-avatar" "^9.6.15" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-text@^9.4.4": - version "9.4.4" - resolved "https://registry.yarnpkg.com/@fluentui/react-text/-/react-text-9.4.4.tgz#3fb20c511fe542c387c4784a21382e0a5c3f19c4" - integrity sha512-FH/zua+u+T8QK1cDeg4w1Ahdfj+2A3Wd61g9lxU26ZfUzhWxV7F9enwGgiqTF0Swv7WsD1ahwI+FIZA5+WgEsw== +"@fluentui/react-text@^9.4.10": + version "9.4.10" + resolved "https://registry.yarnpkg.com/@fluentui/react-text/-/react-text-9.4.10.tgz#132ac4c52c96162bd593ce5cc8690210a562ada9" + integrity sha512-De1ZmkaF+Bib/zBpp+kkRm0wDnFA3OSSE9rHMV5lkZDMvlTQv1qgT6H2n0dKbt+Aqg330mPjUBwdaMPa/XdBWA== dependencies: - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-textarea@^9.3.57": - version "9.3.57" - resolved "https://registry.yarnpkg.com/@fluentui/react-textarea/-/react-textarea-9.3.57.tgz#2e4914dbb4d853dfa4c0099b6b082284883bc5b5" - integrity sha512-E26jQ1s7/QLkJjTw72BQHfKtXP8PyNsfPSfWbwhmm5doe0HLa1V5+Gq1ZkdQiV78Q5Rl0bGKXrdR2Ccy/fBL/g== +"@fluentui/react-textarea@^9.3.64": + version "9.3.64" + resolved "https://registry.yarnpkg.com/@fluentui/react-textarea/-/react-textarea-9.3.64.tgz#d3839bf161663f4960e19b3cbe3f21dfbed7707d" + integrity sha512-Okrgn3H84ghzrW3hLsUBMXUzi4SfCRWyGgojYhUkxqYPjfeGfqIVcX+fsKke/irNcwkfv2dtjjJiQjRnlxiQGQ== dependencies: - "@fluentui/react-field" "^9.1.47" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-field" "^9.1.54" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" @@ -1451,153 +1456,153 @@ "@fluentui/tokens" "1.0.0-alpha.13" "@swc/helpers" "^0.5.1" -"@fluentui/react-toast@^9.3.23": - version "9.3.23" - resolved "https://registry.yarnpkg.com/@fluentui/react-toast/-/react-toast-9.3.23.tgz#1c7cc0c7d04aaddcea00f9d41718e123e06e9c9e" - integrity sha512-PJClzPYWmq303SoaNuPwgF0Drbn0pGrzqA6x8J3NgCx7F4c8n5SB34jxKtKlFAB5EiAk1y+v1om7Z6/v+3Zehg== +"@fluentui/react-toast@^9.3.31": + version "9.3.31" + resolved "https://registry.yarnpkg.com/@fluentui/react-toast/-/react-toast-9.3.31.tgz#03976f276ddffbd3efa70dbea03a6b37b52b6526" + integrity sha512-Fj7EFq6ShX5ldYOTYwmFg35S1pyJOgGHTSq8IjAgzRUH51hzR9ZhW9OCX9cY+LNUuUAxOh3EVXxtOfgQ1flZsQ== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" + "@fluentui/react-aria" "^9.9.0" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-portal" "^9.4.7" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-portal" "^9.4.14" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" react-transition-group "^4.4.1" -"@fluentui/react-toolbar@^9.1.62": - version "9.1.62" - resolved "https://registry.yarnpkg.com/@fluentui/react-toolbar/-/react-toolbar-9.1.62.tgz#c6ecd5abbe273f7e9df54f2c1b64e365ac71a807" - integrity sha512-97mlwQsAXn5jYhvyUUU7FrMIwddN5CTQEpoTDOaibcZ1hvZTNyVDyLpvWy7CLjX8CPvde/jgjf4z+I74zYP0OA== - dependencies: - "@fluentui/react-button" "^9.3.61" - "@fluentui/react-context-selector" "^9.1.46" - "@fluentui/react-divider" "^9.2.55" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-radio" "^9.2.0" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" +"@fluentui/react-toolbar@^9.1.71": + version "9.1.71" + resolved "https://registry.yarnpkg.com/@fluentui/react-toolbar/-/react-toolbar-9.1.71.tgz#623ef1e2e144cb799bbdec53d9441f4960f30992" + integrity sha512-lY913//xEvzQgCQtrBjhcOMfmAiSLaBZ0V3YZULYAut0W/tcfFavrZYCuqemLdgI95RTwDxW4+y/+hKWE87O9w== + dependencies: + "@fluentui/react-button" "^9.3.69" + "@fluentui/react-context-selector" "^9.1.52" + "@fluentui/react-divider" "^9.2.61" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-radio" "^9.2.8" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-tooltip@^9.4.7": - version "9.4.7" - resolved "https://registry.yarnpkg.com/@fluentui/react-tooltip/-/react-tooltip-9.4.7.tgz#3cb04ee213d2de009e56ecb514296366e9d9855c" - integrity sha512-lpDID7AnlkDv7ujqQrRfMhPv5LqGVyVuHwAPyEfQMhcHF+9J50uwuVFsmW40398DhU85+jB9e/TkSJMOKq+BNw== +"@fluentui/react-tooltip@^9.4.17": + version "9.4.17" + resolved "https://registry.yarnpkg.com/@fluentui/react-tooltip/-/react-tooltip-9.4.17.tgz#cad00154f6d62b812b4cca72df37df3455038fc8" + integrity sha512-gFVpzsYalwtAk+hNWC18mU0oPmOmwjbQfJtxeD2aYAN42olY7cNuf5N3i4flm+gkcY1IlrEs5+vWd3OHScO65A== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-portal" "^9.4.7" - "@fluentui/react-positioning" "^9.12.0" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-portal" "^9.4.14" + "@fluentui/react-positioning" "^9.13.4" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-tree@^9.4.21": - version "9.4.21" - resolved "https://registry.yarnpkg.com/@fluentui/react-tree/-/react-tree-9.4.21.tgz#d23eed45fba141e908083f3c6a3a8ce59c12b982" - integrity sha512-6o9aVfdkpr5nV7DdqJ1etfcSX6pUHnQDhI7gba4c4cvHOeD3AkMb4fv06w3HUaNPi4G+yOteX+RWiAZAe6R0eQ== +"@fluentui/react-tree@^9.4.31": + version "9.4.31" + resolved "https://registry.yarnpkg.com/@fluentui/react-tree/-/react-tree-9.4.31.tgz#3b342f7513099b422274a35de18a9449f66505b5" + integrity sha512-iS28t0la7QSlnSfjwet8gLHI3kp9lBmO/ruLrIMw1nl20yyMMUGQomrowElt2dAChvYyoaboDTWhUvIZ7dxXIA== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-aria" "^9.6.2" - "@fluentui/react-avatar" "^9.6.5" - "@fluentui/react-button" "^9.3.61" - "@fluentui/react-checkbox" "^9.2.5" - "@fluentui/react-context-selector" "^9.1.46" + "@fluentui/react-aria" "^9.9.0" + "@fluentui/react-avatar" "^9.6.15" + "@fluentui/react-button" "^9.3.69" + "@fluentui/react-checkbox" "^9.2.13" + "@fluentui/react-context-selector" "^9.1.52" "@fluentui/react-icons" "^2.0.224" - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-radio" "^9.2.0" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-tabster" "^9.17.0" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-radio" "^9.2.8" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-tabster" "^9.19.1" "@fluentui/react-theme" "^9.1.16" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-utilities@^9.15.6": - version "9.15.6" - resolved "https://registry.yarnpkg.com/@fluentui/react-utilities/-/react-utilities-9.15.6.tgz#ddc01fc63cfef0388f54f9d0b87b7ab04eece094" - integrity sha512-Hli0iiA/gaWwADMe7NRD6TSy7KvL3bgek8j1sYkE9BiUI89GqyfJwU2Tm0it04iiCYvQ5WWrXPcRYyZ3/MHtpA== +"@fluentui/react-utilities@^9.18.1": + version "9.18.1" + resolved "https://registry.yarnpkg.com/@fluentui/react-utilities/-/react-utilities-9.18.1.tgz#5a407a1eb1a3d1cf045ab9af0ec956fc9015e258" + integrity sha512-N/NaWVQ9hgRHeBD7LlHNpYvl3UOpTTON38DJLz6UE+Qy2y7IoR4L+EqT1BZuhlcnAxw3fWCSInYDtwQzLjfWfg== dependencies: "@fluentui/keyboard-keys" "^9.0.7" - "@fluentui/react-shared-contexts" "^9.13.2" + "@fluentui/react-shared-contexts" "^9.14.0" "@swc/helpers" "^0.5.1" -"@fluentui/react-virtualizer@9.0.0-alpha.63": - version "9.0.0-alpha.63" - resolved "https://registry.yarnpkg.com/@fluentui/react-virtualizer/-/react-virtualizer-9.0.0-alpha.63.tgz#9b65f9656b7f0cf6e09c12a8225cc7e726568bc6" - integrity sha512-Uddb1bIayzXwSEJg90ybNUa1NE84aOCFRKAf1E2by7mSQupyOk3NjrVSpm3O78vUdPyjJN+COZlTsEFE3EBbIg== +"@fluentui/react-virtualizer@9.0.0-alpha.69": + version "9.0.0-alpha.69" + resolved "https://registry.yarnpkg.com/@fluentui/react-virtualizer/-/react-virtualizer-9.0.0-alpha.69.tgz#2258d3c1ef6b53a6eccc4c13a453ff393ea4b964" + integrity sha512-uvQNKIwFRNs1xoHEH74IoZcim3ZVLcQkERBqO9emzN4rUoy5p4q5U5YSTnisCNl7ZgpaD/iY6u+T2FT8UAvNUA== dependencies: - "@fluentui/react-jsx-runtime" "^9.0.24" - "@fluentui/react-shared-contexts" "^9.13.2" - "@fluentui/react-utilities" "^9.15.6" + "@fluentui/react-jsx-runtime" "^9.0.30" + "@fluentui/react-shared-contexts" "^9.14.0" + "@fluentui/react-utilities" "^9.18.1" "@griffel/react" "^1.5.14" "@swc/helpers" "^0.5.1" -"@fluentui/react-window-provider@^2.2.17": - version "2.2.17" - resolved "https://registry.yarnpkg.com/@fluentui/react-window-provider/-/react-window-provider-2.2.17.tgz#2d27517b927e67ee0863da1cf1b70e621ae0d3fd" - integrity sha512-MFaeF/hJGoXiJXjkRZ41IQmYyEnU3uCyNtoaT6YlzAE3KAMV4SvGzcSXVbgx1ZPMXMSnAJt12qX02F5XEBusbA== +"@fluentui/react-window-provider@^2.2.18": + version "2.2.18" + resolved "https://registry.yarnpkg.com/@fluentui/react-window-provider/-/react-window-provider-2.2.18.tgz#8881f1f5f5d70010d60f54965a7c6c917e3e0f39" + integrity sha512-nBKqxd0P8NmIR0qzFvka1urE2LVbUm6cse1I1T7TcOVNYa5jDf5BrO06+JRZfwbn00IJqOnIVoP0qONqceypWQ== dependencies: - "@fluentui/set-version" "^8.2.13" + "@fluentui/set-version" "^8.2.14" tslib "^2.1.0" "@fluentui/react@^8.77.3": - version "8.114.1" - resolved "https://registry.yarnpkg.com/@fluentui/react/-/react-8.114.1.tgz#bdc02d2c3bfd1482ea9317f9066206dae0255b73" - integrity sha512-Ul3UROH/bPDPy7dSjpcWmvma2raLNXCTgQrqbZ4obwAC3CsW0jMuk+aLbK0N4y/DzHhwy/nI7VOyQAA6NA5BOg== - dependencies: - "@fluentui/date-time-utilities" "^8.5.15" - "@fluentui/font-icons-mdl2" "^8.5.29" - "@fluentui/foundation-legacy" "^8.2.49" - "@fluentui/merge-styles" "^8.5.14" - "@fluentui/react-focus" "^8.8.36" - "@fluentui/react-hooks" "^8.6.34" + version "8.115.6" + resolved "https://registry.yarnpkg.com/@fluentui/react/-/react-8.115.6.tgz#59ff8f2455e93bc08cb87742ba04c36306c675f7" + integrity sha512-lao6u6AfA9uE+jWsmmRriCYXlQ9IU3W2jlapJiOJGyQvF9JGdVCyKDi2w4dIvsJyhA4ucfcKqg+9EgyrgbWcNg== + dependencies: + "@fluentui/date-time-utilities" "^8.5.16" + "@fluentui/font-icons-mdl2" "^8.5.32" + "@fluentui/foundation-legacy" "^8.2.52" + "@fluentui/merge-styles" "^8.5.15" + "@fluentui/react-focus" "^8.8.40" + "@fluentui/react-hooks" "^8.6.36" "@fluentui/react-portal-compat-context" "^9.0.11" - "@fluentui/react-window-provider" "^2.2.17" - "@fluentui/set-version" "^8.2.13" - "@fluentui/style-utilities" "^8.10.0" - "@fluentui/theme" "^2.6.39" - "@fluentui/utilities" "^8.13.22" + "@fluentui/react-window-provider" "^2.2.18" + "@fluentui/set-version" "^8.2.14" + "@fluentui/style-utilities" "^8.10.3" + "@fluentui/theme" "^2.6.41" + "@fluentui/utilities" "^8.13.24" "@microsoft/load-themed-styles" "^1.10.26" tslib "^2.1.0" -"@fluentui/set-version@^8.2.13": - version "8.2.13" - resolved "https://registry.yarnpkg.com/@fluentui/set-version/-/set-version-8.2.13.tgz#27b3123e12e2bd3043a6f6c9ce6ee4add001a5ae" - integrity sha512-xzfxKGNP/N8/hWayv32Jt6EhP7XOe0myFb2R15ll2xUnLypdLVj85y3nfu4EJb+jsTvev8uHEiz540KcZ+6EOg== +"@fluentui/set-version@^8.2.14": + version "8.2.14" + resolved "https://registry.yarnpkg.com/@fluentui/set-version/-/set-version-8.2.14.tgz#e5e63e77e1016a910b8495dfa37505bdbe91059e" + integrity sha512-f/QWJnSeyfAjGAqq57yjMb6a5ejPlwfzdExPmzFBuEOuupi8hHbV8Yno12XJcTW4I0KXEQGw+PUaM1aOf/j7jw== dependencies: tslib "^2.1.0" -"@fluentui/style-utilities@^8.10.0": - version "8.10.0" - resolved "https://registry.yarnpkg.com/@fluentui/style-utilities/-/style-utilities-8.10.0.tgz#5067c1e988cbed7daee1e711d7d5daf304b66f87" - integrity sha512-hyUdlUVdpg/0Db3kS0DtGXoafXnRFH2aM3cE50+/BEjs/SB4wGnkh+xpSq6dd0zGTmOOHaAfxqQYPa664sk/sw== +"@fluentui/style-utilities@^8.10.3": + version "8.10.3" + resolved "https://registry.yarnpkg.com/@fluentui/style-utilities/-/style-utilities-8.10.3.tgz#3defa4653b6685f9fdfcc157a2357cf192c7da0b" + integrity sha512-pyO9BGkwIxXaIMVT6ma98GIZAgTjGc0LZ5iUai9GLIrFLQWnIKnS//hgUx8qG4AecUeqZ26Wb0e+Ale9NyPQCQ== dependencies: - "@fluentui/merge-styles" "^8.5.14" - "@fluentui/set-version" "^8.2.13" - "@fluentui/theme" "^2.6.39" - "@fluentui/utilities" "^8.13.22" + "@fluentui/merge-styles" "^8.5.15" + "@fluentui/set-version" "^8.2.14" + "@fluentui/theme" "^2.6.41" + "@fluentui/utilities" "^8.13.24" "@microsoft/load-themed-styles" "^1.10.26" tslib "^2.1.0" -"@fluentui/theme@^2.6.39": - version "2.6.39" - resolved "https://registry.yarnpkg.com/@fluentui/theme/-/theme-2.6.39.tgz#196f9be9ec940ca94771505916372b8af70e92f1" - integrity sha512-6mglwir7G5GnKJVyQ6TbAVw0qj5oyeYJVI3fs/CZNFF6rD8j0btXMFfqs4Aec5GTKZ+CE6WSac59ok3irFCZzg== +"@fluentui/theme@^2.6.41": + version "2.6.41" + resolved "https://registry.yarnpkg.com/@fluentui/theme/-/theme-2.6.41.tgz#ab73cad6c0895b024c4f94d6f66945c8a91cb3bc" + integrity sha512-h9RguEzqzJ0+59ys5Kkp7JtsjhDUxBLmQunu5rpHp5Mp788OtEjI/n1a9FIcOAL/priPSQwXN7RbuDpeP7+aSw== dependencies: - "@fluentui/merge-styles" "^8.5.14" - "@fluentui/set-version" "^8.2.13" - "@fluentui/utilities" "^8.13.22" + "@fluentui/merge-styles" "^8.5.15" + "@fluentui/set-version" "^8.2.14" + "@fluentui/utilities" "^8.13.24" tslib "^2.1.0" "@fluentui/tokens@1.0.0-alpha.13": @@ -1607,50 +1612,50 @@ dependencies: "@swc/helpers" "^0.5.1" -"@fluentui/utilities@^8.13.22": - version "8.13.22" - resolved "https://registry.yarnpkg.com/@fluentui/utilities/-/utilities-8.13.22.tgz#0126978eb2002c85082c6d07f441143f5739abaa" - integrity sha512-iYVtMOl8DGrXl6Wke/ft1S31VeegW2aNLpPdF/iqanv/zejm4Z7JDrGpXDf4wjEQKzlK/XNDjBiQssM6MUsKAQ== +"@fluentui/utilities@^8.13.24": + version "8.13.24" + resolved "https://registry.yarnpkg.com/@fluentui/utilities/-/utilities-8.13.24.tgz#0f093889e88be817bd7f7c6a096d563063f7e3c8" + integrity sha512-/jo6hWCzTGCx06l2baAMwsjjBZ/dyMouls53uNaQLUGUUhUwXh/DcDDXMqLRJB3MaH9zvgfvRw61iKmm2s9fIA== dependencies: - "@fluentui/dom-utilities" "^2.2.13" - "@fluentui/merge-styles" "^8.5.14" - "@fluentui/set-version" "^8.2.13" + "@fluentui/dom-utilities" "^2.2.14" + "@fluentui/merge-styles" "^8.5.15" + "@fluentui/set-version" "^8.2.14" tslib "^2.1.0" -"@griffel/core@^1.14.1", "@griffel/core@^1.15.1": - version "1.15.1" - resolved "https://registry.yarnpkg.com/@griffel/core/-/core-1.15.1.tgz#85807a804506b4215197ce6b597541ec82e711ff" - integrity sha512-09w5axbOJuBzjTVFN5EycbAOIpCoxZeoJMZgT2fTrIl2GIxnTWpK3F2d63UzGBmQf1O+EgR6nK4FgMXFt1UFig== +"@griffel/core@^1.14.1", "@griffel/core@^1.15.2": + version "1.15.2" + resolved "https://registry.yarnpkg.com/@griffel/core/-/core-1.15.2.tgz#8f0383aaed591980d327d38444b9631a63f7d499" + integrity sha512-RlsIXoSS3gaYykUgxFpwKAs/DV9cRUKp3CW1kt3iPAtsDTWn/o+8bT1jvBws/tMM2GBu/Uc0EkaIzUPqD7uA+Q== dependencies: "@emotion/hash" "^0.9.0" - "@griffel/style-types" "^1.0.2" - csstype "^3.1.2" + "@griffel/style-types" "^1.0.3" + csstype "^3.1.3" rtl-css-js "^1.16.1" stylis "^4.2.0" tslib "^2.1.0" "@griffel/react@^1.0.0", "@griffel/react@^1.5.14": - version "1.5.19" - resolved "https://registry.yarnpkg.com/@griffel/react/-/react-1.5.19.tgz#58d7cb5ea6f3bdb649ce112ca1861d580db8caf6" - integrity sha512-qefnZseAwcwCpFVzN33mG20t/hofpWci7VNtOwzSco/IxFLuJaB2ffki+uAdUgWCpV2A67bWQjXNlymBoMUysg== + version "1.5.20" + resolved "https://registry.yarnpkg.com/@griffel/react/-/react-1.5.20.tgz#5adcf6e159b4455b01ad5bdca4e74204449ac496" + integrity sha512-1P2yaPctENFSCwyPIYXBmgpNH68c0lc/jwSzPij1QATHDK1AASKuSeq6hW108I67RKjhRyHCcALshdZ3GcQXSg== dependencies: - "@griffel/core" "^1.15.1" + "@griffel/core" "^1.15.2" tslib "^2.1.0" -"@griffel/style-types@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@griffel/style-types/-/style-types-1.0.2.tgz#9944b297e39f35308d109ee41b3757ce0b5c9a26" - integrity sha512-ka/Tpl1WU8js88LObwB/4EvpgXzx/EEJfbHhAr4ZNt29hrQKgL93X1zSY6M/FRhMhWrGIawauWkZP6/y6w/WiQ== +"@griffel/style-types@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@griffel/style-types/-/style-types-1.0.3.tgz#e8aa0ec162a04ed33fcc947021fe592d0f4e185d" + integrity sha512-AzbbYV/EobNIBtfMtyu2edFin895gjVxtu1nsRhTETUAIb0/LCZoue3Jd/kFLuPwe95rv5WRUBiQpVwJsrrFcw== dependencies: - csstype "^3.1.2" + csstype "^3.1.3" "@humanwhocodes/config-array@^0.11.13": - version "0.11.13" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297" - integrity sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ== + version "0.11.14" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz#d78e481a039f7566ecc9660b4ea7fe6b1fec442b" + integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== dependencies: - "@humanwhocodes/object-schema" "^2.0.1" - debug "^4.1.1" + "@humanwhocodes/object-schema" "^2.0.2" + debug "^4.3.1" minimatch "^3.0.5" "@humanwhocodes/module-importer@^1.0.1": @@ -1658,10 +1663,10 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== -"@humanwhocodes/object-schema@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044" - integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw== +"@humanwhocodes/object-schema@^2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz#d9fae00a2d5cb40f92cfe64b47ad749fbc38f917" + integrity sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw== "@icon-park/react@^1.4.2": version "1.4.2" @@ -1887,9 +1892,9 @@ "@jridgewell/trace-mapping" "^0.3.9" "@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" - integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== "@jridgewell/set-array@^1.0.1": version "1.1.2" @@ -1918,9 +1923,9 @@ "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.13", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.20", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.20" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz#72e45707cf240fa6b081d0366f8265b0cd10197f" - integrity sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q== + version "0.3.22" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz#72a621e5de59f5f1ef792d0793a82ee20f645e4c" + integrity sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw== dependencies: "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" @@ -1935,6 +1940,11 @@ resolved "https://registry.yarnpkg.com/@microsoft/load-themed-styles/-/load-themed-styles-1.10.295.tgz#d3c8d7ab186f422727ba112d6ebe5fe8e41051d9" integrity sha512-W+IzEBw8a6LOOfRJM02dTT7BDZijxm+Z7lhtOAz1+y9vQm1Kdz9jlAO+qCEKsfxtUOmKilW8DIRqFw2aUgKeGg== +"@microsoft/tsdoc@^0.14.2": + version "0.14.2" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz#c3ec604a0b54b9a9b87e9735dfc59e1a5da6a5fb" + integrity sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug== + "@monaco-editor/loader@^1.4.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@monaco-editor/loader/-/loader-1.4.0.tgz#f08227057331ec890fa1e903912a5b711a2ad558" @@ -1998,10 +2008,10 @@ path-to-regexp "3.2.0" tslib "2.5.3" -"@nestjs/mapped-types@2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@nestjs/mapped-types/-/mapped-types-2.0.4.tgz#97280b06bf85d34ea9bad1e847e5e3cbaca8f04f" - integrity sha512-xl+gUSp0B+ln1VSNoUftlglk8dfpUes3DHGxKZ5knuBxS5g2H/8p9/DSBOYWUfO5f4u9s6ffBPZ71WO+tbe5SA== +"@nestjs/mapped-types@2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nestjs/mapped-types/-/mapped-types-2.0.5.tgz#485d6b44e19779c98d04e52bd1d2bcc7001df0ea" + integrity sha512-bSJv4pd6EY99NX9CjBIyn4TVDoSit82DUZlL4I3bqNfy5Gt+gXTa86i3I/i0iIV9P4hntcGM5GyO+FhZAhxtyg== "@nestjs/platform-express@^9.0.5": version "9.4.3" @@ -2033,15 +2043,16 @@ path-to-regexp "0.2.5" "@nestjs/swagger@^7.1.13": - version "7.1.17" - resolved "https://registry.yarnpkg.com/@nestjs/swagger/-/swagger-7.1.17.tgz#3f8d849db8983cf609264270e83418bf5b379085" - integrity sha512-ASCxBrvMEN2o/8vEEmrIPMNzrr/hVi7QIR4y1oNYvoBNXHuwoF1VSI3+4Rq/3xmwVnVveJxHlBIs2u5xY9VgGQ== + version "7.3.0" + resolved "https://registry.yarnpkg.com/@nestjs/swagger/-/swagger-7.3.0.tgz#0b5e397cc5a592422df9afb24c79af928fea5954" + integrity sha512-zLkfKZ+ioYsIZ3dfv7Bj8YHnZMNAGWFUmx2ZDuLp/fBE4P8BSjB7hldzDueFXsmwaPL90v7lgyd82P+s7KME1Q== dependencies: - "@nestjs/mapped-types" "2.0.4" + "@microsoft/tsdoc" "^0.14.2" + "@nestjs/mapped-types" "2.0.5" js-yaml "4.1.0" lodash "4.17.21" path-to-regexp "3.2.0" - swagger-ui-dist "5.10.3" + swagger-ui-dist "5.11.2" "@nestjs/testing@^8.0.0": version "8.4.7" @@ -2115,9 +2126,9 @@ "@sinonjs/commons" "^1.7.0" "@swc/helpers@^0.5.1": - version "0.5.3" - resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.3.tgz#98c6da1e196f5f08f977658b80d6bd941b5f294f" - integrity sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A== + version "0.5.6" + resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.6.tgz#d16d8566b7aea2bef90d059757e2d77f48224160" + integrity sha512-aYX01Ke9hunpoCexYAgQucEpARGQ5w/cqHFrIR+e9gdKb1QWTsVJuTJ2ozQzIAxLyRQe/m+2RqzkyOOGiMKRQA== dependencies: tslib "^2.4.0" @@ -2203,9 +2214,9 @@ "@types/estree" "*" "@types/eslint@*": - version "8.56.1" - resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.1.tgz#988cabb39c973e9200f35fdbb29d17992965bb08" - integrity sha512-18PLWRzhy9glDQp3+wOgfLYRWlhgX0azxgJ63rdpoUHyrC9z0f5CkFburjQx4uD7ZCruw85ZtMt6K+L+R8fLJQ== + version "8.56.2" + resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.2.tgz#1c72a9b794aa26a8b94ad26d5b9aa51c8a6384bb" + integrity sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw== dependencies: "@types/estree" "*" "@types/json-schema" "*" @@ -2221,9 +2232,9 @@ integrity sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ== "@types/express-serve-static-core@^4.17.33": - version "4.17.41" - resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.41.tgz#5077defa630c2e8d28aa9ffc2c01c157c305bef6" - integrity sha512-OaJ7XLaelTgrvlZD8/aa0vvvxZdUmlCn6MtWeB7TkiKW70BQLc9XEPpDLPdbo52ZhXUCrznlWdCHWxJWtdyajA== + version "4.17.43" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.43.tgz#10d8444be560cb789c4735aea5eac6e5af45df54" + integrity sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg== dependencies: "@types/node" "*" "@types/qs" "*" @@ -2325,16 +2336,16 @@ integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== "@types/node@*": - version "20.10.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.7.tgz#40fe8faf25418a75de9fe68a8775546732a3a901" - integrity sha512-fRbIKb8C/Y2lXxB5eVMj4IU7xpdox0Lh8bUPEdtLysaylsml1hOOx1+STloRs/B9nf7C6kPRmmg/V7aQW7usNg== + version "20.11.19" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.19.tgz#b466de054e9cb5b3831bee38938de64ac7f81195" + integrity sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ== dependencies: undici-types "~5.26.4" "@types/node@^16.0.0": - version "16.18.70" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.70.tgz#d4c819be1e9f8b69a794d6f2fd929d9ff76f6d4b" - integrity sha512-8eIk20G5VVVQNZNouHjLA2b8utE2NvGybLjMaF4lyhA9uhGwnmXF8o+icdXKGSQSNANJewXva/sFUoZLwAaYAg== + version "16.18.82" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.82.tgz#58d734b4acaa5be339864bbec9cd8024dd0b43d5" + integrity sha512-pcDZtkx9z8XYV+ius2P3Ot2VVrcYOfXffBQUBuiszrlUzKSmoDYqo+mV+IoL8iIiIjjtOMvNSmH1hwJ+Q+f96Q== "@types/parse-json@^4.0.0": version "4.0.2" @@ -2369,9 +2380,9 @@ "@types/react" "*" "@types/react-dom@^18.0.0": - version "18.2.18" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.18.tgz#16946e6cd43971256d874bc3d0a72074bb8571dd" - integrity sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw== + version "18.2.19" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.19.tgz#b84b7c30c635a6c26c6a6dfbb599b2da9788be58" + integrity sha512-aZvQL6uUbIJpjZk4U8JZGbau9KDeAwMfmhyWorxgBkqDIEf6ROjRozcmPIicqsUwPUjbkDfHKgGee1Lq65APcA== dependencies: "@types/react" "*" @@ -2393,9 +2404,9 @@ "@types/react" "*" "@types/react@*", "@types/react@^18.0.0": - version "18.2.47" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.47.tgz#85074b27ab563df01fbc3f68dc64bf7050b0af40" - integrity sha512-xquNkkOirwyCgoClNk85BjP+aqnIS+ckAJ8i37gAbDs14jfW/J23f2GItAf33oiUPQnqNMALiFeoM9Y5mbjpVQ== + version "18.2.57" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.57.tgz#147b516d8bdb2900219acbfc6f939bdeecca7691" + integrity sha512-ZvQsktJgSYrQiMirAN60y4O/LRevIV8hUzSOSNB6gfR3/o3wCBFQx3sPwIYtuDMeiVgsSS3UzCV26tEzgnfvQw== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -2407,9 +2418,9 @@ integrity sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A== "@types/semver@^7.3.12": - version "7.5.6" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" - integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== + version "7.5.7" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.7.tgz#326f5fdda70d13580777bcaa1bc6fa772a5aef0e" + integrity sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg== "@types/send@*": version "0.17.4" @@ -2434,9 +2445,9 @@ integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== "@types/superagent@*": - version "8.1.1" - resolved "https://registry.yarnpkg.com/@types/superagent/-/superagent-8.1.1.tgz#dbc620c5df3770b0c3092f947d6d5e808adae2bc" - integrity sha512-YQyEXA4PgCl7EVOoSAS3o0fyPFU6erv5mMixztQYe1bqbWmmn8c+IrqoxjQeZe4MgwXikgcaZPiI/DsbmOVlzA== + version "8.1.3" + resolved "https://registry.yarnpkg.com/@types/superagent/-/superagent-8.1.3.tgz#6222a466e89eac9c84ad8de11870d92097e6554a" + integrity sha512-R/CfN6w2XsixLb1Ii8INfn+BT9sGPvw74OavfkW4SwY+jeUcAwLZv2+bXLJkndnimxjEBm0RPHgcjW9pLCa8cw== dependencies: "@types/cookiejar" "^2.1.5" "@types/methods" "^1.1.4" @@ -2726,9 +2737,9 @@ acorn-jsx@^5.3.2: integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== acorn-walk@^8.1.1: - version "8.3.1" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.1.tgz#2f10f5b69329d90ae18c58bf1fa8fccd8b959a43" - integrity sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw== + version "8.3.2" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.2.tgz#7703af9415f1b6db9315d6895503862e231d34aa" + integrity sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A== acorn@^8.4.1, acorn@^8.8.2, acorn@^8.9.0: version "8.11.3" @@ -2868,13 +2879,13 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== -array-buffer-byte-length@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" - integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== +array-buffer-byte-length@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz#1e5583ec16763540a27ae52eed99ff899223568f" + integrity sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg== dependencies: - call-bind "^1.0.2" - is-array-buffer "^3.0.1" + call-bind "^1.0.5" + is-array-buffer "^3.0.4" array-flatten@1.1.1: version "1.1.1" @@ -2918,27 +2929,28 @@ array.prototype.flatmap@^1.3.1: es-shim-unscopables "^1.0.0" array.prototype.tosorted@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz#620eff7442503d66c799d95503f82b475745cefd" - integrity sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg== + version "1.1.3" + resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.3.tgz#c8c89348337e51b8a3c48a9227f9ce93ceedcba8" + integrity sha512-/DdH4TiTmOKzyQbp/eadcCVexiCb36xJg7HshYOYJnNZFDj33GEv0P7GxsynpShhq4OLYJzbGcBDkLsDt7MnNg== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - es-shim-unscopables "^1.0.0" - get-intrinsic "^1.2.1" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.1.0" + es-shim-unscopables "^1.0.2" -arraybuffer.prototype.slice@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" - integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== +arraybuffer.prototype.slice@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz#097972f4255e41bc3425e37dc3f6421cf9aefde6" + integrity sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A== dependencies: - array-buffer-byte-length "^1.0.0" - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - get-intrinsic "^1.2.1" - is-array-buffer "^3.0.2" + array-buffer-byte-length "^1.0.1" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.2.1" + get-intrinsic "^1.2.3" + is-array-buffer "^3.0.4" is-shared-array-buffer "^1.0.2" asap@^2.0.0: @@ -2968,10 +2980,12 @@ at-least-node@^1.0.0: resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== -available-typed-arrays@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" - integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== +available-typed-arrays@^1.0.6, available-typed-arrays@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" + integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== + dependencies: + possible-typed-array-names "^1.0.0" axios@^0.24.0: version "0.24.0" @@ -2981,9 +2995,9 @@ axios@^0.24.0: follow-redirects "^1.14.4" axios@^1.6.0: - version "1.6.5" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.5.tgz#2c090da14aeeab3770ad30c3a1461bc970fb0cd8" - integrity sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg== + version "1.6.7" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.7.tgz#7b48c2e27c96f9c68a2f8f31e2ab19f59b06b0a7" + integrity sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA== dependencies: follow-redirects "^1.15.4" form-data "^4.0.0" @@ -3125,12 +3139,12 @@ braces@^3.0.2, braces@~3.0.2: fill-range "^7.0.1" browserslist@^4.14.5, browserslist@^4.22.2: - version "4.22.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.2.tgz#704c4943072bd81ea18997f3bd2180e89c77874b" - integrity sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A== + version "4.23.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" + integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== dependencies: - caniuse-lite "^1.0.30001565" - electron-to-chromium "^1.4.601" + caniuse-lite "^1.0.30001587" + electron-to-chromium "^1.4.668" node-releases "^2.0.14" update-browserslist-db "^1.0.13" @@ -3173,14 +3187,16 @@ bytes@3.1.2: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== -call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.4, call-bind@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" - integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== +call-bind@^1.0.2, call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.1" - set-function-length "^1.1.1" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" call-me-maybe@^1.0.1: version "1.0.2" @@ -3202,10 +3218,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001565: - version "1.0.30001576" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz#893be772cf8ee6056d6c1e2d07df365b9ec0a5c4" - integrity sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg== +caniuse-lite@^1.0.30001587: + version "1.0.30001588" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001588.tgz#07f16b65a7f95dba82377096923947fb25bce6e3" + integrity sha512-+hVY9jE44uKLkH0SrUTqxjxqNTOWHsbnQDIKjwkZ3lNTzUUVdBLBGXtj/q5Mp5u98r3droaZAewQuEDzjQdZlQ== chalk@3.0.0: version "3.0.0" @@ -3254,7 +3270,7 @@ chevrotain@^10.5.0: lodash "4.17.21" regexp-to-ast "0.5.0" -chokidar@3.5.3, "chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.3: +chokidar@3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -3269,6 +3285,21 @@ chokidar@3.5.3, "chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.3: optionalDependencies: fsevents "~2.3.2" +"chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.3: + version "3.6.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + chownr@^1.1.1: version "1.1.4" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" @@ -3571,7 +3602,7 @@ css-box-model@^1.2.0: dependencies: tiny-invariant "^1.0.6" -csstype@^3.0.2, csstype@^3.1.2: +csstype@^3.0.2, csstype@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== @@ -3636,14 +3667,14 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" -define-data-property@^1.0.1, define-data-property@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" - integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== +define-data-property@^1.0.1, define-data-property@^1.1.2, define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== dependencies: - get-intrinsic "^1.2.1" + es-define-property "^1.0.0" + es-errors "^1.3.0" gopd "^1.0.1" - has-property-descriptors "^1.0.0" define-lazy-prop@^2.0.0: version "2.0.0" @@ -3751,10 +3782,10 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -electron-to-chromium@^1.4.601: - version "1.4.625" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.625.tgz#a9a1d18ee911f9074a9c42d9e84b1c79b29f4059" - integrity sha512-DENMhh3MFgaPDoXWrVIqSPInQoLImywfCwrSmVl3cf9QHzoZSiutHwGaB/Ql3VkqcQV30rzgdM+BjKqBAJxo5Q== +electron-to-chromium@^1.4.668: + version "1.4.677" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.677.tgz#49ee77713516740bdde32ac2d1443c444f0dafe7" + integrity sha512-erDa3CaDzwJOpyvfKhOiJjBVNnMM0qxHq47RheVVwsSQrgBA9ZSGV9kdaOfZDPXcHzhG7lBxhj6A7KvfLJBd6Q== emittery@^0.10.2: version "0.10.2" @@ -3803,86 +3834,101 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.22.1: - version "1.22.3" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" - integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== - dependencies: - array-buffer-byte-length "^1.0.0" - arraybuffer.prototype.slice "^1.0.2" - available-typed-arrays "^1.0.5" - call-bind "^1.0.5" - es-set-tostringtag "^2.0.1" +es-abstract@^1.22.1, es-abstract@^1.22.3, es-abstract@^1.22.4: + version "1.22.4" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.4.tgz#26eb2e7538c3271141f5754d31aabfdb215f27bf" + integrity sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg== + dependencies: + array-buffer-byte-length "^1.0.1" + arraybuffer.prototype.slice "^1.0.3" + available-typed-arrays "^1.0.6" + call-bind "^1.0.7" + es-define-property "^1.0.0" + es-errors "^1.3.0" + es-set-tostringtag "^2.0.2" es-to-primitive "^1.2.1" function.prototype.name "^1.1.6" - get-intrinsic "^1.2.2" - get-symbol-description "^1.0.0" + get-intrinsic "^1.2.4" + get-symbol-description "^1.0.2" globalthis "^1.0.3" gopd "^1.0.1" - has-property-descriptors "^1.0.0" + has-property-descriptors "^1.0.2" has-proto "^1.0.1" has-symbols "^1.0.3" - hasown "^2.0.0" - internal-slot "^1.0.5" - is-array-buffer "^3.0.2" + hasown "^2.0.1" + internal-slot "^1.0.7" + is-array-buffer "^3.0.4" is-callable "^1.2.7" is-negative-zero "^2.0.2" is-regex "^1.1.4" is-shared-array-buffer "^1.0.2" is-string "^1.0.7" - is-typed-array "^1.1.12" + is-typed-array "^1.1.13" is-weakref "^1.0.2" object-inspect "^1.13.1" object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.5.1" - safe-array-concat "^1.0.1" - safe-regex-test "^1.0.0" + object.assign "^4.1.5" + regexp.prototype.flags "^1.5.2" + safe-array-concat "^1.1.0" + safe-regex-test "^1.0.3" string.prototype.trim "^1.2.8" string.prototype.trimend "^1.0.7" string.prototype.trimstart "^1.0.7" - typed-array-buffer "^1.0.0" + typed-array-buffer "^1.0.1" typed-array-byte-length "^1.0.0" typed-array-byte-offset "^1.0.0" typed-array-length "^1.0.4" unbox-primitive "^1.0.2" - which-typed-array "^1.1.13" + which-typed-array "^1.1.14" + +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.0.0, es-errors@^1.1.0, es-errors@^1.2.1, es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== es-iterator-helpers@^1.0.12: - version "1.0.15" - resolved "https://registry.yarnpkg.com/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz#bd81d275ac766431d19305923707c3efd9f1ae40" - integrity sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g== + version "1.0.17" + resolved "https://registry.yarnpkg.com/es-iterator-helpers/-/es-iterator-helpers-1.0.17.tgz#123d1315780df15b34eb181022da43e734388bb8" + integrity sha512-lh7BsUqelv4KUbR5a/ZTaGGIMLCjPGPqJ6q+Oq24YP0RdyptX1uzm4vvaqzk7Zx3bpl/76YLTTDj9L7uYQ92oQ== dependencies: asynciterator.prototype "^1.0.0" - call-bind "^1.0.2" + call-bind "^1.0.7" define-properties "^1.2.1" - es-abstract "^1.22.1" - es-set-tostringtag "^2.0.1" - function-bind "^1.1.1" - get-intrinsic "^1.2.1" + es-abstract "^1.22.4" + es-errors "^1.3.0" + es-set-tostringtag "^2.0.2" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" globalthis "^1.0.3" - has-property-descriptors "^1.0.0" + has-property-descriptors "^1.0.2" has-proto "^1.0.1" has-symbols "^1.0.3" - internal-slot "^1.0.5" + internal-slot "^1.0.7" iterator.prototype "^1.1.2" - safe-array-concat "^1.0.1" + safe-array-concat "^1.1.0" es-module-lexer@^0.9.0: version "0.9.3" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ== -es-set-tostringtag@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" - integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q== +es-set-tostringtag@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz#8bb60f0a440c2e4281962428438d58545af39777" + integrity sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ== dependencies: - get-intrinsic "^1.2.2" - has-tostringtag "^1.0.0" - hasown "^2.0.0" + get-intrinsic "^1.2.4" + has-tostringtag "^1.0.2" + hasown "^2.0.1" -es-shim-unscopables@^1.0.0: +es-shim-unscopables@^1.0.0, es-shim-unscopables@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== @@ -3932,9 +3978,9 @@ esbuild@^0.18.10, esbuild@^0.18.11, esbuild@~0.18.20: "@esbuild/win32-x64" "0.18.20" escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + version "3.1.2" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== escape-html@~1.0.3: version "1.0.3" @@ -4262,9 +4308,9 @@ fast-safe-stringify@2.1.1, fast-safe-stringify@^2.0.7, fast-safe-stringify@^2.1. integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== fastq@^1.6.0: - version "1.16.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.16.0.tgz#83b9a9375692db77a822df081edb6a9cf6839320" - integrity sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA== + version "1.17.1" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== dependencies: reusify "^1.0.4" @@ -4343,14 +4389,14 @@ flat-cache@^3.0.4: rimraf "^3.0.2" flatted@^3.2.9: - version "3.2.9" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf" - integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ== + version "3.3.0" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.0.tgz#5fdca2b5e671cd38d1537427a10e02a2caa8257e" + integrity sha512-noqGuLw158+DuD9UPRKHpJ2hGxpFyDlYYrfM0mWt4XhT4n0lwzTLh70Tkdyy4kyTmyTT9Bv7bWAJqw7cgkEXDg== follow-redirects@^1.0.0, follow-redirects@^1.14.4, follow-redirects@^1.15.4: - version "1.15.4" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf" - integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw== + version "1.15.5" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.5.tgz#54d4d6d062c0fa7d9d17feb008461550e3ba8020" + integrity sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw== for-each@^0.3.3: version "0.3.3" @@ -4459,7 +4505,7 @@ fsevents@^2.3.2, fsevents@~2.3.2, fsevents@~2.3.3: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== -function-bind@^1.1.1, function-bind@^1.1.2: +function-bind@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== @@ -4489,11 +4535,12 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" - integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== +get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== dependencies: + es-errors "^1.3.0" function-bind "^1.1.2" has-proto "^1.0.1" has-symbols "^1.0.3" @@ -4516,13 +4563,14 @@ get-stream@^6.0.0: resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== +get-symbol-description@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.2.tgz#533744d5aa20aca4e079c8e5daf7fd44202821f5" + integrity sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" + call-bind "^1.0.5" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" get-tsconfig@^4.7.2: version "4.7.2" @@ -4630,39 +4678,39 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-property-descriptors@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340" - integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1, has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== dependencies: - get-intrinsic "^1.2.2" + es-define-property "^1.0.0" -has-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" - integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== +has-proto@^1.0.1, has-proto@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== -has-tostringtag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" - integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== +has-tostringtag@^1.0.0, has-tostringtag@^1.0.1, has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== dependencies: - has-symbols "^1.0.2" + has-symbols "^1.0.3" has@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/has/-/has-1.0.4.tgz#2eb2860e000011dae4f1406a86fe80e530fb2ec6" integrity sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ== -hasown@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" - integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== +hasown@^2.0.0, hasown@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.1.tgz#26f48f039de2c0f8d3356c223fb8d50253519faa" + integrity sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA== dependencies: function-bind "^1.1.2" @@ -4771,9 +4819,9 @@ ieee754@^1.1.13: integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== ignore@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.0.tgz#67418ae40d34d6999c95ff56016759c718c82f78" - integrity sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg== + version "5.3.1" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" + integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== immer@^9.0.21: version "9.0.21" @@ -4781,9 +4829,9 @@ immer@^9.0.21: integrity sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA== immutable@^4.0.0: - version "4.3.4" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.4.tgz#2e07b33837b4bb7662f288c244d1ced1ef65a78f" - integrity sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA== + version "4.3.5" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.5.tgz#f8b436e66d59f99760dc577f5c99a4fd2a5cc5a0" + integrity sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw== import-fresh@^3.2.1: version "3.3.0" @@ -4868,12 +4916,12 @@ inquirer@8.2.0: strip-ansi "^6.0.0" through "^2.3.6" -internal-slot@^1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" - integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== +internal-slot@^1.0.5, internal-slot@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802" + integrity sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g== dependencies: - get-intrinsic "^1.2.2" + es-errors "^1.3.0" hasown "^2.0.0" side-channel "^1.0.4" @@ -4895,14 +4943,13 @@ ipaddr.js@1.9.1: resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== -is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" - integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== +is-array-buffer@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98" + integrity sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw== dependencies: call-bind "^1.0.2" - get-intrinsic "^1.2.0" - is-typed-array "^1.1.10" + get-intrinsic "^1.2.1" is-arrayish@^0.2.1: version "0.2.1" @@ -5021,9 +5068,9 @@ is-map@^2.0.1: integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== is-negative-zero@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" - integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + version "2.0.3" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz#ced903a027aca6381b777a5743069d7376a49747" + integrity sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw== is-number-object@^1.0.4: version "1.0.7" @@ -5061,11 +5108,11 @@ is-set@^2.0.1: integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== is-shared-array-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" - integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz#1237f1cba059cdb62431d378dcc37d9680181688" + integrity sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg== dependencies: - call-bind "^1.0.2" + call-bind "^1.0.7" is-stream@^2.0.0: version "2.0.1" @@ -5086,12 +5133,12 @@ is-symbol@^1.0.2, is-symbol@^1.0.3: dependencies: has-symbols "^1.0.2" -is-typed-array@^1.1.10, is-typed-array@^1.1.12, is-typed-array@^1.1.9: - version "1.1.12" - resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" - integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== +is-typed-array@^1.1.13: + version "1.1.13" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.13.tgz#d6c5ca56df62334959322d7d7dd1cca50debe229" + integrity sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw== dependencies: - which-typed-array "^1.1.11" + which-typed-array "^1.1.14" is-unicode-supported@^0.1.0: version "0.1.0" @@ -5175,9 +5222,9 @@ istanbul-lib-source-maps@^4.0.0: source-map "^0.6.1" istanbul-reports@^3.1.3: - version "3.1.6" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.6.tgz#2544bcab4768154281a2f0870471902704ccaa1a" - integrity sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg== + version "3.1.7" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" + integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== dependencies: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" @@ -5675,10 +5722,10 @@ jsonfile@^6.0.1: object.assign "^4.1.4" object.values "^1.1.6" -keyborg@^2.2.0, keyborg@^2.3.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/keyborg/-/keyborg-2.4.0.tgz#9368bab7f5e1d3cf6863306a6af6b95c3630b8b3" - integrity sha512-EixFnyCc6m27NkFwyT5GNNQl+9wiTMePtAvVuKXZpc0CZLLJfJFB3zXGFBGnwtvEXymbJoPWoErzwTpiEQ+Msg== +keyborg@2.5.0, keyborg@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/keyborg/-/keyborg-2.5.0.tgz#0690136ecfa75e2f245b67f65bdb2be296f5735a" + integrity sha512-nb4Ji1suqWqj6VXb61Jrs4ab/UWgtGph4wDch2NIZDfLBUObmLcZE0aiDjZY49ghtu03fvwxDNvS9ZB0XMz6/g== keyv@^4.5.3: version "4.5.4" @@ -5854,9 +5901,9 @@ makeerror@1.0.12: tmpl "1.0.5" material-icon-theme@^4.27.0: - version "4.33.0" - resolved "https://registry.yarnpkg.com/material-icon-theme/-/material-icon-theme-4.33.0.tgz#caeedf3b45296f12e6054dfd21f3daa5233161a6" - integrity sha512-f0PuF5TUgd3RAz5Nr3SlGX6aBj4sXhxdGQQOiob2A6CV+scP68yO2VVZkp0+7x8rjMqbxccNvi28vh5giNzJNw== + version "4.34.0" + resolved "https://registry.yarnpkg.com/material-icon-theme/-/material-icon-theme-4.34.0.tgz#5a7c653d186b0dded3a5fa56a8ec2da78189b829" + integrity sha512-JSF0Bc5yQgO4qJf/Mdv0KKQQUeU3NP3oK7z5QbUQuuTch5X0niFRquqHqVUb58u2BZl9aFzTScjn8yqekrONUg== dependencies: lodash.merge "4.6.2" @@ -6065,9 +6112,9 @@ neo-async@^2.6.2: integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== node-abi@^3.3.0: - version "3.54.0" - resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.54.0.tgz#f6386f7548817acac6434c6cba02999c9aebcc69" - integrity sha512-p7eGEiQil0YUV3ItH4/tBb781L5impVmmx2E9FRKF7d18XXzp4PGT2tdYMFY6wQqgxD0IwNZOiSJ0/K0fSi/OA== + version "3.55.0" + resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.55.0.tgz#57bc713082a48d4c7c7d3104d3d0cbb1a0e12ed9" + integrity sha512-uPEjtyh2tFEvWYt4Jw7McOD5FPcHkcxm/tHZc5PWaDB3JYq0rGFUbgaAK+CT5pYpQddBfsZVWI08OwoRfdfbcQ== dependencies: semver "^7.3.5" @@ -6196,7 +6243,7 @@ object-assign@^4, object-assign@^4.1.1: resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -object-inspect@^1.12.2, object-inspect@^1.13.1, object-inspect@^1.9.0: +object-inspect@^1.12.2, object-inspect@^1.13.1: version "1.13.1" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== @@ -6206,7 +6253,7 @@ object-keys@^1.1.1: resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -object.assign@^4.1.4: +object.assign@^4.1.4, object.assign@^4.1.5: version "4.1.5" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.5.tgz#3a833f9ab7fdb80fc9e8d2300c803d216d8fdbb0" integrity sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ== @@ -6501,10 +6548,15 @@ pluralize@8.0.0: resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== +possible-typed-array-names@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" + integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== + postcss@^8.4.27: - version "8.4.33" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.33.tgz#1378e859c9f69bf6f638b990a0212f43e2aaa742" - integrity sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg== + version "8.4.35" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.35.tgz#60997775689ce09011edf083a549cea44aabe2f7" + integrity sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA== dependencies: nanoid "^3.3.7" picocolors "^1.0.0" @@ -6845,14 +6897,15 @@ reflect-metadata@^0.1.13: integrity sha512-ZhYeb6nRaXCfhnndflDK8qI6ZQ/YcWZCISRAWICW9XYqMUwjZM9Z0DveWX/ABN01oxSHwVxKQmxeYZSsm0jh5A== reflect.getprototypeof@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz#aaccbf41aca3821b87bb71d9dcbc7ad0ba50a3f3" - integrity sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw== + version "1.0.5" + resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.5.tgz#e0bd28b597518f16edaf9c0e292c631eb13e0674" + integrity sha512-62wgfC8dJWrmxv44CA36pLDnP6KKl3Vhxb7PL+8+qrrFMMoJij4vgiMP8zV4O8+CBMXY1mHxI5fITGHXFHVmQQ== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - get-intrinsic "^1.2.1" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.0.0" + get-intrinsic "^1.2.3" globalthis "^1.0.3" which-builtin-type "^1.1.3" @@ -6871,14 +6924,15 @@ regexp-to-ast@0.5.0: resolved "https://registry.yarnpkg.com/regexp-to-ast/-/regexp-to-ast-0.5.0.tgz#56c73856bee5e1fef7f73a00f1473452ab712a24" integrity sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw== -regexp.prototype.flags@^1.5.0, regexp.prototype.flags@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" - integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== +regexp.prototype.flags@^1.5.0, regexp.prototype.flags@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334" + integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - set-function-name "^2.0.0" + call-bind "^1.0.6" + define-properties "^1.2.1" + es-errors "^1.3.0" + set-function-name "^2.0.1" require-directory@^2.1.1: version "2.1.1" @@ -6959,9 +7013,9 @@ reusify@^1.0.4: integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== rfdc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b" - integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA== + version "1.3.1" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.1.tgz#2b6d4df52dffe8bb346992a10ea9451f24373a8f" + integrity sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg== rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2" @@ -7010,13 +7064,13 @@ rxjs@^7.0.0, rxjs@^7.2.0, rxjs@^7.5.5: dependencies: tslib "^2.1.0" -safe-array-concat@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c" - integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q== +safe-array-concat@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.0.tgz#8d0cae9cb806d6d1c06e08ab13d847293ebe0692" + integrity sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.1" + call-bind "^1.0.5" + get-intrinsic "^1.2.2" has-symbols "^1.0.3" isarray "^2.0.5" @@ -7030,13 +7084,13 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-regex-test@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" - integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== +safe-regex-test@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.3.tgz#a5b4c0f06e0ab50ea2c395c14d8371232924c377" + integrity sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.3" + call-bind "^1.0.6" + es-errors "^1.3.0" is-regex "^1.1.4" "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": @@ -7045,9 +7099,9 @@ safe-regex-test@^1.0.0: integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== sass@^1.51.0: - version "1.69.7" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.69.7.tgz#6e7e1c8f51e8162faec3e9619babc7da780af3b7" - integrity sha512-rzj2soDeZ8wtE2egyLXgOOHQvaC2iosZrkF6v3EUG+tBwEvhqUCzm0VP3k9gHF9LXbSrRhT5SksoI56Iw8NPnQ== + version "1.71.1" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.71.1.tgz#dfb09c63ce63f89353777bbd4a88c0a38386ee54" + integrity sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg== dependencies: chokidar ">=3.0.0 <4.0.0" immutable "^4.0.0" @@ -7070,9 +7124,9 @@ schema-utils@^3.1.0, schema-utils@^3.1.1: ajv-keywords "^3.5.2" semver@7.x, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3: - version "7.5.4" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + version "7.6.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" + integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== dependencies: lru-cache "^6.0.0" @@ -7117,24 +7171,27 @@ serve-static@1.15.0: parseurl "~1.3.3" send "0.18.0" -set-function-length@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" - integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== +set-function-length@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.1.tgz#47cc5945f2c771e2cf261c6737cf9684a2a5e425" + integrity sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g== dependencies: - define-data-property "^1.1.1" - get-intrinsic "^1.2.1" + define-data-property "^1.1.2" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.3" gopd "^1.0.1" - has-property-descriptors "^1.0.0" + has-property-descriptors "^1.0.1" set-function-name@^2.0.0, set-function-name@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" - integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== + version "2.0.2" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" + integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== dependencies: - define-data-property "^1.0.1" + define-data-property "^1.1.4" + es-errors "^1.3.0" functions-have-names "^1.2.3" - has-property-descriptors "^1.0.0" + has-property-descriptors "^1.0.2" setprototypeof@1.2.0: version "1.2.0" @@ -7212,13 +7269,14 @@ should@^13.2.1: should-util "^1.0.0" side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + version "1.0.5" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.5.tgz#9a84546599b48909fb6af1211708d23b1946221b" + integrity sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ== dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" + call-bind "^1.0.6" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + object-inspect "^1.13.1" signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" @@ -7493,7 +7551,7 @@ stylis@^4.2.0: resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.3.1.tgz#ed8a9ebf9f76fe1e12d462f5cc3c4c980b23a7eb" integrity sha512-EQepAV+wMsIaGVGX1RECzgrcqRRU/0sYOHkeLsZ3fzHaHXZy4DaOOX0vOlGQdlsjkh3mFHAIlVimpwAs4dslyQ== -superagent@^8.0.5: +superagent@^8.1.2: version "8.1.2" resolved "https://registry.yarnpkg.com/superagent/-/superagent-8.1.2.tgz#03cb7da3ec8b32472c9d20f6c2a57c7f3765f30b" integrity sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA== @@ -7510,12 +7568,12 @@ superagent@^8.0.5: semver "^7.3.8" supertest@^6.1.3: - version "6.3.3" - resolved "https://registry.yarnpkg.com/supertest/-/supertest-6.3.3.tgz#42f4da199fee656106fd422c094cf6c9578141db" - integrity sha512-EMCG6G8gDu5qEqRQ3JjjPs6+FYT1a7Hv5ApHvtSghmOFJYtsU5S+pSb6Y2EUeCEY3CmEL3mmQ8YWlPOzQomabA== + version "6.3.4" + resolved "https://registry.yarnpkg.com/supertest/-/supertest-6.3.4.tgz#2145c250570c2ea5d337db3552dbfb78a2286218" + integrity sha512-erY3HFDG0dPnhw4U+udPfrzXa4xhSG+n4rxfRuZWCUvjFWwKl+OxWf/7zk50s84/fAAs7vf5QAb9uRa0cCykxw== dependencies: methods "^1.1.2" - superagent "^8.0.5" + superagent "^8.1.2" supports-color@^5.3.0: version "5.5.0" @@ -7581,15 +7639,15 @@ swagger-typescript-api@^13.0.3: swagger2openapi "7.0.8" typescript "5.1.6" -swagger-ui-dist@5.10.3: - version "5.10.3" - resolved "https://registry.yarnpkg.com/swagger-ui-dist/-/swagger-ui-dist-5.10.3.tgz#903adbfbecc0670a802b6d8b770e5dd07b5a36cb" - integrity sha512-fu3aozjxFWsmcO1vyt1q1Ji2kN7KlTd1vHy27E9WgPyXo9nrEzhQPqgxaAjbMsOmb8XFKNGo4Sa3Q+84Fh+pFw== +swagger-ui-dist@5.11.2: + version "5.11.2" + resolved "https://registry.yarnpkg.com/swagger-ui-dist/-/swagger-ui-dist-5.11.2.tgz#b423e820928df703586ff58f80b09ffcf2434e08" + integrity sha512-jQG0cRgJNMZ7aCoiFofnoojeSaa/+KgWaDlfgs8QN+BXoGMpxeMVY5OEnjq4OlNvF3yjftO8c9GRAgcHlO+u7A== swagger-ui-dist@>=5.0.0: - version "5.11.0" - resolved "https://registry.yarnpkg.com/swagger-ui-dist/-/swagger-ui-dist-5.11.0.tgz#9bcfd75278b1fa9c36fe52f206f8fc611470547c" - integrity sha512-j0PIATqQSEFGOLmiJOJZj1X1Jt6bFIur3JpY7+ghliUnfZs0fpWDdHEkn9q7QUlBtKbkn6TepvSxTqnE8l3s0A== + version "5.11.7" + resolved "https://registry.yarnpkg.com/swagger-ui-dist/-/swagger-ui-dist-5.11.7.tgz#4765f2f2c4abe30b34d4aa03d625cf12833fb5b4" + integrity sha512-8xqfJFRVEEU3Zxe8vQvC4g827lDOqV9haougR3tnlgF/PkDN//9Y6kGV9qsT0A9vawlbdF8dF/R6HrlDyHvbEQ== swagger-ui-express@^5.0.0: version "5.0.0" @@ -7616,9 +7674,9 @@ swagger2openapi@7.0.8: yargs "^17.0.1" swr@^2.2.4: - version "2.2.4" - resolved "https://registry.yarnpkg.com/swr/-/swr-2.2.4.tgz#03ec4c56019902fbdc904d78544bd7a9a6fa3f07" - integrity sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ== + version "2.2.5" + resolved "https://registry.yarnpkg.com/swr/-/swr-2.2.5.tgz#063eea0e9939f947227d5ca760cc53696f46446b" + integrity sha512-QtxqyclFeAsxEUeZIYmsaQ0UjimSq1RZ9Un7I68/0ClKK/U3LoyQunwkQfJZr2fc22DfIXLNDc2wFyTEikCUpg== dependencies: client-only "^0.0.1" use-sync-external-store "^1.2.0" @@ -7628,12 +7686,12 @@ symbol-observable@4.0.0: resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== -tabster@^5.0.1: - version "5.2.0" - resolved "https://registry.yarnpkg.com/tabster/-/tabster-5.2.0.tgz#e394708c43d6a0d63d3d60d275f3cc306e790413" - integrity sha512-cSi3a0gGeM9Co/gTKHlhTFfiitwVjcA+kP9lJux0U7QaRrZox1yYrfbwZhJXM7N0fux7BgvCYaOxME5k0EQ0tA== +tabster@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/tabster/-/tabster-6.1.0.tgz#6dd5edcc6d1fec3c6a0434bc72fce8b00c58d972" + integrity sha512-wTPy2d6WVmU/YjT0ERY9jc+et1P/B8FoSQ4qhr1xi7liwTezRbRV6yA1pKx8kdPWmLdIOBA4fn07x9c0x/wnow== dependencies: - keyborg "^2.2.0" + keyborg "2.5.0" tslib "^2.3.1" tapable@^2.1.1, tapable@^2.2.0, tapable@^2.2.1: @@ -7682,9 +7740,9 @@ terser-webpack-plugin@^5.1.3: terser "^5.26.0" terser@^5.26.0: - version "5.26.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.26.0.tgz#ee9f05d929f4189a9c28a0feb889d96d50126fe1" - integrity sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ== + version "5.27.2" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.27.2.tgz#577a362515ff5635f98ba149643793a3973ba77e" + integrity sha512-sHXmLSkImesJ4p5apTeT63DsV4Obe1s37qT8qvwHRmVxKTBH7Rv9Wr26VcAMmLbmk9UliiwK8z+657NyJHHy/w== dependencies: "@jridgewell/source-map" "^0.3.3" acorn "^8.8.2" @@ -7911,44 +7969,49 @@ type-is@^1.6.4, type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" -typed-array-buffer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" - integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== +typed-array-buffer@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz#1867c5d83b20fcb5ccf32649e5e2fc7424474ff3" + integrity sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.1" - is-typed-array "^1.1.10" + call-bind "^1.0.7" + es-errors "^1.3.0" + is-typed-array "^1.1.13" typed-array-byte-length@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0" - integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA== + version "1.0.1" + resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz#d92972d3cff99a3fa2e765a28fcdc0f1d89dec67" + integrity sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw== dependencies: - call-bind "^1.0.2" + call-bind "^1.0.7" for-each "^0.3.3" - has-proto "^1.0.1" - is-typed-array "^1.1.10" + gopd "^1.0.1" + has-proto "^1.0.3" + is-typed-array "^1.1.13" typed-array-byte-offset@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b" - integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg== + version "1.0.2" + resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz#f9ec1acb9259f395093e4567eb3c28a580d02063" + integrity sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA== dependencies: - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" + available-typed-arrays "^1.0.7" + call-bind "^1.0.7" for-each "^0.3.3" - has-proto "^1.0.1" - is-typed-array "^1.1.10" + gopd "^1.0.1" + has-proto "^1.0.3" + is-typed-array "^1.1.13" typed-array-length@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" - integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng== + version "1.0.5" + resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.5.tgz#57d44da160296d8663fd63180a1802ebf25905d5" + integrity sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA== dependencies: - call-bind "^1.0.2" + call-bind "^1.0.7" for-each "^0.3.3" - is-typed-array "^1.1.9" + gopd "^1.0.1" + has-proto "^1.0.3" + is-typed-array "^1.1.13" + possible-typed-array-names "^1.0.0" typedarray@^0.0.6: version "0.0.6" @@ -8067,9 +8130,9 @@ vary@^1, vary@~1.1.2: integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== vite@^4.4.9: - version "4.5.1" - resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.1.tgz#3370986e1ed5dbabbf35a6c2e1fb1e18555b968a" - integrity sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA== + version "4.5.2" + resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.2.tgz#d6ea8610e099851dad8c7371599969e0f8b97e82" + integrity sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w== dependencies: esbuild "^0.18.10" postcss "^8.4.27" @@ -8130,9 +8193,9 @@ wcwidth@^1.0.1: defaults "^1.0.3" web-streams-polyfill@^3.0.3: - version "3.3.2" - resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.2.tgz#32e26522e05128203a7de59519be3c648004343b" - integrity sha512-3pRGuxRF5gpuZc0W+EpwQRmCD7gRqcDOMt688KmdlDAgAyaB1XlN0zq2njfDNm44XVdIouE7pZ6GzbdyH47uIQ== + version "3.3.3" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" + integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== webgal-parser@latest: version "4.4.9-fix1" @@ -8236,16 +8299,16 @@ which-collection@^1.0.1: is-weakmap "^2.0.1" is-weakset "^2.0.1" -which-typed-array@^1.1.11, which-typed-array@^1.1.13, which-typed-array@^1.1.9: - version "1.1.13" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36" - integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow== +which-typed-array@^1.1.14, which-typed-array@^1.1.9: + version "1.1.14" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.14.tgz#1f78a111aee1e131ca66164d8bdc3ab062c95a06" + integrity sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg== dependencies: - available-typed-arrays "^1.0.5" - call-bind "^1.0.4" + available-typed-arrays "^1.0.6" + call-bind "^1.0.5" for-each "^0.3.3" gopd "^1.0.1" - has-tostringtag "^1.0.0" + has-tostringtag "^1.0.1" which@^2.0.1: version "2.0.2" From 31626d2521998a7b1e8dba13f142020980abf83d Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:31:02 +0800 Subject: [PATCH 010/125] Update workflow node version --- .github/workflows/build-terre.yml | 10 +++++----- .github/workflows/pr-check.yml | 10 +++++----- .github/workflows/release.yml | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-terre.yml b/.github/workflows/build-terre.yml index 1e83e9b14..129d2116b 100644 --- a/.github/workflows/build-terre.yml +++ b/.github/workflows/build-terre.yml @@ -15,7 +15,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build env: @@ -35,7 +35,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build Stage 1 run: | @@ -124,7 +124,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build env: @@ -144,7 +144,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build shell: bash @@ -163,7 +163,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build shell: bash diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 9383ce0b0..61fa34900 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -17,7 +17,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build env: @@ -37,7 +37,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build Stage 1 run: | @@ -126,7 +126,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build env: @@ -146,7 +146,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build shell: bash @@ -165,7 +165,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7f282045..21bfc0440 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build env: @@ -39,7 +39,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build Stage 1 run: | @@ -131,7 +131,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build env: @@ -153,7 +153,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build shell: bash @@ -174,7 +174,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'yarn' - name: Build shell: bash From 69f27e09e903c1a6893dbf2b239b08b29140f3e1 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Wed, 21 Feb 2024 20:47:10 +0800 Subject: [PATCH 011/125] update engine --- .../WebGAL_Template/assets/index-818b8d34.css | 1 - .../WebGAL_Template/assets/index-b0f07826.css | 1 + .../{index-14aa7559.js => index-f4e44d7a.js} | 450 +++++++++--------- ...r-2b32cd56.js => initRegister-b6f2cb0a.js} | 2 +- .../templates/WebGAL_Template/index.html | 4 +- 5 files changed, 229 insertions(+), 229 deletions(-) delete mode 100644 packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css create mode 100644 packages/terre2/assets/templates/WebGAL_Template/assets/index-b0f07826.css rename packages/terre2/assets/templates/WebGAL_Template/assets/{index-14aa7559.js => index-f4e44d7a.js} (62%) rename packages/terre2/assets/templates/WebGAL_Template/assets/{initRegister-2b32cd56.js => initRegister-b6f2cb0a.js} (97%) diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css b/packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css deleted file mode 100644 index 8f93722f9..000000000 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-818b8d34.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";@font-face{font-family:思源宋体;src:url(./SourceHanSerifCN-Regular-1e60cc2e.ttf) format("truetype")}@font-face{font-family:LXGW;src:url(./LXGWWenKai-Regular-9375313a.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R-ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{background-color:#000;font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-webkit-user-select:none;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:2560px;height:1440px;overflow:hidden;font-size:160%}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}#ebg{height:100vh;width:100vw;filter:blur(50px);background-position:center;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}.App{height:100%;width:100%;background:rgba(0,0,0,1);overflow:hidden;perspective:0;-webkit-overflow-scrolling:auto}#pixiCanvas{z-index:5}._Title_main_1s27r_2{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_1s27r_9{font-family:思源宋体,serif;display:flex;position:absolute;left:0;min-width:25%;height:100%;justify-content:center;align-items:flex-start;flex-flow:column;transition:background .75s;padding-left:120px}._Title_button_1s27r_9{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:1em 2em;margin:20px 0;transition:all .33s;background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:4px;transform:skew(-10deg);background:linear-gradient(to right,rgba(0,0,0,.3),rgba(0,0,0,.1))}._Title_button_1s27r_9:hover{text-shadow:0 0 10px rgb(255,255,255);padding:1em 6em 1em 3em}._Title_button_text_1s27r_43{font-size:165%;color:transparent;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%);-webkit-background-clip:text;padding:0 .5em;letter-spacing:.2em}._Title_backup_background_1s27r_52{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._Choose_Main_cegqk_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_cegqk_13{font-family:WebgalUI,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_disabled_cegqk_29{font-family:WebgalUI,serif;cursor:not-allowed;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a80;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.5);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_cegqk_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._Choose_Main_4xkm5_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_4xkm5_13{cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#005caf;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._glabalDialog_container_inner_4xkm5_28{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_4xkm5_28{color:#fff;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_4xkm5_47{font-size:300%;letter-spacing:.05em;text-shadow:0 0 10px rgba(255,255,255,.5)}._Choose_item_4xkm5_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #005caf}._button_4xkm5_59{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_4xkm5_59:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}._FullScreenPerform_main_7er8a_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_7er8a_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_7er8a_17{position:absolute;display:block;width:100%;height:100%;z-index:11}@keyframes _slideIn_7er8a_80{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _typing_7er8a_86{0%{width:0;height:0}to{width:100%;height:auto;border-right:1px solid}}@keyframes _blinkCursor_7er8a_1{50%{border-color:transparent}}@keyframes _pixelateAnimation_7er8a_1{0%{filter:none;opacity:0}50%{filter:blur(5px)}to{filter:none;opacity:1}}@keyframes _revealAnimation_7er8a_101{0%{opacity:0;clip-path:polygon(0% 0%,0% 0%,0% 100%,0% 100%)}to{opacity:1;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%)}}._fadeIn_7er8a_74{opacity:0;animation:_intro_showSoftly_7er8a_1 1.5s ease-out forwards;font-family:思源宋体,serif}._slideIn_7er8a_80{opacity:0;animation:_slideIn_7er8a_80 1.5s forwards;font-family:思源宋体,serif}._typingEffect_7er8a_86{display:block;overflow:hidden;white-space:pre-line;width:0;animation:_typing_7er8a_86 1.5s forwards,_blinkCursor_7er8a_1 1s infinite 1.5s;font-family:思源宋体,serif}._pixelateEffect_7er8a_95{opacity:0;animation:_pixelateAnimation_7er8a_1 3s forwards;font-family:思源宋体,serif}._revealAnimation_7er8a_101{opacity:0;animation:_revealAnimation_7er8a_101 3s forwards;font-family:思源宋体,serif}@keyframes _intro_showSoftly_7er8a_1{0%{opacity:0}to{opacity:1}}._videoContainer_7er8a_115{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._Logo_main_1bne2_1{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;animation:_change-img-anim_1bne2_1 5s forwards;background-size:cover;z-index:14}@keyframes _change-img-anim_1bne2_1{0%{opacity:0}35%{opacity:1}65%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Logo_Back_1bne2_32{width:100%;height:100%;position:absolute;top:0;left:0;right:0;opacity:1;bottom:0;background-size:cover;z-index:14;background:white}._animationActive_1bne2_46{animation:_fadeout_1bne2_1 5s forwards}@keyframes _fadeout_1bne2_1{0%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_1c9ky_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;padding:0 55px}._MenuPanel_button_1c9ky_10{padding:.25em 15px 0;margin-right:15px;display:flex;justify-content:center;font-size:200%;text-align:center;border-radius:6px;min-width:12.5%;cursor:pointer;color:#7b90a9;background:rgba(0,0,0,0);overflow:hidden;transition:text-shadow .7s,background-color .7s}._MenuPanel_button_1c9ky_10:last-child{margin-right:0}._MenuPanel_button_1c9ky_10:hover{background-color:#f5f6f726}._MenuPanel_button_1c9ky_10:last-child{border-right:none}._MenuPanel_button_icon_1c9ky_38{transform:translateY(.125em);padding:0 .15em 0 0;margin:0 .15em 0 0}._MenuPanel_button_hl_1c9ky_44{background-color:#f5f6f759!important}._main_15mmi_1{position:absolute;bottom:20px;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;height:70px;right:20px;border-radius:35px;padding:.15em 1.75em;font-size:80%}._button_15mmi_16{position:relative;top:2px;padding:0;filter:drop-shadow(1px 1px 5px rgb(0,0,0))}._button_text_15mmi_23{position:relative;bottom:8px;color:#fff;text-shadow:1px 1px 5px rgb(0,0,0);padding-left:3px}._button_on_15mmi_31{height:100%;display:inline-block;font-size:150%;padding:.25em .3em 0 .15em;transition:background-color .5s;background:rgba(255,255,255,.3);border-radius:4px;margin:0 .1em}._singleButton_15mmi_42{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.3em .3em 0 .15em;transition:background-color .5s;cursor:pointer;border-radius:4px;margin:0 .1em;position:relative}._singleButton_15mmi_42:hover{background-color:#ffffff4d}._fastSlPreview_15mmi_59{position:absolute;top:-250px;right:0;background:linear-gradient(315deg,rgba(253,251,251,.9) 0%,rgba(235,237,238,.85) 100%);width:900px;height:230px;color:#005caf;border-radius:5px;display:none;animation:_fastSlEnter_15mmi_1 .33s;transition:opacity .33s}._fastsave_15mmi_73:hover ._fastSPreview_15mmi_73,._fastload_15mmi_77:hover ._fastLPreview_15mmi_77{display:block}@keyframes _fastSlEnter_15mmi_1{0%{opacity:0}to{opacity:1}}._slPreviewMain_15mmi_89{padding:.5em;display:flex;box-sizing:border-box;height:100%;width:100%}._imgContainer_15mmi_97{display:flex;overflow:hidden;border-radius:5px;flex-shrink:0;height:100%}._textContainer_15mmi_105{overflow:hidden;padding:0 0 0 .5em}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Save_Load_main_a3o8b_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_a3o8b_9{height:10%;width:100%;display:flex;animation:_Elements_in_a3o8b_1 ease-out 1s forwards;justify-content:center}._Save_Load_title_a3o8b_17{font-family:思源宋体,serif;letter-spacing:.1em;width:auto;font-size:500%;min-width:350px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:absolute;left:20px;top:0;z-index:-1;opacity:.2;transform:translateY(-10px)}._Save_title_text_a3o8b_35{font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_a3o8b_43{font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_a3o8b_51{height:100%;display:flex}._Save_Load_top_button_a3o8b_51{cursor:pointer;font-size:200%;width:2.05em;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_a3o8b_69{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_a3o8b_51:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_a3o8b_80{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_a3o8b_51:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_a3o8b_93{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_a3o8b_93:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_a3o8b_106{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_a3o8b_115{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_a3o8b_1 1s ease-out forwards,_Elements_in_transform_a3o8b_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_a3o8b_115:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_a3o8b_131{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_a3o8b_138{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_a3o8b_147{background-color:#51a8dd}._Save_Load_content_element_top_date_a3o8b_151{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_a3o8b_162{background-color:#005caf}._Save_Load_content_text_a3o8b_166{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_a3o8b_180{padding:.2em .75em}._Save_Load_content_speaker_a3o8b_184{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_a3o8b_193{color:#005caf}._Load_content_text_a3o8b_197{background-color:#005cafbf}._Save_Load_content_miniRen_a3o8b_201{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_a3o8b_208{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_a3o8b_215{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_a3o8b_223{bottom:0;left:0}._Save_Load_content_miniRen_figRight_a3o8b_228{bottom:0;right:0}@keyframes _Elements_in_a3o8b_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_a3o8b_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._Options_main_u5orq_2{position:absolute;cursor:default;height:90%;width:100%}._Options_top_u5orq_9{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_u5orq_16{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_u5orq_25{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Option_title_text_shadow_u5orq_34{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_u5orq_41{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_u5orq_48{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_u5orq_55{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_u5orq_65{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_u5orq_1 ease-out .7s forwards;cursor:pointer}._About_text_u5orq_73{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_u5orq_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_u5orq_92{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_u5orq_98{animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Options_page_button_u5orq_102{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_u5orq_114{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_u5orq_102:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_ujldp_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_ujldp_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_ujldp_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_ujldp_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_ujldp_39{position:relative;animation:_TextDelayShow_ujldp_1 1s ease-out forwards;opacity:0}._outer_ujldp_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_ujldp_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_ujldp_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_ujldp_71{position:relative;opacity:1}._TextBox_showName_ujldp_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_ujldp_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_ujldp_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_ujldp_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_ujldp_113{position:absolute;left:2em;top:-3.5em}._outerName_ujldp_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_ujldp_130{position:absolute;left:0;top:0;z-index:1}._text_ujldp_137{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_1tymt_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_1tymt_14{padding:0;display:flex;height:10%}._extra_top_icon_1tymt_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_1tymt_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_1tymt_1 .25s ease-out forwards}@keyframes _extra_icon_softin_1tymt_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_1tymt_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_1tymt_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_1tymt_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_1tymt_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_1tymt_91{display:flex}._bgmControlButton_1tymt_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_1tymt_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_1tymt_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_1tymt_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_1tymt_1{0%{opacity:.95}to{opacity:1}}._bgmElement_1tymt_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_1tymt_148{background-color:#ffffffd9!important;color:#666}._cgMain_1tymt_153{width:100%;height:88%}._cgContainer_1tymt_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_1tymt_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_1tymt_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_1tymt_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;border-radius:7px;padding:12px 15px}._cgNav_1tymt_203{font-size:170%;color:#fff;padding:.12em 1em;margin:0 .25em;text-align:center;cursor:pointer;transition:background-color .5s,color .5s,font-weight .5s;border-radius:7px}._cgNav_1tymt_203:first-child{margin-left:0}._cgNav_1tymt_203:last-child{margin-right:0}._cgNav_active_1tymt_222{background-color:#005caf1a!important;color:#005caf;font-weight:700}._cgNav_1tymt_203:hover{background-color:#005caf0d}._showFullContainer_1tymt_232{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_1tymt_245{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_1tymt_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_1tymt_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-b0f07826.css b/packages/terre2/assets/templates/WebGAL_Template/assets/index-b0f07826.css new file mode 100644 index 000000000..5bb70da64 --- /dev/null +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-b0f07826.css @@ -0,0 +1 @@ +@charset "UTF-8";@font-face{font-family:思源宋体;src:url(./SourceHanSerifCN-Regular-1e60cc2e.ttf) format("truetype")}@font-face{font-family:LXGW;src:url(./LXGWWenKai-Regular-9375313a.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R-ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{background-color:#000;font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-webkit-user-select:none;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:2560px;height:1440px;overflow:hidden;font-size:160%}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}#ebg{height:100vh;width:100vw;filter:blur(50px);background-position:center;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}.App{height:100%;width:100%;background:rgba(0,0,0,1);overflow:hidden;perspective:0;-webkit-overflow-scrolling:auto}#pixiCanvas{z-index:5}._Title_main_xpe81_1{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_xpe81_8{display:flex;position:absolute;left:0;min-width:25%;height:100%;justify-content:center;align-items:flex-start;flex-flow:column;transition:background .75s;padding-left:120px}._Title_button_xpe81_8{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:1em 2em;margin:20px 0;transition:all .33s;background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:4px;transform:skew(-10deg);background:linear-gradient(to right,rgba(0,0,0,.3),rgba(0,0,0,.1))}._Title_button_xpe81_8:hover{text-shadow:0 0 10px rgb(255,255,255);padding:1em 6em 1em 3em}._Title_button_text_xpe81_41{font-size:165%;color:#fbfbfb;padding:0 .5em;letter-spacing:.2em}._Title_backup_background_xpe81_48{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._Choose_Main_cegqk_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_cegqk_13{font-family:WebgalUI,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_disabled_cegqk_29{font-family:WebgalUI,serif;cursor:not-allowed;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a80;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.5);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_cegqk_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._Choose_Main_4xkm5_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_4xkm5_13{cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#005caf;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._glabalDialog_container_inner_4xkm5_28{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_4xkm5_28{color:#fff;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_4xkm5_47{font-size:300%;letter-spacing:.05em;text-shadow:0 0 10px rgba(255,255,255,.5)}._Choose_item_4xkm5_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #005caf}._button_4xkm5_59{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_4xkm5_59:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}._FullScreenPerform_main_7er8a_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_7er8a_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_7er8a_17{position:absolute;display:block;width:100%;height:100%;z-index:11}@keyframes _slideIn_7er8a_80{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _typing_7er8a_86{0%{width:0;height:0}to{width:100%;height:auto;border-right:1px solid}}@keyframes _blinkCursor_7er8a_1{50%{border-color:transparent}}@keyframes _pixelateAnimation_7er8a_1{0%{filter:none;opacity:0}50%{filter:blur(5px)}to{filter:none;opacity:1}}@keyframes _revealAnimation_7er8a_101{0%{opacity:0;clip-path:polygon(0% 0%,0% 0%,0% 100%,0% 100%)}to{opacity:1;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%)}}._fadeIn_7er8a_74{opacity:0;animation:_intro_showSoftly_7er8a_1 1.5s ease-out forwards;font-family:思源宋体,serif}._slideIn_7er8a_80{opacity:0;animation:_slideIn_7er8a_80 1.5s forwards;font-family:思源宋体,serif}._typingEffect_7er8a_86{display:block;overflow:hidden;white-space:pre-line;width:0;animation:_typing_7er8a_86 1.5s forwards,_blinkCursor_7er8a_1 1s infinite 1.5s;font-family:思源宋体,serif}._pixelateEffect_7er8a_95{opacity:0;animation:_pixelateAnimation_7er8a_1 3s forwards;font-family:思源宋体,serif}._revealAnimation_7er8a_101{opacity:0;animation:_revealAnimation_7er8a_101 3s forwards;font-family:思源宋体,serif}@keyframes _intro_showSoftly_7er8a_1{0%{opacity:0}to{opacity:1}}._videoContainer_7er8a_115{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._main_15mmi_1{position:absolute;bottom:20px;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;height:70px;right:20px;border-radius:35px;padding:.15em 1.75em;font-size:80%}._button_15mmi_16{position:relative;top:2px;padding:0;filter:drop-shadow(1px 1px 5px rgb(0,0,0))}._button_text_15mmi_23{position:relative;bottom:8px;color:#fff;text-shadow:1px 1px 5px rgb(0,0,0);padding-left:3px}._button_on_15mmi_31{height:100%;display:inline-block;font-size:150%;padding:.25em .3em 0 .15em;transition:background-color .5s;background:rgba(255,255,255,.3);border-radius:4px;margin:0 .1em}._singleButton_15mmi_42{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.3em .3em 0 .15em;transition:background-color .5s;cursor:pointer;border-radius:4px;margin:0 .1em;position:relative}._singleButton_15mmi_42:hover{background-color:#ffffff4d}._fastSlPreview_15mmi_59{position:absolute;top:-250px;right:0;background:linear-gradient(315deg,rgba(253,251,251,.9) 0%,rgba(235,237,238,.85) 100%);width:900px;height:230px;color:#005caf;border-radius:5px;display:none;animation:_fastSlEnter_15mmi_1 .33s;transition:opacity .33s}._fastsave_15mmi_73:hover ._fastSPreview_15mmi_73,._fastload_15mmi_77:hover ._fastLPreview_15mmi_77{display:block}@keyframes _fastSlEnter_15mmi_1{0%{opacity:0}to{opacity:1}}._slPreviewMain_15mmi_89{padding:.5em;display:flex;box-sizing:border-box;height:100%;width:100%}._imgContainer_15mmi_97{display:flex;overflow:hidden;border-radius:5px;flex-shrink:0;height:100%}._textContainer_15mmi_105{overflow:hidden;padding:0 0 0 .5em}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._Logo_main_1bne2_1{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;animation:_change-img-anim_1bne2_1 5s forwards;background-size:cover;z-index:14}@keyframes _change-img-anim_1bne2_1{0%{opacity:0}35%{opacity:1}65%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Logo_Back_1bne2_32{width:100%;height:100%;position:absolute;top:0;left:0;right:0;opacity:1;bottom:0;background-size:cover;z-index:14;background:white}._animationActive_1bne2_46{animation:_fadeout_1bne2_1 5s forwards}@keyframes _fadeout_1bne2_1{0%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_1c9ky_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;padding:0 55px}._MenuPanel_button_1c9ky_10{padding:.25em 15px 0;margin-right:15px;display:flex;justify-content:center;font-size:200%;text-align:center;border-radius:6px;min-width:12.5%;cursor:pointer;color:#7b90a9;background:rgba(0,0,0,0);overflow:hidden;transition:text-shadow .7s,background-color .7s}._MenuPanel_button_1c9ky_10:last-child{margin-right:0}._MenuPanel_button_1c9ky_10:hover{background-color:#f5f6f726}._MenuPanel_button_1c9ky_10:last-child{border-right:none}._MenuPanel_button_icon_1c9ky_38{transform:translateY(.125em);padding:0 .15em 0 0;margin:0 .15em 0 0}._MenuPanel_button_hl_1c9ky_44{background-color:#f5f6f759!important}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Save_Load_main_a3o8b_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_a3o8b_9{height:10%;width:100%;display:flex;animation:_Elements_in_a3o8b_1 ease-out 1s forwards;justify-content:center}._Save_Load_title_a3o8b_17{font-family:思源宋体,serif;letter-spacing:.1em;width:auto;font-size:500%;min-width:350px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:absolute;left:20px;top:0;z-index:-1;opacity:.2;transform:translateY(-10px)}._Save_title_text_a3o8b_35{font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_a3o8b_43{font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_a3o8b_51{height:100%;display:flex}._Save_Load_top_button_a3o8b_51{cursor:pointer;font-size:200%;width:2.05em;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_a3o8b_69{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_a3o8b_51:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_a3o8b_80{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_a3o8b_51:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_a3o8b_93{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_a3o8b_93:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_a3o8b_106{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_a3o8b_115{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_a3o8b_1 1s ease-out forwards,_Elements_in_transform_a3o8b_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_a3o8b_115:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_a3o8b_131{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_a3o8b_138{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_a3o8b_147{background-color:#51a8dd}._Save_Load_content_element_top_date_a3o8b_151{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_a3o8b_162{background-color:#005caf}._Save_Load_content_text_a3o8b_166{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_a3o8b_180{padding:.2em .75em}._Save_Load_content_speaker_a3o8b_184{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_a3o8b_193{color:#005caf}._Load_content_text_a3o8b_197{background-color:#005cafbf}._Save_Load_content_miniRen_a3o8b_201{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_a3o8b_208{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_a3o8b_215{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_a3o8b_223{bottom:0;left:0}._Save_Load_content_miniRen_figRight_a3o8b_228{bottom:0;right:0}@keyframes _Elements_in_a3o8b_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_a3o8b_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._Options_main_u5orq_2{position:absolute;cursor:default;height:90%;width:100%}._Options_top_u5orq_9{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_u5orq_16{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_u5orq_25{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Option_title_text_shadow_u5orq_34{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_u5orq_41{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_u5orq_48{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_u5orq_55{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_u5orq_65{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_u5orq_1 ease-out .7s forwards;cursor:pointer}._About_text_u5orq_73{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_u5orq_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_u5orq_92{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_u5orq_98{animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Options_page_button_u5orq_102{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_u5orq_114{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_u5orq_102:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_ujldp_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_ujldp_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_ujldp_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_ujldp_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_ujldp_39{position:relative;animation:_TextDelayShow_ujldp_1 1s ease-out forwards;opacity:0}._outer_ujldp_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_ujldp_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_ujldp_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_ujldp_71{position:relative;opacity:1}._TextBox_showName_ujldp_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_ujldp_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_ujldp_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_ujldp_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_ujldp_113{position:absolute;left:2em;top:-3.5em}._outerName_ujldp_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_ujldp_130{position:absolute;left:0;top:0;z-index:1}._text_ujldp_137{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_1tymt_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_1tymt_14{padding:0;display:flex;height:10%}._extra_top_icon_1tymt_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_1tymt_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_1tymt_1 .25s ease-out forwards}@keyframes _extra_icon_softin_1tymt_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_1tymt_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_1tymt_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_1tymt_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_1tymt_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_1tymt_91{display:flex}._bgmControlButton_1tymt_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_1tymt_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_1tymt_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_1tymt_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_1tymt_1{0%{opacity:.95}to{opacity:1}}._bgmElement_1tymt_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_1tymt_148{background-color:#ffffffd9!important;color:#666}._cgMain_1tymt_153{width:100%;height:88%}._cgContainer_1tymt_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_1tymt_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_1tymt_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_1tymt_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;border-radius:7px;padding:12px 15px}._cgNav_1tymt_203{font-size:170%;color:#fff;padding:.12em 1em;margin:0 .25em;text-align:center;cursor:pointer;transition:background-color .5s,color .5s,font-weight .5s;border-radius:7px}._cgNav_1tymt_203:first-child{margin-left:0}._cgNav_1tymt_203:last-child{margin-right:0}._cgNav_active_1tymt_222{background-color:#005caf1a!important;color:#005caf;font-weight:700}._cgNav_1tymt_203:hover{background-color:#005caf0d}._showFullContainer_1tymt_232{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_1tymt_245{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_1tymt_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_1tymt_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-14aa7559.js b/packages/terre2/assets/templates/WebGAL_Template/assets/index-f4e44d7a.js similarity index 62% rename from packages/terre2/assets/templates/WebGAL_Template/assets/index-14aa7559.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/index-f4e44d7a.js index a98e7d985..cec371824 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-14aa7559.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-f4e44d7a.js @@ -1,54 +1,54 @@ -var $L=Object.defineProperty;var UL=(e,t,r)=>t in e?$L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var se=(e,t,r)=>(UL(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var oO={exports:{}},Dl={};/* +var GL=Object.defineProperty;var zL=(e,t,r)=>t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var se=(e,t,r)=>(zL(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var sO={exports:{}},Bl={};/* object-assign (c) Sindre Sorhus @license MIT -*/var u1=Object.getOwnPropertySymbols,zL=Object.prototype.hasOwnProperty,HL=Object.prototype.propertyIsEnumerable;function VL(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function WL(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var P_=WL()?Object.assign:function(e,t){for(var r,n=VL(e),i,o=1;o"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,v=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ge=L[ae];if(ge!==void 0&&0R(be,ee))He!==void 0&&0>R(He,be)?(L[ae]=He,L[Ue]=ee,ae=Ue):(L[ae]=be,L[xe]=ee,ae=xe);else if(He!==void 0&&0>R(He,ee))L[ae]=He,L[Ue]=ee,ae=Ue;else break e}}return V}return null}function R(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],D=1,F=null,H=3,re=!1,z=!1,q=!1;function le(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function $e(L){if(q=!1,le(L),!z)if(w(A)!==null)z=!0,t(me);else{var V=w(P);V!==null&&r($e,V.startTime-L)}}function me(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(le(V),F=w(A);F!==null&&(!(F.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=F.callback;if(typeof ae=="function"){F.callback=null,H=F.priorityLevel;var ge=ae(F.expirationTime<=V);V=e.unstable_now(),typeof ge=="function"?F.callback=ge:F===w(A)&&T(A),le(V)}else T(A);F=w(A)}if(F!==null)var xe=!0;else{var be=w(P);be!==null&&r($e,be.startTime-V),xe=!1}return xe}finally{F=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(me))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r($e,ee-ae))):(L.sortIndex=ge,b(A,L),z||re||(z=!0,t(me))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(EO);wO.exports=EO;var nM=wO.exports;/** @license React v17.0.2 + */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,v=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ge=L[ae];if(ge!==void 0&&0R(Se,ee))Ve!==void 0&&0>R(Ve,Se)?(L[ae]=Ve,L[Ge]=ee,ae=Ge):(L[ae]=Se,L[be]=ee,ae=be);else if(Ve!==void 0&&0>R(Ve,ee))L[ae]=Ve,L[Ge]=ee,ae=Ge;else break e}}return V}return null}function R(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],D=1,F=null,H=3,re=!1,z=!1,q=!1;function le(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function Ue(L){if(q=!1,le(L),!z)if(w(A)!==null)z=!0,t(me);else{var V=w(P);V!==null&&r(Ue,V.startTime-L)}}function me(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(le(V),F=w(A);F!==null&&(!(F.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=F.callback;if(typeof ae=="function"){F.callback=null,H=F.priorityLevel;var ge=ae(F.expirationTime<=V);V=e.unstable_now(),typeof ge=="function"?F.callback=ge:F===w(A)&&T(A),le(V)}else T(A);F=w(A)}if(F!==null)var be=!0;else{var Se=w(P);Se!==null&&r(Ue,Se.startTime-V),be=!1}return be}finally{F=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(me))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r(Ue,ee-ae))):(L.sortIndex=ge,b(A,L),z||re||(z=!0,t(me))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(CO);TO.exports=CO;var oM=TO.exports;/** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Rh=$,ft=P_,Ut=nM;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h1=Object.prototype.hasOwnProperty,d1={},p1={};function oM(e){return h1.call(p1,e)?!0:h1.call(d1,e)?!1:iM.test(e)?p1[e]=!0:(d1[e]=!0,!1)}function aM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sM(e,t,r,n){if(t===null||typeof t>"u"||aM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Qt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qt[e]=new yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var M_=/[\-:]([a-z])/g;function D_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M_,D_);Qt[t]=new yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M_,D_);Qt[t]=new yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M_,D_);Qt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Qt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function F_(e,t,r,n){var i=Qt.hasOwnProperty(t)?Qt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p1=Object.prototype.hasOwnProperty,v1={},m1={};function sM(e){return p1.call(m1,e)?!0:p1.call(v1,e)?!1:aM.test(e)?m1[e]=!0:(v1[e]=!0,!1)}function uM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lM(e,t,r,n){if(t===null||typeof t>"u"||uM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var F_=/[\-:]([a-z])/g;function B_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(F_,B_);Jt[t]=new yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(F_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(F_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function j_(e,t,r,n){var i=Jt.hasOwnProperty(t)?Jt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2s||i[a]!==o[s])return` -`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{fp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?mu(e):""}function uM(e){switch(e.tag){case 5:return mu(e.type);case 16:return mu("Lazy");case 13:return mu("Suspense");case 19:return mu("SuspenseList");case 0:case 2:case 15:return e=ac(e.type,!1),e;case 11:return e=ac(e.type.render,!1),e;case 22:return e=ac(e.type._render,!1),e;case 1:return e=ac(e.type,!0),e;default:return""}}function Ma(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ai:return"Fragment";case Ao:return"Portal";case Eu:return"Profiler";case B_:return"StrictMode";case Tu:return"Suspense";case Pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $_:return(e.displayName||"Context")+".Consumer";case j_:return(e._context.displayName||"Context")+".Provider";case Ih:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Nh:return Ma(e.type);case G_:return Ma(e._render);case U_:t=e._payload,e=e._init;try{return Ma(e(t))}catch{}}return null}function Zi(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function OO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lM(e){var t=OO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sc(e){e._valueTracker||(e._valueTracker=lM(e))}function AO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=OO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function kf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nm(e,t){var r=t.checked;return ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function m1(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Zi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PO(e,t){t=t.checked,t!=null&&F_(e,"checked",t,!1)}function Lm(e,t){PO(e,t);var r=Zi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Mm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Mm(e,t.type,Zi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function g1(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Mm(e,t,r){(t!=="number"||kf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function cM(e){var t="";return Rh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Dm(e,t){return e=ft({children:void 0},t),(t=cM(t.children))&&(e.children=t),e}function Da(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Zi(r)}}function kO(e,t){var r=Zi(t.value),n=Zi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function _1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Bm={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function RO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?RO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uc,IO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==Bm.svg||"innerHTML"in e)e.innerHTML=t;else{for(uc=uc||document.createElement("div"),uc.innerHTML=""+t.valueOf().toString()+"",t=uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Cu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fM=["Webkit","ms","Moz","O"];Object.keys(Cu).forEach(function(e){fM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cu[t]=Cu[e]})});function NO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Cu.hasOwnProperty(e)&&Cu[e]?(""+t).trim():t+"px"}function LO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=NO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var hM=ft({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $m(e,t){if(t){if(hM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function Um(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function V_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gm=null,Fa=null,Ba=null;function x1(e){if(e=jl(e)){if(typeof Gm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=jh(t),Gm(e.stateNode,e.type,t))}}function MO(e){Fa?Ba?Ba.push(e):Ba=[e]:Fa=e}function DO(){if(Fa){var e=Fa,t=Ba;if(Ba=Fa=null,x1(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Mh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Qi(t),e[t]=r}var Qi=Math.clz32?Math.clz32:AM,CM=Math.log,OM=Math.LN2;function AM(e){return e===0?32:31-(CM(e)/OM|0)|0}var PM=Ut.unstable_UserBlockingPriority,kM=Ut.unstable_runWithPriority,rf=!0;function RM(e,t,r,n){Po||q_();var i=Q_,o=Po;Po=!0;try{FO(i,e,t,r,n)}finally{(Po=o)||X_()}}function IM(e,t,r,n){kM(PM,Q_.bind(null,e,t,r,n))}function Q_(e,t,r,n){if(rf){var i;if((i=(t&4)===0)&&0=Au),k1=String.fromCharCode(32),R1=!1;function eA(e,t){switch(e){case"keyup":return tD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ca=!1;function nD(e,t){switch(e){case"compositionend":return tA(t);case"keypress":return t.which!==32?null:(R1=!0,k1);case"textInput":return e=t.data,e===k1&&R1?null:e;default:return null}}function iD(e,t){if(Ca)return e==="compositionend"||!n0&&eA(e,t)?(e=QO(),nf=e0=Ri=null,Ca=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=M1(r)}}function oA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F1(){for(var e=window,t=kf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=kf(e.document)}return t}function qm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var pD=_i&&"documentMode"in document&&11>=document.documentMode,Oa=null,Xm=null,ku=null,Ym=!1;function B1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ym||Oa==null||Oa!==kf(n)||(n=Oa,"selectionStart"in n&&qm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ku&&tl(ku,n)||(ku=n,n=Lf(Xm,"onSelect"),0Pa||(e.current=Zm[Pa],Zm[Pa]=null,Pa--)}function yt(e,t){Pa++,Zm[Pa]=e.current,e.current=t}var Ji={},sr=lo(Ji),Ar=lo(!1),zo=Ji;function Qa(e,t){var r=e.type.contextTypes;if(!r)return Ji;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pr(e){return e=e.childContextTypes,e!=null}function Ff(){st(Ar),st(sr)}function q1(e,t,r){if(sr.current!==Ji)throw Error(K(168));yt(sr,t),yt(Ar,r)}function dA(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Ma(t)||"Unknown",i));return ft({},r,n)}function af(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ji,zo=sr.current,yt(sr,e),yt(Ar,Ar.current),!0}function X1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=dA(e,t,zo),n.__reactInternalMemoizedMergedChildContext=e,st(Ar),st(sr),yt(sr,e)):st(Ar),yt(Ar,r)}var o0=null,Fo=null,gD=Ut.unstable_runWithPriority,a0=Ut.unstable_scheduleCallback,Qm=Ut.unstable_cancelCallback,yD=Ut.unstable_shouldYield,Y1=Ut.unstable_requestPaint,Jm=Ut.unstable_now,_D=Ut.unstable_getCurrentPriorityLevel,$h=Ut.unstable_ImmediatePriority,pA=Ut.unstable_UserBlockingPriority,vA=Ut.unstable_NormalPriority,mA=Ut.unstable_LowPriority,gA=Ut.unstable_IdlePriority,Ep={},xD=Y1!==void 0?Y1:function(){},ci=null,sf=null,Tp=!1,K1=Jm(),or=1e4>K1?Jm:function(){return Jm()-K1};function Ja(){switch(_D()){case $h:return 99;case pA:return 98;case vA:return 97;case mA:return 96;case gA:return 95;default:throw Error(K(332))}}function yA(e){switch(e){case 99:return $h;case 98:return pA;case 97:return vA;case 96:return mA;case 95:return gA;default:throw Error(K(332))}}function Ho(e,t){return e=yA(e),gD(e,t)}function nl(e,t,r){return e=yA(e),a0(e,t,r)}function Zn(){if(sf!==null){var e=sf;sf=null,Qm(e)}_A()}function _A(){if(!Tp&&ci!==null){Tp=!0;var e=0;try{var t=ci;Ho(99,function(){for(;eT?(R=w,w=null):R=w.sibling;var A=h(v,w,y[T],_);if(A===null){w===null&&(w=R);break}e&&w&&A.alternate===null&&t(v,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=R}if(T===y.length)return r(v,w),x;if(w===null){for(;TT?(R=w,w=null):R=w.sibling;var P=h(v,w,A.value,_);if(P===null){w===null&&(w=R);break}e&&w&&P.alternate===null&&t(v,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=R}if(A.done)return r(v,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(v,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(v,w);!A.done;T++,A=y.next())A=d(w,v,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(D){return t(v,D)}),x}return function(v,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===Ai&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case vu:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===Ai){r(v,x.sibling),m=i(x,y.props.children),m.return=v,v=m;break e}break;default:if(x.elementType===y.type){r(v,x.sibling),m=i(x,y.props),m.ref=Ys(v,x,y),m.return=v,v=m;break e}}r(v,x);break}else t(v,x);x=x.sibling}y.type===Ai?(m=Ha(y.props.children,v.mode,_,y.key),m.return=v,v=m):(_=ff(y.type,y.key,y.props,null,v.mode,_),_.ref=Ys(v,m,y),_.return=v,v=_)}return a(v);case Ao:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=i(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Rp(y,v.mode,_),m.return=v,v=m}return a(v)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=i(m,y),m.return=v,v=m):(r(v,m),m=kp(y,v.mode,_),m.return=v,v=m),a(v);if(fc(y))return p(v,m,y,_);if(zs(y))return g(v,m,y,_);if(b&&hc(v,y),typeof y>"u"&&!x)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Ma(v.type)||"Component"))}return r(v,m)}}var Gf=EA(!0),TA=EA(!1),$l={},Un=lo($l),ol=lo($l),al=lo($l);function Ro(e){if(e===$l)throw Error(K(174));return e}function tg(e,t){switch(yt(al,t),yt(ol,e),yt(Un,$l),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jm(t,e)}st(Un),yt(Un,t)}function es(){st(Un),st(ol),st(al)}function tS(e){Ro(al.current);var t=Ro(Un.current),r=jm(t,e.type);t!==r&&(yt(ol,e),yt(Un,r))}function c0(e){ol.current===e&&(st(Un),st(ol))}var gt=lo(0);function zf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pi=null,Ni=null,Gn=!1;function CA(e,t){var r=Qr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function rS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function rg(e){if(Gn){var t=Ni;if(t){var r=t;if(!rS(e,t)){if(t=ja(r.nextSibling),!t||!rS(e,t)){e.flags=e.flags&-1025|2,Gn=!1,pi=e;return}CA(pi,r)}pi=e,Ni=ja(t.firstChild)}else e.flags=e.flags&-1025|2,Gn=!1,pi=e}}function nS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pi=e}function dc(e){if(e!==pi)return!1;if(!Gn)return nS(e),Gn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Km(t,e.memoizedProps))for(t=Ni;t;)CA(e,t),t=ja(t.nextSibling);if(nS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ni=ja(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ni=null}}else Ni=pi?ja(e.stateNode.nextSibling):null;return!0}function Cp(){Ni=pi=null,Gn=!1}var Ua=[];function f0(){for(var e=0;eo))throw Error(K(301));o+=1,Yt=ir=null,t.updateQueue=null,Ru.current=TD,e=r(n,i)}while(Iu)}if(Ru.current=Xf,t=ir!==null&&ir.next!==null,sl=0,Yt=ir=wt=null,Hf=!1,t)throw Error(K(300));return e}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?wt.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function Jo(){if(ir===null){var e=wt.alternate;e=e!==null?e.memoizedState:null}else e=ir.next;var t=Yt===null?wt.memoizedState:Yt.next;if(t!==null)Yt=t,ir=e;else{if(e===null)throw Error(K(310));ir=e,e={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},Yt===null?wt.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function Fn(e,t){return typeof t=="function"?t(e):t}function Ks(e){var t=Jo(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=ir,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((sl&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,wt.lanes|=l,Ul|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Zr(n,t.memoizedState)||(yn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Zs(e){var t=Jo(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Zr(o,t.memoizedState)||(yn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function iS(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(sl&e)===e)&&(t._workInProgressVersionPrimary=n,Ua.push(t))),e)return r(t._source);throw Ua.push(t),Error(K(350))}function OA(e,t,r,n){var i=pr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=Ru.current,u=s.useState(function(){return iS(i,t,r)}),l=u[1],c=u[0];u=Yt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,p=f.source;f=f.subscribe;var g=wt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var v=o(t._source);if(!Zr(a,v)){v=r(t._source),Zr(c,v)||(l(v),v=zi(g),i.mutableReadLanes|=v&i.pendingLanes),v=i.mutableReadLanes,i.entangledLanes|=v;for(var m=i.entanglements,y=v;0r?98:r,function(){e(!0)}),Ho(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Ii]=t,e[Df]=n,DA(e,t,!1,!1),t.stateNode=e,a=Um(r,n),r){case"dialog":nt("cancel",e),nt("close",e),i=n;break;case"iframe":case"object":case"embed":nt("load",e),i=n;break;case"video":case"audio":for(i=0;ihg&&(t.flags|=64,o=!0,Js(n,!1),t.lanes=33554432)}else{if(!o)if(e=zf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Js(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Gn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*or()-n.renderingStartTime>hg&&r!==1073741824&&(t.flags|=64,o=!0,Js(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=or(),r.sibling=null,t=gt.current,yt(gt,o?t&1|2:t&1),r):null;case 23:case 24:return b0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function AD(e){switch(e.tag){case 1:Pr(e.type)&&Ff();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(es(),st(Ar),st(sr),f0(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return c0(e),null;case 13:return st(gt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return st(gt),null;case 4:return es(),null;case 10:return u0(e),null;case 23:case 24:return b0(),null;default:return null}}function g0(e,t){try{var r="",n=t;do r+=uM(n),n=n.return;while(n);var i=r}catch(o){i=` +`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{dp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?yu(e):""}function cM(e){switch(e.tag){case 5:return yu(e.type);case 16:return yu("Lazy");case 13:return yu("Suspense");case 19:return yu("SuspenseList");case 0:case 2:case 15:return e=uc(e.type,!1),e;case 11:return e=uc(e.type.render,!1),e;case 22:return e=uc(e.type._render,!1),e;case 1:return e=uc(e.type,!0),e;default:return""}}function Fa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ki:return"Fragment";case Po:return"Portal";case Cu:return"Profiler";case $_:return"StrictMode";case Ou:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G_:return(e.displayName||"Context")+".Consumer";case U_:return(e._context.displayName||"Context")+".Provider";case Lh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Mh:return Fa(e.type);case H_:return Fa(e._render);case z_:t=e._payload,e=e._init;try{return Fa(e(t))}catch{}}return null}function Qi(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function PO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fM(e){var t=PO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lc(e){e._valueTracker||(e._valueTracker=fM(e))}function kO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=PO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function If(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mm(e,t){var r=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function y1(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Qi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function RO(e,t){t=t.checked,t!=null&&j_(e,"checked",t,!1)}function Dm(e,t){RO(e,t);var r=Qi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Fm(e,t.type,Qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _1(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Fm(e,t,r){(t!=="number"||If(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function hM(e){var t="";return Nh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Bm(e,t){return e=ht({children:void 0},t),(t=hM(t.children))&&(e.children=t),e}function Ba(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Qi(r)}}function IO(e,t){var r=Qi(t.value),n=Qi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function b1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var $m={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function NO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Um(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?NO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cc,LO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==$m.svg||"innerHTML"in e)e.innerHTML=t;else{for(cc=cc||document.createElement("div"),cc.innerHTML=""+t.valueOf().toString()+"",t=cc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Au={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dM=["Webkit","ms","Moz","O"];Object.keys(Au).forEach(function(e){dM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Au[t]=Au[e]})});function MO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Au.hasOwnProperty(e)&&Au[e]?(""+t).trim():t+"px"}function DO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=MO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var pM=ht({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gm(e,t){if(t){if(pM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function zm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function q_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hm=null,ja=null,$a=null;function S1(e){if(e=Ul(e)){if(typeof Hm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Uh(t),Hm(e.stateNode,e.type,t))}}function FO(e){ja?$a?$a.push(e):$a=[e]:ja=e}function BO(){if(ja){var e=ja,t=$a;if($a=ja=null,S1(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Fh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Ji(t),e[t]=r}var Ji=Math.clz32?Math.clz32:kM,AM=Math.log,PM=Math.LN2;function kM(e){return e===0?32:31-(AM(e)/PM|0)|0}var RM=Ut.unstable_UserBlockingPriority,IM=Ut.unstable_runWithPriority,of=!0;function NM(e,t,r,n){ko||Y_();var i=e0,o=ko;ko=!0;try{jO(i,e,t,r,n)}finally{(ko=o)||K_()}}function LM(e,t,r,n){IM(RM,e0.bind(null,e,t,r,n))}function e0(e,t,r,n){if(of){var i;if((i=(t&4)===0)&&0=ku),I1=String.fromCharCode(32),N1=!1;function rA(e,t){switch(e){case"keyup":return nD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function oD(e,t){switch(e){case"compositionend":return nA(t);case"keypress":return t.which!==32?null:(N1=!0,I1);case"textInput":return e=t.data,e===I1&&N1?null:e;default:return null}}function aD(e,t){if(Oa)return e==="compositionend"||!o0&&rA(e,t)?(e=eA(),af=r0=Ni=null,Oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=F1(r)}}function sA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j1(){for(var e=window,t=If();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=If(e.document)}return t}function Ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var mD=bi&&"documentMode"in document&&11>=document.documentMode,Aa=null,Km=null,Iu=null,Zm=!1;function $1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zm||Aa==null||Aa!==If(n)||(n=Aa,"selectionStart"in n&&Ym(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Iu&&nl(Iu,n)||(Iu=n,n=Df(Km,"onSelect"),0ka||(e.current=Jm[ka],Jm[ka]=null,ka--)}function _t(e,t){ka++,Jm[ka]=e.current,e.current=t}var eo={},lr=co(eo),Ar=co(!1),Ho=eo;function es(e,t){var r=e.type.contextTypes;if(!r)return eo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pr(e){return e=e.childContextTypes,e!=null}function jf(){ut(Ar),ut(lr)}function Y1(e,t,r){if(lr.current!==eo)throw Error(K(168));_t(lr,t),_t(Ar,r)}function vA(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Fa(t)||"Unknown",i));return ht({},r,n)}function uf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eo,Ho=lr.current,_t(lr,e),_t(Ar,Ar.current),!0}function K1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=vA(e,t,Ho),n.__reactInternalMemoizedMergedChildContext=e,ut(Ar),ut(lr),_t(lr,e)):ut(Ar),_t(Ar,r)}var s0=null,Bo=null,_D=Ut.unstable_runWithPriority,u0=Ut.unstable_scheduleCallback,eg=Ut.unstable_cancelCallback,xD=Ut.unstable_shouldYield,Z1=Ut.unstable_requestPaint,tg=Ut.unstable_now,bD=Ut.unstable_getCurrentPriorityLevel,Gh=Ut.unstable_ImmediatePriority,mA=Ut.unstable_UserBlockingPriority,gA=Ut.unstable_NormalPriority,yA=Ut.unstable_LowPriority,_A=Ut.unstable_IdlePriority,Cp={},SD=Z1!==void 0?Z1:function(){},fi=null,lf=null,Op=!1,Q1=tg(),sr=1e4>Q1?tg:function(){return tg()-Q1};function ts(){switch(bD()){case Gh:return 99;case mA:return 98;case gA:return 97;case yA:return 96;case _A:return 95;default:throw Error(K(332))}}function xA(e){switch(e){case 99:return Gh;case 98:return mA;case 97:return gA;case 96:return yA;case 95:return _A;default:throw Error(K(332))}}function Vo(e,t){return e=xA(e),_D(e,t)}function ol(e,t,r){return e=xA(e),u0(e,t,r)}function Qn(){if(lf!==null){var e=lf;lf=null,eg(e)}bA()}function bA(){if(!Op&&fi!==null){Op=!0;var e=0;try{var t=fi;Vo(99,function(){for(;eT?(R=w,w=null):R=w.sibling;var A=h(v,w,y[T],_);if(A===null){w===null&&(w=R);break}e&&w&&A.alternate===null&&t(v,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=R}if(T===y.length)return r(v,w),x;if(w===null){for(;TT?(R=w,w=null):R=w.sibling;var P=h(v,w,A.value,_);if(P===null){w===null&&(w=R);break}e&&w&&P.alternate===null&&t(v,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=R}if(A.done)return r(v,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(v,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(v,w);!A.done;T++,A=y.next())A=d(w,v,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(D){return t(v,D)}),x}return function(v,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===ki&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case gu:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===ki){r(v,x.sibling),m=i(x,y.props.children),m.return=v,v=m;break e}break;default:if(x.elementType===y.type){r(v,x.sibling),m=i(x,y.props),m.ref=Zs(v,x,y),m.return=v,v=m;break e}}r(v,x);break}else t(v,x);x=x.sibling}y.type===ki?(m=Wa(y.props.children,v.mode,_,y.key),m.return=v,v=m):(_=df(y.type,y.key,y.props,null,v.mode,_),_.ref=Zs(v,m,y),_.return=v,v=_)}return a(v);case Po:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=i(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Np(y,v.mode,_),m.return=v,v=m}return a(v)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=i(m,y),m.return=v,v=m):(r(v,m),m=Ip(y,v.mode,_),m.return=v,v=m),a(v);if(dc(y))return p(v,m,y,_);if(Vs(y))return g(v,m,y,_);if(b&&pc(v,y),typeof y>"u"&&!x)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Fa(v.type)||"Component"))}return r(v,m)}}var Hf=CA(!0),OA=CA(!1),Gl={},Gn=co(Gl),sl=co(Gl),ul=co(Gl);function Io(e){if(e===Gl)throw Error(K(174));return e}function ng(e,t){switch(_t(ul,t),_t(sl,e),_t(Gn,Gl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Um(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Um(t,e)}ut(Gn),_t(Gn,t)}function rs(){ut(Gn),ut(sl),ut(ul)}function nS(e){Io(ul.current);var t=Io(Gn.current),r=Um(t,e.type);t!==r&&(_t(sl,e),_t(Gn,r))}function h0(e){sl.current===e&&(ut(Gn),ut(sl))}var yt=co(0);function Vf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vi=null,Mi=null,zn=!1;function AA(e,t){var r=Qr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function iS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function ig(e){if(zn){var t=Mi;if(t){var r=t;if(!iS(e,t)){if(t=Ua(r.nextSibling),!t||!iS(e,t)){e.flags=e.flags&-1025|2,zn=!1,vi=e;return}AA(vi,r)}vi=e,Mi=Ua(t.firstChild)}else e.flags=e.flags&-1025|2,zn=!1,vi=e}}function oS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vi=e}function vc(e){if(e!==vi)return!1;if(!zn)return oS(e),zn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Qm(t,e.memoizedProps))for(t=Mi;t;)AA(e,t),t=Ua(t.nextSibling);if(oS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Mi=Ua(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Mi=null}}else Mi=vi?Ua(e.stateNode.nextSibling):null;return!0}function Ap(){Mi=vi=null,zn=!1}var za=[];function d0(){for(var e=0;eo))throw Error(K(301));o+=1,Kt=or=null,t.updateQueue=null,Nu.current=OD,e=r(n,i)}while(Lu)}if(Nu.current=Kf,t=or!==null&&or.next!==null,ll=0,Kt=or=wt=null,Wf=!1,t)throw Error(K(300));return e}function No(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function ea(){if(or===null){var e=wt.alternate;e=e!==null?e.memoizedState:null}else e=or.next;var t=Kt===null?wt.memoizedState:Kt.next;if(t!==null)Kt=t,or=e;else{if(e===null)throw Error(K(310));or=e,e={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}function Bn(e,t){return typeof t=="function"?t(e):t}function Qs(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=or,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((ll&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,wt.lanes|=l,zl|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Zr(n,t.memoizedState)||(_n=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Js(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Zr(o,t.memoizedState)||(_n=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function aS(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(ll&e)===e)&&(t._workInProgressVersionPrimary=n,za.push(t))),e)return r(t._source);throw za.push(t),Error(K(350))}function PA(e,t,r,n){var i=pr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=Nu.current,u=s.useState(function(){return aS(i,t,r)}),l=u[1],c=u[0];u=Kt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,p=f.source;f=f.subscribe;var g=wt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var v=o(t._source);if(!Zr(a,v)){v=r(t._source),Zr(c,v)||(l(v),v=Hi(g),i.mutableReadLanes|=v&i.pendingLanes),v=i.mutableReadLanes,i.entangledLanes|=v;for(var m=i.entanglements,y=v;0r?98:r,function(){e(!0)}),Vo(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Li]=t,e[Bf]=n,BA(e,t,!1,!1),t.stateNode=e,a=zm(r,n),r){case"dialog":it("cancel",e),it("close",e),i=n;break;case"iframe":case"object":case"embed":it("load",e),i=n;break;case"video":case"audio":for(i=0;i<_u.length;i++)it(_u[i],e);i=n;break;case"source":it("error",e),i=n;break;case"img":case"image":case"link":it("error",e),it("load",e),i=n;break;case"details":it("toggle",e),i=n;break;case"input":y1(e,n),i=Mm(e,n),it("invalid",e);break;case"option":i=Bm(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=ht({},n,{value:void 0}),it("invalid",e);break;case"textarea":x1(e,n),i=jm(e,n),it("invalid",e);break;default:i=n}Gm(r,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?DO(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&LO(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Zu(e,u):typeof u=="number"&&Zu(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ku.hasOwnProperty(o)?u!=null&&o==="onScroll"&&it("scroll",e):u!=null&&j_(e,o,u,a))}switch(r){case"input":lc(e),_1(e,n,!1);break;case"textarea":lc(e),b1(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Qi(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ba(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ba(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ff)}dA(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)$A(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(K(166));r=Io(ul.current),Io(Gn.current),vc(t)?(n=t.stateNode,r=t.memoizedProps,n[Li]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Li]=t,t.stateNode=n)}return null;case 13:return ut(yt),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&vc(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||yt.current&1?Qt===0&&(Qt=3):((Qt===0||Qt===3)&&(Qt=4),pr===null||!(zl&134217727)&&!(xs&134217727)||Ha(pr,ur))),(n||r)&&(t.flags|=4),null);case 4:return rs(),ug(t),e===null&&cA(t.stateNode.containerInfo),null;case 10:return c0(t),null;case 17:return Pr(t.type)&&jf(),null;case 19:if(ut(yt),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!==0,a=n.rendering,a===null)if(o)tu(n,!1);else{if(Qt!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=Vf(e),a!==null){for(t.flags|=64,tu(n,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return _t(yt,yt.current&1|2),t.child}e=e.sibling}n.tail!==null&&sr()>pg&&(t.flags|=64,o=!0,tu(n,!1),t.lanes=33554432)}else{if(!o)if(e=Vf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),tu(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!zn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*sr()-n.renderingStartTime>pg&&r!==1073741824&&(t.flags|=64,o=!0,tu(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=sr(),r.sibling=null,t=yt.current,_t(yt,o?t&1|2:t&1),r):null;case 23:case 24:return w0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function kD(e){switch(e.tag){case 1:Pr(e.type)&&jf();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(rs(),ut(Ar),ut(lr),d0(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return h0(e),null;case 13:return ut(yt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ut(yt),null;case 4:return rs(),null;case 10:return c0(e),null;case 23:case 24:return w0(),null;default:return null}}function _0(e,t){try{var r="",n=t;do r+=cM(n),n=n.return;while(n);var i=r}catch(o){i=` Error generating stack: `+o.message+` -`+o.stack}return{value:e,source:t,stack:i}}function sg(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var PD=typeof WeakMap=="function"?WeakMap:Map;function jA(e,t,r){r=Ui(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Kf||(Kf=!0,dg=n),sg(e,t)},r}function $A(e,t,r){r=Ui(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return sg(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this),sg(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var kD=typeof WeakSet=="function"?WeakSet:Set;function gS(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Vi(e,r)}else t.current=null}function RD(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:mn(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&i0(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(K(163))}function ID(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(YA(r,e),$D(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:mn(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&Q1(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}Q1(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&fA(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&HO(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(K(163))}function yS(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=NO("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function _S(e,t){if(Fo&&typeof Fo.onCommitFiberUnmount=="function")try{Fo.onCommitFiberUnmount(o0,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)YA(t,r);else{n=t;try{i()}catch(o){Vi(n,o)}}r=r.next}while(r!==e)}break;case 1:if(gS(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Vi(t,o)}break;case 5:gS(t);break;case 4:UA(e,t)}}function xS(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bS(e){return e.tag===5||e.tag===3||e.tag===4}function SS(e){e:{for(var t=e.return;t!==null;){if(bS(t))break e;t=t.return}throw Error(K(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(K(161))}r.flags&16&&(Yu(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||bS(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?ug(e,r,t):lg(e,r,t)}function ug(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Mf));else if(n!==4&&(e=e.child,e!==null))for(ug(e,t,r),e=e.sibling;e!==null;)ug(e,t,r),e=e.sibling}function lg(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(lg(e,t,r),e=e.sibling;e!==null;)lg(e,t,r),e=e.sibling}function UA(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(K(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,u=s;;)if(_S(a,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(_S(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Pp(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[Df]=n,e==="input"&&n.type==="radio"&&n.name!=null&&PO(r,n),Um(e,i),t=Um(e,n),i=0;ii&&(i=a),r&=~o}if(r=i,r=or()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LD(r/1960))-r,10i&&(i=a),r&=~o}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DD(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Zt!==5&&(Zt=2),u=g0(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=jA(h,o,t);Z1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Bn===null||!Bn.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var R=$A(h,o,t);Z1(h,R);break e}}h=h.return}while(h!==null)}XA(r)}catch(A){t=A,It===r&&r!==null&&(It=r=r.return);continue}break}while(1)}function WA(){var e=Yf.current;return Yf.current=Xf,e===null?Xf:e}function _u(e,t){var r=pe;pe|=16;var n=WA();pr===e&&ar===t||za(e,t);do try{DD();break}catch(i){VA(e,i)}while(1);if(s0(),pe=r,Yf.current=n,It!==null)throw Error(K(261));return pr=null,ar=0,Zt}function DD(){for(;It!==null;)qA(It)}function FD(){for(;It!==null&&!yD();)qA(It)}function qA(e){var t=KA(e.alternate,e,Vo);e.memoizedProps=e.pendingProps,t===null?XA(e):It=t,y0.current=null}function XA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=AD(t),r!==null){r.flags&=2047,It=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=OD(r,t,Vo),r!==null){It=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Vo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=D1(y,b),o=D1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}rf=!!bp,Sp=bp=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&ID(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var R=ie.stateNode;switch(ie.tag){case 5:_=R;break;default:_=R}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Vi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,xD(),pe=i}else e.current=r;if(eo)eo=!1,Nu=e,yu=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(Bn=null),n===1?e===mg?Lu++:(Lu=0,mg=e):Lu=0,r=r.stateNode,Fo&&typeof Fo.onCommitFiberRoot=="function")try{Fo.onCommitFiberRoot(o0,r,void 0,(r.current.flags&64)===64)}catch{}if(on(e,or()),Kf)throw Kf=!1,e=dg,dg=null,e;return pe&8||Zn(),null}function jD(){for(;ie!==null;){var e=ie.alternate;cf||Mu===null||(ie.flags&8?S1(ie,Mu)&&(cf=!0):ie.tag===13&&ND(e,ie)&&S1(ie,Mu)&&(cf=!0));var t=ie.flags;t&256&&RD(e,ie),!(t&512)||eo||(eo=!0,nl(97,function(){return co(),null})),ie=ie.nextEffect}}function co(){if(yu!==90){var e=97or()-x0?za(e,0):_0|=r),on(e,t)}function zD(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(hi===0&&(hi=gs),t=Sa(62914560&~hi),t===0&&(t=4194304)):t=Ja()===99?1:2:t=1),r=$r(),e=zh(e,t),e!==null&&(Mh(e,t,r),on(e,r))}var KA;KA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ar.current)yn=!0;else if(r&n)yn=!!(e.flags&16384);else{switch(yn=!1,t.tag){case 3:cS(t),Cp();break;case 5:tS(t);break;case 1:Pr(t.type)&&af(t);break;case 4:tg(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;yt(Bf,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?fS(e,t,r):(yt(gt,gt.current&1),t=vi(e,t,r),t!==null?t.sibling:null);yt(gt,gt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return mS(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),yt(gt,gt.current),n)break;return null;case 23:case 24:return t.lanes=0,Op(e,t,r)}return vi(e,t,r)}else yn=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Qa(t,sr.current),$a(t,r),i=d0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(n)){var o=!0;af(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,l0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&Uf(t,n,a,e),i.updater=Uh,t.stateNode=i,i._reactInternals=t,eg(t,n,e,r),t=og(null,t,n,!0,o,r)}else t.tag=0,Sr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=VD(i),e=mn(i,e),o){case 0:t=ig(null,t,i,e,r);break e;case 1:t=lS(null,t,i,e,r);break e;case 11:t=sS(null,t,i,e,r);break e;case 14:t=uS(null,t,i,mn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),ig(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),lS(e,t,n,i,r);case 3:if(cS(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,bA(e,t),il(t,n,null,r),n=t.memoizedState.element,n===i)Cp(),t=vi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(Ni=ja(t.stateNode.containerInfo.firstChild),pi=t,o=Gn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QA)}catch(e){console.error(e)}}QA(),SO.exports=un;var JA=SO.exports;const Wn=Nr(JA);const QD="_Title_main_1s27r_2",JD="_Title_buttonList_1s27r_9",eF="_Title_button_1s27r_9",tF="_Title_button_text_1s27r_43",rF="_Title_backup_background_1s27r_52",Mr={Title_main:QD,Title_buttonList:JD,Title_button:eF,Title_button_text:tF,Title_backup_background:rF};function gn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:C0(e)?2:O0(e)?3:0}function Va(e,t){return xs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nF(e,t){return xs(e)===2?e.get(t):e[t]}function eP(e,t,r){var n=xs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function tP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function C0(e){return lF&&e instanceof Map}function O0(e){return cF&&e instanceof Set}function bo(e){return e.o||e.t}function A0(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=nP(e);delete t[ct];for(var r=Wa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=iF),Object.freeze(e),t&&Wo(e,function(r,n){return P0(n,!0)},!0)),e}function iF(){gn(2)}function k0(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zn(e){var t=bg[e];return t||gn(18,e),t}function oF(e,t){bg[e]||(bg[e]=t)}function yg(){return ul}function Np(e,t){t&&(zn("Patches"),e.u=[],e.s=[],e.v=t)}function Qf(e){_g(e),e.p.forEach(aF),e.p=null}function _g(e){e===ul&&(ul=e.l)}function CS(e){return ul={p:[],l:ul,h:e,m:!0,_:0}}function aF(e){var t=e[ct];t.i===0||t.i===1?t.j():t.g=!0}function Lp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||zn("ES5").S(t,e,n),n?(r[ct].P&&(Qf(t),gn(4)),xi(e)&&(e=Jf(t,e),t.l||eh(t,e)),t.u&&zn("Patches").M(r[ct].t,e,t.u,t.s)):e=Jf(t,r,[]),Qf(t),t.u&&t.v(t.u,t.s),e!==rP?e:void 0}function Jf(e,t,r){if(k0(t))return t;var n=t[ct];if(!n)return Wo(t,function(s,u){return OS(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return eh(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=A0(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),Wo(o,function(s,u){return OS(e,n,i,s,u,r,a)}),eh(e,i,!1),r&&e.u&&zn("Patches").N(n,r,e.u,e.s)}return n.o}function OS(e,t,r,n,i,o,a){if(ro(i)){var s=Jf(e,i,o&&t&&t.i!==3&&!Va(t.R,n)?o.concat(n):void 0);if(eP(r,n,s),!ro(s))return;e.m=!1}else a&&r.add(i);if(xi(i)&&!k0(i)){if(!e.h.D&&e._<1)return;Jf(e,i),t&&t.A.l||eh(e,i)}}function eh(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&P0(t,r)}function Mp(e,t){var r=e[ct];return(r?bo(r):e)[t]}function AS(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Pi(e){e.P||(e.P=!0,e.l&&Pi(e.l))}function Dp(e){e.o||(e.o=A0(e.t))}function xg(e,t,r){var n=C0(t)?zn("MapSet").F(t,r):O0(t)?zn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:yg(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=ll;a&&(u=[s],l=xu);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):zn("ES5").J(t,r);return(r?r.A:yg()).p.push(n),n}function sF(e){return ro(e)||gn(22,e),function t(r){if(!xi(r))return r;var n,i=r[ct],o=xs(r);if(i){if(!i.P&&(i.i<4||!zn("ES5").K(i)))return i.t;i.I=!0,n=PS(r,o),i.I=!1}else n=PS(r,o);return Wo(n,function(a,s){i&&nF(i.t,a)===s||eP(n,a,t(s))}),o===3?new Set(n):n}(e)}function PS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return A0(e)}function uF(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[ct];return ll.get(u,o)},set:function(u){var l=this[ct];ll.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ct];if(!s.P)switch(s.i){case 5:n(s)&&Pi(s);break;case 4:r(s)&&Pi(s)}}}function r(o){for(var a=o.t,s=o.k,u=Wa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==ct){var f=a[c];if(f===void 0&&!Va(a,c))return!0;var h=s[c],d=h&&h[ct];if(d?d.t!==f:!tP(h,f))return!0}}var p=!!a[ct];return u.length!==Wa(a).length+(p?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=zn("Patches").$;return ro(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Gr=new hF,iP=Gr.produce;Gr.produceWithPatches.bind(Gr);Gr.setAutoFreeze.bind(Gr);Gr.setUseProxies.bind(Gr);Gr.applyPatches.bind(Gr);Gr.createDraft.bind(Gr);Gr.finishDraft.bind(Gr);function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function dF(e,t){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oP(e){var t=dF(e,"string");return $t(t)=="symbol"?t:String(t)}function Hr(e,t,r){return t=oP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(nr(1));return r(aP)(e,t)}if(typeof e!="function")throw new Error(nr(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(nr(3));return o}function f(g){if(typeof g!="function")throw new Error(nr(4));if(u)throw new Error(nr(5));var v=!0;return l(),s.push(g),function(){if(v){if(u)throw new Error(nr(6));v=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!pF(g))throw new Error(nr(7));if(typeof g.type>"u")throw new Error(nr(8));if(u)throw new Error(nr(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var v=a=s,m=0;m"u")throw new Error(nr(12));if(typeof r(void 0,{type:th.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nr(13))})}function mF(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(nr(14));f[d]=v,c=c||v!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function rh(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var n3=r3,i3=Vh;function o3(e,t){var r=this.__data__,n=i3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var a3=o3,s3=zF,u3=ZF,l3=e3,c3=n3,f3=a3;function bs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=f4}var U0=h4,d4=Hl,p4=U0,v4=ta,m4="[object Arguments]",g4="[object Array]",y4="[object Boolean]",_4="[object Date]",x4="[object Error]",b4="[object Function]",S4="[object Map]",w4="[object Number]",E4="[object Object]",T4="[object RegExp]",C4="[object Set]",O4="[object String]",A4="[object WeakMap]",P4="[object ArrayBuffer]",k4="[object DataView]",R4="[object Float32Array]",I4="[object Float64Array]",N4="[object Int8Array]",L4="[object Int16Array]",M4="[object Int32Array]",D4="[object Uint8Array]",F4="[object Uint8ClampedArray]",B4="[object Uint16Array]",j4="[object Uint32Array]",it={};it[R4]=it[I4]=it[N4]=it[L4]=it[M4]=it[D4]=it[F4]=it[B4]=it[j4]=!0;it[m4]=it[g4]=it[P4]=it[y4]=it[k4]=it[_4]=it[x4]=it[b4]=it[S4]=it[w4]=it[E4]=it[T4]=it[C4]=it[O4]=it[A4]=!1;function $4(e){return v4(e)&&p4(e.length)&&!!it[d4(e)]}var U4=$4;function G4(e){return function(t){return e(t)}}var G0=G4,ih={exports:{}};ih.exports;(function(e,t){var r=hP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ih,ih.exports);var z0=ih.exports,z4=U4,H4=G0,YS=z0,KS=YS&&YS.isTypedArray,V4=KS?H4(KS):z4,_P=V4,W4=Xj,q4=yP,X4=Si,Y4=j0,K4=$0,Z4=_P,Q4=Object.prototype,J4=Q4.hasOwnProperty;function e$(e,t){var r=X4(e),n=!r&&q4(e),i=!r&&!n&&Y4(e),o=!r&&!n&&!i&&Z4(e),a=r||n||i||o,s=a?W4(e.length,String):[],u=s.length;for(var l in e)(t||J4.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||K4(l,u)))&&s.push(l);return s}var xP=e$,t$=Object.prototype;function r$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||t$;return e===r}var H0=r$;function n$(e,t){return function(r){return e(t(r))}}var bP=n$,i$=bP,o$=i$(Object.keys,Object),a$=o$,s$=H0,u$=a$,l$=Object.prototype,c$=l$.hasOwnProperty;function f$(e){if(!s$(e))return u$(e);var t=[];for(var r in Object(e))c$.call(e,r)&&r!="constructor"&&t.push(r);return t}var h$=f$,d$=pP,p$=U0;function v$(e){return e!=null&&p$(e.length)&&!d$(e)}var SP=v$,m$=xP,g$=h$,y$=SP;function _$(e){return y$(e)?m$(e):g$(e)}var Kh=_$,x$=Yh,b$=Kh;function S$(e,t){return e&&x$(t,b$(t),e)}var w$=S$;function E$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var T$=E$,C$=Qn,O$=H0,A$=T$,P$=Object.prototype,k$=P$.hasOwnProperty;function R$(e){if(!C$(e))return A$(e);var t=O$(e),r=[];for(var n in e)n=="constructor"&&(t||!k$.call(e,n))||r.push(n);return r}var I$=R$,N$=xP,L$=I$,M$=SP;function D$(e){return M$(e)?N$(e,!0):L$(e)}var V0=D$,F$=Yh,B$=V0;function j$(e,t){return e&&F$(t,B$(t),e)}var $$=j$,oh={exports:{}};oh.exports;(function(e,t){var r=En,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(oh,oh.exports);var U$=oh.exports;function G$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e[e.applyStyle=32]="applyStyle",e))(ke||{});const DP={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1,replacedUIlable:{}},X0=I0({name:"stage",initialState:At(DP),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n},replaceUIlable:(e,t)=>{e.replacedUIlable[t.payload[0]]=t.payload[1]}}}),{resetStageState:Qh,setStage:we,setStageVar:FP}=X0.actions,Er=X0.actions,l6=X0.reducer;function gc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var BP={exports:{}};/*! +Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}Qt!==5&&(Qt=2),u=_0(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=UA(h,o,t);J1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(jn===null||!jn.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var R=GA(h,o,t);J1(h,R);break e}}h=h.return}while(h!==null)}KA(r)}catch(A){t=A,It===r&&r!==null&&(It=r=r.return);continue}break}while(1)}function XA(){var e=Zf.current;return Zf.current=Kf,e===null?Kf:e}function bu(e,t){var r=pe;pe|=16;var n=XA();pr===e&&ur===t||Va(e,t);do try{BD();break}catch(i){qA(e,i)}while(1);if(l0(),pe=r,Zf.current=n,It!==null)throw Error(K(261));return pr=null,ur=0,Qt}function BD(){for(;It!==null;)YA(It)}function jD(){for(;It!==null&&!xD();)YA(It)}function YA(e){var t=QA(e.alternate,e,Wo);e.memoizedProps=e.pendingProps,t===null?KA(e):It=t,x0.current=null}function KA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=kD(t),r!==null){r.flags&=2047,It=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=PD(r,t,Wo),r!==null){It=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Wo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=B1(y,b),o=B1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}of=!!wp,Ep=wp=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&LD(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var R=ie.stateNode;switch(ie.tag){case 5:_=R;break;default:_=R}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Wi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,SD(),pe=i}else e.current=r;if(to)to=!1,Mu=e,xu=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(jn=null),n===1?e===yg?Du++:(Du=0,yg=e):Du=0,r=r.stateNode,Bo&&typeof Bo.onCommitFiberRoot=="function")try{Bo.onCommitFiberRoot(s0,r,void 0,(r.current.flags&64)===64)}catch{}if(an(e,sr()),Qf)throw Qf=!1,e=vg,vg=null,e;return pe&8||Qn(),null}function UD(){for(;ie!==null;){var e=ie.alternate;hf||Fu===null||(ie.flags&8?E1(ie,Fu)&&(hf=!0):ie.tag===13&&MD(e,ie)&&E1(ie,Fu)&&(hf=!0));var t=ie.flags;t&256&&ND(e,ie),!(t&512)||to||(to=!0,ol(97,function(){return fo(),null})),ie=ie.nextEffect}}function fo(){if(xu!==90){var e=97sr()-S0?Va(e,0):b0|=r),an(e,t)}function VD(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(di===0&&(di=_s),t=wa(62914560&~di),t===0&&(t=4194304)):t=ts()===99?1:2:t=1),r=$r(),e=Vh(e,t),e!==null&&(Fh(e,t,r),an(e,r))}var QA;QA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ar.current)_n=!0;else if(r&n)_n=!!(e.flags&16384);else{switch(_n=!1,t.tag){case 3:hS(t),Ap();break;case 5:nS(t);break;case 1:Pr(t.type)&&uf(t);break;case 4:ng(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;_t($f,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?dS(e,t,r):(_t(yt,yt.current&1),t=mi(e,t,r),t!==null?t.sibling:null);_t(yt,yt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return yS(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_t(yt,yt.current),n)break;return null;case 23:case 24:return t.lanes=0,Pp(e,t,r)}return mi(e,t,r)}else _n=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=es(t,lr.current),Ga(t,r),i=v0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(n)){var o=!0;uf(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,f0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&zf(t,n,a,e),i.updater=zh,t.stateNode=i,i._reactInternals=t,rg(t,n,e,r),t=sg(null,t,n,!0,o,r)}else t.tag=0,Sr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=qD(i),e=gn(i,e),o){case 0:t=ag(null,t,i,e,r);break e;case 1:t=fS(null,t,i,e,r);break e;case 11:t=lS(null,t,i,e,r);break e;case 14:t=cS(null,t,i,gn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:gn(n,i),ag(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:gn(n,i),fS(e,t,n,i,r);case 3:if(hS(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,wA(e,t),al(t,n,null,r),n=t.memoizedState.element,n===i)Ap(),t=mi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(Mi=Ua(t.stateNode.containerInfo.firstChild),vi=t,o=zn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eP)}catch(e){console.error(e)}}eP(),EO.exports=ln;var tP=EO.exports;const qn=Nr(tP);const eF="_Title_main_xpe81_1",tF="_Title_buttonList_xpe81_8",rF="_Title_button_xpe81_8",nF="_Title_button_text_xpe81_41",iF="_Title_backup_background_xpe81_48",Mr={Title_main:eF,Title_buttonList:tF,Title_button:rF,Title_button_text:nF,Title_backup_background:iF};function yn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:A0(e)?2:P0(e)?3:0}function qa(e,t){return Ss(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oF(e,t){return Ss(e)===2?e.get(t):e[t]}function rP(e,t,r){var n=Ss(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function nP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function A0(e){return fF&&e instanceof Map}function P0(e){return hF&&e instanceof Set}function So(e){return e.o||e.t}function k0(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=oP(e);delete t[ft];for(var r=Xa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=aF),Object.freeze(e),t&&qo(e,function(r,n){return R0(n,!0)},!0)),e}function aF(){yn(2)}function I0(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Hn(e){var t=wg[e];return t||yn(18,e),t}function sF(e,t){wg[e]||(wg[e]=t)}function xg(){return cl}function Mp(e,t){t&&(Hn("Patches"),e.u=[],e.s=[],e.v=t)}function eh(e){bg(e),e.p.forEach(uF),e.p=null}function bg(e){e===cl&&(cl=e.l)}function AS(e){return cl={p:[],l:cl,h:e,m:!0,_:0}}function uF(e){var t=e[ft];t.i===0||t.i===1?t.j():t.g=!0}function Dp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Hn("ES5").S(t,e,n),n?(r[ft].P&&(eh(t),yn(4)),Si(e)&&(e=th(t,e),t.l||rh(t,e)),t.u&&Hn("Patches").M(r[ft].t,e,t.u,t.s)):e=th(t,r,[]),eh(t),t.u&&t.v(t.u,t.s),e!==iP?e:void 0}function th(e,t,r){if(I0(t))return t;var n=t[ft];if(!n)return qo(t,function(s,u){return PS(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return rh(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=k0(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),qo(o,function(s,u){return PS(e,n,i,s,u,r,a)}),rh(e,i,!1),r&&e.u&&Hn("Patches").N(n,r,e.u,e.s)}return n.o}function PS(e,t,r,n,i,o,a){if(no(i)){var s=th(e,i,o&&t&&t.i!==3&&!qa(t.R,n)?o.concat(n):void 0);if(rP(r,n,s),!no(s))return;e.m=!1}else a&&r.add(i);if(Si(i)&&!I0(i)){if(!e.h.D&&e._<1)return;th(e,i),t&&t.A.l||rh(e,i)}}function rh(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&R0(t,r)}function Fp(e,t){var r=e[ft];return(r?So(r):e)[t]}function kS(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ri(e){e.P||(e.P=!0,e.l&&Ri(e.l))}function Bp(e){e.o||(e.o=k0(e.t))}function Sg(e,t,r){var n=A0(t)?Hn("MapSet").F(t,r):P0(t)?Hn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:xg(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=fl;a&&(u=[s],l=Su);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):Hn("ES5").J(t,r);return(r?r.A:xg()).p.push(n),n}function lF(e){return no(e)||yn(22,e),function t(r){if(!Si(r))return r;var n,i=r[ft],o=Ss(r);if(i){if(!i.P&&(i.i<4||!Hn("ES5").K(i)))return i.t;i.I=!0,n=RS(r,o),i.I=!1}else n=RS(r,o);return qo(n,function(a,s){i&&oF(i.t,a)===s||rP(n,a,t(s))}),o===3?new Set(n):n}(e)}function RS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return k0(e)}function cF(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[ft];return fl.get(u,o)},set:function(u){var l=this[ft];fl.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ft];if(!s.P)switch(s.i){case 5:n(s)&&Ri(s);break;case 4:r(s)&&Ri(s)}}}function r(o){for(var a=o.t,s=o.k,u=Xa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==ft){var f=a[c];if(f===void 0&&!qa(a,c))return!0;var h=s[c],d=h&&h[ft];if(d?d.t!==f:!nP(h,f))return!0}}var p=!!a[ft];return u.length!==Xa(a).length+(p?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=Hn("Patches").$;return no(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Gr=new pF,aP=Gr.produce;Gr.produceWithPatches.bind(Gr);Gr.setAutoFreeze.bind(Gr);Gr.setUseProxies.bind(Gr);Gr.applyPatches.bind(Gr);Gr.createDraft.bind(Gr);Gr.finishDraft.bind(Gr);function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function vF(e,t){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sP(e){var t=vF(e,"string");return $t(t)=="symbol"?t:String(t)}function Hr(e,t,r){return t=sP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ir(1));return r(uP)(e,t)}if(typeof e!="function")throw new Error(ir(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(ir(3));return o}function f(g){if(typeof g!="function")throw new Error(ir(4));if(u)throw new Error(ir(5));var v=!0;return l(),s.push(g),function(){if(v){if(u)throw new Error(ir(6));v=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!mF(g))throw new Error(ir(7));if(typeof g.type>"u")throw new Error(ir(8));if(u)throw new Error(ir(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var v=a=s,m=0;m"u")throw new Error(ir(12));if(typeof r(void 0,{type:nh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ir(13))})}function yF(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(ir(14));f[d]=v,c=c||v!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function ih(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var o3=i3,a3=qh;function s3(e,t){var r=this.__data__,n=a3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var u3=s3,l3=VF,c3=JF,f3=r3,h3=o3,d3=u3;function ws(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=d4}var z0=p4,v4=Wl,m4=z0,g4=ra,y4="[object Arguments]",_4="[object Array]",x4="[object Boolean]",b4="[object Date]",S4="[object Error]",w4="[object Function]",E4="[object Map]",T4="[object Number]",C4="[object Object]",O4="[object RegExp]",A4="[object Set]",P4="[object String]",k4="[object WeakMap]",R4="[object ArrayBuffer]",I4="[object DataView]",N4="[object Float32Array]",L4="[object Float64Array]",M4="[object Int8Array]",D4="[object Int16Array]",F4="[object Int32Array]",B4="[object Uint8Array]",j4="[object Uint8ClampedArray]",$4="[object Uint16Array]",U4="[object Uint32Array]",ot={};ot[N4]=ot[L4]=ot[M4]=ot[D4]=ot[F4]=ot[B4]=ot[j4]=ot[$4]=ot[U4]=!0;ot[y4]=ot[_4]=ot[R4]=ot[x4]=ot[I4]=ot[b4]=ot[S4]=ot[w4]=ot[E4]=ot[T4]=ot[C4]=ot[O4]=ot[A4]=ot[P4]=ot[k4]=!1;function G4(e){return g4(e)&&m4(e.length)&&!!ot[v4(e)]}var z4=G4;function H4(e){return function(t){return e(t)}}var H0=H4,ah={exports:{}};ah.exports;(function(e,t){var r=pP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ah,ah.exports);var V0=ah.exports,V4=z4,W4=H0,ZS=V0,QS=ZS&&ZS.isTypedArray,q4=QS?W4(QS):V4,bP=q4,X4=Kj,Y4=xP,K4=Ei,Z4=U0,Q4=G0,J4=bP,e$=Object.prototype,t$=e$.hasOwnProperty;function r$(e,t){var r=K4(e),n=!r&&Y4(e),i=!r&&!n&&Z4(e),o=!r&&!n&&!i&&J4(e),a=r||n||i||o,s=a?X4(e.length,String):[],u=s.length;for(var l in e)(t||t$.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Q4(l,u)))&&s.push(l);return s}var SP=r$,n$=Object.prototype;function i$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||n$;return e===r}var W0=i$;function o$(e,t){return function(r){return e(t(r))}}var wP=o$,a$=wP,s$=a$(Object.keys,Object),u$=s$,l$=W0,c$=u$,f$=Object.prototype,h$=f$.hasOwnProperty;function d$(e){if(!l$(e))return c$(e);var t=[];for(var r in Object(e))h$.call(e,r)&&r!="constructor"&&t.push(r);return t}var p$=d$,v$=mP,m$=z0;function g$(e){return e!=null&&m$(e.length)&&!v$(e)}var EP=g$,y$=SP,_$=p$,x$=EP;function b$(e){return x$(e)?y$(e):_$(e)}var Qh=b$,S$=Zh,w$=Qh;function E$(e,t){return e&&S$(t,w$(t),e)}var T$=E$;function C$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O$=C$,A$=Jn,P$=W0,k$=O$,R$=Object.prototype,I$=R$.hasOwnProperty;function N$(e){if(!A$(e))return k$(e);var t=P$(e),r=[];for(var n in e)n=="constructor"&&(t||!I$.call(e,n))||r.push(n);return r}var L$=N$,M$=SP,D$=L$,F$=EP;function B$(e){return F$(e)?M$(e,!0):D$(e)}var q0=B$,j$=Zh,$$=q0;function U$(e,t){return e&&j$(t,$$(t),e)}var G$=U$,sh={exports:{}};sh.exports;(function(e,t){var r=Tn,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(sh,sh.exports);var z$=sh.exports;function H$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e[e.applyStyle=32]="applyStyle",e))(ke||{});const BP={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1,replacedUIlable:{}},K0=L0({name:"stage",initialState:At(BP),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n},replaceUIlable:(e,t)=>{e.replacedUIlable[t.payload[0]]=t.payload[1]}}}),{resetStageState:ed,setStage:Ee,setStageVar:jP}=K0.actions,Er=K0.actions,f6=K0.reducer;function _c(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $P={exports:{}};/*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 -*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof gc=="function"&&gc;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(p){var g=n[l][1][p];return a(g||p)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof gc=="function"&&gc,u=0;u"u"&&r(3);var f=Promise;function h(E,k){k&&E.then(function(C){k(null,C)},function(C){k(C)})}function d(E,k,C){typeof k=="function"&&E.then(k),typeof C=="function"&&E.catch(C)}function p(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var v="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var k=E.length,C=new ArrayBuffer(k),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function R(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(k){return m=k,m})}function A(E){var k=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),k.deferredOperations.push(C),k.dbReady?k.dbReady=k.dbReady.then(function(){return C.promise}):k.dbReady=C.promise}function P(E){var k=y[E.name],C=k.deferredOperations.pop();if(C)return C.resolve(),C.promise}function D(E,k){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(k),N.promise}function F(E,k){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(k)A(E),E.db.close();else return C(E.db);var M=[E.name];k&&M.push(E.version);var I=u.open.apply(u,M);k&&(I.onupgradeneeded=function(j){var U=I.result;try{U.createObjectStore(E.storeName),j.oldVersion<=1&&U.createObjectStore(v)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),I.onerror=function(j){j.preventDefault(),N(I.error)},I.onsuccess=function(){var j=I.result;j.onversionchange=function(U){U.target.close()},C(j),P(E)}})}function H(E){return F(E,!1)}function re(E){return F(E,!0)}function z(E,k){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==k&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var I=E.db.version+1;I>E.version&&(E.version=I)}return!0}return!1}function q(E){return new f(function(k,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var I=btoa(M.target.result||"");k({__local_forage_encoded_blob:!0,data:I,type:E.type})},N.readAsBinaryString(E)})}function le(E){var k=w(atob(E.data));return c([k],{type:E.type})}function $e(E){return E&&E.__local_forage_encoded_blob}function me(E){var k=this,C=k._initReady().then(function(){var N=y[k._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var k=y[E.name],C=k.forages,N=0;N0&&(!E.db||I.name==="InvalidStateError"||I.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||I.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,k,C,N-1)})}).catch(C);C(I)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(k),k._initReady||(k._initReady=k.ready,k.ready=me);var I=[];function j(){return f.resolve()}for(var U=0;U>4,J[M++]=(j&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function np(E){var k=new Uint8Array(E),C="",N;for(N=0;N>2],C+=ut[(k[N]&3)<<4|k[N+1]>>4],C+=ut[(k[N+1]&15)<<2|k[N+2]>>6],C+=ut[k[N+2]&63];return k.length%3===2?C=C.substring(0,C.length-1)+"=":k.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function rL(E,k){var C="";if(E&&(C=e1.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&e1.call(E.buffer)==="[object ArrayBuffer]")){var N,M=fr;E instanceof ArrayBuffer?(N=E,M+=wi):(N=E.buffer,C==="[object Int8Array]"?M+=Bs:C==="[object Uint8Array]"?M+=js:C==="[object Uint8ClampedArray]"?M+=$s:C==="[object Int16Array]"?M+=qb:C==="[object Uint16Array]"?M+=Yb:C==="[object Int32Array]"?M+=Xb:C==="[object Uint32Array]"?M+=Kb:C==="[object Float32Array]"?M+=Zb:C==="[object Float64Array]"?M+=Qb:k(new Error("Failed to get type for BinaryArray"))),k(M+np(N))}else if(C==="[object Blob]"){var I=new FileReader;I.onload=function(){var j=Jt+E.type+"~"+np(this.result);k(fr+aa+j)},I.readAsArrayBuffer(E)}else try{k(JSON.stringify(E))}catch(j){console.error("Couldn't convert value into a JSON string: ",E),k(null,j)}}function nL(E){if(E.substring(0,An)!==fr)return JSON.parse(E);var k=E.substring(Jb),C=E.substring(An,Jb),N;if(C===aa&&Ne.test(k)){var M=k.match(Ne);N=M[1],k=k.substring(M[0].length)}var I=t1(k);switch(C){case wi:return I;case aa:return c([I],{type:N});case Bs:return new Int8Array(I);case js:return new Uint8Array(I);case $s:return new Uint8ClampedArray(I);case qb:return new Int16Array(I);case Yb:return new Uint16Array(I);case Xb:return new Int32Array(I);case Kb:return new Uint32Array(I);case Zb:return new Float32Array(I);case Qb:return new Float64Array(I);default:throw new Error("Unkown type: "+C)}}var ip={serialize:rL,deserialize:nL,stringToBuffer:t1,bufferToString:np};function r1(E,k,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+k.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function iL(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(I,j){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return j(U)}C.db.transaction(function(U){r1(U,C,function(){k._dbInfo=C,I()},function(W,X){j(X)})},j)});return C.serializer=ip,M}function Ei(E,k,C,N,M,I){E.executeSql(C,N,M,function(j,U){U.code===U.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[k.storeName],function(W,X){X.rows.length?I(W,U):r1(W,k,function(){W.executeSql(C,N,M,I)},I)},I):I(j,U)},I)}function oL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=j.serializer.deserialize(J)),M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function aL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"SELECT * FROM "+j.storeName,[],function(W,X){for(var J=X.rows,ue=J.length,Te=0;Te0){j(n1.apply(M,[E,W,C,N-1]));return}U(Te)}})})}).catch(U)});return h(I,C),I}function sL(E,k,C){return n1.apply(this,[E,k,C,1])}function uL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function lL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ei(j,I,"DELETE FROM "+I.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function cL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ei(j,I,"SELECT COUNT(key) as c FROM "+I.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function fL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ei(U,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function hL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ei(j,I,"SELECT key FROM "+I.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,I){for(var j=[],U=0;U0}function _L(E){var k=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=i1(E,k._defaultConfig),yL()?(k._dbInfo=C,C.serializer=ip,f.resolve()):f.reject()}function xL(E){var k=this,C=k.ready().then(function(){for(var N=k._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var I=localStorage.key(M);I.indexOf(N)===0&&localStorage.removeItem(I)}});return h(C,E),C}function bL(E,k){var C=this;E=p(E);var N=C.ready().then(function(){var M=C._dbInfo,I=localStorage.getItem(M.keyPrefix+E);return I&&(I=M.serializer.deserialize(I)),I});return h(N,k),N}function SL(E,k){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,I=M.keyPrefix,j=I.length,U=localStorage.length,W=1,X=0;X=0;j--){var U=localStorage.key(j);U.indexOf(I)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,k),M}var PL={_driver:"localStorageWrapper",_initStorage:_L,_support:mL(),iterate:SL,getItem:bL,setItem:OL,removeItem:CL,clear:xL,length:TL,key:wL,keys:EL,dropInstance:AL},kL=function(k,C){return k===C||typeof k=="number"&&typeof C=="number"&&isNaN(k)&&isNaN(C)},RL=function(k,C){for(var N=k.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var I=new f(function(j,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=op.concat("_initStorage"),ue=0,Te=J.length;ue"u"}function f6(e){return e!==null&&!Ag(e)&&e.constructor!==null&&!Ag(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function h6(e){return ra.call(e)==="[object ArrayBuffer]"}function d6(e){return typeof FormData<"u"&&e instanceof FormData}function p6(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function v6(e){return typeof e=="string"}function m6(e){return typeof e=="number"}function $P(e){return e!==null&&typeof e=="object"}function df(e){if(ra.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function g6(e){return ra.call(e)==="[object Date]"}function y6(e){return ra.call(e)==="[object File]"}function _6(e){return ra.call(e)==="[object Blob]"}function UP(e){return ra.call(e)==="[object Function]"}function x6(e){return $P(e)&&UP(e.pipe)}function b6(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function S6(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function w6(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Z0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),K0(e))for(var r=0,n=e.length;r"u"||(la.isArray(u)?l=l+"[]":u=[u],la.forEach(u,function(f){la.isDate(f)?f=f.toISOString():la.isObject(f)&&(f=JSON.stringify(f)),o.push(hw(l)+"="+hw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},C6=Vr;function Jh(){this.handlers=[]}Jh.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Jh.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Jh.prototype.forEach=function(t){C6.forEach(this.handlers,function(n){n!==null&&t(n)})};var O6=Jh,A6=Vr,P6=function(t,r){A6.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},zP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Up,dw;function HP(){if(dw)return Up;dw=1;var e=zP;return Up=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},Up}var Gp,pw;function k6(){if(pw)return Gp;pw=1;var e=HP();return Gp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Gp}var zp,vw;function R6(){if(vw)return zp;vw=1;var e=Vr;return zp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zp}var Hp,mw;function I6(){return mw||(mw=1,Hp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Hp}var Vp,gw;function N6(){return gw||(gw=1,Vp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Vp}var Wp,yw;function L6(){if(yw)return Wp;yw=1;var e=I6(),t=N6();return Wp=function(n,i){return n&&!e(i)?t(n,i):i},Wp}var qp,_w;function M6(){if(_w)return qp;_w=1;var e=Vr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return qp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},qp}var Xp,xw;function D6(){if(xw)return Xp;xw=1;var e=Vr;return Xp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Xp}var Yp,bw;function ed(){if(bw)return Yp;bw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Yp=e,Yp}var Kp,Sw;function ww(){if(Sw)return Kp;Sw=1;var e=Vr,t=k6(),r=R6(),n=GP,i=L6(),o=M6(),a=D6(),s=HP(),u=td(),l=ed();return Kp=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u.transitional;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Kp}var Zp,Ew;function td(){if(Ew)return Zp;Ew=1;var e=Vr,t=P6,r=zP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=ww()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(p){if(d)throw p.name==="SyntaxError"?r(p,this,"E_JSON_PARSE"):p}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Zp=s,Zp}var F6=Vr,B6=td(),j6=function(t,r,n){var i=this||B6;return F6.forEach(n,function(a){t=a.call(i,t,r)}),t},Qp,Tw;function VP(){return Tw||(Tw=1,Qp=function(t){return!!(t&&t.__CANCEL__)}),Qp}var Cw=Vr,Jp=j6,$6=VP(),U6=td(),G6=ed();function ev(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new G6("canceled")}var z6=function(t){ev(t),t.headers=t.headers||{},t.data=Jp.call(t,t.data,t.headers,t.transformRequest),t.headers=Cw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Cw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||U6.adapter;return r(t).then(function(i){return ev(t),i.data=Jp.call(t,i.data,i.headers,t.transformResponse),i},function(i){return $6(i)||(ev(t),i&&i.response&&(i.response.data=Jp.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Dr=Vr,WP=function(t,r){r=r||{};var n={};function i(c,f){return Dr.isPlainObject(c)&&Dr.isPlainObject(f)?Dr.merge(c,f):Dr.isPlainObject(f)?Dr.merge({},f):Dr.isArray(f)?f.slice():f}function o(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Dr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Dr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Dr.isUndefined(d)&&h!==u||(n[f]=d)}),n},tv,Ow;function qP(){return Ow||(Ow=1,tv={version:"0.24.0"}),tv}var H6=qP().version,Q0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Q0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Aw={};Q0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+H6+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!Aw[a]&&(Aw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function V6(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var W6={assertOptions:V6,validators:Q0},XP=Vr,q6=GP,Pw=O6,kw=z6,rd=WP,YP=W6,ca=YP.validators;function Vl(e){this.defaults=e,this.interceptors={request:new Pw,response:new Pw}}Vl.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=rd(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&YP.assertOptions(r,{silentJSONParsing:ca.transitional(ca.boolean),forcedJSONParsing:ca.transitional(ca.boolean),clarifyTimeoutError:ca.transitional(ca.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[kw,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=kw(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Vl.prototype.getUri=function(t){return t=rd(this.defaults,t),q6(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};XP.forEach(["delete","get","head","options"],function(t){Vl.prototype[t]=function(r,n){return this.request(rd(n||{},{method:t,url:r,data:(n||{}).data}))}});XP.forEach(["post","put","patch"],function(t){Vl.prototype[t]=function(r,n,i){return this.request(rd(i||{},{method:t,url:r,data:n}))}});var X6=Vl,rv,Rw;function Y6(){if(Rw)return rv;Rw=1;var e=ed();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var oG=iG;const aG=Nr(oG),ne=new aG,sG={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{textSpeed:{title:"Speed of Text Showing",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},uG={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},lG={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},cG={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},fG={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},hG={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var na=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(na||{});const sh={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},dG={en:{translation:sG},zhCn:{translation:lG},jp:{translation:uG},fr:{translation:cG},de:{translation:fG},zhTw:{translation:hG}},pG=0;var vr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(vr||{}),_n=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(_n||{}),Hn=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Hn||{}),cl=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(cl||{});const ZP={slPage:1,volumeMain:100,textSpeed:vr.normal,autoSpeed:vr.normal,textSize:_n.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Hn.song,textboxOpacity:75,language:na.zhCn,voiceInterruption:cl.yes},kg={saveData:[],optionData:ZP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},QP=I0({name:"userData",initialState:At(kg),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetOptionSet(e){Object.assign(e.optionData,ZP)},resetAllData(e){Object.assign(e,At(kg))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:vG,resetUserData:J0,setOptionData:St,setGlobalVar:mG,setSlPage:JP,unlockCgInUserData:e2,unlockBgmInUserData:t2,setFastSave:gG,resetOptionSet:yG,resetSaveData:_G,resetAllData:xG}=QP.actions,bG=QP.reducer,r2={backlog_size:200,fast_timeout:50},SG={textInitialDelay:80};class wG{constructor(t){se(this,"isSaveBacklogNext",!1);se(this,"backlog",[]);se(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=B.getState().stage,r=At(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:At(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>r2.backlog_size;)this.getBacklog().shift()}}const Mw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class EG{constructor(){se(this,"settledScenes",[]);se(this,"settledAssets",[]);se(this,"sceneData",At(Mw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=At(Mw.currentScene)}}class TG{constructor(){se(this,"nextEnterAnimationName",new Map);se(this,"nextExitAnimationName",new Map);se(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}const CG={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};var Br=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Br||{});const jr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}},OG=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const Dw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=AG(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=PG(n,i,t),n};function AG(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function PG(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Tt;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Tt||(Tt={}));function n2(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Tt.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const kG=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,Tt.vocal);case oe.changeBg:return r(e,Tt.background);case oe.changeFigure:return r(e,Tt.figure);case oe.bgm:return r(e,Tt.bgm);case oe.callScene:return r(e,Tt.scene);case oe.changeScene:return r(e,Tt.scene);case oe.miniAvatar:return r(e,Tt.figure);case oe.video:return r(e,Tt.video);case oe.choose:return RG(e,r);case oe.unlockBgm:return r(e,Tt.bgm);case oe.unlockCg:return r(e,Tt.background);default:return e}};function RG(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,Tt.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Tt.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Tt.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:Tt.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:Tt.bgm})),n},NG=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},LG=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=Dw(c,r,n),i=l.type;for(const p of l.additionalArgs)i===oe.say&&p.key==="speaker"||s.push(p)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=Dw(c,r,n),i=l.type;for(const p of l.additionalArgs)s.push(p)}const d=/ -/.exec(f);if(d){const p=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of n2(p,t))s.push(g)}return o=kG(f,i,t),u=IG(i,o,s),a=NG(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var yc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},MG=typeof yc=="object"&&yc&&yc.Object===Object&&yc,DG=MG,FG=DG,BG=typeof self=="object"&&self&&self.Object===Object&&self,jG=FG||BG||Function("return this")(),nd=jG,$G=nd,UG=$G.Symbol,i2=UG,Fw=i2,o2=Object.prototype,GG=o2.hasOwnProperty,zG=o2.toString,ru=Fw?Fw.toStringTag:void 0;function HG(e){var t=GG.call(e,ru),r=e[ru];try{e[ru]=void 0;var n=!0}catch{}var i=zG.call(e);return n&&(t?e[ru]=r:delete e[ru]),i}var VG=HG,WG=Object.prototype,qG=WG.toString;function XG(e){return qG.call(e)}var YG=XG,Bw=i2,KG=VG,ZG=YG,QG="[object Null]",JG="[object Undefined]",jw=Bw?Bw.toStringTag:void 0;function ez(e){return e==null?e===void 0?JG:QG:jw&&jw in Object(e)?KG(e):ZG(e)}var tz=ez;function rz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var a2=rz,nz=tz,iz=a2,oz="[object AsyncFunction]",az="[object Function]",sz="[object GeneratorFunction]",uz="[object Proxy]";function lz(e){if(!iz(e))return!1;var t=nz(e);return t==az||t==sz||t==oz||t==uz}var cz=lz,fz=nd,hz=fz["__core-js_shared__"],dz=hz,ov=dz,$w=function(){var e=/[^.]+$/.exec(ov&&ov.keys&&ov.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pz(e){return!!$w&&$w in e}var vz=pz,mz=Function.prototype,gz=mz.toString;function yz(e){if(e!=null){try{return gz.call(e)}catch{}try{return e+""}catch{}}return""}var _z=yz,xz=cz,bz=vz,Sz=a2,wz=_z,Ez=/[\\^$.*+?()[\]{}|]/g,Tz=/^\[object .+?Constructor\]$/,Cz=Function.prototype,Oz=Object.prototype,Az=Cz.toString,Pz=Oz.hasOwnProperty,kz=RegExp("^"+Az.call(Pz).replace(Ez,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rz(e){if(!Sz(e)||bz(e))return!1;var t=xz(e)?kz:Tz;return t.test(wz(e))}var Iz=Rz;function Nz(e,t){return e==null?void 0:e[t]}var Lz=Nz,Mz=Iz,Dz=Lz;function Fz(e,t){var r=Dz(e,t);return Mz(r)?r:void 0}var ex=Fz,Bz=ex,jz=Bz(Object,"create"),id=jz,Uw=id;function $z(){this.__data__=Uw?Uw(null):{},this.size=0}var Uz=$z;function Gz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zz=Gz,Hz=id,Vz="__lodash_hash_undefined__",Wz=Object.prototype,qz=Wz.hasOwnProperty;function Xz(e){var t=this.__data__;if(Hz){var r=t[e];return r===Vz?void 0:r}return qz.call(t,e)?t[e]:void 0}var Yz=Xz,Kz=id,Zz=Object.prototype,Qz=Zz.hasOwnProperty;function Jz(e){var t=this.__data__;return Kz?t[e]!==void 0:Qz.call(t,e)}var e9=Jz,t9=id,r9="__lodash_hash_undefined__";function n9(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t9&&t===void 0?r9:t,this}var i9=n9,o9=Uz,a9=zz,s9=Yz,u9=e9,l9=i9;function Cs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var O9=C9,A9=od;function P9(e,t){var r=this.__data__,n=A9(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var k9=P9,R9=h9,I9=b9,N9=E9,L9=O9,M9=k9;function Os(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var MH=LH;function DH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=iV){var l=t?null:rV(e);if(l)return nV(l);a=!1,i=tV,u=new QH}else u=t?[]:s;e:for(;++n{const u=e.split(` -`);let l=[],c=[];const f=u.map(h=>{const d=LG(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=lV(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function fV(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of n2(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function hV(e){return e.replaceAll("\r","").split(` -`).map(r=>fV(r)).filter(r=>r.command!=="")}class dV{constructor(t,r,n,i){se(this,"assetsPrefetcher");se(this,"assetSetter");se(this,"ADD_NEXT_ARG_LIST");se(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return cV(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return hV(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; -`,"")}}function Ae(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const pV=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Ae(e,"enter"),o=Ae(e,"volume");return r!==""&&B.dispatch(t2({name:r,url:t,series:n})),Nx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var tx={exports:{}},u2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function mV(e){return e!==null&&!Rg(e)&&e.constructor!==null&&!Rg(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function l2(e){return fo.call(e)==="[object ArrayBuffer]"}function gV(e){return fo.call(e)==="[object FormData]"}function yV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&l2(e.buffer),t}function _V(e){return typeof e=="string"}function xV(e){return typeof e=="number"}function c2(e){return e!==null&&typeof e=="object"}function vf(e){if(fo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function bV(e){return fo.call(e)==="[object Date]"}function SV(e){return fo.call(e)==="[object File]"}function wV(e){return fo.call(e)==="[object Blob]"}function f2(e){return fo.call(e)==="[object Function]"}function EV(e){return c2(e)&&f2(e.pipe)}function TV(e){return fo.call(e)==="[object URLSearchParams]"}function CV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function OV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function nx(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),rx(e))for(var r=0,n=e.length;r"u"||(fa.isArray(u)?l=l+"[]":u=[u],fa.forEach(u,function(f){fa.isDate(f)?f=f.toISOString():fa.isObject(f)&&(f=JSON.stringify(f)),o.push(zw(l)+"="+zw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},kV=Lr;function sd(){this.handlers=[]}sd.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};sd.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};sd.prototype.forEach=function(t){kV.forEach(this.handlers,function(n){n!==null&&t(n)})};var RV=sd,IV=Lr,NV=function(t,r){IV.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},d2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},p2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sv,Hw;function v2(){if(Hw)return sv;Hw=1;var e=d2;return sv=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},sv}var uv,Vw;function LV(){if(Vw)return uv;Vw=1;var e=v2();return uv=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},uv}var lv,Ww;function MV(){if(Ww)return lv;Ww=1;var e=Lr;return lv=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),lv}var cv,qw;function DV(){return qw||(qw=1,cv=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),cv}var fv,Xw;function FV(){return Xw||(Xw=1,fv=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),fv}var hv,Yw;function BV(){if(Yw)return hv;Yw=1;var e=DV(),t=FV();return hv=function(n,i){return n&&!e(i)?t(n,i):i},hv}var dv,Kw;function jV(){if(Kw)return dv;Kw=1;var e=Lr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return dv=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},dv}var pv,Zw;function $V(){if(Zw)return pv;Zw=1;var e=Lr;return pv=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),pv}var vv,Qw;function ud(){if(Qw)return vv;Qw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,vv=e,vv}var mv,Jw;function eE(){if(Jw)return mv;Jw=1;var e=Lr,t=LV(),r=MV(),n=h2,i=BV(),o=jV(),a=$V(),s=v2(),u=p2,l=ud();return mv=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},mv}var Xt=Lr,tE=NV,UV=d2,GV=p2,zV={"Content-Type":"application/x-www-form-urlencoded"};function rE(e,t){!Xt.isUndefined(e)&&Xt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function HV(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=eE()),e}function VV(e,t,r){if(Xt.isString(e))try{return(t||JSON.parse)(e),Xt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var ld={transitional:GV,adapter:HV(),transformRequest:[function(t,r){return tE(r,"Accept"),tE(r,"Content-Type"),Xt.isFormData(t)||Xt.isArrayBuffer(t)||Xt.isBuffer(t)||Xt.isStream(t)||Xt.isFile(t)||Xt.isBlob(t)?t:Xt.isArrayBufferView(t)?t.buffer:Xt.isURLSearchParams(t)?(rE(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Xt.isObject(t)||r&&r["Content-Type"]==="application/json"?(rE(r,"application/json"),VV(t)):t}],transformResponse:[function(t){var r=this.transitional||ld.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Xt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?UV(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Xt.forEach(["delete","get","head"],function(t){ld.headers[t]={}});Xt.forEach(["post","put","patch"],function(t){ld.headers[t]=Xt.merge(zV)});var ix=ld,WV=Lr,qV=ix,XV=function(t,r,n){var i=this||qV;return WV.forEach(n,function(a){t=a.call(i,t,r)}),t},gv,nE;function m2(){return nE||(nE=1,gv=function(t){return!!(t&&t.__CANCEL__)}),gv}var iE=Lr,yv=XV,YV=m2(),KV=ix,ZV=ud();function _v(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ZV("canceled")}var QV=function(t){_v(t),t.headers=t.headers||{},t.data=yv.call(t,t.data,t.headers,t.transformRequest),t.headers=iE.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),iE.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||KV.adapter;return r(t).then(function(i){return _v(t),i.data=yv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return YV(i)||(_v(t),i&&i.response&&(i.response.data=yv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Fr=Lr,g2=function(t,r){r=r||{};var n={};function i(c,f){return Fr.isPlainObject(c)&&Fr.isPlainObject(f)?Fr.merge(c,f):Fr.isPlainObject(f)?Fr.merge({},f):Fr.isArray(f)?f.slice():f}function o(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Fr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Fr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Fr.isUndefined(d)&&h!==u||(n[f]=d)}),n},xv,oE;function y2(){return oE||(oE=1,xv={version:"0.26.1"}),xv}var JV=y2().version,ox={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ox[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var aE={};ox.transitional=function(t,r,n){function i(o,a){return"[Axios v"+JV+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!aE[a]&&(aE[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function eW(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var tW={assertOptions:eW,validators:ox},_2=Lr,rW=h2,sE=RV,uE=QV,cd=g2,x2=tW,ha=x2.validators;function Wl(e){this.defaults=e,this.interceptors={request:new sE,response:new sE}}Wl.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=cd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&x2.assertOptions(n,{silentJSONParsing:ha.transitional(ha.boolean),forcedJSONParsing:ha.transitional(ha.boolean),clarifyTimeoutError:ha.transitional(ha.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[uE,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=uE(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Wl.prototype.getUri=function(t){return t=cd(this.defaults,t),rW(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};_2.forEach(["delete","get","head","options"],function(t){Wl.prototype[t]=function(r,n){return this.request(cd(n||{},{method:t,url:r,data:(n||{}).data}))}});_2.forEach(["post","put","patch"],function(t){Wl.prototype[t]=function(r,n,i){return this.request(cd(i||{},{method:t,url:r,data:n}))}});var nW=Wl,bv,lE;function iW(){if(lE)return bv;lE=1;var e=ud();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{fl.get(e).then(r=>{const n=r.data.toString();t(n)})});var hW="__lodash_hash_undefined__";function dW(e){return this.__data__.set(e,hW),this}var pW=dW;function vW(e){return this.__data__.has(e)}var mW=vW,gW=D0,yW=pW,_W=mW;function lh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new gW;++t-1}var NW=IW;function LW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=ZW){var l=t?null:YW(e);if(l)return KW(l);a=!1,i=XW,u=new VW}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),ti(t).then(r=>{ri(r,t,t)}))},n7=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),ti(e).then(r=>{O.sceneManager.sceneData.currentScene=ri(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=ql(n);Xl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Ht()})},i7=e=>{const t=e.content.split("/"),r=t[t.length-1];return n7(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function hl(e,t,r){let n;const o=B.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function E2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function T2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const sx={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function C2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Tv=.001,a7=.01,pE=10,s7=.05,u7=1;function l7({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;o7(e<=pE*1e3);let a=1-t;a=Ng(s7,u7,a),e=Ng(a7,pE,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=Lg(l,a),p=Math.exp(-f);return Tv-h/d*p},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,p=Math.exp(-f),g=Lg(Math.pow(l,2),a);return(-i(l)+Tv>0?-1:1)*((h-d)*p)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Tv+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=f7(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const c7=12;function f7(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function p7(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!vE(e,d7)&&vE(e,h7)){const r=l7(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ux(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=C2(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=p7(o),d=mE,p=mE;function g(){const v=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=Lg(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((v+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},p=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(v+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(v+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(v+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((v+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:v=>{const m=d(v);if(h)a.done=v>=f;else{const y=p(v)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}ux.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const mE=e=>0,O2=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},lx=(e,t,r)=>-r*e+r*t+e,A2=(e,t)=>r=>Math.max(Math.min(r,t),e),Du=e=>e%1?Number(e.toFixed(5)):e,ch=/(-)?([\d]*\.?[\d])+/g,Mg=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,v7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Yl(e){return typeof e=="string"}const fd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},P2=Object.assign(Object.assign({},fd),{transform:A2(0,1)});Object.assign(Object.assign({},fd),{default:1});const m7=e=>({test:t=>Yl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fu=m7("%");Object.assign(Object.assign({},Fu),{parse:e=>Fu.parse(e)/100,transform:e=>Fu.transform(e*100)});const cx=(e,t)=>r=>!!(Yl(r)&&v7.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),k2=(e,t,r)=>n=>{if(!Yl(n))return n;const[i,o,a,s]=n.match(ch);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},No={test:cx("hsl","hue"),parse:k2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Fu.transform(Du(t))+", "+Fu.transform(Du(r))+", "+Du(P2.transform(n))+")"},g7=A2(0,255),Cv=Object.assign(Object.assign({},fd),{transform:e=>Math.round(g7(e))}),Li={test:cx("rgb","red"),parse:k2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Cv.transform(e)+", "+Cv.transform(t)+", "+Cv.transform(r)+", "+Du(P2.transform(n))+")"};function y7(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Dg={test:cx("#"),parse:y7,transform:Li.transform},hd={test:e=>Li.test(e)||Dg.test(e)||No.test(e),parse:e=>Li.test(e)?Li.parse(e):No.test(e)?No.parse(e):Dg.parse(e),transform:e=>Yl(e)?e:e.hasOwnProperty("red")?Li.transform(e):No.transform(e)},R2="${c}",I2="${n}";function _7(e){var t,r,n,i;return isNaN(e)&&Yl(e)&&((r=(t=e.match(ch))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Mg))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function N2(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Mg);n&&(r=n.length,e=e.replace(Mg,R2),t.push(...n.map(hd.parse)));const i=e.match(ch);return i&&(e=e.replace(ch,I2),t.push(...i.map(fd.parse))),{values:t,numColors:r,tokenised:e}}function L2(e){return N2(e).values}function M2(e){const{values:t,numColors:r,tokenised:n}=N2(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function b7(e){const t=L2(e);return M2(e)(t.map(x7))}const D2={test:_7,parse:L2,createTransformer:M2,getAnimatableNone:b7};function Ov(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function gE({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Ov(u,s,e+1/3),o=Ov(u,s,e),a=Ov(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const S7=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},w7=[Dg,Li,No],yE=e=>w7.find(t=>t.test(e)),F2=(e,t)=>{let r=yE(e),n=yE(t),i=r.parse(e),o=n.parse(t);r===No&&(i=gE(i),r=Li),n===No&&(o=gE(o),n=Li);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=S7(i[u],o[u],s));return a.alpha=lx(i.alpha,o.alpha,s),r.transform(a)}},E7=e=>typeof e=="number",T7=(e,t)=>r=>t(e(r)),B2=(...e)=>e.reduce(T7);function j2(e,t){return E7(e)?r=>lx(e,t,r):hd.test(e)?F2(e,t):U2(e,t)}const $2=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>j2(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=j2(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function _E(e){const t=D2.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=D2.createTransformer(t),n=_E(e),i=_E(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?B2($2(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},O7=(e,t)=>r=>lx(e,t,r);function A7(e){if(typeof e=="number")return O7;if(typeof e=="string")return hd.test(e)?F2:U2;if(Array.isArray(e))return $2;if(typeof e=="object")return C7}function P7(e,t,r){const n=[],i=r||A7(e[0]),o=e.length-1;for(let a=0;ar(O2(e,t,n))}function R7(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=O2(e[o],e[o+1],i);return t[o](s)}}function G2(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;dE(o===t.length),dE(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=P7(t,n,i),s=o===2?k7(e,a):R7(e,a);return r?u=>s(Ng(e[0],e[o-1],u)):s}const I7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,N7=e=>t=>Math.pow(t,e),L7=e=>t=>t*t*((e+1)*t-e),M7=e=>{const t=L7(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},D7=1.525,F7=N7(2),B7=I7(F7);M7(D7);function j7(e,t){return e.map(()=>t||B7).splice(0,e.length-1)}function $7(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function U7(e,t){return e.map(r=>r*t)}function gf({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=U7(n&&n.length===a.length?n:$7(a),i);function u(){return G2(s,a,{ease:Array.isArray(r)?r:j7(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function G7({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const xE={keyframes:gf,spring:ux,decay:G7};function z7(e){if(Array.isArray(e.to))return gf;if(xE[e.type])return xE[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?gf:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ux:gf}const z2=1/60*1e3,H7=typeof performance<"u"?()=>performance.now():()=>Date.now(),H2=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(H7()),z2);function V7(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=V7(()=>dl=!0),e),{}),q7=Kl.reduce((e,t)=>{const r=dd[t];return e[t]=(n,i=!1,o=!1)=>(dl||K7(),r.schedule(n,i,o)),e},{}),X7=Kl.reduce((e,t)=>(e[t]=dd[t].cancel,e),{});Kl.reduce((e,t)=>(e[t]=()=>dd[t].process(Bu),e),{});const Y7=e=>dd[e].process(Bu),V2=e=>{dl=!1,Bu.delta=Fg?z2:Math.max(Math.min(e-Bu.timestamp,W7),1),Bu.timestamp=e,Bg=!0,Kl.forEach(Y7),Bg=!1,dl&&(Fg=!1,H2(V2))},K7=()=>{dl=!0,Fg=!0,Bg||H2(V2)},Z7=q7;function W2(e,t,r=0){return e-t-r}function Q7(e,t,r=0,n=!0){return n?W2(t+-e,t,r):t-(e-t)+r}function J7(e,t,r,n){return n?e>=t+r:e<=-r}const eq=e=>{const t=({delta:r})=>e(r);return{start:()=>Z7.update(t,!0),stop:()=>X7.update(t)}};function tq(e){var t,r,{from:n,autoplay:i=!0,driver:o=eq,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:p}=e,g=C2(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const R=z7(g);!((r=(t=R).needsInterpolation)===null||r===void 0)&&r.call(t,n,v)&&(T=G2([0,100],[n,v],{clamp:!1}),n=0,v=100);const A=R(Object.assign(Object.assign({},g),{from:n,to:v}));function P(){y++,u==="reverse"?(w=y%2===0,a=Q7(a,_,l,w)):(a=W2(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function D(){m.stop(),h&&h()}function F(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}p==null||p(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}function rq(e,t){for(var r=-1,n=e==null?0:e.length;++rs))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&uq?new iq:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=tq({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,kv(x,ii)),ii(y)||(s.scale.x=y),ii(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();B.dispatch(Er.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=p(),x=kv({x:m.x,y:m.y,..._},ii);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(ii(y.x)||(n.pixiContainer.scale.x=y.x),ii(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=kv({x:m.x,y:m.y,..._},ii);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(ii(y.x)||(n.pixiContainer.scale.x=y.x),ii(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function p(){return e[0]}function g(){return e[e.length-1]}function v(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...R}=m;return R}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:v}}function fh(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=B.getState().stage.effects.find(u=>u.target===t),s=At({...(a==null?void 0:a.transform)??sx,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),rk(i,t,r)}return null}function Tr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function ki(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=E2(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=fh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=T2(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=fh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const vK=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=B.dispatch;r!==""&&i(e2({name:r,url:t,series:n})),i(Er.removeEffectByTargetId("bg-main"));const o=Ae(e,"transform");let a=Ae(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=hl("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=hl("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Ae(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Ae(e,"enter").toString()),a=Tr(Ae(e,"enter").toString())),Ae(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Ae(e,"exit").toString()),a=Tr(Ae(e,"exit").toString())),i(we({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function mK(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const p=B.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=jr(u,Br.figure);break;case"mouthClose":l=b.value.toString(),l=jr(l,Br.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=jr(c,Br.figure);break;case"eyesOpen":f=b.value.toString(),f=jr(f,Br.figure);break;case"eyesClose":h=b.value.toString(),h=jr(h,Br.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=B.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),p(we({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=B.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&B.getState().stage.figName===e.content&&(_=!1),t==="left"&&B.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&B.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;B.dispatch(Er.removeEffectByTargetId(b)),B.dispatch(Er.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Ae(w,"transform"),R=Ae(w,"duration");R&&typeof R=="number"&&(s=R);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=hl(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=hl(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const D=Ae(w,"enter"),F=Ae(w,"exit");D&&(O.animationManager.nextEnterAnimationName.set(b,D.toString()),s=Tr(D.toString())),F&&(O.animationManager.nextExitAnimationName.set(b+"-off",F.toString()),s=Tr(F.toString()))};if(n){B.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(Er.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(we({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const nk=(e,t)=>{ti(e).then(r=>{O.sceneManager.sceneData.currentScene=ri(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=ql(n);Xl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Ht()})},gK=e=>{const t=e.content.split("/"),r=t[t.length-1];return nk(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},ik=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ke.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Ht,1)},yK="_Choose_Main_cegqk_1",_K="_Choose_item_cegqk_13",xK="_Choose_item_disabled_cegqk_29",Rv={Choose_Main:yK,Choose_item:_K,Choose_item_disabled:xK},bK=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,SK=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,ok="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",wK=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,ak="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var sk={exports:{}},uk={};/** +*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof _c=="function"&&_c;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(p){var g=n[l][1][p];return a(g||p)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof _c=="function"&&_c,u=0;u"u"&&r(3);var f=Promise;function h(E,k){k&&E.then(function(C){k(null,C)},function(C){k(C)})}function d(E,k,C){typeof k=="function"&&E.then(k),typeof C=="function"&&E.catch(C)}function p(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var v="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var k=E.length,C=new ArrayBuffer(k),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function R(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(k){return m=k,m})}function A(E){var k=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),k.deferredOperations.push(C),k.dbReady?k.dbReady=k.dbReady.then(function(){return C.promise}):k.dbReady=C.promise}function P(E){var k=y[E.name],C=k.deferredOperations.pop();if(C)return C.resolve(),C.promise}function D(E,k){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(k),N.promise}function F(E,k){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(k)A(E),E.db.close();else return C(E.db);var M=[E.name];k&&M.push(E.version);var I=u.open.apply(u,M);k&&(I.onupgradeneeded=function(j){var U=I.result;try{U.createObjectStore(E.storeName),j.oldVersion<=1&&U.createObjectStore(v)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),I.onerror=function(j){j.preventDefault(),N(I.error)},I.onsuccess=function(){var j=I.result;j.onversionchange=function(U){U.target.close()},C(j),P(E)}})}function H(E){return F(E,!1)}function re(E){return F(E,!0)}function z(E,k){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==k&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var I=E.db.version+1;I>E.version&&(E.version=I)}return!0}return!1}function q(E){return new f(function(k,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var I=btoa(M.target.result||"");k({__local_forage_encoded_blob:!0,data:I,type:E.type})},N.readAsBinaryString(E)})}function le(E){var k=w(atob(E.data));return c([k],{type:E.type})}function Ue(E){return E&&E.__local_forage_encoded_blob}function me(E){var k=this,C=k._initReady().then(function(){var N=y[k._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var k=y[E.name],C=k.forages,N=0;N0&&(!E.db||I.name==="InvalidStateError"||I.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||I.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,k,C,N-1)})}).catch(C);C(I)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(k),k._initReady||(k._initReady=k.ready,k.ready=me);var I=[];function j(){return f.resolve()}for(var U=0;U>4,J[M++]=(j&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function op(E){var k=new Uint8Array(E),C="",N;for(N=0;N>2],C+=lt[(k[N]&3)<<4|k[N+1]>>4],C+=lt[(k[N+1]&15)<<2|k[N+2]>>6],C+=lt[k[N+2]&63];return k.length%3===2?C=C.substring(0,C.length-1)+"=":k.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function iL(E,k){var C="";if(E&&(C=r1.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&r1.call(E.buffer)==="[object ArrayBuffer]")){var N,M=hr;E instanceof ArrayBuffer?(N=E,M+=Ti):(N=E.buffer,C==="[object Int8Array]"?M+=$s:C==="[object Uint8Array]"?M+=Us:C==="[object Uint8ClampedArray]"?M+=Gs:C==="[object Int16Array]"?M+=Yb:C==="[object Uint16Array]"?M+=Zb:C==="[object Int32Array]"?M+=Kb:C==="[object Uint32Array]"?M+=Qb:C==="[object Float32Array]"?M+=Jb:C==="[object Float64Array]"?M+=e1:k(new Error("Failed to get type for BinaryArray"))),k(M+op(N))}else if(C==="[object Blob]"){var I=new FileReader;I.onload=function(){var j=er+E.type+"~"+op(this.result);k(hr+sa+j)},I.readAsArrayBuffer(E)}else try{k(JSON.stringify(E))}catch(j){console.error("Couldn't convert value into a JSON string: ",E),k(null,j)}}function oL(E){if(E.substring(0,Pn)!==hr)return JSON.parse(E);var k=E.substring(t1),C=E.substring(Pn,t1),N;if(C===sa&&Ne.test(k)){var M=k.match(Ne);N=M[1],k=k.substring(M[0].length)}var I=n1(k);switch(C){case Ti:return I;case sa:return c([I],{type:N});case $s:return new Int8Array(I);case Us:return new Uint8Array(I);case Gs:return new Uint8ClampedArray(I);case Yb:return new Int16Array(I);case Zb:return new Uint16Array(I);case Kb:return new Int32Array(I);case Qb:return new Uint32Array(I);case Jb:return new Float32Array(I);case e1:return new Float64Array(I);default:throw new Error("Unkown type: "+C)}}var ap={serialize:iL,deserialize:oL,stringToBuffer:n1,bufferToString:op};function i1(E,k,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+k.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function aL(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(I,j){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return j(U)}C.db.transaction(function(U){i1(U,C,function(){k._dbInfo=C,I()},function(W,X){j(X)})},j)});return C.serializer=ap,M}function Ci(E,k,C,N,M,I){E.executeSql(C,N,M,function(j,U){U.code===U.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[k.storeName],function(W,X){X.rows.length?I(W,U):i1(W,k,function(){W.executeSql(C,N,M,I)},I)},I):I(j,U)},I)}function sL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=j.serializer.deserialize(J)),M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function uL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName,[],function(W,X){for(var J=X.rows,ue=J.length,Te=0;Te0){j(o1.apply(M,[E,W,C,N-1]));return}U(Te)}})})}).catch(U)});return h(I,C),I}function lL(E,k,C){return o1.apply(this,[E,k,C,1])}function cL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function fL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ci(j,I,"DELETE FROM "+I.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function hL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ci(j,I,"SELECT COUNT(key) as c FROM "+I.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function dL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function pL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ci(j,I,"SELECT key FROM "+I.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,I){for(var j=[],U=0;U0}function bL(E){var k=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=a1(E,k._defaultConfig),xL()?(k._dbInfo=C,C.serializer=ap,f.resolve()):f.reject()}function SL(E){var k=this,C=k.ready().then(function(){for(var N=k._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var I=localStorage.key(M);I.indexOf(N)===0&&localStorage.removeItem(I)}});return h(C,E),C}function wL(E,k){var C=this;E=p(E);var N=C.ready().then(function(){var M=C._dbInfo,I=localStorage.getItem(M.keyPrefix+E);return I&&(I=M.serializer.deserialize(I)),I});return h(N,k),N}function EL(E,k){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,I=M.keyPrefix,j=I.length,U=localStorage.length,W=1,X=0;X=0;j--){var U=localStorage.key(j);U.indexOf(I)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,k),M}var RL={_driver:"localStorageWrapper",_initStorage:bL,_support:yL(),iterate:EL,getItem:wL,setItem:PL,removeItem:AL,clear:SL,length:OL,key:TL,keys:CL,dropInstance:kL},IL=function(k,C){return k===C||typeof k=="number"&&typeof C=="number"&&isNaN(k)&&isNaN(C)},NL=function(k,C){for(var N=k.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var I=new f(function(j,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=sp.concat("_initStorage"),ue=0,Te=J.length;ue"u"}function d6(e){return e!==null&&!kg(e)&&e.constructor!==null&&!kg(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function p6(e){return na.call(e)==="[object ArrayBuffer]"}function v6(e){return typeof FormData<"u"&&e instanceof FormData}function m6(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function g6(e){return typeof e=="string"}function y6(e){return typeof e=="number"}function GP(e){return e!==null&&typeof e=="object"}function vf(e){if(na.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _6(e){return na.call(e)==="[object Date]"}function x6(e){return na.call(e)==="[object File]"}function b6(e){return na.call(e)==="[object Blob]"}function zP(e){return na.call(e)==="[object Function]"}function S6(e){return GP(e)&&zP(e.pipe)}function w6(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function E6(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T6(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function J0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Q0(e))for(var r=0,n=e.length;r"u"||(ca.isArray(u)?l=l+"[]":u=[u],ca.forEach(u,function(f){ca.isDate(f)?f=f.toISOString():ca.isObject(f)&&(f=JSON.stringify(f)),o.push(pw(l)+"="+pw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},A6=Vr;function td(){this.handlers=[]}td.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};td.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};td.prototype.forEach=function(t){A6.forEach(this.handlers,function(n){n!==null&&t(n)})};var P6=td,k6=Vr,R6=function(t,r){k6.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},VP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},zp,vw;function WP(){if(vw)return zp;vw=1;var e=VP;return zp=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},zp}var Hp,mw;function I6(){if(mw)return Hp;mw=1;var e=WP();return Hp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Hp}var Vp,gw;function N6(){if(gw)return Vp;gw=1;var e=Vr;return Vp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Vp}var Wp,yw;function L6(){return yw||(yw=1,Wp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Wp}var qp,_w;function M6(){return _w||(_w=1,qp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),qp}var Xp,xw;function D6(){if(xw)return Xp;xw=1;var e=L6(),t=M6();return Xp=function(n,i){return n&&!e(i)?t(n,i):i},Xp}var Yp,bw;function F6(){if(bw)return Yp;bw=1;var e=Vr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Yp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},Yp}var Kp,Sw;function B6(){if(Sw)return Kp;Sw=1;var e=Vr;return Kp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Kp}var Zp,ww;function rd(){if(ww)return Zp;ww=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Zp=e,Zp}var Qp,Ew;function Tw(){if(Ew)return Qp;Ew=1;var e=Vr,t=I6(),r=N6(),n=HP,i=D6(),o=F6(),a=B6(),s=WP(),u=nd(),l=rd();return Qp=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u.transitional;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Qp}var Jp,Cw;function nd(){if(Cw)return Jp;Cw=1;var e=Vr,t=R6,r=VP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=Tw()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(p){if(d)throw p.name==="SyntaxError"?r(p,this,"E_JSON_PARSE"):p}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Jp=s,Jp}var j6=Vr,$6=nd(),U6=function(t,r,n){var i=this||$6;return j6.forEach(n,function(a){t=a.call(i,t,r)}),t},ev,Ow;function qP(){return Ow||(Ow=1,ev=function(t){return!!(t&&t.__CANCEL__)}),ev}var Aw=Vr,tv=U6,G6=qP(),z6=nd(),H6=rd();function rv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new H6("canceled")}var V6=function(t){rv(t),t.headers=t.headers||{},t.data=tv.call(t,t.data,t.headers,t.transformRequest),t.headers=Aw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Aw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||z6.adapter;return r(t).then(function(i){return rv(t),i.data=tv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return G6(i)||(rv(t),i&&i.response&&(i.response.data=tv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Dr=Vr,XP=function(t,r){r=r||{};var n={};function i(c,f){return Dr.isPlainObject(c)&&Dr.isPlainObject(f)?Dr.merge(c,f):Dr.isPlainObject(f)?Dr.merge({},f):Dr.isArray(f)?f.slice():f}function o(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Dr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Dr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Dr.isUndefined(d)&&h!==u||(n[f]=d)}),n},nv,Pw;function YP(){return Pw||(Pw=1,nv={version:"0.24.0"}),nv}var W6=YP().version,ex={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ex[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var kw={};ex.transitional=function(t,r,n){function i(o,a){return"[Axios v"+W6+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!kw[a]&&(kw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function q6(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var X6={assertOptions:q6,validators:ex},KP=Vr,Y6=HP,Rw=P6,Iw=V6,id=XP,ZP=X6,fa=ZP.validators;function ql(e){this.defaults=e,this.interceptors={request:new Rw,response:new Rw}}ql.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=id(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&ZP.assertOptions(r,{silentJSONParsing:fa.transitional(fa.boolean),forcedJSONParsing:fa.transitional(fa.boolean),clarifyTimeoutError:fa.transitional(fa.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[Iw,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=Iw(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};ql.prototype.getUri=function(t){return t=id(this.defaults,t),Y6(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};KP.forEach(["delete","get","head","options"],function(t){ql.prototype[t]=function(r,n){return this.request(id(n||{},{method:t,url:r,data:(n||{}).data}))}});KP.forEach(["post","put","patch"],function(t){ql.prototype[t]=function(r,n,i){return this.request(id(i||{},{method:t,url:r,data:n}))}});var K6=ql,iv,Nw;function Z6(){if(Nw)return iv;Nw=1;var e=rd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var sG=aG;const uG=Nr(sG),ne=new uG,lG={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{fullScreen:{title:"Full Screen",options:{on:"ON",off:"OFF"}},textSpeed:{title:"Text Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},cG={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},fG={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{fullScreen:{title:"全屏模式",options:{on:"开启",off:"关闭"}},textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},hG={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},dG={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},pG={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var ia=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(ia||{});const lh={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},vG={en:{translation:lG},zhCn:{translation:fG},jp:{translation:cG},fr:{translation:hG},de:{translation:dG},zhTw:{translation:pG}},mG=0;var vr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(vr||{}),xn=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(xn||{}),Vn=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Vn||{}),hl=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(hl||{}),en=(e=>(e[e.on=0]="on",e[e.off=1]="off",e))(en||{});const JP={slPage:1,volumeMain:100,textSpeed:vr.normal,autoSpeed:vr.normal,textSize:xn.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Vn.song,textboxOpacity:75,language:ia.zhCn,voiceInterruption:hl.yes,fullScreen:en.off},Ig={saveData:[],optionData:JP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},e2=L0({name:"userData",initialState:At(Ig),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetOptionSet(e){Object.assign(e.optionData,JP)},resetAllData(e){Object.assign(e,At(Ig))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:gG,resetUserData:tx,setOptionData:rt,setGlobalVar:yG,setSlPage:t2,unlockCgInUserData:r2,unlockBgmInUserData:n2,setFastSave:_G,resetOptionSet:xG,resetSaveData:bG,resetAllData:SG}=e2.actions,wG=e2.reducer,i2={backlog_size:200,fast_timeout:50},EG={textInitialDelay:80};class TG{constructor(t){se(this,"isSaveBacklogNext",!1);se(this,"backlog",[]);se(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=B.getState().stage,r=At(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:At(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>i2.backlog_size;)this.getBacklog().shift()}}const Fw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class CG{constructor(){se(this,"settledScenes",[]);se(this,"settledAssets",[]);se(this,"sceneData",At(Fw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=At(Fw.currentScene)}}class OG{constructor(){se(this,"nextEnterAnimationName",new Map);se(this,"nextExitAnimationName",new Map);se(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}const AG={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};var Br=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Br||{});const jr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}},PG=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const Bw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=kG(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=RG(n,i,t),n};function kG(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function RG(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Tt;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Tt||(Tt={}));function o2(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Tt.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const IG=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,Tt.vocal);case oe.changeBg:return r(e,Tt.background);case oe.changeFigure:return r(e,Tt.figure);case oe.bgm:return r(e,Tt.bgm);case oe.callScene:return r(e,Tt.scene);case oe.changeScene:return r(e,Tt.scene);case oe.miniAvatar:return r(e,Tt.figure);case oe.video:return r(e,Tt.video);case oe.choose:return NG(e,r);case oe.unlockBgm:return r(e,Tt.bgm);case oe.unlockCg:return r(e,Tt.background);default:return e}};function NG(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,Tt.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Tt.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Tt.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:Tt.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:Tt.bgm})),n},MG=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},DG=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=Bw(c,r,n),i=l.type;for(const p of l.additionalArgs)i===oe.say&&p.key==="speaker"||s.push(p)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=Bw(c,r,n),i=l.type;for(const p of l.additionalArgs)s.push(p)}const d=/ -/.exec(f);if(d){const p=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of o2(p,t))s.push(g)}return o=IG(f,i,t),u=LG(i,o,s),a=MG(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var xc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},FG=typeof xc=="object"&&xc&&xc.Object===Object&&xc,BG=FG,jG=BG,$G=typeof self=="object"&&self&&self.Object===Object&&self,UG=jG||$G||Function("return this")(),od=UG,GG=od,zG=GG.Symbol,a2=zG,jw=a2,s2=Object.prototype,HG=s2.hasOwnProperty,VG=s2.toString,iu=jw?jw.toStringTag:void 0;function WG(e){var t=HG.call(e,iu),r=e[iu];try{e[iu]=void 0;var n=!0}catch{}var i=VG.call(e);return n&&(t?e[iu]=r:delete e[iu]),i}var qG=WG,XG=Object.prototype,YG=XG.toString;function KG(e){return YG.call(e)}var ZG=KG,$w=a2,QG=qG,JG=ZG,ez="[object Null]",tz="[object Undefined]",Uw=$w?$w.toStringTag:void 0;function rz(e){return e==null?e===void 0?tz:ez:Uw&&Uw in Object(e)?QG(e):JG(e)}var nz=rz;function iz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var u2=iz,oz=nz,az=u2,sz="[object AsyncFunction]",uz="[object Function]",lz="[object GeneratorFunction]",cz="[object Proxy]";function fz(e){if(!az(e))return!1;var t=oz(e);return t==uz||t==lz||t==sz||t==cz}var hz=fz,dz=od,pz=dz["__core-js_shared__"],vz=pz,sv=vz,Gw=function(){var e=/[^.]+$/.exec(sv&&sv.keys&&sv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mz(e){return!!Gw&&Gw in e}var gz=mz,yz=Function.prototype,_z=yz.toString;function xz(e){if(e!=null){try{return _z.call(e)}catch{}try{return e+""}catch{}}return""}var bz=xz,Sz=hz,wz=gz,Ez=u2,Tz=bz,Cz=/[\\^$.*+?()[\]{}|]/g,Oz=/^\[object .+?Constructor\]$/,Az=Function.prototype,Pz=Object.prototype,kz=Az.toString,Rz=Pz.hasOwnProperty,Iz=RegExp("^"+kz.call(Rz).replace(Cz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nz(e){if(!Ez(e)||wz(e))return!1;var t=Sz(e)?Iz:Oz;return t.test(Tz(e))}var Lz=Nz;function Mz(e,t){return e==null?void 0:e[t]}var Dz=Mz,Fz=Lz,Bz=Dz;function jz(e,t){var r=Bz(e,t);return Fz(r)?r:void 0}var rx=jz,$z=rx,Uz=$z(Object,"create"),ad=Uz,zw=ad;function Gz(){this.__data__=zw?zw(null):{},this.size=0}var zz=Gz;function Hz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vz=Hz,Wz=ad,qz="__lodash_hash_undefined__",Xz=Object.prototype,Yz=Xz.hasOwnProperty;function Kz(e){var t=this.__data__;if(Wz){var r=t[e];return r===qz?void 0:r}return Yz.call(t,e)?t[e]:void 0}var Zz=Kz,Qz=ad,Jz=Object.prototype,e9=Jz.hasOwnProperty;function t9(e){var t=this.__data__;return Qz?t[e]!==void 0:e9.call(t,e)}var r9=t9,n9=ad,i9="__lodash_hash_undefined__";function o9(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n9&&t===void 0?i9:t,this}var a9=o9,s9=zz,u9=Vz,l9=Zz,c9=r9,f9=a9;function As(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var P9=A9,k9=sd;function R9(e,t){var r=this.__data__,n=k9(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var I9=R9,N9=p9,L9=w9,M9=C9,D9=P9,F9=I9;function Ps(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var FH=DH;function BH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=aV){var l=t?null:iV(e);if(l)return oV(l);a=!1,i=nV,u=new eV}else u=t?[]:s;e:for(;++n{const u=e.split(` +`);let l=[],c=[];const f=u.map(h=>{const d=DG(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=fV(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function dV(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of o2(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function pV(e){return e.replaceAll("\r","").split(` +`).map(r=>dV(r)).filter(r=>r.command!=="")}class vV{constructor(t,r,n,i){se(this,"assetsPrefetcher");se(this,"assetSetter");se(this,"ADD_NEXT_ARG_LIST");se(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return hV(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return pV(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; +`,"")}}function Ae(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const mV=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Ae(e,"enter"),o=Ae(e,"volume");return r!==""&&B.dispatch(n2({name:r,url:t,series:n})),Mx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var nx={exports:{}},c2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function yV(e){return e!==null&&!Ng(e)&&e.constructor!==null&&!Ng(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function f2(e){return ho.call(e)==="[object ArrayBuffer]"}function _V(e){return ho.call(e)==="[object FormData]"}function xV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&f2(e.buffer),t}function bV(e){return typeof e=="string"}function SV(e){return typeof e=="number"}function h2(e){return e!==null&&typeof e=="object"}function gf(e){if(ho.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function wV(e){return ho.call(e)==="[object Date]"}function EV(e){return ho.call(e)==="[object File]"}function TV(e){return ho.call(e)==="[object Blob]"}function d2(e){return ho.call(e)==="[object Function]"}function CV(e){return h2(e)&&d2(e.pipe)}function OV(e){return ho.call(e)==="[object URLSearchParams]"}function AV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function PV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ox(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ix(e))for(var r=0,n=e.length;r"u"||(ha.isArray(u)?l=l+"[]":u=[u],ha.forEach(u,function(f){ha.isDate(f)?f=f.toISOString():ha.isObject(f)&&(f=JSON.stringify(f)),o.push(Vw(l)+"="+Vw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},IV=Lr;function ld(){this.handlers=[]}ld.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ld.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ld.prototype.forEach=function(t){IV.forEach(this.handlers,function(n){n!==null&&t(n)})};var NV=ld,LV=Lr,MV=function(t,r){LV.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},v2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},m2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lv,Ww;function g2(){if(Ww)return lv;Ww=1;var e=v2;return lv=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},lv}var cv,qw;function DV(){if(qw)return cv;qw=1;var e=g2();return cv=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},cv}var fv,Xw;function FV(){if(Xw)return fv;Xw=1;var e=Lr;return fv=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),fv}var hv,Yw;function BV(){return Yw||(Yw=1,hv=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),hv}var dv,Kw;function jV(){return Kw||(Kw=1,dv=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),dv}var pv,Zw;function $V(){if(Zw)return pv;Zw=1;var e=BV(),t=jV();return pv=function(n,i){return n&&!e(i)?t(n,i):i},pv}var vv,Qw;function UV(){if(Qw)return vv;Qw=1;var e=Lr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return vv=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},vv}var mv,Jw;function GV(){if(Jw)return mv;Jw=1;var e=Lr;return mv=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),mv}var gv,eE;function cd(){if(eE)return gv;eE=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,gv=e,gv}var yv,tE;function rE(){if(tE)return yv;tE=1;var e=Lr,t=DV(),r=FV(),n=p2,i=$V(),o=UV(),a=GV(),s=g2(),u=m2,l=cd();return yv=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},yv}var Yt=Lr,nE=MV,zV=v2,HV=m2,VV={"Content-Type":"application/x-www-form-urlencoded"};function iE(e,t){!Yt.isUndefined(e)&&Yt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function WV(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=rE()),e}function qV(e,t,r){if(Yt.isString(e))try{return(t||JSON.parse)(e),Yt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var fd={transitional:HV,adapter:WV(),transformRequest:[function(t,r){return nE(r,"Accept"),nE(r,"Content-Type"),Yt.isFormData(t)||Yt.isArrayBuffer(t)||Yt.isBuffer(t)||Yt.isStream(t)||Yt.isFile(t)||Yt.isBlob(t)?t:Yt.isArrayBufferView(t)?t.buffer:Yt.isURLSearchParams(t)?(iE(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Yt.isObject(t)||r&&r["Content-Type"]==="application/json"?(iE(r,"application/json"),qV(t)):t}],transformResponse:[function(t){var r=this.transitional||fd.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Yt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?zV(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Yt.forEach(["delete","get","head"],function(t){fd.headers[t]={}});Yt.forEach(["post","put","patch"],function(t){fd.headers[t]=Yt.merge(VV)});var ax=fd,XV=Lr,YV=ax,KV=function(t,r,n){var i=this||YV;return XV.forEach(n,function(a){t=a.call(i,t,r)}),t},_v,oE;function y2(){return oE||(oE=1,_v=function(t){return!!(t&&t.__CANCEL__)}),_v}var aE=Lr,xv=KV,ZV=y2(),QV=ax,JV=cd();function bv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new JV("canceled")}var eW=function(t){bv(t),t.headers=t.headers||{},t.data=xv.call(t,t.data,t.headers,t.transformRequest),t.headers=aE.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),aE.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||QV.adapter;return r(t).then(function(i){return bv(t),i.data=xv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return ZV(i)||(bv(t),i&&i.response&&(i.response.data=xv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Fr=Lr,_2=function(t,r){r=r||{};var n={};function i(c,f){return Fr.isPlainObject(c)&&Fr.isPlainObject(f)?Fr.merge(c,f):Fr.isPlainObject(f)?Fr.merge({},f):Fr.isArray(f)?f.slice():f}function o(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Fr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Fr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Fr.isUndefined(d)&&h!==u||(n[f]=d)}),n},Sv,sE;function x2(){return sE||(sE=1,Sv={version:"0.26.1"}),Sv}var tW=x2().version,sx={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){sx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var uE={};sx.transitional=function(t,r,n){function i(o,a){return"[Axios v"+tW+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!uE[a]&&(uE[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function rW(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var nW={assertOptions:rW,validators:sx},b2=Lr,iW=p2,lE=NV,cE=eW,hd=_2,S2=nW,da=S2.validators;function Xl(e){this.defaults=e,this.interceptors={request:new lE,response:new lE}}Xl.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=hd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&S2.assertOptions(n,{silentJSONParsing:da.transitional(da.boolean),forcedJSONParsing:da.transitional(da.boolean),clarifyTimeoutError:da.transitional(da.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[cE,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=cE(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Xl.prototype.getUri=function(t){return t=hd(this.defaults,t),iW(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};b2.forEach(["delete","get","head","options"],function(t){Xl.prototype[t]=function(r,n){return this.request(hd(n||{},{method:t,url:r,data:(n||{}).data}))}});b2.forEach(["post","put","patch"],function(t){Xl.prototype[t]=function(r,n,i){return this.request(hd(i||{},{method:t,url:r,data:n}))}});var oW=Xl,wv,fE;function aW(){if(fE)return wv;fE=1;var e=cd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{dl.get(e).then(r=>{const n=r.data.toString();t(n)})});var pW="__lodash_hash_undefined__";function vW(e){return this.__data__.set(e,pW),this}var mW=vW;function gW(e){return this.__data__.has(e)}var yW=gW,_W=B0,xW=mW,bW=yW;function fh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _W;++t-1}var MW=LW;function DW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=JW){var l=t?null:ZW(e);if(l)return QW(l);a=!1,i=KW,u=new qW}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),ri(t).then(r=>{ni(r,t,t)}))},o7=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Vt()})},a7=e=>{const t=e.content.split("/"),r=t[t.length-1];return o7(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function pl(e,t,r){let n;const o=B.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function C2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function O2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const lx={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function A2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Ov=.001,u7=.01,mE=10,l7=.05,c7=1;function f7({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;s7(e<=mE*1e3);let a=1-t;a=Mg(l7,c7,a),e=Mg(u7,mE,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=Dg(l,a),p=Math.exp(-f);return Ov-h/d*p},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,p=Math.exp(-f),g=Dg(Math.pow(l,2),a);return(-i(l)+Ov>0?-1:1)*((h-d)*p)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Ov+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=d7(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const h7=12;function d7(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function m7(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!gE(e,v7)&&gE(e,p7)){const r=f7(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function cx(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=A2(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=m7(o),d=yE,p=yE;function g(){const v=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=Dg(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((v+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},p=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(v+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(v+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(v+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((v+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:v=>{const m=d(v);if(h)a.done=v>=f;else{const y=p(v)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}cx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const yE=e=>0,P2=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},fx=(e,t,r)=>-r*e+r*t+e,k2=(e,t)=>r=>Math.max(Math.min(r,t),e),Bu=e=>e%1?Number(e.toFixed(5)):e,hh=/(-)?([\d]*\.?[\d])+/g,Fg=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,g7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zl(e){return typeof e=="string"}const dd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},R2=Object.assign(Object.assign({},dd),{transform:k2(0,1)});Object.assign(Object.assign({},dd),{default:1});const y7=e=>({test:t=>Zl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ju=y7("%");Object.assign(Object.assign({},ju),{parse:e=>ju.parse(e)/100,transform:e=>ju.transform(e*100)});const hx=(e,t)=>r=>!!(Zl(r)&&g7.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),I2=(e,t,r)=>n=>{if(!Zl(n))return n;const[i,o,a,s]=n.match(hh);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Lo={test:hx("hsl","hue"),parse:I2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ju.transform(Bu(t))+", "+ju.transform(Bu(r))+", "+Bu(R2.transform(n))+")"},_7=k2(0,255),Av=Object.assign(Object.assign({},dd),{transform:e=>Math.round(_7(e))}),Di={test:hx("rgb","red"),parse:I2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Av.transform(e)+", "+Av.transform(t)+", "+Av.transform(r)+", "+Bu(R2.transform(n))+")"};function x7(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Bg={test:hx("#"),parse:x7,transform:Di.transform},pd={test:e=>Di.test(e)||Bg.test(e)||Lo.test(e),parse:e=>Di.test(e)?Di.parse(e):Lo.test(e)?Lo.parse(e):Bg.parse(e),transform:e=>Zl(e)?e:e.hasOwnProperty("red")?Di.transform(e):Lo.transform(e)},N2="${c}",L2="${n}";function b7(e){var t,r,n,i;return isNaN(e)&&Zl(e)&&((r=(t=e.match(hh))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Fg))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function M2(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Fg);n&&(r=n.length,e=e.replace(Fg,N2),t.push(...n.map(pd.parse)));const i=e.match(hh);return i&&(e=e.replace(hh,L2),t.push(...i.map(dd.parse))),{values:t,numColors:r,tokenised:e}}function D2(e){return M2(e).values}function F2(e){const{values:t,numColors:r,tokenised:n}=M2(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function w7(e){const t=D2(e);return F2(e)(t.map(S7))}const B2={test:b7,parse:D2,createTransformer:F2,getAnimatableNone:w7};function Pv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function _E({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Pv(u,s,e+1/3),o=Pv(u,s,e),a=Pv(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const E7=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},T7=[Bg,Di,Lo],xE=e=>T7.find(t=>t.test(e)),j2=(e,t)=>{let r=xE(e),n=xE(t),i=r.parse(e),o=n.parse(t);r===Lo&&(i=_E(i),r=Di),n===Lo&&(o=_E(o),n=Di);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=E7(i[u],o[u],s));return a.alpha=fx(i.alpha,o.alpha,s),r.transform(a)}},C7=e=>typeof e=="number",O7=(e,t)=>r=>t(e(r)),$2=(...e)=>e.reduce(O7);function U2(e,t){return C7(e)?r=>fx(e,t,r):pd.test(e)?j2(e,t):z2(e,t)}const G2=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>U2(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=U2(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function bE(e){const t=B2.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=B2.createTransformer(t),n=bE(e),i=bE(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?$2(G2(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},P7=(e,t)=>r=>fx(e,t,r);function k7(e){if(typeof e=="number")return P7;if(typeof e=="string")return pd.test(e)?j2:z2;if(Array.isArray(e))return G2;if(typeof e=="object")return A7}function R7(e,t,r){const n=[],i=r||k7(e[0]),o=e.length-1;for(let a=0;ar(P2(e,t,n))}function N7(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=P2(e[o],e[o+1],i);return t[o](s)}}function H2(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;vE(o===t.length),vE(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=R7(t,n,i),s=o===2?I7(e,a):N7(e,a);return r?u=>s(Mg(e[0],e[o-1],u)):s}const L7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,M7=e=>t=>Math.pow(t,e),D7=e=>t=>t*t*((e+1)*t-e),F7=e=>{const t=D7(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},B7=1.525,j7=M7(2),$7=L7(j7);F7(B7);function U7(e,t){return e.map(()=>t||$7).splice(0,e.length-1)}function G7(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function z7(e,t){return e.map(r=>r*t)}function _f({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=z7(n&&n.length===a.length?n:G7(a),i);function u(){return H2(s,a,{ease:Array.isArray(r)?r:U7(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function H7({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const SE={keyframes:_f,spring:cx,decay:H7};function V7(e){if(Array.isArray(e.to))return _f;if(SE[e.type])return SE[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?_f:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?cx:_f}const V2=1/60*1e3,W7=typeof performance<"u"?()=>performance.now():()=>Date.now(),W2=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(W7()),V2);function q7(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=q7(()=>vl=!0),e),{}),Y7=Ql.reduce((e,t)=>{const r=vd[t];return e[t]=(n,i=!1,o=!1)=>(vl||Q7(),r.schedule(n,i,o)),e},{}),K7=Ql.reduce((e,t)=>(e[t]=vd[t].cancel,e),{});Ql.reduce((e,t)=>(e[t]=()=>vd[t].process($u),e),{});const Z7=e=>vd[e].process($u),q2=e=>{vl=!1,$u.delta=jg?V2:Math.max(Math.min(e-$u.timestamp,X7),1),$u.timestamp=e,$g=!0,Ql.forEach(Z7),$g=!1,vl&&(jg=!1,W2(q2))},Q7=()=>{vl=!0,jg=!0,$g||W2(q2)},J7=Y7;function X2(e,t,r=0){return e-t-r}function eq(e,t,r=0,n=!0){return n?X2(t+-e,t,r):t-(e-t)+r}function tq(e,t,r,n){return n?e>=t+r:e<=-r}const rq=e=>{const t=({delta:r})=>e(r);return{start:()=>J7.update(t,!0),stop:()=>K7.update(t)}};function nq(e){var t,r,{from:n,autoplay:i=!0,driver:o=rq,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:p}=e,g=A2(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const R=V7(g);!((r=(t=R).needsInterpolation)===null||r===void 0)&&r.call(t,n,v)&&(T=H2([0,100],[n,v],{clamp:!1}),n=0,v=100);const A=R(Object.assign(Object.assign({},g),{from:n,to:v}));function P(){y++,u==="reverse"?(w=y%2===0,a=eq(a,_,l,w)):(a=X2(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function D(){m.stop(),h&&h()}function F(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}p==null||p(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}function iq(e,t){for(var r=-1,n=e==null?0:e.length;++rs))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&cq?new aq:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=nq({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,Iv(x,oi)),oi(y)||(s.scale.x=y),oi(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();B.dispatch(Er.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=p(),x=Iv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=Iv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function p(){return e[0]}function g(){return e[e.length-1]}function v(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...R}=m;return R}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:v}}function dh(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=B.getState().stage.effects.find(u=>u.target===t),s=At({...(a==null?void 0:a.transform)??lx,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),ik(i,t,r)}return null}function Tr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function Ii(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=C2(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=O2(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const gK=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=B.dispatch;r!==""&&i(r2({name:r,url:t,series:n})),i(Er.removeEffectByTargetId("bg-main"));const o=Ae(e,"transform");let a=Ae(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=pl("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=pl("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Ae(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Ae(e,"enter").toString()),a=Tr(Ae(e,"enter").toString())),Ae(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Ae(e,"exit").toString()),a=Tr(Ae(e,"exit").toString())),i(Ee({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function yK(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const p=B.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=jr(u,Br.figure);break;case"mouthClose":l=b.value.toString(),l=jr(l,Br.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=jr(c,Br.figure);break;case"eyesOpen":f=b.value.toString(),f=jr(f,Br.figure);break;case"eyesClose":h=b.value.toString(),h=jr(h,Br.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=B.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),p(Ee({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=B.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&B.getState().stage.figName===e.content&&(_=!1),t==="left"&&B.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&B.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;B.dispatch(Er.removeEffectByTargetId(b)),B.dispatch(Er.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Ae(w,"transform"),R=Ae(w,"duration");R&&typeof R=="number"&&(s=R);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=pl(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=pl(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const D=Ae(w,"enter"),F=Ae(w,"exit");D&&(O.animationManager.nextEnterAnimationName.set(b,D.toString()),s=Tr(D.toString())),F&&(O.animationManager.nextExitAnimationName.set(b+"-off",F.toString()),s=Tr(F.toString()))};if(n){B.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(Er.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(Ee({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const ok=(e,t)=>{ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Vt()})},_K=e=>{const t=e.content.split("/"),r=t[t.length-1];return ok(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},ak=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ke.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Vt,1)},xK="_Choose_Main_cegqk_1",bK="_Choose_item_cegqk_13",SK="_Choose_item_disabled_cegqk_29",Nv={Choose_Main:xK,Choose_item:bK,Choose_item_disabled:SK},wK=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,EK=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,sk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",TK=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,uk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var lk={exports:{}},ck={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -56,7 +56,7 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var rs=$;function EK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TK=typeof Object.is=="function"?Object.is:EK,CK=rs.useState,OK=rs.useEffect,AK=rs.useLayoutEffect,PK=rs.useDebugValue;function kK(e,t){var r=t(),n=CK({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return AK(function(){i.value=r,i.getSnapshot=t,Iv(i)&&o({inst:i})},[e,r,t]),OK(function(){return Iv(i)&&o({inst:i}),e(function(){Iv(i)&&o({inst:i})})},[e]),PK(r),r}function Iv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!TK(e,r)}catch{return!0}}function RK(e,t){return t()}var IK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RK:kK;uk.useSyncExternalStore=rs.useSyncExternalStore!==void 0?rs.useSyncExternalStore:IK;sk.exports=uk;var NK=sk.exports,lk={exports:{}},ck={};/** + */var is=$;function CK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OK=typeof Object.is=="function"?Object.is:CK,AK=is.useState,PK=is.useEffect,kK=is.useLayoutEffect,RK=is.useDebugValue;function IK(e,t){var r=t(),n=AK({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return kK(function(){i.value=r,i.getSnapshot=t,Lv(i)&&o({inst:i})},[e,r,t]),PK(function(){return Lv(i)&&o({inst:i}),e(function(){Lv(i)&&o({inst:i})})},[e]),RK(r),r}function Lv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!OK(e,r)}catch{return!0}}function NK(e,t){return t()}var LK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NK:IK;ck.useSyncExternalStore=is.useSyncExternalStore!==void 0?is.useSyncExternalStore:LK;lk.exports=ck;var MK=lk.exports,fk={exports:{}},hk={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -64,14 +64,14 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var md=$,LK=NK;function MK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DK=typeof Object.is=="function"?Object.is:MK,FK=LK.useSyncExternalStore,BK=md.useRef,jK=md.useEffect,$K=md.useMemo,UK=md.useDebugValue;ck.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=BK(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=$K(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var p=a.value;if(i(p,d))return f=p}return f=d}if(p=f,DK(c,d))return p;var g=n(d);return i!==void 0&&i(p,g)?p:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=FK(e,o[0],o[1]);return jK(function(){a.hasValue=!0,a.value=s},[s]),UK(s),s};lk.exports=ck;var GK=lk.exports;function zK(e){e()}let fk=zK;const HK=e=>fk=e,VK=()=>fk,DE=Symbol.for("react-redux-context"),FE=typeof globalThis<"u"?globalThis:{};function WK(){var e;if(!$.createContext)return{};const t=(e=FE[DE])!=null?e:FE[DE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const io=WK();function px(e=io){return function(){return $.useContext(e)}}const hk=px(),qK=()=>{throw new Error("uSES not initialized!")};let dk=qK;const XK=e=>{dk=e},YK=(e,t)=>e===t;function KK(e=io){const t=e===io?hk:px(e);return function(n,i={}){const{equalityFn:o=YK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),p=dk(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(p),p}}const Ee=KK();function ZK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var pk={exports:{}},Ye={};/** @license React v16.13.1 + */var yd=$,DK=MK;function FK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BK=typeof Object.is=="function"?Object.is:FK,jK=DK.useSyncExternalStore,$K=yd.useRef,UK=yd.useEffect,GK=yd.useMemo,zK=yd.useDebugValue;hk.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=$K(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=GK(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var p=a.value;if(i(p,d))return f=p}return f=d}if(p=f,BK(c,d))return p;var g=n(d);return i!==void 0&&i(p,g)?p:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=jK(e,o[0],o[1]);return UK(function(){a.hasValue=!0,a.value=s},[s]),zK(s),s};fk.exports=hk;var HK=fk.exports;function VK(e){e()}let dk=VK;const WK=e=>dk=e,qK=()=>dk,BE=Symbol.for("react-redux-context"),jE=typeof globalThis<"u"?globalThis:{};function XK(){var e;if(!$.createContext)return{};const t=(e=jE[BE])!=null?e:jE[BE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const oo=XK();function mx(e=oo){return function(){return $.useContext(e)}}const pk=mx(),YK=()=>{throw new Error("uSES not initialized!")};let vk=YK;const KK=e=>{vk=e},ZK=(e,t)=>e===t;function QK(e=oo){const t=e===oo?pk:mx(e);return function(n,i={}){const{equalityFn:o=ZK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),p=vk(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(p),p}}const ye=QK();function JK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var mk={exports:{}},Ke={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var zt=typeof Symbol=="function"&&Symbol.for,vx=zt?Symbol.for("react.element"):60103,mx=zt?Symbol.for("react.portal"):60106,gd=zt?Symbol.for("react.fragment"):60107,yd=zt?Symbol.for("react.strict_mode"):60108,_d=zt?Symbol.for("react.profiler"):60114,xd=zt?Symbol.for("react.provider"):60109,bd=zt?Symbol.for("react.context"):60110,gx=zt?Symbol.for("react.async_mode"):60111,Sd=zt?Symbol.for("react.concurrent_mode"):60111,wd=zt?Symbol.for("react.forward_ref"):60112,Ed=zt?Symbol.for("react.suspense"):60113,QK=zt?Symbol.for("react.suspense_list"):60120,Td=zt?Symbol.for("react.memo"):60115,Cd=zt?Symbol.for("react.lazy"):60116,JK=zt?Symbol.for("react.block"):60121,eZ=zt?Symbol.for("react.fundamental"):60117,tZ=zt?Symbol.for("react.responder"):60118,rZ=zt?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vx:switch(e=e.type,e){case gx:case Sd:case gd:case _d:case yd:case Ed:return e;default:switch(e=e&&e.$$typeof,e){case bd:case wd:case Cd:case Td:case xd:return e;default:return t}}case mx:return t}}}function vk(e){return Wr(e)===Sd}Ye.AsyncMode=gx;Ye.ConcurrentMode=Sd;Ye.ContextConsumer=bd;Ye.ContextProvider=xd;Ye.Element=vx;Ye.ForwardRef=wd;Ye.Fragment=gd;Ye.Lazy=Cd;Ye.Memo=Td;Ye.Portal=mx;Ye.Profiler=_d;Ye.StrictMode=yd;Ye.Suspense=Ed;Ye.isAsyncMode=function(e){return vk(e)||Wr(e)===gx};Ye.isConcurrentMode=vk;Ye.isContextConsumer=function(e){return Wr(e)===bd};Ye.isContextProvider=function(e){return Wr(e)===xd};Ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vx};Ye.isForwardRef=function(e){return Wr(e)===wd};Ye.isFragment=function(e){return Wr(e)===gd};Ye.isLazy=function(e){return Wr(e)===Cd};Ye.isMemo=function(e){return Wr(e)===Td};Ye.isPortal=function(e){return Wr(e)===mx};Ye.isProfiler=function(e){return Wr(e)===_d};Ye.isStrictMode=function(e){return Wr(e)===yd};Ye.isSuspense=function(e){return Wr(e)===Ed};Ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gd||e===Sd||e===_d||e===yd||e===Ed||e===QK||typeof e=="object"&&e!==null&&(e.$$typeof===Cd||e.$$typeof===Td||e.$$typeof===xd||e.$$typeof===bd||e.$$typeof===wd||e.$$typeof===eZ||e.$$typeof===tZ||e.$$typeof===rZ||e.$$typeof===JK)};Ye.typeOf=Wr;pk.exports=Ye;var nZ=pk.exports,mk=nZ,iZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gk={};gk[mk.ForwardRef]=iZ;gk[mk.Memo]=oZ;var Ze={};/** + */var zt=typeof Symbol=="function"&&Symbol.for,gx=zt?Symbol.for("react.element"):60103,yx=zt?Symbol.for("react.portal"):60106,_d=zt?Symbol.for("react.fragment"):60107,xd=zt?Symbol.for("react.strict_mode"):60108,bd=zt?Symbol.for("react.profiler"):60114,Sd=zt?Symbol.for("react.provider"):60109,wd=zt?Symbol.for("react.context"):60110,_x=zt?Symbol.for("react.async_mode"):60111,Ed=zt?Symbol.for("react.concurrent_mode"):60111,Td=zt?Symbol.for("react.forward_ref"):60112,Cd=zt?Symbol.for("react.suspense"):60113,eZ=zt?Symbol.for("react.suspense_list"):60120,Od=zt?Symbol.for("react.memo"):60115,Ad=zt?Symbol.for("react.lazy"):60116,tZ=zt?Symbol.for("react.block"):60121,rZ=zt?Symbol.for("react.fundamental"):60117,nZ=zt?Symbol.for("react.responder"):60118,iZ=zt?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gx:switch(e=e.type,e){case _x:case Ed:case _d:case bd:case xd:case Cd:return e;default:switch(e=e&&e.$$typeof,e){case wd:case Td:case Ad:case Od:case Sd:return e;default:return t}}case yx:return t}}}function gk(e){return Wr(e)===Ed}Ke.AsyncMode=_x;Ke.ConcurrentMode=Ed;Ke.ContextConsumer=wd;Ke.ContextProvider=Sd;Ke.Element=gx;Ke.ForwardRef=Td;Ke.Fragment=_d;Ke.Lazy=Ad;Ke.Memo=Od;Ke.Portal=yx;Ke.Profiler=bd;Ke.StrictMode=xd;Ke.Suspense=Cd;Ke.isAsyncMode=function(e){return gk(e)||Wr(e)===_x};Ke.isConcurrentMode=gk;Ke.isContextConsumer=function(e){return Wr(e)===wd};Ke.isContextProvider=function(e){return Wr(e)===Sd};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gx};Ke.isForwardRef=function(e){return Wr(e)===Td};Ke.isFragment=function(e){return Wr(e)===_d};Ke.isLazy=function(e){return Wr(e)===Ad};Ke.isMemo=function(e){return Wr(e)===Od};Ke.isPortal=function(e){return Wr(e)===yx};Ke.isProfiler=function(e){return Wr(e)===bd};Ke.isStrictMode=function(e){return Wr(e)===xd};Ke.isSuspense=function(e){return Wr(e)===Cd};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_d||e===Ed||e===bd||e===xd||e===Cd||e===eZ||typeof e=="object"&&e!==null&&(e.$$typeof===Ad||e.$$typeof===Od||e.$$typeof===Sd||e.$$typeof===wd||e.$$typeof===Td||e.$$typeof===rZ||e.$$typeof===nZ||e.$$typeof===iZ||e.$$typeof===tZ)};Ke.typeOf=Wr;mk.exports=Ke;var oZ=mk.exports,yk=oZ,aZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_k={};_k[yk.ForwardRef]=aZ;_k[yk.Memo]=sZ;var Qe={};/** * @license React * react-is.production.min.js * @@ -79,62 +79,62 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yx=Symbol.for("react.element"),_x=Symbol.for("react.portal"),Od=Symbol.for("react.fragment"),Ad=Symbol.for("react.strict_mode"),Pd=Symbol.for("react.profiler"),kd=Symbol.for("react.provider"),Rd=Symbol.for("react.context"),aZ=Symbol.for("react.server_context"),Id=Symbol.for("react.forward_ref"),Nd=Symbol.for("react.suspense"),Ld=Symbol.for("react.suspense_list"),Md=Symbol.for("react.memo"),Dd=Symbol.for("react.lazy"),sZ=Symbol.for("react.offscreen"),yk;yk=Symbol.for("react.module.reference");function ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yx:switch(e=e.type,e){case Od:case Pd:case Ad:case Nd:case Ld:return e;default:switch(e=e&&e.$$typeof,e){case aZ:case Rd:case Id:case Dd:case Md:case kd:return e;default:return t}}case _x:return t}}}Ze.ContextConsumer=Rd;Ze.ContextProvider=kd;Ze.Element=yx;Ze.ForwardRef=Id;Ze.Fragment=Od;Ze.Lazy=Dd;Ze.Memo=Md;Ze.Portal=_x;Ze.Profiler=Pd;Ze.StrictMode=Ad;Ze.Suspense=Nd;Ze.SuspenseList=Ld;Ze.isAsyncMode=function(){return!1};Ze.isConcurrentMode=function(){return!1};Ze.isContextConsumer=function(e){return ln(e)===Rd};Ze.isContextProvider=function(e){return ln(e)===kd};Ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yx};Ze.isForwardRef=function(e){return ln(e)===Id};Ze.isFragment=function(e){return ln(e)===Od};Ze.isLazy=function(e){return ln(e)===Dd};Ze.isMemo=function(e){return ln(e)===Md};Ze.isPortal=function(e){return ln(e)===_x};Ze.isProfiler=function(e){return ln(e)===Pd};Ze.isStrictMode=function(e){return ln(e)===Ad};Ze.isSuspense=function(e){return ln(e)===Nd};Ze.isSuspenseList=function(e){return ln(e)===Ld};Ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Od||e===Pd||e===Ad||e===Nd||e===Ld||e===sZ||typeof e=="object"&&e!==null&&(e.$$typeof===Dd||e.$$typeof===Md||e.$$typeof===kd||e.$$typeof===Rd||e.$$typeof===Id||e.$$typeof===yk||e.getModuleId!==void 0)};Ze.typeOf=ln;function uZ(){const e=VK();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const BE={notify(){},get:()=>[]};function lZ(e,t){let r,n=BE,i=0,o=!1;function a(g){c();const v=n.subscribe(g);let m=!1;return()=>{m||(m=!0,v(),f())}}function s(){n.notify()}function u(){p.onStateChange&&p.onStateChange()}function l(){return o}function c(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=uZ())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=BE)}function h(){o||(o=!0,c())}function d(){o&&(o=!1,f())}const p={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:l,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return p}const cZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fZ=cZ?$.useLayoutEffect:$.useEffect;function hZ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){const a=$.useMemo(()=>{const l=lZ(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),s=$.useMemo(()=>e.getState(),[e]);fZ(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const u=t||io;return $.createElement(u.Provider,{value:a},r)}function _k(e=io){const t=e===io?hk:px(e);return function(){const{store:n}=t();return n}}const dZ=_k();function pZ(e=io){const t=e===io?dZ:_k(e);return function(){return t().dispatch}}const lr=pZ();XK(GK.useSyncExternalStoreWithSelector);HK(JA.unstable_batchedUpdates);const _r=()=>{const e=lr();return{playSeEnter:()=>{e(we({key:"uiSe",value:ok}))},playSeClick:()=>{e(we({key:"uiSe",value:ak}))},playSePageChange:()=>{e(we({key:"uiSe",value:bK}))},playSeDialogOpen:()=>{e(we({key:"uiSe",value:wK}))},playSeSwitch:()=>{e(we({key:"uiSe",value:SK}))}}},xx=()=>({playSeEnter:()=>{B.dispatch(we({key:"uiSe",value:ok}))},playSeClick:()=>{B.dispatch(we({key:"uiSe",value:ak}))}});class bx{constructor(t,r){se(this,"text");se(this,"jump");se(this,"jumpToScene");se(this,"showCondition");se(this,"enableCondition");this.text=t,this.jump=r,this.jumpToScene=r.match(/\./)!==null}static parse(t){const r=t.split("->"),n=r.length>1?r[0]:null,o=(r.length>1?r[1]:r[0]).split(":"),a=new bx(o[0],o[1]);if(n!==null){const s=n.match(/\((.*)\)/);s&&(a.showCondition=s[1]);const u=n.match(/\[(.*)\]/);u&&(a.enableCondition=u[1])}return a}}const vZ=e=>{const r=e.content.split("|").map(u=>bx.parse(u)),i=B.getState().userData.optionData.textboxFont===Hn.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:o,playSeClick:a}=xx(),s=u=>u.filter((l,c)=>Ug(l.showCondition)).map((l,c)=>{const f=Ug(l.enableCondition),h=f?Rv.Choose_item:Rv.Choose_item_disabled,d=f?()=>{a(),l.jumpToScene?nk(l.jump,l.text):ik(l.jump),O.gameplay.performController.unmountPerform("choose")}:()=>{};return S.jsx("div",{className:h,style:{fontFamily:i},onClick:d,onMouseEnter:o,children:l.text},l.jump+c)});return Wn.render(S.jsx("div",{className:Rv.Choose_Main,children:s(r)}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{Wn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},mZ=e=>(ne.debug(`脚本内注释${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),gZ=e=>(e.content!==""&&e.content!=="none"?B.dispatch(we({key:"enableFilm",value:e.content})):B.dispatch(we({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),yZ="_Choose_Main_4xkm5_1",_Z="_Choose_item_4xkm5_13",xZ="_glabalDialog_container_inner_4xkm5_28",bZ="_glabalDialog_container_4xkm5_28",SZ="_title_4xkm5_47",wZ="_button_4xkm5_59",da={Choose_Main:yZ,Choose_item:_Z,glabalDialog_container_inner:xZ,glabalDialog_container:bZ,title:SZ,button:wZ},EZ=e=>{const t=e.content.toString().trim(),r=Ae(e,"title"),n=(r===0?"Please Input":r)??"Please Input",i=Ae(e,"buttonText"),o=(i===0?"OK":i)??"OK",s=B.getState().userData.optionData.textboxFont===Hn.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:u,playSeClick:l}=xx(),c=S.jsx("div",{style:{fontFamily:s},className:da.glabalDialog_container,children:S.jsxs("div",{className:da.glabalDialog_container_inner,children:[S.jsx("div",{className:da.title,children:n}),S.jsx("input",{id:"user-input",className:da.Choose_item}),S.jsx("div",{onMouseEnter:u,onClick:()=>{const f=document.getElementById("user-input");f&&B.dispatch(FP({key:t,value:((f==null?void 0:f.value)??"")===""?" ":(f==null?void 0:f.value)??""})),l(),O.gameplay.performController.unmountPerform("userInput"),Ht()},className:da.button,children:o})]})});return Wn.render(S.jsx("div",{className:da.Choose_Main,children:c}),document.getElementById("chooseContainer")),{performName:"userInput",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{Wn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},TZ="_FullScreenPerform_main_7er8a_2",CZ="_FullScreenPerform_element_7er8a_9",OZ="_fullScreen_video_7er8a_17",AZ="_fadeIn_7er8a_74",PZ="_intro_showSoftly_7er8a_1",kZ="_slideIn_7er8a_80",RZ="_typingEffect_7er8a_86",IZ="_typing_7er8a_86",NZ="_blinkCursor_7er8a_1",LZ="_pixelateEffect_7er8a_95",MZ="_pixelateAnimation_7er8a_1",DZ="_revealAnimation_7er8a_101",FZ="_videoContainer_7er8a_115",Rn={FullScreenPerform_main:TZ,FullScreenPerform_element:CZ,fullScreen_video:OZ,fadeIn:AZ,intro_showSoftly:PZ,slideIn:kZ,typingEffect:RZ,typing:IZ,blinkCursor:NZ,pixelateEffect:LZ,pixelateAnimation:MZ,revealAnimation:DZ,videoContainer:FZ},BZ=e=>{const t=`introPerform${Math.random().toString()}`;let r,n="rgba(0, 0, 0, 1)",i="rgba(255, 255, 255, 1)";const o=(b,w=0)=>{switch(b){case"fadeIn":return Rn.fadeIn;case"slideIn":return Rn.slideIn;case"typingEffect":return`${Rn.typingEffect} ${w}`;case"pixelateEffect":return Rn.pixelateEffect;case"revealAnimation":return Rn.revealAnimation;default:return Rn.fadeIn}};let a=Rn.fadeIn,s=1500,u=!1;for(const b of e.args){if(b.key==="backgroundColor"&&(n=b.value||"rgba(0, 0, 0, 1)"),b.key==="fontColor"&&(i=b.value||"rgba(255, 255, 255, 1)"),b.key==="fontSize")switch(b.value){case"small":r="280%";break;case"medium":r="350%";break;case"large":r="420%";break}if(b.key==="animation"&&(a=o(b.value)),b.key==="delayTime"){const w=parseInt(b.value.toString(),10);s=isNaN(w)?s:w}b.key==="hold"&&b.value===!0&&(u=!0)}const l={background:n,color:i,fontSize:r||"350%",width:"100%",height:"100%"},c=e.content.split(/\|/);let h=1e3+s*c.length;const d=u?1e3*60*60*24:1e3+s*c.length;let p=!0,g=setTimeout(()=>{p=!1},h),v=setTimeout(()=>{});const m=()=>{const b=document.getElementById("introContainer");if(h-=s,clearTimeout(g),g=setTimeout(()=>{p=!1},h),b){const w=b.childNodes[0].childNodes[0].childNodes,T=w.length;w.forEach((R,A)=>{const P=Number(R.style.animationDelay.split("ms")[0]);P>0&&(R.style.animationDelay=`${P-s}ms`),A===T-1&&(P===0?(clearTimeout(v),O.gameplay.performController.unmountPerform(t)):(clearTimeout(v),u||(v=setTimeout(()=>{O.gameplay.performController.unmountPerform(t),setTimeout(Ht,0)},h))))})}};O.events.userInteractNext.on(m);const y=c.map((b,w)=>S.jsxs("div",{style:{animationDelay:`${s*w}ms`},className:a,children:[b,b===""?" ":""]},"introtext"+w+Math.random().toString())),_=S.jsx("div",{style:l,children:S.jsx("div",{style:{padding:"3em 4em 3em 4em"},children:y})});Wn.render(_,document.getElementById("introContainer"));const x=document.getElementById("introContainer");return x&&(x.style.display="block"),{performName:t,duration:d,isHoldOn:!1,stopFunction:()=>{const b=document.getElementById("introContainer");b&&(b.style.display="none"),O.events.userInteractNext.off(m)},blockingNext:()=>p,blockingAuto:()=>p,stopTimeout:void 0,goNextWhenOver:!0}},jZ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),$Z=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),B.dispatch(we({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},UZ="modulepreload",GZ=function(e,t){return new URL(e,t).href},jE={},zZ=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=GZ(o,n),o in jE)return;jE[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":UZ,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},xk=new Map;function HZ(e){return e?typeof e=="string"?e:e():null}function bk(e){const t=HZ(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function pye(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);xk.set(bk(e),t)}function VZ(e,t=[]){const r=xk.get(bk(e));if(!r||!(r instanceof Function))throw ne.error(`Can't call the perform named "${e}"`),new Error(`"${e}" don't have the pixiPerform callback.`);return r(...t)}zZ(()=>import("./initRegister-2b32cd56.js"),[],import.meta.url);const WZ=e=>{const t="PixiPerform"+e.content;O.gameplay.performController.performList.forEach(o=>{if(o.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});const r=VZ(e.content),{container:n,tickerKey:i}=r;return{performName:t,duration:0,isHoldOn:!0,stopFunction:()=>{var o,a;ne.warn("现在正在卸载pixi演出"),n.destroy({texture:!0,baseTexture:!0}),(o=O.gameplay.pixiStage)==null||o.effectsContainer.removeChild(n),(a=O.gameplay.pixiStage)==null||a.removeAnimation(i)},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},qZ=e=>{ne.debug("play SE");let t="effect-sound";O.gameplay.performController.unmountPerform(t,!0);let r=e.content,n=!1;Ae(e,"id")&&(t=`effect-sound-${Ae(e,"id")}`,O.gameplay.performController.unmountPerform(t,!0),n=!0);let i=!1;return{performName:"none",blockingAuto(){return!1},blockingNext(){return!1},isHoldOn:!1,stopFunction(){},stopTimeout:void 0,duration:1e3*60*60,arrangePerformPromise:new Promise(o=>{setTimeout(()=>{var d;const a=Ae(e,"volume");let s=document.createElement("audio");s.src=r,n&&(s.loop=!0);const u=B.getState().userData,l=u.optionData.volumeMain,c=typeof a=="number"&&a>=0&&a<=100?a:100,f=l*.01*(((d=u.optionData)==null?void 0:d.seVolume)??100)*.01*c*.01;s.volume=f,s.currentTime=0;const h={performName:t,duration:1e3*60*60,isHoldOn:n,skipNextCollect:!0,stopFunction:()=>{s.oncanplay=()=>{},s.pause()},blockingNext:()=>!1,blockingAuto:()=>n?!1:!i,stopTimeout:void 0};o(h),s.oncanplay=()=>{s==null||s.play()},s.onended=()=>{for(const p of O.gameplay.performController.performList)p.performName===t&&(i=!0,p.stopFunction(),O.gameplay.performController.unmountPerform(p.performName))}},1)})}},XZ=e=>{const t=B.getState().userData,r=t.optionData.volumeMain,n=r*.01*t.optionData.vocalVolume*.01,i=r*.01*t.optionData.bgmVolume*.01,o=Ix();let a=Ae(e,"skipOff"),s=!1;a&&(s=!0),Wn.render(S.jsx("div",{className:Rn.videoContainer,children:S.jsx("video",{className:Rn.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer"));let u=!1;return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>s,blockingAuto:()=>!0,stopTimeout:void 0,arrangePerformPromise:new Promise(l=>{setTimeout(()=>{let c=document.getElementById("playVideoElement");if(c!==null){c.currentTime=0,c.volume=i;const f=()=>{for(const p of O.gameplay.performController.performList)p.performName===o&&(u=!0,p.stopFunction(),O.gameplay.performController.unmountPerform(p.performName),Ht())},h=()=>{f()};O.events.fullscreenDbClick.on(h);const d={performName:o,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{O.events.fullscreenDbClick.off(h),c.oncanplay=()=>{};const p=document.getElementById("currentBgm");p&&(p.volume=i.toString());const g=document.getElementById("currentVocal");p&&(g.volume=n.toString()),Wn.render(S.jsx("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>s,blockingAuto:()=>!u,stopTimeout:void 0,goNextWhenOver:!0};l(d),c.oncanplay=()=>{const v=document.getElementById("currentBgm");v&&(v.volume=0 .toString());const m=document.getElementById("currentVocal");v&&(m.volume=0 .toString()),c==null||c.play()},c.onended=()=>{f()}}},1)})}},YZ=e=>{B.getState().stage.currentDialogKey;const t=e.content,r=Tr(t),n=(Ae(e,"target")??"default_id").toString(),i=`${n}-${t}-${r}`;let o;return setTimeout(()=>{var s,u;(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n);const a=fh(t,n,r);a&&(ne.debug(`动画${t}作用在${n}`,r),(u=O.gameplay.pixiStage)==null||u.registerAnimation(a,i,n))},0),o=()=>{setTimeout(()=>{var a;B.getState().stage.currentDialogKey,(a=O.gameplay.pixiStage)==null||a.removeAnimationWithSetEffects(i)},0)},{performName:i,duration:r,isHoldOn:!1,stopFunction:o,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function KZ(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0,r.pixiContainer.blur=0)}function i(){r&&(r.pixiContainer.alpha=1,r.pixiContainer.blur=5)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,l=t/u*a,c=1/l,f=5/l;s.alpha<1&&(s.alpha+=c),s.blur<5&&(s.blur+=f)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const ZZ=[{name:"universalSoftIn",animationGenerateFunc:E2},{name:"universalSoftOff",animationGenerateFunc:T2},{name:"testblur",animationGenerateFunc:KZ}],QZ=e=>{var s,u;B.getState().stage.currentDialogKey;const t=e.content,r=Ae(e,"duration")??0,n=Ae(e,"target")??0,i=`${n}-${t}-${r}`,o=JZ(t);let a=()=>{};if(o){ne.debug(`动画${t}作用在${n}`,r);const l=o(n,r);(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n),(u=O.gameplay.pixiStage)==null||u.registerAnimation(l,i,n),a=()=>{var c;B.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(i)}}return{performName:i,duration:r,isHoldOn:!1,stopFunction:a,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function JZ(e){const t=ZZ.find(r=>r.name===e);return ne.debug("装载动画",t),t?t.animationGenerateFunc:null}const eQ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),tQ=e=>{B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;try{n=JSON.parse(r)}catch{n=[]}const i={name:t,effects:n};O.animationManager.addAnimation(i);const o=Tr(t),a=Ae(e,"target")??0,s=`${a}-${t}-${o}`;let u=()=>{};return setTimeout(()=>{var c,f;(c=O.gameplay.pixiStage)==null||c.stopPresetAnimationOnTarget(a);const l=fh(t,a,o);l&&(ne.debug(`动画${t}作用在${a}`,o),(f=O.gameplay.pixiStage)==null||f.registerAnimation(l,s,a))},0),u=()=>{setTimeout(()=>{var l;B.getState().stage.currentDialogKey,(l=O.gameplay.pixiStage)==null||l.removeAnimationWithSetEffects(s)},0)},{performName:s,duration:o,isHoldOn:!1,stopFunction:u,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function rQ(e){return e.content==="hide"?B.dispatch(we({key:"isDisableTextbox",value:!0})):B.dispatch(we({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const nQ=e=>{B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;const i=Ae(e,"duration"),o=Ae(e,"target")??0;try{const c=JSON.parse(r);n=hl(o,c,i)}catch{n=[]}const a={name:t,effects:n};O.animationManager.addAnimation(a);const s=oQ(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(o);const c=iQ(t,o,s);c&&(ne.debug(`动画${t}作用在${o}`,s),(h=O.gameplay.pixiStage)==null||h.registerAnimation(c,u,o))},0),l=()=>{setTimeout(()=>{var c;B.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(u)},0)},{performName:u,duration:s,isHoldOn:!1,stopFunction:l,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function iQ(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=At({...sx,duration:0});return Object.assign(a,o),a.duration=o.duration,a});return ne.debug("装载自定义动画",i),rk(i,t,r)}return null}function oQ(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}const aQ=e=>{let t="";for(const r of e.args)r.key==="target"&&(t=r.value.toString());return Ae(e,"enter")&&O.animationManager.nextEnterAnimationName.set(t,Ae(e,"enter").toString()),Ae(e,"exit")&&O.animationManager.nextExitAnimationName.set(t+"-off",Ae(e,"exit").toString()),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},sQ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁BGM:${r},路径:${t},所属系列:${n}`),B.dispatch(t2({name:r,url:t,series:n}));const i=B.getState().userData;return ah.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},uQ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁CG:${r},路径:${t},所属系列:${n}`),B.dispatch(e2({name:r,url:t,series:n}));const i=B.getState().userData;return ah.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},Sx=(e,t=!0)=>{e&&O.backlogManager.makeBacklogEmpty(),t&&O.sceneManager.resetScene(),O.gameplay.performController.removeAllPerform(),O.gameplay.resetGamePlay();const r=At(DP),n=B.getState().stage.GameVar;B.dispatch(Qh(r)),t||B.dispatch(we({key:"GameVar",value:n}))},lQ=e=>{Sx(!0);const t=B.dispatch,r=jr("start.txt",Br.scene);return ti(r).then(n=>{O.sceneManager.sceneData.currentScene=ri(n,"start.txt",r)}),t(Me({component:"showTitle",visibility:!0})),Nx(B.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},cQ=e=>(ik(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),fQ=e=>(O.gameplay.performController.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){ne.warn("pixi 被脚本重新初始化",t.performName);for(let r=0;r{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),ze={audioContext:new AudioContext,source:null,analyser:void 0,dataArray:void 0,audioLevelInterval:setInterval(()=>{},0),blinkTimerID:setTimeout(()=>{},0),maxAudioLevel:0},hQ=e=>(ze.maxAudioLevel=Math.max(e,ze.maxAudioLevel),{OPEN_THRESHOLD:ze.maxAudioLevel*.75,HALF_OPEN_THRESHOLD:ze.maxAudioLevel*.5}),dQ=e=>{let t=!1;function r(){var n;t||e.animationEndTime&&Date.now()>e.animationEndTime||(t=!0,(n=O.gameplay.pixiStage)==null||n.performBlinkAnimation(e.key,e.animationItem,"closed",e.pos),ze.blinkTimerID=setTimeout(()=>{var o;(o=O.gameplay.pixiStage)==null||o.performBlinkAnimation(e.key,e.animationItem,"open",e.pos),t=!1;const i=Math.random()*300+3500;ze.blinkTimerID=setTimeout(r,i)},200))}r()},pQ=(e,t,r)=>{e.getByteFrequencyData(t);let n=0;for(let i=0;i{var h,d;const{audioLevel:t,OPEN_THRESHOLD:r,HALF_OPEN_THRESHOLD:n,currentMouthValue:i,lerpSpeed:o,key:a,animationItem:s,pos:u}=e;let l;t>r?l=1:t>n?l=.5:l=0;const c=i+(l-i)*o;(h=O.gameplay.pixiStage)==null||h.setModelMouthY(a,t);let f;c>.75?f="open":c>.25?f="half_open":f="closed",s!==void 0&&((d=O.gameplay.pixiStage)==null||d.performMouthSyncAnimation(a,s,f,u))};class vQ{constructor(t){se(this,"subject");se(this,"result");se(this,"isEnd",!1);this.subject=t}with(t,r){return!this.isEnd&&this.subject===t&&(this.result=r(),this.isEnd=!0),this}endsWith(t,r){return!this.isEnd&&this.subject===t&&(this.result=r(),this.isEnd=!0),this.evaluate()}default(t){return this.isEnd||(this.result=t()),this.evaluate()}evaluate(){return this.result}}function Fd(e){return new vQ(e)}const mQ=e=>{ne.debug("play vocal");const t="vocal-play",r=Ae(e,"vocal"),n=Ae(e,"volume");let i;i=B.getState().stage;let o="",a="";const s=i.freeFigure,u=i.figureAssociatedAnimation;let l=0,c=0;const f=1;let h=document.getElementById("currentVocal");O.gameplay.performController.unmountPerform("vocal-play",!0),h!==null&&(h.currentTime=0,h.pause());for(const p of e.args)p.value===!0&&Fd(p.key).with("left",()=>{o="left"}).with("right",()=>{o="right"}).endsWith("center",()=>{o="center"}),p.key==="figureId"&&(a=`${p.value.toString()}`);B.dispatch(we({key:"playVocal",value:r})),B.dispatch(we({key:"vocal",value:r}));let d=!1;return{arrangePerformPromise:new Promise(p=>{setTimeout(()=>{let g=document.getElementById("currentVocal");if(typeof n=="number"&&n>=0&&n<=100?B.dispatch(we({key:"vocalVolume",value:n})):B.dispatch(we({key:"vocalVolume",value:100})),g!==null){g.currentTime=0;const v={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{g.oncanplay=()=>{},clearInterval(ze.audioLevelInterval),g.pause(),a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);$E({audioLevel:0,OPEN_THRESHOLD:1,HALF_OPEN_THRESHOLD:1,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o}),clearTimeout(ze.blinkTimerID)},blockingNext:()=>!1,blockingAuto:()=>!d,skipNextCollect:!0,stopTimeout:void 0};O.gameplay.performController.arrangeNewPerform(v,e,!1),g.oncanplay=()=>{a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);if(m){const y=s.find(b=>b.key===a);if(y&&(o=y.basePosition),!ze.audioContext){let b;b=new AudioContext,ze.analyser=b.createAnalyser(),ze.analyser.fftSize=256,ze.dataArray=new Uint8Array(ze.analyser.frequencyBinCount)}ze.analyser||(ze.analyser=ze.audioContext.createAnalyser(),ze.analyser.fftSize=256),l=ze.analyser.frequencyBinCount,ze.dataArray=new Uint8Array(l);let _=document.getElementById("currentVocal");ze.source||(ze.source=ze.audioContext.createMediaElementSource(_),ze.source.connect(ze.analyser)),ze.analyser.connect(ze.audioContext.destination),ze.audioLevelInterval=setInterval(()=>{const b=pQ(ze.analyser,ze.dataArray,l),{OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T}=hQ(b);$E({audioLevel:b,OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o})},50);let x;x=Date.now()+1e4,dQ({key:a,animationItem:m,pos:o,animationEndTime:x}),setTimeout(()=>{clearTimeout(ze.blinkTimerID)},1e4)}g==null||g.play()},g.onended=()=>{for(const m of O.gameplay.performController.performList)m.performName===t&&(d=!0,m.stopFunction(),O.gameplay.performController.unmountPerform(m.performName))}}},1)})}};function wx(e){switch(e){case vr.slow:return 80;case vr.normal:return 35;case vr.fast:return 3}}function Sk(e){switch(e){case vr.slow:return 800;case vr.normal:return 350;case vr.fast:return 200}}const gQ=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.dispatch;let i=Math.random().toString(),o=e.content;const a=Ae(e,"concat"),s=Ae(e,"notend"),u=Ae(e,"speaker"),l=Ae(e,"clear"),c=Ae(e,"vocal");a?(i=t.currentDialogKey,o=t.showText+o,n(we({key:"currentConcatDialogPrev",value:t.showText}))):n(we({key:"currentConcatDialogPrev",value:""})),n(we({key:"showText",value:o})),n(we({key:"vocal",value:""})),r.optionData.voiceInterruption===cl.no&&c===null||(n(we({key:"playVocal",value:""})),O.gameplay.performController.unmountPerform("vocal-play",!0)),n(we({key:"currentDialogKey",value:i}));const h=wx(r.optionData.textSpeed)*e.content.length;for(const v of e.args)if(v.key==="fontSize")switch(v.value){case"default":n(we({key:"showTextSize",value:-1}));break;case"small":n(we({key:"showTextSize",value:_n.small}));break;case"medium":n(we({key:"showTextSize",value:_n.medium}));break;case"large":n(we({key:"showTextSize",value:_n.large}));break}let d=t.showName;u!==null&&(d=u),l&&(d=""),n(we({key:"showName",value:d})),c&&mQ(e);const p=Ix();let g=750-r.optionData.textSpeed*250;return s&&(g=0),{performName:p,duration:h+g,isHoldOn:!1,stopFunction:()=>{O.events.textSettle.emit()},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:s}};var Ex={},pl={document:{}},wk=Object.prototype.hasOwnProperty,Ek=function(e){return Bd(e)?e.toLowerCase():e},ju=Array.isArray,yQ=function(e){return Bd(e)?e.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):e};"I".toLowerCase()!=="i"&&(Ek=yQ);var _Q,Tx=Object.prototype.toString,Tk=Object.getPrototypeOf,Nv=kk("ng");pl.angular||(pl.angular={});pl.document.documentMode;function xQ(e){if(e==null||Ax(e))return!1;if(ju(e)||Bd(e)||_Q)return!0;var t="length"in Object(e)&&e.length;return Ox(t)&&(t>=0&&(t-1 in e||e instanceof Array)||typeof e.item=="function")}function dt(e,t,r){var n,i;if(e)if(Ak(e))for(n in e)n!=="prototype"&&n!=="length"&&n!=="name"&&e.hasOwnProperty(n)&&t.call(r,e[n],n,e);else if(ju(e)||xQ(e)){var o=typeof e!="object";for(n=0,i=e.length;n"u"}function Ra(e){return typeof e<"u"}function Ck(e){return e!==null&&typeof e=="object"}function Ok(e){return e!==null&&typeof e=="object"&&!Tk(e)}function Bd(e){return typeof e=="string"}function Ox(e){return typeof e=="number"}function Ak(e){return typeof e=="function"}function Ax(e){return e&&e.window===e}function Pk(e){return e&&e.$evalAsync&&e.$watch}var wQ=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;function EQ(e){return e&&Ox(e.length)&&wQ.test(Tx.call(e))}function TQ(e){return Tx.call(e)==="[object ArrayBuffer]"}function CQ(e,t){var r=[],n=[];if(t){if(EQ(t)||TQ(t))throw Nv("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Nv("cpi","Can't copy! Source and destination are identical.");return ju(t)?t.length=0:dt(t,function(s,u){u!=="$$hashKey"&&delete t[u]}),r.push(e),n.push(t),i(e,t)}return o(e);function i(s,u){var l=u.$$hashKey,c;if(ju(s))for(var f=0,h=s.length;f=0)return"...";t.push(n)}return n})}function UE(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):SQ(e)?"undefined":typeof e!="string"?kQ(e):e}function kk(e,t){return t=t||Error,function(){var r=2,n=arguments,i=n[0],o="["+(e?e+":":"")+i+"] ",a=n[1],s,u;for(o+=a.replace(/\{\d+\}/g,function(l){var c=+l.slice(1,-1),f=c+r;return f <= >= && || ! = |".split(" "),function(e){yf[e]=!0});var RQ={n:` -`,f:"\f",r:"\r",t:" ",v:"\v","'":"'",'"':'"'},jg=function(t){this.options=t};jg.prototype={constructor:jg,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&r<=56319&&n>=56320&&n<=57343?e+t:e},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,r){r=r||this.index;var n=Ra(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,r)+"]":" "+r;throw Ia("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:G.Program,body:e}},expressionStatement:function(){return{type:G.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Lk(e))throw Ia("lval","Trying to assign a value to a non l-value");e={type:G.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:G.ConditionalExpression,test:e,alternate:t,consequent:r}):e},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:G.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:G.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e=this.relational(),t;t=this.expect("==","!=","===","!==");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var e=this.additive(),t;t=this.expect("<",">","<=",">=");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var e=this.multiplicative(),t;t=this.expect("+","-");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var e=this.unary(),t;t=this.expect("*","/","%");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:G.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=CQ(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:G.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)t.text==="("?(e={type:G.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(e={type:G.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?e={type:G.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],r={type:G.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var e=[];if(this.peekToken().text!==")")do e.push(this.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:G.Identifier,name:e.text}},constant:function(){return{type:G.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:G.ArrayExpression,elements:e}},object:function(){var e=[],t;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;t={type:G.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:G.ObjectExpression,properties:e}},throwError:function(e,t){throw Ia("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(this.tokens.length===0)throw Ia("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw Ia("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,r,n){return this.peekAhead(0,e,t,r,n)},peekAhead:function(e,t,r,n,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===r||a===n||a===i||!t&&!r&&!n&&!i)return o}return!1},expect:function(e,t,r,n){var i=this.peek(e,t,r,n);return i?(this.tokens.shift(),i):!1},selfReferential:{this:{type:G.ThisExpression},$locals:{type:G.LocalsExpression}}};function IQ(e,t){return typeof e<"u"?e:t}function Ik(e,t){return typeof e>"u"?t:typeof t>"u"?e:e+t}function NQ(e,t){var r=e(t);if(!r)throw new Error("Filter '"+t+"' is not defined");return!r.$stateful}function Mt(e,t){var r,n,i;switch(e.type){case G.Program:r=!0,dt(e.body,function(o){Mt(o.expression,t),r=r&&o.expression.constant}),e.constant=r;break;case G.Literal:e.constant=!0,e.toWatch=[];break;case G.UnaryExpression:Mt(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case G.BinaryExpression:Mt(e.left,t),Mt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case G.LogicalExpression:Mt(e.left,t),Mt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case G.ConditionalExpression:Mt(e.test,t),Mt(e.alternate,t),Mt(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case G.Identifier:e.constant=!1,e.toWatch=[e];break;case G.MemberExpression:Mt(e.object,t),e.computed&&Mt(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case G.CallExpression:i=e.filter?NQ(t,e.callee.name):!1,r=i,n=[],dt(e.arguments,function(o){Mt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=i?n:[e];break;case G.AssignmentExpression:Mt(e.left,t),Mt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case G.ArrayExpression:r=!0,n=[],dt(e.elements,function(o){Mt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ObjectExpression:r=!0,n=[],dt(e.properties,function(o){Mt(o.value,t),r=r&&o.value.constant&&!o.computed,o.value.constant||n.push.apply(n,o.value.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ThisExpression:e.constant=!1,e.toWatch=[];break;case G.LocalsExpression:e.constant=!1,e.toWatch=[];break}}function Nk(e){if(e.length===1){var t=e[0].expression,r=t.toWatch;return r.length!==1||r[0]!==t?r:void 0}}function Lk(e){return e.type===G.Identifier||e.type===G.MemberExpression}function Mk(e){if(e.body.length===1&&Lk(e.body[0].expression))return{type:G.AssignmentExpression,left:e.body[0].expression,right:{type:G.NGValueParameter},operator:"="}}function Dk(e){return e.body.length===0||e.body.length===1&&(e.body[0].expression.type===G.Literal||e.body[0].expression.type===G.ArrayExpression||e.body[0].expression.type===G.ObjectExpression)}function Fk(e){return e.constant}function Bk(e,t){this.astBuilder=e,this.$filter=t}Bk.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Mt(r,t.$filter);var n="",i;if(this.stage="assign",i=Mk(r)){this.state.computing="assign";var o=this.nextId();this.recurse(i,o),this.return_(o),n="fn.assign="+this.generateFunction("assign","s,v,l")}var a=Nk(r.body);t.stage="inputs",dt(a,function(l,c){var f="fn"+c;t.state[f]={vars:[],body:[],own:{}},t.state.computing=f;var h=t.nextId();t.recurse(l,h),t.return_(h),t.state.inputs.push(f),l.watchId=c}),this.state.computing="fn",this.stage="main",this.recurse(r);var s='"'+this.USE+" "+this.STRICT+`"; -`+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,Rk,IQ,Ik);return this.state=this.stage=void 0,u.ast=r,u.literal=Dk(r),u.constant=Fk(r),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,r=this;return dt(t,function(n){e.push("var "+n+"="+r.generateFunction(n,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return dt(this.state.filters,function(r,n){e.push(r+"=$filter("+t.escape(n)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,n,i,o){var a,s,u=this,l,c,f;if(n=n||Cx,!o&&Ra(e.watchId)){t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.unsafeComputedMember("i",e.watchId)),this.lazyRecurse(e,t,r,n,i,!0));return}switch(e.type){case G.Program:dt(e.body,function(d,p){u.recurse(d.expression,void 0,void 0,function(g){s=g}),p!==e.body.length-1?u.current().body.push(s,";"):u.return_(s)});break;case G.Literal:c=this.escape(e.value),this.assign(t,c),n(t||c);break;case G.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(d){s=d}),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),n(c);break;case G.BinaryExpression:this.recurse(e.left,void 0,void 0,function(d){a=d}),this.recurse(e.right,void 0,void 0,function(d){s=d}),e.operator==="+"?c=this.plus(a,s):e.operator==="-"?c=this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):c="("+a+")"+e.operator+"("+s+")",this.assign(t,c),n(c);break;case G.LogicalExpression:t=t||this.nextId(),u.recurse(e.left,t),u.if_(e.operator==="&&"?t:u.not(t),u.lazyRecurse(e.right,t)),n(t);break;case G.ConditionalExpression:t=t||this.nextId(),u.recurse(e.test,t),u.if_(t,u.lazyRecurse(e.alternate,t),u.lazyRecurse(e.consequent,t)),n(t);break;case G.Identifier:t=t||this.nextId();var h=u.current().inAssignment;r&&(h?r.context=this.assign(this.nextId(),"s"):r.context=u.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),u.if_(u.stage==="inputs"||u.not(u.getHasOwnProperty("l",e.name)),function(){u.if_(u.stage==="inputs"||u.and_("s",u.or_(u.isNull(u.nonComputedMember("s",e.name)),u.hasOwnProperty_("s",e.name))),function(){i&&i!==1&&u.if_(u.isNull(u.nonComputedMember("s",e.name)),u.lazyAssign(u.nonComputedMember("s",e.name),"{}")),u.assign(t,u.nonComputedMember("s",e.name))})},t&&u.lazyAssign(t,u.nonComputedMember("l",e.name))),n(t);break;case G.MemberExpression:a=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),u.recurse(e.object,a,void 0,function(){var d=null,p=u.current().inAssignment;e.computed?(s=u.nextId(),p||u.state.computing==="assign"?d=u.unsafeComputedMember(a,s):d=u.computedMember(a,s)):(p||u.state.computing==="assign"?d=u.unsafeNonComputedMember(a,e.property.name):d=u.nonComputedMember(a,e.property.name),s=e.property.name),e.computed&&e.property.type===G.Literal&&u.recurse(e.property,s),u.if_(u.and_(u.notNull(a),u.or_(u.isNull(d),u.hasOwnProperty_(a,s,e.computed))),function(){e.computed?(e.property.type!==G.Literal&&u.recurse(e.property,s),i&&i!==1&&u.if_(u.not(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!0,r.name=s)):(i&&i!==1&&u.if_(u.isNull(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!1,r.name=e.property.name))},function(){u.assign(t,"undefined")}),n(t)},!!i);break;case G.CallExpression:t=t||this.nextId(),e.filter?(s=u.filter(e.callee.name),l=[],dt(e.arguments,function(d){var p=u.nextId();u.recurse(d,p),l.push(p)}),c=s+".call("+s+","+l.join(",")+")",u.assign(t,c),n(t)):(s=u.nextId(),a={},l=[],u.recurse(e.callee,s,a,function(){u.if_(u.notNull(s),function(){if(dt(e.arguments,function(p){u.recurse(p,e.constant?void 0:u.nextId(),void 0,function(g){l.push(g)})}),a.name){var d=u.member(a.context,a.name,a.computed);c="("+d+" === null ? null : "+u.unsafeMember(a.context,a.name,a.computed)+".call("+[a.context].concat(l).join(",")+"))"}else c=s+"("+l.join(",")+")";u.assign(t,c)},function(){u.assign(t,"undefined")}),n(t)}));break;case G.AssignmentExpression:s=this.nextId(),a={},u.current().inAssignment=!0,this.recurse(e.left,void 0,a,function(){u.if_(u.and_(u.notNull(a.context),u.or_(u.hasOwnProperty_(a.context,a.name),u.isNull(u.member(a.context,a.name,a.computed)))),function(){u.recurse(e.right,s),c=u.member(a.context,a.name,a.computed)+e.operator+s,u.assign(t,c),n(t||c)}),u.current().inAssignment=!1,u.recurse(e.right,s),u.current().inAssignment=!0},1),u.current().inAssignment=!1;break;case G.ArrayExpression:l=[],dt(e.elements,function(d){u.recurse(d,e.constant?void 0:u.nextId(),void 0,function(p){l.push(p)})}),c="["+l.join(",")+"]",this.assign(t,c),n(t||c);break;case G.ObjectExpression:l=[],f=!1,dt(e.properties,function(d){d.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),dt(e.properties,function(d){d.computed?(a=u.nextId(),u.recurse(d.key,a)):a=d.key.type===G.Identifier?d.key.name:""+d.key.value,s=u.nextId(),u.recurse(d.value,s),u.assign(u.unsafeMember(t,a,d.computed),s)})):(dt(e.properties,function(d){u.recurse(d.value,e.constant?void 0:u.nextId(),void 0,function(p){l.push(u.escape(d.key.type===G.Identifier?d.key.name:""+d.key.value)+":"+p)})}),c="{"+l.join(",")+"}",this.assign(t,c)),n(t||c);break;case G.ThisExpression:this.assign(t,"s"),n(t||"s");break;case G.LocalsExpression:this.assign(t,"l"),n(t||"l");break;case G.NGValueParameter:this.assign(t,"v"),n(t||"v");break}},getHasOwnProperty:function(e,t){var r=e+"."+t,n=this.current().own;return n.hasOwnProperty(r)||(n[r]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[r]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,r){if(e===!0)t();else{var n=this.current().body;n.push("if(",e,"){"),t(),n.push("}"),r&&(n.push("else{"),r(),n.push("}"))}},or_:function(e,t){return"("+e+") || ("+t+")"},hasOwnProperty_:function(e,t,r){return r?"(Object.prototype.hasOwnProperty.call("+e+","+t+"))":"(Object.prototype.hasOwnProperty.call("+e+",'"+t+"'))"},and_:function(e,t){return"("+e+") && ("+t+")"},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var r=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,n=/[^$_a-zA-Z0-9]/g,i="";return r.test(t)?i=e+"."+t:(t=t.replace(n,this.stringEscapeFn),i=e+'["'+t+'"]'),i},unsafeComputedMember:function(e,t){return e+"["+t+"]"},unsafeNonComputedMember:function(e,t){return this.nonComputedMember(e,t)},computedMember:function(e,t){return this.state.computing==="assign"?this.unsafeComputedMember(e,t):"("+e+".hasOwnProperty("+t+") ? "+e+"["+t+"] : null)"},unsafeMember:function(e,t,r){return r?this.unsafeComputedMember(e,t):this.unsafeNonComputedMember(e,t)},member:function(e,t,r){return r?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,r,n,i,o){var a=this;return function(){a.recurse(e,t,r,n,i,o)}},lazyAssign:function(e,t){var r=this;return function(){r.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(Bd(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(Ox(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(e===null)return"null";if(typeof e>"u")return"undefined";throw Ia("esc","IMPOSSIBLE")},nextId:function(e,t){var r="v"+this.state.nextId++;return e||this.current().vars.push(r+(t?"="+t:"")),r},current:function(){return this.state[this.state.computing]}};function jk(e,t){this.astBuilder=e,this.$filter=t}jk.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);Mt(r,t.$filter);var n,i;(n=Mk(r))&&(i=this.recurse(n));var o=Nk(r.body),a;o&&(a=[],dt(o,function(l,c){var f=t.recurse(l);l.input=f,a.push(f),l.watchId=c}));var s=[];dt(r.body,function(l){s.push(t.recurse(l.expression))});var u=r.body.length===0?Cx:r.body.length===1?s[0]:function(l,c){var f;return dt(s,function(h){f=h(l,c)}),f};return i&&(u.assign=function(l,c,f){return i(l,f,c)}),a&&(u.inputs=a),u.ast=r,u.literal=Dk(r),u.constant=Fk(r),u},recurse:function(e,t,r){var n,i,o=this,a;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case G.Literal:return this.value(e.value,t);case G.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case G.BinaryExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.LogicalExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case G.Identifier:return o.identifier(e.name,t,r);case G.MemberExpression:return n=this.recurse(e.object,!1,!!r),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(n,i,t,r):this.nonComputedMember(n,i,t,r);case G.CallExpression:return a=[],dt(e.arguments,function(s){a.push(o.recurse(s))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(s,u,l,c){for(var f=[],h=0;h":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>t(n,i,o,a);return r?{value:s}:s}},"binary<=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)<=t(n,i,o,a);return r?{value:s}:s}},"binary>=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>=t(n,i,o,a);return r?{value:s}:s}},"binary&&":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)&&t(n,i,o,a);return r?{value:s}:s}},"binary||":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)||t(n,i,o,a);return r?{value:s}:s}},"ternary?:":function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):r(i,o,a,s);return n?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,r){return function(n,i,o,a){var s=i&&e in i?i:n;r&&r!==1&&s&&s[e]==null&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s),l,c;return u!=null&&(l=t(i,o,a,s),l=Rk(l),n&&n!==1&&u&&!u[l]&&(u[l]={}),Object.prototype.hasOwnProperty.call(u,l)&&(c=u[l])),r?{context:u,name:l,value:c}:c}},nonComputedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s);n&&n!==1&&u&&u[t]==null&&(u[t]={});var l=void 0;return u!=null&&Object.prototype.hasOwnProperty.call(u,t)&&(l=u[t]),r?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(r,n,i,o){return o?o[t]:e(r,n,i)}}};var $g=function(t,r,n){this.lexer=t,this.$filter=r,this.options=n,this.ast=new G(t,n),this.astCompiler=n.csp?new jk(this.ast,r):new Bk(this.ast,r)};$g.prototype={constructor:$g,parse:function(e){return this.astCompiler.compile(e)}};Ex.Lexer=jg;Ex.Parser=$g;var $k=Ex,LQ={},MQ=$k.Lexer,DQ=$k.Parser;function $u(e,t){t=t||{};var r;if(typeof e!="string")throw new TypeError("src must be a string, instead saw '"+typeof e+"'");var n={csp:!1,literals:{true:!0,false:!1,null:null,undefined:void 0}},i=new MQ(t),o=new DQ(i,function(s){return LQ[s]},n);return $u.cache?(r=$u.cache[e],r||(r=$u.cache[e]=o.parse(e)),r):o.parse(e)}$u.cache=Object.create(null);var Uk=$u;const FQ=e=>{let t=!1;e.args.forEach(n=>{n.key==="global"&&(t=!0)});let r;if(t?r=mG:r=FP,e.content.match(/=/)){const n=e.content.split(/=/)[0],i=e.content.split(/=/)[1];if(i==="random()")B.dispatch(r({key:n,value:Math.random()}));else if(i.match(/[+\-*\/()]/)){const a=i.split(/([+\-*\/()])/g).map(l=>l.match(/[a-zA-Z]/)?Px(l).toString():l).reduce((l,c)=>l+c,""),u=Uk(a)();B.dispatch(r({key:n,value:u}))}else i.match(/true|false/)?(i.match(/true/)&&B.dispatch(r({key:n,value:!0})),i.match(/false/)&&B.dispatch(r({key:n,value:!1}))):isNaN(Number(i))?B.dispatch(r({key:n,value:i})):B.dispatch(r({key:n,value:Number(i)}));t?(ne.debug("设置全局变量:",{key:n,value:B.getState().userData.globalGameVar[n]}),Uu()):ne.debug("设置变量:",{key:n,value:B.getState().stage.GameVar[n]})}return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function Px(e){let t=0;return B.getState().stage.GameVar.hasOwnProperty(e)?t=B.getState().stage.GameVar[e]:B.getState().userData.globalGameVar.hasOwnProperty(e)&&(t=B.getState().userData.globalGameVar[e]),t}const BQ=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.dispatch,i={stageGameVar:t.GameVar,globalGameVar:r.globalGameVar};n(we({key:"showText",value:JSON.stringify(i)})),n(we({key:"showName",value:"展示变量"})),ne.debug("展示变量:",i),setTimeout(()=>{O.events.textSettle.emit()},0);const o=Ix(),a=750-r.optionData.textSpeed*250;return{performName:o,duration:a,isHoldOn:!1,stopFunction:()=>{O.events.textSettle.emit()},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function Fe(e,t,r){return{scriptType:e,scriptFunction:t,...r}}const Gk={};function jQ(e){const t={};for(const[r,n]of Object.entries(e))t[r]=Gk[n.scriptType]={scriptString:r,...n};return t}const $Q=e=>{const{content:t}=e,r=t.split(",");for(const n of r){const i=n.split("->");if(i.length>=2){const o=i[0],a=i[1];B.dispatch(Er.replaceUIlable([o,a]))}}return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},zk=jQ({intro:Fe(ke.intro,BZ),changeBg:Fe(ke.changeBg,vK),changeFigure:Fe(ke.changeFigure,mK),miniAvatar:Fe(ke.miniAvatar,$Z,{next:!0}),changeScene:Fe(ke.changeScene,gK),choose:Fe(ke.choose,vZ),end:Fe(ke.end,lQ),bgm:Fe(ke.bgm,pV,{next:!0}),playVideo:Fe(ke.video,XZ),setComplexAnimation:Fe(ke.setComplexAnimation,QZ),setFilter:Fe(ke.setFilter,eQ),pixiInit:Fe(ke.pixiInit,fQ,{next:!0}),pixiPerform:Fe(ke.pixi,WZ,{next:!0}),label:Fe(ke.label,jZ,{next:!0}),jumpLabel:Fe(ke.jumpLabel,cQ),setVar:Fe(ke.setVar,FQ,{next:!0}),showVars:Fe(ke.showVars,BQ),unlockCg:Fe(ke.unlockCg,uQ,{next:!0}),unlockBgm:Fe(ke.unlockBgm,sQ,{next:!0}),say:Fe(ke.say,gQ),filmMode:Fe(ke.filmMode,gZ,{next:!0}),callScene:Fe(ke.callScene,i7),setTextbox:Fe(ke.setTextbox,rQ),setAnimation:Fe(ke.setAnimation,YZ),playEffect:Fe(ke.playEffect,qZ,{next:!0}),setTempAnimation:Fe(ke.setTempAnimation,tQ),__commment:Fe(ke.comment,mZ,{next:!0}),setTransform:Fe(ke.setTransform,nQ),setTransition:Fe(ke.setTransition,aQ,{next:!0}),getUserInput:Fe(ke.getUserInput,EZ),applyStyle:Fe(ke.applyStyle,$Q,{next:!0})}),Hk=Object.values(zk),UQ=Hk.filter(e=>e.next).map(e=>e.scriptType),kx=new dV(OG,jr,UQ,Hk),ri=(e,t,r)=>{const n=kx.parse(e,t,r);return ne.info(`解析场景:${t},数据为:`,n),n},Rx=e=>{var n;let t=CG;t=(((n=Gk[e.command])==null?void 0:n.scriptFunction)??zk.say.scriptFunction)(e),t.arrangePerformPromise?t.arrangePerformPromise.then(i=>O.gameplay.performController.arrangeNewPerform(i,e)):O.gameplay.performController.arrangeNewPerform(t,e)},GQ=e=>{ti(e.sceneUrl).then(t=>{O.sceneManager.sceneData.currentScene=ri(t,e.sceneName,e.sceneUrl),O.sceneManager.sceneData.currentSentenceId=e.continueLine+1,ne.debug("现在恢复场景,恢复后场景:",O.sceneManager.sceneData.currentScene),Ht()})};function zQ(e){return Uk(e)()}const Ug=e=>{if(e===void 0)return!0;const r=e.split(/([+\-*\/()>=|<=|==)/g).map(n=>n.match(/[a-zA-Z]/)?n.match(/true/)||n.match(/false/)?n:Px(n).toString():n).reduce((n,i)=>n+i,"");return!!zQ(r)},Vk=()=>{if(O.sceneManager.sceneData.currentSentenceId>O.sceneManager.sceneData.currentScene.sentenceList.length-1){if(O.sceneManager.sceneData.sceneStack.length!==0){const l=O.sceneManager.sceneData.sceneStack.pop();l!==void 0&&GQ(l)}return}const e=O.sceneManager.sceneData.currentScene.sentenceList[O.sceneManager.sceneData.currentSentenceId],t=l=>{let c=l;const f=c.match(new RegExp("(?{const d=Px(h.replace(new RegExp("(?{e.content=t(e.content),e.args.forEach(l=>{l.value&&typeof l.value=="string"&&(l.value=t(l.value))})})();let n=!0,i=!1,o="";if(e.args.forEach(l=>{l.key==="when"&&(i=!0,o=l.value.toString())}),i&&(n=Ug(o)),!n){ne.warn("不满足条件,跳过本句!"),O.sceneManager.sceneData.currentSentenceId++,Ht();return}Rx(e);let a=!1;e.args.forEach(l=>{l.key==="next"&&l.value&&(a=!0)});let s=e.command===ke.say;e.args.forEach(l=>{l.key==="notend"&&l.value===!0&&(s=!1)});let u;if(a){O.sceneManager.sceneData.currentSentenceId++,Vk();return}setTimeout(()=>{u=B.getState().stage;const l={currentStageState:u,globalGameVar:B.getState().userData.globalGameVar};ne.debug("本条语句执行结果",l),s&&O.backlogManager.saveCurrentStateToBacklog()},0),O.sceneManager.sceneData.currentSentenceId++},Ht=()=>{if(O.events.userInteractNext.emit(),B.getState().GUI.showTitle)return;let t=!1;if(O.gameplay.performController.performList.forEach(i=>{i.blockingNext()&&(t=!0)}),t){ne.warn("next 被阻塞!");return}let r=!0;if(O.gameplay.performController.performList.forEach(i=>{!i.isHoldOn&&!i.skipNextCollect&&(r=!1)}),r){const i=B.getState().stage,o=At(i);for(let a=0;aMath.random().toString().substring(0,10);class HQ{constructor(){se(this,"performList",[]);se(this,"timeoutList",[])}arrangeNewPerform(t,r,n=!0){if(t.performName!=="none"){if(n){const i={id:t.performName,isHoldOn:t.isHoldOn,script:r};B.dispatch(Er.addPerform(i))}t.stopTimeout=setTimeout(()=>{t.isHoldOn||(this.unmountPerform(t.performName),t.goNextWhenOver&&this.goNextWhenOver())},t.duration),this.performList.push(t)}}unmountPerform(t,r=!1){if(r)for(let n=0;n{r.blockingAuto()&&(t=!0)}),t?setTimeout(this.goNextWhenOver,100):Ht()}}class VQ{constructor(){se(this,"isAuto",!1);se(this,"isFast",!1);se(this,"autoInterval",null);se(this,"fastInterval",null);se(this,"autoTimeout",null);se(this,"pixiStage",null);se(this,"performController",new HQ)}resetGamePlay(){this.performController.timeoutList=[],this.isAuto=!1,this.isFast=!1;const t=this.autoInterval;t!==null&&clearInterval(t),this.autoInterval=null;const r=this.fastInterval;r!==null&&clearInterval(r),this.fastInterval=null;const n=this.autoTimeout;n!==null&&clearInterval(n),this.autoTimeout=null}}function WQ(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}class qQ{constructor(){se(this,"textSettle",xc("text-settle"));se(this,"userInteractNext",xc("__NEXT"));se(this,"fullscreenDbClick",xc("fullscreen-dbclick"));se(this,"styleUpdate",xc("style-update"))}}const Lv=WQ();function xc(e){return{on:(t,r)=>{Lv.on(`${e}-${r??""}`,t)},emit:(t,r)=>{Lv.emit(`${e}-${r??""}`,t)},off:(t,r)=>{Lv.off(`${e}-${r??""}`,t)}}}class XQ{constructor(){se(this,"sceneManager",new EG);se(this,"backlogManager",new wG(this.sceneManager));se(this,"animationManager",new TG);se(this,"gameplay",new VQ);se(this,"gameName","");se(this,"gameKey","");se(this,"events",new qQ)}}const O=new XQ,Je=Wk(()=>{const e=B.getState().userData;no.setItem(O.gameKey,e).then(()=>{ne.info("写入本地存储")})},100),vl=Wk(()=>{no.getItem(O.gameKey).then(e=>{if(!e||!qk(e)){ne.warn("现在重置数据"),Je();return}B.dispatch(J0(e))})},100);function Wk(e,t){let r;function n(...i){clearTimeout(r);let o;return r=setTimeout(()=>{o=e.apply(n,i)},t),o}return n}const Uu=()=>{const e=B.getState().userData;no.setItem(O.gameKey,e).then(()=>{no.getItem(O.gameKey).then(t=>{if(!t){Je();return}B.dispatch(J0(t))}),ne.info("同步本地存储")})};function qk(e){let t=!0;for(const r in kg)e.hasOwnProperty(r)||(t=!1);return t}async function YQ(){const e=B.getState().userData;return await no.setItem(O.gameKey,e)}async function Xk(){const e=await no.getItem(O.gameKey);if(!e||!qk(e)){const t=B.getState().userData;return ne.warn("现在重置数据"),await no.setItem(O.gameKey,t)}else B.dispatch(J0(e))}var Ke=(e=>(e[e.Save=0]="Save",e[e.Load=1]="Load",e[e.Option=2]="Option",e))(Ke||{});const KQ={showBacklog:!1,showStarter:!0,showTitle:!0,showMenuPanel:!1,showTextBox:!0,showControls:!0,controlsVisibility:!0,currentMenuTag:Ke.Option,titleBg:"",titleBgm:"",logoImage:[],showExtra:!1,showGlobalDialog:!1,showPanicOverlay:!1,isEnterGame:!1,isShowLogo:!0},Yk=I0({name:"gui",initialState:KQ,reducers:{setVisibility:(e,t)=>{vl();const{component:r,visibility:n}=t.payload;e[r]=n},setMenuPanelTag:(e,t)=>{vl(),e.currentMenuTag=t.payload},setGuiAsset:(e,t)=>{const{asset:r,value:n}=t.payload;e[r]=n},setLogoImage:(e,t)=>{e.logoImage=[...t.payload]}}}),{setVisibility:Me,setMenuPanelTag:Bo,setGuiAsset:hh,setLogoImage:ZQ}=Yk.actions,QQ=Yk.reducer,B=IF({reducer:{stage:l6,GUI:QQ,userData:bG},middleware:cP({serializableCheck:!1})});let GE;function Nx(e,t=0,r=100){if(ne.info("playing bgm"+e),e===""){GE=setTimeout(()=>{B.dispatch(we({key:"bgm",value:{src:"",enter:0,volume:100}}))},t);const i=B.getState().stage.bgm.src;B.dispatch(we({key:"bgm",value:{src:i,enter:-t,volume:r}}))}else clearTimeout(GE),B.dispatch(we({key:"bgm",value:{src:e,enter:t,volume:r}}));const n=document.getElementById("currentBgm");n.src&&(n==null||n.play())}function Ql(e){const t=document.getElementById("ebg");t&&(t.style.backgroundImage=`url("${e}")`)}const Lx=()=>{ne.warn("清除所有演出");for(let e=0;e{B.getState().stage.PerformList.forEach(t=>{Rx(t.script)})},JQ=e=>{const t=B.dispatch,r=O.backlogManager.getBacklog()[e];ne.debug("读取的backlog数据",r),ti(r.saveScene.sceneUrl).then(i=>{O.sceneManager.sceneData.currentScene=ri(i,r.saveScene.sceneName,r.saveScene.sceneUrl);const o=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const a=ql(o);Xl(a)}),O.sceneManager.sceneData.currentSentenceId=r.saveScene.currentSentenceId,O.sceneManager.sceneData.sceneStack=At(r.saveScene.sceneStack),Lx();for(let i=O.backlogManager.getBacklog().length-1;i>e;i--)O.backlogManager.getBacklog().pop();O.backlogManager.isSaveBacklogNext=!0;const n=At(r.currentStageState);t(Qh(n)),setTimeout(Mx,0),t(Me({component:"showBacklog",visibility:!1})),t(Me({component:"showTextBox",visibility:!0}))},Kk=e=>{const r=B.getState().userData.saveData[e];ne.debug("读取的存档数据",r),Zk(r)};function Zk(e){if(!e){ne.info("暂无存档");return}const t=e;ti(t.sceneData.sceneUrl).then(o=>{O.sceneManager.sceneData.currentScene=ri(o,t.sceneData.sceneName,t.sceneData.sceneUrl);const a=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const s=ql(a);Xl(s)}),O.sceneManager.sceneData.currentSentenceId=t.sceneData.currentSentenceId,O.sceneManager.sceneData.sceneStack=At(t.sceneData.sceneStack),Lx();const r=t.backlog;O.backlogManager.getBacklog().splice(0,O.backlogManager.getBacklog().length);for(const o of r)O.backlogManager.getBacklog().push(o);const n=At(t.nowStageState),i=B.dispatch;i(Qh(n)),setTimeout(Mx,0),i(Me({component:"showTitle",visibility:!1})),i(Me({component:"showMenuPanel",visibility:!1})),Ql(B.getState().stage.bgName)}const Gg=e=>{const t=B.getState().userData,r=Qk(e);ne.debug("存档数据:",r);const n=At(t.saveData);ne.debug("newSaveData:",n),n[e]=r,B.dispatch(vG({key:"saveData",value:[...n]})),ne.debug("存档完成,存档结果:",n),Uu()};function Qk(e){const t=B.getState().stage,r=At(O.backlogManager.getBacklog()),n=document.getElementById("pixiCanvas"),i=document.createElement("canvas"),o=i.getContext("2d");i.width=480,i.height=270,o.drawImage(n,0,0,480,270);const a=i.toDataURL("image/webp",.5);return i.remove(),{nowStageState:At(t),backlog:r,index:e,saveTime:new Date().toLocaleDateString()+" "+new Date().toLocaleTimeString("chinese",{hour12:!1}),sceneData:{currentSentenceId:O.sceneManager.sceneData.currentSentenceId,sceneStack:At(O.sceneManager.sceneData.sceneStack),sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl},previewImage:a}}function eJ(){`${O.gameName}${O.gameKey}`,`${O.gameName}${O.gameKey}`}async function tJ(){const e=Qk(-1),t=At(e);B.dispatch(gG(t)),await YQ()}async function rJ(){return await Xk(),B.getState().userData.quickSaveData!==null}async function nJ(){await Xk();const e=B.getState().userData.quickSaveData;e&&Zk(e)}const iJ=()=>{Sx(!0);const e=jr("start.txt",Br.scene);ti(e).then(t=>{O.sceneManager.sceneData.currentScene=ri(t,"start.txt",e),Ht()}),B.dispatch(Me({component:"showTitle",visibility:!1}))};async function oJ(){if(Ql(B.getState().stage.bgName),await rJ()&&O.sceneManager.sceneData.currentSentenceId===0){await nJ();return}O.sceneManager.sceneData.currentSentenceId===0&&O.sceneManager.sceneData.currentScene.sceneName==="start.txt"?Ht():Mx()}function Dx(e,t){if(e==null)return{};var r=ZK(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var aJ={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const sJ=Nr(aJ);var uJ=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function zE(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(sJ[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(uJ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var lJ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,cJ=/^\s*$/,fJ=Object.create(null);function Jk(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(Jk,"")+"";case"comment":return e+""}}var hJ={parse:function(e,t){t||(t={}),t.components||(t.components=fJ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(lJ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith("");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(cJ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var fJ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,hJ=/^\s*$/,dJ=Object.create(null);function tR(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(tR,"")+"";case"comment":return e+""}}var pJ={parse:function(e,t){t||(t={}),t.components||(t.components=dJ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(fJ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith(")]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(Yn),cb=function(e){rt(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];Yn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(Yn),fb=function(e){rt(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(Yn);kl.push(Kd,fb,sb,cb,lb,oa,ub,ab);var sI={__proto__:null,Resource:Xo,BaseImageResource:Yn,INSTALLED:kl,autoDetectResource:Xd,AbstractMultiResource:Yd,ArrayResource:ab,BufferResource:oa,CanvasResource:sb,CubeResource:ub,ImageResource:Kd,SVGResource:lb,VideoResource:cb,ImageBitmapResource:fb},Fae=function(e){rt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===an.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(oa),xh=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Bt("disposeFramebuffer"),this.multisample=at.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Re(null,{scaleMode:Cr.NEAREST,resolution:1,mipmap:Ir.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Re(new Fae(null,{width:this.width,height:this.height}),{scaleMode:Cr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Ir.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete wr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Re),Rc(t._EMPTY),Rc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Re.from(r)),Rc(t._WHITE),Rc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(ks),so=function(e){rt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||at.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,Kr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,Kr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=Kr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===Kr.CLEAR||r===Kr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(en.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(en.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Pt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=at.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||at.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=Ic[0],i=Ic[1],o=Ic[2],a=Ic[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?nm.copyFrom(o):nm.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),tc=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),mb=function(){function e(t){this.renderer=t,this.emptyRenderer=new tc(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=qn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),fI=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=at.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),Hae=new Ie,yb=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new xh(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Ie,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===qn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=xl.COLOR|xl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new fI(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=at.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(r),i}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(r){this._mipmap!==r&&(this._mipmap=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(r){this._scaleMode!==r&&(this._scaleMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(r){this._wrapMode!==r&&(this._wrapMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(r,n){var i;return r!==void 0&&r!==this.scaleMode&&(this.scaleMode=r,i=!0),n!==void 0&&n!==this.mipmap&&(this.mipmap=n,i=!0),i&&this.dirtyStyleId++,this},t.prototype.setSize=function(r,n,i){return i=i||this.resolution,this.setRealSize(r*i,n*i,i)},t.prototype.setRealSize=function(r,n,i){return this.resolution=i||this.resolution,this.width=Math.round(r)/this.resolution,this.height=Math.round(n)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=hy(this.realWidth)&&hy(this.realHeight)},t.prototype.setResolution=function(r){var n=this.resolution;return n===r?this:(this.resolution=r,this.valid&&(this.width=Math.round(this.width*n)/r,this.height=Math.round(this.height*n)/r,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(r){if(this.resource===r)return this;if(this.resource)throw new Error("Resource can be set only once");return r.bind(this),this.resource=r,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(r){this.emit("error",this,r)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Yr[this.cacheId],delete wr[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(r,n,i){i===void 0&&(i=te.STRICT_TEXTURE_CACHE);var o=typeof r=="string",a=null;if(o)a=r;else{if(!r._pixiId){var s=n&&n.pixiIdPrefix||"pixiid";r._pixiId=s+"_"+ao()}a=r._pixiId}var u=Yr[a];if(o&&i&&!u)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return u||(u=new t(r,n),u.cacheId=a,t.addToCache(u,a)),u},t.fromBuffer=function(r,n,i,o){r=r||new Float32Array(n*i*4);var a=new aa(r,{width:n,height:i}),s=r instanceof Float32Array?fe.FLOAT:fe.UNSIGNED_BYTE;return new t(a,Object.assign({},fue,o||{width:n,height:i,type:s}))},t.addToCache=function(r,n){n&&(r.textureCacheIds.indexOf(n)===-1&&r.textureCacheIds.push(n),Yr[n]&&console.warn("BaseTexture added to the cache with an id ["+n+"] that already had an entry"),Yr[n]=r)},t.removeFromCache=function(r){if(typeof r=="string"){var n=Yr[r];if(n){var i=n.textureCacheIds.indexOf(r);return i>-1&&n.textureCacheIds.splice(i,1),delete Yr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;o0)if(r.resource)this.addResourceAt(r.resource,n);else throw new Error("CubeResource does not support copying of renderTexture.");else r.target=Yi.TEXTURE_CUBE_MAP_POSITIVE_X+n,r.parentTextureArray=this.baseTexture,this.items[n]=r;return r.valid&&!this.valid&&this.resize(r.realWidth,r.realHeight),this.items[n]=r,this},t.prototype.upload=function(r,n,i){for(var o=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(Kn),pb=function(e){nt(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];Kn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(Kn),vb=function(e){nt(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(Kn);Il.push(ep,vb,fb,pb,db,aa,hb,cb);var gI={__proto__:null,Resource:Yo,BaseImageResource:Kn,INSTALLED:Il,autoDetectResource:Qd,AbstractMultiResource:Jd,ArrayResource:cb,BufferResource:aa,CanvasResource:fb,CubeResource:hb,ImageResource:ep,SVGResource:db,VideoResource:pb,ImageBitmapResource:vb},hue=function(e){nt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===sn.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(aa),Sh=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Bt("disposeFramebuffer"),this.multisample=st.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Re(null,{scaleMode:Cr.NEAREST,resolution:1,mipmap:Ir.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Re(new hue(null,{width:this.width,height:this.height}),{scaleMode:Cr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Ir.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete wr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Re),Nc(t._EMPTY),Nc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Re.from(r)),Nc(t._WHITE),Nc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Ms),uo=function(e){nt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,Kr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,Kr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=Kr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===Kr.CLEAR||r===Kr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(tn.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(tn.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Pt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=st.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=Lc[0],i=Lc[1],o=Lc[2],a=Lc[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?am.copyFrom(o):am.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),nc=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),xb=function(){function e(t){this.renderer=t,this.emptyRenderer=new nc(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=Xn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),bI=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=st.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),_ue=new Ie,Sb=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Sh(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Ie,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===Xn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=Sl.COLOR|Sl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new bI(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=st.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=qn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),ou=t}return ou}var Nc;function Wae(){if(!Nc){Nc=Or.MEDIUM;var e=vI();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Nc=t.precision?Or.HIGH:Or.MEDIUM}}return Nc}function rC(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Or.HIGH&&r!==Or.HIGH&&(n=Or.MEDIUM),"precision "+n+` float; -`+e}else if(r!==Or.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var qae={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function mI(e){return qae[e]}var Lc=null,nC={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function gI(e,t){if(!Lc){var r=Object.keys(nC);Lc={};for(var n=0;n=Xn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),su=t}return su}var Mc;function bue(){if(!Mc){Mc=Or.MEDIUM;var e=TI();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Mc=t.precision?Or.HIGH:Or.MEDIUM}}return Mc}function sC(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Or.HIGH&&r!==Or.HIGH&&(n=Or.MEDIUM),"precision "+n+` float; +`+e}else if(r!==Or.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var Sue={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function CI(e){return Sue[e]}var Dc=null,uC={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function OI(e,t){if(!Dc){var r=Object.keys(uC);Dc={};for(var n=0;n0&&(t+=` -else `),r0&&(t+=` +else `),r"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),xI=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),oC=new Pt,aC=[],bb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=aC.pop())!==null&&n!==void 0?n:new Ie);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?oC.copyFrom(a):oC.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&aC.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(xI),Sb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(xI),wb=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Pt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),vo=new Ie,su=new Ie,Eb=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Ie,this.destinationFrame=new Ie,this.viewportFrame=new Ie}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(vo.width=t.frame.width,vo.height=t.frame.height,r=vo),n||(su.x=t.frame.x,su.y=t.frame.y,su.width=r.width,su.height=r.height,n=su),a=o.framebuffer):(s=i.resolution,r||(vo.width=i.screen.width,vo.height=i.screen.height,r=vo),n||(n=vo,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function sse(e,t,r,n,i){r.buffer.update(i)}var use={float:` +`,lC=new Pt,tp=function(){function e(t,r){this._texture=t,this.mapCoord=new Pt,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof r>"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),kI=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),cC=new Pt,fC=[],Tb=function(e){nt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=fC.pop())!==null&&n!==void 0?n:new Ie);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?cC.copyFrom(a):cC.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&fC.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(kI),Cb=function(e){nt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(kI),Ob=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Pt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),mo=new Ie,lu=new Ie,Ab=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Ie,this.destinationFrame=new Ie,this.viewportFrame=new Ie}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(mo.width=t.frame.width,mo.height=t.frame.height,r=mo),n||(lu.x=t.frame.x,lu.y=t.frame.y,lu.width=r.width,lu.height=r.height,n=lu),a=o.framebuffer):(s=i.resolution,r||(mo.width=i.screen.width,mo.height=i.screen.height,r=mo),n||(n=mo,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function Due(e,t,r,n,i){r.buffer.update(i)}var Fue={float:` data[offset] = v; `,vec2:` data[offset] = v[0]; @@ -570,7 +570,7 @@ void main(void) { data[offset + i] = v[i]; } - `},bI={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function SI(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function wI(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function EI(e,t){if(!e.autoManage)return{size:0,syncFunc:sse};for(var r=wI(e.uniforms,t),n=SI(r),i=n.uboElements,o=n.size,a=[` + `},RI={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function II(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function NI(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function LI(e,t){if(!e.autoManage)return{size:0,syncFunc:Due};for(var r=NI(e.uniforms,t),n=II(r),i=n.uboElements,o=n.size,a=[` var v = null; var v2 = null; var cv = null; @@ -578,7 +578,7 @@ void main(void) var gl = renderer.gl var index = 0; var data = buffer.data; - `],s=0;s1){var p=mI(u.data.type),g=Math.max(bI[u.data.type]/16,1),v=p/g,m=(4-v%4)%4;a.push(` + `],s=0;s1){var p=CI(u.data.type),g=Math.max(RI[u.data.type]/16,1),v=p/g,m=(4-v%4)%4;a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -594,7 +594,7 @@ void main(void) offset += `+m+`; } - `)}else{var y=use[u.data.type];a.push(` + `)}else{var y=Fue[u.data.type];a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -602,7 +602,7 @@ void main(void) `)}}return a.push(` renderer.buffer.update(buffer); `),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(` -`))}}var lse=function(){function e(){}return e}(),TI=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function cse(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function xse(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,g,v,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[Z.RGB]=e.R11F_G11F_B10F,p),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(v={},v[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,v),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var Tf=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Ab=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Re,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=xse(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==bl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new Tf(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==bl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&Uo(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Ir.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=xn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Ir.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Cr.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),OI={__proto__:null,FilterSystem:vb,BatchSystem:mb,ContextSystem:gb,FramebufferSystem:yb,GeometrySystem:_b,MaskSystem:xb,ScissorSystem:bb,StencilSystem:Sb,ProjectionSystem:wb,RenderTextureSystem:Eb,ShaderSystem:Tb,StateSystem:Cb,TextureGCSystem:Ob,TextureSystem:Ab},hm=new Pt,AI=function(e){rt(t,e);function t(r,n){r===void 0&&(r=is.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Ie(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(mr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(mr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=Mae(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=so.create(gy({width:o.width,height:o.height},s));return hm.tx=-o.x,hm.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:hm,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=is.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=Qx(r),Gt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(ks),bse=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Sse=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=at.HIGH?this.multisample=at.HIGH:n>=at.MEDIUM?this.multisample=at.MEDIUM:n>=at.LOW?this.multisample=at.LOW:this.multisample=at.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof so?(mr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return mr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){mr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ni.add({name:r,type:Xe.RendererPlugin,ref:n})},t.__plugins={},t}(AI);ni.handleByMap(Xe.RendererPlugin,Pb.__plugins);function PI(e){return Pb.create(e)}var wse=`attribute vec2 aVertexPosition; +`))}}var Bue=function(){function e(){}return e}(),MI=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function jue(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function Yue(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,g,v,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[Z.RGB]=e.R11F_G11F_B10F,p),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(v={},v[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,v),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var Of=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Ib=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Re,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Yue(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==wl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new Of(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==wl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&Go(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Ir.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=bn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Ir.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Cr.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),FI={__proto__:null,FilterSystem:_b,BatchSystem:xb,ContextSystem:bb,FramebufferSystem:Sb,GeometrySystem:wb,MaskSystem:Eb,ScissorSystem:Tb,StencilSystem:Cb,ProjectionSystem:Ob,RenderTextureSystem:Ab,ShaderSystem:Pb,StateSystem:kb,TextureGCSystem:Rb,TextureSystem:Ib},vm=new Pt,BI=function(e){nt(t,e);function t(r,n){r===void 0&&(r=as.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Ie(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(mr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(mr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=cue(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=uo.create(_y({width:o.width,height:o.height},s));return vm.tx=-o.x,vm.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:vm,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=as.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=rb(r),Gt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(Ms),Kue=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Zue=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=st.HIGH?this.multisample=st.HIGH:n>=st.MEDIUM?this.multisample=st.MEDIUM:n>=st.LOW?this.multisample=st.LOW:this.multisample=st.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof uo?(mr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return mr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){mr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ii.add({name:r,type:Ye.RendererPlugin,ref:n})},t.__plugins={},t}(BI);ii.handleByMap(Ye.RendererPlugin,Nb.__plugins);function jI(e){return Nb.create(e)}var Que=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -613,7 +613,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Ese=`attribute vec2 aVertexPosition; +}`,Jue=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -639,7 +639,7 @@ void main(void) gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } -`,kI=wse,kb=Ese,Tse=function(){function e(t){mr("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}return e.prototype.destroy=function(){this.renderer=null},e}(),bh=function(){function e(){this.texArray=null,this.blend=0,this.type=en.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),Sh=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Re._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),p._batchEnabled=l,p.touched=u,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;dthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Re._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),p._batchEnabled=l,p.touched=u,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;d0&&(r+=` else `),n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=Fc+"px",r.style.height=Fc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=lC.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===Pse&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Xe.RendererPlugin,Xe.CanvasRendererPlugin]},e}();/*! + */var WI={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};xt.mixin(WI);var ile=9,jc=100,ole=0,ale=0,pC=2,vC=1,sle=-1e3,ule=-1e3,lle=2,qI=function(){function e(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(rn.tablet||rn.phone)&&this.createTouchHook();var r=document.createElement("div");r.style.width=jc+"px",r.style.height=jc+"px",r.style.position="absolute",r.style.top=ole+"px",r.style.left=ale+"px",r.style.zIndex=pC.toString(),this.div=r,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),e.prototype.createTouchHook=function(){var t=this,r=document.createElement("button");r.style.width=vC+"px",r.style.height=vC+"px",r.style.position="absolute",r.style.top=sle+"px",r.style.left=ule+"px",r.style.zIndex=lle.toString(),r.style.backgroundColor="#FF0000",r.title="select to enable accessibility for this content",r.addEventListener("focus",function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()}),document.body.appendChild(r),this._hookDiv=r},e.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},e.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)===null||t===void 0||t.appendChild(this.div))},e.prototype.deactivate=function(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)===null||t===void 0||t.removeChild(this.div))},e.prototype.updateAccessibleObjects=function(t){if(!(!t.visible||!t.accessibleChildren)){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var r=t.children;if(r)for(var n=0;n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=jc+"px",r.style.height=jc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=pC.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===ile&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},e}();/*! * @pixi/interaction - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/interaction is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var _y=function(){function e(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new Ce,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(e.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),e.prototype.getLocalPosition=function(t,r,n){return t.worldTransform.applyInverse(n||this.global,r)},e.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var r="buttons"in t&&t.buttons;this.buttons=Number.isInteger(r)?r:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},e}();/*! ***************************************************************************** + */var by=function(){function e(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new Ce,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(e.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),e.prototype.getLocalPosition=function(t,r,n){return t.worldTransform.applyInverse(n||this.global,r)},e.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var r="buttons"in t&&t.buttons;this.buttons=Number.isInteger(r)?r:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -703,25 +703,25 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var xy=function(e,t){return xy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},xy(e,t)};function Mse(e,t){xy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var BI=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),Cf=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),Dse=function(){function e(){this._tempPoint=new Ce}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var p=h[d],g=this.recursiveFindHit(t,p,n,i,l);if(g){if(!p.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),jI={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};_t.mixin(jI);var Bc=1,jc={target:null,data:{global:null}},$I=function(e){Mse(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new _y,i.mouse.identifier=Bc,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[Bc]=i.mouse,i.interactionDataPool=[],i.eventData=new BI,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new Dse,i._tempDisplayObject=new ob,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return jc.target=null,jc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(jc,n,null,!0),jc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(jt.system.add(this.tickerUpdate,this,Xn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(jt.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=Bc),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Xe.RendererPlugin,Xe.CanvasRendererPlugin]},t}(ks);/*! +***************************************************************************** */var Sy=function(e,t){return Sy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Sy(e,t)};function cle(e,t){Sy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var XI=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),Af=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),fle=function(){function e(){this._tempPoint=new Ce}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var p=h[d],g=this.recursiveFindHit(t,p,n,i,l);if(g){if(!p.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),YI={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};xt.mixin(YI);var $c=1,Uc={target:null,data:{global:null}},KI=function(e){cle(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new by,i.mouse.identifier=$c,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[$c]=i.mouse,i.interactionDataPool=[],i.eventData=new XI,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new fle,i._tempDisplayObject=new lb,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return Uc.target=null,Uc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(Uc,n,null,!0),Uc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(jt.system.add(this.tickerUpdate,this,Yn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(jt.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=$c),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},t}(Ms);/*! * @pixi/extract - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/extract is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Fse=new Ie,Bse=4,UI=function(){function e(t){this.renderer=t}return e.prototype.image=function(t,r,n){var i=new Image;return i.src=this.base64(t,r,n),i},e.prototype.base64=function(t,r,n){return this.canvas(t).toDataURL(r,n)},e.prototype.canvas=function(t,r){var n=this._rawPixels(t,r),i=n.pixels,o=n.width,a=n.height,s=n.flipY,u=new dy(o,a,1),l=u.context.getImageData(0,0,o,a);if(e.arrayPostDivide(i,l.data),u.context.putImageData(l,0,0),s){var c=new dy(u.width,u.height,1);c.context.scale(1,-1),c.context.drawImage(u.canvas,0,-a),u.destroy(),u=c}return u.canvas},e.prototype.pixels=function(t,r){var n=this._rawPixels(t,r).pixels;return e.arrayPostDivide(n,n),n},e.prototype._rawPixels=function(t,r){var n=this.renderer,i,o=!1,a,s=!1;if(t)if(t instanceof so)a=t;else{var u=n.context.webGLVersion>=2?n.multisample:at.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==at.NONE){var l=so.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=Fse,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(Bse*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n=2?n.multisample:st.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==st.NONE){var l=uo.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=hle,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(dle*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n"u"&&(dm=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),dm&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?hC:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===jse&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=hC:n===Use&&(n=$se);var i=n/100|0;if(i===Gse)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,Uc||(Uc=document.createElement("a")),Uc.href=t;var n=GI(Uc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(vt||(vt={}));function mo(){}function zse(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o"u"&&(mm=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),mm&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?gC:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===ple&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=gC:n===mle&&(n=vle);var i=n/100|0;if(i===gle)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,zc||(zc=document.createElement("a")),zc.href=t;var n=QI(zc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(mt||(mt={}));function go(){}function yle(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Rl[n],v=0;v1?f:d,levelHeight:i>1?h:p,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Rl[n];return l},t}(WI),qI=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===vt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,D=0;D<_;D++)b.push(new Uint8Array(e,z,R)),z+=R}return b.map(function(q){return new Eh(q,{format:x,width:o,height:i,levels:a})})}throw u&iue?new Error("DDSParser does not support uncompressed texture data."):u&oue?new Error("DDSParser does not supported YUV uncompressed texture data."):u&aue?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&rue?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var Ti,ai,lu,mC=[171,75,84,88,32,49,49,187,13,10,26,10],pue=67305985,dn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},wy=64,Ey=(Ti={},Ti[fe.UNSIGNED_BYTE]=1,Ti[fe.UNSIGNED_SHORT]=2,Ti[fe.INT]=4,Ti[fe.UNSIGNED_INT]=4,Ti[fe.FLOAT]=4,Ti[fe.HALF_FLOAT]=8,Ti),KI=(ai={},ai[Z.RGBA]=4,ai[Z.RGB]=3,ai[Z.RG]=2,ai[Z.RED]=1,ai[Z.LUMINANCE]=1,ai[Z.LUMINANCE_ALPHA]=2,ai[Z.ALPHA]=1,ai),ZI=(lu={},lu[fe.UNSIGNED_SHORT_4_4_4_4]=2,lu[fe.UNSIGNED_SHORT_5_5_5_1]=2,lu[fe.UNSIGNED_SHORT_5_6_5]=2,lu);function QI(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!vue(e,n))return null;var i=n.getUint32(dn.ENDIANNESS,!0)===pue,o=n.getUint32(dn.GL_TYPE,i),a=n.getUint32(dn.GL_FORMAT,i),s=n.getUint32(dn.GL_INTERNAL_FORMAT,i),u=n.getUint32(dn.PIXEL_WIDTH,i),l=n.getUint32(dn.PIXEL_HEIGHT,i)||1,c=n.getUint32(dn.PIXEL_DEPTH,i)||1,f=n.getUint32(dn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(dn.NUMBER_OF_FACES,i),d=n.getUint32(dn.NUMBER_OF_MIPMAP_LEVELS,i),p=n.getUint32(dn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,v=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?Ey[o]?b=Ey[o]*KI[a]:b=ZI[o]:b=Rl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?gue(n,p,i):null,T=x*b,R=T,A=u,P=l,D=m,F=y,H=wy+p,re=0;re1||o!==0?A:D,levelHeight:d>1||o!==0?P:F,levelBuffer:new Uint8Array(t,q,R)},q+=R}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,D=A+g-1&~(g-1),F=P+v-1&~(v-1),R=D*F*b}return o!==0?{uncompressed:_.map(function(me){var Q=me[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)),{resource:new oa(Q,{width:me[0].levelWidth,height:me[0].levelHeight}),type:o,format:L?mue(a):a}}),kvData:w}:{compressed:_.map(function(me){return new Eh(null,{format:s,width:u,height:l,levels:d,levelBuffers:me})}),kvData:w}}function vue(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;u0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Nl[n],v=0;v1?f:d,levelHeight:i>1?h:p,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Nl[n];return l},t}(rN),nN=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===mt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,D=0;D<_;D++)b.push(new Uint8Array(e,z,R)),z+=R}return b.map(function(q){return new Ch(q,{format:x,width:o,height:i,levels:a})})}throw u&Nle?new Error("DDSParser does not support uncompressed texture data."):u&Lle?new Error("DDSParser does not supported YUV uncompressed texture data."):u&Mle?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&Rle?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var Oi,si,fu,bC=[171,75,84,88,32,49,49,187,13,10,26,10],zle=67305985,pn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},Ty=64,Cy=(Oi={},Oi[fe.UNSIGNED_BYTE]=1,Oi[fe.UNSIGNED_SHORT]=2,Oi[fe.INT]=4,Oi[fe.UNSIGNED_INT]=4,Oi[fe.FLOAT]=4,Oi[fe.HALF_FLOAT]=8,Oi),aN=(si={},si[Z.RGBA]=4,si[Z.RGB]=3,si[Z.RG]=2,si[Z.RED]=1,si[Z.LUMINANCE]=1,si[Z.LUMINANCE_ALPHA]=2,si[Z.ALPHA]=1,si),sN=(fu={},fu[fe.UNSIGNED_SHORT_4_4_4_4]=2,fu[fe.UNSIGNED_SHORT_5_5_5_1]=2,fu[fe.UNSIGNED_SHORT_5_6_5]=2,fu);function uN(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!Hle(e,n))return null;var i=n.getUint32(pn.ENDIANNESS,!0)===zle,o=n.getUint32(pn.GL_TYPE,i),a=n.getUint32(pn.GL_FORMAT,i),s=n.getUint32(pn.GL_INTERNAL_FORMAT,i),u=n.getUint32(pn.PIXEL_WIDTH,i),l=n.getUint32(pn.PIXEL_HEIGHT,i)||1,c=n.getUint32(pn.PIXEL_DEPTH,i)||1,f=n.getUint32(pn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(pn.NUMBER_OF_FACES,i),d=n.getUint32(pn.NUMBER_OF_MIPMAP_LEVELS,i),p=n.getUint32(pn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,v=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?Cy[o]?b=Cy[o]*aN[a]:b=sN[o]:b=Nl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?Wle(n,p,i):null,T=x*b,R=T,A=u,P=l,D=m,F=y,H=Ty+p,re=0;re1||o!==0?A:D,levelHeight:d>1||o!==0?P:F,levelBuffer:new Uint8Array(t,q,R)},q+=R}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,D=A+g-1&~(g-1),F=P+v-1&~(v-1),R=D*F*b}return o!==0?{uncompressed:_.map(function(me){var Q=me[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)),{resource:new aa(Q,{width:me[0].levelWidth,height:me[0].levelHeight}),type:o,format:L?Vle(a):a}}),kvData:w}:{compressed:_.map(function(me){return new Ch(null,{format:s,width:u,height:l,levels:d,levelBuffers:me})}),kvData:w}}function Hle(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;us&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Gt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengths&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Gt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengthi&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=tb(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=YR(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,p=0,g=0;po&&(v=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,p,v);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?Wd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Xe.RendererPlugin},t}(tc);/*! +`,hN=function(e){fN(t,e);function t(r){var n=e.call(this,r)||this;return n.shader=null,n.properties=null,n.tempMatrix=new Pt,n.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:n.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:n.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:n.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:n.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:fe.UNSIGNED_BYTE,uploadFunction:n.uploadTint,offset:0}],n.shader=xi.from(Yle,Xle,{}),n.state=vo.for2d(),n}return t.prototype.render=function(r){var n=r.children,i=r._maxSize,o=r._batchSize,a=this.renderer,s=n.length;if(s!==0){s>i&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=ob(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=oI(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,p=0,g=0;po&&(v=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,p,v);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?Kd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Ye.RendererPlugin},t}(nc);/*! * @pixi/graphics - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/graphics is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Mn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Mn||(Mn={}));var mi;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(mi||(mi={}));var ls={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},Lb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** + */var Dn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Dn||(Dn={}));var gi;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(gi||(gi={}));var fs={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},Bb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -805,7 +805,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Cy=function(e,t){return Cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Cy(e,t)};function Mb(e,t){Cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function yC(e,t){var r,n;t===void 0&&(t=!1);var i=e.length;if(!(i<6)){for(var o=0,a=0,s=e[i-2],u=e[i-1];a0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){yC(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),p=d*8+(i?4:0)+(o?4:0);if(t.length=p,p!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,v=d*4+(i?2:0)+2,m=v,y=p;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--v]=T,t[--v]=w,o){var R=n-x;t[m++]=w,t[m++]=R,t[--y]=R,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,p=Math.abs(d),g=Math.sqrt(u*u+l*l),v=(15*p*Math.sqrt(g)/Math.PI>>0)+1,m=d/v;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Mn.ROUND?p+=go(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4:p+=2,h.push(b-D*q,w-F*q),h.push(b+D*z,w+F*z));continue}var ge=(-A+_)*(-P+w)-(-A+b)*(-P+x),xe=(-D+T)*(-F+w)-(-D+b)*(-F+R),be=($e*xe-Q*ge)/ee,Ue=(L*ge-me*xe)/ee,He=(be-b)*(be-b)+(Ue-w)*(Ue-w),Qe=b+(be-b)*z,Oe=w+(Ue-w)*z,De=b-(be-b)*q,Ve=w-(Ue-w)*q,Se=Math.min($e*$e+me*me,Q*Q+L*L),ut=ae?z:q,Jt=Se+ut*ut*m,Ne=He<=Jt;Ne?o.join===Mn.BEVEL||He/m>y?(ae?(h.push(Qe,Oe),h.push(b+A*q,w+P*q),h.push(Qe,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(De,Ve),h.push(b-D*z,w-F*z),h.push(De,Ve)),p+=2):o.join===Mn.ROUND?ae?(h.push(Qe,Oe),h.push(b+A*q,w+P*q),p+=go(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+4,h.push(Qe,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(De,Ve),p+=go(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4,h.push(b-D*z,w-F*z),h.push(De,Ve)):(h.push(Qe,Oe),h.push(De,Ve)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Mn.ROUND?ae?p+=go(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+2:p+=go(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+2:o.join===Mn.MITER&&He/m<=y&&(ae?(h.push(De,Ve),h.push(De,Ve)):(h.push(Qe,Oe),h.push(Qe,Oe)),p+=2),h.push(b-D*z,w-F*z),h.push(b+D*q,w+F*q),p+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=v,P*=v,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===mi.ROUND?p+=go(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===mi.SQUARE&&(p+=_C(b,w,A,P,z,q,!1,h)));for(var fr=t.indices,An=ls.epsilon*ls.epsilon,le=g;leh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=ls._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/Al)*40),h=c/(f*2),d=h*2,p=Math.cos(h),g=Math.sin(h),v=f-1,m=v%1/v,y=0;y<=v;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((p*b+g*w)*o+n,(p*-w+g*b)*o+i)}},e}(),oN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,p=0,g=0,v=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,p=1-f,g=p*p,v=g*p,m=v*t+3*g*f*n+3*p*h*o+d*s,y=v*r+3*g*f*i+3*p*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=ls._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,p=0,g=0;s.push(u,l);for(var v=1,m=0;v<=c;++v)m=v/c,f=1-m,h=f*f,d=h*f,p=m*m,g=p*m,s.push(d*u+3*h*m*t+3*f*p*n+g*o,d*l+3*h*m*r+3*f*p*i+g*a)},e}(),aN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,p=2*Math.sqrt(f+h+d),g=Math.sqrt(f),v=2*f*g,m=2*Math.sqrt(d),y=h/g;return(v*p+g*h*(p-m)+(4*d*f-h*h)*Math.log((2*g+y+p)/(y+m)))/(4*v)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=ls._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),sN=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),yo,Of=(yo={},yo[Rt.POLY]=Db,yo[Rt.CIRC]=Il,yo[Rt.ELIP]=Il,yo[Rt.RECT]=nN,yo[Rt.RREC]=iN,yo),Py=[],wu=[],ky=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),ya=new Ce,uN=function(e){Mb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new Pl,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new ky(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new ky(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=wu.pop(),a||(a=new bh,a.texArray=new Sh),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),v.touched=1,v._batchEnabled=r,v._batchLocation=s,v.wrapMode=xn.REPEAT,a.texArray.elements[a.texArray.count++]=v,s++)),a.size+=d.size,h+=d.size,l=v._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Re._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=Wd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Wu,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Wu,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),aN.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),oN.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=Ay.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,p=u.anticlockwise;this.arc(l,c,f,h,d,p)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=Al:s&&o<=a&&(o+=Al);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),p=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Ie(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new iI(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new rI(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new nI(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){wC(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),p=d*8+(i?4:0)+(o?4:0);if(t.length=p,p!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,v=d*4+(i?2:0)+2,m=v,y=p;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--v]=T,t[--v]=w,o){var R=n-x;t[m++]=w,t[m++]=R,t[--y]=R,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,p=Math.abs(d),g=Math.sqrt(u*u+l*l),v=(15*p*Math.sqrt(g)/Math.PI>>0)+1,m=d/v;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Dn.ROUND?p+=yo(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4:p+=2,h.push(b-D*q,w-F*q),h.push(b+D*z,w+F*z));continue}var ge=(-A+_)*(-P+w)-(-A+b)*(-P+x),be=(-D+T)*(-F+w)-(-D+b)*(-F+R),Se=(Ue*be-Q*ge)/ee,Ge=(L*ge-me*be)/ee,Ve=(Se-b)*(Se-b)+(Ge-w)*(Ge-w),Je=b+(Se-b)*z,Oe=w+(Ge-w)*z,Fe=b-(Se-b)*q,We=w-(Ge-w)*q,we=Math.min(Ue*Ue+me*me,Q*Q+L*L),lt=ae?z:q,er=we+lt*lt*m,Ne=Ve<=er;Ne?o.join===Dn.BEVEL||Ve/m>y?(ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),h.push(Je,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),h.push(b-D*z,w-F*z),h.push(Fe,We)),p+=2):o.join===Dn.ROUND?ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),p+=yo(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+4,h.push(Je,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),p+=yo(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4,h.push(b-D*z,w-F*z),h.push(Fe,We)):(h.push(Je,Oe),h.push(Fe,We)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Dn.ROUND?ae?p+=yo(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+2:p+=yo(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+2:o.join===Dn.MITER&&Ve/m<=y&&(ae?(h.push(Fe,We),h.push(Fe,We)):(h.push(Je,Oe),h.push(Je,Oe)),p+=2),h.push(b-D*z,w-F*z),h.push(b+D*q,w+F*q),p+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=v,P*=v,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===gi.ROUND?p+=yo(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===gi.SQUARE&&(p+=EC(b,w,A,P,z,q,!1,h)));for(var hr=t.indices,Pn=fs.epsilon*fs.epsilon,le=g;leh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=fs._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/kl)*40),h=c/(f*2),d=h*2,p=Math.cos(h),g=Math.sin(h),v=f-1,m=v%1/v,y=0;y<=v;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((p*b+g*w)*o+n,(p*-w+g*b)*o+i)}},e}(),vN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,p=0,g=0,v=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,p=1-f,g=p*p,v=g*p,m=v*t+3*g*f*n+3*p*h*o+d*s,y=v*r+3*g*f*i+3*p*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=fs._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,p=0,g=0;s.push(u,l);for(var v=1,m=0;v<=c;++v)m=v/c,f=1-m,h=f*f,d=h*f,p=m*m,g=p*m,s.push(d*u+3*h*m*t+3*f*p*n+g*o,d*l+3*h*m*r+3*f*p*i+g*a)},e}(),mN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,p=2*Math.sqrt(f+h+d),g=Math.sqrt(f),v=2*f*g,m=2*Math.sqrt(d),y=h/g;return(v*p+g*h*(p-m)+(4*d*f-h*h)*Math.log((2*g+y+p)/(y+m)))/(4*v)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=fs._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),gN=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),_o,Pf=(_o={},_o[Rt.POLY]=$b,_o[Rt.CIRC]=Ll,_o[Rt.ELIP]=Ll,_o[Rt.RECT]=dN,_o[Rt.RREC]=pN,_o),Ry=[],Tu=[],Iy=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),_a=new Ce,yN=function(e){jb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new Rl,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new Iy(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new Iy(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=Tu.pop(),a||(a=new wh,a.texArray=new Eh),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),v.touched=1,v._batchEnabled=r,v._batchLocation=s,v.wrapMode=bn.REPEAT,a.texArray.elements[a.texArray.count++]=v,s++)),a.size+=d.size,h+=d.size,l=v._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Re._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=Kd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Xu,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Xu,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),mN.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),vN.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=ky.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,p=u.anticlockwise;this.arc(l,c,f,h,d,p)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=kl:s&&o<=a&&(o+=kl);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),p=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Ie(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new pI(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new hI(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new dI(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d=o&&cu.x=a&&cu.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||de.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(gr);/*! +***************************************************************************** */var Ny=function(e,t){return Ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ny(e,t)};function ece(e,t){Ny(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var hu=new Ce,tce=new Uint16Array([0,1,2,0,2,3]),$n=function(e){ece(t,e);function t(r){var n=e.call(this)||this;return n._anchor=new Bi(n._onAnchorUpdate,n,r?r.defaultAnchor.x:0,r?r.defaultAnchor.y:0),n._texture=null,n._width=0,n._height=0,n._tint=null,n._tintRGB=null,n.tint=16777215,n.blendMode=ce.NORMAL,n._cachedTint=16777215,n.uvs=null,n.texture=r||de.EMPTY,n.vertexData=new Float32Array(8),n.vertexTrimmedData=null,n._transformID=-1,n._textureID=-1,n._transformTrimmedID=-1,n._textureTrimmedID=-1,n.indices=tce,n.pluginName="batch",n.isSprite=!0,n._roundPixels=te.ROUND_PIXELS,n}return t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Do(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Do(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){var r=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===r._updateID)){this._textureID!==r._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=r._updateID;var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this.vertexData,f=r.trim,h=r.orig,d=this._anchor,p=0,g=0,v=0,m=0;if(f?(g=f.x-d._x*h.width,p=g+f.width,m=f.y-d._y*h.height,v=m+f.height):(g=-d._x*h.width,p=g+h.width,m=-d._y*h.height,v=m+h.height),c[0]=i*g+a*m+u,c[1]=s*m+o*g+l,c[2]=i*p+a*m+u,c[3]=s*m+o*p+l,c[4]=i*p+a*v+u,c[5]=s*v+o*p+l,c[6]=i*g+a*v+u,c[7]=s*v+o*g+l,this._roundPixels)for(var y=te.RESOLUTION,_=0;_=o&&hu.x=a&&hu.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||de.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(gr);/*! * @pixi/text - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -843,8 +843,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Iy=function(e,t){return Iy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Iy(e,t)};function Oue(e,t){Iy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var cs;(function(e){e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(cs||(cs={}));var _m={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:cs.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},Aue=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Yo=function(){function e(t){this.styleID=0,this.reset(),bm(this,t,t)}return e.prototype.clone=function(){var t={};return bm(t,this,_m),new e(t)},e.prototype.reset=function(){bm(this,_m,_m)},Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var r=xm(t);this._dropShadowColor!==r&&(this._dropShadowColor=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){var r=xm(t);this._fill!==r&&(this._fill=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){Pue(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var r=xm(t);this._stroke!==r&&(this._stroke=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),e.prototype.toFontString=function(){var t=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,r=this.fontFamily;Array.isArray(this.fontFamily)||(r=this.fontFamily.split(","));for(var n=r.length-1;n>=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&Aue.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function xC(e){return typeof e=="number"?Qx(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function xm(e){if(Array.isArray(e)){for(var t=0;tp)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wp&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=D}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var F=v===g.length-1;s+=e.addLine(m,!F),d=!1,a="",o=0}else x+o>p&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` -`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&v>m&&(y=(m+v)/2);var _=m+g,x=i.lineHeight*(p+1),b=_;p+1=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&nce.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function TC(e){return typeof e=="number"?rb(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function wm(e){if(Array.isArray(e)){for(var t=0;tp)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wp&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=D}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var F=v===g.length-1;s+=e.addLine(m,!F),d=!1,a="",o=0}else x+o>p&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` +`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&v>m&&(y=(m+v)/2);var _=m+g,x=i.lineHeight*(p+1),b=_;p+10},e}();function Iue(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&jt.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function hN(e,t){return t instanceof Re?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function jue(e,t){if(!(t instanceof Nl))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i0},e}();function sce(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&jt.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function SN(e,t){return t instanceof Re?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function pce(e,t){if(!(t instanceof Ml))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i=o&&fu.x=a&&fu.y=o&&du.x=a&&du.y1?yi.from(Vue,Wue,n):yi.from(bC,Hue,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==xn.CLAMP:l.wrapMode===xn.CLAMP&&(l.wrapMode=xn.REPEAT));var p=d?this.simpleShader:this.shader,g=u.width,v=u.height,m=r._width,y=r._height;qc.set(f.a*g/m,f.b*g/y,f.c*v/m,f.d*v/y,f.tx/m,f.ty/y),qc.invert(),d?qc.prepend(h.mapCoord):(p.uniforms.uMapCoord=h.mapCoord.toArray(!0),p.uniforms.uClampFrame=h.uClampFrame,p.uniforms.uClampOffset=h.uClampOffset),p.uniforms.uTransform=qc.toArray(!0),p.uniforms.uColor=rb(r.tint,r.worldAlpha,p.uniforms.uColor,c),p.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),p.uniforms.uSampler=u,n.shader.bind(p),n.geometry.bind(i),this.state.blendMode=tb(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Xe.RendererPlugin},t}(tc);/*! +`,Yc=new Pt,ON=function(e){CN(t,e);function t(r){var n=e.call(this,r)||this;return r.runners.contextChange.add(n),n.quad=new yb,n.state=vo.for2d(),n}return t.prototype.contextChange=function(){var r=this.renderer,n={globals:r.globalUniforms};this.simpleShader=xi.from(CC,yce,n),this.shader=r.context.webGLVersion>1?xi.from(xce,bce,n):xi.from(CC,_ce,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==bn.CLAMP:l.wrapMode===bn.CLAMP&&(l.wrapMode=bn.REPEAT));var p=d?this.simpleShader:this.shader,g=u.width,v=u.height,m=r._width,y=r._height;Yc.set(f.a*g/m,f.b*g/y,f.c*v/m,f.d*v/y,f.tx/m,f.ty/y),Yc.invert(),d?Yc.prepend(h.mapCoord):(p.uniforms.uMapCoord=h.mapCoord.toArray(!0),p.uniforms.uClampFrame=h.uClampFrame,p.uniforms.uClampOffset=h.uClampOffset),p.uniforms.uTransform=Yc.toArray(!0),p.uniforms.uColor=ab(r.tint,r.worldAlpha,p.uniforms.uColor,c),p.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),p.uniforms.uSampler=u,n.shader.bind(p),n.geometry.bind(i),this.state.blendMode=ob(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Ye.RendererPlugin},t}(nc);/*! * @pixi/mesh - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1021,7 +1021,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var My=function(e,t){return My=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},My(e,t)};function Bb(e,t){My(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var yN=function(){function e(t,r){this.uvBuffer=t,this.uvMatrix=r,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return e.prototype.update=function(t){if(!(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var r=this.uvBuffer.data;(!this.data||this.data.length!==r.length)&&(this.data=new Float32Array(r.length)),this.uvMatrix.multiplyUvs(r,this.data),this._updateID++}},e}(),Sm=new Ce,SC=new Wu,fs=function(e){Bb(t,e);function t(r,n,i,o){o===void 0&&(o=en.TRIANGLES);var a=e.call(this)||this;return a.geometry=r,a.shader=n,a.state=i||po.for2d(),a.drawMode=o,a.start=0,a.size=0,a.uvs=null,a.indices=null,a.vertexData=new Float32Array(1),a.vertexDirty=-1,a._transformID=-1,a._roundPixels=te.ROUND_PIXELS,a.batchUvs=null,a}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},set:function(r){this._geometry!==r&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=r,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"material",{get:function(){return this.shader},set:function(r){this.shader=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(r){this.state.blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(r){this._roundPixels!==r&&(this._transformID=-1),this._roundPixels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(r){this.shader.tint=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(r){this.shader.texture=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){var n=this.geometry.buffers[0].data,i=this.shader;i.batchable&&this.drawMode===en.TRIANGLES&&n.length>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;rb(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(yi),rc=function(e){Bb(t,e);function t(r,n,i){var o=e.call(this)||this,a=new Ct(r),s=new Ct(n,!0),u=new Ct(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Is);/*! +`,ps=function(e){Gb(t,e);function t(r,n){var i=this,o={uSampler:r,alpha:1,uTextureMatrix:Pt.IDENTITY,uColor:new Float32Array([1,1,1,1])};return n=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},n),n.uniforms&&Object.assign(o,n.uniforms),i=e.call(this,n.program||Bs.from(wce,Sce),o)||this,i._colorDirty=!1,i.uvMatrix=new tp(r),i.batchable=n.program===void 0,i.pluginName=n.pluginName,i.tint=n.tint,i.alpha=n.alpha,i}return Object.defineProperty(t.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(r){this.uniforms.uSampler!==r&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!r.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=r,this.uvMatrix.texture=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){r!==this._alpha&&(this._alpha=r,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){r!==this._tint&&(this._tint=r,this._tintRGB=(r>>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;ab(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(xi),ic=function(e){Gb(t,e);function t(r,n,i){var o=e.call(this)||this,a=new Ct(r),s=new Ct(n,!0),u=new Ct(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Fs);/*! * @pixi/text-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1064,7 +1064,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Dy=function(e,t){return Dy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Dy(e,t)};function Yue(e,t){Dy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ll=function(){function e(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return e}(),_N=function(){function e(){}return e.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},e.parse=function(t){var r=t.match(/^[a-z]+\s+.+$/gm),n={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var i in r){var o=r[i].match(/^[a-z]+/gm)[0],a=r[i].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var u in a){var l=a[u].split("="),c=l[0],f=l[1].replace(/"/gm,""),h=parseFloat(f),d=isNaN(h)?f:h;s[c]=d}n[o].push(s)}var p=new Ll;return n.info.forEach(function(g){return p.info.push({face:g.face,size:parseInt(g.size,10)})}),n.common.forEach(function(g){return p.common.push({lineHeight:parseInt(g.lineHeight,10)})}),n.page.forEach(function(g){return p.page.push({id:parseInt(g.id,10),file:g.file})}),n.char.forEach(function(g){return p.char.push({id:parseInt(g.id,10),page:parseInt(g.page,10),x:parseInt(g.x,10),y:parseInt(g.y,10),width:parseInt(g.width,10),height:parseInt(g.height,10),xoffset:parseInt(g.xoffset,10),yoffset:parseInt(g.yoffset,10),xadvance:parseInt(g.xadvance,10)})}),n.kerning.forEach(function(g){return p.kerning.push({first:parseInt(g.first,10),second:parseInt(g.second,10),amount:parseInt(g.amount,10)})}),n.distanceField.forEach(function(g){return p.distanceField.push({distanceRange:parseInt(g.distanceRange,10),fieldType:g.fieldType})}),p},e}(),Th=function(){function e(){}return e.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null},e.parse=function(t){for(var r=new Ll,n=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),a=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),u=t.getElementsByTagName("distanceField"),l=0;l")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Th.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Th.parse(r)},e}(),wm=[_N,Th,xN];function jb(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,v=null,m=null,y=null,g=0,p=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+p>=h){if(p===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),p=0,_=0;continue}Zue(v,m,T,p,g,s,f);var D=Af(T.text);d.char.push({id:D,page:x.length-1,x:p/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(R-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),p+=(P+2*a)*s,p=Math.ceil(p)}if(!(n!=null&&n.skipKerning))for(var b=0,F=c.length;b")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.parse(r)},e}(),Cm=[PN,Oh,kN];function zb(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,v=null,m=null,y=null,g=0,p=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+p>=h){if(p===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),p=0,_=0;continue}Cce(v,m,T,p,g,s,f);var D=kf(T.text);d.char.push({id:D,page:x.length-1,x:p/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(R-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),p+=(P+2*a)*s,p=Math.ceil(p)}if(!(n!=null&&n.skipKerning))for(var b=0,F=c.length;b0&&a.x>h&&(++x,Uo(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),v=Math.max(v,_),m++,a.x=0,a.y+=n.lineHeight,p=null,w=0)}}var F=f[f.length-1];F!=="\r"&&F!==` -`&&(/(?:\s)/.test(F)&&(g=_),u.push(g),v=Math.max(v,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=v-u[T]:this._align==="center"?re=(v-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(v-u[T])/l[T]),H.push(re)}var z=s.length,q={},le=[],$e=this._activePagesMeshData;d.push.apply(d,$e);for(var T=0;T6*be)||L.vertices.length0&&a.x>h&&(++x,Go(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),v=Math.max(v,_),m++,a.x=0,a.y+=n.lineHeight,p=null,w=0)}}var F=f[f.length-1];F!=="\r"&&F!==` +`&&(/(?:\s)/.test(F)&&(g=_),u.push(g),v=Math.max(v,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=v-u[T]:this._align==="center"?re=(v-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(v-u[T])/l[T]),H.push(re)}var z=s.length,q={},le=[],Ue=this._activePagesMeshData;d.push.apply(d,Ue);for(var T=0;T6*Se)||L.vertices.length=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` -`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var Ml=function(e){EN(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=ole(a,r),l=ule(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,Kr.CLEAR);for(var c=1;c=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` +`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var Fl=function(e){LN(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=Lce(a,r),l=Fce(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,Kr.CLEAR);for(var c=1;c>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),p=s*(1-i)-u*o,g=s*(1-i)-u*o,v=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,p,0,0,g,v,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(ve);$y.prototype.grayscale=$y.prototype.greyscale;/*! +`,Gy=function(e){jce(t,e);function t(){var r=this,n={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return r=e.call(this,Lb,$ce,n)||this,r.alpha=1,r}return t.prototype._loadMatrix=function(r,n){n===void 0&&(n=!1);var i=r;n&&(this._multiply(i,this.uniforms.m,r),i=this._colorMatrix(i)),this.uniforms.m=i},t.prototype._multiply=function(r,n,i){return r[0]=n[0]*i[0]+n[1]*i[5]+n[2]*i[10]+n[3]*i[15],r[1]=n[0]*i[1]+n[1]*i[6]+n[2]*i[11]+n[3]*i[16],r[2]=n[0]*i[2]+n[1]*i[7]+n[2]*i[12]+n[3]*i[17],r[3]=n[0]*i[3]+n[1]*i[8]+n[2]*i[13]+n[3]*i[18],r[4]=n[0]*i[4]+n[1]*i[9]+n[2]*i[14]+n[3]*i[19]+n[4],r[5]=n[5]*i[0]+n[6]*i[5]+n[7]*i[10]+n[8]*i[15],r[6]=n[5]*i[1]+n[6]*i[6]+n[7]*i[11]+n[8]*i[16],r[7]=n[5]*i[2]+n[6]*i[7]+n[7]*i[12]+n[8]*i[17],r[8]=n[5]*i[3]+n[6]*i[8]+n[7]*i[13]+n[8]*i[18],r[9]=n[5]*i[4]+n[6]*i[9]+n[7]*i[14]+n[8]*i[19]+n[9],r[10]=n[10]*i[0]+n[11]*i[5]+n[12]*i[10]+n[13]*i[15],r[11]=n[10]*i[1]+n[11]*i[6]+n[12]*i[11]+n[13]*i[16],r[12]=n[10]*i[2]+n[11]*i[7]+n[12]*i[12]+n[13]*i[17],r[13]=n[10]*i[3]+n[11]*i[8]+n[12]*i[13]+n[13]*i[18],r[14]=n[10]*i[4]+n[11]*i[9]+n[12]*i[14]+n[13]*i[19]+n[14],r[15]=n[15]*i[0]+n[16]*i[5]+n[17]*i[10]+n[18]*i[15],r[16]=n[15]*i[1]+n[16]*i[6]+n[17]*i[11]+n[18]*i[16],r[17]=n[15]*i[2]+n[16]*i[7]+n[17]*i[12]+n[18]*i[17],r[18]=n[15]*i[3]+n[16]*i[8]+n[17]*i[13]+n[18]*i[18],r[19]=n[15]*i[4]+n[16]*i[9]+n[17]*i[14]+n[18]*i[19]+n[19],r},t.prototype._colorMatrix=function(r){var n=new Float32Array(r);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},t.prototype.brightness=function(r,n){var i=[r,0,0,0,0,0,r,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.tint=function(r,n){var i=r>>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),p=s*(1-i)-u*o,g=s*(1-i)-u*o,v=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,p,0,0,g,v,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(ve);Gy.prototype.grayscale=Gy.prototype.greyscale;/*! * @pixi/filter-displacement - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1287,7 +1287,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Uy=function(e,t){return Uy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Uy(e,t)};function hle(e,t){Uy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var dle=`varying vec2 vFilterCoord; +***************************************************************************** */var zy=function(e,t){return zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zy(e,t)};function Uce(e,t){zy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Gce=`varying vec2 vFilterCoord; varying vec2 vTextureCoord; uniform vec2 scale; @@ -1307,7 +1307,7 @@ void main(void) gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw)); } -`,ple=`attribute vec2 aVertexPosition; +`,zce=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; uniform mat3 filterMatrix; @@ -1336,7 +1336,7 @@ void main(void) vTextureCoord = filterTextureCoord(); vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy; } -`,vle=function(e){hle(t,e);function t(r,n){var i=this,o=new Pt;return r.renderable=!1,i=e.call(this,ple,dle,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Ce(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(ve);/*! +`,Hce=function(e){Uce(t,e);function t(r,n){var i=this,o=new Pt;return r.renderable=!1,i=e.call(this,zce,Gce,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Ce(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-fxaa - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1355,7 +1355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Gy=function(e,t){return Gy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Gy(e,t)};function mle(e,t){Gy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var gle=` +***************************************************************************** */var Hy=function(e,t){return Hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Hy(e,t)};function Vce(e,t){Hy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Wce=` attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1397,7 +1397,7 @@ void main(void) { texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); } -`,yle=`varying vec2 v_rgbNW; +`,qce=`varying vec2 v_rgbNW; varying vec2 v_rgbNE; varying vec2 v_rgbSW; varying vec2 v_rgbSE; @@ -1518,7 +1518,7 @@ void main() { gl_FragColor = color; } -`,_le=function(e){mle(t,e);function t(){return e.call(this,gle,yle)||this}return t}(ve);/*! +`,Xce=function(e){Vce(t,e);function t(){return e.call(this,Wce,qce)||this}return t}(ve);/*! * @pixi/filter-noise - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1537,7 +1537,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var zy=function(e,t){return zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zy(e,t)};function xle(e,t){zy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ble=`precision highp float; +***************************************************************************** */var Vy=function(e,t){return Vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Vy(e,t)};function Yce(e,t){Vy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Kce=`precision highp float; varying vec2 vTextureCoord; varying vec4 vColor; @@ -1571,31 +1571,31 @@ void main() gl_FragColor = color; } -`,Sle=function(e){xle(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,kb,ble,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(ve);/*! +`,Zce=function(e){Yce(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,Lb,Kce,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/mixin-cache-as-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var TN=new Pt;_t.prototype._cacheAsBitmap=!1;_t.prototype._cacheData=null;_t.prototype._cacheAsBitmapResolution=null;_t.prototype._cacheAsBitmapMultisample=at.NONE;var wle=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(_t.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new wle),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});_t.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};_t.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=so.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+oo();this._cacheData.textureCacheId=f,Re.addToCache(c.baseTexture,f),de.addToCache(c,f);var h=this.transform.localTransform.copyTo(TN).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new jn(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};_t.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};_t.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=so.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+oo();this._cacheData.textureCacheId=s,Re.addToCache(a.baseTexture,s),de.addToCache(a,s);var u=TN;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new jn(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};_t.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};_t.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};_t.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Re.removeFromCache(this._cacheData.textureCacheId),de.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};_t.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! + */var MN=new Pt;xt.prototype._cacheAsBitmap=!1;xt.prototype._cacheData=null;xt.prototype._cacheAsBitmapResolution=null;xt.prototype._cacheAsBitmapMultisample=st.NONE;var Qce=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(xt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new Qce),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});xt.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};xt.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=uo.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=f,Re.addToCache(c.baseTexture,f),de.addToCache(c,f);var h=this.transform.localTransform.copyTo(MN).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new $n(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};xt.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};xt.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=uo.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=s,Re.addToCache(a.baseTexture,s),de.addToCache(a,s);var u=MN;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new $n(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};xt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};xt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};xt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Re.removeFromCache(this._cacheData.textureCacheId),de.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};xt.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! * @pixi/mixin-get-child-by-name - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-get-child-by-name is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */_t.prototype.name=null;gr.prototype.getChildByName=function(t,r){for(var n=0,i=this.children.length;n0){var p=l.x-r[h].x,g=l.y-r[h].y,v=Math.sqrt(p*p+g*g);l=r[h],u+=v/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(rc),Ele=function(e){Ls(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new AN(r.height,n,i),s=new hs(r);return i>0&&(r.baseTexture.wrapMode=xn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(fs),PN=function(e){Ls(t,e);function t(r,n,i){var o=this,a=new ON(r.width,r.height,n,i),s=new hs(de.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(fs),Tle=function(e){Ls(t,e);function t(r,n,i,o,a){r===void 0&&(r=de.EMPTY);var s=this,u=new rc(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new hs(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(fs),Xc=10,Cle=function(e){Ls(t,e);function t(r,n,i,o,a){n===void 0&&(n=Xc),i===void 0&&(i=Xc),o===void 0&&(o=Xc),a===void 0&&(a=Xc);var s=e.call(this,de.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(PN);/*! +***************************************************************************** */var Wy=function(e,t){return Wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Wy(e,t)};function js(e,t){Wy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var FN=function(e){js(t,e);function t(r,n,i,o){r===void 0&&(r=100),n===void 0&&(n=100),i===void 0&&(i=10),o===void 0&&(o=10);var a=e.call(this)||this;return a.segWidth=i,a.segHeight=o,a.width=r,a.height=n,a.build(),a}return t.prototype.build=function(){for(var r=this.segWidth*this.segHeight,n=[],i=[],o=[],a=this.segWidth-1,s=this.segHeight-1,u=this.width/a,l=this.height/s,c=0;c0){var p=l.x-r[h].x,g=l.y-r[h].y,v=Math.sqrt(p*p+g*g);l=r[h],u+=v/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(ic),Jce=function(e){js(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new BN(r.height,n,i),s=new ps(r);return i>0&&(r.baseTexture.wrapMode=bn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(ds),jN=function(e){js(t,e);function t(r,n,i){var o=this,a=new FN(r.width,r.height,n,i),s=new ps(de.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(ds),efe=function(e){js(t,e);function t(r,n,i,o,a){r===void 0&&(r=de.EMPTY);var s=this,u=new ic(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new ps(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(ds),Kc=10,tfe=function(e){js(t,e);function t(r,n,i,o,a){n===void 0&&(n=Kc),i===void 0&&(i=Kc),o===void 0&&(o=Kc),a===void 0&&(a=Kc);var s=e.call(this,de.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(jN);/*! * @pixi/sprite-animated - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1633,13 +1633,13 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Vy=function(e,t){return Vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Vy(e,t)};function Ole(e,t){Vy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ale=function(e){Ole(t,e);function t(r,n){n===void 0&&(n=!0);var i=e.call(this,r[0]instanceof de?r[0]:r[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=n,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=r,i}return t.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1))},t.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this,Xn.HIGH),this._isConnectedToTicker=!0))},t.prototype.gotoAndStop=function(r){this.stop();var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(r){var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(r){if(this._playing){var n=this.animationSpeed*r,i=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=n/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var a=Math.sign(this.animationSpeed*r);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Ce?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(ve);/*! +`,Ah=function(e){Ffe(t,e);function t(r,n,i){r===void 0&&(r=4),n===void 0&&(n=3),i===void 0&&(i=!1);var o=e.call(this,Bfe,i?$fe:jfe)||this;return o._kernels=[],o._blur=4,o._quality=3,o.uniforms.uOffset=new Float32Array(2),o._pixelSize=new Ce,o.pixelSize=1,o._clamp=i,Array.isArray(r)?o.kernels=r:(o._blur=r,o.quality=n),o}return t.prototype.apply=function(r,n,i,o){var a=this._pixelSize.x/n._frame.width,s=this._pixelSize.y/n._frame.height,u;if(this._quality===1||this._blur===0)u=this._kernels[0]+.5,this.uniforms.uOffset[0]=u*a,this.uniforms.uOffset[1]=u*s,r.applyFilter(this,n,i,o);else{for(var l=r.getFilterTexture(),c=n,f=l,h=void 0,d=this._quality-1,p=0;p0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Ce?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-advanced-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2412,7 +2412,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var e_=function(e,t){return e_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e_(e,t)};function RN(e,t){e_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var IN=`attribute vec2 aVertexPosition; +***************************************************************************** */var r_=function(e,t){return r_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},r_(e,t)};function UN(e,t){r_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var GN=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2423,7 +2423,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,hce=` +}`,Ufe=` uniform sampler2D uSampler; varying vec2 vTextureCoord; @@ -2444,7 +2444,7 @@ void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } } -`,dce=function(e){RN(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,IN,hce)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(ve),pce=`uniform sampler2D uSampler; +`,Gfe=function(e){UN(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,GN,Ufe)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(ve),zfe=`uniform sampler2D uSampler; varying vec2 vTextureCoord; uniform sampler2D bloomTexture; @@ -2458,7 +2458,7 @@ void main() { bloomColor.rgb *= bloomScale; gl_FragColor = color + bloomColor; } -`;(function(e){RN(t,e);function t(r){var n=e.call(this,IN,pce)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new dce(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new Ch(o):new Ch(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(ve);/*! +`;(function(e){UN(t,e);function t(r){var n=e.call(this,GN,zfe)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new Gfe(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new Ah(o):new Ah(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(ve);/*! * @pixi/filter-ascii - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2477,7 +2477,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var t_=function(e,t){return t_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},t_(e,t)};function vce(e,t){t_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mce=`attribute vec2 aVertexPosition; +***************************************************************************** */var n_=function(e,t){return n_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n_(e,t)};function Hfe(e,t){n_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2488,7 +2488,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,gce=`varying vec2 vTextureCoord; +}`,Wfe=`varying vec2 vTextureCoord; uniform vec4 filterArea; uniform float pixelSize; @@ -2562,7 +2562,7 @@ void main() gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0); } -`;(function(e){vce(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,mce,gce)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){Hfe(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,Vfe,Wfe)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bevel - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2581,7 +2581,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var r_=function(e,t){return r_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},r_(e,t)};function yce(e,t){r_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _ce=`attribute vec2 aVertexPosition; +***************************************************************************** */var i_=function(e,t){return i_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},i_(e,t)};function qfe(e,t){i_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2592,7 +2592,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,xce=`precision mediump float; +}`,Yfe=`precision mediump float; varying vec2 vTextureCoord; uniform sampler2D uSampler; @@ -2615,7 +2615,7 @@ void main(void) { color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0)); gl_FragColor = vec4(color.rgb * color.a, color.a); } -`;(function(e){yce(t,e);function t(r){var n=e.call(this,_ce,xce)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/ao},set:function(r){this._angle=r*ao,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return sn(this.uniforms.lightColor)},set:function(r){Gt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return sn(this.uniforms.shadowColor)},set:function(r){Gt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){qfe(t,e);function t(r){var n=e.call(this,Xfe,Yfe)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/so},set:function(r){this._angle=r*so,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return un(this.uniforms.lightColor)},set:function(r){Gt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return un(this.uniforms.shadowColor)},set:function(r){Gt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2634,7 +2634,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var n_=function(e,t){return n_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n_(e,t)};function bce(e,t){n_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){bce(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Ce?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new Ml(!0,s,n,i,o),a.blurYFilter=new Ml(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new wN,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(ve);/*! +***************************************************************************** */var o_=function(e,t){return o_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},o_(e,t)};function Kfe(e,t){o_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){Kfe(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Ce?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new Fl(!0,s,n,i,o),a.blurYFilter=new Fl(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new NN,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bulge-pinch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2653,7 +2653,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var i_=function(e,t){return i_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},i_(e,t)};function Sce(e,t){i_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wce=`attribute vec2 aVertexPosition; +***************************************************************************** */var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},a_(e,t)};function Zfe(e,t){a_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Qfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2664,7 +2664,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Ece=`uniform float radius; +}`,Jfe=`uniform float radius; uniform float strength; uniform vec2 center; uniform sampler2D uSampler; @@ -2697,7 +2697,7 @@ void main() gl_FragColor = color; } -`;(function(e){Sce(t,e);function t(r){var n=e.call(this,wce,Ece)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(ve);/*! +`;(function(e){Zfe(t,e);function t(r){var n=e.call(this,Qfe,Jfe)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(ve);/*! * @pixi/filter-color-map - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2716,7 +2716,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var o_=function(e,t){return o_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},o_(e,t)};function Tce(e,t){o_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Cce=`attribute vec2 aVertexPosition; +***************************************************************************** */var s_=function(e,t){return s_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},s_(e,t)};function ehe(e,t){s_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var the=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2727,7 +2727,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Oce=`varying vec2 vTextureCoord; +}`,rhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform sampler2D colorMap; uniform float _mix; @@ -2757,7 +2757,7 @@ void main() { } gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a); -}`;(function(e){Tce(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,Cce,Oce)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof de||(r=de.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Ir.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?Cr.NEAREST:Cr.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Ir.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(ve);/*! +}`;(function(e){ehe(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,the,rhe)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof de||(r=de.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Ir.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?Cr.NEAREST:Cr.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Ir.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(ve);/*! * @pixi/filter-color-overlay - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2776,7 +2776,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},a_(e,t)};function Ace(e,t){a_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pce=`attribute vec2 aVertexPosition; +***************************************************************************** */var u_=function(e,t){return u_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},u_(e,t)};function nhe(e,t){u_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ihe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2787,7 +2787,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,kce=`varying vec2 vTextureCoord; +}`,ohe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 color; uniform float alpha; @@ -2796,7 +2796,7 @@ void main(void) { vec4 currentColor = texture2D(uSampler, vTextureCoord); gl_FragColor = vec4(mix(currentColor.rgb, color.rgb, currentColor.a * alpha), currentColor.a); } -`;(function(e){Ace(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,Pce,kce)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(Gt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){nhe(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,ihe,ohe)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(Gt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=un(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2815,7 +2815,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var s_=function(e,t){return s_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},s_(e,t)};function Rce(e,t){s_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ice=`attribute vec2 aVertexPosition; +***************************************************************************** */var l_=function(e,t){return l_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},l_(e,t)};function ahe(e,t){l_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var she=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2826,7 +2826,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Nce=`varying vec2 vTextureCoord; +}`,uhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 originalColor; uniform vec3 newColor; @@ -2838,7 +2838,7 @@ void main(void) { float doReplace = step(colorDistance, epsilon); gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a); } -`;(function(e){Rce(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,Ice,Nce)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(Gt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(Gt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){ahe(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,she,uhe)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(Gt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=un(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(Gt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=un(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-convolution - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2857,7 +2857,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var u_=function(e,t){return u_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},u_(e,t)};function Lce(e,t){u_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Mce=`attribute vec2 aVertexPosition; +***************************************************************************** */var c_=function(e,t){return c_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},c_(e,t)};function lhe(e,t){c_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var che=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2868,7 +2868,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Dce=`precision mediump float; +}`,fhe=`precision mediump float; varying mediump vec2 vTextureCoord; @@ -2897,7 +2897,7 @@ void main(void) gl_FragColor.a = c22.a; } -`;(function(e){Lce(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,Mce,Dce)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){lhe(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,che,fhe)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-cross-hatch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2916,7 +2916,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var l_=function(e,t){return l_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},l_(e,t)};function Fce(e,t){l_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Bce=`attribute vec2 aVertexPosition; +***************************************************************************** */var f_=function(e,t){return f_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},f_(e,t)};function hhe(e,t){f_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var dhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2927,7 +2927,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,jce=`precision mediump float; +}`,phe=`precision mediump float; varying vec2 vTextureCoord; @@ -2971,7 +2971,7 @@ void main(void) } } } -`;(function(e){Fce(t,e);function t(){return e.call(this,Bce,jce)||this}return t})(ve);/*! +`;(function(e){hhe(t,e);function t(){return e.call(this,dhe,phe)||this}return t})(ve);/*! * @pixi/filter-crt - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2990,7 +2990,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var c_=function(e,t){return c_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},c_(e,t)};function $ce(e,t){c_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Uce=`attribute vec2 aVertexPosition; +***************************************************************************** */var h_=function(e,t){return h_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},h_(e,t)};function vhe(e,t){h_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -3001,7 +3001,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Gce=`varying vec2 vTextureCoord; +}`,ghe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec4 filterArea; @@ -3067,7 +3067,7 @@ void main(void) gl_FragColor.rgb = rgb; } -`;(function(e){$ce(t,e);function t(r){var n=e.call(this,Uce,Gce)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(ve);/*! +`;(function(e){vhe(t,e);function t(r){var n=e.call(this,mhe,ghe)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(ve);/*! * @pixi/filter-drop-shadow - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3086,7 +3086,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var f_=function(e,t){return f_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},f_(e,t)};function zce(e,t){f_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Oh=function(){return Oh=Object.assign||function(t){for(var r=arguments,n,i=1,o=arguments.length;i>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){Ohe(t,e);function t(r,n,i){r===void 0&&(r=[0,0]),n===void 0&&(n=5),i===void 0&&(i=0);var o=e.call(this,Ahe,Phe)||this;return o.kernelSize=5,o.uniforms.uVelocity=new Float32Array(2),o._velocity=new Bi(o.velocityChanged,o),o.setVelocity(r),o.kernelSize=n,o.offset=i,o}return t.prototype.apply=function(r,n,i,o){var a=this.velocity,s=a.x,u=a.y;this.uniforms.uKernelSize=s!==0||u!==0?this.kernelSize:0,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"velocity",{get:function(){return this._velocity},set:function(r){this.setVelocity(r)},enumerable:!1,configurable:!0}),t.prototype.setVelocity=function(r){if(Array.isArray(r)){var n=r[0],i=r[1];this._velocity.set(n,i)}else this._velocity.copyFrom(r)},t.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y,this.padding=(Math.max(Math.abs(this._velocity.x),Math.abs(this._velocity.y))>>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-multi-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3355,7 +3355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var v_=function(e,t){return v_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},v_(e,t)};function tfe(e,t){v_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var rfe=`attribute vec2 aVertexPosition; +***************************************************************************** */var g_=function(e,t){return g_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},g_(e,t)};function khe(e,t){g_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -3366,7 +3366,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,nfe=`varying vec2 vTextureCoord; +}`,Ihe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform float epsilon; @@ -3404,7 +3404,7 @@ void main(void) } } } -`;(function(e){tfe(t,e);function t(r,n,i){n===void 0&&(n=.05),i===void 0&&(i=r.length);var o=e.call(this,rfe,nfe.replace(/%maxColors%/g,i.toFixed(0)))||this;return o._replacements=[],o._maxColors=0,o.epsilon=n,o._maxColors=i,o.uniforms.originalColors=new Float32Array(i*3),o.uniforms.targetColors=new Float32Array(i*3),o.replacements=r,o}return Object.defineProperty(t.prototype,"replacements",{get:function(){return this._replacements},set:function(r){var n=this.uniforms.originalColors,i=this.uniforms.targetColors,o=r.length;if(o>this._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;athis._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;ao===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new kN.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new Fle;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new Ule;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new Vle;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new Yle;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new Jle;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new ice;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return Rfe(this,r)}get shockwaveFilter(){return Ife(this)}set shockwaveFilter(r){Nfe(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return Mfe(this,r)}get radiusAlphaFilter(){return Dfe(this)}set radiusAlphaFilter(r){Ffe(this,r)}}window.PIXI=Ple;class Bfe{constructor(){se(this,"currentApp",null);se(this,"effectsContainer");se(this,"frameDuration",16.67);se(this,"notUpdateBacklogEffects",!1);se(this,"figureContainer");se(this,"figureObjects",[]);se(this,"backgroundContainer");se(this,"backgroundObjects",[]);se(this,"stageAnimations",[]);se(this,"assetLoader",new us);se(this,"loadQueue",[]);se(this,"live2dFigureRecorder",[]);se(this,"lockTransformTarget",[]);se(this,"stageWidth",2560);se(this,"stageHeight",1440);se(this,"MAX_TEX_COUNT",10);const t=new $b({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),Ub&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new gr,this.effectsContainer.zIndex=3,this.figureContainer=new gr,this.figureContainer.zIndex=2,this.backgroundContainer=new gr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Kc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Kc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};B.dispatch(Er.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new jn(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),v{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new jn(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),vf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Kc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const p=f.width,g=f.height,v=this.stageWidth/p,m=this.stageHeight/g,y=Math.max(v,m),_=new jn(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new OC;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Kc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,p;const h=(p=(d=i.resources)==null?void 0:d[r])==null?void 0:p.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,v=h.height,m=this.stageWidth/g,y=this.stageHeight/v,_=Math.min(m,y),x=new jn(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=v*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,p;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const v=o.pixiContainer.children;for(const m of v)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((p=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||p.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){ZR()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Em==null||Em(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Em=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),LN={version:"WebGAL 4.4.11",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},jfe=navigator.userAgent,Ub=!!jfe.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),$fe=()=>{ne.info(LN.version),ne.info("Github: https://github.com/OpenWebGAL/WebGAL "),ne.info("Made with ❤ by OpenWebGAL"),Ub&&alert(`iOS 用户请横屏使用以获得最佳体验 + `;super(null,n),this.uniforms.center=[t.x,t.y],this.uniforms.radius=r}set center(t){this.uniforms.center=[t.x,t.y]}get center(){return new Ce(this.uniforms.center[0],this.uniforms.center[1])}set radius(t){console.log(t),this.uniforms.radius=t}get radius(){return this.uniforms.radius}}function cde(e,t){const r=e.containerFilters.get(A_);if(r)return r;if(t){const n=new lde(new Ce(.5,.5),O_);return n.radius=O_,e.addFilter(n),e.containerFilters.set(A_,n),n}}function fde(e){return e.getOrCreateShockwaveFilter(!1)?e.getOrCreateRadiusAlphaFilter().radius:O_}function hde(e,t){if(t===0)e.removeFilter(A_);else{const r=e.getOrCreateRadiusAlphaFilter();r&&(r.radius=t)}}class IC extends gr{constructor(){super();se(this,"containerFilters",new Map);se(this,"baseX",0);se(this,"baseY",0)}addFilter(r){this.filters?this.filters.push(r):this.filters=[r]}removeFilter(r){const n=this.containerFilters.get(r);if(n){const i=((this==null?void 0:this.filters)??[]).findIndex(o=>o===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new $N.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new hfe;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new mfe;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new xfe;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new Efe;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new Afe;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new Nfe;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return ade(this,r)}get shockwaveFilter(){return sde(this)}set shockwaveFilter(r){ude(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return cde(this,r)}get radiusAlphaFilter(){return fde(this)}set radiusAlphaFilter(r){hde(this,r)}}window.PIXI=ife;class dde{constructor(){se(this,"currentApp",null);se(this,"effectsContainer");se(this,"frameDuration",16.67);se(this,"notUpdateBacklogEffects",!1);se(this,"figureContainer");se(this,"figureObjects",[]);se(this,"backgroundContainer");se(this,"backgroundObjects",[]);se(this,"stageAnimations",[]);se(this,"assetLoader",new cs);se(this,"loadQueue",[]);se(this,"live2dFigureRecorder",[]);se(this,"lockTransformTarget",[]);se(this,"stageWidth",2560);se(this,"stageHeight",1440);se(this,"MAX_TEX_COUNT",10);const t=new Hb({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),Vb&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new gr,this.effectsContainer.zIndex=3,this.figureContainer=new gr,this.figureContainer.zIndex=2,this.backgroundContainer=new gr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};B.dispatch(Er.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new $n(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),v{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new $n(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),vf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Qc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const p=f.width,g=f.height,v=this.stageWidth/p,m=this.stageHeight/g,y=Math.max(v,m),_=new $n(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new IC;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Qc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,p;const h=(p=(d=i.resources)==null?void 0:d[r])==null?void 0:p.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,v=h.height,m=this.stageWidth/g,y=this.stageHeight/v,_=Math.min(m,y),x=new $n(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=v*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,p;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const v=o.pixiContainer.children;for(const m of v)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((p=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||p.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){sI()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Om==null||Om(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Om=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),HN={version:"WebGAL 4.4.11",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},pde=navigator.userAgent,Vb=!!pde.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),vde=()=>{ne.info(HN.version),ne.info("Github: https://github.com/OpenWebGAL/WebGAL "),ne.info("Made with ❤ by OpenWebGAL"),Vb&&alert(`iOS 用户请横屏使用以获得最佳体验 | Please use landscape mode on iOS for the best experience -| iOS ユーザーは横画面での使用をお勧めします`),Ufe("./game/userStyleSheet.css"),Gfe(),Iee("./game/config.txt");const e=jr("start.txt",Br.scene);ti(e).then(t=>{O.sceneManager.sceneData.currentScene=ri(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=ql(r);Xl(n)}),O.gameplay.pixiStage=new Bfe,Lee(),Mee()};function Ufe(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function Gfe(){fl.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)fl.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const zfe="_Menu_main_1a7i6_1",Hfe="_Menu_ShowSoftly_1a7i6_1",Vfe="_Menu_TagContent_1a7i6_10",AC={Menu_main:zfe,Menu_ShowSoftly:Hfe,Menu_TagContent:Vfe},Wfe="_MenuPanel_main_1c9ky_1",qfe="_MenuPanel_button_1c9ky_10",Xfe="_MenuPanel_button_icon_1c9ky_38",Yfe="_MenuPanel_button_hl_1c9ky_44",La={MenuPanel_main:Wfe,MenuPanel_button:qfe,MenuPanel_button_icon:Xfe,MenuPanel_button_hl:Yfe};var Kfe=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function PC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jfe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var ehe={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function the(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function rhe(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var MN=$.createContext(ehe);MN.Provider;function ht(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=Qfe(n,Kfe),d=$.useContext(MN),p=$.useMemo(the,[]),g=rhe(p,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),v=[d.prefix+"-icon"];return v.push(d.prefix+"-icon-"+e),t&&d.rtl&&v.push(d.prefix+"-icon-rtl"),f&&v.push(d.prefix+"-icon-spin"),c&&v.push(c),Y.createElement("span",kC(kC({},h),{},{className:v.join(" ")}),r(g))}}const nhe=ht("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),DN=ht("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ihe=ht("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ohe=ht("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ahe=ht("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),FN=ht("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),she=ht("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),uhe=ht("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),lhe=ht("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),BN=ht("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),che=ht("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),fhe=ht("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hhe=ht("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),dhe=ht("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),jN=ht("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),phe=ht("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vhe=ht("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),mhe=ht("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ghe=ht("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),$N=ht("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),UN=ht("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),yhe=ht("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),_he=ht("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),xhe=ht("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),bhe=e=>{let t;switch(e.iconName){case"save":t=S.jsx($N,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(FN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(UN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(BN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"exit":t=S.jsx(hhe,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;default:t=S.jsx("div",{})}return t},hu=e=>{const{playSePageChange:t,playSeEnter:r}=_r();let n=La.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc()},onMouseEnter:r,style:{...e.style,color:e.tagColor},children:[S.jsx("div",{className:La.MenuPanel_button_icon,children:S.jsx(bhe,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},She="_main_15mmi_1",whe="_button_15mmi_16",Ehe="_button_text_15mmi_23",The="_button_on_15mmi_31",Che="_singleButton_15mmi_42",Ohe="_fastSlPreview_15mmi_59",Ahe="_fastSlEnter_15mmi_1",Phe="_fastsave_15mmi_73",khe="_fastSPreview_15mmi_73",Rhe="_fastload_15mmi_77",Ihe="_fastLPreview_15mmi_77",Nhe="_slPreviewMain_15mmi_89",Lhe="_imgContainer_15mmi_97",Mhe="_textContainer_15mmi_105",he={main:She,button:whe,button_text:Ehe,button_on:The,singleButton:Che,fastSlPreview:Ohe,fastSlEnter:Ahe,fastsave:Phe,fastSPreview:khe,fastload:Rhe,fastLPreview:Ihe,slPreviewMain:Nhe,imgContainer:Lhe,textContainer:Mhe},GN=e=>{const t=document.getElementById("Button_ControlPanel_auto");t&&(e?t.className=he.button_on:t.className=he.singleButton)},Gb=()=>{O.gameplay.isAuto=!1,GN(!1),O.gameplay.autoInterval!==null&&(clearInterval(O.gameplay.autoInterval),O.gameplay.autoInterval=null),O.gameplay.autoTimeout!==null&&(clearTimeout(O.gameplay.autoTimeout),O.gameplay.autoTimeout=null)},zN=()=>{O.gameplay.isAuto?Gb():(O.gameplay.isAuto=!0,GN(!0),O.gameplay.autoInterval=setInterval(Fhe,100))},Dhe=()=>{Ht(),O.gameplay.autoTimeout=null},Fhe=()=>{const t=750-250*B.getState().userData.optionData.autoSpeed;let r=!1;O.gameplay.performController.performList.forEach(n=>{n.blockingAuto()&&(r=!0)}),!r&&O.gameplay.autoTimeout===null&&(O.gameplay.autoTimeout=setTimeout(Dhe,t))},HN=e=>{const t=document.getElementById("Button_ControlPanel_fast");t&&(e?t.className=he.button_on:t.className=he.singleButton)},Ka=()=>{WN()&&(O.gameplay.isFast=!1,HN(!1),O.gameplay.fastInterval!==null&&(clearInterval(O.gameplay.fastInterval),O.gameplay.fastInterval=null))},VN=()=>{WN()||(O.gameplay.isFast=!0,HN(!0),O.gameplay.fastInterval=setInterval(()=>{Ht()},r2.fast_timeout))},WN=function(){return O.gameplay.isFast},zb=()=>{Ka(),Gb()},qN=()=>{O.gameplay.isFast?Ka():VN()},Hb=()=>{const e=B.dispatch;Lx(),Gb(),Ka(),e(we({key:"playVocal",value:""})),e(Me({component:"showTitle",visibility:!0})),Ql(B.getState().GUI.titleBg)},Bhe="_GlobalDialog_main_101j8_2",jhe="_showGlobalDialog_101j8_1",$he="_glabalDialog_container_inner_101j8_17",Uhe="_glabalDialog_container_101j8_17",Ghe="_title_101j8_36",zhe="_button_list_101j8_41",Hhe="_button_101j8_41",_o={GlobalDialog_main:Bhe,showGlobalDialog:jhe,glabalDialog_container_inner:$he,glabalDialog_container:Uhe,title:Ghe,button_list:zhe,button:Hhe};function Vhe(){const e=Ee(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Do(e){const{playSeClick:t,playSeEnter:r}=xx();B.dispatch(Me({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),RC()},i=()=>{t(),e.rightFunc(),RC()},o=S.jsx("div",{className:_o.GlobalDialog_main,children:S.jsx("div",{className:_o.glabalDialog_container,children:S.jsxs("div",{className:_o.glabalDialog_container_inner,children:[S.jsx("div",{className:_o.title,children:e.title}),S.jsxs("div",{className:_o.button_list,children:[S.jsx("div",{className:_o.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:_o.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{Wn.render(o,document.getElementById("globalDialogContainer"))},100)}function RC(){B.dispatch(Me({component:"showGlobalDialog",visibility:!1}))}function Whe(){B.dispatch(Me({component:"showControls",visibility:!0}))}function qhe(){B.dispatch(Me({component:"showControls",visibility:!1}))}function Xhe(){B.getState().GUI.showControls===!0?qhe():Whe()}const Yhe=()=>{const e=kr("menu."),{playSeClick:t,playSeDialogOpen:r,playSePageChange:n}=_r(),i=Ee(g=>g.GUI),o=lr(),a=i.currentMenuTag===Ke.Save?` ${La.MenuPanel_button_hl}`:"",s=i.currentMenuTag===Ke.Load?` ${La.MenuPanel_button_hl}`:"",u=i.currentMenuTag===Ke.Option?` ${La.MenuPanel_button_hl}`:"",l=i.currentMenuTag===Ke.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",c=i.currentMenuTag===Ke.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",f=i.currentMenuTag===Ke.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)",h=i.currentMenuTag===Ke.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",d=i.currentMenuTag===Ke.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",p=i.currentMenuTag===Ke.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)";return S.jsxs("div",{className:La.MenuPanel_main,children:[S.jsx(hu,{iconName:"save",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{n(),!i.showTitle&&o(Bo(Ke.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(hu,{iconName:"load",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{n(),o(Bo(Ke.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(hu,{iconName:"title",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{r(),Do({title:e("$gaming.buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Hb(),o(Me({component:"showMenuPanel",visibility:!1}))},rightFunc:()=>{}})},tagName:e("title.title")},"titleIcon"),S.jsx(hu,{iconName:"option",style:{marginLeft:"auto"},buttonOnClassName:u,iconColor:p,tagColor:f,clickFunc:()=>{n(),o(Bo(Ke.Option))},tagName:e("options.title")},"optionButton"),S.jsx(hu,{iconName:"exit",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{t(),o(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},Khe="_Save_Load_main_a3o8b_2",Zhe="_Save_Load_top_a3o8b_9",Qhe="_Elements_in_a3o8b_1",Jhe="_Save_Load_title_a3o8b_17",ede="_Save_title_text_a3o8b_35",tde="_Load_title_text_a3o8b_43",rde="_Save_Load_top_buttonList_a3o8b_51",nde="_Save_Load_top_button_a3o8b_51",ide="_Save_Load_top_button_text_a3o8b_69",ode="_Save_Load_top_button_on_a3o8b_80",ade="_Load_top_button_on_a3o8b_93",sde="_Load_top_button_a3o8b_93",ude="_Save_Load_content_a3o8b_106",lde="_Save_Load_content_element_a3o8b_115",cde="_Elements_in_transform_a3o8b_1",fde="_Save_Load_content_element_top_a3o8b_131",hde="_Save_Load_content_element_top_index_a3o8b_138",dde="_Load_content_elememt_top_index_a3o8b_147",pde="_Save_Load_content_element_top_date_a3o8b_151",vde="_Load_content_element_top_date_a3o8b_162",mde="_Save_Load_content_text_a3o8b_166",gde="_Save_Load_content_text_padding_a3o8b_180",yde="_Save_Load_content_speaker_a3o8b_184",_de="_Load_content_speaker_a3o8b_193",xde="_Load_content_text_a3o8b_197",bde="_Save_Load_content_miniRen_a3o8b_201",Sde="_Save_Load_content_miniRen_bg_a3o8b_208",wde="_Save_Load_content_miniRen_figure_a3o8b_215",Ede="_Save_Load_content_miniRen_figLeft_a3o8b_223",Tde="_Save_Load_content_miniRen_figRight_a3o8b_228",_e={Save_Load_main:Khe,Save_Load_top:Zhe,Elements_in:Qhe,Save_Load_title:Jhe,Save_title_text:ede,Load_title_text:tde,Save_Load_top_buttonList:rde,Save_Load_top_button:nde,Save_Load_top_button_text:ide,Save_Load_top_button_on:ode,Load_top_button_on:ade,Load_top_button:sde,Save_Load_content:ude,Save_Load_content_element:lde,Elements_in_transform:cde,Save_Load_content_element_top:fde,Save_Load_content_element_top_index:hde,Load_content_elememt_top_index:dde,Save_Load_content_element_top_date:pde,Load_content_element_top_date:vde,Save_Load_content_text:mde,Save_Load_content_text_padding:gde,Save_Load_content_speaker:yde,Load_content_speaker:_de,Load_content_text:xde,Save_Load_content_miniRen:bde,Save_Load_content_miniRen_bg:Sde,Save_Load_content_miniRen_figure:wde,Save_Load_content_miniRen_figLeft:Ede,Save_Load_content_miniRen_figRight:Tde},Cde=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=_r(),n=Ee(h=>h.userData),i=lr(),o=[];for(let h=1;h<=20;h++){let d=_e.Save_Load_top_button;h===n.optionData.slPage&&(d=d+" "+_e.Save_Load_top_button_on);const p=S.jsx("div",{onClick:()=>{i(JP(h)),Je(),e()},onMouseEnter:t,className:d,children:S.jsx("div",{className:_e.Save_Load_top_button_text,children:h})},"Save_element_page"+h);o.push(p)}const a=kr("common."),s=[],u=(n.optionData.slPage-1)*10+1,l=u+9;let c=0;for(let h=u;h<=l;h++){c++;const d=n.saveData[h];let p=S.jsx("div",{});if(d){const v=d.nowStageState.showName===""?" ":`${d.nowStageState.showName}`;p=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:_e.Save_Load_content_element_top,children:[S.jsx("div",{className:_e.Save_Load_content_element_top_index,children:d.index}),S.jsx("div",{className:_e.Save_Load_content_element_top_date,children:d.saveTime})]}),S.jsx("div",{className:_e.Save_Load_content_miniRen,children:S.jsx("img",{className:_e.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:d.previewImage})}),S.jsxs("div",{className:_e.Save_Load_content_text,children:[S.jsx("div",{className:_e.Save_Load_content_speaker,children:v}),S.jsx("div",{className:_e.Save_Load_content_text_padding,children:d.nowStageState.showText})]})]})}const g=S.jsx("div",{onClick:()=>{n.saveData[h]?(r(),Do({title:f("saving.isOverwrite"),leftText:a("yes"),rightText:a("no"),leftFunc:()=>{Gg(h),Je()},rightFunc:()=>{}})):(e(),Gg(h))},onMouseEnter:t,className:_e.Save_Load_content_element,style:{animationDelay:`${c*30}ms`},children:p},"saveElement_"+h);s.push(g)}const f=kr("menu.");return S.jsxs("div",{className:_e.Save_Load_main,children:[S.jsxs("div",{className:_e.Save_Load_top,children:[S.jsx("div",{className:_e.Save_Load_title,children:S.jsx("div",{className:_e.Save_title_text,children:f("saving.title")})}),S.jsx("div",{className:_e.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:_e.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:s})]})},Ode=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=_r(),n=Ee(f=>f.userData),i=lr(),o=[];for(let f=1;f<=20;f++){let h=_e.Save_Load_top_button+" "+_e.Load_top_button;f===n.optionData.slPage&&(h=h+" "+_e.Save_Load_top_button_on+" "+_e.Load_top_button_on);const d=S.jsx("div",{onClick:()=>{i(JP(f)),Je(),r()},onMouseEnter:t,className:h,children:S.jsx("div",{className:_e.Save_Load_top_button_text,children:f})},"Load_element_page"+f);o.push(d)}const a=[],s=(n.optionData.slPage-1)*10+1,u=s+9;let l=0;for(let f=s;f<=u;f++){l++;const h=n.saveData[f];let d=S.jsx("div",{});if(h){const g=h.nowStageState.showName===""?" ":`${h.nowStageState.showName}`;d=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:_e.Save_Load_content_element_top,children:[S.jsx("div",{className:_e.Save_Load_content_element_top_index+" "+_e.Load_content_elememt_top_index,children:h.index}),S.jsx("div",{className:_e.Save_Load_content_element_top_date+" "+_e.Load_content_element_top_date,children:h.saveTime})]}),S.jsx("div",{className:_e.Save_Load_content_miniRen,children:S.jsx("img",{className:_e.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:h.previewImage})}),S.jsxs("div",{className:_e.Save_Load_content_text,children:[S.jsx("div",{className:_e.Save_Load_content_speaker+" "+_e.Load_content_speaker,children:g}),S.jsx("div",{className:_e.Save_Load_content_text_padding,children:h.nowStageState.showText})]})]})}const p=S.jsx("div",{onClick:()=>{Kk(f),e()},onMouseEnter:t,className:_e.Save_Load_content_element,style:{animationDelay:`${l*30}ms`},children:d},"loadElement_"+f);a.push(p)}const c=kr("menu.");return S.jsxs("div",{className:_e.Save_Load_main,children:[S.jsxs("div",{className:_e.Save_Load_top,children:[S.jsx("div",{className:_e.Save_Load_title,children:S.jsx("div",{className:_e.Load_title_text,children:c("loadSaving.title")})}),S.jsx("div",{className:_e.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:_e.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:a})]})},Ade="_Options_main_u5orq_2",Pde="_Options_top_u5orq_9",kde="_Options_title_u5orq_16",Rde="_Option_title_text_u5orq_25",Ide="_Elements_in_u5orq_1",Nde="_Option_title_text_shadow_u5orq_34",Lde="_Option_title_text_ts_u5orq_41",Mde="_Options_main_content_u5orq_48",Dde="_Options_main_content_half_u5orq_55",Fde="_About_title_text_u5orq_65",Bde="_About_text_u5orq_73",jde="_Options_page_container_u5orq_92",$de="_Options_button_list_u5orq_98",Ude="_Options_page_button_u5orq_102",Gde="_Options_page_button_active_u5orq_114",hr={Options_main:Ade,Options_top:Pde,Options_title:kde,Option_title_text:Rde,Elements_in:Ide,Option_title_text_shadow:Nde,Option_title_text_ts:Lde,Options_main_content:Mde,Options_main_content_half:Dde,About_title_text:Fde,About_text:Bde,Options_page_container:jde,Options_button_list:$de,Options_page_button:Ude,Options_page_button_active:Gde},zde="_NormalOption_ogzuv_1",Hde="_Elements_in_ogzuv_1",Vde="_NormalOption_title_ogzuv_10",Wde="_NormalOption_title_bef_ogzuv_19",qde="_NormalOption_title_sd_ogzuv_29",Xde="_NormalOption_buttonList_ogzuv_39",Tm={NormalOption:zde,Elements_in:Hde,NormalOption_title:Vde,NormalOption_title_bef:Wde,NormalOption_title_sd:qde,NormalOption_buttonList:Xde},dr=e=>S.jsxs("div",{className:Tm.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Tm.NormalOption_title,children:e.title}),S.jsx("div",{className:Tm.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),Yde="_NormalButton_1qk3b_1",Kde="_NormalButtonChecked_1qk3b_18",Cm={NormalButton:Yde,NormalButtonChecked:Kde},Fi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=_r();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Cm.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function Ms(e){const t=Ee(e),r=$.useRef(t);return $.useEffect(()=>{r.current=t},[t]),r}function Zde(e){return na[e]}function XN(){const{i18n:e}=jd(),t=Ms(n=>n.userData),r=lr();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??na.zhCn,a=Zde(o);e.changeLanguage(a),r(St({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&Je()}}const Qde="_backButton_qbk37_1",Jde="_about_qbk37_16",epe="_icon_qbk37_20",tpe="_title_qbk37_24",rpe="_text_qbk37_34",npe="_contributor_qbk37_43",Xr={backButton:Qde,about:Jde,icon:epe,title:tpe,text:rpe,contributor:npe};function ipe(e){const t=kr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Xr.about,children:[S.jsx("div",{className:Xr.backButton,onClick:e.onClose,children:S.jsx(che,{className:Xr.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Xr.title,children:t("subTitle")}),S.jsx("div",{className:Xr.title,children:t("version")}),S.jsx("div",{className:Xr.text,children:LN.version}),S.jsx("div",{className:Xr.title,children:t("source")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Xr.title,children:t("contributors")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Xr.title,children:t("website")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function ope(){const e=Ee(f=>f.userData),t=lr(),r=XN(),n=kr("menu.options.pages.system.options."),{playSeDialogOpen:i}=_r();function o(){Je(),ah.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),p=URL.createObjectURL(d),g=document.createElement("a");g.href=p,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=p=>{const g=p.target.result;try{const v=JSON.parse(g);i(),Do({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{ah.setItem(O.gameKey,v).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),vl()},rightFunc:()=>{}})}catch(v){ne.error(n("gameSave.dialogs.import.error"),v)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:hr.Options_main_content_half,children:[s&&S.jsx(ipe,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(dr,{title:n("autoSpeed.title"),children:S.jsx(Fi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(St({key:"autoSpeed",value:vr.slow})),Je()},()=>{t(St({key:"autoSpeed",value:vr.normal})),Je()},()=>{t(St({key:"autoSpeed",value:vr.fast})),Je()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(dr,{title:n("language.title"),children:S.jsx(Fi,{currentChecked:e.optionData.language,textList:Object.values(sh),functionList:Object.keys(sh).map(f=>()=>r(na[f]))})},"option7"),S.jsx(dr,{title:n("resetData.title"),children:S.jsx(Fi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Do({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(_G()),Uu()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(yG()),Uu()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(xG()),Uu()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(dr,{title:n("gameSave.title"),children:S.jsx(Fi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:hr.About_title_text,onClick:l,children:S.jsx("span",{className:hr.About_text,children:n("about.title")})})]})]})}const ape="_textPreviewMain_nolr3_1",spe="_textbox_nolr3_8",IC={textPreviewMain:ape,textbox:spe};function YN(){const e=Ee(r=>r.userData.optionData.textboxFont);function t(){return Fd(e).with(Hn.song,()=>'"思源宋体", serif').with(Hn.lxgw,()=>'"LXGW", serif').with(Hn.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function O_(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const upe="_TextBox_EventHandler_ujldp_1",lpe="_TextBox_main_ujldp_9",cpe="_showSoftly_ujldp_1",fpe="_TextBox_textElement_start_ujldp_39",hpe="_TextDelayShow_ujldp_1",dpe="_outer_ujldp_45",ppe="_inner_ujldp_57",vpe="_zhanwei_ujldp_66",mpe="_TextBox_textElement_Settled_ujldp_71",gpe="_TextBox_showName_ujldp_76",ype="_miniAvatarContainer_ujldp_95",_pe="_miniAvatarImg_ujldp_105",xpe="_nameContainer_ujldp_113",bpe="_outerName_ujldp_119",Spe="_innerName_ujldp_130",wpe="_text_ujldp_137",Vt={TextBox_EventHandler:upe,TextBox_main:lpe,showSoftly:cpe,TextBox_textElement_start:fpe,TextDelayShow:hpe,outer:dpe,inner:ppe,zhanwei:vpe,TextBox_textElement_Settled:mpe,TextBox_showName:gpe,miniAvatarContainer:ype,miniAvatarImg:_pe,nameContainer:xpe,outerName:bpe,innerName:Spe,text:wpe};function KN(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:p}=e,g=yR("Stage/TextBox/textbox.scss");$.useEffect(()=>{function m(){[...document.querySelectorAll(".Textelement_start")].forEach(x=>{x.className=g("TextBox_textElement_Settled",Vt.TextBox_textElement_Settled)})}return O.events.textSettle.on(m),()=>{O.events.textSettle.off(m)}},[]);const v=t.map((m,y)=>{let _=y*r,x=n.length;return n!==""&&y>=x&&(_=_-x*r),y{O.sceneManager.sceneData.currentScene=ni(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=Yl(r);Kl(n)}),O.gameplay.pixiStage=new dde,lre(),cre()};function mde(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function gde(){dl.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)dl.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const yde="_Menu_main_1a7i6_1",_de="_Menu_ShowSoftly_1a7i6_1",xde="_Menu_TagContent_1a7i6_10",NC={Menu_main:yde,Menu_ShowSoftly:_de,Menu_TagContent:xde},bde="_MenuPanel_main_1c9ky_1",Sde="_MenuPanel_button_1c9ky_10",wde="_MenuPanel_button_icon_1c9ky_38",Ede="_MenuPanel_button_hl_1c9ky_44",Da={MenuPanel_main:bde,MenuPanel_button:Sde,MenuPanel_button_icon:wde,MenuPanel_button_hl:Ede};var Tde=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function LC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ade(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Pde={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function kde(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Rde(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var VN=$.createContext(Pde);VN.Provider;function dt(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=Ode(n,Tde),d=$.useContext(VN),p=$.useMemo(kde,[]),g=Rde(p,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),v=[d.prefix+"-icon"];return v.push(d.prefix+"-icon-"+e),t&&d.rtl&&v.push(d.prefix+"-icon-rtl"),f&&v.push(d.prefix+"-icon-spin"),c&&v.push(c),Y.createElement("span",MC(MC({},h),{},{className:v.join(" ")}),r(g))}}const Ide=dt("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),WN=dt("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Nde=dt("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Lde=dt("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Mde=dt("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qN=dt("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Dde=dt("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Fde=dt("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Bde=dt("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),XN=dt("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),jde=dt("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),$de=dt("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Ude=dt("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Gde=dt("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),YN=dt("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),zde=dt("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Hde=dt("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Vde=dt("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Wde=dt("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),KN=dt("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ZN=dt("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),qde=dt("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),Xde=dt("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Yde=dt("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),Kde=e=>{let t;switch(e.iconName){case"save":t=S.jsx(KN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(qN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(ZN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(XN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"exit":t=S.jsx(Ude,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;default:t=S.jsx("div",{})}return t},pu=e=>{const{playSePageChange:t,playSeEnter:r}=_r();let n=Da.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc()},onMouseEnter:r,style:{...e.style,color:e.tagColor},children:[S.jsx("div",{className:Da.MenuPanel_button_icon,children:S.jsx(Kde,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},Wb=()=>{const e=B.dispatch;Dx(),zx(),Ka(),e(Ee({key:"playVocal",value:""})),e(De({component:"showTitle",visibility:!0})),ec(B.getState().GUI.titleBg)},Zde="_GlobalDialog_main_101j8_2",Qde="_showGlobalDialog_101j8_1",Jde="_glabalDialog_container_inner_101j8_17",epe="_glabalDialog_container_101j8_17",tpe="_title_101j8_36",rpe="_button_list_101j8_41",npe="_button_101j8_41",xo={GlobalDialog_main:Zde,showGlobalDialog:Qde,glabalDialog_container_inner:Jde,glabalDialog_container:epe,title:tpe,button_list:rpe,button:npe};function ipe(){const e=ye(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Fo(e){const{playSeClick:t,playSeEnter:r}=Sx();B.dispatch(De({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),DC()},i=()=>{t(),e.rightFunc(),DC()},o=S.jsx("div",{className:xo.GlobalDialog_main,children:S.jsx("div",{className:xo.glabalDialog_container,children:S.jsxs("div",{className:xo.glabalDialog_container_inner,children:[S.jsx("div",{className:xo.title,children:e.title}),S.jsxs("div",{className:xo.button_list,children:[S.jsx("div",{className:xo.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:xo.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{qn.render(o,document.getElementById("globalDialogContainer"))},100)}function DC(){B.dispatch(De({component:"showGlobalDialog",visibility:!1}))}function ope(){B.dispatch(De({component:"showControls",visibility:!0}))}function ape(){B.dispatch(De({component:"showControls",visibility:!1}))}function spe(){B.getState().GUI.showControls===!0?ape():ope()}const upe=()=>{const e=kr("menu."),{playSeClick:t,playSeDialogOpen:r,playSePageChange:n}=_r(),i=ye(g=>g.GUI),o=Ht(),a=i.currentMenuTag===Ze.Save?` ${Da.MenuPanel_button_hl}`:"",s=i.currentMenuTag===Ze.Load?` ${Da.MenuPanel_button_hl}`:"",u=i.currentMenuTag===Ze.Option?` ${Da.MenuPanel_button_hl}`:"",l=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",c=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",f=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)",h=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",d=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",p=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)";return S.jsxs("div",{className:Da.MenuPanel_main,children:[S.jsx(pu,{iconName:"save",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{n(),!i.showTitle&&o(jo(Ze.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(pu,{iconName:"load",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{n(),o(jo(Ze.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(pu,{iconName:"title",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{r(),Fo({title:e("$gaming.buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb(),o(De({component:"showMenuPanel",visibility:!1}))},rightFunc:()=>{}})},tagName:e("title.title")},"titleIcon"),S.jsx(pu,{iconName:"option",style:{marginLeft:"auto"},buttonOnClassName:u,iconColor:p,tagColor:f,clickFunc:()=>{n(),o(jo(Ze.Option))},tagName:e("options.title")},"optionButton"),S.jsx(pu,{iconName:"exit",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{t(),o(De({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},lpe="_Save_Load_main_a3o8b_2",cpe="_Save_Load_top_a3o8b_9",fpe="_Elements_in_a3o8b_1",hpe="_Save_Load_title_a3o8b_17",dpe="_Save_title_text_a3o8b_35",ppe="_Load_title_text_a3o8b_43",vpe="_Save_Load_top_buttonList_a3o8b_51",mpe="_Save_Load_top_button_a3o8b_51",gpe="_Save_Load_top_button_text_a3o8b_69",ype="_Save_Load_top_button_on_a3o8b_80",_pe="_Load_top_button_on_a3o8b_93",xpe="_Load_top_button_a3o8b_93",bpe="_Save_Load_content_a3o8b_106",Spe="_Save_Load_content_element_a3o8b_115",wpe="_Elements_in_transform_a3o8b_1",Epe="_Save_Load_content_element_top_a3o8b_131",Tpe="_Save_Load_content_element_top_index_a3o8b_138",Cpe="_Load_content_elememt_top_index_a3o8b_147",Ope="_Save_Load_content_element_top_date_a3o8b_151",Ape="_Load_content_element_top_date_a3o8b_162",Ppe="_Save_Load_content_text_a3o8b_166",kpe="_Save_Load_content_text_padding_a3o8b_180",Rpe="_Save_Load_content_speaker_a3o8b_184",Ipe="_Load_content_speaker_a3o8b_193",Npe="_Load_content_text_a3o8b_197",Lpe="_Save_Load_content_miniRen_a3o8b_201",Mpe="_Save_Load_content_miniRen_bg_a3o8b_208",Dpe="_Save_Load_content_miniRen_figure_a3o8b_215",Fpe="_Save_Load_content_miniRen_figLeft_a3o8b_223",Bpe="_Save_Load_content_miniRen_figRight_a3o8b_228",xe={Save_Load_main:lpe,Save_Load_top:cpe,Elements_in:fpe,Save_Load_title:hpe,Save_title_text:dpe,Load_title_text:ppe,Save_Load_top_buttonList:vpe,Save_Load_top_button:mpe,Save_Load_top_button_text:gpe,Save_Load_top_button_on:ype,Load_top_button_on:_pe,Load_top_button:xpe,Save_Load_content:bpe,Save_Load_content_element:Spe,Elements_in_transform:wpe,Save_Load_content_element_top:Epe,Save_Load_content_element_top_index:Tpe,Load_content_elememt_top_index:Cpe,Save_Load_content_element_top_date:Ope,Load_content_element_top_date:Ape,Save_Load_content_text:Ppe,Save_Load_content_text_padding:kpe,Save_Load_content_speaker:Rpe,Load_content_speaker:Ipe,Load_content_text:Npe,Save_Load_content_miniRen:Lpe,Save_Load_content_miniRen_bg:Mpe,Save_Load_content_miniRen_figure:Dpe,Save_Load_content_miniRen_figLeft:Fpe,Save_Load_content_miniRen_figRight:Bpe},jpe=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=_r(),n=ye(h=>h.userData),i=Ht(),o=[];for(let h=1;h<=20;h++){let d=xe.Save_Load_top_button;h===n.optionData.slPage&&(d=d+" "+xe.Save_Load_top_button_on);const p=S.jsx("div",{onClick:()=>{i(t2(h)),Me(),e()},onMouseEnter:t,className:d,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:h})},"Save_element_page"+h);o.push(p)}const a=kr("common."),s=[],u=(n.optionData.slPage-1)*10+1,l=u+9;let c=0;for(let h=u;h<=l;h++){c++;const d=n.saveData[h];let p=S.jsx("div",{});if(d){const v=d.nowStageState.showName===""?" ":`${d.nowStageState.showName}`;p=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index,children:d.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date,children:d.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:d.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker,children:v}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:d.nowStageState.showText})]})]})}const g=S.jsx("div",{onClick:()=>{n.saveData[h]?(r(),Fo({title:f("saving.isOverwrite"),leftText:a("yes"),rightText:a("no"),leftFunc:()=>{Hg(h),Me()},rightFunc:()=>{}})):(e(),Hg(h))},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${c*30}ms`},children:p},"saveElement_"+h);s.push(g)}const f=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Save_title_text,children:f("saving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:s})]})},$pe=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=_r(),n=ye(f=>f.userData),i=Ht(),o=[];for(let f=1;f<=20;f++){let h=xe.Save_Load_top_button+" "+xe.Load_top_button;f===n.optionData.slPage&&(h=h+" "+xe.Save_Load_top_button_on+" "+xe.Load_top_button_on);const d=S.jsx("div",{onClick:()=>{i(t2(f)),Me(),r()},onMouseEnter:t,className:h,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:f})},"Load_element_page"+f);o.push(d)}const a=[],s=(n.optionData.slPage-1)*10+1,u=s+9;let l=0;for(let f=s;f<=u;f++){l++;const h=n.saveData[f];let d=S.jsx("div",{});if(h){const g=h.nowStageState.showName===""?" ":`${h.nowStageState.showName}`;d=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index+" "+xe.Load_content_elememt_top_index,children:h.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date+" "+xe.Load_content_element_top_date,children:h.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:h.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker+" "+xe.Load_content_speaker,children:g}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:h.nowStageState.showText})]})]})}const p=S.jsx("div",{onClick:()=>{Qk(f),e()},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${l*30}ms`},children:d},"loadElement_"+f);a.push(p)}const c=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Load_title_text,children:c("loadSaving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:a})]})},Upe="_Options_main_u5orq_2",Gpe="_Options_top_u5orq_9",zpe="_Options_title_u5orq_16",Hpe="_Option_title_text_u5orq_25",Vpe="_Elements_in_u5orq_1",Wpe="_Option_title_text_shadow_u5orq_34",qpe="_Option_title_text_ts_u5orq_41",Xpe="_Options_main_content_u5orq_48",Ype="_Options_main_content_half_u5orq_55",Kpe="_About_title_text_u5orq_65",Zpe="_About_text_u5orq_73",Qpe="_Options_page_container_u5orq_92",Jpe="_Options_button_list_u5orq_98",eve="_Options_page_button_u5orq_102",tve="_Options_page_button_active_u5orq_114",dr={Options_main:Upe,Options_top:Gpe,Options_title:zpe,Option_title_text:Hpe,Elements_in:Vpe,Option_title_text_shadow:Wpe,Option_title_text_ts:qpe,Options_main_content:Xpe,Options_main_content_half:Ype,About_title_text:Kpe,About_text:Zpe,Options_page_container:Qpe,Options_button_list:Jpe,Options_page_button:eve,Options_page_button_active:tve},rve="_NormalOption_ogzuv_1",nve="_Elements_in_ogzuv_1",ive="_NormalOption_title_ogzuv_10",ove="_NormalOption_title_bef_ogzuv_19",ave="_NormalOption_title_sd_ogzuv_29",sve="_NormalOption_buttonList_ogzuv_39",Am={NormalOption:rve,Elements_in:nve,NormalOption_title:ive,NormalOption_title_bef:ove,NormalOption_title_sd:ave,NormalOption_buttonList:sve},ar=e=>S.jsxs("div",{className:Am.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Am.NormalOption_title,children:e.title}),S.jsx("div",{className:Am.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),uve="_NormalButton_1qk3b_1",lve="_NormalButtonChecked_1qk3b_18",Pm={NormalButton:uve,NormalButtonChecked:lve},yi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=_r();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Pm.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function cve(e){return ia[e]}function QN(){const{i18n:e}=Ud(),t=Is(n=>n.userData),r=Ht();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??ia.zhCn,a=cve(o);e.changeLanguage(a),r(rt({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&Me()}}const fve="_backButton_qbk37_1",hve="_about_qbk37_16",dve="_icon_qbk37_20",pve="_title_qbk37_24",vve="_text_qbk37_34",mve="_contributor_qbk37_43",Xr={backButton:fve,about:hve,icon:dve,title:pve,text:vve,contributor:mve};function gve(e){const t=kr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Xr.about,children:[S.jsx("div",{className:Xr.backButton,onClick:e.onClose,children:S.jsx(jde,{className:Xr.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Xr.title,children:t("subTitle")}),S.jsx("div",{className:Xr.title,children:t("version")}),S.jsx("div",{className:Xr.text,children:HN.version}),S.jsx("div",{className:Xr.title,children:t("source")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Xr.title,children:t("contributors")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Xr.title,children:t("website")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function yve(){const e=ye(f=>f.userData),t=Ht(),r=QN(),n=kr("menu.options.pages.system.options."),{playSeDialogOpen:i}=_r();function o(){Me(),uh.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),p=URL.createObjectURL(d),g=document.createElement("a");g.href=p,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=p=>{const g=p.target.result;try{const v=JSON.parse(g);i(),Fo({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{uh.setItem(O.gameKey,v).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),gl()},rightFunc:()=>{}})}catch(v){ne.error(n("gameSave.dialogs.import.error"),v)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:dr.Options_main_content_half,children:[s&&S.jsx(gve,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(ar,{title:n("autoSpeed.title"),children:S.jsx(yi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(rt({key:"autoSpeed",value:vr.slow})),Me()},()=>{t(rt({key:"autoSpeed",value:vr.normal})),Me()},()=>{t(rt({key:"autoSpeed",value:vr.fast})),Me()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(ar,{title:n("language.title"),children:S.jsx(yi,{currentChecked:e.optionData.language,textList:Object.values(lh),functionList:Object.keys(lh).map(f=>()=>r(ia[f]))})},"option7"),S.jsx(ar,{title:n("resetData.title"),children:S.jsx(yi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Fo({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(bG()),zu()},rightFunc:()=>{}})},()=>{i(),Fo({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(xG()),zu()},rightFunc:()=>{}})},()=>{i(),Fo({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(SG()),zu()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(ar,{title:n("gameSave.title"),children:S.jsx(yi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:dr.About_title_text,onClick:l,children:S.jsx("span",{className:dr.About_text,children:n("about.title")})})]})]})}const _ve="_textPreviewMain_nolr3_1",xve="_textbox_nolr3_8",FC={textPreviewMain:_ve,textbox:xve};function JN(){const e=ye(r=>r.userData.optionData.textboxFont);function t(){return jd(e).with(Vn.song,()=>'"思源宋体", serif').with(Vn.lxgw,()=>'"LXGW", serif').with(Vn.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function P_(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const bve="_TextBox_EventHandler_ujldp_1",Sve="_TextBox_main_ujldp_9",wve="_showSoftly_ujldp_1",Eve="_TextBox_textElement_start_ujldp_39",Tve="_TextDelayShow_ujldp_1",Cve="_outer_ujldp_45",Ove="_inner_ujldp_57",Ave="_zhanwei_ujldp_66",Pve="_TextBox_textElement_Settled_ujldp_71",kve="_TextBox_showName_ujldp_76",Rve="_miniAvatarContainer_ujldp_95",Ive="_miniAvatarImg_ujldp_105",Nve="_nameContainer_ujldp_113",Lve="_outerName_ujldp_119",Mve="_innerName_ujldp_130",Dve="_text_ujldp_137",Wt={TextBox_EventHandler:bve,TextBox_main:Sve,showSoftly:wve,TextBox_textElement_start:Eve,TextDelayShow:Tve,outer:Cve,inner:Ove,zhanwei:Ave,TextBox_textElement_Settled:Pve,TextBox_showName:kve,miniAvatarContainer:Rve,miniAvatarImg:Ive,nameContainer:Nve,outerName:Lve,innerName:Mve,text:Dve};function eL(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:p}=e,g=xR("Stage/TextBox/textbox.scss");$.useEffect(()=>{function m(){[...document.querySelectorAll(".Textelement_start")].forEach(x=>{x.className=g("TextBox_textElement_Settled",Wt.TextBox_textElement_Settled)})}return O.events.textSettle.on(m),()=>{O.events.textSettle.off(m)}},[]);const v=t.map((m,y)=>{let _=y*r,x=n.length;return n!==""&&y>=x&&(_=_-x*r),yS.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Vt.zhanwei,children:[m,S.jsx("span",{className:g("outerName",Vt.outerName),children:m}),d&&S.jsx("span",{className:g("innerName",Vt.innerName),children:m})]})},m+y))},c),S.jsx("div",{className:g("text",Vt.text),style:{fontSize:u,wordBreak:a||e.isFirefox?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:v})]})})}const ZN=navigator.userAgent,Epe=/firefox/i.test(ZN),Tpe=/^((?!chrome|android).)*safari/i.test(ZN),Cpe=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const y=()=>{const b=window.innerHeight,w=window.innerWidth,T=b/1440,R=w/2560,A=w/1440,P=b/2560;[T,R,A,P].forEach(D=>{D<=.2?t(!1):t(!0)})};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[]);const r=Ee(y=>y.stage),n=Ee(y=>y.userData),i=wx(n.optionData.textSpeed),o=Sk(n.optionData.textSpeed);let a=O_(n.optionData.textSize)+"%";const s=YN(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=O_(r.showTextSize)+"%",l=r.showTextSize);const c=Fd(n.optionData.textSize).with(_n.small,()=>3).with(_n.medium,()=>2).with(_n.large,()=>2).default(()=>2),f=Vb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,p=r.currentDialogKey,g=r.miniAvatar,v=n.optionData.textboxOpacity,m=KN;return S.jsx(m,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:p,isSafari:Tpe,isFirefox:Epe,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:v})};function NC(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function Vb(e,t,r){const a=e.split("|").map(s=>Ape(s)).map(s=>{const u=[];return s.forEach((l,c)=>{Fd(l.type).with("SegmentType.String",()=>{const f=Ope(l.value);u.push(...f)}).endsWith("SegmentType.Link",()=>{const f=l.value,h=S.jsxs("ruby",{children:[f.text,S.jsx("rt",{children:f.link})]},c+f.text);u.push(h)})}),u}).slice(0,r?void 0:t).reduce((s,u,l)=>[...s,...u,S.jsx("br",{},`br-${l}`)],[]);return a.pop(),a}function Ope(e){if(!e)return[];const t=[];let r="",n=NC(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(NC(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Ape(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const Ppe=e=>{const t=kr("menu.options.pages.display.options."),r=Ee(m=>m.userData),i=Ee(m=>m.stage).bgName,o=wx(r.optionData.textSpeed),a=Sk(r.optionData.textSpeed),s=r.optionData.textboxOpacity,u=O_(r.optionData.textSize)+"%",l=YN(),c=navigator.userAgent,f=/firefox/i.test(c),h=/^((?!chrome|android).)*safari/i.test(c),d=t("textPreview.text"),p=Vb(d,3),g=KN,v={textArray:p,isText:!0,textDelay:o,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:u,currentDialogKey:"",isSafari:h,isFirefox:f,miniAvatar:"",textDuration:a,font:l,textSizeState:u,lineLimit:3,isUseStroke:!0,textboxOpacity:s};return S.jsx("div",{className:IC.textPreviewMain,style:{background:i?`bottom / cover no-repeat url(${i})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:IC.textbox,children:S.jsx(g,{...v})},`previewTextbox-${o}`)})};const Ea=e=>{const{playSeEnter:t}=_r();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function kpe(){const e=Ee(n=>n.userData),t=lr(),r=kr("menu.options.pages.display.options.");return S.jsxs("div",{className:hr.Options_main_content_half,children:[S.jsx(dr,{title:r("textSpeed.title"),children:S.jsx(Fi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(St({key:"textSpeed",value:vr.slow})),Je()},()=>{t(St({key:"textSpeed",value:vr.normal})),Je()},()=>{t(St({key:"textSpeed",value:vr.fast})),Je()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(dr,{title:r("textSize.title"),children:S.jsx(Fi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(St({key:"textSize",value:_n.small})),Je()},()=>{t(St({key:"textSize",value:_n.medium})),Je()},()=>{t(St({key:"textSize",value:_n.large})),Je()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(dr,{title:r("textFont.title"),children:S.jsx(Fi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(St({key:"textboxFont",value:Hn.song})),Je()},()=>{t(St({key:"textboxFont",value:Hn.hei})),Je()},()=>{t(St({key:"textboxFont",value:Hn.lxgw})),Je()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(dr,{title:r("textboxOpacity.title"),children:S.jsx(Ea,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(St({key:"textboxOpacity",value:Number(i)})),Je()}})},"textboxOpacity"),S.jsx(dr,{full:!0,title:r("textPreview.title"),children:S.jsx(Ppe,{})},"textPreview")]})}function Rpe(){const e=Ee(n=>n.userData),t=lr(),r=kr("menu.options.pages.sound.options.");return S.jsxs("div",{className:hr.Options_main_content_half,children:[S.jsx(dr,{title:r("volumeMain.title"),children:S.jsx(Ea,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(St({key:"volumeMain",value:Number(i)})),Je()}})},"option4"),S.jsx(dr,{title:r("vocalVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"vocalVolume",value:Number(i)})),Je()}})},"option5"),S.jsx(dr,{title:r("bgmVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"bgmVolume",value:Number(i)})),Je()}})},"option6"),S.jsx(dr,{title:r("seVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"seVolume",value:Number(i)})),Je()}})},"option7"),S.jsx(dr,{title:r("uiSeVolume.title"),children:S.jsx(Ea,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(St({key:"uiSeVolume",value:Number(i)})),Je()}})},"option8"),S.jsx(dr,{title:r("voiceOption.title"),children:S.jsx(Fi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(St({key:"voiceInterruption",value:cl.yes})),Je()},()=>{t(St({key:"voiceInterruption",value:cl.no})),Je()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const Ipe=()=>{const{playSeEnter:e,playSeSwitch:t}=_r(),r=wn(0);$.useEffect(vl,[]);function n(o){return o===r.value?hr.Options_page_button+" "+hr.Options_page_button_active:hr.Options_page_button}const i=kr("menu.options.");return S.jsxs("div",{className:hr.Options_main,children:[S.jsx("div",{className:hr.Options_top,children:S.jsx("div",{className:hr.Options_title,children:S.jsx("div",{className:hr.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:hr.Options_page_container,children:[S.jsxs("div",{className:hr.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:hr.Options_main_content,children:[r.value===1&&S.jsx(kpe,{}),r.value===0&&S.jsx(ope,{}),r.value===2&&S.jsx(Rpe,{})]})]})]})},Npe=()=>{const e=Ee(r=>r.GUI);let t;switch(e.currentMenuTag){case Ke.Save:t=S.jsx(Cde,{});break;case Ke.Load:t=S.jsx(Ode,{});break;case Ke.Option:t=S.jsx(Ipe,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:AC.Menu_main,children:[S.jsx("div",{className:AC.Menu_TagContent,children:t}),S.jsx(Yhe,{})]})})},Lpe="_MainStage_main_9enex_1",Mpe="_MainStage_main_container_9enex_10",Dpe="_MainStage_bgContainer_9enex_17",Fpe="_MainStage_showBgSoftly_9enex_1",Bpe="_MainStage_bgContainer_Settled_9enex_27",jpe="_MainStage_oldBgContainer_9enex_37",$pe="_MainStage_oldBgFadeout_9enex_1",Upe="_MainStage_oldBgContainer_Settled_9enex_47",Gpe="_pixiContainer_9enex_72",zpe="_chooseContainer_9enex_77",Om={MainStage_main:Lpe,MainStage_main_container:Mpe,MainStage_bgContainer:Dpe,MainStage_showBgSoftly:Fpe,MainStage_bgContainer_Settled:Bpe,MainStage_oldBgContainer:jpe,MainStage_oldBgFadeout:$pe,MainStage_oldBgContainer_Settled:Upe,pixiContainer:Gpe,chooseContainer:zpe},Hpe=()=>{var g;const e=Ee(v=>v.stage),t=Ee(v=>v.GUI.titleBgm),r=Ee(v=>v.GUI.showTitle),n=Ee(v=>v.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=Ee(v=>v.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),p=(v,m,y)=>{y>=0?v.volume=0:v.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{v.volume+x>=m?v.volume=m:v.volume+x<=0?(v.volume=0,B.dispatch(we({key:"bgm",value:{src:"",enter:0,volume:100}}))):(v.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const v=document.getElementById("currentBgm");v&&(s===0?v.volume=a:p(v,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const v=document.getElementById("currentVocal");v&&(v.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const v=document.createElement("audio");v.src=u,v.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),v.volume=isNaN(l)?i/100:l/100):v.volume=c,v.play(),v.addEventListener("ended",()=>{v.remove()}),B.dispatch(we({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},Vpe=()=>{const e=Ee(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:Rn.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},Wpe="_TextBox_EventHandler_449dq_2",qpe="_TextBox_main_449dq_10",Xpe="_showSoftly_449dq_1",Ype="_TextBox_textElement_449dq_38",Kpe="_TextBox_textElement_start_449dq_43",Zpe="_TextDelayShow_449dq_1",Qpe="_TextBox_textElement_Settled_449dq_48",Jpe="_TextBox_showName_449dq_52",eve="_miniAvatarContainer_449dq_68",tve="_miniAvatarImg_449dq_76",Am={TextBox_EventHandler:Wpe,TextBox_main:qpe,showSoftly:Xpe,TextBox_textElement:Ype,TextBox_textElement_start:Kpe,TextDelayShow:Zpe,TextBox_textElement_Settled:Qpe,TextBox_showName:Jpe,miniAvatarContainer:eve,miniAvatarImg:tve},rve=()=>{const e=Ee(a=>a.stage),t=Ee(a=>a.userData);$.useEffect(()=>{});const r=SG.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{e()},[])}function Fs(e){$.useEffect(()=>function(){e()},[])}function nve(e){$.useEffect(()=>{e()})}const ive="_Backlog_main_zwyao_2",ove="_backlog_soft_in_zwyao_1",ave="_Backlog_main_out_zwyao_15",sve="_backlog_soft_out_zwyao_1",uve="_Backlog_main_out_IndexHide_zwyao_28",lve="_Backlog_main_DisableScroll_zwyao_32",cve="_backlog_top_zwyao_36",fve="_backlog_top_icon_zwyao_42",hve="_backlog_icon_softin_zwyao_1",dve="_backlog_title_zwyao_62",pve="_backlog_content_zwyao_72",vve="_backlog_item_zwyao_84",mve="_backlog_item_in_zwyao_1",gve="_backlog_item_out_zwyao_94",yve="_backlog_func_area_zwyao_104",_ve="_backlog_item_content_name_zwyao_113",xve="_backlog_item_content_zwyao_113",bve="_backlog_item_button_list_zwyao_137",Sve="_backlog_item_button_element_zwyao_144",wve="_backlog_item_content_text_zwyao_157",qt={Backlog_main:ive,backlog_soft_in:ove,Backlog_main_out:ave,backlog_soft_out:sve,Backlog_main_out_IndexHide:uve,Backlog_main_DisableScroll:lve,backlog_top:cve,backlog_top_icon:fve,backlog_icon_softin:hve,backlog_title:dve,backlog_content:pve,backlog_item:vve,backlog_item_in:mve,backlog_item_out:gve,backlog_func_area:yve,backlog_item_content_name:_ve,backlog_item_content:xve,backlog_item_button_list:bve,backlog_item_button_element:Sve,backlog_item_content_text:wve};var Eve=En,Tve=function(){return Eve.Date.now()},Cve=Tve,Ove=/\s/;function Ave(e){for(var t=e.length;t--&&Ove.test(e.charAt(t)););return t}var Pve=Ave,kve=Pve,Rve=/^\s+/;function Ive(e){return e&&e.slice(0,kve(e)+1).replace(Rve,"")}var Nve=Ive,Lve=Nve,LC=Qn,Mve=pd,MC=0/0,Dve=/^[-+]0x[0-9a-f]+$/i,Fve=/^0b[01]+$/i,Bve=/^0o[0-7]+$/i,jve=parseInt;function $ve(e){if(typeof e=="number")return e;if(Mve(e))return MC;if(LC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=LC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lve(e);var r=Fve.test(e);return r||Bve.test(e)?jve(e.slice(2),r?2:8):Dve.test(e)?MC:+e}var Uve=$ve,Gve=Qn,Pm=Cve,DC=Uve,zve="Expected a function",Hve=Math.max,Vve=Math.min;function Wve(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(zve);t=DC(t)||0,Gve(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Hve(DC(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function d(w){var T=n,R=i;return n=i=void 0,l=w,a=e.apply(R,T),a}function p(w){return l=w,s=setTimeout(m,t),c?d(w):a}function g(w){var T=w-u,R=w-l,A=t-T;return f?Vve(A,o-R):A}function v(w){var T=w-u,R=w-l;return u===void 0||T>=t||T<0||f&&R>=o}function m(){var w=Pm();if(v(w))return y(w);s=setTimeout(m,g(w))}function y(w){return s=void 0,h&&n?d(w):(n=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function x(){return s===void 0?a:y(Pm())}function b(){var w=Pm(),T=v(w);if(n=arguments,i=this,u=w,T){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(m,t),d(u)}return s===void 0&&(s=setTimeout(m,t)),a}return b.cancel=_,b.flush=x,b}var qve=Wve,Xve=qve,Yve=Qn,Kve="Expected a function";function Zve(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Kve);return Yve(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Xve(e,t,{leading:n,maxWait:t,trailing:i})}var Qve=Zve;const Jve=Nr(Qve);function eme(e){tme(),nme(),ome(),ime(),ame(),fme()}function tme(){const e=Ms(u=>u.GUI),t=ep(),r=Jd(e),n=QN(e),i=sme(e),o=lme(e),a=ume(e),s=$.useCallback(u=>i()?(t("showGlobalDialog",!1),u.preventDefault(),!1):(a()&&t("showExtra",!1),r()&&t("showTextBox",!e.current.showTextBox),n()&&(t("showBacklog",!1),t("showTextBox",!0)),o()&&t("showMenuPanel",!1),u.preventDefault(),!1),[]);Ds(()=>{document.addEventListener("contextmenu",s)}),Fs(()=>{document.removeEventListener("contextmenu",s)})}let rme=setTimeout(()=>{},0);function nme(){const e=Ms(u=>u.GUI),t=ep(),r=Jd(e),n=QN(e),i=JN(e),o=$.useCallback(Jve(()=>{Ht()},100),[]),a=$.useRef(0),s=$.useCallback(u=>{if(i())return;const l=u.wheelDelta&&(u.wheelDelta>0?"up":"down")||u.detail&&(u.detail<0?"up":"down")||"down",c=u.ctrlKey,f=document.querySelector(`.${qt.backlog_content}`);if(r()&&l==="up"&&!c)t("showBacklog",!0),t("showTextBox",!1);else if(n()&&l==="down"&&!c){if(f){let h=hme(f),d=new Date().getTime();h&&d-a.current>100&&(t("showBacklog",!1),t("showTextBox",!0)),a.current=d}}else r()&&l==="down"&&!c&&(clearTimeout(rme),O.gameplay.isFast=!0,setTimeout(()=>{O.gameplay.isFast=!1},150),o())},[]);Ds(()=>{document.addEventListener("wheel",s)}),Fs(()=>{document.removeEventListener("wheel",s)})}function ime(){const e=$.useCallback(a=>!a.isComposing&&!a.defaultPrevented&&a.code==="Escape",[]),t=Ms(a=>a.GUI),r=$.useCallback(()=>t.current.showTitle,[t]),n=JN(t),i=ep(),o=$.useCallback(a=>{!e(a)||r()||(n()?i("showPanicOverlay",!1):(i("showPanicOverlay",!0),zb()))},[]);Ds(()=>{document.addEventListener("keyup",o)}),Fs(()=>{document.removeEventListener("keyup",o)})}function ome(){const e=Ms(a=>a.GUI),t=Jd(e),r=$.useCallback(a=>a.keyCode===17,[]),n=$.useCallback(a=>{r(a)&&t()&&VN()},[]),i=$.useCallback(a=>{r(a)&&t()&&Ka()},[]),o=$.useCallback(a=>{Ka()},[]);Ds(()=>{document.addEventListener("keydown",n),document.addEventListener("keyup",i),window.addEventListener("blur",o)}),Fs(()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",i),window.removeEventListener("blur",o)}),nve(()=>{t()||Ka()})}function ame(){const e=cme(),t=$.useCallback(async r=>{e()&&await tJ()},[]);Ds(()=>{window.addEventListener("beforeunload",t)}),Fs(()=>{window.removeEventListener("beforeunload",t)})}function Jd(e){return $.useCallback(()=>!e.current.showTitle&&!e.current.showMenuPanel&&!e.current.showBacklog&&!e.current.showPanicOverlay,[e])}function QN(e){return $.useCallback(()=>e.current.showBacklog,[e])}function sme(e){return $.useCallback(()=>e.current.showGlobalDialog,[e])}function ume(e){return $.useCallback(()=>e.current.showExtra,[e])}function JN(e){return $.useCallback(()=>e.current.showPanicOverlay,[e])}function lme(e){return $.useCallback(()=>[Ke.Save,Ke.Load,Ke.Option].includes(e.current.currentMenuTag),[e])}function cme(){return $.useCallback(()=>O.sceneManager.sceneData.currentSentenceId!==0,[O.sceneManager.sceneData])}function ep(){const e=lr();return(t,r)=>{e(Me({component:t,visibility:r}))}}function fme(){const e=Ms(u=>u.GUI),t=Jd(e),r=ep(),n=$.useRef(!1),i=$.useCallback(u=>u.keyCode===32||u.keyCode===13,[]),o=$.useCallback(u=>{if(i(u)&&t()&&!n.current){if(!e.current.showTextBox){r("showTextBox",!0);return}zb(),Ht(),n.current=!0}},[]),a=$.useCallback(u=>{i(u)&&t()&&(n.current=!1)},[]),s=$.useCallback(u=>{n.current=!1},[]);Ds(()=>{document.addEventListener("keydown",o),document.addEventListener("keyup",a),document.addEventListener("blur",s)}),Fs(()=>{document.removeEventListener("keydown",o),document.removeEventListener("keyup",a),document.removeEventListener("blur",s)})}function hme(e){const{scrollTop:t,clientHeight:r,scrollHeight:n}=e;return t===0}function dme(e){const t=e.bgName;$.useEffect(()=>{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&FC(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),Ql(t),ne.debug("重设背景");const{duration:s,animation:u}=ki("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&FC(a)}},[t])}function FC(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=ki("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function pme(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==r&&si(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&Zc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:v,animation:m}=ki(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除中立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==r&&si(p,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==t&&si(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&Zc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:v,animation:m}=ki(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除左立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==t&&si(p,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==n&&si(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&Zc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:v,animation:m}=ki(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==n&&si(p,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,p;for(const g of i){const v=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(v);if(y){if(y.sourceUrl!==g.name){si(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(v,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=ki(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(v,g.name,g.basePosition),/.json$/.test(g.name)&&Zc(v,g.name,g.basePosition,((f=o.find(w=>w.target===v))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===v))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=ki(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(v);y&&y.sourceUrl!==g.name&&si(y,m,e.effects)}}const s=(p=O.gameplay.pixiStage)==null?void 0:p.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const v=g.key;if(i.findIndex(y=>y.key===v)<0){const y=`${g.key}-softin`;si(g,y,e.effects)}}}},[i])}function si(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=ki(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function Zc(...e){}function vme(e){const t=e.effects;setTimeout(()=>{mme(t)},10)}function mme(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,BC(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,BC(sx))}}}}function BC(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function gme(){const e=Ee(t=>t.stage);return dme(e),pme(e),vme(e),S.jsx("div",{style:{display:"none"}})}const yme="_introContainer_119k8_1",_me={introContainer:yme};function xme(){return S.jsx("div",{className:_me.introContainer,id:"introContainer"})}function jC(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(Me({component:"controlsVisibility",visibility:!1}))},1e3)):bme(e,r,n)}const Eme=()=>{const e=Ee(n=>n.stage),t=Ee(n=>n.GUI),r=lr();return eme(),S.jsxs("div",{className:Om.MainStage_main,children:[S.jsx(Vpe,{}),S.jsx(gme,{}),S.jsx("div",{id:"pixiContianer",className:Om.pixiContainer,style:{zIndex:Ub?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:Om.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx(Cpe,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(rve,{}),S.jsx(Hpe,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(Me({component:"showTextBox",visibility:!0}));return}zb(),Ht()},onDoubleClick:()=>{O.events.fullscreenDbClick.emit()},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&wme(n,e,t,r)}),S.jsx(xme,{})]})},Tme=()=>{const e=kr("gaming."),t=2.5,{i18n:r}=jd(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=_r(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=Ee(m=>m.GUI),f=Ee(m=>m.stage),h=lr(),d=(m,y)=>{h(Me({component:m,visibility:y}))},p=m=>{h(Bo(m))},g=Ee(m=>m.userData.saveData);let v=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];v=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(phe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(vhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(nhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(mhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{zN(),i()},onMouseEnter:n,children:[S.jsx(jN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{qN(),i()},onMouseEnter:n,children:[S.jsx(ohe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{Gg(0),i()},onMouseEnter:n,children:[S.jsx(ihe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:v})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{Kk(0),i()},onMouseEnter:n,children:[S.jsx(ahe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:v})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ke.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx($N,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ke.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(FN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ke.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(UN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Do({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Hb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(BN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{Xhe(),i()},onMouseEnter:n,children:c.showControls?S.jsx(fhe,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(_he,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},Cme=()=>{var h,d;const e=kr("gaming."),{playSeEnter:t,playSeClick:r}=_r(),n=Ee(p=>p.GUI),i=lr(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let p=[];for(let g=0;gb==="

"?S.jsx("br",{},`br${w}`):b),x=S.jsxs("div",{className:qt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:qt.backlog_func_area,children:[S.jsxs("div",{className:qt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),JQ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(ghe,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),v.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=B.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(xhe,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:qt.backlog_item_content_name,children:v.currentStageState.showName})]}),S.jsx("div",{className:qt.backlog_item_content,children:S.jsx("span",{className:qt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:v.currentStageState.vocal})]},"backlogItem"+v.currentStageState.showText+v.saveScene.currentSentenceId);p.unshift(x)}return p},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` + )`},children:[S.jsx("div",{id:"miniAvatar",className:g("miniAvatarContainer",Wt.miniAvatarContainer),children:l!==""&&S.jsx("img",{className:g("miniAvatarImg",Wt.miniAvatarImg),alt:"miniAvatar",src:l})}),c!==""&&S.jsx("div",{className:g("TextBox_showName",Wt.TextBox_showName),style:{fontSize:"200%",background:`rgba(11, 52, 110, ${p/100*.9})`,border:`4px solid rgba(255, 255, 255, ${p/100*.75})`,boxShadow:`3px 3px 10px rgba(100, 100, 100, ${p/100*.5})`},children:c.split("").map((m,y)=>S.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Wt.zhanwei,children:[m,S.jsx("span",{className:g("outerName",Wt.outerName),children:m}),d&&S.jsx("span",{className:g("innerName",Wt.innerName),children:m})]})},m+y))},c),S.jsx("div",{className:g("text",Wt.text),style:{fontSize:u,wordBreak:a||e.isFirefox?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:v})]})})}const tL=navigator.userAgent,Fve=/firefox/i.test(tL),Bve=/^((?!chrome|android).)*safari/i.test(tL),jve=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const y=()=>{const b=window.innerHeight,w=window.innerWidth,T=b/1440,R=w/2560,A=w/1440,P=b/2560;[T,R,A,P].forEach(D=>{D<=.2?t(!1):t(!0)})};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[]);const r=ye(y=>y.stage),n=ye(y=>y.userData),i=Tx(n.optionData.textSpeed),o=Ek(n.optionData.textSpeed);let a=P_(n.optionData.textSize)+"%";const s=JN(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=P_(r.showTextSize)+"%",l=r.showTextSize);const c=jd(n.optionData.textSize).with(xn.small,()=>3).with(xn.medium,()=>2).with(xn.large,()=>2).default(()=>2),f=qb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,p=r.currentDialogKey,g=r.miniAvatar,v=n.optionData.textboxOpacity,m=eL;return S.jsx(m,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:p,isSafari:Bve,isFirefox:Fve,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:v})};function BC(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function qb(e,t,r){const a=e.split("|").map(s=>Uve(s)).map(s=>{const u=[];return s.forEach((l,c)=>{jd(l.type).with("SegmentType.String",()=>{const f=$ve(l.value);u.push(...f)}).endsWith("SegmentType.Link",()=>{const f=l.value,h=S.jsxs("ruby",{children:[f.text,S.jsx("rt",{children:f.link})]},c+f.text);u.push(h)})}),u}).slice(0,r?void 0:t).reduce((s,u,l)=>[...s,...u,S.jsx("br",{},`br-${l}`)],[]);return a.pop(),a}function $ve(e){if(!e)return[];const t=[];let r="",n=BC(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(BC(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Uve(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const Gve=e=>{const t=kr("menu.options.pages.display.options."),r=ye(m=>m.userData),i=ye(m=>m.stage).bgName,o=Tx(r.optionData.textSpeed),a=Ek(r.optionData.textSpeed),s=r.optionData.textboxOpacity,u=P_(r.optionData.textSize)+"%",l=JN(),c=navigator.userAgent,f=/firefox/i.test(c),h=/^((?!chrome|android).)*safari/i.test(c),d=t("textPreview.text"),p=qb(d,3),g=eL,v={textArray:p,isText:!0,textDelay:o,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:u,currentDialogKey:"",isSafari:h,isFirefox:f,miniAvatar:"",textDuration:a,font:l,textSizeState:u,lineLimit:3,isUseStroke:!0,textboxOpacity:s};return S.jsx("div",{className:FC.textPreviewMain,style:{background:i?`bottom / cover no-repeat url(${i})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:FC.textbox,children:S.jsx(g,{...v})},`previewTextbox-${o}`)})};const Ta=e=>{const{playSeEnter:t}=_r();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function zve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.display.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("fullScreen.title"),children:S.jsx(yi,{textList:r("fullScreen.options.on","fullScreen.options.off"),functionList:[()=>{t(rt({key:"fullScreen",value:en.on})),Me()},()=>{t(rt({key:"fullScreen",value:en.off})),Me()}],currentChecked:e.optionData.fullScreen})},"fullScreen"),S.jsx(ar,{title:r("textSpeed.title"),children:S.jsx(yi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(rt({key:"textSpeed",value:vr.slow})),Me()},()=>{t(rt({key:"textSpeed",value:vr.normal})),Me()},()=>{t(rt({key:"textSpeed",value:vr.fast})),Me()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(ar,{title:r("textSize.title"),children:S.jsx(yi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(rt({key:"textSize",value:xn.small})),Me()},()=>{t(rt({key:"textSize",value:xn.medium})),Me()},()=>{t(rt({key:"textSize",value:xn.large})),Me()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(ar,{title:r("textFont.title"),children:S.jsx(yi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(rt({key:"textboxFont",value:Vn.song})),Me()},()=>{t(rt({key:"textboxFont",value:Vn.hei})),Me()},()=>{t(rt({key:"textboxFont",value:Vn.lxgw})),Me()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(ar,{title:r("textboxOpacity.title"),children:S.jsx(Ta,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(rt({key:"textboxOpacity",value:Number(i)})),Me()}})},"textboxOpacity"),S.jsx(ar,{full:!0,title:r("textPreview.title"),children:S.jsx(Gve,{})},"textPreview")]})}function Hve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.sound.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("volumeMain.title"),children:S.jsx(Ta,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(rt({key:"volumeMain",value:Number(i)})),Me()}})},"option4"),S.jsx(ar,{title:r("vocalVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"vocalVolume",value:Number(i)})),Me()}})},"option5"),S.jsx(ar,{title:r("bgmVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"bgmVolume",value:Number(i)})),Me()}})},"option6"),S.jsx(ar,{title:r("seVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"seVolume",value:Number(i)})),Me()}})},"option7"),S.jsx(ar,{title:r("uiSeVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"uiSeVolume",value:Number(i)})),Me()}})},"option8"),S.jsx(ar,{title:r("voiceOption.title"),children:S.jsx(yi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(rt({key:"voiceInterruption",value:hl.yes})),Me()},()=>{t(rt({key:"voiceInterruption",value:hl.no})),Me()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const Vve=()=>{const{playSeEnter:e,playSeSwitch:t}=_r(),r=En(0);$.useEffect(gl,[]);function n(o){return o===r.value?dr.Options_page_button+" "+dr.Options_page_button_active:dr.Options_page_button}const i=kr("menu.options.");return S.jsxs("div",{className:dr.Options_main,children:[S.jsx("div",{className:dr.Options_top,children:S.jsx("div",{className:dr.Options_title,children:S.jsx("div",{className:dr.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:dr.Options_page_container,children:[S.jsxs("div",{className:dr.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:dr.Options_main_content,children:[r.value===1&&S.jsx(zve,{}),r.value===0&&S.jsx(yve,{}),r.value===2&&S.jsx(Hve,{})]})]})]})},Wve=()=>{const e=ye(r=>r.GUI);let t;switch(e.currentMenuTag){case Ze.Save:t=S.jsx(jpe,{});break;case Ze.Load:t=S.jsx($pe,{});break;case Ze.Option:t=S.jsx(Vve,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:NC.Menu_main,children:[S.jsx("div",{className:NC.Menu_TagContent,children:t}),S.jsx(upe,{})]})})},qve="_MainStage_main_9enex_1",Xve="_MainStage_main_container_9enex_10",Yve="_MainStage_bgContainer_9enex_17",Kve="_MainStage_showBgSoftly_9enex_1",Zve="_MainStage_bgContainer_Settled_9enex_27",Qve="_MainStage_oldBgContainer_9enex_37",Jve="_MainStage_oldBgFadeout_9enex_1",eme="_MainStage_oldBgContainer_Settled_9enex_47",tme="_pixiContainer_9enex_72",rme="_chooseContainer_9enex_77",km={MainStage_main:qve,MainStage_main_container:Xve,MainStage_bgContainer:Yve,MainStage_showBgSoftly:Kve,MainStage_bgContainer_Settled:Zve,MainStage_oldBgContainer:Qve,MainStage_oldBgFadeout:Jve,MainStage_oldBgContainer_Settled:eme,pixiContainer:tme,chooseContainer:rme},nme=()=>{var g;const e=ye(v=>v.stage),t=ye(v=>v.GUI.titleBgm),r=ye(v=>v.GUI.showTitle),n=ye(v=>v.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=ye(v=>v.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),p=(v,m,y)=>{y>=0?v.volume=0:v.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{v.volume+x>=m?v.volume=m:v.volume+x<=0?(v.volume=0,B.dispatch(Ee({key:"bgm",value:{src:"",enter:0,volume:100}}))):(v.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const v=document.getElementById("currentBgm");v&&(s===0?v.volume=a:p(v,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const v=document.getElementById("currentVocal");v&&(v.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const v=document.createElement("audio");v.src=u,v.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),v.volume=isNaN(l)?i/100:l/100):v.volume=c,v.play(),v.addEventListener("ended",()=>{v.remove()}),B.dispatch(Ee({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},ime=()=>{const e=ye(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:In.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},ome="_TextBox_EventHandler_449dq_2",ame="_TextBox_main_449dq_10",sme="_showSoftly_449dq_1",ume="_TextBox_textElement_449dq_38",lme="_TextBox_textElement_start_449dq_43",cme="_TextDelayShow_449dq_1",fme="_TextBox_textElement_Settled_449dq_48",hme="_TextBox_showName_449dq_52",dme="_miniAvatarContainer_449dq_68",pme="_miniAvatarImg_449dq_76",Rm={TextBox_EventHandler:ome,TextBox_main:ame,showSoftly:sme,TextBox_textElement:ume,TextBox_textElement_start:lme,TextDelayShow:cme,TextBox_textElement_Settled:fme,TextBox_showName:hme,miniAvatarContainer:dme,miniAvatarImg:pme},vme=()=>{const e=ye(a=>a.stage),t=ye(a=>a.userData);$.useEffect(()=>{});const r=EG.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&jC(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),ec(t),ne.debug("重设背景");const{duration:s,animation:u}=Ii("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&jC(a)}},[t])}function jC(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=Ii("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function gme(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==r&&ui(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&Jc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:v,animation:m}=Ii(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除中立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==r&&ui(p,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==t&&ui(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&Jc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:v,animation:m}=Ii(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除左立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==t&&ui(p,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==n&&ui(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&Jc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:v,animation:m}=Ii(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==n&&ui(p,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,p;for(const g of i){const v=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(v);if(y){if(y.sourceUrl!==g.name){ui(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(v,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=Ii(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(v,g.name,g.basePosition),/.json$/.test(g.name)&&Jc(v,g.name,g.basePosition,((f=o.find(w=>w.target===v))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===v))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=Ii(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(v);y&&y.sourceUrl!==g.name&&ui(y,m,e.effects)}}const s=(p=O.gameplay.pixiStage)==null?void 0:p.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const v=g.key;if(i.findIndex(y=>y.key===v)<0){const y=`${g.key}-softin`;ui(g,y,e.effects)}}}},[i])}function ui(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=Ii(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function Jc(...e){}function yme(e){const t=e.effects;setTimeout(()=>{_me(t)},10)}function _me(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(lx))}}}}function $C(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function xme(){const e=ye(t=>t.stage);return mme(e),gme(e),yme(e),S.jsx("div",{style:{display:"none"}})}const bme="_introContainer_119k8_1",Sme={introContainer:bme};function wme(){return S.jsx("div",{className:Sme.introContainer,id:"introContainer"})}function UC(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(De({component:"controlsVisibility",visibility:!1}))},1e3)):Eme(e,r,n)}const Ome=()=>{const e=ye(n=>n.stage),t=ye(n=>n.GUI),r=Ht();return Ute(),S.jsxs("div",{className:km.MainStage_main,children:[S.jsx(ime,{}),S.jsx(xme,{}),S.jsx("div",{id:"pixiContianer",className:km.pixiContainer,style:{zIndex:Vb?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:km.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx(jve,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(vme,{}),S.jsx(nme,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(De({component:"showTextBox",visibility:!0}));return}Hx(),Vt()},onDoubleClick:()=>{O.events.fullscreenDbClick.emit()},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&Cme(n,e,t,r)}),S.jsx(wme,{})]})},Ame=()=>{const e=kr("gaming."),t=2.5,{i18n:r}=Ud(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=_r(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=ye(m=>m.GUI),f=ye(m=>m.stage),h=Ht(),d=(m,y)=>{h(De({component:m,visibility:y}))},p=m=>{h(jo(m))},g=ye(m=>m.userData.saveData);let v=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];v=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(zde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(Hde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(Ide,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(Vde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{SR(),i()},onMouseEnter:n,children:[S.jsx(YN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{CR(),i()},onMouseEnter:n,children:[S.jsx(Lde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{Hg(0),i()},onMouseEnter:n,children:[S.jsx(Nde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:v})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{Qk(0),i()},onMouseEnter:n,children:[S.jsx(Mde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:v})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ze.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(KN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ze.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(qN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ze.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(ZN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Fo({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(XN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{spe(),i()},onMouseEnter:n,children:c.showControls?S.jsx($de,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(Xde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},Pme=()=>{var h,d;const e=kr("gaming."),{playSeEnter:t,playSeClick:r}=_r(),n=ye(p=>p.GUI),i=Ht(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let p=[];for(let g=0;gb==="
"?S.jsx("br",{},`br${w}`):b),x=S.jsxs("div",{className:qt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:qt.backlog_func_area,children:[S.jsxs("div",{className:qt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),tJ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(Wde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),v.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=B.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(Yde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:qt.backlog_item_content_name,children:v.currentStageState.showName})]}),S.jsx("div",{className:qt.backlog_item_content,children:S.jsx("span",{className:qt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:v.currentStageState.vocal})]},"backlogItem"+v.currentStageState.showText+v.saveScene.currentSentenceId);p.unshift(x)}return p},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` ${n.showBacklog?qt.Backlog_main:qt.Backlog_main_out} ${a?qt.Backlog_main_out_IndexHide:""} - `,children:[S.jsxs("div",{className:qt.backlog_top,children:[S.jsx(DN,{className:qt.backlog_top_icon,onClick:()=>{r(),i(Me({component:"showBacklog",visibility:!1})),i(Me({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:qt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${qt.backlog_content} ${u?qt.Backlog_main_DisableScroll:""}`,children:f})]})})};function Ome(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=Ee(g=>g.userData.appreciationData),i="Title_BGM",o=wn(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,v)=>{g.url===r&&(a=g.name,s=v)});const f=wn("");a!==i&&a!==f.value&&f.set(a);const h=lr();function d(g){const v=n.bgm[g];f.set(v.name),h(hh({asset:"titleBgm",value:v.url}))}const p=n.bgm.map((g,v)=>{let m=ot.bgmElement;return g.name===f.value&&(m=m+" "+ot.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(hh({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${v*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:ot.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:ot.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(uhe,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(jN,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(she,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:ot.bgmControlButton,children:S.jsx(yhe,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:ot.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:ot.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(dhe,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:ot.bgmListContainer,children:[" ",p]})]})}function Jme(e){const t=wn(!1),{playSeEnter:r,playSeClick:n}=_r();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:ot.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:ot.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:ot.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function ege(){const t=Ee(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=wn(1),{playSeEnter:i,playSeClick:o}=_r(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:ot.cgMain,children:[S.jsx("div",{className:ot.cgShowDiv,children:S.jsx("div",{className:ot.cgShowDivWarpper,children:u})}),S.jsx("div",{className:ot.cgContainer,children:a})]})}function tge(e,t){return Math.round(Math.random()*(t-e))+e}function rge(){const{playSeClick:e}=_r(),t=Ee(i=>i.GUI.showExtra),r=lr(),n=kr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:ot.extra,children:[S.jsxs("div",{className:ot.extra_top,children:[S.jsx(DN,{className:ot.extra_top_icon,onClick:()=>{r(Me({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:ot.extra_title,children:n("title")})]}),S.jsxs("div",{className:ot.mainContainer,children:[S.jsx(ege,{}),S.jsx(Qme,{})]})]})})}const nge="_tag_yghix_2",ige="_container_yghix_17",oge="_showContainer_yghix_1",age="_singleButton_yghix_33",sge="_button_text_yghix_37",Lt={tag:nge,container:ige,showContainer:oge,singleButton:age,button_text:sge},uge=()=>{const e=wn(!1),t=Ee(o=>o.stage),r=lr(),n=(o,a)=>{r(Me({component:o,visibility:a}))},i=o=>{r(Bo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Lt.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(lhe,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:Lt.container,children:[S.jsx("span",{className:Lt.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:Lt.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:Lt.singleButton,onClick:()=>{zN(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:Lt.singleButton,onClick:()=>{qN(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ke.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ke.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ke.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),Hb()},children:S.jsx("span",{className:Lt.button_text,children:"标题 / TITLE"})})]})]})})},lge="_devPanelMain_11x6i_1",cge="_devPanelOpener_11x6i_13",$C={devPanelMain:lge,devPanelOpener:cge};function fge(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function hge(){function e(){return!!window.location.hash.match(/dev/)}const t=wn(!1),r=wn(window.location.hash),n=Ee(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=jd(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>fge(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:$C.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:$C.devPanelOpener,children:"Open Dev Panel"})]})}const dge="_trans_8uz61_2",pge="_langWrapper_8uz61_10",vge="_lang_8uz61_10",mge="_langSelect_8uz61_29",gge="_langSelectButton_8uz61_35",du={trans:dge,langWrapper:pge,lang:vge,langSelect:mge,langSelectButton:gge};function yge(){const e=XN(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:du.trans,children:S.jsxs("div",{className:du.langWrapper,children:[S.jsx("div",{className:du.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:du.langSelect,children:Object.keys(sh).map(i=>S.jsx("div",{className:du.langSelectButton,onClick:()=>n(na[i]),children:sh[i]},i))})]})})})}const _ge="_panic_overlay_main_1ysz4_1",xge={panic_overlay_main:_ge},bge="_yoozle_blue_1r48o_1",Sge="_yoozle_red_1r48o_5",wge="_yoozle_yellow_1r48o_9",Ege="_yoozle_green_1r48o_13",Tge="_yoozle_e_rotate_1r48o_17",Cge="_yoozle_container_1r48o_22",Oge="_yoozle_title_1r48o_28",Age="_yoozle_search_1r48o_37",Pge="_yoozle_search_bar_1r48o_44",kge="_yoozle_search_buttons_1r48o_51",Rge="_yoozle_button_1r48o_55",br={yoozle_blue:bge,yoozle_red:Sge,yoozle_yellow:wge,yoozle_green:Ege,yoozle_e_rotate:Tge,yoozle_container:Cge,yoozle_title:Oge,yoozle_search:Age,yoozle_search_bar:Pge,yoozle_search_buttons:kge,yoozle_button:Rge},Ige=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:br.yoozle_container,children:[S.jsx("div",{className:br.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:br.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:br.yoozle_red,children:"o"}),S.jsx("span",{className:br.yoozle_yellow,children:"o"}),S.jsx("span",{className:br.yoozle_blue,children:"z"}),S.jsx("span",{className:br.yoozle_green,children:"l"}),S.jsx("span",{className:`${br.yoozle_red} ${br.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:br.yoozle_search,children:[S.jsx("input",{className:br.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:br.yoozle_search_buttons,children:[S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),Nge=()=>{const e=Ee(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),Wn.createPortal(S.jsx("div",{className:t?xge.panic_overlay_main:"",children:t&&S.jsx(Ige,{})}),document.querySelector("div#panic-overlay"))};function Lge(){return $.useEffect(()=>{$fe()},[]),S.jsx("div",{className:"App",children:S.jsxs(hZ,{store:B,children:[S.jsx(yge,{}),S.jsx(Eme,{}),S.jsx(Tme,{}),S.jsx(uge,{}),S.jsx(Cme,{}),S.jsx(Cee,{}),S.jsx(Ree,{}),S.jsx(rge,{}),S.jsx(Npe,{}),S.jsx(Vhe,{}),S.jsx(Nge,{}),S.jsx(hge,{})]})})}function Ki(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A_(e,t){return A_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},A_(e,t)}function tp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A_(e,t)}function nc(e,t){if(t&&($t(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ki(e)}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kn(e)}function Mge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dge(e){return oR(e)||Mge(e)||aR(e)||sR()}function UC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function GC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.init(t,r)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||Fge,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function HC(e,t,r){var n=Wb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function $ge(e,t,r,n){var i=Wb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function Ah(e,t){var r=Wb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Uge(e,t,r){var n=Ah(e,r);return n!==void 0?n:Ah(t,r)}function eL(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):eL(e[n],t[n],r):e[n]=t[n]);return e}function _a(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Gge={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function zge(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Gge[t]}):e}var rp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Hge=[" ",",","?","!",";"];function Vge(e,t,r){t=t||"",r=r||"";var n=Hge.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Ph(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Ph(u,l,r):void 0}i=i[n[o]]}return i}}function VC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Xge=function(e){tp(r,e);var t=Wge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Tn(this,r),i=t.call(this),rp&&uo.call(Ki(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Cn(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=Ah(this.data,c);return f||!l||typeof a!="string"?f:Ph(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),HC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=Ah(this.data,c)||{};s?eL(f,a,u):f=Qc(Qc({},f),a),HC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Qc(Qc({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(uo),tL={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function WC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var qC={},XC=function(e){tp(r,e);var t=Yge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Tn(this,r),i=t.call(this),rp&&uo.call(Ki(i)),jge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Ki(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=$n.create("translator"),i}return Cn(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Vge(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if($t(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),$t(o)==="object"&&(o=er({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],p=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var v=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(v).concat(f),usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:"".concat(d).concat(v).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(R&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,er(er({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var D=b==="[object Array]",F=D?[]:{},H=D?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);F[re]=this.translate(z,er(er({},o),{joinArrays:!1,ns:h})),F[re]===z&&(F[re]=y[re])}y=F}}else if(R&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,le=!1,$e=o.count!==void 0&&typeof o.count!="string",me=r.hasDefaultValue(o),Q=$e?this.pluralResolver.getSuffix(p,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&me&&(q=!0,y=L),this.isValidLookup(y)||(le=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&le?void 0:y,ae=me&&L!==y&&this.options.updateMissing;if(le||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",p,d,f,ae?L:y),l){var ge=this.resolve(f,er(er({},o),{},{keySeparator:!1}));ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var xe=[],be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(var Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),p=d.key;u=p;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var v=a.count!==void 0&&typeof a.count!="string",m=v&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!qC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(qC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[p];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,p,b,x,a);else{var T;v&&(T=o.pluralResolver.getSuffix(b,a.count,a));var R="".concat(o.options.pluralSeparator,"zero");if(v&&(w.push(p+T),m&&w.push(p+R)),y){var A="".concat(p).concat(o.options.contextSeparator).concat(a.context);w.push(A),v&&(w.push(A+T),m&&w.push(A+R))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(uo);function Rm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var YC=function(){function e(t){Tn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$n.create("languageUtils")}return Cn(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Rm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Rm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),Zge=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Qge={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},Jge=["v1","v2","v3"],KC={zero:0,one:1,two:2,few:3,many:4,other:5};function eye(){var e={};return Zge.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:Qge[t.fc]}})}),e}var tye=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.languageUtils=t,this.options=r,this.logger=$n.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=eye()}return Cn(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return KC[a]-KC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!Jge.includes(this.options.compatibilityJSON)}}]),e}();function ZC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Uge(e,t,r);return!o&&i&&typeof r=="string"&&(o=Ph(e,r,n),o===void 0&&(o=Ph(t,r,n))),o}var rye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return Cn(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:zge,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?_a(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?_a(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?_a(n.nestingPrefix):n.nestingPrefixEscaped||_a("$t("),this.nestingSuffix=n.nestingSuffix?_a(n.nestingSuffix):n.nestingSuffixEscaped||_a(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(v){return v.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=QC(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,pn(pn(pn({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(QC(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,pn(pn(pn({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(v){for(l=0;s=v.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(p){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=zC(u));var _=v.safeValue(u);if(r=r.replace(s[0],_),p?(v.regex.lastIndex+=u.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,p){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var v=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(v[1]);d=v[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),p&&(u=pn(pn({},p),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=pn({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=zC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,p){return i.format(d,p,o.lng,pn(pn({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function JC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ui(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=Dge(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function xa(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var iye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("formatter"),this.options=t,this.formats={number:xa(function(r,n){var i=new Intl.NumberFormat(r,ui({},n));return function(o){return i.format(o)}}),currency:xa(function(r,n){var i=new Intl.NumberFormat(r,ui(ui({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:xa(function(r,n){var i=new Intl.DateTimeFormat(r,ui({},n));return function(o){return i.format(o)}}),relativetime:xa(function(r,n){var i=new Intl.RelativeTimeFormat(r,ui({},n));return function(o){return i.format(o,n.range||"day")}}),list:xa(function(r,n){var i=new Intl.ListFormat(r,ui({},n));return function(o){return i.format(o)}})},this.init(t)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=xa(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=nye(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var p=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=g.locale||g.lng||a.locale||a.lng||i;p=o.formats[h](l,v,ui(ui(ui({},d),a),g))}catch(m){o.logger.warn(m)}return p}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tO(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var uye=function(e){tp(r,e);var t=oye(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Tn(this,r),a=t.call(this),rp&&uo.call(Ki(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=$n.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Cn(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var p=!0;o.forEach(function(g){var v="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[v]=2:u.state[v]<0||(u.state[v]===1?c[v]===void 0&&(c[v]=!0):(u.state[v]=1,p=!1,c[v]===void 0&&(c[v]=!0),l[v]===void 0&&(l[v]=!0),h[g]===void 0&&(h[g]=!0)))}),p||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){$ge(f.loaded,[u],l),sye(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(p){c[h][p]===void 0&&(c[h][p]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,v){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&v&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=tO(tO({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(p){return c(null,p)}).catch(c):c(null,d)}catch(p){c(p)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(uo);function rO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if($t(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),$t(t[2])==="object"||$t(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function nO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function iO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jc(){}function fye(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var kh=function(e){tp(r,e);var t=lye(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Tn(this,r),n=t.call(this),rp&&uo.call(Ki(n)),n.options=nO(i),n.services={},n.logger=$n,n.modules={external:[]},fye(Ki(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),nc(n,Ki(n));setTimeout(function(){n.init(i,o)},0)}return n}return Cn(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=rO();this.options=kn(kn(kn({},s),this.options),nO(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=kn(kn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?$n.init(u(this.modules.logger),this.options):$n.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=iye);var c=new YC(this.options);this.store=new Xge(this.options.resources,this.options);var f=this.services;f.logger=$n,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new tye(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new rye(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new uye(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var p=["addResource","addResources","addResourceBundle","removeResourceBundle"];p.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=pu(),v=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jc,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var p=o.services.languageUtils.toResolveHierarchy(d);p.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=pu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Jc),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&tL.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=pu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(p){l(p,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if($t(f)!=="object"){for(var d=arguments.length,p=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,p){var g=o.services.backendConnector.state["".concat(d,"|").concat(p)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=pu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=pu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new YC(rO());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jc,s=kn(kn(kn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=kn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new XC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new kh(e,t)});var cr=kh.createInstance();cr.createInstance=kh.createInstance;cr.createInstance;cr.dir;cr.init;cr.loadResources;cr.reloadResources;cr.use;cr.changeLanguage;cr.getFixedT;cr.t;cr.exists;cr.setDefaultNamespace;cr.hasLoadedNamespace;cr.loadNamespaces;cr.loadLanguages;cr.use(OJ).init({resources:dG||{},lng:na[pG]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));Wn.render(S.jsx(Y.StrictMode,{children:S.jsx(RJ,{children:S.jsx(Lge,{})})}),document.getElementById("root"));export{gr as C,jn as S,de as T,O as W,pye as r}; + `,children:[S.jsxs("div",{className:qt.backlog_top,children:[S.jsx(WN,{className:qt.backlog_top_icon,onClick:()=>{r(),i(De({component:"showBacklog",visibility:!1})),i(De({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:qt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${qt.backlog_content} ${u?qt.Backlog_main_DisableScroll:""}`,children:f})]})})};function kme(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=ye(g=>g.userData.appreciationData),i="Title_BGM",o=En(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,v)=>{g.url===r&&(a=g.name,s=v)});const f=En("");a!==i&&a!==f.value&&f.set(a);const h=Ht();function d(g){const v=n.bgm[g];f.set(v.name),h(ph({asset:"titleBgm",value:v.url}))}const p=n.bgm.map((g,v)=>{let m=at.bgmElement;return g.name===f.value&&(m=m+" "+at.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(ph({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${v*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:at.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:at.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Fde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(YN,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Dde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(qde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:at.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:at.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(Gde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:at.bgmListContainer,children:[" ",p]})]})}function rge(e){const t=En(!1),{playSeEnter:r,playSeClick:n}=_r();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:at.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:at.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:at.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function nge(){const t=ye(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=En(1),{playSeEnter:i,playSeClick:o}=_r(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:at.cgMain,children:[S.jsx("div",{className:at.cgShowDiv,children:S.jsx("div",{className:at.cgShowDivWarpper,children:u})}),S.jsx("div",{className:at.cgContainer,children:a})]})}function ige(e,t){return Math.round(Math.random()*(t-e))+e}function oge(){const{playSeClick:e}=_r(),t=ye(i=>i.GUI.showExtra),r=Ht(),n=kr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:at.extra,children:[S.jsxs("div",{className:at.extra_top,children:[S.jsx(WN,{className:at.extra_top_icon,onClick:()=>{r(De({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:at.extra_title,children:n("title")})]}),S.jsxs("div",{className:at.mainContainer,children:[S.jsx(nge,{}),S.jsx(tge,{})]})]})})}const age="_tag_yghix_2",sge="_container_yghix_17",uge="_showContainer_yghix_1",lge="_singleButton_yghix_33",cge="_button_text_yghix_37",Lt={tag:age,container:sge,showContainer:uge,singleButton:lge,button_text:cge},fge=()=>{const e=En(!1),t=ye(o=>o.stage),r=Ht(),n=(o,a)=>{r(De({component:o,visibility:a}))},i=o=>{r(jo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Lt.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(Bde,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:Lt.container,children:[S.jsx("span",{className:Lt.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:Lt.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:Lt.singleButton,onClick:()=>{SR(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:Lt.singleButton,onClick:()=>{CR(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),Wb()},children:S.jsx("span",{className:Lt.button_text,children:"标题 / TITLE"})})]})]})})},hge="_devPanelMain_11x6i_1",dge="_devPanelOpener_11x6i_13",GC={devPanelMain:hge,devPanelOpener:dge};function pge(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function vge(){function e(){return!!window.location.hash.match(/dev/)}const t=En(!1),r=En(window.location.hash),n=ye(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=Ud(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>pge(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:GC.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:GC.devPanelOpener,children:"Open Dev Panel"})]})}const mge="_trans_8uz61_2",gge="_langWrapper_8uz61_10",yge="_lang_8uz61_10",_ge="_langSelect_8uz61_29",xge="_langSelectButton_8uz61_35",vu={trans:mge,langWrapper:gge,lang:yge,langSelect:_ge,langSelectButton:xge};function bge(){const e=QN(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:vu.trans,children:S.jsxs("div",{className:vu.langWrapper,children:[S.jsx("div",{className:vu.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:vu.langSelect,children:Object.keys(lh).map(i=>S.jsx("div",{className:vu.langSelectButton,onClick:()=>n(ia[i]),children:lh[i]},i))})]})})})}const Sge="_panic_overlay_main_1ysz4_1",wge={panic_overlay_main:Sge},Ege="_yoozle_blue_1r48o_1",Tge="_yoozle_red_1r48o_5",Cge="_yoozle_yellow_1r48o_9",Oge="_yoozle_green_1r48o_13",Age="_yoozle_e_rotate_1r48o_17",Pge="_yoozle_container_1r48o_22",kge="_yoozle_title_1r48o_28",Rge="_yoozle_search_1r48o_37",Ige="_yoozle_search_bar_1r48o_44",Nge="_yoozle_search_buttons_1r48o_51",Lge="_yoozle_button_1r48o_55",br={yoozle_blue:Ege,yoozle_red:Tge,yoozle_yellow:Cge,yoozle_green:Oge,yoozle_e_rotate:Age,yoozle_container:Pge,yoozle_title:kge,yoozle_search:Rge,yoozle_search_bar:Ige,yoozle_search_buttons:Nge,yoozle_button:Lge},Mge=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:br.yoozle_container,children:[S.jsx("div",{className:br.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:br.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:br.yoozle_red,children:"o"}),S.jsx("span",{className:br.yoozle_yellow,children:"o"}),S.jsx("span",{className:br.yoozle_blue,children:"z"}),S.jsx("span",{className:br.yoozle_green,children:"l"}),S.jsx("span",{className:`${br.yoozle_red} ${br.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:br.yoozle_search,children:[S.jsx("input",{className:br.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:br.yoozle_search_buttons,children:[S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),Dge=()=>{const e=ye(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),qn.createPortal(S.jsx("div",{className:t?wge.panic_overlay_main:"",children:t&&S.jsx(Mge,{})}),document.querySelector("div#panic-overlay"))};function Fge(){const e=ye(a=>a.userData),t=ye(a=>a.GUI),r=Ht(),n=e.optionData.fullScreen,i=t.isEnterGame;let o=window.innerHeight;$.useEffect(()=>{switch(n){case en.on:{i&&(document.documentElement.requestFullscreen(),La&&La.lock(["Escape","F11"]));break}case en.off:{document.fullscreenElement&&(document.exitFullscreen(),La&&La.unlock());break}}},[n]),$.useEffect(()=>{const a=()=>{n===en.on&&i&&o>window.innerHeight&&o!==window.innerWidth&&(r(rt({key:"fullScreen",value:en.off})),Me()),o=window.innerHeight};return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[n,o])}function Bge(){return $.useEffect(()=>{vde()},[]),Fge(),S.jsxs("div",{className:"App",children:[S.jsx(bge,{}),S.jsx(Ome,{}),S.jsx(Ame,{}),S.jsx(fge,{}),S.jsx(Pme,{}),S.jsx(tre,{}),S.jsx(are,{}),S.jsx(oge,{}),S.jsx(Wve,{}),S.jsx(ipe,{}),S.jsx(Dge,{}),S.jsx(vge,{})]})}function Zi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k_(e,t){return k_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k_(e,t)}function np(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k_(e,t)}function oc(e,t){if(t&&($t(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zi(e)}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zn(e)}function jge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ge(e){return sR(e)||jge(e)||uR(e)||lR()}function zC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};Cn(this,e),this.init(t,r)}return On(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||Uge,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function WC(e,t,r){var n=Xb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function Hge(e,t,r,n){var i=Xb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function kh(e,t){var r=Xb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Vge(e,t,r){var n=kh(e,r);return n!==void 0?n:kh(t,r)}function rL(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):rL(e[n],t[n],r):e[n]=t[n]);return e}function xa(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Wge={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function qge(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Wge[t]}):e}var ip=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Xge=[" ",",","?","!",";"];function Yge(e,t,r){t=t||"",r=r||"";var n=Xge.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Rh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Rh(u,l,r):void 0}i=i[n[o]]}return i}}function qC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Qge=function(e){np(r,e);var t=Kge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Cn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return On(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=kh(this.data,c);return f||!l||typeof a!="string"?f:Rh(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),WC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=kh(this.data,c)||{};s?rL(f,a,u):f=ef(ef({},f),a),WC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ef(ef({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(lo),nL={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function XC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var YC={},KC=function(e){np(r,e);var t=Jge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Cn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),zge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Zi(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Un.create("translator"),i}return On(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Yge(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if($t(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),$t(o)==="object"&&(o=tr({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],p=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var v=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(v).concat(f),usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:"".concat(d).concat(v).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(R&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,tr(tr({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var D=b==="[object Array]",F=D?[]:{},H=D?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);F[re]=this.translate(z,tr(tr({},o),{joinArrays:!1,ns:h})),F[re]===z&&(F[re]=y[re])}y=F}}else if(R&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,le=!1,Ue=o.count!==void 0&&typeof o.count!="string",me=r.hasDefaultValue(o),Q=Ue?this.pluralResolver.getSuffix(p,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&me&&(q=!0,y=L),this.isValidLookup(y)||(le=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&le?void 0:y,ae=me&&L!==y&&this.options.updateMissing;if(le||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",p,d,f,ae?L:y),l){var ge=this.resolve(f,tr(tr({},o),{},{keySeparator:!1}));ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var be=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var Ge=0;Ge1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),p=d.key;u=p;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var v=a.count!==void 0&&typeof a.count!="string",m=v&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!YC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(YC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[p];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,p,b,x,a);else{var T;v&&(T=o.pluralResolver.getSuffix(b,a.count,a));var R="".concat(o.options.pluralSeparator,"zero");if(v&&(w.push(p+T),m&&w.push(p+R)),y){var A="".concat(p).concat(o.options.contextSeparator).concat(a.context);w.push(A),v&&(w.push(A+T),m&&w.push(A+R))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(lo);function Nm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=function(){function e(t){Cn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Un.create("languageUtils")}return On(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Nm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),tye=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],rye={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},nye=["v1","v2","v3"],QC={zero:0,one:1,two:2,few:3,many:4,other:5};function iye(){var e={};return tye.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:rye[t.fc]}})}),e}var oye=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Cn(this,e),this.languageUtils=t,this.options=r,this.logger=Un.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=iye()}return On(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return QC[a]-QC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!nye.includes(this.options.compatibilityJSON)}}]),e}();function JC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vn(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Vge(e,t,r);return!o&&i&&typeof r=="string"&&(o=Rh(e,r,n),o===void 0&&(o=Rh(t,r,n))),o}var aye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cn(this,e),this.logger=Un.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return On(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:qge,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?xa(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xa(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?xa(n.nestingPrefix):n.nestingPrefixEscaped||xa("$t("),this.nestingSuffix=n.nestingSuffix?xa(n.nestingSuffix):n.nestingSuffixEscaped||xa(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(v){return v.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=eO(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,vn(vn(vn({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(eO(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,vn(vn(vn({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(v){for(l=0;s=v.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(p){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=VC(u));var _=v.safeValue(u);if(r=r.replace(s[0],_),p?(v.regex.lastIndex+=u.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,p){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var v=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(v[1]);d=v[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),p&&(u=vn(vn({},p),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=vn({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=VC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,p){return i.format(d,p,o.lng,vn(vn({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function li(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=$ge(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function ba(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var uye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cn(this,e),this.logger=Un.create("formatter"),this.options=t,this.formats={number:ba(function(r,n){var i=new Intl.NumberFormat(r,li({},n));return function(o){return i.format(o)}}),currency:ba(function(r,n){var i=new Intl.NumberFormat(r,li(li({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:ba(function(r,n){var i=new Intl.DateTimeFormat(r,li({},n));return function(o){return i.format(o)}}),relativetime:ba(function(r,n){var i=new Intl.RelativeTimeFormat(r,li({},n));return function(o){return i.format(o,n.range||"day")}}),list:ba(function(r,n){var i=new Intl.ListFormat(r,li({},n));return function(o){return i.format(o)}})},this.init(t)}return On(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=ba(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=sye(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var p=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=g.locale||g.lng||a.locale||a.lng||i;p=o.formats[h](l,v,li(li(li({},d),a),g))}catch(m){o.logger.warn(m)}return p}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nO(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var hye=function(e){np(r,e);var t=lye(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Cn(this,r),a=t.call(this),ip&&lo.call(Zi(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Un.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return On(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var p=!0;o.forEach(function(g){var v="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[v]=2:u.state[v]<0||(u.state[v]===1?c[v]===void 0&&(c[v]=!0):(u.state[v]=1,p=!1,c[v]===void 0&&(c[v]=!0),l[v]===void 0&&(l[v]=!0),h[g]===void 0&&(h[g]=!0)))}),p||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){Hge(f.loaded,[u],l),fye(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(p){c[h][p]===void 0&&(c[h][p]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,v){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&v&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=nO(nO({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(p){return c(null,p)}).catch(c):c(null,d)}catch(p){c(p)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(lo);function iO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if($t(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),$t(t[2])==="object"||$t(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(){}function vye(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Ih=function(e){np(r,e);var t=dye(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Cn(this,r),n=t.call(this),ip&&lo.call(Zi(n)),n.options=oO(i),n.services={},n.logger=Un,n.modules={external:[]},vye(Zi(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),oc(n,Zi(n));setTimeout(function(){n.init(i,o)},0)}return n}return On(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=iO();this.options=Rn(Rn(Rn({},s),this.options),oO(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Rn(Rn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?Un.init(u(this.modules.logger),this.options):Un.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=uye);var c=new ZC(this.options);this.store=new Qge(this.options.resources,this.options);var f=this.services;f.logger=Un,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new oye(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new aye(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new hye(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var p=["addResource","addResources","addResourceBundle","removeResourceBundle"];p.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=mu(),v=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var p=o.services.languageUtils.toResolveHierarchy(d);p.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=mu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=tf),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&nL.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=mu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(p){l(p,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if($t(f)!=="object"){for(var d=arguments.length,p=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,p){var g=o.services.backendConnector.state["".concat(d,"|").concat(p)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=mu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=mu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new ZC(iO());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=Rn(Rn(Rn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=Rn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new KC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Ih(e,t)});var fr=Ih.createInstance();fr.createInstance=Ih.createInstance;fr.createInstance;fr.dir;fr.init;fr.loadResources;fr.reloadResources;fr.use;fr.changeLanguage;fr.getFixedT;fr.t;fr.exists;fr.setDefaultNamespace;fr.hasLoadedNamespace;fr.loadNamespaces;fr.loadLanguages;fr.use(PJ).init({resources:vG||{},lng:ia[mG]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));qn.render(S.jsx(Y.StrictMode,{children:S.jsx(NJ,{children:S.jsx(pZ,{store:B,children:S.jsx(Bge,{})})})}),document.getElementById("root"));export{gr as C,$n as S,de as T,O as W,yye as r}; diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-2b32cd56.js b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-b6f2cb0a.js similarity index 97% rename from packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-2b32cd56.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-b6f2cb0a.js index 7ce150d48..ca8d2b80f 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-2b32cd56.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-b6f2cb0a.js @@ -1 +1 @@ -import{r as S,W as h,C as u,T as w,S as C}from"./index-14aa7559.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); +import{r as S,W as h,C as u,T as w,S as C}from"./index-f4e44d7a.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); diff --git a/packages/terre2/assets/templates/WebGAL_Template/index.html b/packages/terre2/assets/templates/WebGAL_Template/index.html index d7ac002a5..c7e978f44 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/index.html +++ b/packages/terre2/assets/templates/WebGAL_Template/index.html @@ -7,8 +7,8 @@ WebGAL - - + + From 168f22efca0768d34198028390c5b7c19737e80f Mon Sep 17 00:00:00 2001 From: Mahiru Date: Wed, 21 Feb 2024 21:50:42 +0800 Subject: [PATCH 012/125] Update title.scss --- packages/terre2/public/templates/default/UI/Title/title.scss | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/terre2/public/templates/default/UI/Title/title.scss b/packages/terre2/public/templates/default/UI/Title/title.scss index 48073c96b..da2874708 100644 --- a/packages/terre2/public/templates/default/UI/Title/title.scss +++ b/packages/terre2/public/templates/default/UI/Title/title.scss @@ -6,7 +6,6 @@ } .Title_buttonList { - font-family: "思源宋体", serif; display: flex; position: absolute; left: 0; @@ -40,9 +39,7 @@ } .Title_button_text { - color: transparent; - background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); - -webkit-background-clip: text; + color: #fbfbfb; padding: 0 0.5em 0 0.5em; font-size: 200%; font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; From d87a55bf1f9b2352793d0d4916fabc8e9196d929 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Wed, 21 Feb 2024 21:52:19 +0800 Subject: [PATCH 013/125] Build macOS workflow use macos-14 --- .github/workflows/build-terre.yml | 2 +- .github/workflows/pr-check.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-terre.yml b/.github/workflows/build-terre.yml index 129d2116b..58190379d 100644 --- a/.github/workflows/build-terre.yml +++ b/.github/workflows/build-terre.yml @@ -117,7 +117,7 @@ jobs: path: release build-mac: name: Build MacOS Binary - runs-on: macos-latest + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 61fa34900..db7004332 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -119,7 +119,7 @@ jobs: path: release build-mac: name: Build MacOS Binary - runs-on: macos-latest + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21bfc0440..6ae1e9647 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -124,7 +124,7 @@ jobs: path: WebGAL_Terre_Linux_Arm64.zip build-mac: name: Build MacOS Binary - runs-on: macos-latest + runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 From 2a65330a266bfe17f699854eb8df240f3ed2934d Mon Sep 17 00:00:00 2001 From: Mahiru Date: Wed, 21 Feb 2024 22:19:52 +0800 Subject: [PATCH 014/125] Update release-mac.sh --- release-mac.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release-mac.sh b/release-mac.sh index 11dc16ba4..0ed15a1b6 100644 --- a/release-mac.sh +++ b/release-mac.sh @@ -71,4 +71,10 @@ echo 'cd WebGAL' >> run-webgal-on-mac.command echo './WebGAL_Terre' >> run-webgal-on-mac.command chmod +x run-webgal-on-mac.command +# readme +echo '你需要在本目录下执行 chmod -R +x . 才能正确使用 WebGAL Terre' >> readme.txt +echo 'You need to execute `chmod -R +x .` in this directory to use WebGAL Terre correctly' >> readme.txt +echo 'WebGAL Terre を正しく使用するには、このディレクトリで chmod -R +x . を実行する必要があります。' >> readme.txt +chmod -R +x . + echo "WebGAL Terre is now ready to be deployed." From 3ccdbba4623594c8e130b08b9cc15aceb424296d Mon Sep 17 00:00:00 2001 From: Mahiru Date: Wed, 21 Feb 2024 22:27:01 +0800 Subject: [PATCH 015/125] Update release-mac.sh --- release-mac.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release-mac.sh b/release-mac.sh index 0ed15a1b6..2a628f6a3 100644 --- a/release-mac.sh +++ b/release-mac.sh @@ -72,9 +72,9 @@ echo './WebGAL_Terre' >> run-webgal-on-mac.command chmod +x run-webgal-on-mac.command # readme -echo '你需要在本目录下执行 chmod -R +x . 才能正确使用 WebGAL Terre' >> readme.txt -echo 'You need to execute `chmod -R +x .` in this directory to use WebGAL Terre correctly' >> readme.txt -echo 'WebGAL Terre を正しく使用するには、このディレクトリで chmod -R +x . を実行する必要があります。' >> readme.txt +echo '你需要在本目录下执行 "chmod -R +x ." 才能正确使用 WebGAL Terre' >> readme.txt +echo 'You need to execute "chmod -R +x ." in this directory to use WebGAL Terre correctly' >> readme.txt +echo 'WebGAL Terre を正しく使用するには、このディレクトリで "chmod -R +x ." を実行する必要があります。' >> readme.txt chmod -R +x . echo "WebGAL Terre is now ready to be deployed." From 3819444f315f2efbb3acc619e2976457227bd408 Mon Sep 17 00:00:00 2001 From: loliko114514 <2359983693@qq.com> Date: Sun, 25 Feb 2024 19:32:32 +0800 Subject: [PATCH 016/125] add template entry --- packages/origine2/src/api/Api.ts | 37 +++++ .../src/pages/dashboard/DashBoard.tsx | 155 +++++++++++++----- .../src/pages/dashboard/TemplateElement.tsx | 151 +++++++++++++++++ .../dashboard/TemplateSidebar.module.scss | 31 ++++ .../src/pages/dashboard/TemplateSidebar.tsx | 76 +++++++++ .../src/pages/dashboard/dashboard.module.scss | 11 +- .../dashboard/templateElement.module.scss | 62 +++++++ .../pages/templateeditor/TemplateEditor.tsx | 13 ++ .../templateeditor/templateeditor.module.scss | 12 ++ packages/origine2/src/store/statusReducer.ts | 8 +- .../template}/Stage/TextBox/textbox.scss | 0 .../template}/UI/Title/title.scss | 0 .../WebGAL_Template/template}/template.json | 0 .../default/template/TextBox/textbox.scss | 63 +++++++ .../default/template/UI/Title/title.scss | 55 +++++++ .../templates/default/template/template.json | 4 + .../template/Stage/TextBox/textbox.scss" | 63 +++++++ .../template/UI/Title/title.scss" | 55 +++++++ .../template/template.json" | 4 + .../template/Stage/TextBox/textbox.scss" | 63 +++++++ .../template/UI/Title/title.scss" | 55 +++++++ .../template/template.json" | 4 + .../template/Stage/TextBox/textbox.scss" | 63 +++++++ .../template/UI/Title/title.scss" | 55 +++++++ .../template/template.json" | 4 + .../manage-game/manage-game.controller.ts | 43 +++++ .../Modules/manage-game/manage-game.dto.ts | 5 + .../manage-game/manage-game.service.ts | 32 ++++ 28 files changed, 1083 insertions(+), 41 deletions(-) create mode 100644 packages/origine2/src/pages/dashboard/TemplateElement.tsx create mode 100644 packages/origine2/src/pages/dashboard/TemplateSidebar.module.scss create mode 100644 packages/origine2/src/pages/dashboard/TemplateSidebar.tsx create mode 100644 packages/origine2/src/pages/dashboard/templateElement.module.scss create mode 100644 packages/origine2/src/pages/templateeditor/TemplateEditor.tsx create mode 100644 packages/origine2/src/pages/templateeditor/templateeditor.module.scss rename packages/terre2/{public/templates/default => assets/templates/WebGAL_Template/template}/Stage/TextBox/textbox.scss (100%) rename packages/terre2/{public/templates/default => assets/templates/WebGAL_Template/template}/UI/Title/title.scss (100%) rename packages/terre2/{public/templates/default => assets/templates/WebGAL_Template/template}/template.json (100%) create mode 100644 packages/terre2/public/templates/default/template/TextBox/textbox.scss create mode 100644 packages/terre2/public/templates/default/template/UI/Title/title.scss create mode 100644 packages/terre2/public/templates/default/template/template.json create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" diff --git a/packages/origine2/src/api/Api.ts b/packages/origine2/src/api/Api.ts index 4e41833b6..317098ec9 100644 --- a/packages/origine2/src/api/Api.ts +++ b/packages/origine2/src/api/Api.ts @@ -21,6 +21,11 @@ export interface CreateGameDto { gameName: string; } +export interface CreateTemplateDto { + /** The name of the game to be created */ + templateName: string; +} + export interface EditFileNameDto { /** The path to the file to be renamed */ path: string; @@ -292,6 +297,38 @@ export class Api extends HttpClient + this.request({ + path: `/api/manageTemplate/templateList`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Manage Template + * @name ManageGameControllerCreateGame + * @summary Create a new template + * @request POST:/api/manageTemplate/createTemplate + */ + manageGameControllerCreateTemplate: (data: CreateTemplateDto, params: RequestParams = {}) => + this.request({ + path: `/api/manageTemplate/createTemplate`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), /** * No description diff --git a/packages/origine2/src/pages/dashboard/DashBoard.tsx b/packages/origine2/src/pages/dashboard/DashBoard.tsx index bf6828e92..732ba0796 100644 --- a/packages/origine2/src/pages/dashboard/DashBoard.tsx +++ b/packages/origine2/src/pages/dashboard/DashBoard.tsx @@ -5,6 +5,7 @@ import { logger } from "../../utils/logger"; import { Message, TestRefRef } from "../../components/message/Message"; import styles from "./dashboard.module.scss"; import Sidebar from "./Sidebar"; +import TemplateSidebar from "./TemplateSidebar"; import GamePreview from "./GamePreview"; import { useSelector } from "react-redux"; import { RootState } from "../../store/origineStore"; @@ -13,8 +14,9 @@ import useLanguage from "@/hooks/useLanguage"; import { language } from "@/store/statusReducer"; import About from "./About"; import { WebgalParser } from "../editor/GraphicalEditor/parser"; -import { Card, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Toolbar, ToolbarButton } from "@fluentui/react-components"; -import { LocalLanguage24Filled, LocalLanguage24Regular, bundleIcon } from "@fluentui/react-icons"; +import { Card, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Toolbar, ToolbarButton, TabList, Tab, TabValue, SelectTabData,SelectTabEvent } from "@fluentui/react-components"; +import { LocalLanguage24Filled, LocalLanguage24Regular, Games24Filled, Games24Regular, Album24Filled, Album24Regular, bundleIcon } from "@fluentui/react-icons"; +import {useState} from "react"; // 返回的文件信息(单个) interface IFileInfo { @@ -28,6 +30,11 @@ export interface GameInfo { cover: string; } +export interface TemplateInfo{ + dir: string; + title: string; +} + export default function DashBoard() { const t = useTrans('editor.topBar.'); @@ -36,10 +43,28 @@ export default function DashBoard() { const LocalLanguageIcon = bundleIcon(LocalLanguage24Filled, LocalLanguage24Regular); + const GameIcon = bundleIcon(Games24Filled, Games24Regular); + + const AlbumIcon = bundleIcon(Album24Filled, Album24Regular); + const isDashboardShow:boolean = useSelector((state: RootState) => state.status.dashboard.showDashBoard); const messageRef = useRef(null); + //左侧栏页签 + const selectedValue = useValue("game"); + + const onTabSelect = (event: SelectTabEvent, data: SelectTabData) => { + selectedValue.set(data.value); + refreashDashboard(); + } + + // const [selectedValue, setSelectedValue] = useState("game"); + + // const onTabSelect = (event: SelectTabEvent, data: SelectTabData) => { + // setSelectedValue(data.value); + // }; + // 当前选中的游戏 const currentGame = useValue(null); @@ -48,8 +73,16 @@ export default function DashBoard() { // 游戏列表 const gameInfoList = useValue>([]); - async function getDirInfo() { - return await axios.get("/api/manageGame/gameList").then(r => r.data); + // 模板列表 + const TemplateInfoList = useValue>([]); + + // 当前选中的模板 + const currentTemplate = useValue(null); + + const setCurrentTemplate = (e: string | null) => currentTemplate.set(e); + + async function getDirInfo(url:string) { + return await axios.get(url).then(r => r.data); } async function createGame(gameName:string) { @@ -60,28 +93,58 @@ export default function DashBoard() { setCurrentGame(null); } + async function createTemplate(templateName:string) { + console.log("createTeplate:"+templateName); + const res = await axios.post("/api/manageGame/createTemplate", { templateName: templateName }).then(r => r.data); + logger.info("创建结果:", res); + // messageRef.current!.showMessage(`${templateName} ` + trans('msgs.created'), 2000); + refreashDashboard(); + setCurrentGame(null); + } + function refreashDashboard() { - getDirInfo().then(response => { - const gameList = (response as Array) - .filter(e => e.isDir) - .map(e => e.name); - logger.info("返回的游戏列表", gameList); - - const getGameInfoList = gameList.map( - async (gameName) : Promise => { - const gameConfigData = (await axios.get(`/api/manageGame/getGameConfig/${gameName}`)).data; - const gameConfig = WebgalParser.parseConfig(gameConfigData); - return { - dir: gameName, - title: gameConfig.find(e => e.command === "Game_name")?.args?.join('') ?? "", - cover: gameConfig.find(e => e.command === "Title_img")?.args?.join('') ?? "", - }; - }); - - Promise.all(getGameInfoList).then(list => gameInfoList.set(list)); - }); + if(selectedValue.value === "game") + { + getDirInfo("/api/manageGame/gameList").then(response => { + const gameList = (response as Array) + .filter(e => e.isDir) + .map(e => e.name); + logger.info("返回的游戏列表", gameList); + const getGameInfoList = gameList.map( + async (gameName) : Promise => { + const gameConfigData = (await axios.get(`/api/manageGame/getGameConfig/${gameName}`)).data; + const gameConfig = WebgalParser.parseConfig(gameConfigData); + return { + dir: gameName, + title: gameConfig.find(e => e.command === "Game_name")?.args?.join('') ?? "", + cover: gameConfig.find(e => e.command === "Title_img")?.args?.join('') ?? "", + }; + }); + Promise.all(getGameInfoList).then(list => gameInfoList.set(list)); + }); + } + if(selectedValue.value === "template") + { + getDirInfo("/api/manageGame/templateList").then(response => { + console.log("refreash template"); + const templateList = (response as Array) + .filter(e => e.isDir) + .map(e => e.name); + logger.info("返回的模板列表", templateList); + const getTemplateInfoList = templateList.map( + async (templateName) : Promise => { + const TemplateConfigData = (await axios.get(`/api/manageGame/getTemplateConfig/${templateName}`)).data; + return { + dir: templateName, + title: TemplateConfigData.name ?? "", + }; + }); + Promise.all(getTemplateInfoList).then(list => TemplateInfoList.set(list)); + }); + } } + useEffect(() => { refreashDashboard(); }, []); @@ -112,22 +175,36 @@ export default function DashBoard() { -
- - { - currentGame.value && - e.dir === currentGame.value)!} - /> - } - +
+ + } value="game">{t("游戏")} + } value="template">{t("模板")} + + { selectedValue.value==="game" &&
+ + { + currentGame.value && + e.dir === currentGame.value)!} + /> + } + +
} + {selectedValue.value==="template" &&
+ +
}
} ; diff --git a/packages/origine2/src/pages/dashboard/TemplateElement.tsx b/packages/origine2/src/pages/dashboard/TemplateElement.tsx new file mode 100644 index 000000000..f2417510c --- /dev/null +++ b/packages/origine2/src/pages/dashboard/TemplateElement.tsx @@ -0,0 +1,151 @@ +import styles from "./templateElement.module.scss"; +import { Button, Dialog, DialogActions, DialogBody, DialogContent, DialogSurface, DialogTitle, Input, Menu, MenuButton, MenuItem, MenuList, MenuPopover, MenuTrigger } from "@fluentui/react-components"; +import { Delete24Filled, Delete24Regular, FolderOpen24Filled, FolderOpen24Regular, MoreVertical24Filled, MoreVertical24Regular, Open24Filled, Open24Regular, Rename24Filled, Rename24Regular, bundleIcon } from "@fluentui/react-icons"; +import { TemplateInfo } from "./DashBoard"; +import useVarTrans from "@/hooks/useVarTrans"; +import { useDispatch } from "react-redux"; +import { useMemo } from "react"; +import { setDashboardShow, setEditingGame } from "@/store/statusReducer"; +import { useValue } from "../../hooks/useValue"; +import { api } from "@/api"; +import axios from "axios"; + +interface ITemplateElementProps { + templateInfo: TemplateInfo; + onClick: () => void; + refreash?: () => void; + checked: boolean; +} +export default function TemplateElement(props: ITemplateElementProps){ + const soureBase = "background"; + const t = useVarTrans('dashBoard.'); + const dispatch = useDispatch(); + + const MoreVerticalIcon = bundleIcon(MoreVertical24Filled, MoreVertical24Regular); + const FolderOpenIcon = bundleIcon(FolderOpen24Filled, FolderOpen24Regular); + const OpenIcon = bundleIcon(Open24Filled, Open24Regular); + const RenameIcon = bundleIcon(Rename24Filled, Rename24Regular); + const DeleteIcon = bundleIcon(Delete24Filled, Delete24Regular); + + const enterEditor = (templateName: string) => { + console.log(templateName) + // dispatch(setEditingTemplate(templateName)); 模板编辑界面还没做 可能需要template专用的store? + // dispatch(setDashboardShow(false)); + }; + + let className = styles.templateElement_main; + if (props.checked) { + className = className + " " + styles.templateElement_checked; + } + + // 滚动到当前选择的游戏 + useMemo( + () => { + props.checked && + setTimeout(() => { + document.getElementById(props.templateInfo.dir)?.scrollIntoView({behavior: 'smooth', block: 'center'}); + }, 50); + }, + [props.templateInfo.dir, props.checked] + ); + + const isShowDeleteDialog = useValue(false); + const isShowRenameDialog = useValue(false); + const newTemplateName = useValue(props.templateInfo.dir); + + const openInFileExplorer = () => { + // api.manageGameControllerOpenTemplateDict(props.templateInfo.dir); 需要api + }; + + const previewInNewTab = () => { + window.open(`/games/${props.templateInfo.dir}`, "_blank"); + }; + + const renameThisTemplate = (templateName:string, newTemplateName:string) => { + console.log("renameThisTemplate") + // 需要修改模板名的api + // axios.post("/api/manageGame/rename", + // { source: `public/games/${templateName}/`, newTemplate: newTemplateName } + // ).then(() => { + // props.refreash?.(); + // isShowRenameDialog.set(false); + // }); + }; + + const deleteThisTemplate = () => { + // 需要删除模板名的api + // axios.post("/api/manageGame/delete", { source: `public/games/${props.templateInfo.dir}` }).then(() => + // { + // props.refreash?.(); + // isShowDeleteDialog.set(false); + // } + // ); + }; + return ( + <> +
+
+ {props.templateInfo.title} +
+
+ {props.templateInfo.dir} +
event.stopPropagation()}> + + + + } /> + + + + } onClick={() => openInFileExplorer()}>{t('menu.openInFileExplorer')} + } onClick={() => previewInNewTab()}>{t('menu.previewInNewTab')} + } onClick={() => isShowRenameDialog.set(true)}>{t('menu.renameDir')} + } onClick={() => isShowDeleteDialog.set(true)}>{t('删除模板')} + + + +
+
+
+ {/* 重命名对话框 */} + isShowRenameDialog.set(!isShowRenameDialog.value)} + > + + + {t('重命名模板')} + + newTemplateName.set(event.target.value ? event.target.value.trim() : props.templateInfo.dir)} + onKeyDown={(event) => (event.key === 'Enter') && renameThisTemplate(props.templateInfo.dir, newTemplateName.value)} + /> + + + + + + + + + {/* 删除对话框 */} + isShowDeleteDialog.set(!isShowDeleteDialog.value)} + > + + + {t('删除模板')} + {t('确定要删除', { templateName: props.templateInfo.dir })} + + + + + + + + + ); +} \ No newline at end of file diff --git a/packages/origine2/src/pages/dashboard/TemplateSidebar.module.scss b/packages/origine2/src/pages/dashboard/TemplateSidebar.module.scss new file mode 100644 index 000000000..99e38a9c7 --- /dev/null +++ b/packages/origine2/src/pages/dashboard/TemplateSidebar.module.scss @@ -0,0 +1,31 @@ +.sidebar_main{ + width: 100%; + min-width: 20rem; + height: 100%; + overflow-y: auto; + padding-bottom: 1rem; +} + +.sidebar_main_fullwidth { + width: 100%; +} + +.sidebar_top{ + display: flex; + padding: 1em 1em 1em 1em; + justify-content: space-between; +} + +.sidebar_top_title{ + font-size: 115%; + padding: 0.15em 0 0 0; + font-weight: bold; + color: var(--primary); +} + +.game_list{ + display: grid; + grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr) ); + grid-gap: 0.5rem; + margin: 0 1rem; +} diff --git a/packages/origine2/src/pages/dashboard/TemplateSidebar.tsx b/packages/origine2/src/pages/dashboard/TemplateSidebar.tsx new file mode 100644 index 000000000..f5f070f1e --- /dev/null +++ b/packages/origine2/src/pages/dashboard/TemplateSidebar.tsx @@ -0,0 +1,76 @@ +import styles from "./TemplateSidebar.module.scss"; +import { TemplateInfo } from "./DashBoard"; +import { useState } from "react"; +import useTrans from "@/hooks/useTrans"; +import { Button, Input, Popover, PopoverSurface, PopoverTrigger, Subtitle1 } from "@fluentui/react-components"; +import { Add24Filled, Add24Regular, bundleIcon } from "@fluentui/react-icons"; +import TemplateElement from "./TemplateElement"; + +interface ITemplateSidebarProps { + templateList: TemplateInfo[]; + currentSetTemplate: string |null; + setCurrentTemplate: (currentTemplate: string) => void; + createTemplate: (name: string) => void; + refreash?: () => void; +} + +export default function TemplateSidebar(props:ITemplateSidebarProps){ + const t = useTrans('dashBoard.'); + + const AddIcon = bundleIcon(Add24Filled, Add24Regular); + + const [createTemplateFormOpen, setCreateTemplateFormOpen] = useState(false); + const [newTemplateName, setNewTemplateName] = useState(t('createNewGame.dialog.defaultName') || 'NewGame'); + + function createNewTemplate() { + if (newTemplateName && newTemplateName.trim() !== '' && !props.templateList.find((item) => item.dir === newTemplateName.trim())) { + props.createTemplate(newTemplateName); + setCreateTemplateFormOpen(false); + setNewTemplateName(t('createNewGame.dialog.defaultName') || 'NewGame'); + } + } + + return
+
+ {t('模板列表')} + setCreateTemplateFormOpen(!createTemplateFormOpen)} + > + + + + +
+ {t('创建新模板')} + setNewTemplateName(event.target.value)} + onKeyDown={(event) => (event.key === 'Enter') && createNewTemplate()} + defaultValue={t('新模板名')} + placeholder={t('新建模板')} /> +
+ +
+
+
+
+
+
+ { + props.templateList.map(e => { + const checked = props.currentSetTemplate === e.dir; + return {}} + refreash={props.refreash} + templateInfo={e} + key={e.dir} + checked={checked} + />; + }) + } +
+
; +} \ No newline at end of file diff --git a/packages/origine2/src/pages/dashboard/dashboard.module.scss b/packages/origine2/src/pages/dashboard/dashboard.module.scss index a0d5378a4..5f05613ea 100644 --- a/packages/origine2/src/pages/dashboard/dashboard.module.scss +++ b/packages/origine2/src/pages/dashboard/dashboard.module.scss @@ -6,12 +6,21 @@ padding: 0 4px 4px 4px; } -.dashboard_main { +.container_main { width: 100%; height: calc(100vh - 4.5em); display: flex; flex-grow: 1; overflow: hidden; + padding: 4px; +} + +.dashboard_main { + width: 80%; + height: calc(100vh - 4.5em); + display: flex; + flex-grow: 1; + overflow: hidden; background: var(--bg-card); border: var(--border-md); border-radius: var(--radius-md); diff --git a/packages/origine2/src/pages/dashboard/templateElement.module.scss b/packages/origine2/src/pages/dashboard/templateElement.module.scss new file mode 100644 index 000000000..7a8c8ff30 --- /dev/null +++ b/packages/origine2/src/pages/dashboard/templateElement.module.scss @@ -0,0 +1,62 @@ +.templateElement_main { + font-size: 105%; + border-radius: var(--radius-md); + cursor: pointer; + text-align: left; + border: var(--border-md); + transition: all 0.33s; + display: flex; + flex-direction: column; +} + +.templateElement_main:hover { + background: var(--bg-card-hover); + box-shadow: var(--shadow-md); +} + +.templateElement_main:hover:has(.templateElement_action:hover) { + background: none; +} + +.templateElement_checked { + outline: 3px solid var(--primary); +} + +.templateElement_cover { + height: auto; + border-radius: var(--radius-md) var(--radius-md) 0 0; + object-fit: cover; + aspect-ratio: 16 / 9; +} + +.templateElement_title { + display: flex; + flex-direction: column; + padding: 0.25rem 0.5rem; + font-weight: 500; +} + +.templateElement_sub { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 0.5rem 0.5rem 0.5rem; + gap: 0.5rem; +} + +.templateElement_dir { + font-size: medium; + font-weight: 300; + font-style: italic; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.templateElement_action { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: nowrap; + gap: 0.5rem; +} \ No newline at end of file diff --git a/packages/origine2/src/pages/templateeditor/TemplateEditor.tsx b/packages/origine2/src/pages/templateeditor/TemplateEditor.tsx new file mode 100644 index 000000000..6882cde08 --- /dev/null +++ b/packages/origine2/src/pages/templateeditor/TemplateEditor.tsx @@ -0,0 +1,13 @@ +import styles from "./templateeditor.module.scss" +import { RootState } from "@/store/origineStore" +import { useSelector } from "react-redux" + +export default function TemplateEditor(){ + const isShowTemplateEditor = useSelector((state:RootState) => state.status.templateeditor.showtemplateeditor) + + return <> + {!isShowTemplateEditor &&
+ +
} + +} \ No newline at end of file diff --git a/packages/origine2/src/pages/templateeditor/templateeditor.module.scss b/packages/origine2/src/pages/templateeditor/templateeditor.module.scss new file mode 100644 index 000000000..ddff6a417 --- /dev/null +++ b/packages/origine2/src/pages/templateeditor/templateeditor.module.scss @@ -0,0 +1,12 @@ +.editor { + width: 100%; + height: 100%; + display: flex; + flex-flow: column; +} + +.container { + flex: 1; + display: flex; + overflow: auto; +} \ No newline at end of file diff --git a/packages/origine2/src/store/statusReducer.ts b/packages/origine2/src/store/statusReducer.ts index a740b6679..79c451065 100644 --- a/packages/origine2/src/store/statusReducer.ts +++ b/packages/origine2/src/store/statusReducer.ts @@ -1,4 +1,5 @@ import {createSlice, PayloadAction} from "@reduxjs/toolkit"; +import { True } from "@uiw/react-json-view/cjs/types/True"; import {cloneDeep} from "lodash"; const dashboardInitState = { @@ -77,9 +78,14 @@ export const editorInitState: IEditorState = { isShowDebugger: false, }; +export const templateeditorInitState = { + showtemplateeditor: true +} + const initialState = { dashboard: cloneDeep(dashboardInitState), - editor: cloneDeep(editorInitState) + editor: cloneDeep(editorInitState), + templateeditor: cloneDeep(templateeditorInitState) }; const statusSlice = createSlice({ diff --git a/packages/terre2/public/templates/default/Stage/TextBox/textbox.scss b/packages/terre2/assets/templates/WebGAL_Template/template/Stage/TextBox/textbox.scss similarity index 100% rename from packages/terre2/public/templates/default/Stage/TextBox/textbox.scss rename to packages/terre2/assets/templates/WebGAL_Template/template/Stage/TextBox/textbox.scss diff --git a/packages/terre2/public/templates/default/UI/Title/title.scss b/packages/terre2/assets/templates/WebGAL_Template/template/UI/Title/title.scss similarity index 100% rename from packages/terre2/public/templates/default/UI/Title/title.scss rename to packages/terre2/assets/templates/WebGAL_Template/template/UI/Title/title.scss diff --git a/packages/terre2/public/templates/default/template.json b/packages/terre2/assets/templates/WebGAL_Template/template/template.json similarity index 100% rename from packages/terre2/public/templates/default/template.json rename to packages/terre2/assets/templates/WebGAL_Template/template/template.json diff --git a/packages/terre2/public/templates/default/template/TextBox/textbox.scss b/packages/terre2/public/templates/default/template/TextBox/textbox.scss new file mode 100644 index 000000000..eb3f1d796 --- /dev/null +++ b/packages/terre2/public/templates/default/template/TextBox/textbox.scss @@ -0,0 +1,63 @@ +.TextBox_main { + +} + +.TextBox_textElement_start { + +} + +.TextBox_textElement_Settled { + +} + +.text { + +} + +.outer { + +} + +.inner { + +} + +.TextBox_showName { + +} + +.outerName { + +} + +.innerName { + +} + +.miniAvatarContainer { + +} + +.miniAvatarImg { + +} + +@keyframes showSoftly { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +@keyframes TextDelayShow { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} diff --git a/packages/terre2/public/templates/default/template/UI/Title/title.scss b/packages/terre2/public/templates/default/template/UI/Title/title.scss new file mode 100644 index 000000000..da2874708 --- /dev/null +++ b/packages/terre2/public/templates/default/template/UI/Title/title.scss @@ -0,0 +1,55 @@ +.Title_main { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; +} + +.Title_buttonList { + display: flex; + position: absolute; + left: 0; + min-width: 25%; + height: 100%; + justify-content: center; + align-items: flex-start; + flex-flow: column; + transition: background 0.75s; + padding-left: 120px; +} + +.Title_button { + font-weight: bold; + text-align: center; + flex: 0 1 auto; + cursor: pointer; + padding: 1em 2em 1em 2em; + margin: 20px 0; + transition: all 0.33s; + background: rgba(255, 255, 255, 0.15); + backdrop-filter: blur(5px); + border-radius: 4px; + transform: skewX(-10deg); + background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); + + &:hover { + text-shadow: 0 0 10px rgba(255, 255, 255, 1); + padding: 1em 6em 1em 3em; + } +} + +.Title_button_text { + color: #fbfbfb; + padding: 0 0.5em 0 0.5em; + font-size: 200%; + font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + letter-spacing: 0.15em; +} + +.Title_backup_background { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; + background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); +} diff --git a/packages/terre2/public/templates/default/template/template.json b/packages/terre2/public/templates/default/template/template.json new file mode 100644 index 000000000..d7885e992 --- /dev/null +++ b/packages/terre2/public/templates/default/template/template.json @@ -0,0 +1,4 @@ +{ + "name":"Default Template", + "webgal-version":"4.4.12" +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" new file mode 100644 index 000000000..eb3f1d796 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" @@ -0,0 +1,63 @@ +.TextBox_main { + +} + +.TextBox_textElement_start { + +} + +.TextBox_textElement_Settled { + +} + +.text { + +} + +.outer { + +} + +.inner { + +} + +.TextBox_showName { + +} + +.outerName { + +} + +.innerName { + +} + +.miniAvatarContainer { + +} + +.miniAvatarImg { + +} + +@keyframes showSoftly { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +@keyframes TextDelayShow { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" new file mode 100644 index 000000000..da2874708 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" @@ -0,0 +1,55 @@ +.Title_main { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; +} + +.Title_buttonList { + display: flex; + position: absolute; + left: 0; + min-width: 25%; + height: 100%; + justify-content: center; + align-items: flex-start; + flex-flow: column; + transition: background 0.75s; + padding-left: 120px; +} + +.Title_button { + font-weight: bold; + text-align: center; + flex: 0 1 auto; + cursor: pointer; + padding: 1em 2em 1em 2em; + margin: 20px 0; + transition: all 0.33s; + background: rgba(255, 255, 255, 0.15); + backdrop-filter: blur(5px); + border-radius: 4px; + transform: skewX(-10deg); + background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); + + &:hover { + text-shadow: 0 0 10px rgba(255, 255, 255, 1); + padding: 1em 6em 1em 3em; + } +} + +.Title_button_text { + color: #fbfbfb; + padding: 0 0.5em 0 0.5em; + font-size: 200%; + font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + letter-spacing: 0.15em; +} + +.Title_backup_background { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; + background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" new file mode 100644 index 000000000..d7885e992 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" @@ -0,0 +1,4 @@ +{ + "name":"Default Template", + "webgal-version":"4.4.12" +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" new file mode 100644 index 000000000..eb3f1d796 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" @@ -0,0 +1,63 @@ +.TextBox_main { + +} + +.TextBox_textElement_start { + +} + +.TextBox_textElement_Settled { + +} + +.text { + +} + +.outer { + +} + +.inner { + +} + +.TextBox_showName { + +} + +.outerName { + +} + +.innerName { + +} + +.miniAvatarContainer { + +} + +.miniAvatarImg { + +} + +@keyframes showSoftly { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +@keyframes TextDelayShow { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" new file mode 100644 index 000000000..da2874708 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" @@ -0,0 +1,55 @@ +.Title_main { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; +} + +.Title_buttonList { + display: flex; + position: absolute; + left: 0; + min-width: 25%; + height: 100%; + justify-content: center; + align-items: flex-start; + flex-flow: column; + transition: background 0.75s; + padding-left: 120px; +} + +.Title_button { + font-weight: bold; + text-align: center; + flex: 0 1 auto; + cursor: pointer; + padding: 1em 2em 1em 2em; + margin: 20px 0; + transition: all 0.33s; + background: rgba(255, 255, 255, 0.15); + backdrop-filter: blur(5px); + border-radius: 4px; + transform: skewX(-10deg); + background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); + + &:hover { + text-shadow: 0 0 10px rgba(255, 255, 255, 1); + padding: 1em 6em 1em 3em; + } +} + +.Title_button_text { + color: #fbfbfb; + padding: 0 0.5em 0 0.5em; + font-size: 200%; + font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + letter-spacing: 0.15em; +} + +.Title_backup_background { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; + background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" new file mode 100644 index 000000000..d7885e992 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" @@ -0,0 +1,4 @@ +{ + "name":"Default Template", + "webgal-version":"4.4.12" +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" new file mode 100644 index 000000000..eb3f1d796 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" @@ -0,0 +1,63 @@ +.TextBox_main { + +} + +.TextBox_textElement_start { + +} + +.TextBox_textElement_Settled { + +} + +.text { + +} + +.outer { + +} + +.inner { + +} + +.TextBox_showName { + +} + +.outerName { + +} + +.innerName { + +} + +.miniAvatarContainer { + +} + +.miniAvatarImg { + +} + +@keyframes showSoftly { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +@keyframes TextDelayShow { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" new file mode 100644 index 000000000..da2874708 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" @@ -0,0 +1,55 @@ +.Title_main { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; +} + +.Title_buttonList { + display: flex; + position: absolute; + left: 0; + min-width: 25%; + height: 100%; + justify-content: center; + align-items: flex-start; + flex-flow: column; + transition: background 0.75s; + padding-left: 120px; +} + +.Title_button { + font-weight: bold; + text-align: center; + flex: 0 1 auto; + cursor: pointer; + padding: 1em 2em 1em 2em; + margin: 20px 0; + transition: all 0.33s; + background: rgba(255, 255, 255, 0.15); + backdrop-filter: blur(5px); + border-radius: 4px; + transform: skewX(-10deg); + background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); + + &:hover { + text-shadow: 0 0 10px rgba(255, 255, 255, 1); + padding: 1em 6em 1em 3em; + } +} + +.Title_button_text { + color: #fbfbfb; + padding: 0 0.5em 0 0.5em; + font-size: 200%; + font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + letter-spacing: 0.15em; +} + +.Title_backup_background { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; + background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); +} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" new file mode 100644 index 000000000..d7885e992 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" @@ -0,0 +1,4 @@ +{ + "name":"Default Template", + "webgal-version":"4.4.12" +} diff --git a/packages/terre2/src/Modules/manage-game/manage-game.controller.ts b/packages/terre2/src/Modules/manage-game/manage-game.controller.ts index 1e68fa79a..de42fa233 100644 --- a/packages/terre2/src/Modules/manage-game/manage-game.controller.ts +++ b/packages/terre2/src/Modules/manage-game/manage-game.controller.ts @@ -31,6 +31,7 @@ import { } from '@nestjs/swagger'; import { CreateGameDto, + CreateTemplateDto, CreateNewSceneDto, DeleteFileDto, DeleteFileOrDirDto, @@ -81,6 +82,33 @@ export class ManageGameController { } } + @Get('templateList') + @Get('templateList') + @ApiOperation({ summary: 'Retrieve template list' }) + @ApiResponse({ status: 200, description: 'Returned template list.' }) + async getTemplateList() { + if (!(await this.webgalFs.existsDir('public/templates'))) + await this.webgalFs.mkdir('public', 'templates'); + return await this.webgalFs.getDirInfo( + this.webgalFs.getPathFromRoot('/public/templates'), + ); + } + + @Post('createTemplate') + @ApiOperation({ summary: 'Create a new template' }) + @ApiResponse({ status: 200, description: 'Template creation result.' }) + @ApiBody({ type: CreateGameDto, description: 'Template creation data' }) + async createTemplate(@Body() createTemplateData: CreateTemplateDto) { + const createResult = await this.manageGame.createTemplate( + createTemplateData.templateName, + ); + if (createResult) { + return { status: 'success' }; + } else { + return { status: 'failed' }; // Note: Typo correction 'filed' -> 'failed' + } + } + @Get('openGameDict/:gameName') // <-- Define the route parameter using :gameName @ApiOperation({ summary: 'Open Game Dictionary' }) @ApiResponse({ @@ -272,6 +300,21 @@ export class ManageGameController { return this.webgalFs.readTextFile(configFilePath); } + @Get('getTemplateConfig/:templateName') + @ApiOperation({ summary: 'Get Template Configuration' }) + @ApiResponse({ status: 200, description: 'Returned template configuration.' }) + @ApiResponse({ + status: 400, + description: 'Failed to get the template configuration.', + }) + async getTemplateConfig(@Param('templateName') templateName: string) { + console.log("getTemplateconfig") + const configFilePath = this.webgalFs.getPathFromRoot( + `/public/templates/${decodeURI(templateName)}/template/template.json`, + ); + return this.webgalFs.readTextFile(configFilePath); + } + @Post('setGameConfig') @ApiOperation({ summary: 'Set Game Configuration' }) @ApiResponse({ diff --git a/packages/terre2/src/Modules/manage-game/manage-game.dto.ts b/packages/terre2/src/Modules/manage-game/manage-game.dto.ts index 0f9d89bee..92cd0100c 100644 --- a/packages/terre2/src/Modules/manage-game/manage-game.dto.ts +++ b/packages/terre2/src/Modules/manage-game/manage-game.dto.ts @@ -5,6 +5,11 @@ export class CreateGameDto { gameName: string; } +export class CreateTemplateDto { + @ApiProperty({ description: 'The name of the game to be created' }) + templateName: string; +} + export class EditFileNameDto { @ApiProperty({ description: 'The path to the file to be renamed' }) path: string; diff --git a/packages/terre2/src/Modules/manage-game/manage-game.service.ts b/packages/terre2/src/Modules/manage-game/manage-game.service.ts index c20d29f22..01bcf1921 100644 --- a/packages/terre2/src/Modules/manage-game/manage-game.service.ts +++ b/packages/terre2/src/Modules/manage-game/manage-game.service.ts @@ -60,6 +60,38 @@ export class ManageGameService { return true; } + /** + * 从模板创建游戏 + * @param templateName + */ + async createTemplate(templateName: string): Promise { + // 检查是否存在这个游戏 + const checkDir = await this.webgalFs.getDirInfo( + this.webgalFs.getPathFromRoot(`/public/templates`), + ); + let isThisTemplateExist = false; + checkDir.forEach((e) => { + const info: IFileInfo = e as IFileInfo; + if (info.name === templateName && info.isDir) { + isThisTemplateExist = true; + } + }); + if (isThisTemplateExist) { + return false; + } + // 创建文件夹 + await this.webgalFs.mkdir( + this.webgalFs.getPathFromRoot('/public/templates'), + templateName, + ); + // 递归复制 + await this.webgalFs.copy( + this.webgalFs.getPathFromRoot('/assets/templates/WebGAL_Template/template/'), + this.webgalFs.getPathFromRoot(`/public/templates/${templateName}/template/`), + ); + return true; + } + // 获取游戏配置 async getGameConfig(gameName: string) { interface Config { From e8629d192079947d676bf191e981c8b33d5778d3 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Sun, 25 Feb 2024 21:48:58 +0800 Subject: [PATCH 017/125] delete useless files --- .../template/Stage/TextBox/textbox.scss" | 63 ------------------- .../template/UI/Title/title.scss" | 55 ---------------- .../template/template.json" | 4 -- .../template/Stage/TextBox/textbox.scss" | 63 ------------------- .../template/UI/Title/title.scss" | 55 ---------------- .../template/template.json" | 4 -- .../template/Stage/TextBox/textbox.scss" | 63 ------------------- .../template/UI/Title/title.scss" | 55 ---------------- .../template/template.json" | 4 -- 9 files changed, 366 deletions(-) delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" delete mode 100644 "packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" deleted file mode 100644 index eb3f1d796..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/Stage/TextBox/textbox.scss" +++ /dev/null @@ -1,63 +0,0 @@ -.TextBox_main { - -} - -.TextBox_textElement_start { - -} - -.TextBox_textElement_Settled { - -} - -.text { - -} - -.outer { - -} - -.inner { - -} - -.TextBox_showName { - -} - -.outerName { - -} - -.innerName { - -} - -.miniAvatarContainer { - -} - -.miniAvatarImg { - -} - -@keyframes showSoftly { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } -} - -@keyframes TextDelayShow { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" deleted file mode 100644 index da2874708..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/UI/Title/title.scss" +++ /dev/null @@ -1,55 +0,0 @@ -.Title_main { - width: 100%; - height: 100%; - position: absolute; - z-index: 13; -} - -.Title_buttonList { - display: flex; - position: absolute; - left: 0; - min-width: 25%; - height: 100%; - justify-content: center; - align-items: flex-start; - flex-flow: column; - transition: background 0.75s; - padding-left: 120px; -} - -.Title_button { - font-weight: bold; - text-align: center; - flex: 0 1 auto; - cursor: pointer; - padding: 1em 2em 1em 2em; - margin: 20px 0; - transition: all 0.33s; - background: rgba(255, 255, 255, 0.15); - backdrop-filter: blur(5px); - border-radius: 4px; - transform: skewX(-10deg); - background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); - - &:hover { - text-shadow: 0 0 10px rgba(255, 255, 255, 1); - padding: 1em 6em 1em 3em; - } -} - -.Title_button_text { - color: #fbfbfb; - padding: 0 0.5em 0 0.5em; - font-size: 200%; - font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - letter-spacing: 0.15em; -} - -.Title_backup_background { - width: 100%; - height: 100%; - position: absolute; - z-index: 13; - background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" deleted file mode 100644 index d7885e992..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\217/template/template.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name":"Default Template", - "webgal-version":"4.4.12" -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" deleted file mode 100644 index eb3f1d796..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/Stage/TextBox/textbox.scss" +++ /dev/null @@ -1,63 +0,0 @@ -.TextBox_main { - -} - -.TextBox_textElement_start { - -} - -.TextBox_textElement_Settled { - -} - -.text { - -} - -.outer { - -} - -.inner { - -} - -.TextBox_showName { - -} - -.outerName { - -} - -.innerName { - -} - -.miniAvatarContainer { - -} - -.miniAvatarImg { - -} - -@keyframes showSoftly { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } -} - -@keyframes TextDelayShow { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" deleted file mode 100644 index da2874708..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/UI/Title/title.scss" +++ /dev/null @@ -1,55 +0,0 @@ -.Title_main { - width: 100%; - height: 100%; - position: absolute; - z-index: 13; -} - -.Title_buttonList { - display: flex; - position: absolute; - left: 0; - min-width: 25%; - height: 100%; - justify-content: center; - align-items: flex-start; - flex-flow: column; - transition: background 0.75s; - padding-left: 120px; -} - -.Title_button { - font-weight: bold; - text-align: center; - flex: 0 1 auto; - cursor: pointer; - padding: 1em 2em 1em 2em; - margin: 20px 0; - transition: all 0.33s; - background: rgba(255, 255, 255, 0.15); - backdrop-filter: blur(5px); - border-radius: 4px; - transform: skewX(-10deg); - background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); - - &:hover { - text-shadow: 0 0 10px rgba(255, 255, 255, 1); - padding: 1em 6em 1em 3em; - } -} - -.Title_button_text { - color: #fbfbfb; - padding: 0 0.5em 0 0.5em; - font-size: 200%; - font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - letter-spacing: 0.15em; -} - -.Title_backup_background { - width: 100%; - height: 100%; - position: absolute; - z-index: 13; - background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" deleted file mode 100644 index d7885e992..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2172/template/template.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name":"Default Template", - "webgal-version":"4.4.12" -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" deleted file mode 100644 index eb3f1d796..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/Stage/TextBox/textbox.scss" +++ /dev/null @@ -1,63 +0,0 @@ -.TextBox_main { - -} - -.TextBox_textElement_start { - -} - -.TextBox_textElement_Settled { - -} - -.text { - -} - -.outer { - -} - -.inner { - -} - -.TextBox_showName { - -} - -.outerName { - -} - -.innerName { - -} - -.miniAvatarContainer { - -} - -.miniAvatarImg { - -} - -@keyframes showSoftly { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } -} - -@keyframes TextDelayShow { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" deleted file mode 100644 index da2874708..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/UI/Title/title.scss" +++ /dev/null @@ -1,55 +0,0 @@ -.Title_main { - width: 100%; - height: 100%; - position: absolute; - z-index: 13; -} - -.Title_buttonList { - display: flex; - position: absolute; - left: 0; - min-width: 25%; - height: 100%; - justify-content: center; - align-items: flex-start; - flex-flow: column; - transition: background 0.75s; - padding-left: 120px; -} - -.Title_button { - font-weight: bold; - text-align: center; - flex: 0 1 auto; - cursor: pointer; - padding: 1em 2em 1em 2em; - margin: 20px 0; - transition: all 0.33s; - background: rgba(255, 255, 255, 0.15); - backdrop-filter: blur(5px); - border-radius: 4px; - transform: skewX(-10deg); - background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); - - &:hover { - text-shadow: 0 0 10px rgba(255, 255, 255, 1); - padding: 1em 6em 1em 3em; - } -} - -.Title_button_text { - color: #fbfbfb; - padding: 0 0.5em 0 0.5em; - font-size: 200%; - font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; - letter-spacing: 0.15em; -} - -.Title_backup_background { - width: 100%; - height: 100%; - position: absolute; - z-index: 13; - background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); -} diff --git "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" "b/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" deleted file mode 100644 index d7885e992..000000000 --- "a/packages/terre2/public/templates/\346\226\260\347\232\204\346\270\270\346\210\2173/template/template.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name":"Default Template", - "webgal-version":"4.4.12" -} From 7fb08f255905ef9247743a8239f7ead2efcac6bb Mon Sep 17 00:00:00 2001 From: loliko114514 <2359983693@qq.com> Date: Sun, 25 Feb 2024 22:10:34 +0800 Subject: [PATCH 018/125] delete template api --- packages/origine2/src/api/Api.ts | 37 -------------- .../src/pages/dashboard/DashBoard.tsx | 50 +++++++++---------- .../manage-game/manage-game.controller.ts | 43 ---------------- .../Modules/manage-game/manage-game.dto.ts | 5 -- .../manage-game/manage-game.service.ts | 32 ------------ 5 files changed, 23 insertions(+), 144 deletions(-) diff --git a/packages/origine2/src/api/Api.ts b/packages/origine2/src/api/Api.ts index 317098ec9..4e41833b6 100644 --- a/packages/origine2/src/api/Api.ts +++ b/packages/origine2/src/api/Api.ts @@ -21,11 +21,6 @@ export interface CreateGameDto { gameName: string; } -export interface CreateTemplateDto { - /** The name of the game to be created */ - templateName: string; -} - export interface EditFileNameDto { /** The path to the file to be renamed */ path: string; @@ -297,38 +292,6 @@ export class Api extends HttpClient - this.request({ - path: `/api/manageTemplate/templateList`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Manage Template - * @name ManageGameControllerCreateGame - * @summary Create a new template - * @request POST:/api/manageTemplate/createTemplate - */ - manageGameControllerCreateTemplate: (data: CreateTemplateDto, params: RequestParams = {}) => - this.request({ - path: `/api/manageTemplate/createTemplate`, - method: 'POST', - body: data, - type: ContentType.Json, - ...params, - }), /** * No description diff --git a/packages/origine2/src/pages/dashboard/DashBoard.tsx b/packages/origine2/src/pages/dashboard/DashBoard.tsx index 732ba0796..a3e916f22 100644 --- a/packages/origine2/src/pages/dashboard/DashBoard.tsx +++ b/packages/origine2/src/pages/dashboard/DashBoard.tsx @@ -59,12 +59,6 @@ export default function DashBoard() { refreashDashboard(); } - // const [selectedValue, setSelectedValue] = useState("game"); - - // const onTabSelect = (event: SelectTabEvent, data: SelectTabData) => { - // setSelectedValue(data.value); - // }; - // 当前选中的游戏 const currentGame = useValue(null); @@ -94,12 +88,13 @@ export default function DashBoard() { } async function createTemplate(templateName:string) { - console.log("createTeplate:"+templateName); - const res = await axios.post("/api/manageGame/createTemplate", { templateName: templateName }).then(r => r.data); - logger.info("创建结果:", res); + // 需要创建模板api + // console.log("createTeplate:"+templateName); + // const res = await axios.post("/api/manageGame/createTemplate", { templateName: templateName }).then(r => r.data); + // logger.info("创建结果:", res); // messageRef.current!.showMessage(`${templateName} ` + trans('msgs.created'), 2000); - refreashDashboard(); - setCurrentGame(null); + // refreashDashboard(); + // setCurrentGame(null); } function refreashDashboard() { @@ -125,22 +120,23 @@ export default function DashBoard() { } if(selectedValue.value === "template") { - getDirInfo("/api/manageGame/templateList").then(response => { - console.log("refreash template"); - const templateList = (response as Array) - .filter(e => e.isDir) - .map(e => e.name); - logger.info("返回的模板列表", templateList); - const getTemplateInfoList = templateList.map( - async (templateName) : Promise => { - const TemplateConfigData = (await axios.get(`/api/manageGame/getTemplateConfig/${templateName}`)).data; - return { - dir: templateName, - title: TemplateConfigData.name ?? "", - }; - }); - Promise.all(getTemplateInfoList).then(list => TemplateInfoList.set(list)); - }); + //需要获取模板列表和获取模板配置api + // getDirInfo("/api/manageGame/templateList").then(response => { + // console.log("refreash template"); + // const templateList = (response as Array) + // .filter(e => e.isDir) + // .map(e => e.name); + // logger.info("返回的模板列表", templateList); + // const getTemplateInfoList = templateList.map( + // async (templateName) : Promise => { + // const TemplateConfigData = (await axios.get(`/api/manageGame/getTemplateConfig/${templateName}`)).data; + // return { + // dir: templateName, + // title: TemplateConfigData.name ?? "", + // }; + // }); + // Promise.all(getTemplateInfoList).then(list => TemplateInfoList.set(list)); + // }); } } diff --git a/packages/terre2/src/Modules/manage-game/manage-game.controller.ts b/packages/terre2/src/Modules/manage-game/manage-game.controller.ts index de42fa233..1e68fa79a 100644 --- a/packages/terre2/src/Modules/manage-game/manage-game.controller.ts +++ b/packages/terre2/src/Modules/manage-game/manage-game.controller.ts @@ -31,7 +31,6 @@ import { } from '@nestjs/swagger'; import { CreateGameDto, - CreateTemplateDto, CreateNewSceneDto, DeleteFileDto, DeleteFileOrDirDto, @@ -82,33 +81,6 @@ export class ManageGameController { } } - @Get('templateList') - @Get('templateList') - @ApiOperation({ summary: 'Retrieve template list' }) - @ApiResponse({ status: 200, description: 'Returned template list.' }) - async getTemplateList() { - if (!(await this.webgalFs.existsDir('public/templates'))) - await this.webgalFs.mkdir('public', 'templates'); - return await this.webgalFs.getDirInfo( - this.webgalFs.getPathFromRoot('/public/templates'), - ); - } - - @Post('createTemplate') - @ApiOperation({ summary: 'Create a new template' }) - @ApiResponse({ status: 200, description: 'Template creation result.' }) - @ApiBody({ type: CreateGameDto, description: 'Template creation data' }) - async createTemplate(@Body() createTemplateData: CreateTemplateDto) { - const createResult = await this.manageGame.createTemplate( - createTemplateData.templateName, - ); - if (createResult) { - return { status: 'success' }; - } else { - return { status: 'failed' }; // Note: Typo correction 'filed' -> 'failed' - } - } - @Get('openGameDict/:gameName') // <-- Define the route parameter using :gameName @ApiOperation({ summary: 'Open Game Dictionary' }) @ApiResponse({ @@ -300,21 +272,6 @@ export class ManageGameController { return this.webgalFs.readTextFile(configFilePath); } - @Get('getTemplateConfig/:templateName') - @ApiOperation({ summary: 'Get Template Configuration' }) - @ApiResponse({ status: 200, description: 'Returned template configuration.' }) - @ApiResponse({ - status: 400, - description: 'Failed to get the template configuration.', - }) - async getTemplateConfig(@Param('templateName') templateName: string) { - console.log("getTemplateconfig") - const configFilePath = this.webgalFs.getPathFromRoot( - `/public/templates/${decodeURI(templateName)}/template/template.json`, - ); - return this.webgalFs.readTextFile(configFilePath); - } - @Post('setGameConfig') @ApiOperation({ summary: 'Set Game Configuration' }) @ApiResponse({ diff --git a/packages/terre2/src/Modules/manage-game/manage-game.dto.ts b/packages/terre2/src/Modules/manage-game/manage-game.dto.ts index 92cd0100c..0f9d89bee 100644 --- a/packages/terre2/src/Modules/manage-game/manage-game.dto.ts +++ b/packages/terre2/src/Modules/manage-game/manage-game.dto.ts @@ -5,11 +5,6 @@ export class CreateGameDto { gameName: string; } -export class CreateTemplateDto { - @ApiProperty({ description: 'The name of the game to be created' }) - templateName: string; -} - export class EditFileNameDto { @ApiProperty({ description: 'The path to the file to be renamed' }) path: string; diff --git a/packages/terre2/src/Modules/manage-game/manage-game.service.ts b/packages/terre2/src/Modules/manage-game/manage-game.service.ts index 01bcf1921..c20d29f22 100644 --- a/packages/terre2/src/Modules/manage-game/manage-game.service.ts +++ b/packages/terre2/src/Modules/manage-game/manage-game.service.ts @@ -60,38 +60,6 @@ export class ManageGameService { return true; } - /** - * 从模板创建游戏 - * @param templateName - */ - async createTemplate(templateName: string): Promise { - // 检查是否存在这个游戏 - const checkDir = await this.webgalFs.getDirInfo( - this.webgalFs.getPathFromRoot(`/public/templates`), - ); - let isThisTemplateExist = false; - checkDir.forEach((e) => { - const info: IFileInfo = e as IFileInfo; - if (info.name === templateName && info.isDir) { - isThisTemplateExist = true; - } - }); - if (isThisTemplateExist) { - return false; - } - // 创建文件夹 - await this.webgalFs.mkdir( - this.webgalFs.getPathFromRoot('/public/templates'), - templateName, - ); - // 递归复制 - await this.webgalFs.copy( - this.webgalFs.getPathFromRoot('/assets/templates/WebGAL_Template/template/'), - this.webgalFs.getPathFromRoot(`/public/templates/${templateName}/template/`), - ); - return true; - } - // 获取游戏配置 async getGameConfig(gameName: string) { interface Config { From 1980a3eb1d0c259247301cc0e183f5c125e0975e Mon Sep 17 00:00:00 2001 From: Mahiru Date: Sun, 25 Feb 2024 22:49:55 +0800 Subject: [PATCH 019/125] feat: enhance dashboard Tablist style --- packages/origine2/package.json | 1 + .../src/pages/dashboard/DashBoard.tsx | 129 +++++++++++------- .../src/pages/dashboard/dashboard.module.scss | 28 +++- yarn.lock | 5 + 4 files changed, 111 insertions(+), 52 deletions(-) diff --git a/packages/origine2/package.json b/packages/origine2/package.json index bbde44928..4a6154c46 100644 --- a/packages/origine2/package.json +++ b/packages/origine2/package.json @@ -21,6 +21,7 @@ "@reduxjs/toolkit": "^1.8.1", "@uiw/react-json-view": "^2.0.0-alpha.12", "axios": "^1.6.0", + "classnames": "^2.5.1", "cloudlogjs": "^1.0.11", "i18next": "^22.4.15", "lodash": "^4.17.21", diff --git a/packages/origine2/src/pages/dashboard/DashBoard.tsx b/packages/origine2/src/pages/dashboard/DashBoard.tsx index 732ba0796..4e73c63b2 100644 --- a/packages/origine2/src/pages/dashboard/DashBoard.tsx +++ b/packages/origine2/src/pages/dashboard/DashBoard.tsx @@ -1,28 +1,52 @@ -import { useEffect, useRef } from "react"; -import { useValue } from "../../hooks/useValue"; +import {useEffect, useRef} from "react"; +import {useValue} from "../../hooks/useValue"; import axios from "axios"; -import { logger } from "../../utils/logger"; -import { Message, TestRefRef } from "../../components/message/Message"; +import {logger} from "../../utils/logger"; +import {Message, TestRefRef} from "../../components/message/Message"; import styles from "./dashboard.module.scss"; import Sidebar from "./Sidebar"; import TemplateSidebar from "./TemplateSidebar"; import GamePreview from "./GamePreview"; -import { useSelector } from "react-redux"; -import { RootState } from "../../store/origineStore"; +import {useSelector} from "react-redux"; +import {RootState} from "../../store/origineStore"; import useTrans from "@/hooks/useTrans"; import useLanguage from "@/hooks/useLanguage"; -import { language } from "@/store/statusReducer"; +import {language} from "@/store/statusReducer"; import About from "./About"; -import { WebgalParser } from "../editor/GraphicalEditor/parser"; -import { Card, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Toolbar, ToolbarButton, TabList, Tab, TabValue, SelectTabData,SelectTabEvent } from "@fluentui/react-components"; -import { LocalLanguage24Filled, LocalLanguage24Regular, Games24Filled, Games24Regular, Album24Filled, Album24Regular, bundleIcon } from "@fluentui/react-icons"; +import {WebgalParser} from "../editor/GraphicalEditor/parser"; +import { + Card, + Menu, + MenuItem, + MenuList, + MenuPopover, + MenuTrigger, + Toolbar, + ToolbarButton, + TabList, + Tab, + TabValue, + SelectTabData, + SelectTabEvent +} from "@fluentui/react-components"; +import { + LocalLanguage24Filled, + LocalLanguage24Regular, + Games24Filled, + Games24Regular, + Album24Filled, + Album24Regular, + bundleIcon, Games28Filled, Games28Regular, GamesFilled, GamesRegular, AlbumFilled, AlbumRegular +} from "@fluentui/react-icons"; import {useState} from "react"; +import classNames from "classnames"; // 返回的文件信息(单个) interface IFileInfo { name: string; isDir: boolean; } + // 游戏信息 export interface GameInfo { dir: string; @@ -30,7 +54,7 @@ export interface GameInfo { cover: string; } -export interface TemplateInfo{ +export interface TemplateInfo { dir: string; title: string; } @@ -43,21 +67,21 @@ export default function DashBoard() { const LocalLanguageIcon = bundleIcon(LocalLanguage24Filled, LocalLanguage24Regular); - const GameIcon = bundleIcon(Games24Filled, Games24Regular); + const GameIcon = bundleIcon(GamesFilled, GamesRegular); - const AlbumIcon = bundleIcon(Album24Filled, Album24Regular); + const AlbumIcon = bundleIcon(AlbumFilled, AlbumRegular); - const isDashboardShow:boolean = useSelector((state: RootState) => state.status.dashboard.showDashBoard); + const isDashboardShow: boolean = useSelector((state: RootState) => state.status.dashboard.showDashBoard); const messageRef = useRef(null); - //左侧栏页签 + // 左侧栏页签 const selectedValue = useValue("game"); const onTabSelect = (event: SelectTabEvent, data: SelectTabData) => { selectedValue.set(data.value); refreashDashboard(); - } + }; // const [selectedValue, setSelectedValue] = useState("game"); @@ -67,7 +91,7 @@ export default function DashBoard() { // 当前选中的游戏 const currentGame = useValue(null); - + const setCurrentGame = (e: string | null) => currentGame.set(e); // 游戏列表 @@ -76,26 +100,26 @@ export default function DashBoard() { // 模板列表 const TemplateInfoList = useValue>([]); - // 当前选中的模板 - const currentTemplate = useValue(null); - - const setCurrentTemplate = (e: string | null) => currentTemplate.set(e); + // 当前选中的模板 + const currentTemplate = useValue(null); + + const setCurrentTemplate = (e: string | null) => currentTemplate.set(e); - async function getDirInfo(url:string) { + async function getDirInfo(url: string) { return await axios.get(url).then(r => r.data); } - async function createGame(gameName:string) { - const res = await axios.post("/api/manageGame/createGame", { gameName: gameName }).then(r => r.data); + async function createGame(gameName: string) { + const res = await axios.post("/api/manageGame/createGame", {gameName: gameName}).then(r => r.data); logger.info("创建结果:", res); messageRef.current!.showMessage(`${gameName} ` + trans('msgs.created'), 2000); refreashDashboard(); setCurrentGame(null); } - async function createTemplate(templateName:string) { - console.log("createTeplate:"+templateName); - const res = await axios.post("/api/manageGame/createTemplate", { templateName: templateName }).then(r => r.data); + async function createTemplate(templateName: string) { + console.log("createTeplate:" + templateName); + const res = await axios.post("/api/manageGame/createTemplate", {templateName: templateName}).then(r => r.data); logger.info("创建结果:", res); // messageRef.current!.showMessage(`${templateName} ` + trans('msgs.created'), 2000); refreashDashboard(); @@ -103,15 +127,14 @@ export default function DashBoard() { } function refreashDashboard() { - if(selectedValue.value === "game") - { + if (selectedValue.value === "game") { getDirInfo("/api/manageGame/gameList").then(response => { const gameList = (response as Array) .filter(e => e.isDir) .map(e => e.name); logger.info("返回的游戏列表", gameList); const getGameInfoList = gameList.map( - async (gameName) : Promise => { + async (gameName): Promise => { const gameConfigData = (await axios.get(`/api/manageGame/getGameConfig/${gameName}`)).data; const gameConfig = WebgalParser.parseConfig(gameConfigData); return { @@ -123,8 +146,7 @@ export default function DashBoard() { Promise.all(getGameInfoList).then(list => gameInfoList.set(list)); }); } - if(selectedValue.value === "template") - { + if (selectedValue.value === "template") { getDirInfo("/api/manageGame/templateList").then(response => { console.log("refreash template"); const templateList = (response as Array) @@ -132,7 +154,7 @@ export default function DashBoard() { .map(e => e.name); logger.info("返回的模板列表", templateList); const getTemplateInfoList = templateList.map( - async (templateName) : Promise => { + async (templateName): Promise => { const TemplateConfigData = (await axios.get(`/api/manageGame/getTemplateConfig/${templateName}`)).data; return { dir: templateName, @@ -155,15 +177,16 @@ export default function DashBoard() { }; return <> - { isDashboardShow && + {isDashboardShow &&
- WebGAL Terre + WebGAL Terre - + - }>{t('commandBar.items.language.text')} + }>{t('commandBar.items.language.text')} @@ -176,34 +199,38 @@ export default function DashBoard() {
- - } value="game">{t("游戏")} - } value="template">{t("模板")} - - { selectedValue.value==="game" &&
- +
+ + } value="game">{t("$游戏")} + } value="template">{t("$模板")} + +
+ {selectedValue.value === "game" &&
+ { currentGame.value && - e.dir === currentGame.value)!} - /> + e.dir === currentGame.value)!} + /> } + gameList={gameInfoList.value}/>
} - {selectedValue.value==="template" &&
+ {selectedValue.value === "template" &&
+ templateList={TemplateInfoList.value}/>
}
} diff --git a/packages/origine2/src/pages/dashboard/dashboard.module.scss b/packages/origine2/src/pages/dashboard/dashboard.module.scss index 5f05613ea..83c76093b 100644 --- a/packages/origine2/src/pages/dashboard/dashboard.module.scss +++ b/packages/origine2/src/pages/dashboard/dashboard.module.scss @@ -35,4 +35,30 @@ display: flex; justify-content: space-between; align-items: center; -} \ No newline at end of file +} + +.tabListContainer { + padding: 0 20px; +} + +.tabItem { + padding: 10px 15px !important; + margin-bottom: 10px; + min-width: 130px; + + &:hover { + background-color: rgba(0, 0, 0, 0.05) !important; + } + + > span { + font-size: 18px; + } +} + +.active { + > span { + color: #005caf !important; + } + + background-color: rgba(0, 0, 0, 0.05) !important; +} diff --git a/yarn.lock b/yarn.lock index 333dac1d7..eb33af6f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3320,6 +3320,11 @@ cjs-module-lexer@^1.0.0: resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz#6c370ab19f8a3394e318fe682686ec0ac684d107" integrity sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ== +classnames@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.5.1.tgz#ba774c614be0f016da105c858e7159eae8e7687b" + integrity sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow== + clean-stack@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" From a6b6b55bf826838155d258777a0e51b768437e8d Mon Sep 17 00:00:00 2001 From: Mahiru Date: Sun, 25 Feb 2024 22:51:41 +0800 Subject: [PATCH 020/125] Update DashBoard.tsx --- packages/origine2/src/pages/dashboard/DashBoard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/origine2/src/pages/dashboard/DashBoard.tsx b/packages/origine2/src/pages/dashboard/DashBoard.tsx index 26c69aa6a..4375387f3 100644 --- a/packages/origine2/src/pages/dashboard/DashBoard.tsx +++ b/packages/origine2/src/pages/dashboard/DashBoard.tsx @@ -143,7 +143,7 @@ export default function DashBoard() { } if(selectedValue.value === "template") { - //需要获取模板列表和获取模板配置api + // 需要获取模板列表和获取模板配置api // getDirInfo("/api/manageGame/templateList").then(response => { // console.log("refreash template"); // const templateList = (response as Array) From 456a145917fc9ddc52fa98fa62136b6a5662884e Mon Sep 17 00:00:00 2001 From: loliko114514 <2359983693@qq.com> Date: Mon, 26 Feb 2024 01:22:22 +0800 Subject: [PATCH 021/125] add manage-template module --- .../src/pages/dashboard/DashBoard.tsx | 46 ++++++------ .../manage-template.controller.ts | 72 +++++++++++++++++++ .../manage-template/manage-template.dto.ts | 6 ++ .../manage-template/manage-template.module.ts | 12 ++++ .../manage-template.service.ts | 45 ++++++++++++ packages/terre2/src/app.module.ts | 2 + 6 files changed, 159 insertions(+), 24 deletions(-) create mode 100644 packages/terre2/src/Modules/manage-template/manage-template.controller.ts create mode 100644 packages/terre2/src/Modules/manage-template/manage-template.dto.ts create mode 100644 packages/terre2/src/Modules/manage-template/manage-template.module.ts create mode 100644 packages/terre2/src/Modules/manage-template/manage-template.service.ts diff --git a/packages/origine2/src/pages/dashboard/DashBoard.tsx b/packages/origine2/src/pages/dashboard/DashBoard.tsx index 4375387f3..54a4b71c2 100644 --- a/packages/origine2/src/pages/dashboard/DashBoard.tsx +++ b/packages/origine2/src/pages/dashboard/DashBoard.tsx @@ -112,13 +112,12 @@ export default function DashBoard() { } async function createTemplate(templateName:string) { - // 需要创建模板api - // console.log("createTeplate:"+templateName); - // const res = await axios.post("/api/manageGame/createTemplate", { templateName: templateName }).then(r => r.data); - // logger.info("创建结果:", res); - // messageRef.current!.showMessage(`${templateName} ` + trans('msgs.created'), 2000); - // refreashDashboard(); - // setCurrentGame(null); + console.log("createTeplate:"+templateName); + const res = await axios.post("/api/manageTemplate/createTemplate", { templateName: templateName }).then(r => r.data); + logger.info("创建结果:", res); + messageRef.current!.showMessage(`${templateName} ` + trans('msgs.created'), 2000); + refreashDashboard(); + setCurrentGame(null); } function refreashDashboard() { @@ -143,23 +142,22 @@ export default function DashBoard() { } if(selectedValue.value === "template") { - // 需要获取模板列表和获取模板配置api - // getDirInfo("/api/manageGame/templateList").then(response => { - // console.log("refreash template"); - // const templateList = (response as Array) - // .filter(e => e.isDir) - // .map(e => e.name); - // logger.info("返回的模板列表", templateList); - // const getTemplateInfoList = templateList.map( - // async (templateName) : Promise => { - // const TemplateConfigData = (await axios.get(`/api/manageGame/getTemplateConfig/${templateName}`)).data; - // return { - // dir: templateName, - // title: TemplateConfigData.name ?? "", - // }; - // }); - // Promise.all(getTemplateInfoList).then(list => TemplateInfoList.set(list)); - // }); + getDirInfo("/api/manageTemplate/templateList").then(response => { + console.log("refreash template"); + const templateList = (response as Array) + .filter(e => e.isDir) + .map(e => e.name); + logger.info("返回的模板列表", templateList); + const getTemplateInfoList = templateList.map( + async (templateName) : Promise => { + const TemplateConfigData = (await axios.get(`/api/manageTemplate/getTemplateConfig/${templateName}`)).data; + return { + dir: templateName, + title: TemplateConfigData.name ?? "", + }; + }); + Promise.all(getTemplateInfoList).then(list => TemplateInfoList.set(list)); + }); } } diff --git a/packages/terre2/src/Modules/manage-template/manage-template.controller.ts b/packages/terre2/src/Modules/manage-template/manage-template.controller.ts new file mode 100644 index 000000000..060cb4343 --- /dev/null +++ b/packages/terre2/src/Modules/manage-template/manage-template.controller.ts @@ -0,0 +1,72 @@ +import { + Body, + ConsoleLogger, + Controller, + Get, + Param, + Post, +} from '@nestjs/common'; +import { ManageTemplateService } from './manage-template.service'; +import { LspService } from '../lsp/lsp.service'; +import { WebgalFsService } from '../webgal-fs/webgal-fs.service'; +import { CreateTemplateDto } from './manage-template.dto'; +import { + // ... (其他的导入) + ApiTags, + ApiOperation, + ApiResponse, + ApiBody, + ApiQuery, + ApiParam, +} from '@nestjs/swagger'; +@Controller('api/manageTemplate') +@ApiTags('Manage Template') +export class ManageTemplateController { + constructor( + private readonly webgalFs: WebgalFsService, + private readonly manageTemplate: ManageTemplateService, + private readonly logger: ConsoleLogger, + private readonly lspServerce: LspService, + ) {} + + @Get('templateList') + @Get('templateList') + @ApiOperation({ summary: 'Retrieve template list' }) + @ApiResponse({ status: 200, description: 'Returned template list.' }) + async getTemplateList() { + if (!(await this.webgalFs.existsDir('public/templates'))) + await this.webgalFs.mkdir('public', 'templates'); + return await this.webgalFs.getDirInfo( + this.webgalFs.getPathFromRoot('/public/templates'), + ); + } + + @Post('createTemplate') + @ApiOperation({ summary: 'Create a new template' }) + @ApiResponse({ status: 200, description: 'Template creation result.' }) + @ApiBody({ type: CreateTemplateDto, description: 'Template creation data' }) + async createTemplate(@Body() createTemplateData: CreateTemplateDto) { + const createResult = await this.manageTemplate.createTemplate( + createTemplateData.templateName, + ); + if (createResult) { + return { status: 'success' }; + } else { + return { status: 'failed' }; // Note: Typo correction 'filed' -> 'failed' + } + } + + @Get('getTemplateConfig/:templateName') + @ApiOperation({ summary: 'Get Template Configuration' }) + @ApiResponse({ status: 200, description: 'Returned template configuration.' }) + @ApiResponse({ + status: 400, + description: 'Failed to get the template configuration.', + }) + async getTemplateConfig(@Param('templateName') templateName: string) { + const configFilePath = this.webgalFs.getPathFromRoot( + `/public/templates/${decodeURI(templateName)}/template/template.json`, + ); + return this.webgalFs.readTextFile(configFilePath); + } +} diff --git a/packages/terre2/src/Modules/manage-template/manage-template.dto.ts b/packages/terre2/src/Modules/manage-template/manage-template.dto.ts new file mode 100644 index 000000000..5913548fa --- /dev/null +++ b/packages/terre2/src/Modules/manage-template/manage-template.dto.ts @@ -0,0 +1,6 @@ +import { ApiProperty } from '@nestjs/swagger'; + +export class CreateTemplateDto { + @ApiProperty({ description: 'The name of the template to be created' }) + templateName: string; +} \ No newline at end of file diff --git a/packages/terre2/src/Modules/manage-template/manage-template.module.ts b/packages/terre2/src/Modules/manage-template/manage-template.module.ts new file mode 100644 index 000000000..d33e6fec2 --- /dev/null +++ b/packages/terre2/src/Modules/manage-template/manage-template.module.ts @@ -0,0 +1,12 @@ +import { Module } from '@nestjs/common'; +import { ManageTemplateService } from './manage-template.service'; +import { WebgalFsModule } from '../webgal-fs/webgal-fs.module'; +import { ManageTemplateController } from './manage-template.controller'; +import { LspModule } from '../lsp/lsp.module'; + +@Module({ + imports: [WebgalFsModule, LspModule], + providers: [ManageTemplateService], + controllers: [ManageTemplateController], +}) +export class ManageTemplateModule {} diff --git a/packages/terre2/src/Modules/manage-template/manage-template.service.ts b/packages/terre2/src/Modules/manage-template/manage-template.service.ts new file mode 100644 index 000000000..595b890ac --- /dev/null +++ b/packages/terre2/src/Modules/manage-template/manage-template.service.ts @@ -0,0 +1,45 @@ +import { ConsoleLogger, Injectable } from '@nestjs/common'; +import { _open } from 'src/util/open'; +import { IFileInfo, WebgalFsService } from '../webgal-fs/webgal-fs.service'; +import * as process from 'process'; + +@Injectable() +export class ManageTemplateService { + constructor( + private readonly logger: ConsoleLogger, + private readonly webgalFs: WebgalFsService, + ) {} + + /** + * 从模板创建游戏 + * @param templateName + */ + async createTemplate(templateName: string): Promise { + // 检查是否存在这个游戏 + const checkDir = await this.webgalFs.getDirInfo( + this.webgalFs.getPathFromRoot(`/public/templates`), + ); + let isThisTemplateExist = false; + checkDir.forEach((e) => { + const info: IFileInfo = e as IFileInfo; + if (info.name === templateName && info.isDir) { + isThisTemplateExist = true; + } + }); + if (isThisTemplateExist) { + return false; + } + // 创建文件夹 + await this.webgalFs.mkdir( + this.webgalFs.getPathFromRoot('/public/templates'), + templateName, + ); + // 递归复制 + await this.webgalFs.copy( + this.webgalFs.getPathFromRoot('/assets/templates/WebGAL_Template/template/'), + this.webgalFs.getPathFromRoot(`/public/templates/${templateName}/template/`), + ); + return true; + } + +} diff --git a/packages/terre2/src/app.module.ts b/packages/terre2/src/app.module.ts index 5b97bc3b1..788634fa3 100644 --- a/packages/terre2/src/app.module.ts +++ b/packages/terre2/src/app.module.ts @@ -4,6 +4,7 @@ import { AppService } from './app.service'; import { ServeStaticModule } from '@nestjs/serve-static'; import { join } from 'path'; import { ManageGameModule } from './Modules/manage-game/manage-game.module'; +import { ManageTemplateModule } from './Modules/manage-template/manage-template.module' import { LspModule } from './Modules/lsp/lsp.module'; import { TemplatePreviewModule } from './Modules/template-preview/template-preview.module'; @@ -12,6 +13,7 @@ import { TemplatePreviewModule } from './Modules/template-preview/template-previ // 代码提示 LspModule, ManageGameModule, + ManageTemplateModule, TemplatePreviewModule, // 静态文件服务:游戏与编辑器静态资源文件 ServeStaticModule.forRoot({ From aa4a75699e6d6a78e1d27aff5755a7c213760589 Mon Sep 17 00:00:00 2001 From: loliko114514 <2359983693@qq.com> Date: Mon, 26 Feb 2024 16:32:25 +0800 Subject: [PATCH 022/125] delete template showMessage --- packages/origine2/src/pages/dashboard/DashBoard.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/origine2/src/pages/dashboard/DashBoard.tsx b/packages/origine2/src/pages/dashboard/DashBoard.tsx index 54a4b71c2..70ff4e7f0 100644 --- a/packages/origine2/src/pages/dashboard/DashBoard.tsx +++ b/packages/origine2/src/pages/dashboard/DashBoard.tsx @@ -115,7 +115,6 @@ export default function DashBoard() { console.log("createTeplate:"+templateName); const res = await axios.post("/api/manageTemplate/createTemplate", { templateName: templateName }).then(r => r.data); logger.info("创建结果:", res); - messageRef.current!.showMessage(`${templateName} ` + trans('msgs.created'), 2000); refreashDashboard(); setCurrentGame(null); } From 01e745eeab63f2cc3c3eb76203ce38f80b1a2441 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Mon, 26 Feb 2024 23:29:34 +0800 Subject: [PATCH 023/125] feat: init dashboard UI --- .../src/pages/dashboard/TemplateElement.tsx | 14 ++--- .../src/pages/dashboard/TemplateSidebar.tsx | 8 +-- .../template/Stage/TextBox/textbox.scss" | 63 +++++++++++++++++++ .../template/UI/Title/title.scss" | 55 ++++++++++++++++ .../template/template.json" | 4 ++ 5 files changed, 133 insertions(+), 11 deletions(-) create mode 100644 "packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/Stage/TextBox/textbox.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/UI/Title/title.scss" create mode 100644 "packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/template.json" diff --git a/packages/origine2/src/pages/dashboard/TemplateElement.tsx b/packages/origine2/src/pages/dashboard/TemplateElement.tsx index f2417510c..20d680e63 100644 --- a/packages/origine2/src/pages/dashboard/TemplateElement.tsx +++ b/packages/origine2/src/pages/dashboard/TemplateElement.tsx @@ -28,7 +28,7 @@ export default function TemplateElement(props: ITemplateElementProps){ const DeleteIcon = bundleIcon(Delete24Filled, Delete24Regular); const enterEditor = (templateName: string) => { - console.log(templateName) + console.log(templateName); // dispatch(setEditingTemplate(templateName)); 模板编辑界面还没做 可能需要template专用的store? // dispatch(setDashboardShow(false)); }; @@ -62,7 +62,7 @@ export default function TemplateElement(props: ITemplateElementProps){ }; const renameThisTemplate = (templateName:string, newTemplateName:string) => { - console.log("renameThisTemplate") + console.log("renameThisTemplate"); // 需要修改模板名的api // axios.post("/api/manageGame/rename", // { source: `public/games/${templateName}/`, newTemplate: newTemplateName } @@ -90,17 +90,17 @@ export default function TemplateElement(props: ITemplateElementProps){
{props.templateInfo.dir}
event.stopPropagation()}> - + } /> - + } onClick={() => openInFileExplorer()}>{t('menu.openInFileExplorer')} } onClick={() => previewInNewTab()}>{t('menu.previewInNewTab')} } onClick={() => isShowRenameDialog.set(true)}>{t('menu.renameDir')} - } onClick={() => isShowDeleteDialog.set(true)}>{t('删除模板')} + } onClick={() => isShowDeleteDialog.set(true)}>{t('$删除模板')} @@ -114,7 +114,7 @@ export default function TemplateElement(props: ITemplateElementProps){ > - {t('重命名模板')} + {t('$重命名模板')} ); -} \ No newline at end of file +} diff --git a/packages/origine2/src/pages/dashboard/TemplateSidebar.tsx b/packages/origine2/src/pages/dashboard/TemplateSidebar.tsx index f5f070f1e..509eb1263 100644 --- a/packages/origine2/src/pages/dashboard/TemplateSidebar.tsx +++ b/packages/origine2/src/pages/dashboard/TemplateSidebar.tsx @@ -15,13 +15,13 @@ interface ITemplateSidebarProps { } export default function TemplateSidebar(props:ITemplateSidebarProps){ - const t = useTrans('dashBoard.'); + const t = useTrans(''); const AddIcon = bundleIcon(Add24Filled, Add24Regular); const [createTemplateFormOpen, setCreateTemplateFormOpen] = useState(false); - const [newTemplateName, setNewTemplateName] = useState(t('createNewGame.dialog.defaultName') || 'NewGame'); - + const [newTemplateName, setNewTemplateName] = useState(t('新的模板') || '新的模板'); + function createNewTemplate() { if (newTemplateName && newTemplateName.trim() !== '' && !props.templateList.find((item) => item.dir === newTemplateName.trim())) { props.createTemplate(newTemplateName); @@ -73,4 +73,4 @@ export default function TemplateSidebar(props:ITemplateSidebarProps){ }
; -} \ No newline at end of file +} diff --git "a/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/Stage/TextBox/textbox.scss" "b/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/Stage/TextBox/textbox.scss" new file mode 100644 index 000000000..eb3f1d796 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/Stage/TextBox/textbox.scss" @@ -0,0 +1,63 @@ +.TextBox_main { + +} + +.TextBox_textElement_start { + +} + +.TextBox_textElement_Settled { + +} + +.text { + +} + +.outer { + +} + +.inner { + +} + +.TextBox_showName { + +} + +.outerName { + +} + +.innerName { + +} + +.miniAvatarContainer { + +} + +.miniAvatarImg { + +} + +@keyframes showSoftly { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +@keyframes TextDelayShow { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} diff --git "a/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/UI/Title/title.scss" "b/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/UI/Title/title.scss" new file mode 100644 index 000000000..da2874708 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/UI/Title/title.scss" @@ -0,0 +1,55 @@ +.Title_main { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; +} + +.Title_buttonList { + display: flex; + position: absolute; + left: 0; + min-width: 25%; + height: 100%; + justify-content: center; + align-items: flex-start; + flex-flow: column; + transition: background 0.75s; + padding-left: 120px; +} + +.Title_button { + font-weight: bold; + text-align: center; + flex: 0 1 auto; + cursor: pointer; + padding: 1em 2em 1em 2em; + margin: 20px 0; + transition: all 0.33s; + background: rgba(255, 255, 255, 0.15); + backdrop-filter: blur(5px); + border-radius: 4px; + transform: skewX(-10deg); + background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); + + &:hover { + text-shadow: 0 0 10px rgba(255, 255, 255, 1); + padding: 1em 6em 1em 3em; + } +} + +.Title_button_text { + color: #fbfbfb; + padding: 0 0.5em 0 0.5em; + font-size: 200%; + font-family: WebgalUI, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + letter-spacing: 0.15em; +} + +.Title_backup_background { + width: 100%; + height: 100%; + position: absolute; + z-index: 13; + background: linear-gradient(135deg, #fdfbfb 0%, #dcddde 100%); +} diff --git "a/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/template.json" "b/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/template.json" new file mode 100644 index 000000000..d7885e992 --- /dev/null +++ "b/packages/terre2/public/templates/\346\226\260\346\250\241\346\235\277/template/template.json" @@ -0,0 +1,4 @@ +{ + "name":"Default Template", + "webgal-version":"4.4.12" +} From 3261039e9bb7a4f31f7608eaa874d5a8713a5bb2 Mon Sep 17 00:00:00 2001 From: Mahiru Date: Sat, 2 Mar 2024 16:45:36 +0800 Subject: [PATCH 024/125] update engine to fix bugs --- .../{index-f4e44d7a.js => index-5710cfe5.js} | 428 +++++++++--------- ...{index-b0f07826.css => index-d935d359.css} | 2 +- ...r-b6f2cb0a.js => initRegister-066993bc.js} | 2 +- .../templates/WebGAL_Template/index.html | 4 +- 4 files changed, 218 insertions(+), 218 deletions(-) rename packages/terre2/assets/templates/WebGAL_Template/assets/{index-f4e44d7a.js => index-5710cfe5.js} (70%) rename packages/terre2/assets/templates/WebGAL_Template/assets/{index-b0f07826.css => index-d935d359.css} (59%) rename packages/terre2/assets/templates/WebGAL_Template/assets/{initRegister-b6f2cb0a.js => initRegister-066993bc.js} (97%) diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-f4e44d7a.js b/packages/terre2/assets/templates/WebGAL_Template/assets/index-5710cfe5.js similarity index 70% rename from packages/terre2/assets/templates/WebGAL_Template/assets/index-f4e44d7a.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/index-5710cfe5.js index cec371824..277247111 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-f4e44d7a.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-5710cfe5.js @@ -2,53 +2,53 @@ var GL=Object.defineProperty;var zL=(e,t,r)=>t in e?GL(e,t,{enumerable:!0,config object-assign (c) Sindre Sorhus @license MIT -*/var c1=Object.getOwnPropertySymbols,VL=Object.prototype.hasOwnProperty,WL=Object.prototype.propertyIsEnumerable;function qL(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function XL(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var R_=XL()?Object.assign:function(e,t){for(var r,n=qL(e),i,o=1;o"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,v=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ge=L[ae];if(ge!==void 0&&0R(Se,ee))Ve!==void 0&&0>R(Ve,Se)?(L[ae]=Ve,L[Ge]=ee,ae=Ge):(L[ae]=Se,L[be]=ee,ae=be);else if(Ve!==void 0&&0>R(Ve,ee))L[ae]=Ve,L[Ge]=ee,ae=Ge;else break e}}return V}return null}function R(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],D=1,F=null,H=3,re=!1,z=!1,q=!1;function le(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function Ue(L){if(q=!1,le(L),!z)if(w(A)!==null)z=!0,t(me);else{var V=w(P);V!==null&&r(Ue,V.startTime-L)}}function me(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(le(V),F=w(A);F!==null&&(!(F.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=F.callback;if(typeof ae=="function"){F.callback=null,H=F.priorityLevel;var ge=ae(F.expirationTime<=V);V=e.unstable_now(),typeof ge=="function"?F.callback=ge:F===w(A)&&T(A),le(V)}else T(A);F=w(A)}if(F!==null)var be=!0;else{var Se=w(P);Se!==null&&r(Ue,Se.startTime-V),be=!1}return be}finally{F=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(me))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r(Ue,ee-ae))):(L.sortIndex=ge,b(A,L),z||re||(z=!0,t(me))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(CO);TO.exports=CO;var oM=TO.exports;/** @license React v17.0.2 + */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,l=null,c=function(){if(u!==null)try{var L=e.unstable_now();u(!0,L),u=null}catch(V){throw setTimeout(c,0),V}};t=function(L){u!==null?setTimeout(t,0,L):(u=L,setTimeout(c,0))},r=function(L,V){l=setTimeout(L,V)},n=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,p=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ge=L[ae];if(ge!==void 0&&0k(Se,ee))Ve!==void 0&&0>k(Ve,Se)?(L[ae]=Ve,L[Ge]=ee,ae=Ge):(L[ae]=Se,L[be]=ee,ae=be);else if(Ve!==void 0&&0>k(Ve,ee))L[ae]=Ve,L[Ge]=ee,ae=Ge;else break e}}return V}return null}function k(L,V){var ee=L.sortIndex-V.sortIndex;return ee!==0?ee:L.id-V.id}var A=[],P=[],F=1,D=null,H=3,re=!1,z=!1,q=!1;function le(L){for(var V=w(P);V!==null;){if(V.callback===null)T(P);else if(V.startTime<=L)T(P),V.sortIndex=V.expirationTime,b(A,V);else break;V=w(P)}}function Ue(L){if(q=!1,le(L),!z)if(w(A)!==null)z=!0,t(me);else{var V=w(P);V!==null&&r(Ue,V.startTime-L)}}function me(L,V){z=!1,q&&(q=!1,n()),re=!0;var ee=H;try{for(le(V),D=w(A);D!==null&&(!(D.expirationTime>V)||L&&!e.unstable_shouldYield());){var ae=D.callback;if(typeof ae=="function"){D.callback=null,H=D.priorityLevel;var ge=ae(D.expirationTime<=V);V=e.unstable_now(),typeof ge=="function"?D.callback=ge:D===w(A)&&T(A),le(V)}else T(A);D=w(A)}if(D!==null)var be=!0;else{var Se=w(P);Se!==null&&r(Ue,Se.startTime-V),be=!1}return be}finally{D=null,H=ee,re=!1}}var Q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||re||(z=!0,t(me))},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return w(A)},e.unstable_next=function(L){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var ee=H;H=V;try{return L()}finally{H=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Q,e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ee=H;H=L;try{return V()}finally{H=ee}},e.unstable_scheduleCallback=function(L,V,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0ae?(L.sortIndex=ee,b(P,L),w(A)===null&&L===w(P)&&(q?n():q=!0,r(Ue,ee-ae))):(L.sortIndex=ge,b(A,L),z||re||(z=!0,t(me))),L},e.unstable_wrapCallback=function(L){var V=H;return function(){var ee=H;H=V;try{return L.apply(this,arguments)}finally{H=ee}}}})(CO);TO.exports=CO;var oM=TO.exports;/** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Nh=$,ht=R_,Ut=oM;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p1=Object.prototype.hasOwnProperty,v1={},m1={};function sM(e){return p1.call(m1,e)?!0:p1.call(v1,e)?!1:aM.test(e)?m1[e]=!0:(v1[e]=!0,!1)}function uM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lM(e,t,r,n){if(t===null||typeof t>"u"||uM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var F_=/[\-:]([a-z])/g;function B_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(F_,B_);Jt[t]=new yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(F_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(F_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function j_(e,t,r,n){var i=Jt.hasOwnProperty(t)?Jt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p1=Object.prototype.hasOwnProperty,v1={},m1={};function sM(e){return p1.call(m1,e)?!0:p1.call(v1,e)?!1:aM.test(e)?m1[e]=!0:(v1[e]=!0,!1)}function uM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lM(e,t,r,n){if(t===null||typeof t>"u"||uM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var D_=/[\-:]([a-z])/g;function B_(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(D_,B_);Jt[t]=new yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(D_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(D_,B_);Jt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function j_(e,t,r,n){var i=Jt.hasOwnProperty(t)?Jt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2s||i[a]!==o[s])return` -`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{dp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?yu(e):""}function cM(e){switch(e.tag){case 5:return yu(e.type);case 16:return yu("Lazy");case 13:return yu("Suspense");case 19:return yu("SuspenseList");case 0:case 2:case 15:return e=uc(e.type,!1),e;case 11:return e=uc(e.type.render,!1),e;case 22:return e=uc(e.type._render,!1),e;case 1:return e=uc(e.type,!0),e;default:return""}}function Fa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ki:return"Fragment";case Po:return"Portal";case Cu:return"Profiler";case $_:return"StrictMode";case Ou:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G_:return(e.displayName||"Context")+".Consumer";case U_:return(e._context.displayName||"Context")+".Provider";case Lh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Mh:return Fa(e.type);case H_:return Fa(e._render);case z_:t=e._payload,e=e._init;try{return Fa(e(t))}catch{}}return null}function Qi(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function PO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fM(e){var t=PO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lc(e){e._valueTracker||(e._valueTracker=fM(e))}function kO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=PO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function If(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mm(e,t){var r=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function y1(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Qi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function RO(e,t){t=t.checked,t!=null&&j_(e,"checked",t,!1)}function Dm(e,t){RO(e,t);var r=Qi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Fm(e,t.type,Qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _1(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Fm(e,t,r){(t!=="number"||If(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function hM(e){var t="";return Nh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Bm(e,t){return e=ht({children:void 0},t),(t=hM(t.children))&&(e.children=t),e}function Ba(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Qi(r)}}function IO(e,t){var r=Qi(t.value),n=Qi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function b1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var $m={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function NO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Um(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?NO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cc,LO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==$m.svg||"innerHTML"in e)e.innerHTML=t;else{for(cc=cc||document.createElement("div"),cc.innerHTML=""+t.valueOf().toString()+"",t=cc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Au={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dM=["Webkit","ms","Moz","O"];Object.keys(Au).forEach(function(e){dM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Au[t]=Au[e]})});function MO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Au.hasOwnProperty(e)&&Au[e]?(""+t).trim():t+"px"}function DO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=MO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var pM=ht({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gm(e,t){if(t){if(pM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function zm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function q_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hm=null,ja=null,$a=null;function S1(e){if(e=Ul(e)){if(typeof Hm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Uh(t),Hm(e.stateNode,e.type,t))}}function FO(e){ja?$a?$a.push(e):$a=[e]:ja=e}function BO(){if(ja){var e=ja,t=$a;if($a=ja=null,S1(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Fh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Ji(t),e[t]=r}var Ji=Math.clz32?Math.clz32:kM,AM=Math.log,PM=Math.LN2;function kM(e){return e===0?32:31-(AM(e)/PM|0)|0}var RM=Ut.unstable_UserBlockingPriority,IM=Ut.unstable_runWithPriority,of=!0;function NM(e,t,r,n){ko||Y_();var i=e0,o=ko;ko=!0;try{jO(i,e,t,r,n)}finally{(ko=o)||K_()}}function LM(e,t,r,n){IM(RM,e0.bind(null,e,t,r,n))}function e0(e,t,r,n){if(of){var i;if((i=(t&4)===0)&&0=ku),I1=String.fromCharCode(32),N1=!1;function rA(e,t){switch(e){case"keyup":return nD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function oD(e,t){switch(e){case"compositionend":return nA(t);case"keypress":return t.which!==32?null:(N1=!0,I1);case"textInput":return e=t.data,e===I1&&N1?null:e;default:return null}}function aD(e,t){if(Oa)return e==="compositionend"||!o0&&rA(e,t)?(e=eA(),af=r0=Ni=null,Oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=F1(r)}}function sA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j1(){for(var e=window,t=If();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=If(e.document)}return t}function Ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var mD=bi&&"documentMode"in document&&11>=document.documentMode,Aa=null,Km=null,Iu=null,Zm=!1;function $1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zm||Aa==null||Aa!==If(n)||(n=Aa,"selectionStart"in n&&Ym(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Iu&&nl(Iu,n)||(Iu=n,n=Df(Km,"onSelect"),0ka||(e.current=Jm[ka],Jm[ka]=null,ka--)}function _t(e,t){ka++,Jm[ka]=e.current,e.current=t}var eo={},lr=co(eo),Ar=co(!1),Ho=eo;function es(e,t){var r=e.type.contextTypes;if(!r)return eo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pr(e){return e=e.childContextTypes,e!=null}function jf(){ut(Ar),ut(lr)}function Y1(e,t,r){if(lr.current!==eo)throw Error(K(168));_t(lr,t),_t(Ar,r)}function vA(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Fa(t)||"Unknown",i));return ht({},r,n)}function uf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eo,Ho=lr.current,_t(lr,e),_t(Ar,Ar.current),!0}function K1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=vA(e,t,Ho),n.__reactInternalMemoizedMergedChildContext=e,ut(Ar),ut(lr),_t(lr,e)):ut(Ar),_t(Ar,r)}var s0=null,Bo=null,_D=Ut.unstable_runWithPriority,u0=Ut.unstable_scheduleCallback,eg=Ut.unstable_cancelCallback,xD=Ut.unstable_shouldYield,Z1=Ut.unstable_requestPaint,tg=Ut.unstable_now,bD=Ut.unstable_getCurrentPriorityLevel,Gh=Ut.unstable_ImmediatePriority,mA=Ut.unstable_UserBlockingPriority,gA=Ut.unstable_NormalPriority,yA=Ut.unstable_LowPriority,_A=Ut.unstable_IdlePriority,Cp={},SD=Z1!==void 0?Z1:function(){},fi=null,lf=null,Op=!1,Q1=tg(),sr=1e4>Q1?tg:function(){return tg()-Q1};function ts(){switch(bD()){case Gh:return 99;case mA:return 98;case gA:return 97;case yA:return 96;case _A:return 95;default:throw Error(K(332))}}function xA(e){switch(e){case 99:return Gh;case 98:return mA;case 97:return gA;case 96:return yA;case 95:return _A;default:throw Error(K(332))}}function Vo(e,t){return e=xA(e),_D(e,t)}function ol(e,t,r){return e=xA(e),u0(e,t,r)}function Qn(){if(lf!==null){var e=lf;lf=null,eg(e)}bA()}function bA(){if(!Op&&fi!==null){Op=!0;var e=0;try{var t=fi;Vo(99,function(){for(;eT?(R=w,w=null):R=w.sibling;var A=h(v,w,y[T],_);if(A===null){w===null&&(w=R);break}e&&w&&A.alternate===null&&t(v,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=R}if(T===y.length)return r(v,w),x;if(w===null){for(;TT?(R=w,w=null):R=w.sibling;var P=h(v,w,A.value,_);if(P===null){w===null&&(w=R);break}e&&w&&P.alternate===null&&t(v,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=R}if(A.done)return r(v,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(v,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(v,w);!A.done;T++,A=y.next())A=d(w,v,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(D){return t(v,D)}),x}return function(v,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===ki&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case gu:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===ki){r(v,x.sibling),m=i(x,y.props.children),m.return=v,v=m;break e}break;default:if(x.elementType===y.type){r(v,x.sibling),m=i(x,y.props),m.ref=Zs(v,x,y),m.return=v,v=m;break e}}r(v,x);break}else t(v,x);x=x.sibling}y.type===ki?(m=Wa(y.props.children,v.mode,_,y.key),m.return=v,v=m):(_=df(y.type,y.key,y.props,null,v.mode,_),_.ref=Zs(v,m,y),_.return=v,v=_)}return a(v);case Po:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=i(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Np(y,v.mode,_),m.return=v,v=m}return a(v)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=i(m,y),m.return=v,v=m):(r(v,m),m=Ip(y,v.mode,_),m.return=v,v=m),a(v);if(dc(y))return p(v,m,y,_);if(Vs(y))return g(v,m,y,_);if(b&&pc(v,y),typeof y>"u"&&!x)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Fa(v.type)||"Component"))}return r(v,m)}}var Hf=CA(!0),OA=CA(!1),Gl={},Gn=co(Gl),sl=co(Gl),ul=co(Gl);function Io(e){if(e===Gl)throw Error(K(174));return e}function ng(e,t){switch(_t(ul,t),_t(sl,e),_t(Gn,Gl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Um(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Um(t,e)}ut(Gn),_t(Gn,t)}function rs(){ut(Gn),ut(sl),ut(ul)}function nS(e){Io(ul.current);var t=Io(Gn.current),r=Um(t,e.type);t!==r&&(_t(sl,e),_t(Gn,r))}function h0(e){sl.current===e&&(ut(Gn),ut(sl))}var yt=co(0);function Vf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vi=null,Mi=null,zn=!1;function AA(e,t){var r=Qr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function iS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function ig(e){if(zn){var t=Mi;if(t){var r=t;if(!iS(e,t)){if(t=Ua(r.nextSibling),!t||!iS(e,t)){e.flags=e.flags&-1025|2,zn=!1,vi=e;return}AA(vi,r)}vi=e,Mi=Ua(t.firstChild)}else e.flags=e.flags&-1025|2,zn=!1,vi=e}}function oS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vi=e}function vc(e){if(e!==vi)return!1;if(!zn)return oS(e),zn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Qm(t,e.memoizedProps))for(t=Mi;t;)AA(e,t),t=Ua(t.nextSibling);if(oS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Mi=Ua(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Mi=null}}else Mi=vi?Ua(e.stateNode.nextSibling):null;return!0}function Ap(){Mi=vi=null,zn=!1}var za=[];function d0(){for(var e=0;eo))throw Error(K(301));o+=1,Kt=or=null,t.updateQueue=null,Nu.current=OD,e=r(n,i)}while(Lu)}if(Nu.current=Kf,t=or!==null&&or.next!==null,ll=0,Kt=or=wt=null,Wf=!1,t)throw Error(K(300));return e}function No(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function ea(){if(or===null){var e=wt.alternate;e=e!==null?e.memoizedState:null}else e=or.next;var t=Kt===null?wt.memoizedState:Kt.next;if(t!==null)Kt=t,or=e;else{if(e===null)throw Error(K(310));or=e,e={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}function Bn(e,t){return typeof t=="function"?t(e):t}function Qs(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=or,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((ll&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,wt.lanes|=l,zl|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Zr(n,t.memoizedState)||(_n=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Js(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Zr(o,t.memoizedState)||(_n=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function aS(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(ll&e)===e)&&(t._workInProgressVersionPrimary=n,za.push(t))),e)return r(t._source);throw za.push(t),Error(K(350))}function PA(e,t,r,n){var i=pr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=Nu.current,u=s.useState(function(){return aS(i,t,r)}),l=u[1],c=u[0];u=Kt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,p=f.source;f=f.subscribe;var g=wt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var v=o(t._source);if(!Zr(a,v)){v=r(t._source),Zr(c,v)||(l(v),v=Hi(g),i.mutableReadLanes|=v&i.pendingLanes),v=i.mutableReadLanes,i.entangledLanes|=v;for(var m=i.entanglements,y=v;0r?98:r,function(){e(!0)}),Vo(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Li]=t,e[Bf]=n,BA(e,t,!1,!1),t.stateNode=e,a=zm(r,n),r){case"dialog":it("cancel",e),it("close",e),i=n;break;case"iframe":case"object":case"embed":it("load",e),i=n;break;case"video":case"audio":for(i=0;i<_u.length;i++)it(_u[i],e);i=n;break;case"source":it("error",e),i=n;break;case"img":case"image":case"link":it("error",e),it("load",e),i=n;break;case"details":it("toggle",e),i=n;break;case"input":y1(e,n),i=Mm(e,n),it("invalid",e);break;case"option":i=Bm(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=ht({},n,{value:void 0}),it("invalid",e);break;case"textarea":x1(e,n),i=jm(e,n),it("invalid",e);break;default:i=n}Gm(r,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?DO(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&LO(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Zu(e,u):typeof u=="number"&&Zu(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ku.hasOwnProperty(o)?u!=null&&o==="onScroll"&&it("scroll",e):u!=null&&j_(e,o,u,a))}switch(r){case"input":lc(e),_1(e,n,!1);break;case"textarea":lc(e),b1(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Qi(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ba(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ba(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ff)}dA(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)$A(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(K(166));r=Io(ul.current),Io(Gn.current),vc(t)?(n=t.stateNode,r=t.memoizedProps,n[Li]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Li]=t,t.stateNode=n)}return null;case 13:return ut(yt),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&vc(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||yt.current&1?Qt===0&&(Qt=3):((Qt===0||Qt===3)&&(Qt=4),pr===null||!(zl&134217727)&&!(xs&134217727)||Ha(pr,ur))),(n||r)&&(t.flags|=4),null);case 4:return rs(),ug(t),e===null&&cA(t.stateNode.containerInfo),null;case 10:return c0(t),null;case 17:return Pr(t.type)&&jf(),null;case 19:if(ut(yt),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!==0,a=n.rendering,a===null)if(o)tu(n,!1);else{if(Qt!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=Vf(e),a!==null){for(t.flags|=64,tu(n,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return _t(yt,yt.current&1|2),t.child}e=e.sibling}n.tail!==null&&sr()>pg&&(t.flags|=64,o=!0,tu(n,!1),t.lanes=33554432)}else{if(!o)if(e=Vf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),tu(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!zn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*sr()-n.renderingStartTime>pg&&r!==1073741824&&(t.flags|=64,o=!0,tu(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=sr(),r.sibling=null,t=yt.current,_t(yt,o?t&1|2:t&1),r):null;case 23:case 24:return w0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function kD(e){switch(e.tag){case 1:Pr(e.type)&&jf();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(rs(),ut(Ar),ut(lr),d0(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return h0(e),null;case 13:return ut(yt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ut(yt),null;case 4:return rs(),null;case 10:return c0(e),null;case 23:case 24:return w0(),null;default:return null}}function _0(e,t){try{var r="",n=t;do r+=cM(n),n=n.return;while(n);var i=r}catch(o){i=` +`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{dp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?_u(e):""}function cM(e){switch(e.tag){case 5:return _u(e.type);case 16:return _u("Lazy");case 13:return _u("Suspense");case 19:return _u("SuspenseList");case 0:case 2:case 15:return e=uc(e.type,!1),e;case 11:return e=uc(e.type.render,!1),e;case 22:return e=uc(e.type._render,!1),e;case 1:return e=uc(e.type,!0),e;default:return""}}function Da(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ki:return"Fragment";case Po:return"Portal";case Ou:return"Profiler";case $_:return"StrictMode";case Au:return"Suspense";case If:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G_:return(e.displayName||"Context")+".Consumer";case U_:return(e._context.displayName||"Context")+".Provider";case Lh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Mh:return Da(e.type);case H_:return Da(e._render);case z_:t=e._payload,e=e._init;try{return Da(e(t))}catch{}}return null}function Qi(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function PO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fM(e){var t=PO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lc(e){e._valueTracker||(e._valueTracker=fM(e))}function kO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=PO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Rf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mm(e,t){var r=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function y1(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Qi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function IO(e,t){t=t.checked,t!=null&&j_(e,"checked",t,!1)}function Fm(e,t){IO(e,t);var r=Qi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Dm(e,t.type,Qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _1(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Dm(e,t,r){(t!=="number"||Rf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function hM(e){var t="";return Nh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Bm(e,t){return e=ht({children:void 0},t),(t=hM(t.children))&&(e.children=t),e}function Ba(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Qi(r)}}function RO(e,t){var r=Qi(t.value),n=Qi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function b1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var $m={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function NO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Um(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?NO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cc,LO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==$m.svg||"innerHTML"in e)e.innerHTML=t;else{for(cc=cc||document.createElement("div"),cc.innerHTML=""+t.valueOf().toString()+"",t=cc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Pu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dM=["Webkit","ms","Moz","O"];Object.keys(Pu).forEach(function(e){dM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pu[t]=Pu[e]})});function MO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Pu.hasOwnProperty(e)&&Pu[e]?(""+t).trim():t+"px"}function FO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=MO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var pM=ht({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gm(e,t){if(t){if(pM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function zm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function q_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hm=null,ja=null,$a=null;function S1(e){if(e=Ul(e)){if(typeof Hm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Uh(t),Hm(e.stateNode,e.type,t))}}function DO(e){ja?$a?$a.push(e):$a=[e]:ja=e}function BO(){if(ja){var e=ja,t=$a;if($a=ja=null,S1(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Dh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Ji(t),e[t]=r}var Ji=Math.clz32?Math.clz32:kM,AM=Math.log,PM=Math.LN2;function kM(e){return e===0?32:31-(AM(e)/PM|0)|0}var IM=Ut.unstable_UserBlockingPriority,RM=Ut.unstable_runWithPriority,of=!0;function NM(e,t,r,n){ko||Y_();var i=e0,o=ko;ko=!0;try{jO(i,e,t,r,n)}finally{(ko=o)||K_()}}function LM(e,t,r,n){RM(IM,e0.bind(null,e,t,r,n))}function e0(e,t,r,n){if(of){var i;if((i=(t&4)===0)&&0=Iu),R1=String.fromCharCode(32),N1=!1;function rA(e,t){switch(e){case"keyup":return nF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function oF(e,t){switch(e){case"compositionend":return nA(t);case"keypress":return t.which!==32?null:(N1=!0,R1);case"textInput":return e=t.data,e===R1&&N1?null:e;default:return null}}function aF(e,t){if(Oa)return e==="compositionend"||!o0&&rA(e,t)?(e=eA(),af=r0=Ni=null,Oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=D1(r)}}function sA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j1(){for(var e=window,t=Rf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Rf(e.document)}return t}function Ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var mF=bi&&"documentMode"in document&&11>=document.documentMode,Aa=null,Km=null,Nu=null,Zm=!1;function $1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zm||Aa==null||Aa!==Rf(n)||(n=Aa,"selectionStart"in n&&Ym(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Nu&&nl(Nu,n)||(Nu=n,n=Ff(Km,"onSelect"),0ka||(e.current=Jm[ka],Jm[ka]=null,ka--)}function _t(e,t){ka++,Jm[ka]=e.current,e.current=t}var eo={},lr=co(eo),Ar=co(!1),Ho=eo;function ts(e,t){var r=e.type.contextTypes;if(!r)return eo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pr(e){return e=e.childContextTypes,e!=null}function jf(){ut(Ar),ut(lr)}function Y1(e,t,r){if(lr.current!==eo)throw Error(K(168));_t(lr,t),_t(Ar,r)}function vA(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(K(108,Da(t)||"Unknown",i));return ht({},r,n)}function uf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eo,Ho=lr.current,_t(lr,e),_t(Ar,Ar.current),!0}function K1(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=vA(e,t,Ho),n.__reactInternalMemoizedMergedChildContext=e,ut(Ar),ut(lr),_t(lr,e)):ut(Ar),_t(Ar,r)}var s0=null,Bo=null,_F=Ut.unstable_runWithPriority,u0=Ut.unstable_scheduleCallback,eg=Ut.unstable_cancelCallback,xF=Ut.unstable_shouldYield,Z1=Ut.unstable_requestPaint,tg=Ut.unstable_now,bF=Ut.unstable_getCurrentPriorityLevel,Gh=Ut.unstable_ImmediatePriority,mA=Ut.unstable_UserBlockingPriority,gA=Ut.unstable_NormalPriority,yA=Ut.unstable_LowPriority,_A=Ut.unstable_IdlePriority,Cp={},SF=Z1!==void 0?Z1:function(){},fi=null,lf=null,Op=!1,Q1=tg(),sr=1e4>Q1?tg:function(){return tg()-Q1};function rs(){switch(bF()){case Gh:return 99;case mA:return 98;case gA:return 97;case yA:return 96;case _A:return 95;default:throw Error(K(332))}}function xA(e){switch(e){case 99:return Gh;case 98:return mA;case 97:return gA;case 96:return yA;case 95:return _A;default:throw Error(K(332))}}function Vo(e,t){return e=xA(e),_F(e,t)}function ol(e,t,r){return e=xA(e),u0(e,t,r)}function Qn(){if(lf!==null){var e=lf;lf=null,eg(e)}bA()}function bA(){if(!Op&&fi!==null){Op=!0;var e=0;try{var t=fi;Vo(99,function(){for(;eT?(k=w,w=null):k=w.sibling;var A=h(p,w,y[T],_);if(A===null){w===null&&(w=k);break}e&&w&&A.alternate===null&&t(p,w),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A,w=k}if(T===y.length)return r(p,w),x;if(w===null){for(;TT?(k=w,w=null):k=w.sibling;var P=h(p,w,A.value,_);if(P===null){w===null&&(w=k);break}e&&w&&P.alternate===null&&t(p,w),m=o(P,m,T),b===null?x=P:b.sibling=P,b=P,w=k}if(A.done)return r(p,w),x;if(w===null){for(;!A.done;T++,A=y.next())A=f(p,A.value,_),A!==null&&(m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return x}for(w=n(p,w);!A.done;T++,A=y.next())A=d(w,p,T,A.value,_),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=o(A,m,T),b===null?x=A:b.sibling=A,b=A);return e&&w.forEach(function(F){return t(p,F)}),x}return function(p,m,y,_){var x=typeof y=="object"&&y!==null&&y.type===ki&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case yu:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===ki){r(p,x.sibling),m=i(x,y.props.children),m.return=p,p=m;break e}break;default:if(x.elementType===y.type){r(p,x.sibling),m=i(x,y.props),m.ref=Qs(p,x,y),m.return=p,p=m;break e}}r(p,x);break}else t(p,x);x=x.sibling}y.type===ki?(m=Wa(y.props.children,p.mode,_,y.key),m.return=p,p=m):(_=df(y.type,y.key,y.props,null,p.mode,_),_.ref=Qs(p,m,y),_.return=p,p=_)}return a(p);case Po:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{r(p,m);break}else t(p,m);m=m.sibling}m=Np(y,p.mode,_),m.return=p,p=m}return a(p)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(p,m.sibling),m=i(m,y),m.return=p,p=m):(r(p,m),m=Rp(y,p.mode,_),m.return=p,p=m),a(p);if(dc(y))return v(p,m,y,_);if(Ws(y))return g(p,m,y,_);if(b&&pc(p,y),typeof y>"u"&&!x)switch(p.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Da(p.type)||"Component"))}return r(p,m)}}var Hf=CA(!0),OA=CA(!1),Gl={},Un=co(Gl),sl=co(Gl),ul=co(Gl);function Ro(e){if(e===Gl)throw Error(K(174));return e}function ng(e,t){switch(_t(ul,t),_t(sl,e),_t(Un,Gl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Um(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Um(t,e)}ut(Un),_t(Un,t)}function ns(){ut(Un),ut(sl),ut(ul)}function nS(e){Ro(ul.current);var t=Ro(Un.current),r=Um(t,e.type);t!==r&&(_t(sl,e),_t(Un,r))}function h0(e){sl.current===e&&(ut(Un),ut(sl))}var yt=co(0);function Vf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vi=null,Mi=null,Gn=!1;function AA(e,t){var r=Qr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function iS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function ig(e){if(Gn){var t=Mi;if(t){var r=t;if(!iS(e,t)){if(t=Ua(r.nextSibling),!t||!iS(e,t)){e.flags=e.flags&-1025|2,Gn=!1,vi=e;return}AA(vi,r)}vi=e,Mi=Ua(t.firstChild)}else e.flags=e.flags&-1025|2,Gn=!1,vi=e}}function oS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vi=e}function vc(e){if(e!==vi)return!1;if(!Gn)return oS(e),Gn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Qm(t,e.memoizedProps))for(t=Mi;t;)AA(e,t),t=Ua(t.nextSibling);if(oS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Mi=Ua(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Mi=null}}else Mi=vi?Ua(e.stateNode.nextSibling):null;return!0}function Ap(){Mi=vi=null,Gn=!1}var za=[];function d0(){for(var e=0;eo))throw Error(K(301));o+=1,Kt=or=null,t.updateQueue=null,Lu.current=OF,e=r(n,i)}while(Mu)}if(Lu.current=Kf,t=or!==null&&or.next!==null,ll=0,Kt=or=wt=null,Wf=!1,t)throw Error(K(300));return e}function No(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function ea(){if(or===null){var e=wt.alternate;e=e!==null?e.memoizedState:null}else e=or.next;var t=Kt===null?wt.memoizedState:Kt.next;if(t!==null)Kt=t,or=e;else{if(e===null)throw Error(K(310));or=e,e={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},Kt===null?wt.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}function Dn(e,t){return typeof t=="function"?t(e):t}function Js(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=or,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((ll&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,wt.lanes|=l,zl|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,Zr(n,t.memoizedState)||(yn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function eu(e){var t=ea(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Zr(o,t.memoizedState)||(yn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function aS(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(ll&e)===e)&&(t._workInProgressVersionPrimary=n,za.push(t))),e)return r(t._source);throw za.push(t),Error(K(350))}function PA(e,t,r,n){var i=pr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=Lu.current,u=s.useState(function(){return aS(i,t,r)}),l=u[1],c=u[0];u=Kt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,v=f.source;f=f.subscribe;var g=wt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var p=o(t._source);if(!Zr(a,p)){p=r(t._source),Zr(c,p)||(l(p),p=Hi(g),i.mutableReadLanes|=p&i.pendingLanes),p=i.mutableReadLanes,i.entangledLanes|=p;for(var m=i.entanglements,y=p;0r?98:r,function(){e(!0)}),Vo(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Li]=t,e[Bf]=n,BA(e,t,!1,!1),t.stateNode=e,a=zm(r,n),r){case"dialog":nt("cancel",e),nt("close",e),i=n;break;case"iframe":case"object":case"embed":nt("load",e),i=n;break;case"video":case"audio":for(i=0;ipg&&(t.flags|=64,o=!0,ru(n,!1),t.lanes=33554432)}else{if(!o)if(e=Vf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ru(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Gn)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*sr()-n.renderingStartTime>pg&&r!==1073741824&&(t.flags|=64,o=!0,ru(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=sr(),r.sibling=null,t=yt.current,_t(yt,o?t&1|2:t&1),r):null;case 23:case 24:return w0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(K(156,t.tag))}function kF(e){switch(e.tag){case 1:Pr(e.type)&&jf();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ns(),ut(Ar),ut(lr),d0(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return h0(e),null;case 13:return ut(yt),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ut(yt),null;case 4:return ns(),null;case 10:return c0(e),null;case 23:case 24:return w0(),null;default:return null}}function _0(e,t){try{var r="",n=t;do r+=cM(n),n=n.return;while(n);var i=r}catch(o){i=` Error generating stack: `+o.message+` -`+o.stack}return{value:e,source:t,stack:i}}function lg(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var RD=typeof WeakMap=="function"?WeakMap:Map;function UA(e,t,r){r=Gi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Qf||(Qf=!0,vg=n),lg(e,t)},r}function GA(e,t,r){r=Gi(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return lg(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(jn===null?jn=new Set([this]):jn.add(this),lg(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var ID=typeof WeakSet=="function"?WeakSet:Set;function _S(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Wi(e,r)}else t.current=null}function ND(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:gn(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&a0(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(K(163))}function LD(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(ZA(r,e),GD(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:gn(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&eS(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}eS(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&dA(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&WO(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(K(163))}function xS(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=MO("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function bS(e,t){if(Bo&&typeof Bo.onCommitFiberUnmount=="function")try{Bo.onCommitFiberUnmount(s0,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)ZA(t,r);else{n=t;try{i()}catch(o){Wi(n,o)}}r=r.next}while(r!==e)}break;case 1:if(_S(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Wi(t,o)}break;case 5:_S(t);break;case 4:zA(e,t)}}function SS(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function wS(e){return e.tag===5||e.tag===3||e.tag===4}function ES(e){e:{for(var t=e.return;t!==null;){if(wS(t))break e;t=t.return}throw Error(K(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(K(161))}r.flags&16&&(Zu(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||wS(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?cg(e,r,t):fg(e,r,t)}function cg(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ff));else if(n!==4&&(e=e.child,e!==null))for(cg(e,t,r),e=e.sibling;e!==null;)cg(e,t,r),e=e.sibling}function fg(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(fg(e,t,r),e=e.sibling;e!==null;)fg(e,t,r),e=e.sibling}function zA(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(K(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,u=s;;)if(bS(a,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(bS(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Rp(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[Bf]=n,e==="input"&&n.type==="radio"&&n.name!=null&&RO(r,n),zm(e,i),t=zm(e,n),i=0;ii&&(i=a),r&=~o}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DD(r/1960))-r,10i&&(i=a),r&=~o}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FF(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Qt!==5&&(Qt=2),u=_0(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=UA(h,o,t);J1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(jn===null||!jn.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var R=GA(h,o,t);J1(h,R);break e}}h=h.return}while(h!==null)}KA(r)}catch(A){t=A,It===r&&r!==null&&(It=r=r.return);continue}break}while(1)}function XA(){var e=Zf.current;return Zf.current=Kf,e===null?Kf:e}function bu(e,t){var r=pe;pe|=16;var n=XA();pr===e&&ur===t||Va(e,t);do try{BD();break}catch(i){qA(e,i)}while(1);if(l0(),pe=r,Zf.current=n,It!==null)throw Error(K(261));return pr=null,ur=0,Qt}function BD(){for(;It!==null;)YA(It)}function jD(){for(;It!==null&&!xD();)YA(It)}function YA(e){var t=QA(e.alternate,e,Wo);e.memoizedProps=e.pendingProps,t===null?KA(e):It=t,x0.current=null}function KA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=kD(t),r!==null){r.flags&=2047,It=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=PD(r,t,Wo),r!==null){It=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Wo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=B1(y,b),o=B1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}of=!!wp,Ep=wp=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&LD(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var R=ie.stateNode;switch(ie.tag){case 5:_=R;break;default:_=R}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Wi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,SD(),pe=i}else e.current=r;if(to)to=!1,Mu=e,xu=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(jn=null),n===1?e===yg?Du++:(Du=0,yg=e):Du=0,r=r.stateNode,Bo&&typeof Bo.onCommitFiberRoot=="function")try{Bo.onCommitFiberRoot(s0,r,void 0,(r.current.flags&64)===64)}catch{}if(an(e,sr()),Qf)throw Qf=!1,e=vg,vg=null,e;return pe&8||Qn(),null}function UD(){for(;ie!==null;){var e=ie.alternate;hf||Fu===null||(ie.flags&8?E1(ie,Fu)&&(hf=!0):ie.tag===13&&MD(e,ie)&&E1(ie,Fu)&&(hf=!0));var t=ie.flags;t&256&&ND(e,ie),!(t&512)||to||(to=!0,ol(97,function(){return fo(),null})),ie=ie.nextEffect}}function fo(){if(xu!==90){var e=97sr()-S0?Va(e,0):b0|=r),an(e,t)}function VD(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(di===0&&(di=_s),t=wa(62914560&~di),t===0&&(t=4194304)):t=ts()===99?1:2:t=1),r=$r(),e=Vh(e,t),e!==null&&(Fh(e,t,r),an(e,r))}var QA;QA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ar.current)_n=!0;else if(r&n)_n=!!(e.flags&16384);else{switch(_n=!1,t.tag){case 3:hS(t),Ap();break;case 5:nS(t);break;case 1:Pr(t.type)&&uf(t);break;case 4:ng(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;_t($f,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?dS(e,t,r):(_t(yt,yt.current&1),t=mi(e,t,r),t!==null?t.sibling:null);_t(yt,yt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return yS(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_t(yt,yt.current),n)break;return null;case 23:case 24:return t.lanes=0,Pp(e,t,r)}return mi(e,t,r)}else _n=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=es(t,lr.current),Ga(t,r),i=v0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(n)){var o=!0;uf(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,f0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&zf(t,n,a,e),i.updater=zh,t.stateNode=i,i._reactInternals=t,rg(t,n,e,r),t=sg(null,t,n,!0,o,r)}else t.tag=0,Sr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=qD(i),e=gn(i,e),o){case 0:t=ag(null,t,i,e,r);break e;case 1:t=fS(null,t,i,e,r);break e;case 11:t=lS(null,t,i,e,r);break e;case 14:t=cS(null,t,i,gn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:gn(n,i),ag(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:gn(n,i),fS(e,t,n,i,r);case 3:if(hS(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,wA(e,t),al(t,n,null,r),n=t.memoizedState.element,n===i)Ap(),t=mi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(Mi=Ua(t.stateNode.containerInfo.firstChild),vi=t,o=zn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eP)}catch(e){console.error(e)}}eP(),EO.exports=ln;var tP=EO.exports;const qn=Nr(tP);const eF="_Title_main_xpe81_1",tF="_Title_buttonList_xpe81_8",rF="_Title_button_xpe81_8",nF="_Title_button_text_xpe81_41",iF="_Title_backup_background_xpe81_48",Mr={Title_main:eF,Title_buttonList:tF,Title_button:rF,Title_button_text:nF,Title_backup_background:iF};function yn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:A0(e)?2:P0(e)?3:0}function qa(e,t){return Ss(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oF(e,t){return Ss(e)===2?e.get(t):e[t]}function rP(e,t,r){var n=Ss(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function nP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function A0(e){return fF&&e instanceof Map}function P0(e){return hF&&e instanceof Set}function So(e){return e.o||e.t}function k0(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=oP(e);delete t[ft];for(var r=Xa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=aF),Object.freeze(e),t&&qo(e,function(r,n){return R0(n,!0)},!0)),e}function aF(){yn(2)}function I0(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Hn(e){var t=wg[e];return t||yn(18,e),t}function sF(e,t){wg[e]||(wg[e]=t)}function xg(){return cl}function Mp(e,t){t&&(Hn("Patches"),e.u=[],e.s=[],e.v=t)}function eh(e){bg(e),e.p.forEach(uF),e.p=null}function bg(e){e===cl&&(cl=e.l)}function AS(e){return cl={p:[],l:cl,h:e,m:!0,_:0}}function uF(e){var t=e[ft];t.i===0||t.i===1?t.j():t.g=!0}function Dp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Hn("ES5").S(t,e,n),n?(r[ft].P&&(eh(t),yn(4)),Si(e)&&(e=th(t,e),t.l||rh(t,e)),t.u&&Hn("Patches").M(r[ft].t,e,t.u,t.s)):e=th(t,r,[]),eh(t),t.u&&t.v(t.u,t.s),e!==iP?e:void 0}function th(e,t,r){if(I0(t))return t;var n=t[ft];if(!n)return qo(t,function(s,u){return PS(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return rh(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=k0(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),qo(o,function(s,u){return PS(e,n,i,s,u,r,a)}),rh(e,i,!1),r&&e.u&&Hn("Patches").N(n,r,e.u,e.s)}return n.o}function PS(e,t,r,n,i,o,a){if(no(i)){var s=th(e,i,o&&t&&t.i!==3&&!qa(t.R,n)?o.concat(n):void 0);if(rP(r,n,s),!no(s))return;e.m=!1}else a&&r.add(i);if(Si(i)&&!I0(i)){if(!e.h.D&&e._<1)return;th(e,i),t&&t.A.l||rh(e,i)}}function rh(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&R0(t,r)}function Fp(e,t){var r=e[ft];return(r?So(r):e)[t]}function kS(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ri(e){e.P||(e.P=!0,e.l&&Ri(e.l))}function Bp(e){e.o||(e.o=k0(e.t))}function Sg(e,t,r){var n=A0(t)?Hn("MapSet").F(t,r):P0(t)?Hn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:xg(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=fl;a&&(u=[s],l=Su);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):Hn("ES5").J(t,r);return(r?r.A:xg()).p.push(n),n}function lF(e){return no(e)||yn(22,e),function t(r){if(!Si(r))return r;var n,i=r[ft],o=Ss(r);if(i){if(!i.P&&(i.i<4||!Hn("ES5").K(i)))return i.t;i.I=!0,n=RS(r,o),i.I=!1}else n=RS(r,o);return qo(n,function(a,s){i&&oF(i.t,a)===s||rP(n,a,t(s))}),o===3?new Set(n):n}(e)}function RS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return k0(e)}function cF(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[ft];return fl.get(u,o)},set:function(u){var l=this[ft];fl.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ft];if(!s.P)switch(s.i){case 5:n(s)&&Ri(s);break;case 4:r(s)&&Ri(s)}}}function r(o){for(var a=o.t,s=o.k,u=Xa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==ft){var f=a[c];if(f===void 0&&!qa(a,c))return!0;var h=s[c],d=h&&h[ft];if(d?d.t!==f:!nP(h,f))return!0}}var p=!!a[ft];return u.length!==Xa(a).length+(p?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=Hn("Patches").$;return no(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Gr=new pF,aP=Gr.produce;Gr.produceWithPatches.bind(Gr);Gr.setAutoFreeze.bind(Gr);Gr.setUseProxies.bind(Gr);Gr.applyPatches.bind(Gr);Gr.createDraft.bind(Gr);Gr.finishDraft.bind(Gr);function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function vF(e,t){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sP(e){var t=vF(e,"string");return $t(t)=="symbol"?t:String(t)}function Hr(e,t,r){return t=sP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ir(1));return r(uP)(e,t)}if(typeof e!="function")throw new Error(ir(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(ir(3));return o}function f(g){if(typeof g!="function")throw new Error(ir(4));if(u)throw new Error(ir(5));var v=!0;return l(),s.push(g),function(){if(v){if(u)throw new Error(ir(6));v=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!mF(g))throw new Error(ir(7));if(typeof g.type>"u")throw new Error(ir(8));if(u)throw new Error(ir(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var v=a=s,m=0;m"u")throw new Error(ir(12));if(typeof r(void 0,{type:nh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ir(13))})}function yF(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(ir(14));f[d]=v,c=c||v!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function ih(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var o3=i3,a3=qh;function s3(e,t){var r=this.__data__,n=a3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var u3=s3,l3=VF,c3=JF,f3=r3,h3=o3,d3=u3;function ws(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=d4}var z0=p4,v4=Wl,m4=z0,g4=ra,y4="[object Arguments]",_4="[object Array]",x4="[object Boolean]",b4="[object Date]",S4="[object Error]",w4="[object Function]",E4="[object Map]",T4="[object Number]",C4="[object Object]",O4="[object RegExp]",A4="[object Set]",P4="[object String]",k4="[object WeakMap]",R4="[object ArrayBuffer]",I4="[object DataView]",N4="[object Float32Array]",L4="[object Float64Array]",M4="[object Int8Array]",D4="[object Int16Array]",F4="[object Int32Array]",B4="[object Uint8Array]",j4="[object Uint8ClampedArray]",$4="[object Uint16Array]",U4="[object Uint32Array]",ot={};ot[N4]=ot[L4]=ot[M4]=ot[D4]=ot[F4]=ot[B4]=ot[j4]=ot[$4]=ot[U4]=!0;ot[y4]=ot[_4]=ot[R4]=ot[x4]=ot[I4]=ot[b4]=ot[S4]=ot[w4]=ot[E4]=ot[T4]=ot[C4]=ot[O4]=ot[A4]=ot[P4]=ot[k4]=!1;function G4(e){return g4(e)&&m4(e.length)&&!!ot[v4(e)]}var z4=G4;function H4(e){return function(t){return e(t)}}var H0=H4,ah={exports:{}};ah.exports;(function(e,t){var r=pP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ah,ah.exports);var V0=ah.exports,V4=z4,W4=H0,ZS=V0,QS=ZS&&ZS.isTypedArray,q4=QS?W4(QS):V4,bP=q4,X4=Kj,Y4=xP,K4=Ei,Z4=U0,Q4=G0,J4=bP,e$=Object.prototype,t$=e$.hasOwnProperty;function r$(e,t){var r=K4(e),n=!r&&Y4(e),i=!r&&!n&&Z4(e),o=!r&&!n&&!i&&J4(e),a=r||n||i||o,s=a?X4(e.length,String):[],u=s.length;for(var l in e)(t||t$.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Q4(l,u)))&&s.push(l);return s}var SP=r$,n$=Object.prototype;function i$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||n$;return e===r}var W0=i$;function o$(e,t){return function(r){return e(t(r))}}var wP=o$,a$=wP,s$=a$(Object.keys,Object),u$=s$,l$=W0,c$=u$,f$=Object.prototype,h$=f$.hasOwnProperty;function d$(e){if(!l$(e))return c$(e);var t=[];for(var r in Object(e))h$.call(e,r)&&r!="constructor"&&t.push(r);return t}var p$=d$,v$=mP,m$=z0;function g$(e){return e!=null&&m$(e.length)&&!v$(e)}var EP=g$,y$=SP,_$=p$,x$=EP;function b$(e){return x$(e)?y$(e):_$(e)}var Qh=b$,S$=Zh,w$=Qh;function E$(e,t){return e&&S$(t,w$(t),e)}var T$=E$;function C$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O$=C$,A$=Jn,P$=W0,k$=O$,R$=Object.prototype,I$=R$.hasOwnProperty;function N$(e){if(!A$(e))return k$(e);var t=P$(e),r=[];for(var n in e)n=="constructor"&&(t||!I$.call(e,n))||r.push(n);return r}var L$=N$,M$=SP,D$=L$,F$=EP;function B$(e){return F$(e)?M$(e,!0):D$(e)}var q0=B$,j$=Zh,$$=q0;function U$(e,t){return e&&j$(t,$$(t),e)}var G$=U$,sh={exports:{}};sh.exports;(function(e,t){var r=Tn,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(sh,sh.exports);var z$=sh.exports;function H$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e[e.applyStyle=32]="applyStyle",e))(ke||{});const BP={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1,replacedUIlable:{}},K0=L0({name:"stage",initialState:At(BP),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n},replaceUIlable:(e,t)=>{e.replacedUIlable[t.payload[0]]=t.payload[1]}}}),{resetStageState:ed,setStage:Ee,setStageVar:jP}=K0.actions,Er=K0.actions,f6=K0.reducer;function _c(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $P={exports:{}};/*! +Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}Qt!==5&&(Qt=2),u=_0(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=UA(h,o,t);J1(h,b);break e;case 1:o=u;var w=h.type,T=h.stateNode;if(!(h.flags&64)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Bn===null||!Bn.has(T)))){h.flags|=4096,t&=-t,h.lanes|=t;var k=GA(h,o,t);J1(h,k);break e}}h=h.return}while(h!==null)}KA(r)}catch(A){t=A,Rt===r&&r!==null&&(Rt=r=r.return);continue}break}while(1)}function XA(){var e=Zf.current;return Zf.current=Kf,e===null?Kf:e}function Su(e,t){var r=pe;pe|=16;var n=XA();pr===e&&ur===t||Va(e,t);do try{BF();break}catch(i){qA(e,i)}while(1);if(l0(),pe=r,Zf.current=n,Rt!==null)throw Error(K(261));return pr=null,ur=0,Qt}function BF(){for(;Rt!==null;)YA(Rt)}function jF(){for(;Rt!==null&&!xF();)YA(Rt)}function YA(e){var t=QA(e.alternate,e,Wo);e.memoizedProps=e.pendingProps,t===null?KA(e):Rt=t,x0.current=null}function KA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=kF(t),r!==null){r.flags&=2047,Rt=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=PF(r,t,Wo),r!==null){Rt=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Wo&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=b,b=s),s=B1(y,b),o=B1(y,a),s&&o&&(x.rangeCount!==1||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(_=_.createRange(),_.setStart(s.node,s.offset),x.removeAllRanges(),b>a?(x.addRange(_),x.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),x.addRange(_)))))),_=[],x=y;x=x.parentNode;)x.nodeType===1&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<_.length;y++)x=_[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}of=!!wp,Ep=wp=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&LF(y,ie.alternate,ie),w&128){_=void 0;var T=ie.ref;if(T!==null){var k=ie.stateNode;switch(ie.tag){case 5:_=k;break;default:_=k}typeof T=="function"?T(_):T.current=_}}ie=ie.nextEffect}}catch(A){if(ie===null)throw Error(K(330));Wi(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,SF(),pe=i}else e.current=r;if(to)to=!1,Fu=e,bu=t;else for(ie=n;ie!==null;)t=ie.nextEffect,ie.nextEffect=null,ie.flags&8&&(w=ie,w.sibling=null,w.stateNode=null),ie=t;if(n=e.pendingLanes,n===0&&(Bn=null),n===1?e===yg?Du++:(Du=0,yg=e):Du=0,r=r.stateNode,Bo&&typeof Bo.onCommitFiberRoot=="function")try{Bo.onCommitFiberRoot(s0,r,void 0,(r.current.flags&64)===64)}catch{}if(on(e,sr()),Qf)throw Qf=!1,e=vg,vg=null,e;return pe&8||Qn(),null}function UF(){for(;ie!==null;){var e=ie.alternate;hf||Bu===null||(ie.flags&8?E1(ie,Bu)&&(hf=!0):ie.tag===13&&MF(e,ie)&&E1(ie,Bu)&&(hf=!0));var t=ie.flags;t&256&&NF(e,ie),!(t&512)||to||(to=!0,ol(97,function(){return fo(),null})),ie=ie.nextEffect}}function fo(){if(bu!==90){var e=97sr()-S0?Va(e,0):b0|=r),on(e,t)}function VF(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(di===0&&(di=xs),t=wa(62914560&~di),t===0&&(t=4194304)):t=rs()===99?1:2:t=1),r=$r(),e=Vh(e,t),e!==null&&(Dh(e,t,r),on(e,r))}var QA;QA=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ar.current)yn=!0;else if(r&n)yn=!!(e.flags&16384);else{switch(yn=!1,t.tag){case 3:hS(t),Ap();break;case 5:nS(t);break;case 1:Pr(t.type)&&uf(t);break;case 4:ng(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;_t($f,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?dS(e,t,r):(_t(yt,yt.current&1),t=mi(e,t,r),t!==null?t.sibling:null);_t(yt,yt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return yS(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_t(yt,yt.current),n)break;return null;case 23:case 24:return t.lanes=0,Pp(e,t,r)}return mi(e,t,r)}else yn=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ts(t,lr.current),Ga(t,r),i=v0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(n)){var o=!0;uf(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,f0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&zf(t,n,a,e),i.updater=zh,t.stateNode=i,i._reactInternals=t,rg(t,n,e,r),t=sg(null,t,n,!0,o,r)}else t.tag=0,Sr(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=qF(i),e=mn(i,e),o){case 0:t=ag(null,t,i,e,r);break e;case 1:t=fS(null,t,i,e,r);break e;case 11:t=lS(null,t,i,e,r);break e;case 14:t=cS(null,t,i,mn(i.type,e),n,r);break e}throw Error(K(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),ag(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mn(n,i),fS(e,t,n,i,r);case 3:if(hS(t),n=t.updateQueue,e===null||n===null)throw Error(K(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,wA(e,t),al(t,n,null,r),n=t.memoizedState.element,n===i)Ap(),t=mi(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(Mi=Ua(t.stateNode.containerInfo.firstChild),vi=t,o=Gn=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eP)}catch(e){console.error(e)}}eP(),EO.exports=un;var tP=EO.exports;const qn=Nr(tP);const eD="_Title_main_xpe81_1",tD="_Title_buttonList_xpe81_8",rD="_Title_button_xpe81_8",nD="_Title_button_text_xpe81_41",iD="_Title_backup_background_xpe81_48",Mr={Title_main:eD,Title_buttonList:tD,Title_button:rD,Title_button_text:nD,Title_backup_background:iD};function gn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:A0(e)?2:P0(e)?3:0}function qa(e,t){return ws(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oD(e,t){return ws(e)===2?e.get(t):e[t]}function rP(e,t,r){var n=ws(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function nP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function A0(e){return fD&&e instanceof Map}function P0(e){return hD&&e instanceof Set}function So(e){return e.o||e.t}function k0(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=oP(e);delete t[ft];for(var r=Xa(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=aD),Object.freeze(e),t&&qo(e,function(r,n){return I0(n,!0)},!0)),e}function aD(){gn(2)}function R0(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zn(e){var t=wg[e];return t||gn(18,e),t}function sD(e,t){wg[e]||(wg[e]=t)}function xg(){return cl}function Mp(e,t){t&&(zn("Patches"),e.u=[],e.s=[],e.v=t)}function eh(e){bg(e),e.p.forEach(uD),e.p=null}function bg(e){e===cl&&(cl=e.l)}function AS(e){return cl={p:[],l:cl,h:e,m:!0,_:0}}function uD(e){var t=e[ft];t.i===0||t.i===1?t.j():t.g=!0}function Fp(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||zn("ES5").S(t,e,n),n?(r[ft].P&&(eh(t),gn(4)),Si(e)&&(e=th(t,e),t.l||rh(t,e)),t.u&&zn("Patches").M(r[ft].t,e,t.u,t.s)):e=th(t,r,[]),eh(t),t.u&&t.v(t.u,t.s),e!==iP?e:void 0}function th(e,t,r){if(R0(t))return t;var n=t[ft];if(!n)return qo(t,function(s,u){return PS(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return rh(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=k0(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),qo(o,function(s,u){return PS(e,n,i,s,u,r,a)}),rh(e,i,!1),r&&e.u&&zn("Patches").N(n,r,e.u,e.s)}return n.o}function PS(e,t,r,n,i,o,a){if(no(i)){var s=th(e,i,o&&t&&t.i!==3&&!qa(t.R,n)?o.concat(n):void 0);if(rP(r,n,s),!no(s))return;e.m=!1}else a&&r.add(i);if(Si(i)&&!R0(i)){if(!e.h.D&&e._<1)return;th(e,i),t&&t.A.l||rh(e,i)}}function rh(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&I0(t,r)}function Dp(e,t){var r=e[ft];return(r?So(r):e)[t]}function kS(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ii(e){e.P||(e.P=!0,e.l&&Ii(e.l))}function Bp(e){e.o||(e.o=k0(e.t))}function Sg(e,t,r){var n=A0(t)?zn("MapSet").F(t,r):P0(t)?zn("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:xg(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=fl;a&&(u=[s],l=wu);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):zn("ES5").J(t,r);return(r?r.A:xg()).p.push(n),n}function lD(e){return no(e)||gn(22,e),function t(r){if(!Si(r))return r;var n,i=r[ft],o=ws(r);if(i){if(!i.P&&(i.i<4||!zn("ES5").K(i)))return i.t;i.I=!0,n=IS(r,o),i.I=!1}else n=IS(r,o);return qo(n,function(a,s){i&&oD(i.t,a)===s||rP(n,a,t(s))}),o===3?new Set(n):n}(e)}function IS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return k0(e)}function cD(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[ft];return fl.get(u,o)},set:function(u){var l=this[ft];fl.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ft];if(!s.P)switch(s.i){case 5:n(s)&&Ii(s);break;case 4:r(s)&&Ii(s)}}}function r(o){for(var a=o.t,s=o.k,u=Xa(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==ft){var f=a[c];if(f===void 0&&!qa(a,c))return!0;var h=s[c],d=h&&h[ft];if(d?d.t!==f:!nP(h,f))return!0}}var v=!!a[ft];return u.length!==Xa(a).length+(v?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),_=1;_1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=zn("Patches").$;return no(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Gr=new pD,aP=Gr.produce;Gr.produceWithPatches.bind(Gr);Gr.setAutoFreeze.bind(Gr);Gr.setUseProxies.bind(Gr);Gr.applyPatches.bind(Gr);Gr.createDraft.bind(Gr);Gr.finishDraft.bind(Gr);function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function vD(e,t){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sP(e){var t=vD(e,"string");return $t(t)=="symbol"?t:String(t)}function Hr(e,t,r){return t=sP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ir(1));return r(uP)(e,t)}if(typeof e!="function")throw new Error(ir(2));var i=e,o=t,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(ir(3));return o}function f(g){if(typeof g!="function")throw new Error(ir(4));if(u)throw new Error(ir(5));var p=!0;return l(),s.push(g),function(){if(p){if(u)throw new Error(ir(6));p=!1,l();var y=s.indexOf(g);s.splice(y,1),a=null}}}function h(g){if(!mD(g))throw new Error(ir(7));if(typeof g.type>"u")throw new Error(ir(8));if(u)throw new Error(ir(9));try{u=!0,o=i(o,g)}finally{u=!1}for(var p=a=s,m=0;m"u")throw new Error(ir(12));if(typeof r(void 0,{type:nh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ir(13))})}function yD(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(ir(14));f[d]=p,c=c||p!==g}return c=c||o.length!==Object.keys(u).length,c?f:u}}function ih(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]-1}var o3=i3,a3=qh;function s3(e,t){var r=this.__data__,n=a3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var u3=s3,l3=VD,c3=JD,f3=r3,h3=o3,d3=u3;function Es(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=d4}var z0=p4,v4=Wl,m4=z0,g4=ra,y4="[object Arguments]",_4="[object Array]",x4="[object Boolean]",b4="[object Date]",S4="[object Error]",w4="[object Function]",E4="[object Map]",T4="[object Number]",C4="[object Object]",O4="[object RegExp]",A4="[object Set]",P4="[object String]",k4="[object WeakMap]",I4="[object ArrayBuffer]",R4="[object DataView]",N4="[object Float32Array]",L4="[object Float64Array]",M4="[object Int8Array]",F4="[object Int16Array]",D4="[object Int32Array]",B4="[object Uint8Array]",j4="[object Uint8ClampedArray]",$4="[object Uint16Array]",U4="[object Uint32Array]",it={};it[N4]=it[L4]=it[M4]=it[F4]=it[D4]=it[B4]=it[j4]=it[$4]=it[U4]=!0;it[y4]=it[_4]=it[I4]=it[x4]=it[R4]=it[b4]=it[S4]=it[w4]=it[E4]=it[T4]=it[C4]=it[O4]=it[A4]=it[P4]=it[k4]=!1;function G4(e){return g4(e)&&m4(e.length)&&!!it[v4(e)]}var z4=G4;function H4(e){return function(t){return e(t)}}var H0=H4,ah={exports:{}};ah.exports;(function(e,t){var r=pP,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ah,ah.exports);var V0=ah.exports,V4=z4,W4=H0,ZS=V0,QS=ZS&&ZS.isTypedArray,q4=QS?W4(QS):V4,bP=q4,X4=Kj,Y4=xP,K4=Ei,Z4=U0,Q4=G0,J4=bP,e$=Object.prototype,t$=e$.hasOwnProperty;function r$(e,t){var r=K4(e),n=!r&&Y4(e),i=!r&&!n&&Z4(e),o=!r&&!n&&!i&&J4(e),a=r||n||i||o,s=a?X4(e.length,String):[],u=s.length;for(var l in e)(t||t$.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Q4(l,u)))&&s.push(l);return s}var SP=r$,n$=Object.prototype;function i$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||n$;return e===r}var W0=i$;function o$(e,t){return function(r){return e(t(r))}}var wP=o$,a$=wP,s$=a$(Object.keys,Object),u$=s$,l$=W0,c$=u$,f$=Object.prototype,h$=f$.hasOwnProperty;function d$(e){if(!l$(e))return c$(e);var t=[];for(var r in Object(e))h$.call(e,r)&&r!="constructor"&&t.push(r);return t}var p$=d$,v$=mP,m$=z0;function g$(e){return e!=null&&m$(e.length)&&!v$(e)}var EP=g$,y$=SP,_$=p$,x$=EP;function b$(e){return x$(e)?y$(e):_$(e)}var Qh=b$,S$=Zh,w$=Qh;function E$(e,t){return e&&S$(t,w$(t),e)}var T$=E$;function C$(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var O$=C$,A$=Jn,P$=W0,k$=O$,I$=Object.prototype,R$=I$.hasOwnProperty;function N$(e){if(!A$(e))return k$(e);var t=P$(e),r=[];for(var n in e)n=="constructor"&&(t||!R$.call(e,n))||r.push(n);return r}var L$=N$,M$=SP,F$=L$,D$=EP;function B$(e){return D$(e)?M$(e,!0):F$(e)}var q0=B$,j$=Zh,$$=q0;function U$(e,t){return e&&j$(t,$$(t),e)}var G$=U$,sh={exports:{}};sh.exports;(function(e,t){var r=En,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(sh,sh.exports);var z$=sh.exports;function H$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput",e[e.applyStyle=32]="applyStyle",e))(ke||{});const BP={oldBgName:"",bgName:"",figName:"",figNameLeft:"",figNameRight:"",freeFigure:[],figureAssociatedAnimation:[],showText:"",showTextSize:-1,showName:"",command:"",choose:[],vocal:"",playVocal:"",vocalVolume:100,bgm:{src:"",enter:0,volume:100},uiSe:"",miniAvatar:"",GameVar:{},effects:[],bgFilter:"",bgTransform:"",PerformList:[],currentDialogKey:"initial",live2dMotion:[],live2dExpression:[],currentConcatDialogPrev:"",enableFilm:"",isDisableTextbox:!1,replacedUIlable:{}},K0=L0({name:"stage",initialState:At(BP),reducers:{resetStageState:(e,t)=>{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value},updateEffect:(e,t)=>{const{target:r,transform:n}=t.payload,i=e.effects.findIndex(o=>o.target===r);i>=0?e.effects[i].transform=n:e.effects.push({target:r,transform:n})},removeEffectByTargetId:(e,t)=>{const r=e.effects.findIndex(n=>n.target===t.payload);r>=0&&e.effects.splice(r,1)},addPerform:(e,t)=>{e.PerformList.push(t.payload)},removePerformByName:(e,t)=>{for(let r=0;r{for(let r=0;r{const r=e.freeFigure,n=t.payload,i=r.findIndex(o=>o.key===n.key);i>=0?(r[i].basePosition=n.basePosition,r[i].name=n.name):n.name!==""&&r.push(n)},setLive2dMotion:(e,t)=>{const{target:r,motion:n}=t.payload,i=e.live2dMotion.findIndex(o=>o.target===r);i<0?e.live2dMotion.push({target:r,motion:n}):e.live2dMotion[i].motion=n},setLive2dExpression:(e,t)=>{const{target:r,expression:n}=t.payload,i=e.live2dExpression.findIndex(o=>o.target===r);i<0?e.live2dExpression.push({target:r,expression:n}):e.live2dExpression[i].expression=n},replaceUIlable:(e,t)=>{e.replacedUIlable[t.payload[0]]=t.payload[1]}}}),{resetStageState:ed,setStage:Ee,setStageVar:jP}=K0.actions,Er=K0.actions,f6=K0.reducer;function _c(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $P={exports:{}};/*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 -*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof _c=="function"&&_c;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(p){var g=n[l][1][p];return a(g||p)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof _c=="function"&&_c,u=0;u"u"&&r(3);var f=Promise;function h(E,k){k&&E.then(function(C){k(null,C)},function(C){k(C)})}function d(E,k,C){typeof k=="function"&&E.then(k),typeof C=="function"&&E.catch(C)}function p(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var v="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var k=E.length,C=new ArrayBuffer(k),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function R(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(k){return m=k,m})}function A(E){var k=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),k.deferredOperations.push(C),k.dbReady?k.dbReady=k.dbReady.then(function(){return C.promise}):k.dbReady=C.promise}function P(E){var k=y[E.name],C=k.deferredOperations.pop();if(C)return C.resolve(),C.promise}function D(E,k){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(k),N.promise}function F(E,k){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(k)A(E),E.db.close();else return C(E.db);var M=[E.name];k&&M.push(E.version);var I=u.open.apply(u,M);k&&(I.onupgradeneeded=function(j){var U=I.result;try{U.createObjectStore(E.storeName),j.oldVersion<=1&&U.createObjectStore(v)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),I.onerror=function(j){j.preventDefault(),N(I.error)},I.onsuccess=function(){var j=I.result;j.onversionchange=function(U){U.target.close()},C(j),P(E)}})}function H(E){return F(E,!1)}function re(E){return F(E,!0)}function z(E,k){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==k&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var I=E.db.version+1;I>E.version&&(E.version=I)}return!0}return!1}function q(E){return new f(function(k,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var I=btoa(M.target.result||"");k({__local_forage_encoded_blob:!0,data:I,type:E.type})},N.readAsBinaryString(E)})}function le(E){var k=w(atob(E.data));return c([k],{type:E.type})}function Ue(E){return E&&E.__local_forage_encoded_blob}function me(E){var k=this,C=k._initReady().then(function(){var N=y[k._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var k=y[E.name],C=k.forages,N=0;N0&&(!E.db||I.name==="InvalidStateError"||I.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||I.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,k,C,N-1)})}).catch(C);C(I)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(k),k._initReady||(k._initReady=k.ready,k.ready=me);var I=[];function j(){return f.resolve()}for(var U=0;U>4,J[M++]=(j&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function op(E){var k=new Uint8Array(E),C="",N;for(N=0;N>2],C+=lt[(k[N]&3)<<4|k[N+1]>>4],C+=lt[(k[N+1]&15)<<2|k[N+2]>>6],C+=lt[k[N+2]&63];return k.length%3===2?C=C.substring(0,C.length-1)+"=":k.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function iL(E,k){var C="";if(E&&(C=r1.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&r1.call(E.buffer)==="[object ArrayBuffer]")){var N,M=hr;E instanceof ArrayBuffer?(N=E,M+=Ti):(N=E.buffer,C==="[object Int8Array]"?M+=$s:C==="[object Uint8Array]"?M+=Us:C==="[object Uint8ClampedArray]"?M+=Gs:C==="[object Int16Array]"?M+=Yb:C==="[object Uint16Array]"?M+=Zb:C==="[object Int32Array]"?M+=Kb:C==="[object Uint32Array]"?M+=Qb:C==="[object Float32Array]"?M+=Jb:C==="[object Float64Array]"?M+=e1:k(new Error("Failed to get type for BinaryArray"))),k(M+op(N))}else if(C==="[object Blob]"){var I=new FileReader;I.onload=function(){var j=er+E.type+"~"+op(this.result);k(hr+sa+j)},I.readAsArrayBuffer(E)}else try{k(JSON.stringify(E))}catch(j){console.error("Couldn't convert value into a JSON string: ",E),k(null,j)}}function oL(E){if(E.substring(0,Pn)!==hr)return JSON.parse(E);var k=E.substring(t1),C=E.substring(Pn,t1),N;if(C===sa&&Ne.test(k)){var M=k.match(Ne);N=M[1],k=k.substring(M[0].length)}var I=n1(k);switch(C){case Ti:return I;case sa:return c([I],{type:N});case $s:return new Int8Array(I);case Us:return new Uint8Array(I);case Gs:return new Uint8ClampedArray(I);case Yb:return new Int16Array(I);case Zb:return new Uint16Array(I);case Kb:return new Int32Array(I);case Qb:return new Uint32Array(I);case Jb:return new Float32Array(I);case e1:return new Float64Array(I);default:throw new Error("Unkown type: "+C)}}var ap={serialize:iL,deserialize:oL,stringToBuffer:n1,bufferToString:op};function i1(E,k,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+k.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function aL(E){var k=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(I,j){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return j(U)}C.db.transaction(function(U){i1(U,C,function(){k._dbInfo=C,I()},function(W,X){j(X)})},j)});return C.serializer=ap,M}function Ci(E,k,C,N,M,I){E.executeSql(C,N,M,function(j,U){U.code===U.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[k.storeName],function(W,X){X.rows.length?I(W,U):i1(W,k,function(){W.executeSql(C,N,M,I)},I)},I):I(j,U)},I)}function sL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=j.serializer.deserialize(J)),M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function uL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName,[],function(W,X){for(var J=X.rows,ue=J.length,Te=0;Te0){j(o1.apply(M,[E,W,C,N-1]));return}U(Te)}})})}).catch(U)});return h(I,C),I}function lL(E,k,C){return o1.apply(this,[E,k,C,1])}function cL(E,k){var C=this;E=p(E);var N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function fL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ci(j,I,"DELETE FROM "+I.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function hL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ci(j,I,"SELECT COUNT(key) as c FROM "+I.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function dL(E,k){var C=this,N=new f(function(M,I){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){I(X)})})}).catch(I)});return h(N,k),N}function pL(E){var k=this,C=new f(function(N,M){k.ready().then(function(){var I=k._dbInfo;I.db.transaction(function(j){Ci(j,I,"SELECT key FROM "+I.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,I){for(var j=[],U=0;U0}function bL(E){var k=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=a1(E,k._defaultConfig),xL()?(k._dbInfo=C,C.serializer=ap,f.resolve()):f.reject()}function SL(E){var k=this,C=k.ready().then(function(){for(var N=k._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var I=localStorage.key(M);I.indexOf(N)===0&&localStorage.removeItem(I)}});return h(C,E),C}function wL(E,k){var C=this;E=p(E);var N=C.ready().then(function(){var M=C._dbInfo,I=localStorage.getItem(M.keyPrefix+E);return I&&(I=M.serializer.deserialize(I)),I});return h(N,k),N}function EL(E,k){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,I=M.keyPrefix,j=I.length,U=localStorage.length,W=1,X=0;X=0;j--){var U=localStorage.key(j);U.indexOf(I)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,k),M}var RL={_driver:"localStorageWrapper",_initStorage:bL,_support:yL(),iterate:EL,getItem:wL,setItem:PL,removeItem:AL,clear:SL,length:OL,key:TL,keys:CL,dropInstance:kL},IL=function(k,C){return k===C||typeof k=="number"&&typeof C=="number"&&isNaN(k)&&isNaN(C)},NL=function(k,C){for(var N=k.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var I=new f(function(j,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=sp.concat("_initStorage"),ue=0,Te=J.length;ue"u"}function d6(e){return e!==null&&!kg(e)&&e.constructor!==null&&!kg(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function p6(e){return na.call(e)==="[object ArrayBuffer]"}function v6(e){return typeof FormData<"u"&&e instanceof FormData}function m6(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function g6(e){return typeof e=="string"}function y6(e){return typeof e=="number"}function GP(e){return e!==null&&typeof e=="object"}function vf(e){if(na.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _6(e){return na.call(e)==="[object Date]"}function x6(e){return na.call(e)==="[object File]"}function b6(e){return na.call(e)==="[object Blob]"}function zP(e){return na.call(e)==="[object Function]"}function S6(e){return GP(e)&&zP(e.pipe)}function w6(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function E6(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T6(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function J0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Q0(e))for(var r=0,n=e.length;r"u"||(ca.isArray(u)?l=l+"[]":u=[u],ca.forEach(u,function(f){ca.isDate(f)?f=f.toISOString():ca.isObject(f)&&(f=JSON.stringify(f)),o.push(pw(l)+"="+pw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},A6=Vr;function td(){this.handlers=[]}td.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};td.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};td.prototype.forEach=function(t){A6.forEach(this.handlers,function(n){n!==null&&t(n)})};var P6=td,k6=Vr,R6=function(t,r){k6.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},VP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},zp,vw;function WP(){if(vw)return zp;vw=1;var e=VP;return zp=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},zp}var Hp,mw;function I6(){if(mw)return Hp;mw=1;var e=WP();return Hp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Hp}var Vp,gw;function N6(){if(gw)return Vp;gw=1;var e=Vr;return Vp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Vp}var Wp,yw;function L6(){return yw||(yw=1,Wp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Wp}var qp,_w;function M6(){return _w||(_w=1,qp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),qp}var Xp,xw;function D6(){if(xw)return Xp;xw=1;var e=L6(),t=M6();return Xp=function(n,i){return n&&!e(i)?t(n,i):i},Xp}var Yp,bw;function F6(){if(bw)return Yp;bw=1;var e=Vr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Yp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},Yp}var Kp,Sw;function B6(){if(Sw)return Kp;Sw=1;var e=Vr;return Kp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Kp}var Zp,ww;function rd(){if(ww)return Zp;ww=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Zp=e,Zp}var Qp,Ew;function Tw(){if(Ew)return Qp;Ew=1;var e=Vr,t=I6(),r=N6(),n=HP,i=D6(),o=F6(),a=B6(),s=WP(),u=nd(),l=rd();return Qp=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u.transitional;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Qp}var Jp,Cw;function nd(){if(Cw)return Jp;Cw=1;var e=Vr,t=R6,r=VP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=Tw()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(p){if(d)throw p.name==="SyntaxError"?r(p,this,"E_JSON_PARSE"):p}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Jp=s,Jp}var j6=Vr,$6=nd(),U6=function(t,r,n){var i=this||$6;return j6.forEach(n,function(a){t=a.call(i,t,r)}),t},ev,Ow;function qP(){return Ow||(Ow=1,ev=function(t){return!!(t&&t.__CANCEL__)}),ev}var Aw=Vr,tv=U6,G6=qP(),z6=nd(),H6=rd();function rv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new H6("canceled")}var V6=function(t){rv(t),t.headers=t.headers||{},t.data=tv.call(t,t.data,t.headers,t.transformRequest),t.headers=Aw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Aw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||z6.adapter;return r(t).then(function(i){return rv(t),i.data=tv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return G6(i)||(rv(t),i&&i.response&&(i.response.data=tv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Dr=Vr,XP=function(t,r){r=r||{};var n={};function i(c,f){return Dr.isPlainObject(c)&&Dr.isPlainObject(f)?Dr.merge(c,f):Dr.isPlainObject(f)?Dr.merge({},f):Dr.isArray(f)?f.slice():f}function o(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Dr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Dr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Dr.isUndefined(d)&&h!==u||(n[f]=d)}),n},nv,Pw;function YP(){return Pw||(Pw=1,nv={version:"0.24.0"}),nv}var W6=YP().version,ex={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ex[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var kw={};ex.transitional=function(t,r,n){function i(o,a){return"[Axios v"+W6+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!kw[a]&&(kw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function q6(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var X6={assertOptions:q6,validators:ex},KP=Vr,Y6=HP,Rw=P6,Iw=V6,id=XP,ZP=X6,fa=ZP.validators;function ql(e){this.defaults=e,this.interceptors={request:new Rw,response:new Rw}}ql.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=id(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&ZP.assertOptions(r,{silentJSONParsing:fa.transitional(fa.boolean),forcedJSONParsing:fa.transitional(fa.boolean),clarifyTimeoutError:fa.transitional(fa.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[Iw,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=Iw(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};ql.prototype.getUri=function(t){return t=id(this.defaults,t),Y6(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};KP.forEach(["delete","get","head","options"],function(t){ql.prototype[t]=function(r,n){return this.request(id(n||{},{method:t,url:r,data:(n||{}).data}))}});KP.forEach(["post","put","patch"],function(t){ql.prototype[t]=function(r,n,i){return this.request(id(i||{},{method:t,url:r,data:n}))}});var K6=ql,iv,Nw;function Z6(){if(Nw)return iv;Nw=1;var e=rd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var sG=aG;const uG=Nr(sG),ne=new uG,lG={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{fullScreen:{title:"Full Screen",options:{on:"ON",off:"OFF"}},textSpeed:{title:"Text Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},cG={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},fG={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{fullScreen:{title:"全屏模式",options:{on:"开启",off:"关闭"}},textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},hG={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},dG={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},pG={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var ia=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(ia||{});const lh={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},vG={en:{translation:lG},zhCn:{translation:fG},jp:{translation:cG},fr:{translation:hG},de:{translation:dG},zhTw:{translation:pG}},mG=0;var vr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(vr||{}),xn=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(xn||{}),Vn=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Vn||{}),hl=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(hl||{}),en=(e=>(e[e.on=0]="on",e[e.off=1]="off",e))(en||{});const JP={slPage:1,volumeMain:100,textSpeed:vr.normal,autoSpeed:vr.normal,textSize:xn.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Vn.song,textboxOpacity:75,language:ia.zhCn,voiceInterruption:hl.yes,fullScreen:en.off},Ig={saveData:[],optionData:JP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},e2=L0({name:"userData",initialState:At(Ig),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetOptionSet(e){Object.assign(e.optionData,JP)},resetAllData(e){Object.assign(e,At(Ig))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:gG,resetUserData:tx,setOptionData:rt,setGlobalVar:yG,setSlPage:t2,unlockCgInUserData:r2,unlockBgmInUserData:n2,setFastSave:_G,resetOptionSet:xG,resetSaveData:bG,resetAllData:SG}=e2.actions,wG=e2.reducer,i2={backlog_size:200,fast_timeout:50},EG={textInitialDelay:80};class TG{constructor(t){se(this,"isSaveBacklogNext",!1);se(this,"backlog",[]);se(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=B.getState().stage,r=At(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:At(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>i2.backlog_size;)this.getBacklog().shift()}}const Fw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class CG{constructor(){se(this,"settledScenes",[]);se(this,"settledAssets",[]);se(this,"sceneData",At(Fw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=At(Fw.currentScene)}}class OG{constructor(){se(this,"nextEnterAnimationName",new Map);se(this,"nextExitAnimationName",new Map);se(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}const AG={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};var Br=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Br||{});const jr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}},PG=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const Bw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=kG(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=RG(n,i,t),n};function kG(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function RG(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Tt;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Tt||(Tt={}));function o2(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Tt.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const IG=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,Tt.vocal);case oe.changeBg:return r(e,Tt.background);case oe.changeFigure:return r(e,Tt.figure);case oe.bgm:return r(e,Tt.bgm);case oe.callScene:return r(e,Tt.scene);case oe.changeScene:return r(e,Tt.scene);case oe.miniAvatar:return r(e,Tt.figure);case oe.video:return r(e,Tt.video);case oe.choose:return NG(e,r);case oe.unlockBgm:return r(e,Tt.bgm);case oe.unlockCg:return r(e,Tt.background);default:return e}};function NG(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,Tt.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Tt.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Tt.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:Tt.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:Tt.bgm})),n},MG=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},DG=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=Bw(c,r,n),i=l.type;for(const p of l.additionalArgs)i===oe.say&&p.key==="speaker"||s.push(p)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=Bw(c,r,n),i=l.type;for(const p of l.additionalArgs)s.push(p)}const d=/ -/.exec(f);if(d){const p=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of o2(p,t))s.push(g)}return o=IG(f,i,t),u=LG(i,o,s),a=MG(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var xc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},FG=typeof xc=="object"&&xc&&xc.Object===Object&&xc,BG=FG,jG=BG,$G=typeof self=="object"&&self&&self.Object===Object&&self,UG=jG||$G||Function("return this")(),od=UG,GG=od,zG=GG.Symbol,a2=zG,jw=a2,s2=Object.prototype,HG=s2.hasOwnProperty,VG=s2.toString,iu=jw?jw.toStringTag:void 0;function WG(e){var t=HG.call(e,iu),r=e[iu];try{e[iu]=void 0;var n=!0}catch{}var i=VG.call(e);return n&&(t?e[iu]=r:delete e[iu]),i}var qG=WG,XG=Object.prototype,YG=XG.toString;function KG(e){return YG.call(e)}var ZG=KG,$w=a2,QG=qG,JG=ZG,ez="[object Null]",tz="[object Undefined]",Uw=$w?$w.toStringTag:void 0;function rz(e){return e==null?e===void 0?tz:ez:Uw&&Uw in Object(e)?QG(e):JG(e)}var nz=rz;function iz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var u2=iz,oz=nz,az=u2,sz="[object AsyncFunction]",uz="[object Function]",lz="[object GeneratorFunction]",cz="[object Proxy]";function fz(e){if(!az(e))return!1;var t=oz(e);return t==uz||t==lz||t==sz||t==cz}var hz=fz,dz=od,pz=dz["__core-js_shared__"],vz=pz,sv=vz,Gw=function(){var e=/[^.]+$/.exec(sv&&sv.keys&&sv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mz(e){return!!Gw&&Gw in e}var gz=mz,yz=Function.prototype,_z=yz.toString;function xz(e){if(e!=null){try{return _z.call(e)}catch{}try{return e+""}catch{}}return""}var bz=xz,Sz=hz,wz=gz,Ez=u2,Tz=bz,Cz=/[\\^$.*+?()[\]{}|]/g,Oz=/^\[object .+?Constructor\]$/,Az=Function.prototype,Pz=Object.prototype,kz=Az.toString,Rz=Pz.hasOwnProperty,Iz=RegExp("^"+kz.call(Rz).replace(Cz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nz(e){if(!Ez(e)||wz(e))return!1;var t=Sz(e)?Iz:Oz;return t.test(Tz(e))}var Lz=Nz;function Mz(e,t){return e==null?void 0:e[t]}var Dz=Mz,Fz=Lz,Bz=Dz;function jz(e,t){var r=Bz(e,t);return Fz(r)?r:void 0}var rx=jz,$z=rx,Uz=$z(Object,"create"),ad=Uz,zw=ad;function Gz(){this.__data__=zw?zw(null):{},this.size=0}var zz=Gz;function Hz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vz=Hz,Wz=ad,qz="__lodash_hash_undefined__",Xz=Object.prototype,Yz=Xz.hasOwnProperty;function Kz(e){var t=this.__data__;if(Wz){var r=t[e];return r===qz?void 0:r}return Yz.call(t,e)?t[e]:void 0}var Zz=Kz,Qz=ad,Jz=Object.prototype,e9=Jz.hasOwnProperty;function t9(e){var t=this.__data__;return Qz?t[e]!==void 0:e9.call(t,e)}var r9=t9,n9=ad,i9="__lodash_hash_undefined__";function o9(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n9&&t===void 0?i9:t,this}var a9=o9,s9=zz,u9=Vz,l9=Zz,c9=r9,f9=a9;function As(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var P9=A9,k9=sd;function R9(e,t){var r=this.__data__,n=k9(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var I9=R9,N9=p9,L9=w9,M9=C9,D9=P9,F9=I9;function Ps(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var FH=DH;function BH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=aV){var l=t?null:iV(e);if(l)return oV(l);a=!1,i=nV,u=new eV}else u=t?[]:s;e:for(;++n{const u=e.split(` -`);let l=[],c=[];const f=u.map(h=>{const d=DG(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=fV(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function dV(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of o2(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function pV(e){return e.replaceAll("\r","").split(` -`).map(r=>dV(r)).filter(r=>r.command!=="")}class vV{constructor(t,r,n,i){se(this,"assetsPrefetcher");se(this,"assetSetter");se(this,"ADD_NEXT_ARG_LIST");se(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return hV(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return pV(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; -`,"")}}function Ae(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const mV=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Ae(e,"enter"),o=Ae(e,"volume");return r!==""&&B.dispatch(n2({name:r,url:t,series:n})),Mx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var nx={exports:{}},c2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function yV(e){return e!==null&&!Ng(e)&&e.constructor!==null&&!Ng(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function f2(e){return ho.call(e)==="[object ArrayBuffer]"}function _V(e){return ho.call(e)==="[object FormData]"}function xV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&f2(e.buffer),t}function bV(e){return typeof e=="string"}function SV(e){return typeof e=="number"}function h2(e){return e!==null&&typeof e=="object"}function gf(e){if(ho.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function wV(e){return ho.call(e)==="[object Date]"}function EV(e){return ho.call(e)==="[object File]"}function TV(e){return ho.call(e)==="[object Blob]"}function d2(e){return ho.call(e)==="[object Function]"}function CV(e){return h2(e)&&d2(e.pipe)}function OV(e){return ho.call(e)==="[object URLSearchParams]"}function AV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function PV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ox(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ix(e))for(var r=0,n=e.length;r"u"||(ha.isArray(u)?l=l+"[]":u=[u],ha.forEach(u,function(f){ha.isDate(f)?f=f.toISOString():ha.isObject(f)&&(f=JSON.stringify(f)),o.push(Vw(l)+"="+Vw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},IV=Lr;function ld(){this.handlers=[]}ld.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ld.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ld.prototype.forEach=function(t){IV.forEach(this.handlers,function(n){n!==null&&t(n)})};var NV=ld,LV=Lr,MV=function(t,r){LV.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},v2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},m2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lv,Ww;function g2(){if(Ww)return lv;Ww=1;var e=v2;return lv=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},lv}var cv,qw;function DV(){if(qw)return cv;qw=1;var e=g2();return cv=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},cv}var fv,Xw;function FV(){if(Xw)return fv;Xw=1;var e=Lr;return fv=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),fv}var hv,Yw;function BV(){return Yw||(Yw=1,hv=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),hv}var dv,Kw;function jV(){return Kw||(Kw=1,dv=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),dv}var pv,Zw;function $V(){if(Zw)return pv;Zw=1;var e=BV(),t=jV();return pv=function(n,i){return n&&!e(i)?t(n,i):i},pv}var vv,Qw;function UV(){if(Qw)return vv;Qw=1;var e=Lr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return vv=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` -`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},vv}var mv,Jw;function GV(){if(Jw)return mv;Jw=1;var e=Lr;return mv=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),mv}var gv,eE;function cd(){if(eE)return gv;eE=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,gv=e,gv}var yv,tE;function rE(){if(tE)return yv;tE=1;var e=Lr,t=DV(),r=FV(),n=p2,i=$V(),o=UV(),a=GV(),s=g2(),u=m2,l=cd();return yv=function(f){return new Promise(function(d,p){var g=f.data,v=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete v["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function R(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,D=!m||m==="text"||m==="json"?x.responseText:x.response,F={data:D,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){p(re),_()},F),x=null}}if("onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(p(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){p(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var D=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",F=f.transitional||u;f.timeoutErrorMessage&&(D=f.timeoutErrorMessage),p(s(D,f,F.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(v[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(v,function(D,F){typeof g>"u"&&F.toLowerCase()==="content-type"?delete v[F]:x.setRequestHeader(F,D)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(p(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},yv}var Yt=Lr,nE=MV,zV=v2,HV=m2,VV={"Content-Type":"application/x-www-form-urlencoded"};function iE(e,t){!Yt.isUndefined(e)&&Yt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function WV(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=rE()),e}function qV(e,t,r){if(Yt.isString(e))try{return(t||JSON.parse)(e),Yt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var fd={transitional:HV,adapter:WV(),transformRequest:[function(t,r){return nE(r,"Accept"),nE(r,"Content-Type"),Yt.isFormData(t)||Yt.isArrayBuffer(t)||Yt.isBuffer(t)||Yt.isStream(t)||Yt.isFile(t)||Yt.isBlob(t)?t:Yt.isArrayBufferView(t)?t.buffer:Yt.isURLSearchParams(t)?(iE(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Yt.isObject(t)||r&&r["Content-Type"]==="application/json"?(iE(r,"application/json"),qV(t)):t}],transformResponse:[function(t){var r=this.transitional||fd.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Yt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?zV(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Yt.forEach(["delete","get","head"],function(t){fd.headers[t]={}});Yt.forEach(["post","put","patch"],function(t){fd.headers[t]=Yt.merge(VV)});var ax=fd,XV=Lr,YV=ax,KV=function(t,r,n){var i=this||YV;return XV.forEach(n,function(a){t=a.call(i,t,r)}),t},_v,oE;function y2(){return oE||(oE=1,_v=function(t){return!!(t&&t.__CANCEL__)}),_v}var aE=Lr,xv=KV,ZV=y2(),QV=ax,JV=cd();function bv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new JV("canceled")}var eW=function(t){bv(t),t.headers=t.headers||{},t.data=xv.call(t,t.data,t.headers,t.transformRequest),t.headers=aE.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),aE.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||QV.adapter;return r(t).then(function(i){return bv(t),i.data=xv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return ZV(i)||(bv(t),i&&i.response&&(i.response.data=xv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Fr=Lr,_2=function(t,r){r=r||{};var n={};function i(c,f){return Fr.isPlainObject(c)&&Fr.isPlainObject(f)?Fr.merge(c,f):Fr.isPlainObject(f)?Fr.merge({},f):Fr.isArray(f)?f.slice():f}function o(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Fr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Fr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Fr.isUndefined(d)&&h!==u||(n[f]=d)}),n},Sv,sE;function x2(){return sE||(sE=1,Sv={version:"0.26.1"}),Sv}var tW=x2().version,sx={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){sx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var uE={};sx.transitional=function(t,r,n){function i(o,a){return"[Axios v"+tW+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!uE[a]&&(uE[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function rW(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var nW={assertOptions:rW,validators:sx},b2=Lr,iW=p2,lE=NV,cE=eW,hd=_2,S2=nW,da=S2.validators;function Xl(e){this.defaults=e,this.interceptors={request:new lE,response:new lE}}Xl.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=hd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&S2.assertOptions(n,{silentJSONParsing:da.transitional(da.boolean),forcedJSONParsing:da.transitional(da.boolean),clarifyTimeoutError:da.transitional(da.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[cE,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=cE(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Xl.prototype.getUri=function(t){return t=hd(this.defaults,t),iW(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};b2.forEach(["delete","get","head","options"],function(t){Xl.prototype[t]=function(r,n){return this.request(hd(n||{},{method:t,url:r,data:(n||{}).data}))}});b2.forEach(["post","put","patch"],function(t){Xl.prototype[t]=function(r,n,i){return this.request(hd(i||{},{method:t,url:r,data:n}))}});var oW=Xl,wv,fE;function aW(){if(fE)return wv;fE=1;var e=cd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{dl.get(e).then(r=>{const n=r.data.toString();t(n)})});var pW="__lodash_hash_undefined__";function vW(e){return this.__data__.set(e,pW),this}var mW=vW;function gW(e){return this.__data__.has(e)}var yW=gW,_W=B0,xW=mW,bW=yW;function fh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _W;++t-1}var MW=LW;function DW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=JW){var l=t?null:ZW(e);if(l)return QW(l);a=!1,i=KW,u=new qW}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),ri(t).then(r=>{ni(r,t,t)}))},o7=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Vt()})},a7=e=>{const t=e.content.split("/"),r=t[t.length-1];return o7(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function pl(e,t,r){let n;const o=B.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function C2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function O2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const lx={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function A2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Ov=.001,u7=.01,mE=10,l7=.05,c7=1;function f7({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;s7(e<=mE*1e3);let a=1-t;a=Mg(l7,c7,a),e=Mg(u7,mE,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=Dg(l,a),p=Math.exp(-f);return Ov-h/d*p},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,p=Math.exp(-f),g=Dg(Math.pow(l,2),a);return(-i(l)+Ov>0?-1:1)*((h-d)*p)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Ov+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=d7(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const h7=12;function d7(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function m7(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!gE(e,v7)&&gE(e,p7)){const r=f7(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function cx(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=A2(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=m7(o),d=yE,p=yE;function g(){const v=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=Dg(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((v+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},p=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(v+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(v+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(v+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((v+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:v=>{const m=d(v);if(h)a.done=v>=f;else{const y=p(v)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}cx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const yE=e=>0,P2=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},fx=(e,t,r)=>-r*e+r*t+e,k2=(e,t)=>r=>Math.max(Math.min(r,t),e),Bu=e=>e%1?Number(e.toFixed(5)):e,hh=/(-)?([\d]*\.?[\d])+/g,Fg=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,g7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zl(e){return typeof e=="string"}const dd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},R2=Object.assign(Object.assign({},dd),{transform:k2(0,1)});Object.assign(Object.assign({},dd),{default:1});const y7=e=>({test:t=>Zl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ju=y7("%");Object.assign(Object.assign({},ju),{parse:e=>ju.parse(e)/100,transform:e=>ju.transform(e*100)});const hx=(e,t)=>r=>!!(Zl(r)&&g7.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),I2=(e,t,r)=>n=>{if(!Zl(n))return n;const[i,o,a,s]=n.match(hh);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Lo={test:hx("hsl","hue"),parse:I2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ju.transform(Bu(t))+", "+ju.transform(Bu(r))+", "+Bu(R2.transform(n))+")"},_7=k2(0,255),Av=Object.assign(Object.assign({},dd),{transform:e=>Math.round(_7(e))}),Di={test:hx("rgb","red"),parse:I2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Av.transform(e)+", "+Av.transform(t)+", "+Av.transform(r)+", "+Bu(R2.transform(n))+")"};function x7(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Bg={test:hx("#"),parse:x7,transform:Di.transform},pd={test:e=>Di.test(e)||Bg.test(e)||Lo.test(e),parse:e=>Di.test(e)?Di.parse(e):Lo.test(e)?Lo.parse(e):Bg.parse(e),transform:e=>Zl(e)?e:e.hasOwnProperty("red")?Di.transform(e):Lo.transform(e)},N2="${c}",L2="${n}";function b7(e){var t,r,n,i;return isNaN(e)&&Zl(e)&&((r=(t=e.match(hh))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Fg))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function M2(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Fg);n&&(r=n.length,e=e.replace(Fg,N2),t.push(...n.map(pd.parse)));const i=e.match(hh);return i&&(e=e.replace(hh,L2),t.push(...i.map(dd.parse))),{values:t,numColors:r,tokenised:e}}function D2(e){return M2(e).values}function F2(e){const{values:t,numColors:r,tokenised:n}=M2(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function w7(e){const t=D2(e);return F2(e)(t.map(S7))}const B2={test:b7,parse:D2,createTransformer:F2,getAnimatableNone:w7};function Pv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function _E({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Pv(u,s,e+1/3),o=Pv(u,s,e),a=Pv(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const E7=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},T7=[Bg,Di,Lo],xE=e=>T7.find(t=>t.test(e)),j2=(e,t)=>{let r=xE(e),n=xE(t),i=r.parse(e),o=n.parse(t);r===Lo&&(i=_E(i),r=Di),n===Lo&&(o=_E(o),n=Di);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=E7(i[u],o[u],s));return a.alpha=fx(i.alpha,o.alpha,s),r.transform(a)}},C7=e=>typeof e=="number",O7=(e,t)=>r=>t(e(r)),$2=(...e)=>e.reduce(O7);function U2(e,t){return C7(e)?r=>fx(e,t,r):pd.test(e)?j2(e,t):z2(e,t)}const G2=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>U2(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=U2(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function bE(e){const t=B2.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=B2.createTransformer(t),n=bE(e),i=bE(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?$2(G2(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},P7=(e,t)=>r=>fx(e,t,r);function k7(e){if(typeof e=="number")return P7;if(typeof e=="string")return pd.test(e)?j2:z2;if(Array.isArray(e))return G2;if(typeof e=="object")return A7}function R7(e,t,r){const n=[],i=r||k7(e[0]),o=e.length-1;for(let a=0;ar(P2(e,t,n))}function N7(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=P2(e[o],e[o+1],i);return t[o](s)}}function H2(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;vE(o===t.length),vE(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=R7(t,n,i),s=o===2?I7(e,a):N7(e,a);return r?u=>s(Mg(e[0],e[o-1],u)):s}const L7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,M7=e=>t=>Math.pow(t,e),D7=e=>t=>t*t*((e+1)*t-e),F7=e=>{const t=D7(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},B7=1.525,j7=M7(2),$7=L7(j7);F7(B7);function U7(e,t){return e.map(()=>t||$7).splice(0,e.length-1)}function G7(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function z7(e,t){return e.map(r=>r*t)}function _f({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=z7(n&&n.length===a.length?n:G7(a),i);function u(){return H2(s,a,{ease:Array.isArray(r)?r:U7(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function H7({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const SE={keyframes:_f,spring:cx,decay:H7};function V7(e){if(Array.isArray(e.to))return _f;if(SE[e.type])return SE[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?_f:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?cx:_f}const V2=1/60*1e3,W7=typeof performance<"u"?()=>performance.now():()=>Date.now(),W2=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(W7()),V2);function q7(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=q7(()=>vl=!0),e),{}),Y7=Ql.reduce((e,t)=>{const r=vd[t];return e[t]=(n,i=!1,o=!1)=>(vl||Q7(),r.schedule(n,i,o)),e},{}),K7=Ql.reduce((e,t)=>(e[t]=vd[t].cancel,e),{});Ql.reduce((e,t)=>(e[t]=()=>vd[t].process($u),e),{});const Z7=e=>vd[e].process($u),q2=e=>{vl=!1,$u.delta=jg?V2:Math.max(Math.min(e-$u.timestamp,X7),1),$u.timestamp=e,$g=!0,Ql.forEach(Z7),$g=!1,vl&&(jg=!1,W2(q2))},Q7=()=>{vl=!0,jg=!0,$g||W2(q2)},J7=Y7;function X2(e,t,r=0){return e-t-r}function eq(e,t,r=0,n=!0){return n?X2(t+-e,t,r):t-(e-t)+r}function tq(e,t,r,n){return n?e>=t+r:e<=-r}const rq=e=>{const t=({delta:r})=>e(r);return{start:()=>J7.update(t,!0),stop:()=>K7.update(t)}};function nq(e){var t,r,{from:n,autoplay:i=!0,driver:o=rq,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:p}=e,g=A2(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const R=V7(g);!((r=(t=R).needsInterpolation)===null||r===void 0)&&r.call(t,n,v)&&(T=H2([0,100],[n,v],{clamp:!1}),n=0,v=100);const A=R(Object.assign(Object.assign({},g),{from:n,to:v}));function P(){y++,u==="reverse"?(w=y%2===0,a=eq(a,_,l,w)):(a=X2(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function D(){m.stop(),h&&h()}function F(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}p==null||p(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}function iq(e,t){for(var r=-1,n=e==null?0:e.length;++rs))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&cq?new aq:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=nq({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,Iv(x,oi)),oi(y)||(s.scale.x=y),oi(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();B.dispatch(Er.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=p(),x=Iv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=Iv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function p(){return e[0]}function g(){return e[e.length-1]}function v(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...R}=m;return R}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:v}}function dh(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=B.getState().stage.effects.find(u=>u.target===t),s=At({...(a==null?void 0:a.transform)??lx,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),ik(i,t,r)}return null}function Tr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function Ii(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=C2(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=O2(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const gK=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=B.dispatch;r!==""&&i(r2({name:r,url:t,series:n})),i(Er.removeEffectByTargetId("bg-main"));const o=Ae(e,"transform");let a=Ae(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=pl("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=pl("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Ae(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Ae(e,"enter").toString()),a=Tr(Ae(e,"enter").toString())),Ae(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Ae(e,"exit").toString()),a=Tr(Ae(e,"exit").toString())),i(Ee({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function yK(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const p=B.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=jr(u,Br.figure);break;case"mouthClose":l=b.value.toString(),l=jr(l,Br.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=jr(c,Br.figure);break;case"eyesOpen":f=b.value.toString(),f=jr(f,Br.figure);break;case"eyesClose":h=b.value.toString(),h=jr(h,Br.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=B.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),p(Ee({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=B.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&B.getState().stage.figName===e.content&&(_=!1),t==="left"&&B.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&B.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;B.dispatch(Er.removeEffectByTargetId(b)),B.dispatch(Er.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Ae(w,"transform"),R=Ae(w,"duration");R&&typeof R=="number"&&(s=R);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=pl(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=pl(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const D=Ae(w,"enter"),F=Ae(w,"exit");D&&(O.animationManager.nextEnterAnimationName.set(b,D.toString()),s=Tr(D.toString())),F&&(O.animationManager.nextExitAnimationName.set(b+"-off",F.toString()),s=Tr(F.toString()))};if(n){B.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(Er.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&p(Er.setLive2dMotion({target:a,motion:i})),o&&p(Er.setLive2dExpression({target:a,expression:o})),p(Ee({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const ok=(e,t)=>{ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Vt()})},_K=e=>{const t=e.content.split("/"),r=t[t.length-1];return ok(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},ak=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ke.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Vt,1)},xK="_Choose_Main_cegqk_1",bK="_Choose_item_cegqk_13",SK="_Choose_item_disabled_cegqk_29",Nv={Choose_Main:xK,Choose_item:bK,Choose_item_disabled:SK},wK=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,EK=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,sk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",TK=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,uk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var lk={exports:{}},ck={};/** +*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof _c=="function"&&_c;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(v){var g=n[l][1][v];return a(g||v)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof _c=="function"&&_c,u=0;u"u"&&r(3);var f=Promise;function h(E,I){I&&E.then(function(C){I(null,C)},function(C){I(C)})}function d(E,I,C){typeof I=="function"&&E.then(I),typeof C=="function"&&E.catch(C)}function v(E){return typeof E!="string"&&(console.warn(E+" used as a key, but it is not a string."),E=String(E)),E}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",m=void 0,y={},_=Object.prototype.toString,x="readonly",b="readwrite";function w(E){for(var I=E.length,C=new ArrayBuffer(I),N=new Uint8Array(C),M=0;M=43)}}).catch(function(){return!1})}function k(E){return typeof m=="boolean"?f.resolve(m):T(E).then(function(I){return m=I,m})}function A(E){var I=y[E.name],C={};C.promise=new f(function(N,M){C.resolve=N,C.reject=M}),I.deferredOperations.push(C),I.dbReady?I.dbReady=I.dbReady.then(function(){return C.promise}):I.dbReady=C.promise}function P(E){var I=y[E.name],C=I.deferredOperations.pop();if(C)return C.resolve(),C.promise}function F(E,I){var C=y[E.name],N=C.deferredOperations.pop();if(N)return N.reject(I),N.promise}function D(E,I){return new f(function(C,N){if(y[E.name]=y[E.name]||V(),E.db)if(I)A(E),E.db.close();else return C(E.db);var M=[E.name];I&&M.push(E.version);var R=u.open.apply(u,M);I&&(R.onupgradeneeded=function(j){var U=R.result;try{U.createObjectStore(E.storeName),j.oldVersion<=1&&U.createObjectStore(p)}catch(W){if(W.name==="ConstraintError")console.warn('The database "'+E.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+E.storeName+'" already exists.');else throw W}}),R.onerror=function(j){j.preventDefault(),N(R.error)},R.onsuccess=function(){var j=R.result;j.onversionchange=function(U){U.target.close()},C(j),P(E)}})}function H(E){return D(E,!1)}function re(E){return D(E,!0)}function z(E,I){if(!E.db)return!0;var C=!E.db.objectStoreNames.contains(E.storeName),N=E.versionE.db.version;if(N&&(E.version!==I&&console.warn('The database "'+E.name+`" can't be downgraded from version `+E.db.version+" to version "+E.version+"."),E.version=E.db.version),M||C){if(C){var R=E.db.version+1;R>E.version&&(E.version=R)}return!0}return!1}function q(E){return new f(function(I,C){var N=new FileReader;N.onerror=C,N.onloadend=function(M){var R=btoa(M.target.result||"");I({__local_forage_encoded_blob:!0,data:R,type:E.type})},N.readAsBinaryString(E)})}function le(E){var I=w(atob(E.data));return c([I],{type:E.type})}function Ue(E){return E&&E.__local_forage_encoded_blob}function me(E){var I=this,C=I._initReady().then(function(){var N=y[I._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(C,E,E),C}function Q(E){A(E);for(var I=y[E.name],C=I.forages,N=0;N0&&(!E.db||R.name==="InvalidStateError"||R.name==="NotFoundError"))return f.resolve().then(function(){if(!E.db||R.name==="NotFoundError"&&!E.db.objectStoreNames.contains(E.storeName)&&E.version<=E.db.version)return E.db&&(E.version=E.db.version+1),re(E)}).then(function(){return Q(E).then(function(){L(E,I,C,N-1)})}).catch(C);C(R)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=E[N];var M=y[C.name];M||(M=V(),y[C.name]=M),M.forages.push(I),I._initReady||(I._initReady=I.ready,I.ready=me);var R=[];function j(){return f.resolve()}for(var U=0;U>4,J[M++]=(j&15)<<4|U>>2,J[M++]=(U&3)<<6|W&63;return X}function op(E){var I=new Uint8Array(E),C="",N;for(N=0;N>2],C+=lt[(I[N]&3)<<4|I[N+1]>>4],C+=lt[(I[N+1]&15)<<2|I[N+2]>>6],C+=lt[I[N+2]&63];return I.length%3===2?C=C.substring(0,C.length-1)+"=":I.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function iL(E,I){var C="";if(E&&(C=r1.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&r1.call(E.buffer)==="[object ArrayBuffer]")){var N,M=hr;E instanceof ArrayBuffer?(N=E,M+=Ti):(N=E.buffer,C==="[object Int8Array]"?M+=Us:C==="[object Uint8Array]"?M+=Gs:C==="[object Uint8ClampedArray]"?M+=zs:C==="[object Int16Array]"?M+=Yb:C==="[object Uint16Array]"?M+=Zb:C==="[object Int32Array]"?M+=Kb:C==="[object Uint32Array]"?M+=Qb:C==="[object Float32Array]"?M+=Jb:C==="[object Float64Array]"?M+=e1:I(new Error("Failed to get type for BinaryArray"))),I(M+op(N))}else if(C==="[object Blob]"){var R=new FileReader;R.onload=function(){var j=er+E.type+"~"+op(this.result);I(hr+sa+j)},R.readAsArrayBuffer(E)}else try{I(JSON.stringify(E))}catch(j){console.error("Couldn't convert value into a JSON string: ",E),I(null,j)}}function oL(E){if(E.substring(0,An)!==hr)return JSON.parse(E);var I=E.substring(t1),C=E.substring(An,t1),N;if(C===sa&&Ne.test(I)){var M=I.match(Ne);N=M[1],I=I.substring(M[0].length)}var R=n1(I);switch(C){case Ti:return R;case sa:return c([R],{type:N});case Us:return new Int8Array(R);case Gs:return new Uint8Array(R);case zs:return new Uint8ClampedArray(R);case Yb:return new Int16Array(R);case Zb:return new Uint16Array(R);case Kb:return new Int32Array(R);case Qb:return new Uint32Array(R);case Jb:return new Float32Array(R);case e1:return new Float64Array(R);default:throw new Error("Unkown type: "+C)}}var ap={serialize:iL,deserialize:oL,stringToBuffer:n1,bufferToString:op};function i1(E,I,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+I.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function aL(E){var I=this,C={db:null};if(E)for(var N in E)C[N]=typeof E[N]!="string"?E[N].toString():E[N];var M=new f(function(R,j){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(U){return j(U)}C.db.transaction(function(U){i1(U,C,function(){I._dbInfo=C,R()},function(W,X){j(X)})},j)});return C.serializer=ap,M}function Ci(E,I,C,N,M,R){E.executeSql(C,N,M,function(j,U){U.code===U.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[I.storeName],function(W,X){X.rows.length?R(W,U):i1(W,I,function(){W.executeSql(C,N,M,R)},R)},R):R(j,U)},R)}function sL(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[E],function(W,X){var J=X.rows.length?X.rows.item(0).value:null;J&&(J=j.serializer.deserialize(J)),M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function uL(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT * FROM "+j.storeName,[],function(W,X){for(var J=X.rows,ue=J.length,Te=0;Te0){j(o1.apply(M,[E,W,C,N-1]));return}U(Te)}})})}).catch(U)});return h(R,C),R}function lL(E,I,C){return o1.apply(this,[E,I,C,1])}function cL(E,I){var C=this;E=v(E);var N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[E],function(){M()},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function fL(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){Ci(j,R,"DELETE FROM "+R.storeName,[],function(){N()},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function hL(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){Ci(j,R,"SELECT COUNT(key) as c FROM "+R.storeName,[],function(U,W){var X=W.rows.item(0).c;N(X)},function(U,W){M(W)})})}).catch(M)});return h(C,E),C}function dL(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function(U){Ci(U,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,X){var J=X.rows.length?X.rows.item(0).key:null;M(J)},function(W,X){R(X)})})}).catch(R)});return h(N,I),N}function pL(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){Ci(j,R,"SELECT key FROM "+R.storeName,[],function(U,W){for(var X=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,R){for(var j=[],U=0;U0}function bL(E){var I=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=a1(E,I._defaultConfig),xL()?(I._dbInfo=C,C.serializer=ap,f.resolve()):f.reject()}function SL(E){var I=this,C=I.ready().then(function(){for(var N=I._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var R=localStorage.key(M);R.indexOf(N)===0&&localStorage.removeItem(R)}});return h(C,E),C}function wL(E,I){var C=this;E=v(E);var N=C.ready().then(function(){var M=C._dbInfo,R=localStorage.getItem(M.keyPrefix+E);return R&&(R=M.serializer.deserialize(R)),R});return h(N,I),N}function EL(E,I){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,R=M.keyPrefix,j=R.length,U=localStorage.length,W=1,X=0;X=0;j--){var U=localStorage.key(j);U.indexOf(R)===0&&localStorage.removeItem(U)}}):M=f.reject("Invalid arguments"),h(M,I),M}var IL={_driver:"localStorageWrapper",_initStorage:bL,_support:yL(),iterate:EL,getItem:wL,setItem:PL,removeItem:AL,clear:SL,length:OL,key:TL,keys:CL,dropInstance:kL},RL=function(I,C){return I===C||typeof I=="number"&&typeof C=="number"&&isNaN(I)&&isNaN(C)},NL=function(I,C){for(var N=I.length,M=0;M"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var N in C){if(N==="storeName"&&(C[N]=C[N].replace(/\W/g,"_")),N==="version"&&typeof C[N]!="number")return new Error("Database version must be a number.");this._config[N]=C[N]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},E.prototype.defineDriver=function(C,N,M){var R=new f(function(j,U){try{var W=C._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){U(X);return}for(var J=sp.concat("_initStorage"),ue=0,Te=J.length;ue"u"}function d6(e){return e!==null&&!kg(e)&&e.constructor!==null&&!kg(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function p6(e){return na.call(e)==="[object ArrayBuffer]"}function v6(e){return typeof FormData<"u"&&e instanceof FormData}function m6(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function g6(e){return typeof e=="string"}function y6(e){return typeof e=="number"}function GP(e){return e!==null&&typeof e=="object"}function vf(e){if(na.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _6(e){return na.call(e)==="[object Date]"}function x6(e){return na.call(e)==="[object File]"}function b6(e){return na.call(e)==="[object Blob]"}function zP(e){return na.call(e)==="[object Function]"}function S6(e){return GP(e)&&zP(e.pipe)}function w6(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function E6(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T6(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function J0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Q0(e))for(var r=0,n=e.length;r"u"||(ca.isArray(u)?l=l+"[]":u=[u],ca.forEach(u,function(f){ca.isDate(f)?f=f.toISOString():ca.isObject(f)&&(f=JSON.stringify(f)),o.push(pw(l)+"="+pw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},A6=Vr;function td(){this.handlers=[]}td.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};td.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};td.prototype.forEach=function(t){A6.forEach(this.handlers,function(n){n!==null&&t(n)})};var P6=td,k6=Vr,I6=function(t,r){k6.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},VP=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},zp,vw;function WP(){if(vw)return zp;vw=1;var e=VP;return zp=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},zp}var Hp,mw;function R6(){if(mw)return Hp;mw=1;var e=WP();return Hp=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Hp}var Vp,gw;function N6(){if(gw)return Vp;gw=1;var e=Vr;return Vp=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Vp}var Wp,yw;function L6(){return yw||(yw=1,Wp=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Wp}var qp,_w;function M6(){return _w||(_w=1,qp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),qp}var Xp,xw;function F6(){if(xw)return Xp;xw=1;var e=L6(),t=M6();return Xp=function(n,i){return n&&!e(i)?t(n,i):i},Xp}var Yp,bw;function D6(){if(bw)return Yp;bw=1;var e=Vr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Yp=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},Yp}var Kp,Sw;function B6(){if(Sw)return Kp;Sw=1;var e=Vr;return Kp=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Kp}var Zp,ww;function rd(){if(ww)return Zp;ww=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Zp=e,Zp}var Qp,Ew;function Tw(){if(Ew)return Qp;Ew=1;var e=Vr,t=R6(),r=N6(),n=HP,i=F6(),o=D6(),a=B6(),s=WP(),u=nd(),l=rd();return Qp=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u.transitional;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},Qp}var Jp,Cw;function nd(){if(Cw)return Jp;Cw=1;var e=Vr,t=I6,r=VP,n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,l){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=l)}function o(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=Tw()),u}function a(u,l,c){if(e.isString(u))try{return(l||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(u)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(l,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(l)||e.isArrayBuffer(l)||e.isBuffer(l)||e.isStream(l)||e.isFile(l)||e.isBlob(l)?l:e.isArrayBufferView(l)?l.buffer:e.isURLSearchParams(l)?(i(c,"application/x-www-form-urlencoded;charset=utf-8"),l.toString()):e.isObject(l)||c&&c["Content-Type"]==="application/json"?(i(c,"application/json"),a(l)):l}],transformResponse:[function(l){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,h=c&&c.forcedJSONParsing,d=!f&&this.responseType==="json";if(d||h&&e.isString(l)&&l.length)try{return JSON.parse(l)}catch(v){if(d)throw v.name==="SyntaxError"?r(v,this,"E_JSON_PARSE"):v}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(l){s.headers[l]={}}),e.forEach(["post","put","patch"],function(l){s.headers[l]=e.merge(n)}),Jp=s,Jp}var j6=Vr,$6=nd(),U6=function(t,r,n){var i=this||$6;return j6.forEach(n,function(a){t=a.call(i,t,r)}),t},ev,Ow;function qP(){return Ow||(Ow=1,ev=function(t){return!!(t&&t.__CANCEL__)}),ev}var Aw=Vr,tv=U6,G6=qP(),z6=nd(),H6=rd();function rv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new H6("canceled")}var V6=function(t){rv(t),t.headers=t.headers||{},t.data=tv.call(t,t.data,t.headers,t.transformRequest),t.headers=Aw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Aw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||z6.adapter;return r(t).then(function(i){return rv(t),i.data=tv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return G6(i)||(rv(t),i&&i.response&&(i.response.data=tv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Fr=Vr,XP=function(t,r){r=r||{};var n={};function i(c,f){return Fr.isPlainObject(c)&&Fr.isPlainObject(f)?Fr.merge(c,f):Fr.isPlainObject(f)?Fr.merge({},f):Fr.isArray(f)?f.slice():f}function o(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Fr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Fr.isUndefined(r[c])){if(!Fr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Fr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Fr.isUndefined(d)&&h!==u||(n[f]=d)}),n},nv,Pw;function YP(){return Pw||(Pw=1,nv={version:"0.24.0"}),nv}var W6=YP().version,ex={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ex[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var kw={};ex.transitional=function(t,r,n){function i(o,a){return"[Axios v"+W6+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!kw[a]&&(kw[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function q6(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var X6={assertOptions:q6,validators:ex},KP=Vr,Y6=HP,Iw=P6,Rw=V6,id=XP,ZP=X6,fa=ZP.validators;function ql(e){this.defaults=e,this.interceptors={request:new Iw,response:new Iw}}ql.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=id(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&ZP.assertOptions(r,{silentJSONParsing:fa.transitional(fa.boolean),forcedJSONParsing:fa.transitional(fa.boolean),clarifyTimeoutError:fa.transitional(fa.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[Rw,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=Rw(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};ql.prototype.getUri=function(t){return t=id(this.defaults,t),Y6(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};KP.forEach(["delete","get","head","options"],function(t){ql.prototype[t]=function(r,n){return this.request(id(n||{},{method:t,url:r,data:(n||{}).data}))}});KP.forEach(["post","put","patch"],function(t){ql.prototype[t]=function(r,n,i){return this.request(id(i||{},{method:t,url:r,data:n}))}});var K6=ql,iv,Nw;function Z6(){if(Nw)return iv;Nw=1;var e=rd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var sG=aG;const uG=Nr(sG),ne=new uG,lG={common:{yes:"OK",no:"Cancel"},menu:{options:{title:"OPTIONS",pages:{system:{title:"System",options:{autoSpeed:{title:"Autoplay Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},language:{title:"Language"},resetData:{title:"Clear or Reset Data",options:{clearGameSave:"Clear game saving",resetSettings:"Reset settings",clearAll:"Clear all data"},dialogs:{clearGameSave:"Are you sure you want to clear game saving",resetSettings:"Are you sure you want to reset all settings",clearAll:"Are you sure you want to clear all data"}},gameSave:{title:"Import or Export Game Saving and Options",options:{export:"Export game saving and options",import:"Import game saving and options"},dialogs:{import:{title:"Are you sure you want to import game saving and options",tip:"Import game saving",error:"Parse game saving failed"}}},about:{title:"About WebGAL",subTitle:"WebGAL: An Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Display",options:{fullScreen:{title:"Full Screen",options:{on:"ON",off:"OFF"}},textSpeed:{title:"Text Speed",options:{slow:"Slow",medium:"Medium",fast:"Fast"}},textSize:{title:"Text Size",options:{small:"Small",medium:"Medium",large:"Large"}},textFont:{title:"Text Font",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Preview Text Showing",text:"You are previewing the text's font, size and playback speed, now. You can adjust the above options according to your perception."}}},sound:{title:"Sound",options:{volumeMain:{title:"Main Volume"},vocalVolume:{title:"Vocal Volume"},bgmVolume:{title:"BGM Volume"},seVolume:{title:"Sound Effects Volume"},uiSeVolume:{title:"UI Sound Effects Volume"}}}}},saving:{title:"SAVE",isOverwrite:"Are you sure you want to overwrite this save?"},loadSaving:{title:"LOAD"},title:{title:"TITLE"},exit:{title:"BACK"}},title:{start:{title:"START",subtitle:""},continue:{title:"CONTINUE",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"LOAD",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"No saving",buttons:{hide:"Hide",show:"Show",backlog:"Backlog",replay:"Replay",auto:"Auto",forward:"Forward",quicklySave:"Quickly Save",quicklyLoad:"Quickly Save",save:"Save",load:"Load",options:"Options",title:"Title",titleTips:"Confirm return to the title screen"}},extra:{title:"EXTRA"}},cG={common:{yes:"はい",no:"いいえ"},menu:{options:{title:"CONFIG",pages:{system:{title:"システム",options:{autoSpeed:{title:"自動再生速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},language:{title:"言語"},resetData:{title:"データの削除またに復元",options:{clearGameSave:"すべてのアーカイブを削除",resetSettings:"デフォルト設置を復元",clearAll:"すべてのデータを削除"},dialogs:{clearGameSave:"アーカイブをクリアしてもよろしいですか?",resetSettings:"デフォルト設定を復元してもよろしいですか?",clearAll:"すべてのデータを削除してもよろしいですか?"}},gameSave:{title:"アーカイブとオプションのインポートまたはエクスポート",options:{export:"アーカイブとオプションのエクスポート",import:"アーカイブとオプションのインポート"},dialogs:{import:{title:"アーカイブとオプションをインポートしますか?",tip:"インポートアーカイブ",error:"アーカイブの解析に失败しました"}}},about:{title:"WebGALについて",subTitle:"WebGAL:開源のウェブ基盤視覚小説エンジン",version:"版数",source:"源コード保管所",contributors:"貢献者",website:"ウェブサイト"}}},display:{title:"ウィンドウ",options:{textSpeed:{title:"テキスト表示速度",options:{slow:"遅く",medium:"標準",fast:"速く"}},textSize:{title:"テキストサイズ",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"フォント",options:{siYuanSimSun:"源ノ明朝",SimHei:"黒体",lxgw:"霞鴎文隷"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"テキスト表示プレビュー",text:"プレビューはテキストボックスのテキストサイズとテキスト表示速度です。上記のオプションでフォントも変更できます。"}}},sound:{title:"サウンド",options:{volumeMain:{title:"MAIN 音量"},vocalVolume:{title:"VOICE 音量"},bgmVolume:{title:"BGM 音量"},seVolume:{title:"SE 音量"},uiSeVolume:{title:"UI 効果音音量"}}}}},saving:{title:"SAVE",isOverwrite:"上書きしますか?"},loadSaving:{title:"LOAD"},title:{title:"HOME"},exit:{title:"BACK"}},title:{start:{title:"初めから",subtitle:"START"},continue:{title:"続きから",subtitle:"CONTINUE"},options:{title:"設定",subtitle:"CONFIG"},load:{title:"ロード",subtitle:"LOAD"},extra:{title:"鑑賞モード",subtitle:"EXTRA"}},gaming:{noSaving:"クイックセーブなし",buttons:{hide:"CLOSE",show:"SHOW",backlog:"LOG",replay:"REPLAY",auto:"AUTO",forward:"SKIP",quicklySave:"QUICK SAVE",quicklyLoad:"QUICK LOAD",save:"SAVE",load:"LOAD",options:"CONFIG",title:"HOME",titleTips:"タイトル画面に戻ることを確認しますか"}},extra:{title:"鑑賞モード"}},fG={common:{yes:"是",no:"否"},menu:{options:{title:"选项",pages:{system:{title:"系统",options:{autoSpeed:{title:"自动播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"语言"},resetData:{title:"清除或还原数据",options:{clearGameSave:"清除所有存档",resetSettings:"还原默认设置",clearAll:"清除所有数据"},dialogs:{clearGameSave:"确定要清除存档吗",resetSettings:"确定要还原默认设置吗",clearAll:"确定要清除所有数据吗"}},gameSave:{title:"导入或导出存档与选项",options:{export:"导出存档与选项",import:"导入存档与选项"},dialogs:{import:{title:"确定要导入存档与选项吗",tip:"导入存档",error:"存档解析失败"}}},about:{title:"关于 WebGAL",subTitle:"WebGAL:开源的网页端视觉小说引擎",version:"版本号",source:"源代码仓库",contributors:"贡献者",website:"网站"}}},display:{title:"显示",options:{fullScreen:{title:"全屏模式",options:{on:"开启",off:"关闭"}},textSpeed:{title:"文字显示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文本大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文本字体",options:{siYuanSimSun:"思源宋体",SimHei:"黑体",lxgw:"霞鹜文楷"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文本显示预览",text:"现在预览的是文本框字体大小和播放速度的情况,您可以根据您的观感调整上面的选项。"}}},sound:{title:"音频",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"语音音量"},bgmVolume:{title:"背景音乐音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用户界面音效音量"},voiceOption:{title:"是否中断语音"},voiceStop:{title:"停止语音"},voiceContinue:{title:"继续语音"}}}}},saving:{title:"存档",isOverwrite:"是否覆盖存档?"},loadSaving:{title:"读档"},title:{title:"标题",options:{load:"",extra:"鉴赏模式"}},exit:{title:"返回"}},title:{start:{title:"开始游戏",subtitle:"START"},continue:{title:"继续游戏",subtitle:"CONTINUE"},options:{title:"游戏选项",subtitle:"OPTIONS"},load:{title:"读取存档",subtitle:"LOAD"},extra:{title:"鉴赏模式",subtitle:"EXTRA"}},gaming:{noSaving:"暂无存档",buttons:{hide:"隐藏",show:"显示",backlog:"回想",replay:"重播",auto:"自动",forward:"快进",quicklySave:"快速存档",quicklyLoad:"快速读档",save:"存档",load:"读档",options:"选项",title:"标题",titleTips:"确认返回到标题界面吗"}},extra:{title:"鉴赏模式"}},hG={common:{yes:"OK",no:"Annuler"},menu:{options:{title:"OPTIONS",pages:{system:{title:"Système",options:{autoSpeed:{title:"Vitesse de lecture automatique",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},language:{title:"Langue"},resetData:{title:"Effacer ou réinitialiser les données",options:{clearGameSave:"Effacer la sauvegarde du jeu",resetSettings:"Réinitialiser les paramètres",clearAll:"Tout effacer"},dialogs:{clearGameSave:"Êtes-vous sûr de vouloir effacer la sauvegarde du jeu",resetSettings:"Êtes-vous sûr de vouloir réinitialiser tous les paramètres",clearAll:"Êtes-vous sûr de vouloir tout effacer"}},gameSave:{title:"Importer ou exporter la sauvegarde du jeu et les options",options:{export:"Exporter la sauvegarde du jeu et les options",import:"Importer la sauvegarde du jeu et les options"},dialogs:{import:{title:"Êtes-vous sûr de vouloir importer la sauvegarde du jeu et les options",tip:"Importer la sauvegarde du jeu",error:"Impossible d'analyser la sauvegarde du jeu"}}},about:{title:"À propos de WebGAL",subTitle:"WebGAL: Un moteur de visual novel basé sur le web en open-source",version:"Version",source:"Dépôt de code source",contributors:"Contributeurs",website:"Site web"}}},display:{title:"Affichage",options:{textSpeed:{title:"Vitesse d'affichage du texte",options:{slow:"Lente",medium:"Moyenne",fast:"Rapide"}},textSize:{title:"Taille du texte",options:{small:"Petite",medium:"Moyenne",large:"Grande"}},textFont:{title:"Police du texte",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Aperçu de l'affichage du texte",text:"Vous prévisualisez la police, la taille et la vitesse de lecture du texte, maintenant. Vous pouvez ajuster les options ci-dessus selon votre perception."}}},sound:{title:"Son",options:{volumeMain:{title:"Volume principal"},vocalVolume:{title:"Volume des voix"},bgmVolume:{title:"Volume de la musique de fond"},seVolume:{title:"Volume des effets sonores"},uiSeVolume:{title:"Volume de l’interface utilisateur"}}}}},saving:{title:"SAUVEGARDER",isOverwrite:"Êtes-vous sûr de vouloir écraser cette sauvegarde ?"},loadSaving:{title:"CHARGER"},title:{title:"TITRE"},exit:{title:"RETOUR"}},title:{start:{title:"COMMENCER",subtitle:""},continue:{title:"CONTINUER",subtitle:""},options:{title:"OPTIONS",subtitle:""},load:{title:"CHARGER",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Aucune sauvegarde",buttons:{hide:"Masquer",show:"Afficher",backlog:"Journal",replay:"Rejouer",auto:"Automatique",forward:"Avancer",quicklySave:"Sauvegarde rapide",quicklyLoad:"Chargement rapide",save:"Sauvegarder",load:"Charger",options:"Options",title:"Titre",titleTips:"Confirmer le retour à l'écran titre"}},extra:{title:"EXTRA"}},dG={common:{yes:"Ja",no:"Nein"},menu:{options:{title:"OPTIONEN",pages:{system:{title:"System",options:{autoSpeed:{title:"Auto-Geschwindigkeit",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},language:{title:"Sprache"},resetData:{title:"Daten löschen oder zurücksetzen",options:{clearGameSave:"Alle Spielstände löschen",resetSettings:"Alle Einstellungen zurücksetzen",clearAll:"Alle Daten löschen"},dialogs:{clearGameSave:"Sind Sie sicher, dass Sie den Spielstand löschen möchten?",resetSettings:"Sind Sie sicher, dass Sie alle Einstellungen zurücksetzen möchten?",clearAll:"Sind Sie sicher, dass Sie alle Daten löschen möchten?"}},gameSave:{title:"Spielstand und Optionen importieren oder exportieren",options:{export:"Spielstand und Optionen exportieren",import:"Spielstand und Optionen importieren"},dialogs:{import:{title:"Sind Sie sicher, dass Sie den Spielstand und die Optionen importieren möchten?",tip:"Spielstand importieren",error:"Ein Fehler ist beim Analysieren des Spielstands aufgetreten"}}},about:{title:"Über WebGAL",subTitle:"WebGAL: Eine Open-Source Web-Based Visual Novel Engine",version:"Version",source:"Source Code Repository",contributors:"Contributors",website:"Website"}}},display:{title:"Darstellung",options:{textSpeed:{title:"Geschwindigkeit der Textanzeige",options:{slow:"Langsam",medium:"Normal",fast:"Schnell"}},textSize:{title:"Textgröße",options:{small:"Klein",medium:"Normal",large:"Groß"}},textFont:{title:"Schriftart",options:{siYuanSimSun:"Source Han Serif",SimHei:"Sans",lxgw:"LXGW WenKai"}},textboxOpacity:{title:"Textbox Opacity"},textPreview:{title:"Vorschautext wird angezeigt",text:"Sie können jederzeit die Schriftart, Größe und Wiedergabegeschwindigkeit des Textes nach Ihrer Vorliebe anpassen."}}},sound:{title:"Ton",options:{volumeMain:{title:"Hauptlautstärke"},vocalVolume:{title:"Stimmlautstärke"},bgmVolume:{title:"Musiklautstärke"},seVolume:{title:"Soundeffektlautstärke"},uiSeVolume:{title:"UI Soundeffektlautstärke"}}}}},saving:{title:"SPEICHERN",isOverwrite:"Sind Sie sicher, dass Sie diesen Spielstand überschreiben möchten?"},loadSaving:{title:"LADEN"},title:{title:"TITEL"},exit:{title:"ZURÜCK"}},title:{start:{title:"STARTEN",subtitle:""},continue:{title:"WEITERLESEN",subtitle:""},options:{title:"OPTIONEN",subtitle:""},load:{title:"LADEN",subtitle:""},extra:{title:"EXTRA",subtitle:""}},gaming:{noSaving:"Keine Speicherung",buttons:{hide:"Verstecken",show:"Anzeigen",backlog:"Verlauf",replay:"Wiedergabe",auto:"Auto",forward:"Überspringen",quicklySave:"Quickly Save",quicklyLoad:"Quickly Load",save:"Speichern",load:"Laden",options:"Optionen",title:"Titel"}},extra:{title:"EXTRA"}},pG={common:{yes:"是",no:"否"},menu:{options:{title:"選項",pages:{system:{title:"系統",options:{autoSpeed:{title:"自動播放速度",options:{slow:"慢",medium:"中",fast:"快"}},language:{title:"語言"},resetData:{title:"清除或還原數據",options:{clearGameSave:"清除所有存檔",resetSettings:"還原默認設定",clearAll:"清除所有數據"},dialogs:{clearGameSave:"確定要清除存檔嗎",resetSettings:"確定要還原默認設定嗎",clearAll:"確定要清除所有數據嗎"}},gameSave:{title:"導入或導出存檔與選項",options:{export:"導出存檔與選項",import:"導入存檔與選項"},dialogs:{import:{title:"確定要導入存檔與選項嗎",tip:"導入存檔",error:"存檔解析失敗"}}},about:{title:"關於 WebGAL",subTitle:"WebGAL:開源的線上視覺小說製作引擎",version:"版本號",source:"源代碼倉庫",contributors:"貢獻者",website:"網站"}}},display:{title:"顯示",options:{textSpeed:{title:"文字顯示速度",options:{slow:"慢",medium:"中",fast:"快"}},textSize:{title:"文字大小",options:{small:"小",medium:"中",large:"大"}},textFont:{title:"文字字體",options:{siYuanSimSun:"霞鹜文楷",SimHei:"黑體"}},textboxOpacity:{title:"文本框不透明度"},textPreview:{title:"文字顯示預覽",text:"現在預覽的是文字框字體大小和播放速度的情況,您可以根據您的觀感調整上面的選項。"}}},sound:{title:"音量",options:{volumeMain:{title:"主音量"},vocalVolume:{title:"語音音量"},bgmVolume:{title:"背景音樂音量"},seVolume:{title:"音效音量"},uiSeVolume:{title:"用戶界面音效音量"}}}}},saving:{title:"存檔",isOverwrite:"是否要覆蓋存檔?"},loadSaving:{title:"讀檔"},title:{title:"標題",options:{load:"",extra:"CG模式"}},exit:{title:"返回"}},title:{start:{title:"開始遊戲",subtitle:"START"},continue:{title:"繼續遊戲",subtitle:"CONTINUE"},options:{title:"遊戲選項",subtitle:"OPTIONS"},load:{title:"讀取存檔",subtitle:"LOAD"},extra:{title:"CG模式",subtitle:"EXTRA"}},gaming:{noSaving:"暫無存檔",buttons:{hide:"隱藏",show:"顯示",backlog:"回想",replay:"重播",auto:"自動",forward:"加速",quicklySave:"快速存檔",quicklyLoad:"快速讀檔",save:"存檔",load:"讀檔",options:"選項",title:"標題",titleTips:"確認返回到標題界面嗎"}},extra:{title:"CG模式"}};var ia=(e=>(e[e.zhCn=0]="zhCn",e[e.en=1]="en",e[e.jp=2]="jp",e[e.fr=3]="fr",e[e.de=4]="de",e[e.zhTw=5]="zhTw",e))(ia||{});const lh={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},vG={en:{translation:lG},zhCn:{translation:fG},jp:{translation:cG},fr:{translation:hG},de:{translation:dG},zhTw:{translation:pG}},mG=0;var vr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(vr||{}),_n=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(_n||{}),Hn=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Hn||{}),hl=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(hl||{}),Vn=(e=>(e[e.on=0]="on",e[e.off=1]="off",e))(Vn||{});const JP={slPage:1,volumeMain:100,textSpeed:vr.normal,autoSpeed:vr.normal,textSize:_n.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Hn.song,textboxOpacity:75,language:ia.zhCn,voiceInterruption:hl.yes,fullScreen:Vn.off},Rg={saveData:[],optionData:JP,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},e2=L0({name:"userData",initialState:At(Rg),reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{n===a.url&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setGlobalVar:(e,t)=>{e.globalGameVar[t.payload.key]=t.payload.value},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload},resetFastSave:e=>{e.quickSaveData=null},resetOptionSet(e){Object.assign(e.optionData,JP)},resetAllData(e){Object.assign(e,At(Rg))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:gG,resetUserData:tx,setOptionData:ot,setGlobalVar:yG,setSlPage:t2,unlockCgInUserData:r2,unlockBgmInUserData:n2,setFastSave:_G,resetOptionSet:xG,resetSaveData:bG,resetAllData:SG,resetFastSave:wG}=e2.actions,EG=e2.reducer,i2={backlog_size:200,fast_timeout:50},TG={textInitialDelay:80};class CG{constructor(t){se(this,"isSaveBacklogNext",!1);se(this,"backlog",[]);se(this,"sceneManager");this.sceneManager=t}getBacklog(){return this.backlog}editLastBacklogItemEffect(t){this.backlog[this.backlog.length-1].currentStageState.effects=t}makeBacklogEmpty(){this.backlog.splice(0,this.backlog.length)}insertBacklogItem(t){this.backlog.push(t)}saveCurrentStateToBacklog(){const t=B.getState().stage,r=At(t);r.PerformList.forEach(i=>{i.script.args.forEach(o=>{o.key==="concat"&&(o.value=!1,i.script.content=r.showText)})});const n={currentStageState:r,saveScene:{currentSentenceId:this.sceneManager.sceneData.currentSentenceId,sceneStack:At(this.sceneManager.sceneData.sceneStack),sceneName:this.sceneManager.sceneData.currentScene.sceneName,sceneUrl:this.sceneManager.sceneData.currentScene.sceneUrl}};for(this.getBacklog().push(n);this.getBacklog().length>i2.backlog_size;)this.getBacklog().shift()}}const Dw={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class OG{constructor(){se(this,"settledScenes",[]);se(this,"settledAssets",[]);se(this,"sceneData",At(Dw))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=At(Dw.currentScene)}}class AG{constructor(){se(this,"nextEnterAnimationName",new Map);se(this,"nextExitAnimationName",new Map);se(this,"animations",[])}addAnimation(t){this.animations.push(t)}getAnimations(){return this.animations}}const PG={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};var Br=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Br||{});const jr=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}},kG=e=>{for(const t of e){let r=!0;if(O.sceneManager.settledAssets.forEach(n=>{n===t.url&&(r=!1)}),!r)ne.warn("该资源已在预加载列表中,无需重复加载");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),O.sceneManager.settledAssets.push(t.url)}}};var oe;(function(e){e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.setComplexAnimation=12]="setComplexAnimation",e[e.setFilter=13]="setFilter",e[e.label=14]="label",e[e.jumpLabel=15]="jumpLabel",e[e.chooseLabel=16]="chooseLabel",e[e.setVar=17]="setVar",e[e.if=18]="if",e[e.callScene=19]="callScene",e[e.showVars=20]="showVars",e[e.unlockCg=21]="unlockCg",e[e.unlockBgm=22]="unlockBgm",e[e.filmMode=23]="filmMode",e[e.setTextbox=24]="setTextbox",e[e.setAnimation=25]="setAnimation",e[e.playEffect=26]="playEffect",e[e.setTempAnimation=27]="setTempAnimation",e[e.comment=28]="comment",e[e.setTransform=29]="setTransform",e[e.setTransition=30]="setTransition",e[e.getUserInput=31]="getUserInput"})(oe||(oe={}));const Bw=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=IG(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=RG(n,i,t),n};function IG(e,t,r){const n=new Map;return r.forEach(i=>{n.set(i.scriptString,i.scriptType)}),n.has(e)?n.get(e):oe.say}function RG(e,t,r){return r.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}var Tt;(function(e){e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video"})(Tt||(Tt={}));function o2(e,t){const r=[];let i=e.replace(/ /g," ").split(" -");return i=i.filter(o=>o!==""),i.forEach(o=>{const a=o.indexOf("=");let s=o.slice(0,a),u=o.slice(a+1);a<0&&(s=o,u=void 0),s.toLowerCase().match(/.ogg|.mp3|.wav/)?r.push({key:"vocal",value:t(o,Tt.vocal)}):u===void 0?r.push({key:s,value:!0}):u==="true"||u==="false"?r.push({key:s,value:u==="true"}):isNaN(Number(u))?r.push({key:s,value:u}):r.push({key:s,value:Number(u)})}),r}const NG=(e,t,r)=>{if(e==="none"||e==="")return"";switch(t){case oe.playEffect:return r(e,Tt.vocal);case oe.changeBg:return r(e,Tt.background);case oe.changeFigure:return r(e,Tt.figure);case oe.bgm:return r(e,Tt.bgm);case oe.callScene:return r(e,Tt.scene);case oe.changeScene:return r(e,Tt.scene);case oe.miniAvatar:return r(e,Tt.figure);case oe.video:return r(e,Tt.video);case oe.choose:return LG(e,r);case oe.unlockBgm:return r(e,Tt.bgm);case oe.unlockCg:return r(e,Tt.background);default:return e}};function LG(e,t){const r=e.split("|"),n=[],i=[];for(const s of r)n.push(s.split(":")[0]??""),i.push(s.split(":")[1]??"");const o=i.map(s=>s.match(/\./)?t(s,Tt.scene):s);let a="";for(let s=0;s{const n=[];return e===oe.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Tt.vocal})}),t==="none"||t===""||(e===oe.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Tt.background}),e===oe.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Tt.figure}),e===oe.video&&n.push({name:t,url:t,lineNumber:0,type:Tt.video}),e===oe.bgm&&n.push({name:t,url:t,lineNumber:0,type:Tt.bgm})),n},FG=(e,t)=>{const r=[];return(e===oe.changeScene||e===oe.callScene)&&r.push(t),e===oe.choose&&t.split("|").map(o=>o.split(":")[1]??"").forEach(o=>{o.match(/\./)&&r.push(o)}),r},DG=(e,t,r,n)=>{let i,o,a;const s=[];let u,l,c,f=e.split(";")[0];if(f==="")return{command:oe.comment,commandRaw:"comment",content:e.split(";")[1]??"",args:[{key:"next",value:!0}],sentenceAssets:[],subScene:[]};const h=/:/.exec(f);if(h===null){c=f,l=Bw(c,r,n),i=l.type;for(const v of l.additionalArgs)i===oe.say&&v.key==="speaker"||s.push(v)}else{c=f.substring(0,h.index),f=f.substring(h.index+1,f.length),l=Bw(c,r,n),i=l.type;for(const v of l.additionalArgs)s.push(v)}const d=/ -/.exec(f);if(d){const v=f.substring(d.index,e.length);f=f.substring(0,d.index);for(const g of o2(v,t))s.push(g)}return o=NG(f,i,t),u=MG(i,o,s),a=FG(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var xc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},BG=typeof xc=="object"&&xc&&xc.Object===Object&&xc,jG=BG,$G=jG,UG=typeof self=="object"&&self&&self.Object===Object&&self,GG=$G||UG||Function("return this")(),od=GG,zG=od,HG=zG.Symbol,a2=HG,jw=a2,s2=Object.prototype,VG=s2.hasOwnProperty,WG=s2.toString,ou=jw?jw.toStringTag:void 0;function qG(e){var t=VG.call(e,ou),r=e[ou];try{e[ou]=void 0;var n=!0}catch{}var i=WG.call(e);return n&&(t?e[ou]=r:delete e[ou]),i}var XG=qG,YG=Object.prototype,KG=YG.toString;function ZG(e){return KG.call(e)}var QG=ZG,$w=a2,JG=XG,ez=QG,tz="[object Null]",rz="[object Undefined]",Uw=$w?$w.toStringTag:void 0;function nz(e){return e==null?e===void 0?rz:tz:Uw&&Uw in Object(e)?JG(e):ez(e)}var iz=nz;function oz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var u2=oz,az=iz,sz=u2,uz="[object AsyncFunction]",lz="[object Function]",cz="[object GeneratorFunction]",fz="[object Proxy]";function hz(e){if(!sz(e))return!1;var t=az(e);return t==lz||t==cz||t==uz||t==fz}var dz=hz,pz=od,vz=pz["__core-js_shared__"],mz=vz,sv=mz,Gw=function(){var e=/[^.]+$/.exec(sv&&sv.keys&&sv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gz(e){return!!Gw&&Gw in e}var yz=gz,_z=Function.prototype,xz=_z.toString;function bz(e){if(e!=null){try{return xz.call(e)}catch{}try{return e+""}catch{}}return""}var Sz=bz,wz=dz,Ez=yz,Tz=u2,Cz=Sz,Oz=/[\\^$.*+?()[\]{}|]/g,Az=/^\[object .+?Constructor\]$/,Pz=Function.prototype,kz=Object.prototype,Iz=Pz.toString,Rz=kz.hasOwnProperty,Nz=RegExp("^"+Iz.call(Rz).replace(Oz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lz(e){if(!Tz(e)||Ez(e))return!1;var t=wz(e)?Nz:Az;return t.test(Cz(e))}var Mz=Lz;function Fz(e,t){return e==null?void 0:e[t]}var Dz=Fz,Bz=Mz,jz=Dz;function $z(e,t){var r=jz(e,t);return Bz(r)?r:void 0}var rx=$z,Uz=rx,Gz=Uz(Object,"create"),ad=Gz,zw=ad;function zz(){this.__data__=zw?zw(null):{},this.size=0}var Hz=zz;function Vz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Wz=Vz,qz=ad,Xz="__lodash_hash_undefined__",Yz=Object.prototype,Kz=Yz.hasOwnProperty;function Zz(e){var t=this.__data__;if(qz){var r=t[e];return r===Xz?void 0:r}return Kz.call(t,e)?t[e]:void 0}var Qz=Zz,Jz=ad,e9=Object.prototype,t9=e9.hasOwnProperty;function r9(e){var t=this.__data__;return Jz?t[e]!==void 0:t9.call(t,e)}var n9=r9,i9=ad,o9="__lodash_hash_undefined__";function a9(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i9&&t===void 0?o9:t,this}var s9=a9,u9=Hz,l9=Wz,c9=Qz,f9=n9,h9=s9;function Ps(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var k9=P9,I9=sd;function R9(e,t){var r=this.__data__,n=I9(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var N9=R9,L9=v9,M9=E9,F9=O9,D9=k9,B9=N9;function ks(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var BH=DH;function jH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=sV){var l=t?null:oV(e);if(l)return aV(l);a=!1,i=iV,u=new tV}else u=t?[]:s;e:for(;++n{const u=e.split(` +`);let l=[],c=[];const f=u.map(h=>{const d=DG(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=hV(l),n(l),{sceneName:t,sceneUrl:r,sentenceList:f,assetsList:l,subSceneList:c}};oe.intro,oe.changeBg,oe.changeFigure,oe.miniAvatar,oe.changeScene,oe.choose,oe.end,oe.bgm,oe.video,oe.setComplexAnimation,oe.setFilter,oe.pixiInit,oe.pixi,oe.label,oe.jumpLabel,oe.setVar,oe.callScene,oe.showVars,oe.unlockCg,oe.unlockBgm,oe.say,oe.filmMode,oe.callScene,oe.setTextbox,oe.setAnimation,oe.playEffect;oe.bgm,oe.pixi,oe.pixiInit,oe.label,oe.if,oe.miniAvatar,oe.setVar,oe.unlockBgm,oe.unlockCg,oe.filmMode,oe.playEffect;function pV(e){const t=[];let r,n=e.split(";")[0];if(n==="")return{command:"",args:[],options:[]};const i=/:/.exec(n);i===null?r="":(r=n.substring(0,i.index),n=n.substring(i.index+1,n.length));const o=/ -/.exec(n);if(o){const a=n.substring(o.index,n.length);n=n.substring(0,o.index);for(const s of o2(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function vV(e){return e.replaceAll("\r","").split(` +`).map(r=>pV(r)).filter(r=>r.command!=="")}class mV{constructor(t,r,n,i){se(this,"assetsPrefetcher");se(this,"assetSetter");se(this,"ADD_NEXT_ARG_LIST");se(this,"SCRIPT_CONFIG");this.assetsPrefetcher=t,this.assetSetter=r,this.ADD_NEXT_ARG_LIST=n,this.SCRIPT_CONFIG=i}parse(t,r,n){return dV(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return vV(t)}stringifyConfig(t){return t.reduce((r,n)=>r+`${n.command}:${n.args.join("|")}${n.options.length<=0?"":n.options.reduce((i,o)=>i+" -"+o.key+"="+o.value,"")}; +`,"")}}function Ae(e,t){const n=e.args.find(i=>i.key===t);return n?n.value:null}const gV=e=>{let t=e.content,r="",n="default";e.args.forEach(a=>{a.key==="unlockname"&&(r=a.value.toString()),a.key==="series"&&(n=a.value.toString())});const i=Ae(e,"enter"),o=Ae(e,"volume");return r!==""&&B.dispatch(n2({name:r,url:t,series:n})),Mx(t,typeof i=="number"&&i>=0?i:0,typeof o=="number"&&o>=0&&o<=100?o:100),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var nx={exports:{}},c2=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function _V(e){return e!==null&&!Ng(e)&&e.constructor!==null&&!Ng(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function f2(e){return ho.call(e)==="[object ArrayBuffer]"}function xV(e){return ho.call(e)==="[object FormData]"}function bV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&f2(e.buffer),t}function SV(e){return typeof e=="string"}function wV(e){return typeof e=="number"}function h2(e){return e!==null&&typeof e=="object"}function gf(e){if(ho.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function EV(e){return ho.call(e)==="[object Date]"}function TV(e){return ho.call(e)==="[object File]"}function CV(e){return ho.call(e)==="[object Blob]"}function d2(e){return ho.call(e)==="[object Function]"}function OV(e){return h2(e)&&d2(e.pipe)}function AV(e){return ho.call(e)==="[object URLSearchParams]"}function PV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kV(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ox(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ix(e))for(var r=0,n=e.length;r"u"||(ha.isArray(u)?l=l+"[]":u=[u],ha.forEach(u,function(f){ha.isDate(f)?f=f.toISOString():ha.isObject(f)&&(f=JSON.stringify(f)),o.push(Vw(l)+"="+Vw(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},NV=Lr;function ld(){this.handlers=[]}ld.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ld.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ld.prototype.forEach=function(t){NV.forEach(this.handlers,function(n){n!==null&&t(n)})};var LV=ld,MV=Lr,FV=function(t,r){MV.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},v2=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},m2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lv,Ww;function g2(){if(Ww)return lv;Ww=1;var e=v2;return lv=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},lv}var cv,qw;function DV(){if(qw)return cv;qw=1;var e=g2();return cv=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},cv}var fv,Xw;function BV(){if(Xw)return fv;Xw=1;var e=Lr;return fv=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),fv}var hv,Yw;function jV(){return Yw||(Yw=1,hv=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),hv}var dv,Kw;function $V(){return Kw||(Kw=1,dv=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),dv}var pv,Zw;function UV(){if(Zw)return pv;Zw=1;var e=jV(),t=$V();return pv=function(n,i){return n&&!e(i)?t(n,i):i},pv}var vv,Qw;function GV(){if(Qw)return vv;Qw=1;var e=Lr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return vv=function(n){var i={},o,a,s;return n&&e.forEach(n.split(` +`),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},vv}var mv,Jw;function zV(){if(Jw)return mv;Jw=1;var e=Lr;return mv=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),mv}var gv,eE;function cd(){if(eE)return gv;eE=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,gv=e,gv}var yv,tE;function rE(){if(tE)return yv;tE=1;var e=Lr,t=DV(),r=BV(),n=p2,i=UV(),o=GV(),a=zV(),s=g2(),u=m2,l=cd();return yv=function(f){return new Promise(function(d,v){var g=f.data,p=f.headers,m=f.responseType,y;function _(){f.cancelToken&&f.cancelToken.unsubscribe(y),f.signal&&f.signal.removeEventListener("abort",y)}e.isFormData(g)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(f.auth){var b=f.auth.username||"",w=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var T=i(f.baseURL,f.url);x.open(f.method.toUpperCase(),n(T,f.params,f.paramsSerializer),!0),x.timeout=f.timeout;function k(){if(x){var P="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,F=!m||m==="text"||m==="json"?x.responseText:x.response,D={data:F,status:x.status,statusText:x.statusText,headers:P,config:f,request:x};t(function(re){d(re),_()},function(re){v(re),_()},D),x=null}}if("onloadend"in x?x.onloadend=k:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(k)},x.onabort=function(){x&&(v(s("Request aborted",f,"ECONNABORTED",x)),x=null)},x.onerror=function(){v(s("Network Error",f,null,x)),x=null},x.ontimeout=function(){var F=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u;f.timeoutErrorMessage&&(F=f.timeoutErrorMessage),v(s(F,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||a(T))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;A&&(p[f.xsrfHeaderName]=A)}"setRequestHeader"in x&&e.forEach(p,function(F,D){typeof g>"u"&&D.toLowerCase()==="content-type"?delete p[D]:x.setRequestHeader(D,F)}),e.isUndefined(f.withCredentials)||(x.withCredentials=!!f.withCredentials),m&&m!=="json"&&(x.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&x.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(y=function(P){x&&(v(!P||P&&P.type?new l("canceled"):P),x.abort(),x=null)},f.cancelToken&&f.cancelToken.subscribe(y),f.signal&&(f.signal.aborted?y():f.signal.addEventListener("abort",y))),g||(g=null),x.send(g)})},yv}var Yt=Lr,nE=FV,HV=v2,VV=m2,WV={"Content-Type":"application/x-www-form-urlencoded"};function iE(e,t){!Yt.isUndefined(e)&&Yt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function qV(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=rE()),e}function XV(e,t,r){if(Yt.isString(e))try{return(t||JSON.parse)(e),Yt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var fd={transitional:VV,adapter:qV(),transformRequest:[function(t,r){return nE(r,"Accept"),nE(r,"Content-Type"),Yt.isFormData(t)||Yt.isArrayBuffer(t)||Yt.isBuffer(t)||Yt.isStream(t)||Yt.isFile(t)||Yt.isBlob(t)?t:Yt.isArrayBufferView(t)?t.buffer:Yt.isURLSearchParams(t)?(iE(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Yt.isObject(t)||r&&r["Content-Type"]==="application/json"?(iE(r,"application/json"),XV(t)):t}],transformResponse:[function(t){var r=this.transitional||fd.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&Yt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?HV(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Yt.forEach(["delete","get","head"],function(t){fd.headers[t]={}});Yt.forEach(["post","put","patch"],function(t){fd.headers[t]=Yt.merge(WV)});var ax=fd,YV=Lr,KV=ax,ZV=function(t,r,n){var i=this||KV;return YV.forEach(n,function(a){t=a.call(i,t,r)}),t},_v,oE;function y2(){return oE||(oE=1,_v=function(t){return!!(t&&t.__CANCEL__)}),_v}var aE=Lr,xv=ZV,QV=y2(),JV=ax,eW=cd();function bv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eW("canceled")}var tW=function(t){bv(t),t.headers=t.headers||{},t.data=xv.call(t,t.data,t.headers,t.transformRequest),t.headers=aE.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),aE.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||JV.adapter;return r(t).then(function(i){return bv(t),i.data=xv.call(t,i.data,i.headers,t.transformResponse),i},function(i){return QV(i)||(bv(t),i&&i.response&&(i.response.data=xv.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Dr=Lr,_2=function(t,r){r=r||{};var n={};function i(c,f){return Dr.isPlainObject(c)&&Dr.isPlainObject(f)?Dr.merge(c,f):Dr.isPlainObject(f)?Dr.merge({},f):Dr.isArray(f)?f.slice():f}function o(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Dr.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Dr.isUndefined(r[c])){if(!Dr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Dr.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Dr.isUndefined(d)&&h!==u||(n[f]=d)}),n},Sv,sE;function x2(){return sE||(sE=1,Sv={version:"0.26.1"}),Sv}var rW=x2().version,sx={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){sx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var uE={};sx.transitional=function(t,r,n){function i(o,a){return"[Axios v"+rW+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!uE[a]&&(uE[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function nW(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var iW={assertOptions:nW,validators:sx},b2=Lr,oW=p2,lE=LV,cE=tW,hd=_2,S2=iW,da=S2.validators;function Xl(e){this.defaults=e,this.interceptors={request:new lE,response:new lE}}Xl.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=hd(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&S2.assertOptions(n,{silentJSONParsing:da.transitional(da.boolean),forcedJSONParsing:da.transitional(da.boolean),clarifyTimeoutError:da.transitional(da.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[cE,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=cE(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Xl.prototype.getUri=function(t){return t=hd(this.defaults,t),oW(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};b2.forEach(["delete","get","head","options"],function(t){Xl.prototype[t]=function(r,n){return this.request(hd(n||{},{method:t,url:r,data:(n||{}).data}))}});b2.forEach(["post","put","patch"],function(t){Xl.prototype[t]=function(r,n,i){return this.request(hd(i||{},{method:t,url:r,data:n}))}});var aW=Xl,wv,fE;function sW(){if(fE)return wv;fE=1;var e=cd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;anew Promise(t=>{dl.get(e).then(r=>{const n=r.data.toString();t(n)})});var vW="__lodash_hash_undefined__";function mW(e){return this.__data__.set(e,vW),this}var gW=mW;function yW(e){return this.__data__.has(e)}var _W=yW,xW=B0,bW=gW,SW=_W;function fh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new xW;++t-1}var FW=MW;function DW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=e7){var l=t?null:QW(e);if(l)return JW(l);a=!1,i=ZW,u=new XW}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),ri(t).then(r=>{ni(r,t,t)}))},a7=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),Vt()})},s7=e=>{const t=e.content.split("/"),r=t[t.length-1];return a7(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function pl(e,t,r){let n;const o=B.getState().stage.effects.find(a=>a.target===e);if(t.duration=500,r&&typeof r=="number"&&(t.duration=r),n=[t],o){const a={...o.transform,duration:0};n.unshift(a)}else{const a={...t,alpha:0,duration:0};n.unshift(a)}return n}function C2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0)}function i(){r&&(r.pixiContainer.alpha=1)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha<1&&(s.alpha+=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}function O2(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){}function i(){r&&(r.pixiContainer.alpha=0)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,c=1/(t/u*a);s.alpha>0&&(s.alpha-=c)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const lx={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function A2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t),Ov=.001,l7=.01,mE=10,c7=.05,f7=1;function h7({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;u7(e<=mE*1e3);let a=1-t;a=Mg(c7,f7,a),e=Mg(l7,mE,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=Fg(l,a),v=Math.exp(-f);return Ov-h/d*v},o=l=>{const f=l*a*e,h=f*r+r,d=Math.pow(a,2)*Math.pow(l,2)*e,v=Math.exp(-f),g=Fg(Math.pow(l,2),a);return(-i(l)+Ov>0?-1:1)*((h-d)*v)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Ov+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=p7(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const d7=12;function p7(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function g7(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!gE(e,m7)&&gE(e,v7)){const r=h7(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function cx(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=A2(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=g7(o),d=yE,v=yE;function g(){const p=c?-(c/1e3):0,m=r-t,y=u/(2*Math.sqrt(s*l)),_=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),y<1){const x=Fg(_,y);d=b=>{const w=Math.exp(-y*_*b);return r-w*((p+y*_*m)/x*Math.sin(x*b)+m*Math.cos(x*b))},v=b=>{const w=Math.exp(-y*_*b);return y*_*w*(Math.sin(x*b)*(p+y*_*m)/x+m*Math.cos(x*b))-w*(Math.cos(x*b)*(p+y*_*m)-x*m*Math.sin(x*b))}}else if(y===1)d=x=>r-Math.exp(-_*x)*(m+(p+_*m)*x);else{const x=_*Math.sqrt(y*y-1);d=b=>{const w=Math.exp(-y*_*b),T=Math.min(x*b,300);return r-w*((p+y*_*m)*Math.sinh(T)+x*m*Math.cosh(T))/x}}}return g(),{next:p=>{const m=d(p);if(h)a.done=p>=f;else{const y=v(p)*1e3,_=Math.abs(y)<=n,x=Math.abs(r-m)<=i;a.done=_&&x}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],g()}}}cx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const yE=e=>0,P2=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},fx=(e,t,r)=>-r*e+r*t+e,k2=(e,t)=>r=>Math.max(Math.min(r,t),e),ju=e=>e%1?Number(e.toFixed(5)):e,hh=/(-)?([\d]*\.?[\d])+/g,Dg=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,y7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zl(e){return typeof e=="string"}const dd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},I2=Object.assign(Object.assign({},dd),{transform:k2(0,1)});Object.assign(Object.assign({},dd),{default:1});const _7=e=>({test:t=>Zl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$u=_7("%");Object.assign(Object.assign({},$u),{parse:e=>$u.parse(e)/100,transform:e=>$u.transform(e*100)});const hx=(e,t)=>r=>!!(Zl(r)&&y7.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),R2=(e,t,r)=>n=>{if(!Zl(n))return n;const[i,o,a,s]=n.match(hh);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Lo={test:hx("hsl","hue"),parse:R2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+$u.transform(ju(t))+", "+$u.transform(ju(r))+", "+ju(I2.transform(n))+")"},x7=k2(0,255),Av=Object.assign(Object.assign({},dd),{transform:e=>Math.round(x7(e))}),Fi={test:hx("rgb","red"),parse:R2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Av.transform(e)+", "+Av.transform(t)+", "+Av.transform(r)+", "+ju(I2.transform(n))+")"};function b7(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Bg={test:hx("#"),parse:b7,transform:Fi.transform},pd={test:e=>Fi.test(e)||Bg.test(e)||Lo.test(e),parse:e=>Fi.test(e)?Fi.parse(e):Lo.test(e)?Lo.parse(e):Bg.parse(e),transform:e=>Zl(e)?e:e.hasOwnProperty("red")?Fi.transform(e):Lo.transform(e)},N2="${c}",L2="${n}";function S7(e){var t,r,n,i;return isNaN(e)&&Zl(e)&&((r=(t=e.match(hh))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Dg))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function M2(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Dg);n&&(r=n.length,e=e.replace(Dg,N2),t.push(...n.map(pd.parse)));const i=e.match(hh);return i&&(e=e.replace(hh,L2),t.push(...i.map(dd.parse))),{values:t,numColors:r,tokenised:e}}function F2(e){return M2(e).values}function D2(e){const{values:t,numColors:r,tokenised:n}=M2(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function E7(e){const t=F2(e);return D2(e)(t.map(w7))}const B2={test:S7,parse:F2,createTransformer:D2,getAnimatableNone:E7};function Pv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function _E({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Pv(u,s,e+1/3),o=Pv(u,s,e),a=Pv(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const T7=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},C7=[Bg,Fi,Lo],xE=e=>C7.find(t=>t.test(e)),j2=(e,t)=>{let r=xE(e),n=xE(t),i=r.parse(e),o=n.parse(t);r===Lo&&(i=_E(i),r=Fi),n===Lo&&(o=_E(o),n=Fi);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=T7(i[u],o[u],s));return a.alpha=fx(i.alpha,o.alpha,s),r.transform(a)}},O7=e=>typeof e=="number",A7=(e,t)=>r=>t(e(r)),$2=(...e)=>e.reduce(A7);function U2(e,t){return O7(e)?r=>fx(e,t,r):pd.test(e)?j2(e,t):z2(e,t)}const G2=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>U2(o,t[a]));return o=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=U2(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function bE(e){const t=B2.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=B2.createTransformer(t),n=bE(e),i=bE(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?$2(G2(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},k7=(e,t)=>r=>fx(e,t,r);function I7(e){if(typeof e=="number")return k7;if(typeof e=="string")return pd.test(e)?j2:z2;if(Array.isArray(e))return G2;if(typeof e=="object")return P7}function R7(e,t,r){const n=[],i=r||I7(e[0]),o=e.length-1;for(let a=0;ar(P2(e,t,n))}function L7(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;ui||u===n);u++);o=u-1}const s=P2(e[o],e[o+1],i);return t[o](s)}}function H2(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;vE(o===t.length),vE(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=R7(t,n,i),s=o===2?N7(e,a):L7(e,a);return r?u=>s(Mg(e[0],e[o-1],u)):s}const M7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,F7=e=>t=>Math.pow(t,e),D7=e=>t=>t*t*((e+1)*t-e),B7=e=>{const t=D7(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},j7=1.525,$7=F7(2),U7=M7($7);B7(j7);function G7(e,t){return e.map(()=>t||U7).splice(0,e.length-1)}function z7(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function H7(e,t){return e.map(r=>r*t)}function _f({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=H7(n&&n.length===a.length?n:z7(a),i);function u(){return H2(s,a,{ease:Array.isArray(r)?r:G7(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function V7({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/n);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const SE={keyframes:_f,spring:cx,decay:V7};function W7(e){if(Array.isArray(e.to))return _f;if(SE[e.type])return SE[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?_f:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?cx:_f}const V2=1/60*1e3,q7=typeof performance<"u"?()=>performance.now():()=>Date.now(),W2=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(q7()),V2);function X7(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,h=f?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),f&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l(e[t]=X7(()=>vl=!0),e),{}),K7=Ql.reduce((e,t)=>{const r=vd[t];return e[t]=(n,i=!1,o=!1)=>(vl||J7(),r.schedule(n,i,o)),e},{}),Z7=Ql.reduce((e,t)=>(e[t]=vd[t].cancel,e),{});Ql.reduce((e,t)=>(e[t]=()=>vd[t].process(Uu),e),{});const Q7=e=>vd[e].process(Uu),q2=e=>{vl=!1,Uu.delta=jg?V2:Math.max(Math.min(e-Uu.timestamp,Y7),1),Uu.timestamp=e,$g=!0,Ql.forEach(Q7),$g=!1,vl&&(jg=!1,W2(q2))},J7=()=>{vl=!0,jg=!0,$g||W2(q2)},eq=K7;function X2(e,t,r=0){return e-t-r}function tq(e,t,r=0,n=!0){return n?X2(t+-e,t,r):t-(e-t)+r}function rq(e,t,r,n){return n?e>=t+r:e<=-r}const nq=e=>{const t=({delta:r})=>e(r);return{start:()=>eq.update(t,!0),stop:()=>Z7.update(t)}};function iq(e){var t,r,{from:n,autoplay:i=!0,driver:o=nq,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:v}=e,g=A2(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:p}=g,m,y=0,_=g.duration,x,b=!1,w=!0,T;const k=W7(g);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,p)&&(T=H2([0,100],[n,p],{clamp:!1}),n=0,p=100);const A=k(Object.assign(Object.assign({},g),{from:n,to:p}));function P(){y++,u==="reverse"?(w=y%2===0,a=tq(a,_,l,w)):(a=X2(a,_,l),u==="mirror"&&A.flipTarget()),b=!1,d&&d()}function F(){m.stop(),h&&h()}function D(re){if(w||(re=-re),a+=re,!b){const z=A.next(Math.max(0,a));x=z.value,T&&(x=T(x)),b=w?z.done:a<=0}v==null||v(x),b&&(y===0&&(_??(_=a)),y{f==null||f(),m.stop()}}}function oq(e,t){for(var r=-1,n=e==null?0:e.length;++rs))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,h=!0,d=r&fq?new sq:void 0;for(o.set(e,t),o.set(t,e);++f0&&(u=iq({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,Rv(x,oi)),oi(y)||(s.scale.x=y),oi(_)||(s.scale.y=_)}}}));const{duration:l,...c}=g();B.dispatch(Er.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=v(),x=Rv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,scale:y,..._}=g(),x=Rv({x:m.x,y:m.y,..._},oi);Object.assign(n==null?void 0:n.pixiContainer,x),n!=null&&n.pixiContainer&&(oi(y.x)||(n.pixiContainer.scale.x=y.x),oi(y==null?void 0:y.y)||(n.pixiContainer.scale.y=y.y))}}function d(m){}function v(){return e[0]}function g(){return e[e.length-1]}function p(){const m=e[e.length-1],{alpha:y,rotation:_,blur:x,duration:b,scale:w,position:T,...k}=m;return k}return{setStartState:f,setEndState:h,tickerFunc:d,getEndFilterEffect:p}}function dh(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=B.getState().stage.effects.find(u=>u.target===t),s=At({...(a==null?void 0:a.transform)??lx,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),ik(i,t,r)}return null}function Tr(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}function Ri(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=C2(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextEnterAnimationName.delete(e)),{duration:n,animation:i}}else{let n=750;r&&(n=1500);let i=O2(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=dh(o,e,Tr(o)),n=Tr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const yK=e=>{const t=e.content;let r="",n="default";e.args.forEach(l=>{l.key==="unlockname"&&(r=l.value.toString()),l.key==="series"&&(n=l.value.toString())});const i=B.dispatch;r!==""&&i(r2({name:r,url:t,series:n})),i(Er.removeEffectByTargetId("bg-main"));const o=Ae(e,"transform");let a=Ae(e,"duration");(!a||typeof a!="number")&&(a=1e3);let s;if(o)try{const l=JSON.parse(o.toString());s=pl("bg-main",l,a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}catch{u()}else u();function u(){s=pl("bg-main",{},a),s[0].alpha=0;const c=(Math.random()*10).toString(16),f={name:c,effects:s};O.animationManager.addAnimation(f),a=Tr(c),O.animationManager.nextEnterAnimationName.set("bg-main",c)}return Ae(e,"enter")&&(O.animationManager.nextEnterAnimationName.set("bg-main",Ae(e,"enter").toString()),a=Tr(Ae(e,"enter").toString())),Ae(e,"exit")&&(O.animationManager.nextExitAnimationName.set("bg-main-off",Ae(e,"exit").toString()),a=Tr(Ae(e,"exit").toString())),i(Ee({key:"bgName",value:e.content})),{performName:"none",duration:a,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function _K(e){let t="center",r=e.content,n=!1,i="",o="",a="",s=500,u="",l="",c="",f="",h="",d="";const v=B.dispatch;for(const b of e.args)switch(b.key){case"left":b.value===!0&&(t="left");break;case"right":b.value===!0&&(t="right");break;case"clear":b.value===!0&&(r="");break;case"id":n=!0,a=b.value.toString();break;case"motion":i=b.value.toString();break;case"expression":o=b.value.toString();break;case"mouthOpen":u=b.value.toString(),u=jr(u,Br.figure);break;case"mouthClose":l=b.value.toString(),l=jr(l,Br.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=jr(c,Br.figure);break;case"eyesOpen":f=b.value.toString(),f=jr(f,Br.figure);break;case"eyesClose":h=b.value.toString(),h=jr(h,Br.figure);break;case"animationFlag":d=b.value.toString();break;case"none":r="";break}const g=a||`fig-${t}`,m=B.getState().stage.figureAssociatedAnimation.filter(b=>b.targetId!==g),y={targetId:g,animationFlag:d,mouthAnimation:{open:u,close:l,halfOpen:c},blinkAnimation:{open:f,close:h}};m.push(y),v(Ee({key:"figureAssociatedAnimation",value:m}));let _=!0;if(a!==""){const b=B.getState().stage.freeFigure.find(w=>w.key===a);b&&b.name===e.content&&(_=!1)}else t==="center"&&B.getState().stage.figName===e.content&&(_=!1),t==="left"&&B.getState().stage.figNameLeft===e.content&&(_=!1),t==="right"&&B.getState().stage.figNameRight===e.content&&(_=!1);if(_){const b=`fig-${t}`,w=`${a}`;B.dispatch(Er.removeEffectByTargetId(b)),B.dispatch(Er.removeEffectByTargetId(w))}const x=(b,w)=>{const T=Ae(w,"transform"),k=Ae(w,"duration");k&&typeof k=="number"&&(s=k);let A;if(T){console.log(T);try{const H=JSON.parse(T.toString());A=pl(b,H,s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}catch{P()}}else P();function P(){A=pl(b,{},s),A[0].alpha=0;const re=(Math.random()*10).toString(16),z={name:re,effects:A};O.animationManager.addAnimation(z),s=Tr(re),O.animationManager.nextEnterAnimationName.set(b,re)}const F=Ae(w,"enter"),D=Ae(w,"exit");F&&(O.animationManager.nextEnterAnimationName.set(b,F.toString()),s=Tr(F.toString())),D&&(O.animationManager.nextExitAnimationName.set(b+"-off",D.toString()),s=Tr(D.toString()))};if(n){B.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&v(Er.setLive2dMotion({target:a,motion:i})),o&&v(Er.setLive2dExpression({target:a,expression:o})),v(Er.setFreeFigureByKey(b))}else{const b={center:"fig-center",left:"fig-left",right:"fig-right"},w={center:"figName",left:"figNameLeft",right:"figNameRight"};a=b[t],x(a,e),i&&v(Er.setLive2dMotion({target:a,motion:i})),o&&v(Er.setLive2dExpression({target:a,expression:o})),v(Ee({key:w[t],value:r}))}return{performName:"none",duration:s,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}}const ok=(e,t)=>{ri(e).then(r=>{O.sceneManager.sceneData.currentScene=ni(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Yl(n);Kl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),Vt()})},xK=e=>{const t=e.content.split("/"),r=t[t.length-1];return ok(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},ak=e=>{const t=O.sceneManager.sceneData.currentSentenceId;let r=t;O.sceneManager.sceneData.currentScene.sentenceList.forEach((n,i)=>{n.command===ke.label&&n.content===e&&i!==t&&(r=i)}),O.sceneManager.sceneData.currentSentenceId=r,setTimeout(Vt,1)},bK="_Choose_Main_cegqk_1",SK="_Choose_item_cegqk_13",wK="_Choose_item_disabled_cegqk_29",Nv={Choose_Main:bK,Choose_item:SK,Choose_item_disabled:wK},EK=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,TK=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,sk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjE0LjEwMAAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU3LjE1AAAAAAAAAAAAAAAAJAAAAAAAAAAABoYV32R7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQAAAABpAAAAAAAAANIAAAAACADH/+QtN3NAAAKF6IiVEl7hE0Sv/+XsgGgCgQDQFAgGg3D+yBShQzd+K0qXyBQyRQUp3hEkUMGn/8oCBQ5KOIf+sPl3//+Xf/+GP//6w+EgFgk/nOfWhA4Q4ABxjnQhDhCD3pgIQLAARlkyZ8Ew+Ud1AgUOfy7/4OeGOUORPD//wwUd/KHP//+GPykMA445BCHBIYg4ZC4AyGP+PuWtgyRb6quwuJvp+v8wQwDAKoXYMnpC0w6gAc0HLf/84JkuwnkuN6ioaAAD3CpsVVFMAAFQBkWjRnE4hYMOnIaT5sXEGFHCyMLPhfcDTHTUmRcgnQMuCfCKHjcDRlTchxFTcEHsKGiBNQ6mLhLkNImWi8PkY6s3kUWgaJmjd1igSfFzk+gLLIOcMi4gXyupR9A20G/4zAhOJ/PDgGYKI4y4LMEEBYhnUz1lpozrmZk3//lsky4s+TB4ul8ny6YOV0FmRx0ElHlMbNWYOr///1uZFQ3IGRNBRmfWlRUYkeV8mVhC5j/+UOiwF4DdcGgB//zgmTqHCnhQS/NUAGcStp6X4JQAARBgQCDIwGbMjrzxBIRk8s4+IS7mMEYN4elXLheFicbuxm88zzzHaw/G//9DCJ+eYRf8WGFtZp9ydCUvPMKGf/57ZjPRjzHtq+3//+YZ2U8817jxbb1vcn/1yAPkAgGUJuPiliw1FHilYbAAkIkV4CdGauxnChrTd+JTOW4BTlAB55YoeqaxWm7Wv8xLqLOiiZLUixqapJF5JNAcoviEoN2gAwAUcLiN5Mk6i3TRU+ikk++6KKKTqSKyBsx//OCZFMVigU/GuzMAIuQEq5fwxACNMZGRPKvoqXbR0UbJP11I0t9J/SqSrRZ0lXoqetSTnWoto0kl26LJGJqizoJmtJSSNSWk7WdTpXUkiigbVor9K6lpKSrdFNi8gnstA65dQVWxkXlGyTGRiRt9gUkBwgAggllBkQbKigffEMUfzqlL+6Ruli5Bv+4lPf//////X/////o0Wte9XLYBs4JbHGkwql7GrPNPMusqAJDUPzthoURwGi5eZyu+VuecNrURSYBU/p8//81Vf+Znkn/84JkNA4gwTcvDYYmF1lmTbAzByQpycp3ROJPn025p4SQJoSeFQoViUUAoiJFRL3c8JRUNETudLFn0MtLDwrM4lUeOiJtiztbvBk6xyPrctYdEkBpA09q2Xn9/TmkZxYMuXBUW17I4clP/nKrXbW/C6FI5G0z11z31L9fvGqoAzY1X86WwYUHIdWCvLEwkeEq3kQ7iI8MPM/ssO/8OnlHsFW1nWeCvyzwVOtEvHuyqv/8hOYSETL//NtNaySXOSsAqIiRrkS82UvXUvppbobMbv/zgmQhC0HzBAAEwpKVEO4JYAjTIJ/y/0egY3vXWaZv65cpZm36G/mMUpdalcpStzalb1KXUoUBf8pXKyGM5Sv/TRRPKoUSQMYKTJfSwiUDeW+ZhhmIXNYfiyfSbiqFFLNEQaajFVnrO9YLTodKvET9Z0FcSgq6s6eIz3uLcFQmCxJY06W/g0Cri31AqGrq56EgaXxLPCUNdBZ5USrBUse3BqpNF93yP//yMyMDWEJGQ01////MjMv//I1kcjJrLf/stlzL55SkyyOX5q0cjVrL//OCZC4KtfrOGgAjbodYBawMAEQAYf//+Rk1qGRqygo5GRq1sP/sln//cyNWCg0cj//ZZZZKh+asCHP8lAL////9n/////////GMYm3raaWKige/+sW+LesVTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",CK=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,uk="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjIzLjEwMQAAAAAAAAAAAAAA//OAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAHAAAGhgA/Pz8/Pz8/Pz8/Pz8/P19fX19fX19fX19fX19ff39/f39/f39/f39/f3+fn5+fn5+fn5+fn5+fn5+/v7+/v7+/v7+/v7+/v9/f39/f39/f39/f39/f//////////////////8AAAAATGF2YzU4LjQwAAAAAAAAAAAAAAAAJAL7AAAAAAAABobgvJxkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgGQADLH/PRigiACM0AZ+XUAQAoAVYA9AY3IAASAgeRjeQMhP0O/nec/1cn+Qnv/8n+RuhGUhPoQDPISc6HP1Oec7+pwAROeQikI3IT////z+p3Q56VOd/nOc5JzyAAhQAAI053QDFnoQjKACGvoQ7yThzoBgZ8ADMJQURtuNAkMH4P4P+XOZD4f5d/D/64f/3co7/8H8u/wQ5R3/+sPiN8TvB95SDgYT/yjgQf+mpbd5dJrdLkpewIOA5GsDQUQZnZzSB6Q1U50Guqy9OaH/84JkIg/hbXkux6gBEfpLBx+SKAZQvxWLwbxAAoJRbMJjWBoPcgIzjpzzz2clFsxj0ITlVELLXdjzyg8Q3UoM0PPct+QCw/6D5KMrNmLdXOUnPRjXJ3nMYVFVfnfdzf//q//MR+Q/8uwB0uyB/lVHlY6YhEIGR4cHYHAcAZwSQAJAcAocdAxoAMh6L1HV969TxECi7iHlYn7jW//an//+JXU5/9v4l//6EM3f83/41j3///+ozd63/9C2p2W2W22i0Mq2OVytAvxB06nWCVQIZP/zgmQXD4W5ey/HqAEQUkbOR4koAmYRklcoUe+Yd1AuC8AHmsVSoIxFCwPh6RI8ajdB8807yw/JxoLbsai/djzjScCv+Q/lARCSFyRC8hIFYZkF06Dv//MLs5zV+edqzv6krdvP9V/yO3p66H//n73UnMetFzzx4P/MNxBOVut0AFwIAARCgysYSXL+VO2TXhMWBADVCKKhQmjLmX/////0/P+rf7f///29++FO9LfYWYp//Z9n/yHlg30VsPil34MMSQVrYqfLAYVacpCtK1Oq//OCZBUPGaFC3+e0AA8ZVoZdyxAA2az68kOa28sO3puYoqNkUTUxnD6CKnSNlGTJJositaK2TdJSb2NWSX/SSScyDlAnQ6myTv/1X0aJePGZqjnT1FL6v9SRkXW/dVaKP6VaKLOv//+r//X/ZzF06dSFLuv/1B0aZUKwhImgCMAB2aHaUe7x55QPP/rp3zyZZf/VkdS3RFZ3m/9H//iSCn/1Qaev/0CVH3+oO1P///1t+j//9KoPL7QDcAaC4x+83dEEEvXL3vljkRVf5ZqiVpT/84JkGw5BSSx+MMpOEjoual7AxBzqOG5mzBJL6c7URxGtROS/Zu8vMwc2/naKcgTgLi5R79f/ZSUVjWOSaa1aHK5xM/apQnJHJUuTbXQ5VN09HRzSUNfirDtAVBYCwdfpJmYrjDVue/9pJZFMiSvSUMuMAg40uvlBXQECFUh3VKcOGoUBJAurXLsY3+xpv///1aZAwAP///yghpkdW/5qt8OMEMKKg7/pDn///h1/Ues6P/xLEaAkoyibeSeC8E+AuhymiEos8tLHJNRoThxKnP/zgmQcDD0TFAk8xToRuh4sCGgPKooy1Y8s/q2X/ZH//6tqJAEEQwRKxjI9y1KWWqPDw8awiKqQPPob/pRUDwAioCEtX9R7/9eGlncrLPLBVgKmRZ+GpD/tqEogdIXwLlNkUnUxiamSS0W/ooqUlrot//zUCIHRc05Zrqaabod86PDZv/+b/UamAIGjTP+W/879s9liLSrmCVxXgq7xL+RKoQZ+UAAwBYQh4Rig2ZaVmytcNUuiO5/zP8jP1/+VMy/1RygyCgEMDDLv4CCZF3/S//OCZC8JaK7qfiQiTgxILdAAYYYEEhVLrP///S1HoCosaCoCCYZrZUSBkQDwESH/WkJSAZjByJI0oE4Z/////4FCQeBkVZ/xX/zIsRd/6hf7X//4qSfqwEEiLv1ciEyISQKqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=";var lk={exports:{}},ck={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -56,7 +56,7 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var is=$;function CK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OK=typeof Object.is=="function"?Object.is:CK,AK=is.useState,PK=is.useEffect,kK=is.useLayoutEffect,RK=is.useDebugValue;function IK(e,t){var r=t(),n=AK({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return kK(function(){i.value=r,i.getSnapshot=t,Lv(i)&&o({inst:i})},[e,r,t]),PK(function(){return Lv(i)&&o({inst:i}),e(function(){Lv(i)&&o({inst:i})})},[e]),RK(r),r}function Lv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!OK(e,r)}catch{return!0}}function NK(e,t){return t()}var LK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NK:IK;ck.useSyncExternalStore=is.useSyncExternalStore!==void 0?is.useSyncExternalStore:LK;lk.exports=ck;var MK=lk.exports,fk={exports:{}},hk={};/** + */var os=$;function OK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var AK=typeof Object.is=="function"?Object.is:OK,PK=os.useState,kK=os.useEffect,IK=os.useLayoutEffect,RK=os.useDebugValue;function NK(e,t){var r=t(),n=PK({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return IK(function(){i.value=r,i.getSnapshot=t,Lv(i)&&o({inst:i})},[e,r,t]),kK(function(){return Lv(i)&&o({inst:i}),e(function(){Lv(i)&&o({inst:i})})},[e]),RK(r),r}function Lv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!AK(e,r)}catch{return!0}}function LK(e,t){return t()}var MK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?LK:NK;ck.useSyncExternalStore=os.useSyncExternalStore!==void 0?os.useSyncExternalStore:MK;lk.exports=ck;var FK=lk.exports,fk={exports:{}},hk={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -64,14 +64,14 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yd=$,DK=MK;function FK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BK=typeof Object.is=="function"?Object.is:FK,jK=DK.useSyncExternalStore,$K=yd.useRef,UK=yd.useEffect,GK=yd.useMemo,zK=yd.useDebugValue;hk.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=$K(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=GK(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var p=a.value;if(i(p,d))return f=p}return f=d}if(p=f,BK(c,d))return p;var g=n(d);return i!==void 0&&i(p,g)?p:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=jK(e,o[0],o[1]);return UK(function(){a.hasValue=!0,a.value=s},[s]),zK(s),s};fk.exports=hk;var HK=fk.exports;function VK(e){e()}let dk=VK;const WK=e=>dk=e,qK=()=>dk,BE=Symbol.for("react-redux-context"),jE=typeof globalThis<"u"?globalThis:{};function XK(){var e;if(!$.createContext)return{};const t=(e=jE[BE])!=null?e:jE[BE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const oo=XK();function mx(e=oo){return function(){return $.useContext(e)}}const pk=mx(),YK=()=>{throw new Error("uSES not initialized!")};let vk=YK;const KK=e=>{vk=e},ZK=(e,t)=>e===t;function QK(e=oo){const t=e===oo?pk:mx(e);return function(n,i={}){const{equalityFn:o=ZK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),p=vk(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(p),p}}const ye=QK();function JK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var mk={exports:{}},Ke={};/** @license React v16.13.1 + */var yd=$,DK=FK;function BK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jK=typeof Object.is=="function"?Object.is:BK,$K=DK.useSyncExternalStore,UK=yd.useRef,GK=yd.useEffect,zK=yd.useMemo,HK=yd.useDebugValue;hk.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=UK(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=zK(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var v=a.value;if(i(v,d))return f=v}return f=d}if(v=f,jK(c,d))return v;var g=n(d);return i!==void 0&&i(v,g)?v:(c=d,f=g)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=$K(e,o[0],o[1]);return GK(function(){a.hasValue=!0,a.value=s},[s]),HK(s),s};fk.exports=hk;var VK=fk.exports;function WK(e){e()}let dk=WK;const qK=e=>dk=e,XK=()=>dk,BE=Symbol.for("react-redux-context"),jE=typeof globalThis<"u"?globalThis:{};function YK(){var e;if(!$.createContext)return{};const t=(e=jE[BE])!=null?e:jE[BE]=new Map;let r=t.get($.createContext);return r||(r=$.createContext(null),t.set($.createContext,r)),r}const oo=YK();function mx(e=oo){return function(){return $.useContext(e)}}const pk=mx(),KK=()=>{throw new Error("uSES not initialized!")};let vk=KK;const ZK=e=>{vk=e},QK=(e,t)=>e===t;function JK(e=oo){const t=e===oo?pk:mx(e);return function(n,i={}){const{equalityFn:o=QK,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:h}=t();$.useRef(!0);const d=$.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),v=vk(l.addNestedSub,u.getState,c||u.getState,d,o);return $.useDebugValue(v),v}}const ye=JK();function eZ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var mk={exports:{}},Ke={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var zt=typeof Symbol=="function"&&Symbol.for,gx=zt?Symbol.for("react.element"):60103,yx=zt?Symbol.for("react.portal"):60106,_d=zt?Symbol.for("react.fragment"):60107,xd=zt?Symbol.for("react.strict_mode"):60108,bd=zt?Symbol.for("react.profiler"):60114,Sd=zt?Symbol.for("react.provider"):60109,wd=zt?Symbol.for("react.context"):60110,_x=zt?Symbol.for("react.async_mode"):60111,Ed=zt?Symbol.for("react.concurrent_mode"):60111,Td=zt?Symbol.for("react.forward_ref"):60112,Cd=zt?Symbol.for("react.suspense"):60113,eZ=zt?Symbol.for("react.suspense_list"):60120,Od=zt?Symbol.for("react.memo"):60115,Ad=zt?Symbol.for("react.lazy"):60116,tZ=zt?Symbol.for("react.block"):60121,rZ=zt?Symbol.for("react.fundamental"):60117,nZ=zt?Symbol.for("react.responder"):60118,iZ=zt?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gx:switch(e=e.type,e){case _x:case Ed:case _d:case bd:case xd:case Cd:return e;default:switch(e=e&&e.$$typeof,e){case wd:case Td:case Ad:case Od:case Sd:return e;default:return t}}case yx:return t}}}function gk(e){return Wr(e)===Ed}Ke.AsyncMode=_x;Ke.ConcurrentMode=Ed;Ke.ContextConsumer=wd;Ke.ContextProvider=Sd;Ke.Element=gx;Ke.ForwardRef=Td;Ke.Fragment=_d;Ke.Lazy=Ad;Ke.Memo=Od;Ke.Portal=yx;Ke.Profiler=bd;Ke.StrictMode=xd;Ke.Suspense=Cd;Ke.isAsyncMode=function(e){return gk(e)||Wr(e)===_x};Ke.isConcurrentMode=gk;Ke.isContextConsumer=function(e){return Wr(e)===wd};Ke.isContextProvider=function(e){return Wr(e)===Sd};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gx};Ke.isForwardRef=function(e){return Wr(e)===Td};Ke.isFragment=function(e){return Wr(e)===_d};Ke.isLazy=function(e){return Wr(e)===Ad};Ke.isMemo=function(e){return Wr(e)===Od};Ke.isPortal=function(e){return Wr(e)===yx};Ke.isProfiler=function(e){return Wr(e)===bd};Ke.isStrictMode=function(e){return Wr(e)===xd};Ke.isSuspense=function(e){return Wr(e)===Cd};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_d||e===Ed||e===bd||e===xd||e===Cd||e===eZ||typeof e=="object"&&e!==null&&(e.$$typeof===Ad||e.$$typeof===Od||e.$$typeof===Sd||e.$$typeof===wd||e.$$typeof===Td||e.$$typeof===rZ||e.$$typeof===nZ||e.$$typeof===iZ||e.$$typeof===tZ)};Ke.typeOf=Wr;mk.exports=Ke;var oZ=mk.exports,yk=oZ,aZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_k={};_k[yk.ForwardRef]=aZ;_k[yk.Memo]=sZ;var Qe={};/** + */var zt=typeof Symbol=="function"&&Symbol.for,gx=zt?Symbol.for("react.element"):60103,yx=zt?Symbol.for("react.portal"):60106,_d=zt?Symbol.for("react.fragment"):60107,xd=zt?Symbol.for("react.strict_mode"):60108,bd=zt?Symbol.for("react.profiler"):60114,Sd=zt?Symbol.for("react.provider"):60109,wd=zt?Symbol.for("react.context"):60110,_x=zt?Symbol.for("react.async_mode"):60111,Ed=zt?Symbol.for("react.concurrent_mode"):60111,Td=zt?Symbol.for("react.forward_ref"):60112,Cd=zt?Symbol.for("react.suspense"):60113,tZ=zt?Symbol.for("react.suspense_list"):60120,Od=zt?Symbol.for("react.memo"):60115,Ad=zt?Symbol.for("react.lazy"):60116,rZ=zt?Symbol.for("react.block"):60121,nZ=zt?Symbol.for("react.fundamental"):60117,iZ=zt?Symbol.for("react.responder"):60118,oZ=zt?Symbol.for("react.scope"):60119;function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gx:switch(e=e.type,e){case _x:case Ed:case _d:case bd:case xd:case Cd:return e;default:switch(e=e&&e.$$typeof,e){case wd:case Td:case Ad:case Od:case Sd:return e;default:return t}}case yx:return t}}}function gk(e){return Wr(e)===Ed}Ke.AsyncMode=_x;Ke.ConcurrentMode=Ed;Ke.ContextConsumer=wd;Ke.ContextProvider=Sd;Ke.Element=gx;Ke.ForwardRef=Td;Ke.Fragment=_d;Ke.Lazy=Ad;Ke.Memo=Od;Ke.Portal=yx;Ke.Profiler=bd;Ke.StrictMode=xd;Ke.Suspense=Cd;Ke.isAsyncMode=function(e){return gk(e)||Wr(e)===_x};Ke.isConcurrentMode=gk;Ke.isContextConsumer=function(e){return Wr(e)===wd};Ke.isContextProvider=function(e){return Wr(e)===Sd};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gx};Ke.isForwardRef=function(e){return Wr(e)===Td};Ke.isFragment=function(e){return Wr(e)===_d};Ke.isLazy=function(e){return Wr(e)===Ad};Ke.isMemo=function(e){return Wr(e)===Od};Ke.isPortal=function(e){return Wr(e)===yx};Ke.isProfiler=function(e){return Wr(e)===bd};Ke.isStrictMode=function(e){return Wr(e)===xd};Ke.isSuspense=function(e){return Wr(e)===Cd};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_d||e===Ed||e===bd||e===xd||e===Cd||e===tZ||typeof e=="object"&&e!==null&&(e.$$typeof===Ad||e.$$typeof===Od||e.$$typeof===Sd||e.$$typeof===wd||e.$$typeof===Td||e.$$typeof===nZ||e.$$typeof===iZ||e.$$typeof===oZ||e.$$typeof===rZ)};Ke.typeOf=Wr;mk.exports=Ke;var aZ=mk.exports,yk=aZ,sZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_k={};_k[yk.ForwardRef]=sZ;_k[yk.Memo]=uZ;var Qe={};/** * @license React * react-is.production.min.js * @@ -79,62 +79,62 @@ Add a component higher in the tree to provide a loading * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xx=Symbol.for("react.element"),bx=Symbol.for("react.portal"),Pd=Symbol.for("react.fragment"),kd=Symbol.for("react.strict_mode"),Rd=Symbol.for("react.profiler"),Id=Symbol.for("react.provider"),Nd=Symbol.for("react.context"),uZ=Symbol.for("react.server_context"),Ld=Symbol.for("react.forward_ref"),Md=Symbol.for("react.suspense"),Dd=Symbol.for("react.suspense_list"),Fd=Symbol.for("react.memo"),Bd=Symbol.for("react.lazy"),lZ=Symbol.for("react.offscreen"),xk;xk=Symbol.for("react.module.reference");function cn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case xx:switch(e=e.type,e){case Pd:case Rd:case kd:case Md:case Dd:return e;default:switch(e=e&&e.$$typeof,e){case uZ:case Nd:case Ld:case Bd:case Fd:case Id:return e;default:return t}}case bx:return t}}}Qe.ContextConsumer=Nd;Qe.ContextProvider=Id;Qe.Element=xx;Qe.ForwardRef=Ld;Qe.Fragment=Pd;Qe.Lazy=Bd;Qe.Memo=Fd;Qe.Portal=bx;Qe.Profiler=Rd;Qe.StrictMode=kd;Qe.Suspense=Md;Qe.SuspenseList=Dd;Qe.isAsyncMode=function(){return!1};Qe.isConcurrentMode=function(){return!1};Qe.isContextConsumer=function(e){return cn(e)===Nd};Qe.isContextProvider=function(e){return cn(e)===Id};Qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===xx};Qe.isForwardRef=function(e){return cn(e)===Ld};Qe.isFragment=function(e){return cn(e)===Pd};Qe.isLazy=function(e){return cn(e)===Bd};Qe.isMemo=function(e){return cn(e)===Fd};Qe.isPortal=function(e){return cn(e)===bx};Qe.isProfiler=function(e){return cn(e)===Rd};Qe.isStrictMode=function(e){return cn(e)===kd};Qe.isSuspense=function(e){return cn(e)===Md};Qe.isSuspenseList=function(e){return cn(e)===Dd};Qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pd||e===Rd||e===kd||e===Md||e===Dd||e===lZ||typeof e=="object"&&e!==null&&(e.$$typeof===Bd||e.$$typeof===Fd||e.$$typeof===Id||e.$$typeof===Nd||e.$$typeof===Ld||e.$$typeof===xk||e.getModuleId!==void 0)};Qe.typeOf=cn;function cZ(){const e=qK();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const $E={notify(){},get:()=>[]};function fZ(e,t){let r,n=$E,i=0,o=!1;function a(g){c();const v=n.subscribe(g);let m=!1;return()=>{m||(m=!0,v(),f())}}function s(){n.notify()}function u(){p.onStateChange&&p.onStateChange()}function l(){return o}function c(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=cZ())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=$E)}function h(){o||(o=!0,c())}function d(){o&&(o=!1,f())}const p={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:l,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return p}const hZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dZ=hZ?$.useLayoutEffect:$.useEffect;function pZ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){const a=$.useMemo(()=>{const l=fZ(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),s=$.useMemo(()=>e.getState(),[e]);dZ(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const u=t||oo;return $.createElement(u.Provider,{value:a},r)}function bk(e=oo){const t=e===oo?pk:mx(e);return function(){const{store:n}=t();return n}}const vZ=bk();function mZ(e=oo){const t=e===oo?vZ:bk(e);return function(){return t().dispatch}}const Ht=mZ();KK(HK.useSyncExternalStoreWithSelector);WK(tP.unstable_batchedUpdates);const _r=()=>{const e=Ht();return{playSeEnter:()=>{e(Ee({key:"uiSe",value:sk}))},playSeClick:()=>{e(Ee({key:"uiSe",value:uk}))},playSePageChange:()=>{e(Ee({key:"uiSe",value:wK}))},playSeDialogOpen:()=>{e(Ee({key:"uiSe",value:TK}))},playSeSwitch:()=>{e(Ee({key:"uiSe",value:EK}))}}},Sx=()=>({playSeEnter:()=>{B.dispatch(Ee({key:"uiSe",value:sk}))},playSeClick:()=>{B.dispatch(Ee({key:"uiSe",value:uk}))}});class wx{constructor(t,r){se(this,"text");se(this,"jump");se(this,"jumpToScene");se(this,"showCondition");se(this,"enableCondition");this.text=t,this.jump=r,this.jumpToScene=r.match(/\./)!==null}static parse(t){const r=t.split("->"),n=r.length>1?r[0]:null,o=(r.length>1?r[1]:r[0]).split(":"),a=new wx(o[0],o[1]);if(n!==null){const s=n.match(/\((.*)\)/);s&&(a.showCondition=s[1]);const u=n.match(/\[(.*)\]/);u&&(a.enableCondition=u[1])}return a}}const gZ=e=>{const r=e.content.split("|").map(u=>wx.parse(u)),i=B.getState().userData.optionData.textboxFont===Vn.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:o,playSeClick:a}=Sx(),s=u=>u.filter((l,c)=>zg(l.showCondition)).map((l,c)=>{const f=zg(l.enableCondition),h=f?Nv.Choose_item:Nv.Choose_item_disabled,d=f?()=>{a(),l.jumpToScene?ok(l.jump,l.text):ak(l.jump),O.gameplay.performController.unmountPerform("choose")}:()=>{};return S.jsx("div",{className:h,style:{fontFamily:i},onClick:d,onMouseEnter:o,children:l.text},l.jump+c)});return qn.render(S.jsx("div",{className:Nv.Choose_Main,children:s(r)}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{qn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},yZ=e=>(ne.debug(`脚本内注释${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),_Z=e=>(e.content!==""&&e.content!=="none"?B.dispatch(Ee({key:"enableFilm",value:e.content})):B.dispatch(Ee({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),xZ="_Choose_Main_4xkm5_1",bZ="_Choose_item_4xkm5_13",SZ="_glabalDialog_container_inner_4xkm5_28",wZ="_glabalDialog_container_4xkm5_28",EZ="_title_4xkm5_47",TZ="_button_4xkm5_59",pa={Choose_Main:xZ,Choose_item:bZ,glabalDialog_container_inner:SZ,glabalDialog_container:wZ,title:EZ,button:TZ},CZ=e=>{const t=e.content.toString().trim(),r=Ae(e,"title"),n=(r===0?"Please Input":r)??"Please Input",i=Ae(e,"buttonText"),o=(i===0?"OK":i)??"OK",s=B.getState().userData.optionData.textboxFont===Vn.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:u,playSeClick:l}=Sx(),c=S.jsx("div",{style:{fontFamily:s},className:pa.glabalDialog_container,children:S.jsxs("div",{className:pa.glabalDialog_container_inner,children:[S.jsx("div",{className:pa.title,children:n}),S.jsx("input",{id:"user-input",className:pa.Choose_item}),S.jsx("div",{onMouseEnter:u,onClick:()=>{const f=document.getElementById("user-input");f&&B.dispatch(jP({key:t,value:((f==null?void 0:f.value)??"")===""?" ":(f==null?void 0:f.value)??""})),l(),O.gameplay.performController.unmountPerform("userInput"),Vt()},className:pa.button,children:o})]})});return qn.render(S.jsx("div",{className:pa.Choose_Main,children:c}),document.getElementById("chooseContainer")),{performName:"userInput",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{qn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},OZ="_FullScreenPerform_main_7er8a_2",AZ="_FullScreenPerform_element_7er8a_9",PZ="_fullScreen_video_7er8a_17",kZ="_fadeIn_7er8a_74",RZ="_intro_showSoftly_7er8a_1",IZ="_slideIn_7er8a_80",NZ="_typingEffect_7er8a_86",LZ="_typing_7er8a_86",MZ="_blinkCursor_7er8a_1",DZ="_pixelateEffect_7er8a_95",FZ="_pixelateAnimation_7er8a_1",BZ="_revealAnimation_7er8a_101",jZ="_videoContainer_7er8a_115",In={FullScreenPerform_main:OZ,FullScreenPerform_element:AZ,fullScreen_video:PZ,fadeIn:kZ,intro_showSoftly:RZ,slideIn:IZ,typingEffect:NZ,typing:LZ,blinkCursor:MZ,pixelateEffect:DZ,pixelateAnimation:FZ,revealAnimation:BZ,videoContainer:jZ},$Z=e=>{const t=`introPerform${Math.random().toString()}`;let r,n="rgba(0, 0, 0, 1)",i="rgba(255, 255, 255, 1)";const o=(b,w=0)=>{switch(b){case"fadeIn":return In.fadeIn;case"slideIn":return In.slideIn;case"typingEffect":return`${In.typingEffect} ${w}`;case"pixelateEffect":return In.pixelateEffect;case"revealAnimation":return In.revealAnimation;default:return In.fadeIn}};let a=In.fadeIn,s=1500,u=!1;for(const b of e.args){if(b.key==="backgroundColor"&&(n=b.value||"rgba(0, 0, 0, 1)"),b.key==="fontColor"&&(i=b.value||"rgba(255, 255, 255, 1)"),b.key==="fontSize")switch(b.value){case"small":r="280%";break;case"medium":r="350%";break;case"large":r="420%";break}if(b.key==="animation"&&(a=o(b.value)),b.key==="delayTime"){const w=parseInt(b.value.toString(),10);s=isNaN(w)?s:w}b.key==="hold"&&b.value===!0&&(u=!0)}const l={background:n,color:i,fontSize:r||"350%",width:"100%",height:"100%"},c=e.content.split(/\|/);let h=1e3+s*c.length;const d=u?1e3*60*60*24:1e3+s*c.length;let p=!0,g=setTimeout(()=>{p=!1},h),v=setTimeout(()=>{});const m=()=>{const b=document.getElementById("introContainer");if(h-=s,clearTimeout(g),g=setTimeout(()=>{p=!1},h),b){const w=b.childNodes[0].childNodes[0].childNodes,T=w.length;w.forEach((R,A)=>{const P=Number(R.style.animationDelay.split("ms")[0]);P>0&&(R.style.animationDelay=`${P-s}ms`),A===T-1&&(P===0?(clearTimeout(v),O.gameplay.performController.unmountPerform(t)):(clearTimeout(v),u||(v=setTimeout(()=>{O.gameplay.performController.unmountPerform(t),setTimeout(Vt,0)},h))))})}};O.events.userInteractNext.on(m);const y=c.map((b,w)=>S.jsxs("div",{style:{animationDelay:`${s*w}ms`},className:a,children:[b,b===""?" ":""]},"introtext"+w+Math.random().toString())),_=S.jsx("div",{style:l,children:S.jsx("div",{style:{padding:"3em 4em 3em 4em"},children:y})});qn.render(_,document.getElementById("introContainer"));const x=document.getElementById("introContainer");return x&&(x.style.display="block"),{performName:t,duration:d,isHoldOn:!1,stopFunction:()=>{const b=document.getElementById("introContainer");b&&(b.style.display="none"),O.events.userInteractNext.off(m)},blockingNext:()=>p,blockingAuto:()=>p,stopTimeout:void 0,goNextWhenOver:!0}},UZ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),GZ=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),B.dispatch(Ee({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},zZ="modulepreload",HZ=function(e,t){return new URL(e,t).href},UE={},VZ=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=HZ(o,n),o in UE)return;UE[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":zZ,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},Sk=new Map;function WZ(e){return e?typeof e=="string"?e:e():null}function wk(e){const t=WZ(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function yye(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);Sk.set(wk(e),t)}function qZ(e,t=[]){const r=Sk.get(wk(e));if(!r||!(r instanceof Function))throw ne.error(`Can't call the perform named "${e}"`),new Error(`"${e}" don't have the pixiPerform callback.`);return r(...t)}VZ(()=>import("./initRegister-b6f2cb0a.js"),[],import.meta.url);const XZ=e=>{const t="PixiPerform"+e.content;O.gameplay.performController.performList.forEach(o=>{if(o.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});const r=qZ(e.content),{container:n,tickerKey:i}=r;return{performName:t,duration:0,isHoldOn:!0,stopFunction:()=>{var o,a;ne.warn("现在正在卸载pixi演出"),n.destroy({texture:!0,baseTexture:!0}),(o=O.gameplay.pixiStage)==null||o.effectsContainer.removeChild(n),(a=O.gameplay.pixiStage)==null||a.removeAnimation(i)},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},YZ=e=>{ne.debug("play SE");let t="effect-sound";O.gameplay.performController.unmountPerform(t,!0);let r=e.content,n=!1;Ae(e,"id")&&(t=`effect-sound-${Ae(e,"id")}`,O.gameplay.performController.unmountPerform(t,!0),n=!0);let i=!1;return{performName:"none",blockingAuto(){return!1},blockingNext(){return!1},isHoldOn:!1,stopFunction(){},stopTimeout:void 0,duration:1e3*60*60,arrangePerformPromise:new Promise(o=>{setTimeout(()=>{var d;const a=Ae(e,"volume");let s=document.createElement("audio");s.src=r,n&&(s.loop=!0);const u=B.getState().userData,l=u.optionData.volumeMain,c=typeof a=="number"&&a>=0&&a<=100?a:100,f=l*.01*(((d=u.optionData)==null?void 0:d.seVolume)??100)*.01*c*.01;s.volume=f,s.currentTime=0;const h={performName:t,duration:1e3*60*60,isHoldOn:n,skipNextCollect:!0,stopFunction:()=>{s.oncanplay=()=>{},s.pause()},blockingNext:()=>!1,blockingAuto:()=>n?!1:!i,stopTimeout:void 0};o(h),s.oncanplay=()=>{s==null||s.play()},s.onended=()=>{for(const p of O.gameplay.performController.performList)p.performName===t&&(i=!0,p.stopFunction(),O.gameplay.performController.unmountPerform(p.performName))}},1)})}},KZ=e=>{const t=B.getState().userData,r=t.optionData.volumeMain,n=r*.01*t.optionData.vocalVolume*.01,i=r*.01*t.optionData.bgmVolume*.01,o=Lx();let a=Ae(e,"skipOff"),s=!1;a&&(s=!0),qn.render(S.jsx("div",{className:In.videoContainer,children:S.jsx("video",{className:In.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer"));let u=!1;return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>s,blockingAuto:()=>!0,stopTimeout:void 0,arrangePerformPromise:new Promise(l=>{setTimeout(()=>{let c=document.getElementById("playVideoElement");if(c!==null){c.currentTime=0,c.volume=i;const f=()=>{for(const p of O.gameplay.performController.performList)p.performName===o&&(u=!0,p.stopFunction(),O.gameplay.performController.unmountPerform(p.performName),Vt())},h=()=>{f()};O.events.fullscreenDbClick.on(h);const d={performName:o,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{O.events.fullscreenDbClick.off(h),c.oncanplay=()=>{};const p=document.getElementById("currentBgm");p&&(p.volume=i.toString());const g=document.getElementById("currentVocal");p&&(g.volume=n.toString()),qn.render(S.jsx("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>s,blockingAuto:()=>!u,stopTimeout:void 0,goNextWhenOver:!0};l(d),c.oncanplay=()=>{const v=document.getElementById("currentBgm");v&&(v.volume=0 .toString());const m=document.getElementById("currentVocal");v&&(m.volume=0 .toString()),c==null||c.play()},c.onended=()=>{f()}}},1)})}},ZZ=e=>{B.getState().stage.currentDialogKey;const t=e.content,r=Tr(t),n=(Ae(e,"target")??"default_id").toString(),i=`${n}-${t}-${r}`;let o;return setTimeout(()=>{var s,u;(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n);const a=dh(t,n,r);a&&(ne.debug(`动画${t}作用在${n}`,r),(u=O.gameplay.pixiStage)==null||u.registerAnimation(a,i,n))},0),o=()=>{setTimeout(()=>{var a;B.getState().stage.currentDialogKey,(a=O.gameplay.pixiStage)==null||a.removeAnimationWithSetEffects(i)},0)},{performName:i,duration:r,isHoldOn:!1,stopFunction:o,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function QZ(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0,r.pixiContainer.blur=0)}function i(){r&&(r.pixiContainer.alpha=1,r.pixiContainer.blur=5)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,l=t/u*a,c=1/l,f=5/l;s.alpha<1&&(s.alpha+=c),s.blur<5&&(s.blur+=f)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const JZ=[{name:"universalSoftIn",animationGenerateFunc:C2},{name:"universalSoftOff",animationGenerateFunc:O2},{name:"testblur",animationGenerateFunc:QZ}],eQ=e=>{var s,u;B.getState().stage.currentDialogKey;const t=e.content,r=Ae(e,"duration")??0,n=Ae(e,"target")??0,i=`${n}-${t}-${r}`,o=tQ(t);let a=()=>{};if(o){ne.debug(`动画${t}作用在${n}`,r);const l=o(n,r);(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n),(u=O.gameplay.pixiStage)==null||u.registerAnimation(l,i,n),a=()=>{var c;B.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(i)}}return{performName:i,duration:r,isHoldOn:!1,stopFunction:a,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function tQ(e){const t=JZ.find(r=>r.name===e);return ne.debug("装载动画",t),t?t.animationGenerateFunc:null}const rQ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),nQ=e=>{B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;try{n=JSON.parse(r)}catch{n=[]}const i={name:t,effects:n};O.animationManager.addAnimation(i);const o=Tr(t),a=Ae(e,"target")??0,s=`${a}-${t}-${o}`;let u=()=>{};return setTimeout(()=>{var c,f;(c=O.gameplay.pixiStage)==null||c.stopPresetAnimationOnTarget(a);const l=dh(t,a,o);l&&(ne.debug(`动画${t}作用在${a}`,o),(f=O.gameplay.pixiStage)==null||f.registerAnimation(l,s,a))},0),u=()=>{setTimeout(()=>{var l;B.getState().stage.currentDialogKey,(l=O.gameplay.pixiStage)==null||l.removeAnimationWithSetEffects(s)},0)},{performName:s,duration:o,isHoldOn:!1,stopFunction:u,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function iQ(e){return e.content==="hide"?B.dispatch(Ee({key:"isDisableTextbox",value:!0})):B.dispatch(Ee({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const oQ=e=>{B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;const i=Ae(e,"duration"),o=Ae(e,"target")??0;try{const c=JSON.parse(r);n=pl(o,c,i)}catch{n=[]}const a={name:t,effects:n};O.animationManager.addAnimation(a);const s=sQ(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(o);const c=aQ(t,o,s);c&&(ne.debug(`动画${t}作用在${o}`,s),(h=O.gameplay.pixiStage)==null||h.registerAnimation(c,u,o))},0),l=()=>{setTimeout(()=>{var c;B.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(u)},0)},{performName:u,duration:s,isHoldOn:!1,stopFunction:l,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function aQ(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=At({...lx,duration:0});return Object.assign(a,o),a.duration=o.duration,a});return ne.debug("装载自定义动画",i),ik(i,t,r)}return null}function sQ(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}const uQ=e=>{let t="";for(const r of e.args)r.key==="target"&&(t=r.value.toString());return Ae(e,"enter")&&O.animationManager.nextEnterAnimationName.set(t,Ae(e,"enter").toString()),Ae(e,"exit")&&O.animationManager.nextExitAnimationName.set(t+"-off",Ae(e,"exit").toString()),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},lQ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁BGM:${r},路径:${t},所属系列:${n}`),B.dispatch(n2({name:r,url:t,series:n}));const i=B.getState().userData;return uh.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},cQ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁CG:${r},路径:${t},所属系列:${n}`),B.dispatch(r2({name:r,url:t,series:n}));const i=B.getState().userData;return uh.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},Ex=(e,t=!0)=>{e&&O.backlogManager.makeBacklogEmpty(),t&&O.sceneManager.resetScene(),O.gameplay.performController.removeAllPerform(),O.gameplay.resetGamePlay();const r=At(BP),n=B.getState().stage.GameVar;B.dispatch(ed(r)),t||B.dispatch(Ee({key:"GameVar",value:n}))},fQ=e=>{Ex(!0);const t=B.dispatch,r=jr("start.txt",Br.scene);return ri(r).then(n=>{O.sceneManager.sceneData.currentScene=ni(n,"start.txt",r)}),t(De({component:"showTitle",visibility:!0})),Mx(B.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},hQ=e=>(ak(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),dQ=e=>(O.gameplay.performController.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){ne.warn("pixi 被脚本重新初始化",t.performName);for(let r=0;r{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),He={audioContext:new AudioContext,source:null,analyser:void 0,dataArray:void 0,audioLevelInterval:setInterval(()=>{},0),blinkTimerID:setTimeout(()=>{},0),maxAudioLevel:0},pQ=e=>(He.maxAudioLevel=Math.max(e,He.maxAudioLevel),{OPEN_THRESHOLD:He.maxAudioLevel*.75,HALF_OPEN_THRESHOLD:He.maxAudioLevel*.5}),vQ=e=>{let t=!1;function r(){var n;t||e.animationEndTime&&Date.now()>e.animationEndTime||(t=!0,(n=O.gameplay.pixiStage)==null||n.performBlinkAnimation(e.key,e.animationItem,"closed",e.pos),He.blinkTimerID=setTimeout(()=>{var o;(o=O.gameplay.pixiStage)==null||o.performBlinkAnimation(e.key,e.animationItem,"open",e.pos),t=!1;const i=Math.random()*300+3500;He.blinkTimerID=setTimeout(r,i)},200))}r()},mQ=(e,t,r)=>{e.getByteFrequencyData(t);let n=0;for(let i=0;i{var h,d;const{audioLevel:t,OPEN_THRESHOLD:r,HALF_OPEN_THRESHOLD:n,currentMouthValue:i,lerpSpeed:o,key:a,animationItem:s,pos:u}=e;let l;t>r?l=1:t>n?l=.5:l=0;const c=i+(l-i)*o;(h=O.gameplay.pixiStage)==null||h.setModelMouthY(a,t);let f;c>.75?f="open":c>.25?f="half_open":f="closed",s!==void 0&&((d=O.gameplay.pixiStage)==null||d.performMouthSyncAnimation(a,s,f,u))};class gQ{constructor(t){se(this,"subject");se(this,"result");se(this,"isEnd",!1);this.subject=t}with(t,r){return!this.isEnd&&this.subject===t&&(this.result=r(),this.isEnd=!0),this}endsWith(t,r){return!this.isEnd&&this.subject===t&&(this.result=r(),this.isEnd=!0),this.evaluate()}default(t){return this.isEnd||(this.result=t()),this.evaluate()}evaluate(){return this.result}}function jd(e){return new gQ(e)}const yQ=e=>{ne.debug("play vocal");const t="vocal-play",r=Ae(e,"vocal"),n=Ae(e,"volume");let i;i=B.getState().stage;let o="",a="";const s=i.freeFigure,u=i.figureAssociatedAnimation;let l=0,c=0;const f=1;let h=document.getElementById("currentVocal");O.gameplay.performController.unmountPerform("vocal-play",!0),h!==null&&(h.currentTime=0,h.pause());for(const p of e.args)p.value===!0&&jd(p.key).with("left",()=>{o="left"}).with("right",()=>{o="right"}).endsWith("center",()=>{o="center"}),p.key==="figureId"&&(a=`${p.value.toString()}`);B.dispatch(Ee({key:"playVocal",value:r})),B.dispatch(Ee({key:"vocal",value:r}));let d=!1;return{arrangePerformPromise:new Promise(p=>{setTimeout(()=>{let g=document.getElementById("currentVocal");if(typeof n=="number"&&n>=0&&n<=100?B.dispatch(Ee({key:"vocalVolume",value:n})):B.dispatch(Ee({key:"vocalVolume",value:100})),g!==null){g.currentTime=0;const v={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{g.oncanplay=()=>{},clearInterval(He.audioLevelInterval),g.pause(),a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);GE({audioLevel:0,OPEN_THRESHOLD:1,HALF_OPEN_THRESHOLD:1,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o}),clearTimeout(He.blinkTimerID)},blockingNext:()=>!1,blockingAuto:()=>!d,skipNextCollect:!0,stopTimeout:void 0};O.gameplay.performController.arrangeNewPerform(v,e,!1),g.oncanplay=()=>{a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);if(m){const y=s.find(b=>b.key===a);if(y&&(o=y.basePosition),!He.audioContext){let b;b=new AudioContext,He.analyser=b.createAnalyser(),He.analyser.fftSize=256,He.dataArray=new Uint8Array(He.analyser.frequencyBinCount)}He.analyser||(He.analyser=He.audioContext.createAnalyser(),He.analyser.fftSize=256),l=He.analyser.frequencyBinCount,He.dataArray=new Uint8Array(l);let _=document.getElementById("currentVocal");He.source||(He.source=He.audioContext.createMediaElementSource(_),He.source.connect(He.analyser)),He.analyser.connect(He.audioContext.destination),He.audioLevelInterval=setInterval(()=>{const b=mQ(He.analyser,He.dataArray,l),{OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T}=pQ(b);GE({audioLevel:b,OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o})},50);let x;x=Date.now()+1e4,vQ({key:a,animationItem:m,pos:o,animationEndTime:x}),setTimeout(()=>{clearTimeout(He.blinkTimerID)},1e4)}g==null||g.play()},g.onended=()=>{for(const m of O.gameplay.performController.performList)m.performName===t&&(d=!0,m.stopFunction(),O.gameplay.performController.unmountPerform(m.performName))}}},1)})}};function Tx(e){switch(e){case vr.slow:return 80;case vr.normal:return 35;case vr.fast:return 3}}function Ek(e){switch(e){case vr.slow:return 800;case vr.normal:return 350;case vr.fast:return 200}}const _Q=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.dispatch;let i=Math.random().toString(),o=e.content;const a=Ae(e,"concat"),s=Ae(e,"notend"),u=Ae(e,"speaker"),l=Ae(e,"clear"),c=Ae(e,"vocal");a?(i=t.currentDialogKey,o=t.showText+o,n(Ee({key:"currentConcatDialogPrev",value:t.showText}))):n(Ee({key:"currentConcatDialogPrev",value:""})),n(Ee({key:"showText",value:o})),n(Ee({key:"vocal",value:""})),r.optionData.voiceInterruption===hl.no&&c===null||(n(Ee({key:"playVocal",value:""})),O.gameplay.performController.unmountPerform("vocal-play",!0)),n(Ee({key:"currentDialogKey",value:i}));const h=Tx(r.optionData.textSpeed)*e.content.length;for(const v of e.args)if(v.key==="fontSize")switch(v.value){case"default":n(Ee({key:"showTextSize",value:-1}));break;case"small":n(Ee({key:"showTextSize",value:xn.small}));break;case"medium":n(Ee({key:"showTextSize",value:xn.medium}));break;case"large":n(Ee({key:"showTextSize",value:xn.large}));break}let d=t.showName;u!==null&&(d=u),l&&(d=""),n(Ee({key:"showName",value:d})),c&&yQ(e);const p=Lx();let g=750-r.optionData.textSpeed*250;return s&&(g=0),{performName:p,duration:h+g,isHoldOn:!1,stopFunction:()=>{O.events.textSettle.emit()},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:s}};var Cx={},ml={document:{}},Tk=Object.prototype.hasOwnProperty,Ck=function(e){return $d(e)?e.toLowerCase():e},Uu=Array.isArray,xQ=function(e){return $d(e)?e.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):e};"I".toLowerCase()!=="i"&&(Ck=xQ);var bQ,Ox=Object.prototype.toString,Ok=Object.getPrototypeOf,Mv=Ik("ng");ml.angular||(ml.angular={});ml.document.documentMode;function SQ(e){if(e==null||kx(e))return!1;if(Uu(e)||$d(e)||bQ)return!0;var t="length"in Object(e)&&e.length;return Px(t)&&(t>=0&&(t-1 in e||e instanceof Array)||typeof e.item=="function")}function pt(e,t,r){var n,i;if(e)if(kk(e))for(n in e)n!=="prototype"&&n!=="length"&&n!=="name"&&e.hasOwnProperty(n)&&t.call(r,e[n],n,e);else if(Uu(e)||SQ(e)){var o=typeof e!="object";for(n=0,i=e.length;n"u"}function Ia(e){return typeof e<"u"}function Ak(e){return e!==null&&typeof e=="object"}function Pk(e){return e!==null&&typeof e=="object"&&!Ok(e)}function $d(e){return typeof e=="string"}function Px(e){return typeof e=="number"}function kk(e){return typeof e=="function"}function kx(e){return e&&e.window===e}function Rk(e){return e&&e.$evalAsync&&e.$watch}var TQ=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;function CQ(e){return e&&Px(e.length)&&TQ.test(Ox.call(e))}function OQ(e){return Ox.call(e)==="[object ArrayBuffer]"}function AQ(e,t){var r=[],n=[];if(t){if(CQ(t)||OQ(t))throw Mv("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Mv("cpi","Can't copy! Source and destination are identical.");return Uu(t)?t.length=0:pt(t,function(s,u){u!=="$$hashKey"&&delete t[u]}),r.push(e),n.push(t),i(e,t)}return o(e);function i(s,u){var l=u.$$hashKey,c;if(Uu(s))for(var f=0,h=s.length;f=0)return"...";t.push(n)}return n})}function zE(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):EQ(e)?"undefined":typeof e!="string"?IQ(e):e}function Ik(e,t){return t=t||Error,function(){var r=2,n=arguments,i=n[0],o="["+(e?e+":":"")+i+"] ",a=n[1],s,u;for(o+=a.replace(/\{\d+\}/g,function(l){var c=+l.slice(1,-1),f=c+r;return f <= >= && || ! = |".split(" "),function(e){xf[e]=!0});var NQ={n:` + */var xx=Symbol.for("react.element"),bx=Symbol.for("react.portal"),Pd=Symbol.for("react.fragment"),kd=Symbol.for("react.strict_mode"),Id=Symbol.for("react.profiler"),Rd=Symbol.for("react.provider"),Nd=Symbol.for("react.context"),lZ=Symbol.for("react.server_context"),Ld=Symbol.for("react.forward_ref"),Md=Symbol.for("react.suspense"),Fd=Symbol.for("react.suspense_list"),Dd=Symbol.for("react.memo"),Bd=Symbol.for("react.lazy"),cZ=Symbol.for("react.offscreen"),xk;xk=Symbol.for("react.module.reference");function ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case xx:switch(e=e.type,e){case Pd:case Id:case kd:case Md:case Fd:return e;default:switch(e=e&&e.$$typeof,e){case lZ:case Nd:case Ld:case Bd:case Dd:case Rd:return e;default:return t}}case bx:return t}}}Qe.ContextConsumer=Nd;Qe.ContextProvider=Rd;Qe.Element=xx;Qe.ForwardRef=Ld;Qe.Fragment=Pd;Qe.Lazy=Bd;Qe.Memo=Dd;Qe.Portal=bx;Qe.Profiler=Id;Qe.StrictMode=kd;Qe.Suspense=Md;Qe.SuspenseList=Fd;Qe.isAsyncMode=function(){return!1};Qe.isConcurrentMode=function(){return!1};Qe.isContextConsumer=function(e){return ln(e)===Nd};Qe.isContextProvider=function(e){return ln(e)===Rd};Qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===xx};Qe.isForwardRef=function(e){return ln(e)===Ld};Qe.isFragment=function(e){return ln(e)===Pd};Qe.isLazy=function(e){return ln(e)===Bd};Qe.isMemo=function(e){return ln(e)===Dd};Qe.isPortal=function(e){return ln(e)===bx};Qe.isProfiler=function(e){return ln(e)===Id};Qe.isStrictMode=function(e){return ln(e)===kd};Qe.isSuspense=function(e){return ln(e)===Md};Qe.isSuspenseList=function(e){return ln(e)===Fd};Qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pd||e===Id||e===kd||e===Md||e===Fd||e===cZ||typeof e=="object"&&e!==null&&(e.$$typeof===Bd||e.$$typeof===Dd||e.$$typeof===Rd||e.$$typeof===Nd||e.$$typeof===Ld||e.$$typeof===xk||e.getModuleId!==void 0)};Qe.typeOf=ln;function fZ(){const e=XK();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const $E={notify(){},get:()=>[]};function hZ(e,t){let r,n=$E,i=0,o=!1;function a(g){c();const p=n.subscribe(g);let m=!1;return()=>{m||(m=!0,p(),f())}}function s(){n.notify()}function u(){v.onStateChange&&v.onStateChange()}function l(){return o}function c(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=fZ())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=$E)}function h(){o||(o=!0,c())}function d(){o&&(o=!1,f())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:l,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return v}const dZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pZ=dZ?$.useLayoutEffect:$.useEffect;function vZ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){const a=$.useMemo(()=>{const l=hZ(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),s=$.useMemo(()=>e.getState(),[e]);pZ(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const u=t||oo;return $.createElement(u.Provider,{value:a},r)}function bk(e=oo){const t=e===oo?pk:mx(e);return function(){const{store:n}=t();return n}}const mZ=bk();function gZ(e=oo){const t=e===oo?mZ:bk(e);return function(){return t().dispatch}}const Ht=gZ();ZK(VK.useSyncExternalStoreWithSelector);qK(tP.unstable_batchedUpdates);const _r=()=>{const e=Ht();return{playSeEnter:()=>{e(Ee({key:"uiSe",value:sk}))},playSeClick:()=>{e(Ee({key:"uiSe",value:uk}))},playSePageChange:()=>{e(Ee({key:"uiSe",value:EK}))},playSeDialogOpen:()=>{e(Ee({key:"uiSe",value:CK}))},playSeSwitch:()=>{e(Ee({key:"uiSe",value:TK}))}}},Sx=()=>({playSeEnter:()=>{B.dispatch(Ee({key:"uiSe",value:sk}))},playSeClick:()=>{B.dispatch(Ee({key:"uiSe",value:uk}))}});class wx{constructor(t,r){se(this,"text");se(this,"jump");se(this,"jumpToScene");se(this,"showCondition");se(this,"enableCondition");this.text=t,this.jump=r,this.jumpToScene=r.match(/\./)!==null}static parse(t){const r=t.split("->"),n=r.length>1?r[0]:null,o=(r.length>1?r[1]:r[0]).split(":"),a=new wx(o[0],o[1]);if(n!==null){const s=n.match(/\((.*)\)/);s&&(a.showCondition=s[1]);const u=n.match(/\[(.*)\]/);u&&(a.enableCondition=u[1])}return a}}const yZ=e=>{const r=e.content.split("|").map(u=>wx.parse(u)),i=B.getState().userData.optionData.textboxFont===Hn.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:o,playSeClick:a}=Sx(),s=u=>u.filter((l,c)=>zg(l.showCondition)).map((l,c)=>{const f=zg(l.enableCondition),h=f?Nv.Choose_item:Nv.Choose_item_disabled,d=f?()=>{a(),l.jumpToScene?ok(l.jump,l.text):ak(l.jump),O.gameplay.performController.unmountPerform("choose")}:()=>{};return S.jsx("div",{className:h,style:{fontFamily:i},onClick:d,onMouseEnter:o,children:l.text},l.jump+c)});return qn.render(S.jsx("div",{className:Nv.Choose_Main,children:s(r)}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{qn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},_Z=e=>(ne.debug(`脚本内注释${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),xZ=e=>(e.content!==""&&e.content!=="none"?B.dispatch(Ee({key:"enableFilm",value:e.content})):B.dispatch(Ee({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),bZ="_Choose_Main_4xkm5_1",SZ="_Choose_item_4xkm5_13",wZ="_glabalDialog_container_inner_4xkm5_28",EZ="_glabalDialog_container_4xkm5_28",TZ="_title_4xkm5_47",CZ="_button_4xkm5_59",pa={Choose_Main:bZ,Choose_item:SZ,glabalDialog_container_inner:wZ,glabalDialog_container:EZ,title:TZ,button:CZ},OZ=e=>{const t=e.content.toString().trim(),r=Ae(e,"title"),n=(r===0?"Please Input":r)??"Please Input",i=Ae(e,"buttonText"),o=(i===0?"OK":i)??"OK",s=B.getState().userData.optionData.textboxFont===Hn.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:u,playSeClick:l}=Sx(),c=S.jsx("div",{style:{fontFamily:s},className:pa.glabalDialog_container,children:S.jsxs("div",{className:pa.glabalDialog_container_inner,children:[S.jsx("div",{className:pa.title,children:n}),S.jsx("input",{id:"user-input",className:pa.Choose_item}),S.jsx("div",{onMouseEnter:u,onClick:()=>{const f=document.getElementById("user-input");f&&B.dispatch(jP({key:t,value:((f==null?void 0:f.value)??"")===""?" ":(f==null?void 0:f.value)??""})),l(),O.gameplay.performController.unmountPerform("userInput"),Vt()},className:pa.button,children:o})]})});return qn.render(S.jsx("div",{className:pa.Choose_Main,children:c}),document.getElementById("chooseContainer")),{performName:"userInput",duration:1e3*60*60*24,isHoldOn:!1,stopFunction:()=>{qn.render(S.jsx("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},AZ="_FullScreenPerform_main_7er8a_2",PZ="_FullScreenPerform_element_7er8a_9",kZ="_fullScreen_video_7er8a_17",IZ="_fadeIn_7er8a_74",RZ="_intro_showSoftly_7er8a_1",NZ="_slideIn_7er8a_80",LZ="_typingEffect_7er8a_86",MZ="_typing_7er8a_86",FZ="_blinkCursor_7er8a_1",DZ="_pixelateEffect_7er8a_95",BZ="_pixelateAnimation_7er8a_1",jZ="_revealAnimation_7er8a_101",$Z="_videoContainer_7er8a_115",In={FullScreenPerform_main:AZ,FullScreenPerform_element:PZ,fullScreen_video:kZ,fadeIn:IZ,intro_showSoftly:RZ,slideIn:NZ,typingEffect:LZ,typing:MZ,blinkCursor:FZ,pixelateEffect:DZ,pixelateAnimation:BZ,revealAnimation:jZ,videoContainer:$Z},UZ=e=>{const t=`introPerform${Math.random().toString()}`;let r,n="rgba(0, 0, 0, 1)",i="rgba(255, 255, 255, 1)";const o=(b,w=0)=>{switch(b){case"fadeIn":return In.fadeIn;case"slideIn":return In.slideIn;case"typingEffect":return`${In.typingEffect} ${w}`;case"pixelateEffect":return In.pixelateEffect;case"revealAnimation":return In.revealAnimation;default:return In.fadeIn}};let a=In.fadeIn,s=1500,u=!1;for(const b of e.args){if(b.key==="backgroundColor"&&(n=b.value||"rgba(0, 0, 0, 1)"),b.key==="fontColor"&&(i=b.value||"rgba(255, 255, 255, 1)"),b.key==="fontSize")switch(b.value){case"small":r="280%";break;case"medium":r="350%";break;case"large":r="420%";break}if(b.key==="animation"&&(a=o(b.value)),b.key==="delayTime"){const w=parseInt(b.value.toString(),10);s=isNaN(w)?s:w}b.key==="hold"&&b.value===!0&&(u=!0)}const l={background:n,color:i,fontSize:r||"350%",width:"100%",height:"100%"},c=e.content.split(/\|/);let h=1e3+s*c.length;const d=u?1e3*60*60*24:1e3+s*c.length;let v=!0,g=setTimeout(()=>{v=!1},h),p=setTimeout(()=>{});const m=()=>{const b=document.getElementById("introContainer");if(h-=s,clearTimeout(g),g=setTimeout(()=>{v=!1},h),b){const w=b.childNodes[0].childNodes[0].childNodes,T=w.length;w.forEach((k,A)=>{const P=Number(k.style.animationDelay.split("ms")[0]);P>0&&(k.style.animationDelay=`${P-s}ms`),A===T-1&&(P===0?(clearTimeout(p),O.gameplay.performController.unmountPerform(t)):(clearTimeout(p),u||(p=setTimeout(()=>{O.gameplay.performController.unmountPerform(t),setTimeout(Vt,0)},h))))})}};O.events.userInteractNext.on(m);const y=c.map((b,w)=>S.jsxs("div",{style:{animationDelay:`${s*w}ms`},className:a,children:[b,b===""?" ":""]},"introtext"+w+Math.random().toString())),_=S.jsx("div",{style:l,children:S.jsx("div",{style:{padding:"3em 4em 3em 4em"},children:y})});qn.render(_,document.getElementById("introContainer"));const x=document.getElementById("introContainer");return x&&(x.style.display="block"),{performName:t,duration:d,isHoldOn:!1,stopFunction:()=>{const b=document.getElementById("introContainer");b&&(b.style.display="none"),O.events.userInteractNext.off(m)},blockingNext:()=>v,blockingAuto:()=>v,stopTimeout:void 0,goNextWhenOver:!0}},GZ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),zZ=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),B.dispatch(Ee({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},HZ="modulepreload",VZ=function(e,t){return new URL(e,t).href},UE={},WZ=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=VZ(o,n),o in UE)return;UE[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":HZ,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},Sk=new Map;function qZ(e){return e?typeof e=="string"?e:e():null}function wk(e){const t=qZ(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function _ye(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);Sk.set(wk(e),t)}function XZ(e,t=[]){const r=Sk.get(wk(e));if(!r||!(r instanceof Function))throw ne.error(`Can't call the perform named "${e}"`),new Error(`"${e}" don't have the pixiPerform callback.`);return r(...t)}WZ(()=>import("./initRegister-066993bc.js"),[],import.meta.url);const YZ=e=>{const t="PixiPerform"+e.content;O.gameplay.performController.performList.forEach(o=>{if(o.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});const r=XZ(e.content),{container:n,tickerKey:i}=r;return{performName:t,duration:0,isHoldOn:!0,stopFunction:()=>{var o,a;ne.warn("现在正在卸载pixi演出"),n.destroy({texture:!0,baseTexture:!0}),(o=O.gameplay.pixiStage)==null||o.effectsContainer.removeChild(n),(a=O.gameplay.pixiStage)==null||a.removeAnimation(i)},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},KZ=e=>{ne.debug("play SE");let t="effect-sound";O.gameplay.performController.unmountPerform(t,!0);let r=e.content,n=!1;Ae(e,"id")&&(t=`effect-sound-${Ae(e,"id")}`,O.gameplay.performController.unmountPerform(t,!0),n=!0);let i=!1;return{performName:"none",blockingAuto(){return!1},blockingNext(){return!1},isHoldOn:!1,stopFunction(){},stopTimeout:void 0,duration:1e3*60*60,arrangePerformPromise:new Promise(o=>{setTimeout(()=>{var d;const a=Ae(e,"volume");let s=document.createElement("audio");s.src=r,n&&(s.loop=!0);const u=B.getState().userData,l=u.optionData.volumeMain,c=typeof a=="number"&&a>=0&&a<=100?a:100,f=l*.01*(((d=u.optionData)==null?void 0:d.seVolume)??100)*.01*c*.01;s.volume=f,s.currentTime=0;const h={performName:t,duration:1e3*60*60,isHoldOn:n,skipNextCollect:!0,stopFunction:()=>{s.pause()},blockingNext:()=>!1,blockingAuto:()=>n?!1:!i,stopTimeout:void 0};o(h),s==null||s.play(),s.onended=()=>{for(const v of O.gameplay.performController.performList)v.performName===t&&(i=!0,v.stopFunction(),O.gameplay.performController.unmountPerform(v.performName))}},1)})}},ZZ=e=>{const t=B.getState().userData,r=t.optionData.volumeMain,n=r*.01*t.optionData.vocalVolume*.01,i=r*.01*t.optionData.bgmVolume*.01,o=Lx();let a=Ae(e,"skipOff"),s=!1;a&&(s=!0),qn.render(S.jsx("div",{className:In.videoContainer,children:S.jsx("video",{className:In.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer"));let u=!1;return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>s,blockingAuto:()=>!0,stopTimeout:void 0,arrangePerformPromise:new Promise(l=>{setTimeout(()=>{let c=document.getElementById("playVideoElement");if(c!==null){c.currentTime=0,c.volume=i;const f=()=>{for(const y of O.gameplay.performController.performList)y.performName===o&&(u=!0,y.stopFunction(),O.gameplay.performController.unmountPerform(y.performName),Vt())},h=()=>{f()};O.events.fullscreenDbClick.on(h);const d={performName:o,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{O.events.fullscreenDbClick.off(h);const y=document.getElementById("currentBgm");y&&(y.volume=i.toString());const _=document.getElementById("currentVocal");y&&(_.volume=n.toString()),qn.render(S.jsx("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>s,blockingAuto:()=>!u,stopTimeout:void 0,goNextWhenOver:!0};l(d);const v=0,g=0,p=document.getElementById("currentBgm");p&&(p.volume=g.toString());const m=document.getElementById("currentVocal");p&&(m.volume=v.toString()),c==null||c.play(),c.onended=()=>{f()}}},1)})}},QZ=e=>{B.getState().stage.currentDialogKey;const t=e.content,r=Tr(t),n=(Ae(e,"target")??"default_id").toString(),i=`${n}-${t}-${r}`;let o;return setTimeout(()=>{var s,u;(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n);const a=dh(t,n,r);a&&(ne.debug(`动画${t}作用在${n}`,r),(u=O.gameplay.pixiStage)==null||u.registerAnimation(a,i,n))},0),o=()=>{setTimeout(()=>{var a;B.getState().stage.currentDialogKey,(a=O.gameplay.pixiStage)==null||a.removeAnimationWithSetEffects(i)},0)},{performName:i,duration:r,isHoldOn:!1,stopFunction:o,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function JZ(e,t){const r=O.gameplay.pixiStage.getStageObjByKey(e);function n(){r&&(r.pixiContainer.alpha=0,r.pixiContainer.blur=0)}function i(){r&&(r.pixiContainer.alpha=1,r.pixiContainer.blur=5)}function o(a){if(r){const s=r.pixiContainer,u=O.gameplay.pixiStage.frameDuration,l=t/u*a,c=1/l,f=5/l;s.alpha<1&&(s.alpha+=c),s.blur<5&&(s.blur+=f)}}return{setStartState:n,setEndState:i,tickerFunc:o}}const eQ=[{name:"universalSoftIn",animationGenerateFunc:C2},{name:"universalSoftOff",animationGenerateFunc:O2},{name:"testblur",animationGenerateFunc:JZ}],tQ=e=>{var s,u;B.getState().stage.currentDialogKey;const t=e.content,r=Ae(e,"duration")??0,n=Ae(e,"target")??0,i=`${n}-${t}-${r}`,o=rQ(t);let a=()=>{};if(o){ne.debug(`动画${t}作用在${n}`,r);const l=o(n,r);(s=O.gameplay.pixiStage)==null||s.stopPresetAnimationOnTarget(n),(u=O.gameplay.pixiStage)==null||u.registerAnimation(l,i,n),a=()=>{var c;B.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(i)}}return{performName:i,duration:r,isHoldOn:!1,stopFunction:a,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function rQ(e){const t=eQ.find(r=>r.name===e);return ne.debug("装载动画",t),t?t.animationGenerateFunc:null}const nQ=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),iQ=e=>{B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;try{n=JSON.parse(r)}catch{n=[]}const i={name:t,effects:n};O.animationManager.addAnimation(i);const o=Tr(t),a=Ae(e,"target")??0,s=`${a}-${t}-${o}`;let u=()=>{};return setTimeout(()=>{var c,f;(c=O.gameplay.pixiStage)==null||c.stopPresetAnimationOnTarget(a);const l=dh(t,a,o);l&&(ne.debug(`动画${t}作用在${a}`,o),(f=O.gameplay.pixiStage)==null||f.registerAnimation(l,s,a))},0),u=()=>{setTimeout(()=>{var l;B.getState().stage.currentDialogKey,(l=O.gameplay.pixiStage)==null||l.removeAnimationWithSetEffects(s)},0)},{performName:s,duration:o,isHoldOn:!1,stopFunction:u,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function oQ(e){return e.content==="hide"?B.dispatch(Ee({key:"isDisableTextbox",value:!0})):B.dispatch(Ee({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const aQ=e=>{B.getState().stage.currentDialogKey;const t=(Math.random()*10).toString(16),r=e.content;let n;const i=Ae(e,"duration"),o=Ae(e,"target")??0;try{const c=JSON.parse(r);n=pl(o,c,i)}catch{n=[]}const a={name:t,effects:n};O.animationManager.addAnimation(a);const s=uQ(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(o);const c=sQ(t,o,s);c&&(ne.debug(`动画${t}作用在${o}`,s),(h=O.gameplay.pixiStage)==null||h.registerAnimation(c,u,o))},0),l=()=>{setTimeout(()=>{var c;B.getState().stage.currentDialogKey,(c=O.gameplay.pixiStage)==null||c.removeAnimationWithSetEffects(u)},0)},{performName:u,duration:s,isHoldOn:!1,stopFunction:l,blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function sQ(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=At({...lx,duration:0});return Object.assign(a,o),a.duration=o.duration,a});return ne.debug("装载自定义动画",i),ik(i,t,r)}return null}function uQ(e){const t=O.animationManager.getAnimations().find(r=>r.name===e);if(t){let r=0;return t.effects.forEach(n=>{r+=n.duration}),r}return 0}const lQ=e=>{let t="";for(const r of e.args)r.key==="target"&&(t=r.value.toString());return Ae(e,"enter")&&O.animationManager.nextEnterAnimationName.set(t,Ae(e,"enter").toString()),Ae(e,"exit")&&O.animationManager.nextExitAnimationName.set(t+"-off",Ae(e,"exit").toString()),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},cQ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁BGM:${r},路径:${t},所属系列:${n}`),B.dispatch(n2({name:r,url:t,series:n}));const i=B.getState().userData;return uh.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},fQ=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),ne.info(`解锁CG:${r},路径:${t},所属系列:${n}`),B.dispatch(r2({name:r,url:t,series:n}));const i=B.getState().userData;return uh.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},Ex=(e,t=!0)=>{e&&O.backlogManager.makeBacklogEmpty(),t&&O.sceneManager.resetScene(),O.gameplay.performController.removeAllPerform(),O.gameplay.resetGamePlay();const r=At(BP),n=B.getState().stage.GameVar;B.dispatch(ed(r)),t||B.dispatch(Ee({key:"GameVar",value:n}))},hQ=e=>{Ex(!0);const t=B.dispatch,r=jr("start.txt",Br.scene);return setTimeout(()=>{O.sceneManager.resetScene()},5),t(wG()),Ya(),ri(r).then(n=>{O.sceneManager.sceneData.currentScene=ni(n,"start.txt",r)}),t(Me({component:"showTitle",visibility:!0})),Mx(B.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},dQ=e=>(ak(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),pQ=e=>(O.gameplay.performController.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){ne.warn("pixi 被脚本重新初始化",t.performName);for(let r=0;r{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),He={audioContext:new AudioContext,source:null,analyser:void 0,dataArray:void 0,audioLevelInterval:setInterval(()=>{},0),blinkTimerID:setTimeout(()=>{},0),maxAudioLevel:0},vQ=e=>(He.maxAudioLevel=Math.max(e,He.maxAudioLevel),{OPEN_THRESHOLD:He.maxAudioLevel*.75,HALF_OPEN_THRESHOLD:He.maxAudioLevel*.5}),mQ=e=>{let t=!1;function r(){var n;t||e.animationEndTime&&Date.now()>e.animationEndTime||(t=!0,(n=O.gameplay.pixiStage)==null||n.performBlinkAnimation(e.key,e.animationItem,"closed",e.pos),He.blinkTimerID=setTimeout(()=>{var o;(o=O.gameplay.pixiStage)==null||o.performBlinkAnimation(e.key,e.animationItem,"open",e.pos),t=!1;const i=Math.random()*300+3500;He.blinkTimerID=setTimeout(r,i)},200))}r()},gQ=(e,t,r)=>{e.getByteFrequencyData(t);let n=0;for(let i=0;i{var h,d;const{audioLevel:t,OPEN_THRESHOLD:r,HALF_OPEN_THRESHOLD:n,currentMouthValue:i,lerpSpeed:o,key:a,animationItem:s,pos:u}=e;let l;t>r?l=1:t>n?l=.5:l=0;const c=i+(l-i)*o;(h=O.gameplay.pixiStage)==null||h.setModelMouthY(a,t);let f;c>.75?f="open":c>.25?f="half_open":f="closed",s!==void 0&&((d=O.gameplay.pixiStage)==null||d.performMouthSyncAnimation(a,s,f,u))};class yQ{constructor(t){se(this,"subject");se(this,"result");se(this,"isEnd",!1);this.subject=t}with(t,r){return!this.isEnd&&this.subject===t&&(this.result=r(),this.isEnd=!0),this}endsWith(t,r){return!this.isEnd&&this.subject===t&&(this.result=r(),this.isEnd=!0),this.evaluate()}default(t){return this.isEnd||(this.result=t()),this.evaluate()}evaluate(){return this.result}}function jd(e){return new yQ(e)}const _Q=e=>{ne.debug("play vocal");const t="vocal-play",r=Ae(e,"vocal"),n=Ae(e,"volume");let i;i=B.getState().stage;let o="",a="";const s=i.freeFigure,u=i.figureAssociatedAnimation;let l=0,c=0;const f=1;let h=document.getElementById("currentVocal");O.gameplay.performController.unmountPerform("vocal-play",!0),h!==null&&(h.currentTime=0,h.pause());for(const v of e.args)v.value===!0&&jd(v.key).with("left",()=>{o="left"}).with("right",()=>{o="right"}).endsWith("center",()=>{o="center"}),v.key==="figureId"&&(a=`${v.value.toString()}`);B.dispatch(Ee({key:"playVocal",value:r})),B.dispatch(Ee({key:"vocal",value:r}));let d=!1;return{arrangePerformPromise:new Promise(v=>{setTimeout(()=>{let g=document.getElementById("currentVocal");if(typeof n=="number"&&n>=0&&n<=100?B.dispatch(Ee({key:"vocalVolume",value:n})):B.dispatch(Ee({key:"vocalVolume",value:100})),g!==null){g.currentTime=0;const p={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{clearInterval(He.audioLevelInterval),g.pause(),a=a||`fig-${o}`;const y=u.find(_=>_.targetId===a);GE({audioLevel:0,OPEN_THRESHOLD:1,HALF_OPEN_THRESHOLD:1,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:y,pos:o}),clearTimeout(He.blinkTimerID)},blockingNext:()=>!1,blockingAuto:()=>!d,skipNextCollect:!0,stopTimeout:void 0};O.gameplay.performController.arrangeNewPerform(p,e,!1),a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);if(m){const y=s.find(b=>b.key===a);if(y&&(o=y.basePosition),!He.audioContext){let b;b=new AudioContext,He.analyser=b.createAnalyser(),He.analyser.fftSize=256,He.dataArray=new Uint8Array(He.analyser.frequencyBinCount)}He.analyser||(He.analyser=He.audioContext.createAnalyser(),He.analyser.fftSize=256),l=He.analyser.frequencyBinCount,He.dataArray=new Uint8Array(l);let _=document.getElementById("currentVocal");He.source||(He.source=He.audioContext.createMediaElementSource(_),He.source.connect(He.analyser)),He.analyser.connect(He.audioContext.destination),He.audioLevelInterval=setInterval(()=>{const b=gQ(He.analyser,He.dataArray,l),{OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T}=vQ(b);GE({audioLevel:b,OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o})},50);let x;x=Date.now()+1e4,mQ({key:a,animationItem:m,pos:o,animationEndTime:x}),setTimeout(()=>{clearTimeout(He.blinkTimerID)},1e4)}g==null||g.play(),g.onended=()=>{for(const y of O.gameplay.performController.performList)y.performName===t&&(d=!0,y.stopFunction(),O.gameplay.performController.unmountPerform(y.performName))}}},1)})}};function Tx(e){switch(e){case vr.slow:return 80;case vr.normal:return 35;case vr.fast:return 3}}function Ek(e){switch(e){case vr.slow:return 800;case vr.normal:return 350;case vr.fast:return 200}}const xQ=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.dispatch;let i=Math.random().toString(),o=e.content;const a=Ae(e,"concat"),s=Ae(e,"notend"),u=Ae(e,"speaker"),l=Ae(e,"clear"),c=Ae(e,"vocal");a?(i=t.currentDialogKey,o=t.showText+o,n(Ee({key:"currentConcatDialogPrev",value:t.showText}))):n(Ee({key:"currentConcatDialogPrev",value:""})),n(Ee({key:"showText",value:o})),n(Ee({key:"vocal",value:""})),r.optionData.voiceInterruption===hl.no&&c===null||(n(Ee({key:"playVocal",value:""})),O.gameplay.performController.unmountPerform("vocal-play",!0)),n(Ee({key:"currentDialogKey",value:i}));const h=Tx(r.optionData.textSpeed)*e.content.length;for(const p of e.args)if(p.key==="fontSize")switch(p.value){case"default":n(Ee({key:"showTextSize",value:-1}));break;case"small":n(Ee({key:"showTextSize",value:_n.small}));break;case"medium":n(Ee({key:"showTextSize",value:_n.medium}));break;case"large":n(Ee({key:"showTextSize",value:_n.large}));break}let d=t.showName;u!==null&&(d=u),l&&(d=""),n(Ee({key:"showName",value:d})),c&&_Q(e);const v=Lx();let g=750-r.optionData.textSpeed*250;return s&&(g=0),{performName:v,duration:h+g,isHoldOn:!1,stopFunction:()=>{O.events.textSettle.emit()},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:s}};var Cx={},ml={document:{}},Tk=Object.prototype.hasOwnProperty,Ck=function(e){return $d(e)?e.toLowerCase():e},Gu=Array.isArray,bQ=function(e){return $d(e)?e.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):e};"I".toLowerCase()!=="i"&&(Ck=bQ);var SQ,Ox=Object.prototype.toString,Ok=Object.getPrototypeOf,Mv=Rk("ng");ml.angular||(ml.angular={});ml.document.documentMode;function wQ(e){if(e==null||kx(e))return!1;if(Gu(e)||$d(e)||SQ)return!0;var t="length"in Object(e)&&e.length;return Px(t)&&(t>=0&&(t-1 in e||e instanceof Array)||typeof e.item=="function")}function pt(e,t,r){var n,i;if(e)if(kk(e))for(n in e)n!=="prototype"&&n!=="length"&&n!=="name"&&e.hasOwnProperty(n)&&t.call(r,e[n],n,e);else if(Gu(e)||wQ(e)){var o=typeof e!="object";for(n=0,i=e.length;n"u"}function Ra(e){return typeof e<"u"}function Ak(e){return e!==null&&typeof e=="object"}function Pk(e){return e!==null&&typeof e=="object"&&!Ok(e)}function $d(e){return typeof e=="string"}function Px(e){return typeof e=="number"}function kk(e){return typeof e=="function"}function kx(e){return e&&e.window===e}function Ik(e){return e&&e.$evalAsync&&e.$watch}var CQ=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;function OQ(e){return e&&Px(e.length)&&CQ.test(Ox.call(e))}function AQ(e){return Ox.call(e)==="[object ArrayBuffer]"}function PQ(e,t){var r=[],n=[];if(t){if(OQ(t)||AQ(t))throw Mv("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Mv("cpi","Can't copy! Source and destination are identical.");return Gu(t)?t.length=0:pt(t,function(s,u){u!=="$$hashKey"&&delete t[u]}),r.push(e),n.push(t),i(e,t)}return o(e);function i(s,u){var l=u.$$hashKey,c;if(Gu(s))for(var f=0,h=s.length;f=0)return"...";t.push(n)}return n})}function zE(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):TQ(e)?"undefined":typeof e!="string"?NQ(e):e}function Rk(e,t){return t=t||Error,function(){var r=2,n=arguments,i=n[0],o="["+(e?e+":":"")+i+"] ",a=n[1],s,u;for(o+=a.replace(/\{\d+\}/g,function(l){var c=+l.slice(1,-1),f=c+r;return f <= >= && || ! = |".split(" "),function(e){xf[e]=!0});var LQ={n:` `,f:"\f",r:"\r",t:" ",v:"\v","'":"'",'"':'"'},Ug=function(t){this.options=t};Ug.prototype={constructor:Ug,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&r<=56319&&n>=56320&&n<=57343?e+t:e},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,r){r=r||this.index;var n=Ia(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,r)+"]":" "+r;throw Na("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:G.Program,body:e}},expressionStatement:function(){return{type:G.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Dk(e))throw Na("lval","Trying to assign a value to a non l-value");e={type:G.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:G.ConditionalExpression,test:e,alternate:t,consequent:r}):e},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:G.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:G.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e=this.relational(),t;t=this.expect("==","!=","===","!==");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var e=this.additive(),t;t=this.expect("<",">","<=",">=");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var e=this.multiplicative(),t;t=this.expect("+","-");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var e=this.unary(),t;t=this.expect("*","/","%");)e={type:G.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:G.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=AQ(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:G.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)t.text==="("?(e={type:G.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(e={type:G.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?e={type:G.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],r={type:G.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var e=[];if(this.peekToken().text!==")")do e.push(this.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:G.Identifier,name:e.text}},constant:function(){return{type:G.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:G.ArrayExpression,elements:e}},object:function(){var e=[],t;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;t={type:G.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:G.ObjectExpression,properties:e}},throwError:function(e,t){throw Na("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(this.tokens.length===0)throw Na("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw Na("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,r,n){return this.peekAhead(0,e,t,r,n)},peekAhead:function(e,t,r,n,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===r||a===n||a===i||!t&&!r&&!n&&!i)return o}return!1},expect:function(e,t,r,n){var i=this.peek(e,t,r,n);return i?(this.tokens.shift(),i):!1},selfReferential:{this:{type:G.ThisExpression},$locals:{type:G.LocalsExpression}}};function LQ(e,t){return typeof e<"u"?e:t}function Lk(e,t){return typeof e>"u"?t:typeof t>"u"?e:e+t}function MQ(e,t){var r=e(t);if(!r)throw new Error("Filter '"+t+"' is not defined");return!r.$stateful}function Mt(e,t){var r,n,i;switch(e.type){case G.Program:r=!0,pt(e.body,function(o){Mt(o.expression,t),r=r&&o.expression.constant}),e.constant=r;break;case G.Literal:e.constant=!0,e.toWatch=[];break;case G.UnaryExpression:Mt(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case G.BinaryExpression:Mt(e.left,t),Mt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case G.LogicalExpression:Mt(e.left,t),Mt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case G.ConditionalExpression:Mt(e.test,t),Mt(e.alternate,t),Mt(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case G.Identifier:e.constant=!1,e.toWatch=[e];break;case G.MemberExpression:Mt(e.object,t),e.computed&&Mt(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case G.CallExpression:i=e.filter?MQ(t,e.callee.name):!1,r=i,n=[],pt(e.arguments,function(o){Mt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=i?n:[e];break;case G.AssignmentExpression:Mt(e.left,t),Mt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case G.ArrayExpression:r=!0,n=[],pt(e.elements,function(o){Mt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ObjectExpression:r=!0,n=[],pt(e.properties,function(o){Mt(o.value,t),r=r&&o.value.constant&&!o.computed,o.value.constant||n.push.apply(n,o.value.toWatch)}),e.constant=r,e.toWatch=n;break;case G.ThisExpression:e.constant=!1,e.toWatch=[];break;case G.LocalsExpression:e.constant=!1,e.toWatch=[];break}}function Mk(e){if(e.length===1){var t=e[0].expression,r=t.toWatch;return r.length!==1||r[0]!==t?r:void 0}}function Dk(e){return e.type===G.Identifier||e.type===G.MemberExpression}function Fk(e){if(e.body.length===1&&Dk(e.body[0].expression))return{type:G.AssignmentExpression,left:e.body[0].expression,right:{type:G.NGValueParameter},operator:"="}}function Bk(e){return e.body.length===0||e.body.length===1&&(e.body[0].expression.type===G.Literal||e.body[0].expression.type===G.ArrayExpression||e.body[0].expression.type===G.ObjectExpression)}function jk(e){return e.constant}function $k(e,t){this.astBuilder=e,this.$filter=t}$k.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Mt(r,t.$filter);var n="",i;if(this.stage="assign",i=Fk(r)){this.state.computing="assign";var o=this.nextId();this.recurse(i,o),this.return_(o),n="fn.assign="+this.generateFunction("assign","s,v,l")}var a=Mk(r.body);t.stage="inputs",pt(a,function(l,c){var f="fn"+c;t.state[f]={vars:[],body:[],own:{}},t.state.computing=f;var h=t.nextId();t.recurse(l,h),t.return_(h),t.state.inputs.push(f),l.watchId=c}),this.state.computing="fn",this.stage="main",this.recurse(r);var s='"'+this.USE+" "+this.STRICT+`"; -`+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,Nk,LQ,Lk);return this.state=this.stage=void 0,u.ast=r,u.literal=Bk(r),u.constant=jk(r),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,r=this;return pt(t,function(n){e.push("var "+n+"="+r.generateFunction(n,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return pt(this.state.filters,function(r,n){e.push(r+"=$filter("+t.escape(n)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,n,i,o){var a,s,u=this,l,c,f;if(n=n||Ax,!o&&Ia(e.watchId)){t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.unsafeComputedMember("i",e.watchId)),this.lazyRecurse(e,t,r,n,i,!0));return}switch(e.type){case G.Program:pt(e.body,function(d,p){u.recurse(d.expression,void 0,void 0,function(g){s=g}),p!==e.body.length-1?u.current().body.push(s,";"):u.return_(s)});break;case G.Literal:c=this.escape(e.value),this.assign(t,c),n(t||c);break;case G.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(d){s=d}),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),n(c);break;case G.BinaryExpression:this.recurse(e.left,void 0,void 0,function(d){a=d}),this.recurse(e.right,void 0,void 0,function(d){s=d}),e.operator==="+"?c=this.plus(a,s):e.operator==="-"?c=this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):c="("+a+")"+e.operator+"("+s+")",this.assign(t,c),n(c);break;case G.LogicalExpression:t=t||this.nextId(),u.recurse(e.left,t),u.if_(e.operator==="&&"?t:u.not(t),u.lazyRecurse(e.right,t)),n(t);break;case G.ConditionalExpression:t=t||this.nextId(),u.recurse(e.test,t),u.if_(t,u.lazyRecurse(e.alternate,t),u.lazyRecurse(e.consequent,t)),n(t);break;case G.Identifier:t=t||this.nextId();var h=u.current().inAssignment;r&&(h?r.context=this.assign(this.nextId(),"s"):r.context=u.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),u.if_(u.stage==="inputs"||u.not(u.getHasOwnProperty("l",e.name)),function(){u.if_(u.stage==="inputs"||u.and_("s",u.or_(u.isNull(u.nonComputedMember("s",e.name)),u.hasOwnProperty_("s",e.name))),function(){i&&i!==1&&u.if_(u.isNull(u.nonComputedMember("s",e.name)),u.lazyAssign(u.nonComputedMember("s",e.name),"{}")),u.assign(t,u.nonComputedMember("s",e.name))})},t&&u.lazyAssign(t,u.nonComputedMember("l",e.name))),n(t);break;case G.MemberExpression:a=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),u.recurse(e.object,a,void 0,function(){var d=null,p=u.current().inAssignment;e.computed?(s=u.nextId(),p||u.state.computing==="assign"?d=u.unsafeComputedMember(a,s):d=u.computedMember(a,s)):(p||u.state.computing==="assign"?d=u.unsafeNonComputedMember(a,e.property.name):d=u.nonComputedMember(a,e.property.name),s=e.property.name),e.computed&&e.property.type===G.Literal&&u.recurse(e.property,s),u.if_(u.and_(u.notNull(a),u.or_(u.isNull(d),u.hasOwnProperty_(a,s,e.computed))),function(){e.computed?(e.property.type!==G.Literal&&u.recurse(e.property,s),i&&i!==1&&u.if_(u.not(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!0,r.name=s)):(i&&i!==1&&u.if_(u.isNull(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!1,r.name=e.property.name))},function(){u.assign(t,"undefined")}),n(t)},!!i);break;case G.CallExpression:t=t||this.nextId(),e.filter?(s=u.filter(e.callee.name),l=[],pt(e.arguments,function(d){var p=u.nextId();u.recurse(d,p),l.push(p)}),c=s+".call("+s+","+l.join(",")+")",u.assign(t,c),n(t)):(s=u.nextId(),a={},l=[],u.recurse(e.callee,s,a,function(){u.if_(u.notNull(s),function(){if(pt(e.arguments,function(p){u.recurse(p,e.constant?void 0:u.nextId(),void 0,function(g){l.push(g)})}),a.name){var d=u.member(a.context,a.name,a.computed);c="("+d+" === null ? null : "+u.unsafeMember(a.context,a.name,a.computed)+".call("+[a.context].concat(l).join(",")+"))"}else c=s+"("+l.join(",")+")";u.assign(t,c)},function(){u.assign(t,"undefined")}),n(t)}));break;case G.AssignmentExpression:s=this.nextId(),a={},u.current().inAssignment=!0,this.recurse(e.left,void 0,a,function(){u.if_(u.and_(u.notNull(a.context),u.or_(u.hasOwnProperty_(a.context,a.name),u.isNull(u.member(a.context,a.name,a.computed)))),function(){u.recurse(e.right,s),c=u.member(a.context,a.name,a.computed)+e.operator+s,u.assign(t,c),n(t||c)}),u.current().inAssignment=!1,u.recurse(e.right,s),u.current().inAssignment=!0},1),u.current().inAssignment=!1;break;case G.ArrayExpression:l=[],pt(e.elements,function(d){u.recurse(d,e.constant?void 0:u.nextId(),void 0,function(p){l.push(p)})}),c="["+l.join(",")+"]",this.assign(t,c),n(t||c);break;case G.ObjectExpression:l=[],f=!1,pt(e.properties,function(d){d.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),pt(e.properties,function(d){d.computed?(a=u.nextId(),u.recurse(d.key,a)):a=d.key.type===G.Identifier?d.key.name:""+d.key.value,s=u.nextId(),u.recurse(d.value,s),u.assign(u.unsafeMember(t,a,d.computed),s)})):(pt(e.properties,function(d){u.recurse(d.value,e.constant?void 0:u.nextId(),void 0,function(p){l.push(u.escape(d.key.type===G.Identifier?d.key.name:""+d.key.value)+":"+p)})}),c="{"+l.join(",")+"}",this.assign(t,c)),n(t||c);break;case G.ThisExpression:this.assign(t,"s"),n(t||"s");break;case G.LocalsExpression:this.assign(t,"l"),n(t||"l");break;case G.NGValueParameter:this.assign(t,"v"),n(t||"v");break}},getHasOwnProperty:function(e,t){var r=e+"."+t,n=this.current().own;return n.hasOwnProperty(r)||(n[r]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[r]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,r){if(e===!0)t();else{var n=this.current().body;n.push("if(",e,"){"),t(),n.push("}"),r&&(n.push("else{"),r(),n.push("}"))}},or_:function(e,t){return"("+e+") || ("+t+")"},hasOwnProperty_:function(e,t,r){return r?"(Object.prototype.hasOwnProperty.call("+e+","+t+"))":"(Object.prototype.hasOwnProperty.call("+e+",'"+t+"'))"},and_:function(e,t){return"("+e+") && ("+t+")"},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var r=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,n=/[^$_a-zA-Z0-9]/g,i="";return r.test(t)?i=e+"."+t:(t=t.replace(n,this.stringEscapeFn),i=e+'["'+t+'"]'),i},unsafeComputedMember:function(e,t){return e+"["+t+"]"},unsafeNonComputedMember:function(e,t){return this.nonComputedMember(e,t)},computedMember:function(e,t){return this.state.computing==="assign"?this.unsafeComputedMember(e,t):"("+e+".hasOwnProperty("+t+") ? "+e+"["+t+"] : null)"},unsafeMember:function(e,t,r){return r?this.unsafeComputedMember(e,t):this.unsafeNonComputedMember(e,t)},member:function(e,t,r){return r?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,r,n,i,o){var a=this;return function(){a.recurse(e,t,r,n,i,o)}},lazyAssign:function(e,t){var r=this;return function(){r.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if($d(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(Px(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(e===null)return"null";if(typeof e>"u")return"undefined";throw Na("esc","IMPOSSIBLE")},nextId:function(e,t){var r="v"+this.state.nextId++;return e||this.current().vars.push(r+(t?"="+t:"")),r},current:function(){return this.state[this.state.computing]}};function Uk(e,t){this.astBuilder=e,this.$filter=t}Uk.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);Mt(r,t.$filter);var n,i;(n=Fk(r))&&(i=this.recurse(n));var o=Mk(r.body),a;o&&(a=[],pt(o,function(l,c){var f=t.recurse(l);l.input=f,a.push(f),l.watchId=c}));var s=[];pt(r.body,function(l){s.push(t.recurse(l.expression))});var u=r.body.length===0?Ax:r.body.length===1?s[0]:function(l,c){var f;return pt(s,function(h){f=h(l,c)}),f};return i&&(u.assign=function(l,c,f){return i(l,f,c)}),a&&(u.inputs=a),u.ast=r,u.literal=Bk(r),u.constant=jk(r),u},recurse:function(e,t,r){var n,i,o=this,a;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case G.Literal:return this.value(e.value,t);case G.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case G.BinaryExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.LogicalExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case G.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case G.Identifier:return o.identifier(e.name,t,r);case G.MemberExpression:return n=this.recurse(e.object,!1,!!r),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(n,i,t,r):this.nonComputedMember(n,i,t,r);case G.CallExpression:return a=[],pt(e.arguments,function(s){a.push(o.recurse(s))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(s,u,l,c){for(var f=[],h=0;h":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>t(n,i,o,a);return r?{value:s}:s}},"binary<=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)<=t(n,i,o,a);return r?{value:s}:s}},"binary>=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>=t(n,i,o,a);return r?{value:s}:s}},"binary&&":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)&&t(n,i,o,a);return r?{value:s}:s}},"binary||":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)||t(n,i,o,a);return r?{value:s}:s}},"ternary?:":function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):r(i,o,a,s);return n?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,r){return function(n,i,o,a){var s=i&&e in i?i:n;r&&r!==1&&s&&s[e]==null&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s),l,c;return u!=null&&(l=t(i,o,a,s),l=Nk(l),n&&n!==1&&u&&!u[l]&&(u[l]={}),Object.prototype.hasOwnProperty.call(u,l)&&(c=u[l])),r?{context:u,name:l,value:c}:c}},nonComputedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s);n&&n!==1&&u&&u[t]==null&&(u[t]={});var l=void 0;return u!=null&&Object.prototype.hasOwnProperty.call(u,t)&&(l=u[t]),r?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(r,n,i,o){return o?o[t]:e(r,n,i)}}};var Gg=function(t,r,n){this.lexer=t,this.$filter=r,this.options=n,this.ast=new G(t,n),this.astCompiler=n.csp?new Uk(this.ast,r):new $k(this.ast,r)};Gg.prototype={constructor:Gg,parse:function(e){return this.astCompiler.compile(e)}};Cx.Lexer=Ug;Cx.Parser=Gg;var Gk=Cx,DQ={},FQ=Gk.Lexer,BQ=Gk.Parser;function Gu(e,t){t=t||{};var r;if(typeof e!="string")throw new TypeError("src must be a string, instead saw '"+typeof e+"'");var n={csp:!1,literals:{true:!0,false:!1,null:null,undefined:void 0}},i=new FQ(t),o=new BQ(i,function(s){return DQ[s]},n);return Gu.cache?(r=Gu.cache[e],r||(r=Gu.cache[e]=o.parse(e)),r):o.parse(e)}Gu.cache=Object.create(null);var zk=Gu;const jQ=e=>{let t=!1;e.args.forEach(n=>{n.key==="global"&&(t=!0)});let r;if(t?r=yG:r=jP,e.content.match(/=/)){const n=e.content.split(/=/)[0],i=e.content.split(/=/)[1];if(i==="random()")B.dispatch(r({key:n,value:Math.random()}));else if(i.match(/[+\-*\/()]/)){const a=i.split(/([+\-*\/()])/g).map(l=>l.match(/[a-zA-Z]/)?Rx(l).toString():l).reduce((l,c)=>l+c,""),u=zk(a)();B.dispatch(r({key:n,value:u}))}else i.match(/true|false/)?(i.match(/true/)&&B.dispatch(r({key:n,value:!0})),i.match(/false/)&&B.dispatch(r({key:n,value:!1}))):isNaN(Number(i))?B.dispatch(r({key:n,value:i})):B.dispatch(r({key:n,value:Number(i)}));t?(ne.debug("设置全局变量:",{key:n,value:B.getState().userData.globalGameVar[n]}),zu()):ne.debug("设置变量:",{key:n,value:B.getState().stage.GameVar[n]})}return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function Rx(e){let t=0;return B.getState().stage.GameVar.hasOwnProperty(e)?t=B.getState().stage.GameVar[e]:B.getState().userData.globalGameVar.hasOwnProperty(e)&&(t=B.getState().userData.globalGameVar[e]),t}const $Q=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.dispatch,i={stageGameVar:t.GameVar,globalGameVar:r.globalGameVar};n(Ee({key:"showText",value:JSON.stringify(i)})),n(Ee({key:"showName",value:"展示变量"})),ne.debug("展示变量:",i),setTimeout(()=>{O.events.textSettle.emit()},0);const o=Lx(),a=750-r.optionData.textSpeed*250;return{performName:o,duration:a,isHoldOn:!1,stopFunction:()=>{O.events.textSettle.emit()},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function Be(e,t,r){return{scriptType:e,scriptFunction:t,...r}}const Hk={};function UQ(e){const t={};for(const[r,n]of Object.entries(e))t[r]=Hk[n.scriptType]={scriptString:r,...n};return t}const GQ=e=>{const{content:t}=e,r=t.split(",");for(const n of r){const i=n.split("->");if(i.length>=2){const o=i[0],a=i[1];B.dispatch(Er.replaceUIlable([o,a]))}}return{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},Vk=UQ({intro:Be(ke.intro,$Z),changeBg:Be(ke.changeBg,gK),changeFigure:Be(ke.changeFigure,yK),miniAvatar:Be(ke.miniAvatar,GZ,{next:!0}),changeScene:Be(ke.changeScene,_K),choose:Be(ke.choose,gZ),end:Be(ke.end,fQ),bgm:Be(ke.bgm,mV,{next:!0}),playVideo:Be(ke.video,KZ),setComplexAnimation:Be(ke.setComplexAnimation,eQ),setFilter:Be(ke.setFilter,rQ),pixiInit:Be(ke.pixiInit,dQ,{next:!0}),pixiPerform:Be(ke.pixi,XZ,{next:!0}),label:Be(ke.label,UZ,{next:!0}),jumpLabel:Be(ke.jumpLabel,hQ),setVar:Be(ke.setVar,jQ,{next:!0}),showVars:Be(ke.showVars,$Q),unlockCg:Be(ke.unlockCg,cQ,{next:!0}),unlockBgm:Be(ke.unlockBgm,lQ,{next:!0}),say:Be(ke.say,_Q),filmMode:Be(ke.filmMode,_Z,{next:!0}),callScene:Be(ke.callScene,a7),setTextbox:Be(ke.setTextbox,iQ),setAnimation:Be(ke.setAnimation,ZZ),playEffect:Be(ke.playEffect,YZ,{next:!0}),setTempAnimation:Be(ke.setTempAnimation,nQ),__commment:Be(ke.comment,yZ,{next:!0}),setTransform:Be(ke.setTransform,oQ),setTransition:Be(ke.setTransition,uQ,{next:!0}),getUserInput:Be(ke.getUserInput,CZ),applyStyle:Be(ke.applyStyle,GQ,{next:!0})}),Wk=Object.values(Vk),zQ=Wk.filter(e=>e.next).map(e=>e.scriptType),Ix=new vV(PG,jr,zQ,Wk),ni=(e,t,r)=>{const n=Ix.parse(e,t,r);return ne.info(`解析场景:${t},数据为:`,n),n},Nx=e=>{var n;let t=AG;t=(((n=Hk[e.command])==null?void 0:n.scriptFunction)??Vk.say.scriptFunction)(e),t.arrangePerformPromise?t.arrangePerformPromise.then(i=>O.gameplay.performController.arrangeNewPerform(i,e)):O.gameplay.performController.arrangeNewPerform(t,e)},HQ=e=>{ri(e.sceneUrl).then(t=>{O.sceneManager.sceneData.currentScene=ni(t,e.sceneName,e.sceneUrl),O.sceneManager.sceneData.currentSentenceId=e.continueLine+1,ne.debug("现在恢复场景,恢复后场景:",O.sceneManager.sceneData.currentScene),Vt()})};function VQ(e){return zk(e)()}const zg=e=>{if(e===void 0)return!0;const r=e.split(/([+\-*\/()>=|<=|==)/g).map(n=>n.match(/[a-zA-Z]/)?n.match(/true/)||n.match(/false/)?n:Rx(n).toString():n).reduce((n,i)=>n+i,"");return!!VQ(r)},qk=()=>{if(O.sceneManager.sceneData.currentSentenceId>O.sceneManager.sceneData.currentScene.sentenceList.length-1){if(O.sceneManager.sceneData.sceneStack.length!==0){const l=O.sceneManager.sceneData.sceneStack.pop();l!==void 0&&HQ(l)}return}const e=O.sceneManager.sceneData.currentScene.sentenceList[O.sceneManager.sceneData.currentSentenceId],t=l=>{let c=l;const f=c.match(new RegExp("(?{const d=Rx(h.replace(new RegExp("(?{e.content=t(e.content),e.args.forEach(l=>{l.value&&typeof l.value=="string"&&(l.value=t(l.value))})})();let n=!0,i=!1,o="";if(e.args.forEach(l=>{l.key==="when"&&(i=!0,o=l.value.toString())}),i&&(n=zg(o)),!n){ne.warn("不满足条件,跳过本句!"),O.sceneManager.sceneData.currentSentenceId++,Vt();return}Nx(e);let a=!1;e.args.forEach(l=>{l.key==="next"&&l.value&&(a=!0)});let s=e.command===ke.say;e.args.forEach(l=>{l.key==="notend"&&l.value===!0&&(s=!1)});let u;if(a){O.sceneManager.sceneData.currentSentenceId++,qk();return}setTimeout(()=>{u=B.getState().stage;const l={currentStageState:u,globalGameVar:B.getState().userData.globalGameVar};ne.debug("本条语句执行结果",l),s&&O.backlogManager.saveCurrentStateToBacklog()},0),O.sceneManager.sceneData.currentSentenceId++},Vt=()=>{if(O.events.userInteractNext.emit(),B.getState().GUI.showTitle)return;let t=!1;if(O.gameplay.performController.performList.forEach(i=>{i.blockingNext()&&(t=!0)}),t){ne.warn("next 被阻塞!");return}let r=!0;if(O.gameplay.performController.performList.forEach(i=>{!i.isHoldOn&&!i.skipNextCollect&&(r=!1)}),r){const i=B.getState().stage,o=At(i);for(let a=0;aMath.random().toString().substring(0,10);class WQ{constructor(){se(this,"performList",[]);se(this,"timeoutList",[])}arrangeNewPerform(t,r,n=!0){if(t.performName!=="none"){if(n){const i={id:t.performName,isHoldOn:t.isHoldOn,script:r};B.dispatch(Er.addPerform(i))}t.stopTimeout=setTimeout(()=>{t.isHoldOn||(this.unmountPerform(t.performName),t.goNextWhenOver&&this.goNextWhenOver())},t.duration),this.performList.push(t)}}unmountPerform(t,r=!1){if(r)for(let n=0;n{r.blockingAuto()&&(t=!0)}),t?setTimeout(this.goNextWhenOver,100):Vt()}}class qQ{constructor(){se(this,"isAuto",!1);se(this,"isFast",!1);se(this,"autoInterval",null);se(this,"fastInterval",null);se(this,"autoTimeout",null);se(this,"pixiStage",null);se(this,"performController",new WQ)}resetGamePlay(){this.performController.timeoutList=[],this.isAuto=!1,this.isFast=!1;const t=this.autoInterval;t!==null&&clearInterval(t),this.autoInterval=null;const r=this.fastInterval;r!==null&&clearInterval(r),this.fastInterval=null;const n=this.autoTimeout;n!==null&&clearInterval(n),this.autoTimeout=null}}function XQ(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}class YQ{constructor(){se(this,"textSettle",Sc("text-settle"));se(this,"userInteractNext",Sc("__NEXT"));se(this,"fullscreenDbClick",Sc("fullscreen-dbclick"));se(this,"styleUpdate",Sc("style-update"))}}const Dv=XQ();function Sc(e){return{on:(t,r)=>{Dv.on(`${e}-${r??""}`,t)},emit:(t,r)=>{Dv.emit(`${e}-${r??""}`,t)},off:(t,r)=>{Dv.off(`${e}-${r??""}`,t)}}}class KQ{constructor(){se(this,"sceneManager",new CG);se(this,"backlogManager",new TG(this.sceneManager));se(this,"animationManager",new OG);se(this,"gameplay",new qQ);se(this,"gameName","");se(this,"gameKey","");se(this,"events",new YQ)}}const O=new KQ,Me=Xk(()=>{const e=B.getState().userData;io.setItem(O.gameKey,e).then(()=>{ne.info("写入本地存储")})},100),gl=Xk(()=>{io.getItem(O.gameKey).then(e=>{if(!e||!Yk(e)){ne.warn("现在重置数据"),Me();return}B.dispatch(tx(e))})},100);function Xk(e,t){let r;function n(...i){clearTimeout(r);let o;return r=setTimeout(()=>{o=e.apply(n,i)},t),o}return n}const zu=()=>{const e=B.getState().userData;io.setItem(O.gameKey,e).then(()=>{io.getItem(O.gameKey).then(t=>{if(!t){Me();return}B.dispatch(tx(t))}),ne.info("同步本地存储")})};function Yk(e){let t=!0;for(const r in Ig)e.hasOwnProperty(r)||(t=!1);return t}async function ZQ(){const e=B.getState().userData;return await io.setItem(O.gameKey,e)}async function Kk(){const e=await io.getItem(O.gameKey);if(!e||!Yk(e)){const t=B.getState().userData;return ne.warn("现在重置数据"),await io.setItem(O.gameKey,t)}else B.dispatch(tx(e))}var Ze=(e=>(e[e.Save=0]="Save",e[e.Load=1]="Load",e[e.Option=2]="Option",e))(Ze||{});const QQ={showBacklog:!1,showStarter:!0,showTitle:!0,showMenuPanel:!1,showTextBox:!0,showControls:!0,controlsVisibility:!0,currentMenuTag:Ze.Option,titleBg:"",titleBgm:"",logoImage:[],showExtra:!1,showGlobalDialog:!1,showPanicOverlay:!1,isEnterGame:!1,isShowLogo:!0},Zk=L0({name:"gui",initialState:QQ,reducers:{setVisibility:(e,t)=>{gl();const{component:r,visibility:n}=t.payload;e[r]=n},setMenuPanelTag:(e,t)=>{gl(),e.currentMenuTag=t.payload},setGuiAsset:(e,t)=>{const{asset:r,value:n}=t.payload;e[r]=n},setLogoImage:(e,t)=>{e.logoImage=[...t.payload]}}}),{setVisibility:De,setMenuPanelTag:jo,setGuiAsset:ph,setLogoImage:JQ}=Zk.actions,eJ=Zk.reducer,B=LF({reducer:{stage:f6,GUI:eJ,userData:wG},middleware:hP({serializableCheck:!1})});let HE;function Mx(e,t=0,r=100){if(ne.info("playing bgm"+e),e===""){HE=setTimeout(()=>{B.dispatch(Ee({key:"bgm",value:{src:"",enter:0,volume:100}}))},t);const i=B.getState().stage.bgm.src;B.dispatch(Ee({key:"bgm",value:{src:i,enter:-t,volume:r}}))}else clearTimeout(HE),B.dispatch(Ee({key:"bgm",value:{src:e,enter:t,volume:r}}));const n=document.getElementById("currentBgm");n.src&&(n==null||n.play())}function ec(e){const t=document.getElementById("ebg");t&&(t.style.backgroundImage=`url("${e}")`)}const Dx=()=>{ne.warn("清除所有演出");for(let e=0;e{B.getState().stage.PerformList.forEach(t=>{Nx(t.script)})},tJ=e=>{const t=B.dispatch,r=O.backlogManager.getBacklog()[e];ne.debug("读取的backlog数据",r),ri(r.saveScene.sceneUrl).then(i=>{O.sceneManager.sceneData.currentScene=ni(i,r.saveScene.sceneName,r.saveScene.sceneUrl);const o=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const a=Yl(o);Kl(a)}),O.sceneManager.sceneData.currentSentenceId=r.saveScene.currentSentenceId,O.sceneManager.sceneData.sceneStack=At(r.saveScene.sceneStack),Dx();for(let i=O.backlogManager.getBacklog().length-1;i>e;i--)O.backlogManager.getBacklog().pop();O.backlogManager.isSaveBacklogNext=!0;const n=At(r.currentStageState);t(ed(n)),setTimeout(Fx,0),t(De({component:"showBacklog",visibility:!1})),t(De({component:"showTextBox",visibility:!0}))},Qk=e=>{const r=B.getState().userData.saveData[e];ne.debug("读取的存档数据",r),Jk(r)};function Jk(e){if(!e){ne.info("暂无存档");return}const t=e;ri(t.sceneData.sceneUrl).then(o=>{O.sceneManager.sceneData.currentScene=ni(o,t.sceneData.sceneName,t.sceneData.sceneUrl);const a=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(O.sceneManager.sceneData.currentScene.sceneUrl);const s=Yl(a);Kl(s)}),O.sceneManager.sceneData.currentSentenceId=t.sceneData.currentSentenceId,O.sceneManager.sceneData.sceneStack=At(t.sceneData.sceneStack),Dx();const r=t.backlog;O.backlogManager.getBacklog().splice(0,O.backlogManager.getBacklog().length);for(const o of r)O.backlogManager.getBacklog().push(o);const n=At(t.nowStageState),i=B.dispatch;i(ed(n)),setTimeout(Fx,0),i(De({component:"showTitle",visibility:!1})),i(De({component:"showMenuPanel",visibility:!1})),ec(B.getState().stage.bgName)}const Hg=e=>{const t=B.getState().userData,r=eR(e);ne.debug("存档数据:",r);const n=At(t.saveData);ne.debug("newSaveData:",n),n[e]=r,B.dispatch(gG({key:"saveData",value:[...n]})),ne.debug("存档完成,存档结果:",n),zu()};function eR(e){const t=B.getState().stage,r=At(O.backlogManager.getBacklog()),n=document.getElementById("pixiCanvas"),i=document.createElement("canvas"),o=i.getContext("2d");i.width=480,i.height=270,o.drawImage(n,0,0,480,270);const a=i.toDataURL("image/webp",.5);return i.remove(),{nowStageState:At(t),backlog:r,index:e,saveTime:new Date().toLocaleDateString()+" "+new Date().toLocaleTimeString("chinese",{hour12:!1}),sceneData:{currentSentenceId:O.sceneManager.sceneData.currentSentenceId,sceneStack:At(O.sceneManager.sceneData.sceneStack),sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl},previewImage:a}}function rJ(){`${O.gameName}${O.gameKey}`,`${O.gameName}${O.gameKey}`}async function nJ(){const e=eR(-1),t=At(e);B.dispatch(_G(t)),await ZQ()}async function iJ(){return await Kk(),B.getState().userData.quickSaveData!==null}async function oJ(){await Kk();const e=B.getState().userData.quickSaveData;e&&Jk(e)}const aJ=()=>{Ex(!0);const e=jr("start.txt",Br.scene);ri(e).then(t=>{O.sceneManager.sceneData.currentScene=ni(t,"start.txt",e),Vt()}),B.dispatch(De({component:"showTitle",visibility:!1}))};async function sJ(){if(ec(B.getState().stage.bgName),await iJ()&&O.sceneManager.sceneData.currentSentenceId===0){await oJ();return}O.sceneManager.sceneData.currentSentenceId===0&&O.sceneManager.sceneData.currentScene.sceneName==="start.txt"?Vt():Fx()}function Bx(e,t){if(e==null)return{};var r=JK(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var uJ={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const lJ=Nr(uJ);var cJ=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function VE(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(lJ[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(cJ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var fJ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,hJ=/^\s*$/,dJ=Object.create(null);function tR(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(tR,"")+"";case"comment":return e+""}}var pJ={parse:function(e,t){t||(t={}),t.components||(t.components=dJ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(fJ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith("");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var i=new RegExp(fJ),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var hJ=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,dJ=/^\s*$/,pJ=Object.create(null);function tI(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var i in r)n.push(i+'="'+r[i]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(tI,"")+"";case"comment":return e+""}}var vJ={parse:function(e,t){t||(t={}),t.components||(t.components=pJ);var r,n=[],i=[],o=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(hJ,function(u,l){if(a){if(u!=="")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith(")]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(Kn),pb=function(e){nt(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];Kn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(Kn),vb=function(e){nt(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(Kn);Il.push(ep,vb,fb,pb,db,aa,hb,cb);var gI={__proto__:null,Resource:Yo,BaseImageResource:Kn,INSTALLED:Il,autoDetectResource:Qd,AbstractMultiResource:Jd,ArrayResource:cb,BufferResource:aa,CanvasResource:fb,CubeResource:hb,ImageResource:ep,SVGResource:db,VideoResource:pb,ImageBitmapResource:vb},hue=function(e){nt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===sn.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(aa),Sh=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Bt("disposeFramebuffer"),this.multisample=st.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Re(null,{scaleMode:Cr.NEAREST,resolution:1,mipmap:Ir.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Re(new hue(null,{width:this.width,height:this.height}),{scaleMode:Cr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Ir.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete wr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Re),Nc(t._EMPTY),Nc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Re.from(r)),Nc(t._WHITE),Nc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Ms),uo=function(e){nt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,Kr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,Kr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=Kr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===Kr.CLEAR||r===Kr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(tn.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(tn.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Pt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=st.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=Lc[0],i=Lc[1],o=Lc[2],a=Lc[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?am.copyFrom(o):am.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),nc=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),xb=function(){function e(t){this.renderer=t,this.emptyRenderer=new nc(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=Xn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),bI=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=st.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),_ue=new Ie,Sb=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Sh(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Ie,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===Xn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=Sl.COLOR|Sl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new bI(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=st.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(r),i}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(r){this._mipmap!==r&&(this._mipmap=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(r){this._scaleMode!==r&&(this._scaleMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(r){this._wrapMode!==r&&(this._wrapMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(r,n){var i;return r!==void 0&&r!==this.scaleMode&&(this.scaleMode=r,i=!0),n!==void 0&&n!==this.mipmap&&(this.mipmap=n,i=!0),i&&this.dirtyStyleId++,this},t.prototype.setSize=function(r,n,i){return i=i||this.resolution,this.setRealSize(r*i,n*i,i)},t.prototype.setRealSize=function(r,n,i){return this.resolution=i||this.resolution,this.width=Math.round(r)/this.resolution,this.height=Math.round(n)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=hy(this.realWidth)&&hy(this.realHeight)},t.prototype.setResolution=function(r){var n=this.resolution;return n===r?this:(this.resolution=r,this.valid&&(this.width=Math.round(this.width*n)/r,this.height=Math.round(this.height*n)/r,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(r){if(this.resource===r)return this;if(this.resource)throw new Error("Resource can be set only once");return r.bind(this),this.resource=r,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(r){this.emit("error",this,r)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Yr[this.cacheId],delete wr[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(r,n,i){i===void 0&&(i=te.STRICT_TEXTURE_CACHE);var o=typeof r=="string",a=null;if(o)a=r;else{if(!r._pixiId){var s=n&&n.pixiIdPrefix||"pixiid";r._pixiId=s+"_"+ao()}a=r._pixiId}var u=Yr[a];if(o&&i&&!u)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return u||(u=new t(r,n),u.cacheId=a,t.addToCache(u,a)),u},t.fromBuffer=function(r,n,i,o){r=r||new Float32Array(n*i*4);var a=new aa(r,{width:n,height:i}),s=r instanceof Float32Array?fe.FLOAT:fe.UNSIGNED_BYTE;return new t(a,Object.assign({},hue,o||{width:n,height:i,type:s}))},t.addToCache=function(r,n){n&&(r.textureCacheIds.indexOf(n)===-1&&r.textureCacheIds.push(n),Yr[n]&&console.warn("BaseTexture added to the cache with an id ["+n+"] that already had an entry"),Yr[n]=r)},t.removeFromCache=function(r){if(typeof r=="string"){var n=Yr[r];if(n){var i=n.textureCacheIds.indexOf(r);return i>-1&&n.textureCacheIds.splice(i,1),delete Yr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;o0)if(r.resource)this.addResourceAt(r.resource,n);else throw new Error("CubeResource does not support copying of renderTexture.");else r.target=Yi.TEXTURE_CUBE_MAP_POSITIVE_X+n,r.parentTextureArray=this.baseTexture,this.items[n]=r;return r.valid&&!this.valid&&this.resize(r.realWidth,r.realHeight),this.items[n]=r,this},t.prototype.upload=function(r,n,i){for(var o=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(Kn),pb=function(e){rt(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];Kn.crossOrigin(o,a,n.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(jt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(Kn),vb=function(e){rt(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&r instanceof ImageBitmap},t}(Kn);Rl.push(ep,vb,fb,pb,db,aa,hb,cb);var gR={__proto__:null,Resource:Yo,BaseImageResource:Kn,INSTALLED:Rl,autoDetectResource:Qd,AbstractMultiResource:Jd,ArrayResource:cb,BufferResource:aa,CanvasResource:fb,CubeResource:hb,ImageResource:ep,SVGResource:db,VideoResource:pb,ImageBitmapResource:vb},due=function(e){rt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===an.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(aa),Sh=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Bt("disposeFramebuffer"),this.multisample=st.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new Ie(null,{scaleMode:Cr.NEAREST,resolution:1,mipmap:Rr.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Ie(new due(null,{width:this.width,height:this.height}),{scaleMode:Cr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Rr.OFF,format:Z.DEPTH_COMPONENT,type:fe.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete wr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Ie),Nc(t._EMPTY),Nc(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var r=te.ADAPTER.createCanvas(16,16),n=r.getContext("2d");r.width=16,r.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),t._WHITE=new t(Ie.from(r)),Nc(t._WHITE),Nc(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Fs),uo=function(e){rt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,Kr.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,Kr.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=Kr.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===Kr.CLEAR||r===Kr.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(en.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(en.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(Pt.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=st.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||st.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=Lc[0],i=Lc[1],o=Lc[2],a=Lc[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?am.copyFrom(o):am.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),nc=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),xb=function(){function e(t){this.renderer=t,this.emptyRenderer=new nc(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=Xn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var r=this;t.preventDefault(),setTimeout(function(){r.gl.isContextLost()&&r.extensions.loseContext&&r.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r&&!r.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),bR=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=st.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),xue=new Re,Sb=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Sh(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Re,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;te.PREFER_ENV===Xn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=Sl.COLOR|Sl.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new bR(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=st.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=Xn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),su=t}return su}var Mc;function bue(){if(!Mc){Mc=Or.MEDIUM;var e=TI();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Mc=t.precision?Or.HIGH:Or.MEDIUM}}return Mc}function sC(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Or.HIGH&&r!==Or.HIGH&&(n=Or.MEDIUM),"precision "+n+` float; -`+e}else if(r!==Or.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var Sue={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function CI(e){return Sue[e]}var Dc=null,uC={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function OI(e,t){if(!Dc){var r=Object.keys(uC);Dc={};for(var n=0;n=Xn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),uu=t}return uu}var Mc;function Sue(){if(!Mc){Mc=Or.MEDIUM;var e=TR();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Mc=t.precision?Or.HIGH:Or.MEDIUM}}return Mc}function sC(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Or.HIGH&&r!==Or.HIGH&&(n=Or.MEDIUM),"precision "+n+` float; +`+e}else if(r!==Or.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var wue={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function CR(e){return wue[e]}var Fc=null,uC={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function OR(e,t){if(!Fc){var r=Object.keys(uC);Fc={};for(var n=0;n0&&(t+=` -else `),r0&&(t+=` +else `),r"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),kI=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),cC=new Pt,fC=[],Tb=function(e){nt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=fC.pop())!==null&&n!==void 0?n:new Ie);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?cC.copyFrom(a):cC.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&fC.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(kI),Cb=function(e){nt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(kI),Ob=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Pt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),mo=new Ie,lu=new Ie,Ab=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Ie,this.destinationFrame=new Ie,this.viewportFrame=new Ie}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(mo.width=t.frame.width,mo.height=t.frame.height,r=mo),n||(lu.x=t.frame.x,lu.y=t.frame.y,lu.width=r.width,lu.height=r.height,n=lu),a=o.framebuffer):(s=i.resolution,r||(mo.width=i.screen.width,mo.height=i.screen.height,r=mo),n||(n=mo,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function Due(e,t,r,n,i){r.buffer.update(i)}var Fue={float:` +`,lC=new Pt,tp=function(){function e(t,r){this._texture=t,this.mapCoord=new Pt,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof r>"u"?.5:r,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,r){r===void 0&&(r=t);for(var n=this.mapCoord,i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==r&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),kR=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var r=this.renderer.gl,n=this.getStackLength();this.maskStack=t;var i=this.getStackLength();i!==n&&(i===0?r.disable(this.glConst):(r.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),cC=new Pt,fC=[],Tb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._scissorCounter:0},t.prototype.calcScissorRect=function(r){var n;if(!r._scissorRectLocal){var i=r._scissorRect,o=r.maskObject,a=this.renderer,s=a.renderTexture,u=o.getBounds(!0,(n=fC.pop())!==null&&n!==void 0?n:new Re);this.roundFrameToPixels(u,s.current?s.current.resolution:a.resolution,s.sourceFrame,s.destinationFrame,a.projection.transform),i&&u.fit(i),r._scissorRectLocal=u}},t.isMatrixRotated=function(r){if(!r)return!1;var n=r.a,i=r.b,o=r.c,a=r.d;return(Math.abs(i)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?cC.copyFrom(a):cC.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;r&&fC.push(r._scissorRectLocal),this.getStackLength()>0?this._useCurrent():n.disable(n.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(kR),Cb=function(e){rt(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=te.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++;var a=r._colorMask;a!==0&&(r._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,a!==0&&(r._colorMask=a,i.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{var i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=i?i._colorMask:15;o!==0&&(i._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,o!==0&&(i._colorMask=o,n.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(kR),Ob=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Pt,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),mo=new Re,cu=new Re,Ab=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Re,this.destinationFrame=new Re,this.viewportFrame=new Re}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(mo.width=t.frame.width,mo.height=t.frame.height,r=mo),n||(cu.x=t.frame.x,cu.y=t.frame.y,cu.width=r.width,cu.height=r.height,n=cu),a=o.framebuffer):(s=i.resolution,r||(mo.width=i.screen.width,mo.height=i.screen.height,r=mo),n||(n=mo,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function Due(e,t,r,n,i){r.buffer.update(i)}var Bue={float:` data[offset] = v; `,vec2:` data[offset] = v[0]; @@ -570,7 +570,7 @@ void main(void) { data[offset + i] = v[i]; } - `},RI={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function II(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function NI(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function LI(e,t){if(!e.autoManage)return{size:0,syncFunc:Due};for(var r=NI(e.uniforms,t),n=II(r),i=n.uboElements,o=n.size,a=[` + `},IR={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function RR(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function NR(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function LR(e,t){if(!e.autoManage)return{size:0,syncFunc:Due};for(var r=NR(e.uniforms,t),n=RR(r),i=n.uboElements,o=n.size,a=[` var v = null; var v2 = null; var cv = null; @@ -578,7 +578,7 @@ void main(void) var gl = renderer.gl var index = 0; var data = buffer.data; - `],s=0;s1){var p=CI(u.data.type),g=Math.max(RI[u.data.type]/16,1),v=p/g,m=(4-v%4)%4;a.push(` + `],s=0;s1){var v=CR(u.data.type),g=Math.max(IR[u.data.type]/16,1),p=v/g,m=(4-p%4)%4;a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -587,14 +587,14 @@ void main(void) for(var i=0; i < `+u.data.size*g+`; i++) { - for(var j = 0; j < `+v+`; j++) + for(var j = 0; j < `+p+`; j++) { data[offset++] = v[t++]; } offset += `+m+`; } - `)}else{var y=Fue[u.data.type];a.push(` + `)}else{var y=Bue[u.data.type];a.push(` cv = ud.`+c+`.value; v = uv.`+c+`; offset = `+u.offset/4+`; @@ -602,7 +602,7 @@ void main(void) `)}}return a.push(` renderer.buffer.update(buffer); `),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(` -`))}}var Bue=function(){function e(){}return e}(),MI=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function jue(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function Yue(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,g,v,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[Z.RGB]=e.R11F_G11F_B10F,p),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(v={},v[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,v),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var Of=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Ib=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Re,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Yue(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==wl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new Of(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==wl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&Go(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Ir.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=bn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Ir.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Cr.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),FI={__proto__:null,FilterSystem:_b,BatchSystem:xb,ContextSystem:bb,FramebufferSystem:Sb,GeometrySystem:wb,MaskSystem:Eb,ScissorSystem:Tb,StencilSystem:Cb,ProjectionSystem:Ob,RenderTextureSystem:Ab,ShaderSystem:Pb,StateSystem:kb,TextureGCSystem:Rb,TextureSystem:Ib},vm=new Pt,BI=function(e){nt(t,e);function t(r,n){r===void 0&&(r=as.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Ie(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(mr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(mr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=cue(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=uo.create(_y({width:o.width,height:o.height},s));return vm.tx=-o.x,vm.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:vm,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=as.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=rb(r),Gt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(Ms),Kue=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Zue=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=st.HIGH?this.multisample=st.HIGH:n>=st.MEDIUM?this.multisample=st.MEDIUM:n>=st.LOW?this.multisample=st.LOW:this.multisample=st.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof uo?(mr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return mr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){mr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ii.add({name:r,type:Ye.RendererPlugin,ref:n})},t.__plugins={},t}(BI);ii.handleByMap(Ye.RendererPlugin,Nb.__plugins);function jI(e){return Nb.create(e)}var Que=`attribute vec2 aVertexPosition; +`))}}var jue=function(){function e(){}return e}(),MR=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function $ue(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function Kue(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,v,g,p,m,y,_,x,b,w,T;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?T=(t={},t[fe.UNSIGNED_BYTE]=(r={},r[Z.RGBA]=e.RGBA8,r[Z.RGB]=e.RGB8,r[Z.RG]=e.RG8,r[Z.RED]=e.R8,r[Z.RGBA_INTEGER]=e.RGBA8UI,r[Z.RGB_INTEGER]=e.RGB8UI,r[Z.RG_INTEGER]=e.RG8UI,r[Z.RED_INTEGER]=e.R8UI,r[Z.ALPHA]=e.ALPHA,r[Z.LUMINANCE]=e.LUMINANCE,r[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[fe.BYTE]=(n={},n[Z.RGBA]=e.RGBA8_SNORM,n[Z.RGB]=e.RGB8_SNORM,n[Z.RG]=e.RG8_SNORM,n[Z.RED]=e.R8_SNORM,n[Z.RGBA_INTEGER]=e.RGBA8I,n[Z.RGB_INTEGER]=e.RGB8I,n[Z.RG_INTEGER]=e.RG8I,n[Z.RED_INTEGER]=e.R8I,n),t[fe.UNSIGNED_SHORT]=(i={},i[Z.RGBA_INTEGER]=e.RGBA16UI,i[Z.RGB_INTEGER]=e.RGB16UI,i[Z.RG_INTEGER]=e.RG16UI,i[Z.RED_INTEGER]=e.R16UI,i[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[fe.SHORT]=(o={},o[Z.RGBA_INTEGER]=e.RGBA16I,o[Z.RGB_INTEGER]=e.RGB16I,o[Z.RG_INTEGER]=e.RG16I,o[Z.RED_INTEGER]=e.R16I,o),t[fe.UNSIGNED_INT]=(a={},a[Z.RGBA_INTEGER]=e.RGBA32UI,a[Z.RGB_INTEGER]=e.RGB32UI,a[Z.RG_INTEGER]=e.RG32UI,a[Z.RED_INTEGER]=e.R32UI,a[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[fe.INT]=(s={},s[Z.RGBA_INTEGER]=e.RGBA32I,s[Z.RGB_INTEGER]=e.RGB32I,s[Z.RG_INTEGER]=e.RG32I,s[Z.RED_INTEGER]=e.R32I,s),t[fe.FLOAT]=(u={},u[Z.RGBA]=e.RGBA32F,u[Z.RGB]=e.RGB32F,u[Z.RG]=e.RG32F,u[Z.RED]=e.R32F,u[Z.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[fe.HALF_FLOAT]=(l={},l[Z.RGBA]=e.RGBA16F,l[Z.RGB]=e.RGB16F,l[Z.RG]=e.RG16F,l[Z.RED]=e.R16F,l),t[fe.UNSIGNED_SHORT_5_6_5]=(c={},c[Z.RGB]=e.RGB565,c),t[fe.UNSIGNED_SHORT_4_4_4_4]=(f={},f[Z.RGBA]=e.RGBA4,f),t[fe.UNSIGNED_SHORT_5_5_5_1]=(h={},h[Z.RGBA]=e.RGB5_A1,h),t[fe.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[Z.RGBA]=e.RGB10_A2,d[Z.RGBA_INTEGER]=e.RGB10_A2UI,d),t[fe.UNSIGNED_INT_10F_11F_11F_REV]=(v={},v[Z.RGB]=e.R11F_G11F_B10F,v),t[fe.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[Z.RGB]=e.RGB9_E5,g),t[fe.UNSIGNED_INT_24_8]=(p={},p[Z.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,p),t[fe.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[Z.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):T=(y={},y[fe.UNSIGNED_BYTE]=(_={},_[Z.RGBA]=e.RGBA,_[Z.RGB]=e.RGB,_[Z.ALPHA]=e.ALPHA,_[Z.LUMINANCE]=e.LUMINANCE,_[Z.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,_),y[fe.UNSIGNED_SHORT_5_6_5]=(x={},x[Z.RGB]=e.RGB,x),y[fe.UNSIGNED_SHORT_4_4_4_4]=(b={},b[Z.RGBA]=e.RGBA,b),y[fe.UNSIGNED_SHORT_5_5_5_1]=(w={},w[Z.RGBA]=e.RGBA,w),y),T}var Of=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=fe.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0}return e}(),Rb=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Ie,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Kue(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==wl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new Of(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===fe.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==wl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&Go(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];r&&((t.mipmap===Rr.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=xn.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==Rr.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Cr.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===Cr.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),DR={__proto__:null,FilterSystem:_b,BatchSystem:xb,ContextSystem:bb,FramebufferSystem:Sb,GeometrySystem:wb,MaskSystem:Eb,ScissorSystem:Tb,StencilSystem:Cb,ProjectionSystem:Ob,RenderTextureSystem:Ab,ShaderSystem:Pb,StateSystem:kb,TextureGCSystem:Ib,TextureSystem:Rb},vm=new Pt,BR=function(e){rt(t,e);function t(r,n){r===void 0&&(r=ss.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},te.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Re(0,0,n.width,n.height),i.view=n.view||te.ADAPTER.createCanvas(),i.resolution=n.resolution||te.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(mr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(mr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=fue(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=uo.create(_y({width:o.width,height:o.height},s));return vm.tx=-o.x,vm.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:vm,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=ss.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=rb(r),Gt(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(Fs),Zue=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),Que=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=st.HIGH?this.multisample=st.HIGH:n>=st.MEDIUM?this.multisample=st.MEDIUM:n>=st.LOW?this.multisample=st.LOW:this.multisample=st.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof uo?(mr("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return mr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){mr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ii.add({name:r,type:Ye.RendererPlugin,ref:n})},t.__plugins={},t}(BR);ii.handleByMap(Ye.RendererPlugin,Nb.__plugins);function jR(e){return Nb.create(e)}var Jue=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -613,7 +613,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Jue=`attribute vec2 aVertexPosition; +}`,ele=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -639,7 +639,7 @@ void main(void) gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } -`,$I=Que,Lb=Jue,ele=function(){function e(t){mr("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}return e.prototype.destroy=function(){this.renderer=null},e}(),wh=function(){function e(){this.texArray=null,this.blend=0,this.type=tn.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),Eh=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Re._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),p._batchEnabled=l,p.touched=u,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;dthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++Ie._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),v._batchEnabled=l,v.touched=u,f.elements[f.count++]=v)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;d0&&(r+=` else `),n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=jc+"px",r.style.height=jc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=pC.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===ile&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},e}();/*! + */var WR={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};xt.mixin(WR);var ole=9,jc=100,ale=0,sle=0,pC=2,vC=1,ule=-1e3,lle=-1e3,cle=2,qR=function(){function e(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(tn.tablet||tn.phone)&&this.createTouchHook();var r=document.createElement("div");r.style.width=jc+"px",r.style.height=jc+"px",r.style.position="absolute",r.style.top=ale+"px",r.style.left=sle+"px",r.style.zIndex=pC.toString(),this.div=r,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),e.prototype.createTouchHook=function(){var t=this,r=document.createElement("button");r.style.width=vC+"px",r.style.height=vC+"px",r.style.position="absolute",r.style.top=ule+"px",r.style.left=lle+"px",r.style.zIndex=cle.toString(),r.style.backgroundColor="#FF0000",r.title="select to enable accessibility for this content",r.addEventListener("focus",function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()}),document.body.appendChild(r),this._hookDiv=r},e.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},e.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)===null||t===void 0||t.appendChild(this.div))},e.prototype.deactivate=function(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)===null||t===void 0||t.removeChild(this.div))},e.prototype.updateAccessibleObjects=function(t){if(!(!t.visible||!t.accessibleChildren)){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var r=t.children;if(r)for(var n=0;n title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=jc+"px",r.style.height=jc+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=pC.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===ole&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},e}();/*! * @pixi/interaction - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -703,19 +703,19 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Sy=function(e,t){return Sy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Sy(e,t)};function cle(e,t){Sy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var XI=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),Af=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),fle=function(){function e(){this._tempPoint=new Ce}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var p=h[d],g=this.recursiveFindHit(t,p,n,i,l);if(g){if(!p.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),YI={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};xt.mixin(YI);var $c=1,Uc={target:null,data:{global:null}},KI=function(e){cle(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new by,i.mouse.identifier=$c,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[$c]=i.mouse,i.interactionDataPool=[],i.eventData=new XI,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new fle,i._tempDisplayObject=new lb,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return Uc.target=null,Uc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(Uc,n,null,!0),Uc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(jt.system.add(this.tickerUpdate,this,Yn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(jt.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=$c),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},t}(Ms);/*! +***************************************************************************** */var Sy=function(e,t){return Sy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Sy(e,t)};function fle(e,t){Sy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var XR=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),Af=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,r){r?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),hle=function(){function e(){this._tempPoint=new Ce}return e.prototype.recursiveFindHit=function(t,r,n,i,o){var a;if(!r||!r.visible)return!1;var s=t.data.global;o=r.interactive||o;var u=!1,l=o,c=!0;if(r.hitArea)i&&(r.worldTransform.applyInverse(s,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(i=!1,c=!1)),l=!1;else if(r._mask&&i){var f=r._mask.isMaskData?r._mask.maskObject:r._mask;f&&!(!((a=f.containsPoint)===null||a===void 0)&&a.call(f,s))&&(i=!1)}if(c&&r.interactiveChildren&&r.children)for(var h=r.children,d=h.length-1;d>=0;d--){var v=h[d],g=this.recursiveFindHit(t,v,n,i,l);if(g){if(!v.parent)continue;l=!1,g&&(t.target&&(i=!1),u=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(s)&&(u=!0),r.interactive&&(u&&!t.target&&(t.target=r),n&&n(t,r,!!u))),u},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),YR={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};xt.mixin(YR);var $c=1,Uc={target:null,data:{global:null}},KR=function(e){fle(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new by,i.mouse.identifier=$c,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[$c]=i.mouse,i.interactionDataPool=[],i.eventData=new XR,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new hle,i._tempDisplayObject=new lb,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return Uc.target=null,Uc.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(Uc,n,null,!0),Uc.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(jt.system.add(this.tickerUpdate,this,Yn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(jt.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime0&&(s=r.composedPath()[0]);for(var u=s!==this.interactionDOMElement?"outside":"",l=0;l"u"&&(a.button=r.touches.length?1:0),typeof a.buttons>"u"&&(a.buttons=r.touches.length?1:0),typeof a.isPrimary>"u"&&(a.isPrimary=r.touches.length===1&&r.type==="touchstart"),typeof a.width>"u"&&(a.width=a.radiusX||1),typeof a.height>"u"&&(a.height=a.radiusY||1),typeof a.tiltX>"u"&&(a.tiltX=0),typeof a.tiltY>"u"&&(a.tiltY=0),typeof a.pointerType>"u"&&(a.pointerType="touch"),typeof a.pointerId>"u"&&(a.pointerId=a.identifier||0),typeof a.pressure>"u"&&(a.pressure=a.force||.5),typeof a.twist>"u"&&(a.twist=0),typeof a.tangentialPressure>"u"&&(a.tangentialPressure=0),typeof a.layerX>"u"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY>"u"&&(a.layerY=a.offsetY=a.clientY),a.isNormalized=!0,n.push(a)}else if(!globalThis.MouseEvent||r instanceof MouseEvent&&(!this.supportsPointerEvents||!(r instanceof globalThis.PointerEvent))){var s=r;typeof s.isPrimary>"u"&&(s.isPrimary=!0),typeof s.width>"u"&&(s.width=1),typeof s.height>"u"&&(s.height=1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="mouse"),typeof s.pointerId>"u"&&(s.pointerId=$c),typeof s.pressure>"u"&&(s.pressure=.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),s.isNormalized=!0,n.push(s)}else n.push(r);return n},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Ye.RendererPlugin,Ye.CanvasRendererPlugin]},t}(Fs);/*! * @pixi/extract - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/extract is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var hle=new Ie,dle=4,ZI=function(){function e(t){this.renderer=t}return e.prototype.image=function(t,r,n){var i=new Image;return i.src=this.base64(t,r,n),i},e.prototype.base64=function(t,r,n){return this.canvas(t).toDataURL(r,n)},e.prototype.canvas=function(t,r){var n=this._rawPixels(t,r),i=n.pixels,o=n.width,a=n.height,s=n.flipY,u=new vy(o,a,1),l=u.context.getImageData(0,0,o,a);if(e.arrayPostDivide(i,l.data),u.context.putImageData(l,0,0),s){var c=new vy(u.width,u.height,1);c.context.scale(1,-1),c.context.drawImage(u.canvas,0,-a),u.destroy(),u=c}return u.canvas},e.prototype.pixels=function(t,r){var n=this._rawPixels(t,r).pixels;return e.arrayPostDivide(n,n),n},e.prototype._rawPixels=function(t,r){var n=this.renderer,i,o=!1,a,s=!1;if(t)if(t instanceof uo)a=t;else{var u=n.context.webGLVersion>=2?n.multisample:st.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==st.NONE){var l=uo.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=hle,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(dle*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n=2?n.multisample:st.NONE;if(a=this.renderer.generateTexture(t,{multisample:u}),u!==st.NONE){var l=uo.create({width:a.width,height:a.height});n.framebuffer.bind(a.framebuffer),n.framebuffer.blit(l.framebuffer),n.framebuffer.bind(null),a.destroy(!0),a=l}s=!0}a?(i=a.baseTexture.resolution,r=r??a.frame,o=!1,n.renderTexture.bind(a)):(i=n.resolution,r||(r=dle,r.width=n.width,r.height=n.height),o=!0,n.renderTexture.bind(null));var c=Math.round(r.width*i),f=Math.round(r.height*i),h=new Uint8Array(ple*c*f),d=n.gl;return d.readPixels(Math.round(r.x*i),Math.round(r.y*i),c,f,d.RGBA,d.UNSIGNED_BYTE,h),s&&a.destroy(!0),{pixels:h,width:c,height:f,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,r){for(var n=0;n"u"&&(mm=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),mm&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?gC:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===ple&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=gC:n===mle&&(n=vle);var i=n/100|0;if(i===gle)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,zc||(zc=document.createElement("a")),zc.href=t;var n=QI(zc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(mt||(mt={}));function go(){}function yle(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o"u"&&(mm=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),mm&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,r){this._flags=r?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var r=this.metadata.mimeType,n=0;n"u"?gC:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(r=t.responseText),n===vle&&(r.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=gC:n===gle&&(n=mle);var i=n/100|0;if(i===yle)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,zc||(zc=document.createElement("a")),zc.href=t;var n=QR(zc.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(mt||(mt={}));function go(){}function _le(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Nl[n],v=0;v1?f:d,levelHeight:i>1?h:p,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),p=h+a-1&~(a-1),g=d*p*Nl[n];return l},t}(rN),nN=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===mt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,D=0;D<_;D++)b.push(new Uint8Array(e,z,R)),z+=R}return b.map(function(q){return new Ch(q,{format:x,width:o,height:i,levels:a})})}throw u&Nle?new Error("DDSParser does not support uncompressed texture data."):u&Lle?new Error("DDSParser does not supported YUV uncompressed texture data."):u&Mle?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&Rle?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var Oi,si,fu,bC=[171,75,84,88,32,49,49,187,13,10,26,10],zle=67305985,pn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},Ty=64,Cy=(Oi={},Oi[fe.UNSIGNED_BYTE]=1,Oi[fe.UNSIGNED_SHORT]=2,Oi[fe.INT]=4,Oi[fe.UNSIGNED_INT]=4,Oi[fe.FLOAT]=4,Oi[fe.HALF_FLOAT]=8,Oi),aN=(si={},si[Z.RGBA]=4,si[Z.RGB]=3,si[Z.RG]=2,si[Z.RED]=1,si[Z.LUMINANCE]=1,si[Z.LUMINANCE_ALPHA]=2,si[Z.ALPHA]=1,si),sN=(fu={},fu[fe.UNSIGNED_SHORT_4_4_4_4]=2,fu[fe.UNSIGNED_SHORT_5_5_5_1]=2,fu[fe.UNSIGNED_SHORT_5_6_5]=2,fu);function uN(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!Hle(e,n))return null;var i=n.getUint32(pn.ENDIANNESS,!0)===zle,o=n.getUint32(pn.GL_TYPE,i),a=n.getUint32(pn.GL_FORMAT,i),s=n.getUint32(pn.GL_INTERNAL_FORMAT,i),u=n.getUint32(pn.PIXEL_WIDTH,i),l=n.getUint32(pn.PIXEL_HEIGHT,i)||1,c=n.getUint32(pn.PIXEL_DEPTH,i)||1,f=n.getUint32(pn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(pn.NUMBER_OF_FACES,i),d=n.getUint32(pn.NUMBER_OF_MIPMAP_LEVELS,i),p=n.getUint32(pn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,v=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?Cy[o]?b=Cy[o]*aN[a]:b=sN[o]:b=Nl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?Wle(n,p,i):null,T=x*b,R=T,A=u,P=l,D=m,F=y,H=Ty+p,re=0;re1||o!==0?A:D,levelHeight:d>1||o!==0?P:F,levelBuffer:new Uint8Array(t,q,R)},q+=R}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,D=A+g-1&~(g-1),F=P+v-1&~(v-1),R=D*F*b}return o!==0?{uncompressed:_.map(function(me){var Q=me[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)),{resource:new aa(Q,{width:me[0].levelWidth,height:me[0].levelHeight}),type:o,format:L?Vle(a):a}}),kvData:w}:{compressed:_.map(function(me){return new Ch(null,{format:s,width:u,height:l,levels:d,levelBuffers:me})}),kvData:w}}function Hle(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;u0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*Nl[n],p=0;p1?f:d,levelHeight:i>1?h:v,levelBuffer:new Uint8Array(r.buffer,c,g)},c+=g,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),v=h+a-1&~(a-1),g=d*v*Nl[n];return l},t}(rN),nN=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===mt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,P=P>>>1}for(var z=w,F=0;F<_;F++)b.push(new Uint8Array(e,z,k)),z+=k}return b.map(function(q){return new Ch(q,{format:x,width:o,height:i,levels:a})})}throw u&Lle?new Error("DDSParser does not support uncompressed texture data."):u&Mle?new Error("DDSParser does not supported YUV uncompressed texture data."):u&Fle?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&Rle?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var Oi,si,hu,bC=[171,75,84,88,32,49,49,187,13,10,26,10],Hle=67305985,dn={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},Ty=64,Cy=(Oi={},Oi[fe.UNSIGNED_BYTE]=1,Oi[fe.UNSIGNED_SHORT]=2,Oi[fe.INT]=4,Oi[fe.UNSIGNED_INT]=4,Oi[fe.FLOAT]=4,Oi[fe.HALF_FLOAT]=8,Oi),aN=(si={},si[Z.RGBA]=4,si[Z.RGB]=3,si[Z.RG]=2,si[Z.RED]=1,si[Z.LUMINANCE]=1,si[Z.LUMINANCE_ALPHA]=2,si[Z.ALPHA]=1,si),sN=(hu={},hu[fe.UNSIGNED_SHORT_4_4_4_4]=2,hu[fe.UNSIGNED_SHORT_5_5_5_1]=2,hu[fe.UNSIGNED_SHORT_5_6_5]=2,hu);function uN(e,t,r){r===void 0&&(r=!1);var n=new DataView(t);if(!Vle(e,n))return null;var i=n.getUint32(dn.ENDIANNESS,!0)===Hle,o=n.getUint32(dn.GL_TYPE,i),a=n.getUint32(dn.GL_FORMAT,i),s=n.getUint32(dn.GL_INTERNAL_FORMAT,i),u=n.getUint32(dn.PIXEL_WIDTH,i),l=n.getUint32(dn.PIXEL_HEIGHT,i)||1,c=n.getUint32(dn.PIXEL_DEPTH,i)||1,f=n.getUint32(dn.NUMBER_OF_ARRAY_ELEMENTS,i)||1,h=n.getUint32(dn.NUMBER_OF_FACES,i),d=n.getUint32(dn.NUMBER_OF_MIPMAP_LEVELS,i),v=n.getUint32(dn.BYTES_OF_KEY_VALUE_DATA,i);if(l===0||c!==1)throw new Error("Only 2D textures are supported");if(h!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(f!==1)throw new Error("WebGL does not support array textures");var g=4,p=4,m=u+3&-4,y=l+3&-4,_=new Array(f),x=u*l;o===0&&(x=m*y);var b;if(o!==0?Cy[o]?b=Cy[o]*aN[a]:b=sN[o]:b=Nl[s],b===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var w=r?qle(n,v,i):null,T=x*b,k=T,A=u,P=l,F=m,D=y,H=Ty+v,re=0;re1||o!==0?A:F,levelHeight:d>1||o!==0?P:D,levelBuffer:new Uint8Array(t,q,k)},q+=k}H+=z+4,H=H%4!==0?H+4-H%4:H,A=A>>1||1,P=P>>1||1,F=A+g-1&~(g-1),D=P+p-1&~(p-1),k=F*D*b}return o!==0?{uncompressed:_.map(function(me){var Q=me[0].levelBuffer,L=!1;return o===fe.FLOAT?Q=new Float32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4):o===fe.UNSIGNED_INT?(L=!0,Q=new Uint32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)):o===fe.INT&&(L=!0,Q=new Int32Array(me[0].levelBuffer.buffer,me[0].levelBuffer.byteOffset,me[0].levelBuffer.byteLength/4)),{resource:new aa(Q,{width:me[0].levelWidth,height:me[0].levelHeight}),type:o,format:L?Wle(a):a}}),kvData:w}:{compressed:_.map(function(me){return new Ch(null,{format:s,width:u,height:l,levels:d,levelBuffers:me})}),kvData:w}}function Vle(e,t){for(var r=0;rt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;us&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Gt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengths&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=ce.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Gt(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengthi&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=ob(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=oI(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,p=0,g=0;po&&(v=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,p,v);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?Kd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Ye.RendererPlugin},t}(nc);/*! +`,hN=function(e){fN(t,e);function t(r){var n=e.call(this,r)||this;return n.shader=null,n.properties=null,n.tempMatrix=new Pt,n.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:n.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:n.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:n.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:n.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:fe.UNSIGNED_BYTE,uploadFunction:n.uploadTint,offset:0}],n.shader=xi.from(Kle,Yle,{}),n.state=vo.for2d(),n}return t.prototype.render=function(r){var n=r.children,i=r._maxSize,o=r._batchSize,a=this.renderer,s=n.length;if(s!==0){s>i&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=ob(r.blendMode,c),a.state.set(this.state);var f=a.gl,h=r.worldTransform.copyTo(this.tempMatrix);h.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=oR(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,c),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var d=!1,v=0,g=0;vo&&(p=o),g>=u.length&&u.push(this._generateOneMoreBuffer(r));var m=u[g];m.uploadDynamic(n,v,p);var y=r._bufferUpdateIDs[g]||0;d=d||m._updateID0,f=l.alpha,h=f<1&&c?Kd(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Ye.RendererPlugin},t}(nc);/*! * @pixi/graphics - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/graphics is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Dn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Dn||(Dn={}));var gi;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(gi||(gi={}));var fs={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},Bb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** + */var Mn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Mn||(Mn={}));var gi;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(gi||(gi={}));var hs={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},Bb=function(){function e(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=de.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -805,7 +805,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ay=function(e,t){return Ay=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ay(e,t)};function jb(e,t){Ay(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function wC(e,t){var r,n;t===void 0&&(t=!1);var i=e.length;if(!(i<6)){for(var o=0,a=0,s=e[i-2],u=e[i-1];a0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){wC(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),p=d*8+(i?4:0)+(o?4:0);if(t.length=p,p!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,v=d*4+(i?2:0)+2,m=v,y=p;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--v]=T,t[--v]=w,o){var R=n-x;t[m++]=w,t[m++]=R,t[--y]=R,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,p=Math.abs(d),g=Math.sqrt(u*u+l*l),v=(15*p*Math.sqrt(g)/Math.PI>>0)+1,m=d/v;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Dn.ROUND?p+=yo(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4:p+=2,h.push(b-D*q,w-F*q),h.push(b+D*z,w+F*z));continue}var ge=(-A+_)*(-P+w)-(-A+b)*(-P+x),be=(-D+T)*(-F+w)-(-D+b)*(-F+R),Se=(Ue*be-Q*ge)/ee,Ge=(L*ge-me*be)/ee,Ve=(Se-b)*(Se-b)+(Ge-w)*(Ge-w),Je=b+(Se-b)*z,Oe=w+(Ge-w)*z,Fe=b-(Se-b)*q,We=w-(Ge-w)*q,we=Math.min(Ue*Ue+me*me,Q*Q+L*L),lt=ae?z:q,er=we+lt*lt*m,Ne=Ve<=er;Ne?o.join===Dn.BEVEL||Ve/m>y?(ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),h.push(Je,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),h.push(b-D*z,w-F*z),h.push(Fe,We)),p+=2):o.join===Dn.ROUND?ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),p+=yo(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+4,h.push(Je,Oe),h.push(b+D*q,w+F*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),p+=yo(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+4,h.push(b-D*z,w-F*z),h.push(Fe,We)):(h.push(Je,Oe),h.push(Fe,We)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Dn.ROUND?ae?p+=yo(b,w,b+A*q,w+P*q,b+D*q,w+F*q,h,!0)+2:p+=yo(b,w,b-A*z,w-P*z,b-D*z,w-F*z,h,!1)+2:o.join===Dn.MITER&&Ve/m<=y&&(ae?(h.push(Fe,We),h.push(Fe,We)):(h.push(Je,Oe),h.push(Je,Oe)),p+=2),h.push(b-D*z,w-F*z),h.push(b+D*q,w+F*q),p+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=v,P*=v,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===gi.ROUND?p+=yo(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===gi.SQUARE&&(p+=EC(b,w,A,P,z,q,!1,h)));for(var hr=t.indices,Pn=fs.epsilon*fs.epsilon,le=g;leh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=fs._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/kl)*40),h=c/(f*2),d=h*2,p=Math.cos(h),g=Math.sin(h),v=f-1,m=v%1/v,y=0;y<=v;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((p*b+g*w)*o+n,(p*-w+g*b)*o+i)}},e}(),vN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,p=0,g=0,v=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,p=1-f,g=p*p,v=g*p,m=v*t+3*g*f*n+3*p*h*o+d*s,y=v*r+3*g*f*i+3*p*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=fs._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,p=0,g=0;s.push(u,l);for(var v=1,m=0;v<=c;++v)m=v/c,f=1-m,h=f*f,d=h*f,p=m*m,g=p*m,s.push(d*u+3*h*m*t+3*f*p*n+g*o,d*l+3*h*m*r+3*f*p*i+g*a)},e}(),mN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,p=2*Math.sqrt(f+h+d),g=Math.sqrt(f),v=2*f*g,m=2*Math.sqrt(d),y=h/g;return(v*p+g*h*(p-m)+(4*d*f-h*h)*Math.log((2*g+y+p)/(y+m)))/(4*v)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=fs._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),gN=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),_o,Pf=(_o={},_o[Rt.POLY]=$b,_o[Rt.CIRC]=Ll,_o[Rt.ELIP]=Ll,_o[Rt.RECT]=dN,_o[Rt.RREC]=pN,_o),Ry=[],Tu=[],Iy=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),_a=new Ce,yN=function(e){jb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new Rl,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new Iy(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new Iy(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=Tu.pop(),a||(a=new wh,a.texArray=new Eh),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),v.touched=1,v._batchEnabled=r,v._batchLocation=s,v.wrapMode=bn.REPEAT,a.texArray.elements[a.texArray.count++]=v,s++)),a.size+=d.size,h+=d.size,l=v._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Re._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=Kd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Xu,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Xu,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),mN.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),vN.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=ky.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,p=u.anticlockwise;this.arc(l,c,f,h,d,p)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=kl:s&&o<=a&&(o+=kl);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),p=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Ie(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new pI(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new hI(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new dI(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){wC(r,!1);for(var a=[],s=0;s=0&&s>=0&&i>=0&&o>=0)){t.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),v=d*8+(i?4:0)+(o?4:0);if(t.length=v,v!==0){if(d===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}var g=0,p=d*4+(i?2:0)+2,m=p,y=v;{var _=i+a,x=o,b=r+_,w=r-_,T=n+x;if(t[g++]=b,t[g++]=T,t[--p]=T,t[--p]=w,o){var k=n-x;t[m++]=w,t[m++]=k,t[--y]=k,t[--y]=b}}for(var A=1;Af&&(f+=Math.PI*2);var h=c,d=f-c,v=Math.abs(d),g=Math.sqrt(u*u+l*l),p=(15*v*Math.sqrt(g)/Math.PI>>0)+1,m=d/p;if(h+=m,s){a.push(e,t),a.push(r,n);for(var y=1,_=h;y=0&&(o.join===Mn.ROUND?v+=yo(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4:v+=2,h.push(b-F*q,w-D*q),h.push(b+F*z,w+D*z));continue}var ge=(-A+_)*(-P+w)-(-A+b)*(-P+x),be=(-F+T)*(-D+w)-(-F+b)*(-D+k),Se=(Ue*be-Q*ge)/ee,Ge=(L*ge-me*be)/ee,Ve=(Se-b)*(Se-b)+(Ge-w)*(Ge-w),Je=b+(Se-b)*z,Oe=w+(Ge-w)*z,Fe=b-(Se-b)*q,We=w-(Ge-w)*q,we=Math.min(Ue*Ue+me*me,Q*Q+L*L),lt=ae?z:q,er=we+lt*lt*m,Ne=Ve<=er;Ne?o.join===Mn.BEVEL||Ve/m>y?(ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),h.push(Je,Oe),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),h.push(b-F*z,w-D*z),h.push(Fe,We)),v+=2):o.join===Mn.ROUND?ae?(h.push(Je,Oe),h.push(b+A*q,w+P*q),v+=yo(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+4,h.push(Je,Oe),h.push(b+F*q,w+D*q)):(h.push(b-A*z,w-P*z),h.push(Fe,We),v+=yo(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+4,h.push(b-F*z,w-D*z),h.push(Fe,We)):(h.push(Je,Oe),h.push(Fe,We)):(h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),o.join===Mn.ROUND?ae?v+=yo(b,w,b+A*q,w+P*q,b+F*q,w+D*q,h,!0)+2:v+=yo(b,w,b-A*z,w-P*z,b-F*z,w-D*z,h,!1)+2:o.join===Mn.MITER&&Ve/m<=y&&(ae?(h.push(Fe,We),h.push(Fe,We)):(h.push(Je,Oe),h.push(Je,Oe)),v+=2),h.push(b-F*z,w-D*z),h.push(b+F*q,w+D*q),v+=2)}_=n[(d-2)*2],x=n[(d-2)*2+1],b=n[(d-1)*2],w=n[(d-1)*2+1],A=-(x-w),P=_-b,H=Math.sqrt(A*A+P*P),A/=H,P/=H,A*=p,P*=p,h.push(b-A*z,w-P*z),h.push(b+A*q,w+P*q),u||(o.cap===gi.ROUND?v+=yo(b-A*(z-q)*.5,w-P*(z-q)*.5,b-A*z,w-P*z,b+A*q,w+P*q,h,!1)+2:o.cap===gi.SQUARE&&(v+=EC(b,w,A,P,z,q,!1,h)));for(var hr=t.indices,An=hs.epsilon*hs.epsilon,le=g;leh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=hs._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/kl)*40),h=c/(f*2),d=h*2,v=Math.cos(h),g=Math.sin(h),p=f-1,m=p%1/p,y=0;y<=p;++y){var _=y+m*y,x=h+a+d*_,b=Math.cos(x),w=-Math.sin(x);l.push((v*b+g*w)*o+n,(v*-w+g*b)*o+i)}},e}(),vN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,v=0,g=0,p=0,m=0,y=0,_=0,x=0,b=t,w=r,T=1;T<=l;++T)f=T/l,h=f*f,d=h*f,v=1-f,g=v*v,p=g*v,m=p*t+3*g*f*n+3*v*h*o+d*s,y=p*r+3*g*f*i+3*v*h*a+d*u,_=b-m,x=w-y,b=m,w=y,c+=Math.sqrt(_*_+x*x);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=hs._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,v=0,g=0;s.push(u,l);for(var p=1,m=0;p<=c;++p)m=p/c,f=1-m,h=f*f,d=h*f,v=m*m,g=v*m,s.push(d*u+3*h*m*t+3*f*v*n+g*o,d*l+3*h*m*r+3*f*v*i+g*a)},e}(),mN=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,v=2*Math.sqrt(f+h+d),g=Math.sqrt(f),p=2*f*g,m=2*Math.sqrt(d),y=h/g;return(p*v+g*h*(v-m)+(4*d*f-h*h)*Math.log((2*g+y+v)/(y+m)))/(4*p)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=hs._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),gN=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),_o,Pf=(_o={},_o[It.POLY]=$b,_o[It.CIRC]=Ll,_o[It.ELIP]=Ll,_o[It.RECT]=dN,_o[It.RREC]=pN,_o),Iy=[],Cu=[],Ry=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),_a=new Ce,yN=function(e){jb(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new Il,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new Ry(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new Ry(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(i=this.batches[this.batches.length-1],o=i.style);for(var a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&_===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=_?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=Cu.pop(),a||(a=new wh,a.texArray=new Eh),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),p.touched=1,p._batchEnabled=r,p._batchLocation=s,p.wrapMode=xn.REPEAT,a.texArray.elements[a.texArray.count++]=p,s++)),a.size+=d.size,h+=d.size,l=p._batchLocation,this.addColors(i,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}Ie._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=Kd(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Xu,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Xu,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),mN.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),vN.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=ky.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,v=u.anticlockwise;this.arc(l,c,f,h,d,v)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=kl:s&&o<=a&&(o+=kl);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),v=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Re(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new pR(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new hR(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new dR(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d=o&&hu.x=a&&hu.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||de.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(gr);/*! +***************************************************************************** */var Ny=function(e,t){return Ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ny(e,t)};function tce(e,t){Ny(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var du=new Ce,rce=new Uint16Array([0,1,2,0,2,3]),jn=function(e){tce(t,e);function t(r){var n=e.call(this)||this;return n._anchor=new Bi(n._onAnchorUpdate,n,r?r.defaultAnchor.x:0,r?r.defaultAnchor.y:0),n._texture=null,n._width=0,n._height=0,n._tint=null,n._tintRGB=null,n.tint=16777215,n.blendMode=ce.NORMAL,n._cachedTint=16777215,n.uvs=null,n.texture=r||de.EMPTY,n.vertexData=new Float32Array(8),n.vertexTrimmedData=null,n._transformID=-1,n._textureID=-1,n._transformTrimmedID=-1,n._textureTrimmedID=-1,n.indices=rce,n.pluginName="batch",n.isSprite=!0,n._roundPixels=te.ROUND_PIXELS,n}return t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Fo(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Fo(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){var r=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===r._updateID)){this._textureID!==r._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=r._updateID;var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this.vertexData,f=r.trim,h=r.orig,d=this._anchor,v=0,g=0,p=0,m=0;if(f?(g=f.x-d._x*h.width,v=g+f.width,m=f.y-d._y*h.height,p=m+f.height):(g=-d._x*h.width,v=g+h.width,m=-d._y*h.height,p=m+h.height),c[0]=i*g+a*m+u,c[1]=s*m+o*g+l,c[2]=i*v+a*m+u,c[3]=s*m+o*v+l,c[4]=i*v+a*p+u,c[5]=s*p+o*v+l,c[6]=i*g+a*p+u,c[7]=s*p+o*g+l,this._roundPixels)for(var y=te.RESOLUTION,_=0;_=o&&du.x=a&&du.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||de.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(gr);/*! * @pixi/text - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -843,8 +843,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Ly=function(e,t){return Ly=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ly(e,t)};function rce(e,t){Ly(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var hs;(function(e){e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(hs||(hs={}));var Sm={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:hs.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},nce=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Ko=function(){function e(t){this.styleID=0,this.reset(),Em(this,t,t)}return e.prototype.clone=function(){var t={};return Em(t,this,Sm),new e(t)},e.prototype.reset=function(){Em(this,Sm,Sm)},Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var r=wm(t);this._dropShadowColor!==r&&(this._dropShadowColor=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){var r=wm(t);this._fill!==r&&(this._fill=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){ice(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var r=wm(t);this._stroke!==r&&(this._stroke=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),e.prototype.toFontString=function(){var t=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,r=this.fontFamily;Array.isArray(this.fontFamily)||(r=this.fontFamily.split(","));for(var n=r.length-1;n>=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&nce.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function TC(e){return typeof e=="number"?rb(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function wm(e){if(Array.isArray(e)){for(var t=0;tp)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wp&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=D}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var F=v===g.length-1;s+=e.addLine(m,!F),d=!1,a="",o=0}else x+o>p&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` -`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&v>m&&(y=(m+v)/2);var _=m+g,x=i.lineHeight*(p+1),b=_;p+1=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&ice.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function TC(e){return typeof e=="number"?rb(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function wm(e){if(Array.isArray(e)){for(var t=0;tv)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var b=e.wordWrapSplit(m),w=0;wv&&(s+=e.addLine(a),d=!1,a="",o=0),a+=T,o+=F}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var D=p===g.length-1;s+=e.addLine(m,!D),d=!1,a="",o=0}else x+o>v&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=x)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` +`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var g=0;g0&&p>m&&(y=(m+p)/2);var _=m+g,x=i.lineHeight*(v+1),b=_;v+10},e}();function sce(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&jt.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function SN(e,t){return t instanceof Re?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function pce(e,t){if(!(t instanceof Ml))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i0},e}();function uce(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&jt.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function SN(e,t){return t instanceof Ie?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function vce(e,t){if(!(t instanceof Ml))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i=o&&du.x=a&&du.y=o&&pu.x=a&&pu.y1?xi.from(xce,bce,n):xi.from(CC,_ce,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==bn.CLAMP:l.wrapMode===bn.CLAMP&&(l.wrapMode=bn.REPEAT));var p=d?this.simpleShader:this.shader,g=u.width,v=u.height,m=r._width,y=r._height;Yc.set(f.a*g/m,f.b*g/y,f.c*v/m,f.d*v/y,f.tx/m,f.ty/y),Yc.invert(),d?Yc.prepend(h.mapCoord):(p.uniforms.uMapCoord=h.mapCoord.toArray(!0),p.uniforms.uClampFrame=h.uClampFrame,p.uniforms.uClampOffset=h.uClampOffset),p.uniforms.uTransform=Yc.toArray(!0),p.uniforms.uColor=ab(r.tint,r.worldAlpha,p.uniforms.uColor,c),p.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),p.uniforms.uSampler=u,n.shader.bind(p),n.geometry.bind(i),this.state.blendMode=ob(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Ye.RendererPlugin},t}(nc);/*! +`,Yc=new Pt,ON=function(e){CN(t,e);function t(r){var n=e.call(this,r)||this;return r.runners.contextChange.add(n),n.quad=new yb,n.state=vo.for2d(),n}return t.prototype.contextChange=function(){var r=this.renderer,n={globals:r.globalUniforms};this.simpleShader=xi.from(CC,_ce,n),this.shader=r.context.webGLVersion>1?xi.from(bce,Sce,n):xi.from(CC,xce,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=l.alphaMode>0,f=r.tileTransform.localTransform,h=r.uvMatrix,d=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;d&&(l._glTextures[n.CONTEXT_UID]?d=l.wrapMode!==xn.CLAMP:l.wrapMode===xn.CLAMP&&(l.wrapMode=xn.REPEAT));var v=d?this.simpleShader:this.shader,g=u.width,p=u.height,m=r._width,y=r._height;Yc.set(f.a*g/m,f.b*g/y,f.c*p/m,f.d*p/y,f.tx/m,f.ty/y),Yc.invert(),d?Yc.prepend(h.mapCoord):(v.uniforms.uMapCoord=h.mapCoord.toArray(!0),v.uniforms.uClampFrame=h.uClampFrame,v.uniforms.uClampOffset=h.uClampOffset),v.uniforms.uTransform=Yc.toArray(!0),v.uniforms.uColor=ab(r.tint,r.worldAlpha,v.uniforms.uColor,c),v.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),v.uniforms.uSampler=u,n.shader.bind(v),n.geometry.bind(i),this.state.blendMode=ob(r.blendMode,c),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Ye.RendererPlugin},t}(nc);/*! * @pixi/mesh - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1021,7 +1021,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Fy=function(e,t){return Fy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Fy(e,t)};function Gb(e,t){Fy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var AN=function(){function e(t,r){this.uvBuffer=t,this.uvMatrix=r,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return e.prototype.update=function(t){if(!(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var r=this.uvBuffer.data;(!this.data||this.data.length!==r.length)&&(this.data=new Float32Array(r.length)),this.uvMatrix.multiplyUvs(r,this.data),this._updateID++}},e}(),Tm=new Ce,OC=new Xu,ds=function(e){Gb(t,e);function t(r,n,i,o){o===void 0&&(o=tn.TRIANGLES);var a=e.call(this)||this;return a.geometry=r,a.shader=n,a.state=i||vo.for2d(),a.drawMode=o,a.start=0,a.size=0,a.uvs=null,a.indices=null,a.vertexData=new Float32Array(1),a.vertexDirty=-1,a._transformID=-1,a._roundPixels=te.ROUND_PIXELS,a.batchUvs=null,a}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},set:function(r){this._geometry!==r&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=r,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"material",{get:function(){return this.shader},set:function(r){this.shader=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(r){this.state.blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(r){this._roundPixels!==r&&(this._transformID=-1),this._roundPixels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(r){this.shader.tint=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(r){this.shader.texture=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){var n=this.geometry.buffers[0].data,i=this.shader;i.batchable&&this.drawMode===tn.TRIANGLES&&n.length>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;ab(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(xi),ic=function(e){Gb(t,e);function t(r,n,i){var o=e.call(this)||this,a=new Ct(r),s=new Ct(n,!0),u=new Ct(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Fs);/*! +`,vs=function(e){Gb(t,e);function t(r,n){var i=this,o={uSampler:r,alpha:1,uTextureMatrix:Pt.IDENTITY,uColor:new Float32Array([1,1,1,1])};return n=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},n),n.uniforms&&Object.assign(o,n.uniforms),i=e.call(this,n.program||js.from(Ece,wce),o)||this,i._colorDirty=!1,i.uvMatrix=new tp(r),i.batchable=n.program===void 0,i.pluginName=n.pluginName,i.tint=n.tint,i.alpha=n.alpha,i}return Object.defineProperty(t.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(r){this.uniforms.uSampler!==r&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!r.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=r,this.uvMatrix.texture=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){r!==this._alpha&&(this._alpha=r,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){r!==this._tint&&(this._tint=r,this._tintRGB=(r>>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;ab(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(xi),ic=function(e){Gb(t,e);function t(r,n,i){var o=e.call(this)||this,a=new Ct(r),s=new Ct(n,!0),u=new Ct(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,fe.FLOAT).addAttribute("aTextureCoord",s,2,!1,fe.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Bs);/*! * @pixi/text-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1064,7 +1064,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var By=function(e,t){return By=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},By(e,t)};function Ece(e,t){By(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Dl=function(){function e(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return e}(),PN=function(){function e(){}return e.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},e.parse=function(t){var r=t.match(/^[a-z]+\s+.+$/gm),n={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var i in r){var o=r[i].match(/^[a-z]+/gm)[0],a=r[i].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var u in a){var l=a[u].split("="),c=l[0],f=l[1].replace(/"/gm,""),h=parseFloat(f),d=isNaN(h)?f:h;s[c]=d}n[o].push(s)}var p=new Dl;return n.info.forEach(function(g){return p.info.push({face:g.face,size:parseInt(g.size,10)})}),n.common.forEach(function(g){return p.common.push({lineHeight:parseInt(g.lineHeight,10)})}),n.page.forEach(function(g){return p.page.push({id:parseInt(g.id,10),file:g.file})}),n.char.forEach(function(g){return p.char.push({id:parseInt(g.id,10),page:parseInt(g.page,10),x:parseInt(g.x,10),y:parseInt(g.y,10),width:parseInt(g.width,10),height:parseInt(g.height,10),xoffset:parseInt(g.xoffset,10),yoffset:parseInt(g.yoffset,10),xadvance:parseInt(g.xadvance,10)})}),n.kerning.forEach(function(g){return p.kerning.push({first:parseInt(g.first,10),second:parseInt(g.second,10),amount:parseInt(g.amount,10)})}),n.distanceField.forEach(function(g){return p.distanceField.push({distanceRange:parseInt(g.distanceRange,10),fieldType:g.fieldType})}),p},e}(),Oh=function(){function e(){}return e.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null},e.parse=function(t){for(var r=new Dl,n=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),a=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),u=t.getElementsByTagName("distanceField"),l=0;l")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.parse(r)},e}(),Cm=[PN,Oh,kN];function zb(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,v=null,m=null,y=null,g=0,p=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+p>=h){if(p===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),p=0,_=0;continue}Cce(v,m,T,p,g,s,f);var D=kf(T.text);d.char.push({id:D,page:x.length-1,x:p/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(R-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),p+=(P+2*a)*s,p=Math.ceil(p)}if(!(n!=null&&n.skipKerning))for(var b=0,F=c.length;b")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return Oh.parse(r)},e}(),Cm=[PN,Oh,kN];function zb(e){for(var t=0;t=l-A*s){if(g===0)throw new Error("[BitmapFont] textureHeight "+l+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,p=null,m=null,y=null,g=0,v=0,_=0;continue}if(_=Math.max(A+T.fontProperties.descent,_),P*s+v>=h){if(v===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+f.fontFamily+"', fontSize: "+f.fontSize+"px, char: '"+w+"')"));--b,g+=_*s,g=Math.ceil(g),v=0,_=0;continue}Oce(p,m,T,v,g,s,f);var F=kf(T.text);d.char.push({id:F,page:x.length-1,x:v/s,y:g/s,width:P,height:A,xoffset:0,yoffset:0,xadvance:Math.ceil(k-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),v+=(P+2*a)*s,v=Math.ceil(v)}if(!(n!=null&&n.skipKerning))for(var b=0,D=c.length;b0&&a.x>h&&(++x,Go(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),v=Math.max(v,_),m++,a.x=0,a.y+=n.lineHeight,p=null,w=0)}}var F=f[f.length-1];F!=="\r"&&F!==` -`&&(/(?:\s)/.test(F)&&(g=_),u.push(g),v=Math.max(v,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=v-u[T]:this._align==="center"?re=(v-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(v-u[T])/l[T]),H.push(re)}var z=s.length,q={},le=[],Ue=this._activePagesMeshData;d.push.apply(d,Ue);for(var T=0;T6*Se)||L.vertices.length0&&a.x>h&&(++x,Go(s,1+y-x,1+T-y),T=y,y=-1,u.push(_),l.push(s.length>0?s[s.length-1].prevSpaces:0),p=Math.max(p,_),m++,a.x=0,a.y+=n.lineHeight,v=null,w=0)}}var D=f[f.length-1];D!=="\r"&&D!==` +`&&(/(?:\s)/.test(D)&&(g=_),u.push(g),p=Math.max(p,g),l.push(-1));for(var H=[],T=0;T<=m;T++){var re=0;this._align==="right"?re=p-u[T]:this._align==="center"?re=(p-u[T])/2:this._align==="justify"&&(re=l[T]<0?0:(p-u[T])/l[T]),H.push(re)}var z=s.length,q={},le=[],Ue=this._activePagesMeshData;d.push.apply(d,Ue);for(var T=0;T6*Se)||L.vertices.length=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` -`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var Fl=function(e){LN(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=Lce(a,r),l=Fce(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,Kr.CLEAR);for(var c=1;c=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` +`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}var Dl=function(e){LN(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=te.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=Mce(a,r),l=Bce(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,Kr.CLEAR);for(var c=1;c>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),p=s*(1-i)-u*o,g=s*(1-i)-u*o,v=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,p,0,0,g,v,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(ve);Gy.prototype.grayscale=Gy.prototype.greyscale;/*! +`,Gy=function(e){$ce(t,e);function t(){var r=this,n={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return r=e.call(this,Lb,Uce,n)||this,r.alpha=1,r}return t.prototype._loadMatrix=function(r,n){n===void 0&&(n=!1);var i=r;n&&(this._multiply(i,this.uniforms.m,r),i=this._colorMatrix(i)),this.uniforms.m=i},t.prototype._multiply=function(r,n,i){return r[0]=n[0]*i[0]+n[1]*i[5]+n[2]*i[10]+n[3]*i[15],r[1]=n[0]*i[1]+n[1]*i[6]+n[2]*i[11]+n[3]*i[16],r[2]=n[0]*i[2]+n[1]*i[7]+n[2]*i[12]+n[3]*i[17],r[3]=n[0]*i[3]+n[1]*i[8]+n[2]*i[13]+n[3]*i[18],r[4]=n[0]*i[4]+n[1]*i[9]+n[2]*i[14]+n[3]*i[19]+n[4],r[5]=n[5]*i[0]+n[6]*i[5]+n[7]*i[10]+n[8]*i[15],r[6]=n[5]*i[1]+n[6]*i[6]+n[7]*i[11]+n[8]*i[16],r[7]=n[5]*i[2]+n[6]*i[7]+n[7]*i[12]+n[8]*i[17],r[8]=n[5]*i[3]+n[6]*i[8]+n[7]*i[13]+n[8]*i[18],r[9]=n[5]*i[4]+n[6]*i[9]+n[7]*i[14]+n[8]*i[19]+n[9],r[10]=n[10]*i[0]+n[11]*i[5]+n[12]*i[10]+n[13]*i[15],r[11]=n[10]*i[1]+n[11]*i[6]+n[12]*i[11]+n[13]*i[16],r[12]=n[10]*i[2]+n[11]*i[7]+n[12]*i[12]+n[13]*i[17],r[13]=n[10]*i[3]+n[11]*i[8]+n[12]*i[13]+n[13]*i[18],r[14]=n[10]*i[4]+n[11]*i[9]+n[12]*i[14]+n[13]*i[19]+n[14],r[15]=n[15]*i[0]+n[16]*i[5]+n[17]*i[10]+n[18]*i[15],r[16]=n[15]*i[1]+n[16]*i[6]+n[17]*i[11]+n[18]*i[16],r[17]=n[15]*i[2]+n[16]*i[7]+n[17]*i[12]+n[18]*i[17],r[18]=n[15]*i[3]+n[16]*i[8]+n[17]*i[13]+n[18]*i[18],r[19]=n[15]*i[4]+n[16]*i[9]+n[17]*i[14]+n[18]*i[19]+n[19],r},t.prototype._colorMatrix=function(r){var n=new Float32Array(r);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},t.prototype.brightness=function(r,n){var i=[r,0,0,0,0,0,r,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.tint=function(r,n){var i=r>>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),v=s*(1-i)-u*o,g=s*(1-i)-u*o,p=s*(1-i)+u*o,m=i+s*(1-i),y=[l,c,f,0,0,h,d,v,0,0,g,p,m,0,0,0,0,0,1,0];this._loadMatrix(y,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(ve);Gy.prototype.grayscale=Gy.prototype.greyscale;/*! * @pixi/filter-displacement - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1287,7 +1287,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var zy=function(e,t){return zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zy(e,t)};function Uce(e,t){zy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Gce=`varying vec2 vFilterCoord; +***************************************************************************** */var zy=function(e,t){return zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zy(e,t)};function Gce(e,t){zy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var zce=`varying vec2 vFilterCoord; varying vec2 vTextureCoord; uniform vec2 scale; @@ -1307,7 +1307,7 @@ void main(void) gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw)); } -`,zce=`attribute vec2 aVertexPosition; +`,Hce=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; uniform mat3 filterMatrix; @@ -1336,7 +1336,7 @@ void main(void) vTextureCoord = filterTextureCoord(); vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy; } -`,Hce=function(e){Uce(t,e);function t(r,n){var i=this,o=new Pt;return r.renderable=!1,i=e.call(this,zce,Gce,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Ce(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(ve);/*! +`,Vce=function(e){Gce(t,e);function t(r,n){var i=this,o=new Pt;return r.renderable=!1,i=e.call(this,Hce,zce,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new Ce(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-fxaa - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1355,7 +1355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Hy=function(e,t){return Hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Hy(e,t)};function Vce(e,t){Hy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Wce=` +***************************************************************************** */var Hy=function(e,t){return Hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Hy(e,t)};function Wce(e,t){Hy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qce=` attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1397,7 +1397,7 @@ void main(void) { texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); } -`,qce=`varying vec2 v_rgbNW; +`,Xce=`varying vec2 v_rgbNW; varying vec2 v_rgbNE; varying vec2 v_rgbSW; varying vec2 v_rgbSE; @@ -1518,7 +1518,7 @@ void main() { gl_FragColor = color; } -`,Xce=function(e){Vce(t,e);function t(){return e.call(this,Wce,qce)||this}return t}(ve);/*! +`,Yce=function(e){Wce(t,e);function t(){return e.call(this,qce,Xce)||this}return t}(ve);/*! * @pixi/filter-noise - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1537,7 +1537,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Vy=function(e,t){return Vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Vy(e,t)};function Yce(e,t){Vy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Kce=`precision highp float; +***************************************************************************** */var Vy=function(e,t){return Vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Vy(e,t)};function Kce(e,t){Vy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Zce=`precision highp float; varying vec2 vTextureCoord; varying vec4 vColor; @@ -1571,13 +1571,13 @@ void main() gl_FragColor = color; } -`,Zce=function(e){Yce(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,Lb,Kce,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(ve);/*! +`,Qce=function(e){Kce(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,Lb,Zce,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/mixin-cache-as-bitmap - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var MN=new Pt;xt.prototype._cacheAsBitmap=!1;xt.prototype._cacheData=null;xt.prototype._cacheAsBitmapResolution=null;xt.prototype._cacheAsBitmapMultisample=st.NONE;var Qce=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(xt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new Qce),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});xt.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};xt.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=uo.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=f,Re.addToCache(c.baseTexture,f),de.addToCache(c,f);var h=this.transform.localTransform.copyTo(MN).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new $n(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};xt.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};xt.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=uo.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=s,Re.addToCache(a.baseTexture,s),de.addToCache(a,s);var u=MN;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new $n(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};xt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};xt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};xt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Re.removeFromCache(this._cacheData.textureCacheId),de.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};xt.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! + */var MN=new Pt;xt.prototype._cacheAsBitmap=!1;xt.prototype._cacheData=null;xt.prototype._cacheAsBitmapResolution=null;xt.prototype._cacheAsBitmapMultisample=st.NONE;var Jce=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(xt.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new Jce),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});xt.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};xt.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(te.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=uo.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=f,Ie.addToCache(c.baseTexture,f),de.addToCache(c,f);var h=this.transform.localTransform.copyTo(MN).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new jn(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};xt.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};xt.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(te.RESOLUTION);var a=uo.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+ao();this._cacheData.textureCacheId=s,Ie.addToCache(a.baseTexture,s),de.addToCache(a,s);var u=MN;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new jn(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};xt.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};xt.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};xt.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Ie.removeFromCache(this._cacheData.textureCacheId),de.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};xt.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! * @pixi/mixin-get-child-by-name - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1595,7 +1595,7 @@ void main() * * @pixi/app is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var DN=function(){function e(){}return e.init=function(t){var r=this;Object.defineProperty(this,"resizeTo",{set:function(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){r._resizeTo&&(r.cancelResize(),r._resizeId=requestAnimationFrame(function(){return r.resize()}))},this.cancelResize=function(){r._resizeId&&(cancelAnimationFrame(r._resizeId),r._resizeId=null)},this.resize=function(){if(r._resizeTo){r.cancelResize();var n,i;if(r._resizeTo===globalThis.window)n=globalThis.innerWidth,i=globalThis.innerHeight;else{var o=r._resizeTo,a=o.clientWidth,s=o.clientHeight;n=a,i=s}r.renderer.resize(n,i)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null},e.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e.extension=Ye.Application,e}(),Hb=function(){function e(t){var r=this;this.stage=new gr,t=Object.assign({forceCanvas:!1},t),this.renderer=jI(t),e._plugins.forEach(function(n){n.init.call(r,t)})}return e.registerPlugin=function(t){mr("6.5.0","Application.registerPlugin() is deprecated, use extensions.add()"),ii.add({type:Ye.Application,ref:t})},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,r){var n=this,i=e._plugins.slice(0);i.reverse(),i.forEach(function(o){o.destroy.call(n)}),this.stage.destroy(r),this.stage=null,this.renderer.destroy(t),this.renderer=null},e._plugins=[],e}();ii.handleByList(Ye.Application,Hb._plugins);ii.add(DN);/*! + */var FN=function(){function e(){}return e.init=function(t){var r=this;Object.defineProperty(this,"resizeTo",{set:function(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){r._resizeTo&&(r.cancelResize(),r._resizeId=requestAnimationFrame(function(){return r.resize()}))},this.cancelResize=function(){r._resizeId&&(cancelAnimationFrame(r._resizeId),r._resizeId=null)},this.resize=function(){if(r._resizeTo){r.cancelResize();var n,i;if(r._resizeTo===globalThis.window)n=globalThis.innerWidth,i=globalThis.innerHeight;else{var o=r._resizeTo,a=o.clientWidth,s=o.clientHeight;n=a,i=s}r.renderer.resize(n,i)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null},e.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e.extension=Ye.Application,e}(),Hb=function(){function e(t){var r=this;this.stage=new gr,t=Object.assign({forceCanvas:!1},t),this.renderer=jR(t),e._plugins.forEach(function(n){n.init.call(r,t)})}return e.registerPlugin=function(t){mr("6.5.0","Application.registerPlugin() is deprecated, use extensions.add()"),ii.add({type:Ye.Application,ref:t})},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,r){var n=this,i=e._plugins.slice(0);i.reverse(),i.forEach(function(o){o.destroy.call(n)}),this.stage.destroy(r),this.stage=null,this.renderer.destroy(t),this.renderer=null},e._plugins=[],e}();ii.handleByList(Ye.Application,Hb._plugins);ii.add(FN);/*! * @pixi/mesh-extras - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1614,7 +1614,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Wy=function(e,t){return Wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Wy(e,t)};function js(e,t){Wy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var FN=function(e){js(t,e);function t(r,n,i,o){r===void 0&&(r=100),n===void 0&&(n=100),i===void 0&&(i=10),o===void 0&&(o=10);var a=e.call(this)||this;return a.segWidth=i,a.segHeight=o,a.width=r,a.height=n,a.build(),a}return t.prototype.build=function(){for(var r=this.segWidth*this.segHeight,n=[],i=[],o=[],a=this.segWidth-1,s=this.segHeight-1,u=this.width/a,l=this.height/s,c=0;c0){var p=l.x-r[h].x,g=l.y-r[h].y,v=Math.sqrt(p*p+g*g);l=r[h],u+=v/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(ic),Jce=function(e){js(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new BN(r.height,n,i),s=new ps(r);return i>0&&(r.baseTexture.wrapMode=bn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(ds),jN=function(e){js(t,e);function t(r,n,i){var o=this,a=new FN(r.width,r.height,n,i),s=new ps(de.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(ds),efe=function(e){js(t,e);function t(r,n,i,o,a){r===void 0&&(r=de.EMPTY);var s=this,u=new ic(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new ps(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(ds),Kc=10,tfe=function(e){js(t,e);function t(r,n,i,o,a){n===void 0&&(n=Kc),i===void 0&&(i=Kc),o===void 0&&(o=Kc),a===void 0&&(a=Kc);var s=e.call(this,de.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(jN);/*! +***************************************************************************** */var Wy=function(e,t){return Wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Wy(e,t)};function $s(e,t){Wy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var DN=function(e){$s(t,e);function t(r,n,i,o){r===void 0&&(r=100),n===void 0&&(n=100),i===void 0&&(i=10),o===void 0&&(o=10);var a=e.call(this)||this;return a.segWidth=i,a.segHeight=o,a.width=r,a.height=n,a.build(),a}return t.prototype.build=function(){for(var r=this.segWidth*this.segHeight,n=[],i=[],o=[],a=this.segWidth-1,s=this.segHeight-1,u=this.width/a,l=this.height/s,c=0;c0){var v=l.x-r[h].x,g=l.y-r[h].y,p=Math.sqrt(v*v+g*g);l=r[h],u+=p/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(ic),efe=function(e){$s(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new BN(r.height,n,i),s=new vs(r);return i>0&&(r.baseTexture.wrapMode=xn.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t}(ps),jN=function(e){$s(t,e);function t(r,n,i){var o=this,a=new DN(r.width,r.height,n,i),s=new vs(de.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(ps),tfe=function(e){$s(t,e);function t(r,n,i,o,a){r===void 0&&(r=de.EMPTY);var s=this,u=new ic(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new vs(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t}(ps),Kc=10,rfe=function(e){$s(t,e);function t(r,n,i,o,a){n===void 0&&(n=Kc),i===void 0&&(i=Kc),o===void 0&&(o=Kc),a===void 0&&(a=Kc);var s=e.call(this,de.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(jN);/*! * @pixi/sprite-animated - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * @@ -1633,13 +1633,13 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var qy=function(e,t){return qy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},qy(e,t)};function rfe(e,t){qy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nfe=function(e){rfe(t,e);function t(r,n){n===void 0&&(n=!0);var i=e.call(this,r[0]instanceof de?r[0]:r[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=n,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=r,i}return t.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(jt.shared.remove(this.update,this),this._isConnectedToTicker=!1))},t.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(jt.shared.add(this.update,this,Yn.HIGH),this._isConnectedToTicker=!0))},t.prototype.gotoAndStop=function(r){this.stop();var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(r){var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(r){if(this._playing){var n=this.animationSpeed*r,i=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=n/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var a=Math.sign(this.animationSpeed*r);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0;i--){var o=Math.random()*i>>0,a=r[i];r[i]=r[o],r[o]=a}},t.prototype._randomizeOffsets=function(){for(var r=0;r0?o:0,c=o<0?-o:0;i.fillStyle="rgba("+l+", "+c+", 0, 1)",i.fillRect(0,a>>0,r,u+1>>0),a+=u}n.baseTexture.update(),this.uniforms.displacementMap=n},Object.defineProperty(t.prototype,"sizes",{get:function(){return this._sizes},set:function(r){for(var n=Math.min(this._slices,r.length),i=0;i0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Ce?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(ve);/*! +`,Ah=function(e){Bfe(t,e);function t(r,n,i){r===void 0&&(r=4),n===void 0&&(n=3),i===void 0&&(i=!1);var o=e.call(this,jfe,i?Ufe:$fe)||this;return o._kernels=[],o._blur=4,o._quality=3,o.uniforms.uOffset=new Float32Array(2),o._pixelSize=new Ce,o.pixelSize=1,o._clamp=i,Array.isArray(r)?o.kernels=r:(o._blur=r,o.quality=n),o}return t.prototype.apply=function(r,n,i,o){var a=this._pixelSize.x/n._frame.width,s=this._pixelSize.y/n._frame.height,u;if(this._quality===1||this._blur===0)u=this._kernels[0]+.5,this.uniforms.uOffset[0]=u*a,this.uniforms.uOffset[1]=u*s,r.applyFilter(this,n,i,o);else{for(var l=r.getFilterTexture(),c=n,f=l,h=void 0,d=this._quality-1,v=0;v0)for(var o=r,a=r/n,s=1;s0?(this._kernels=r,this._quality=r.length,this._blur=Math.max.apply(Math,r)):(this._kernels=[0],this._quality=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._pixelSize},set:function(r){typeof r=="number"?(this._pixelSize.x=r,this._pixelSize.y=r):Array.isArray(r)?(this._pixelSize.x=r[0],this._pixelSize.y=r[1]):r instanceof Ce?(this._pixelSize.x=r.x,this._pixelSize.y=r.y):(this._pixelSize.x=1,this._pixelSize.y=1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(r){this._quality=Math.max(1,Math.round(r)),this._generateKernels()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(r){this._blur=r,this._generateKernels()},enumerable:!1,configurable:!0}),t}(ve);/*! * @pixi/filter-advanced-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2423,7 +2423,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Ufe=` +}`,Gfe=` uniform sampler2D uSampler; varying vec2 vTextureCoord; @@ -2444,7 +2444,7 @@ void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } } -`,Gfe=function(e){UN(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,GN,Ufe)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(ve),zfe=`uniform sampler2D uSampler; +`,zfe=function(e){UN(t,e);function t(r){r===void 0&&(r=.5);var n=e.call(this,GN,Gfe)||this;return n.threshold=r,n}return Object.defineProperty(t.prototype,"threshold",{get:function(){return this.uniforms.threshold},set:function(r){this.uniforms.threshold=r},enumerable:!1,configurable:!0}),t}(ve),Hfe=`uniform sampler2D uSampler; varying vec2 vTextureCoord; uniform sampler2D bloomTexture; @@ -2458,7 +2458,7 @@ void main() { bloomColor.rgb *= bloomScale; gl_FragColor = color + bloomColor; } -`;(function(e){UN(t,e);function t(r){var n=e.call(this,GN,zfe)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new Gfe(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new Ah(o):new Ah(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(ve);/*! +`;(function(e){UN(t,e);function t(r){var n=e.call(this,GN,Hfe)||this;n.bloomScale=1,n.brightness=1,n._resolution=te.FILTER_RESOLUTION,typeof r=="number"&&(r={threshold:r});var i=Object.assign(t.defaults,r);n.bloomScale=i.bloomScale,n.brightness=i.brightness;var o=i.kernels,a=i.blur,s=i.quality,u=i.pixelSize,l=i.resolution;return n._extractFilter=new zfe(i.threshold),n._extractFilter.resolution=l,n._blurFilter=o?new Ah(o):new Ah(a,s),n.pixelSize=u,n.resolution=l,n}return t.prototype.apply=function(r,n,i,o,a){var s=r.getFilterTexture();this._extractFilter.apply(r,n,s,1,a);var u=r.getFilterTexture();this._blurFilter.apply(r,s,u,1),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=u,r.applyFilter(this,n,i,o),r.returnFilterTexture(u),r.returnFilterTexture(s)},Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r,this._extractFilter&&(this._extractFilter.resolution=r),this._blurFilter&&(this._blurFilter.resolution=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"threshold",{get:function(){return this._extractFilter.threshold},set:function(r){this._extractFilter.threshold=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kernels",{get:function(){return this._blurFilter.kernels},set:function(r){this._blurFilter.kernels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blurFilter.blur},set:function(r){this._blurFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._blurFilter.quality},set:function(r){this._blurFilter.quality=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelSize",{get:function(){return this._blurFilter.pixelSize},set:function(r){this._blurFilter.pixelSize=r},enumerable:!1,configurable:!0}),t.defaults={threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:te.FILTER_RESOLUTION},t})(ve);/*! * @pixi/filter-ascii - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2477,7 +2477,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var n_=function(e,t){return n_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n_(e,t)};function Hfe(e,t){n_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vfe=`attribute vec2 aVertexPosition; +***************************************************************************** */var n_=function(e,t){return n_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n_(e,t)};function Vfe(e,t){n_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Wfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2488,7 +2488,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Wfe=`varying vec2 vTextureCoord; +}`,qfe=`varying vec2 vTextureCoord; uniform vec4 filterArea; uniform float pixelSize; @@ -2562,7 +2562,7 @@ void main() gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0); } -`;(function(e){Hfe(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,Vfe,Wfe)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){Vfe(t,e);function t(r){r===void 0&&(r=8);var n=e.call(this,Wfe,qfe)||this;return n.size=r,n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.uniforms.pixelSize},set:function(r){this.uniforms.pixelSize=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bevel - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2581,7 +2581,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var i_=function(e,t){return i_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},i_(e,t)};function qfe(e,t){i_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xfe=`attribute vec2 aVertexPosition; +***************************************************************************** */var i_=function(e,t){return i_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},i_(e,t)};function Xfe(e,t){i_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Yfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2592,7 +2592,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Yfe=`precision mediump float; +}`,Kfe=`precision mediump float; varying vec2 vTextureCoord; uniform sampler2D uSampler; @@ -2615,7 +2615,7 @@ void main(void) { color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0)); gl_FragColor = vec4(color.rgb * color.a, color.a); } -`;(function(e){qfe(t,e);function t(r){var n=e.call(this,Xfe,Yfe)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/so},set:function(r){this._angle=r*so,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return un(this.uniforms.lightColor)},set:function(r){Gt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return un(this.uniforms.shadowColor)},set:function(r){Gt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){Xfe(t,e);function t(r){var n=e.call(this,Yfe,Kfe)||this;return n._thickness=2,n._angle=0,n.uniforms.lightColor=new Float32Array(3),n.uniforms.shadowColor=new Float32Array(3),Object.assign(n,{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},r),n.padding=1,n}return t.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._angle/so},set:function(r){this._angle=r*so,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thickness",{get:function(){return this._thickness},set:function(r){this._thickness=r,this._updateTransform()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightColor",{get:function(){return sn(this.uniforms.lightColor)},set:function(r){Gt(r,this.uniforms.lightColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lightAlpha",{get:function(){return this.uniforms.lightAlpha},set:function(r){this.uniforms.lightAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return sn(this.uniforms.shadowColor)},set:function(r){Gt(r,this.uniforms.shadowColor)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this.uniforms.shadowAlpha},set:function(r){this.uniforms.shadowAlpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bloom - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2634,7 +2634,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var o_=function(e,t){return o_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},o_(e,t)};function Kfe(e,t){o_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){Kfe(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Ce?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new Fl(!0,s,n,i,o),a.blurYFilter=new Fl(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new NN,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(ve);/*! +***************************************************************************** */var o_=function(e,t){return o_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},o_(e,t)};function Zfe(e,t){o_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){Zfe(t,e);function t(r,n,i,o){r===void 0&&(r=2),n===void 0&&(n=4),i===void 0&&(i=te.FILTER_RESOLUTION),o===void 0&&(o=5);var a=e.call(this)||this,s,u;return typeof r=="number"?(s=r,u=r):r instanceof Ce?(s=r.x,u=r.y):Array.isArray(r)&&(s=r[0],u=r[1]),a.blurXFilter=new Dl(!0,s,n,i,o),a.blurYFilter=new Dl(!1,u,n,i,o),a.blurYFilter.blendMode=ce.SCREEN,a.defaultFilter=new NN,a}return t.prototype.apply=function(r,n,i,o){var a=r.getFilterTexture();this.defaultFilter.apply(r,n,i,o),this.blurXFilter.apply(r,n,a,1),this.blurYFilter.apply(r,a,i,0),r.returnFilterTexture(a)},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(r){this.blurXFilter.blur=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(r){this.blurYFilter.blur=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-bulge-pinch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2653,7 +2653,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},a_(e,t)};function Zfe(e,t){a_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Qfe=`attribute vec2 aVertexPosition; +***************************************************************************** */var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},a_(e,t)};function Qfe(e,t){a_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Jfe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2664,7 +2664,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Jfe=`uniform float radius; +}`,ehe=`uniform float radius; uniform float strength; uniform vec2 center; uniform sampler2D uSampler; @@ -2697,7 +2697,7 @@ void main() gl_FragColor = color; } -`;(function(e){Zfe(t,e);function t(r){var n=e.call(this,Qfe,Jfe)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(ve);/*! +`;(function(e){Qfe(t,e);function t(r){var n=e.call(this,Jfe,ehe)||this;return n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"radius",{get:function(){return this.uniforms.radius},set:function(r){this.uniforms.radius=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strength",{get:function(){return this.uniforms.strength},set:function(r){this.uniforms.strength=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return this.uniforms.center},set:function(r){this.uniforms.center=r},enumerable:!1,configurable:!0}),t.defaults={center:[.5,.5],radius:100,strength:1},t})(ve);/*! * @pixi/filter-color-map - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2716,7 +2716,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var s_=function(e,t){return s_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},s_(e,t)};function ehe(e,t){s_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var the=`attribute vec2 aVertexPosition; +***************************************************************************** */var s_=function(e,t){return s_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},s_(e,t)};function the(e,t){s_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var rhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2727,7 +2727,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,rhe=`varying vec2 vTextureCoord; +}`,nhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform sampler2D colorMap; uniform float _mix; @@ -2757,7 +2757,7 @@ void main() { } gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a); -}`;(function(e){ehe(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,the,rhe)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof de||(r=de.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Ir.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?Cr.NEAREST:Cr.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Ir.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(ve);/*! +}`;(function(e){the(t,e);function t(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=1);var o=e.call(this,rhe,nhe)||this;return o.mix=1,o._size=0,o._sliceSize=0,o._slicePixelSize=0,o._sliceInnerSize=0,o._nearest=!1,o._scaleMode=null,o._colorMap=null,o._scaleMode=null,o.nearest=n,o.mix=i,o.colorMap=r,o}return t.prototype.apply=function(r,n,i,o){this.uniforms._mix=this.mix,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"colorSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colorMap",{get:function(){return this._colorMap},set:function(r){var n;r&&(r instanceof de||(r=de.from(r)),!((n=r)===null||n===void 0)&&n.baseTexture&&(r.baseTexture.scaleMode=this._scaleMode,r.baseTexture.mipmap=Rr.OFF,this._size=r.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=r),this._colorMap=r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nearest",{get:function(){return this._nearest},set:function(r){this._nearest=r,this._scaleMode=r?Cr.NEAREST:Cr.LINEAR;var n=this._colorMap;n&&n.baseTexture&&(n.baseTexture._glTextures={},n.baseTexture.scaleMode=this._scaleMode,n.baseTexture.mipmap=Rr.OFF,n._updateID++,n.baseTexture.emit("update",n.baseTexture))},enumerable:!1,configurable:!0}),t.prototype.updateColorMap=function(){var r=this._colorMap;r&&r.baseTexture&&(r._updateID++,r.baseTexture.emit("update",r.baseTexture),this.colorMap=r)},t.prototype.destroy=function(r){r===void 0&&(r=!1),this._colorMap&&this._colorMap.destroy(r),e.prototype.destroy.call(this)},t})(ve);/*! * @pixi/filter-color-overlay - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2776,7 +2776,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var u_=function(e,t){return u_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},u_(e,t)};function nhe(e,t){u_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ihe=`attribute vec2 aVertexPosition; +***************************************************************************** */var u_=function(e,t){return u_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},u_(e,t)};function ihe(e,t){u_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ohe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2787,7 +2787,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,ohe=`varying vec2 vTextureCoord; +}`,ahe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 color; uniform float alpha; @@ -2796,7 +2796,7 @@ void main(void) { vec4 currentColor = texture2D(uSampler, vTextureCoord); gl_FragColor = vec4(mix(currentColor.rgb, color.rgb, currentColor.a * alpha), currentColor.a); } -`;(function(e){nhe(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,ihe,ohe)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(Gt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=un(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){ihe(t,e);function t(r,n){r===void 0&&(r=0),n===void 0&&(n=1);var i=e.call(this,ohe,ahe)||this;return i._color=0,i._alpha=1,i.uniforms.color=new Float32Array(3),i.color=r,i.alpha=n,i}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(r){var n=this.uniforms.color;typeof r=="number"?(Gt(r,n),this._color=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._color=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(r){this.uniforms.alpha=r,this._alpha=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2815,7 +2815,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var l_=function(e,t){return l_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},l_(e,t)};function ahe(e,t){l_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var she=`attribute vec2 aVertexPosition; +***************************************************************************** */var l_=function(e,t){return l_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},l_(e,t)};function she(e,t){l_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var uhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2826,7 +2826,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,uhe=`varying vec2 vTextureCoord; +}`,lhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec3 originalColor; uniform vec3 newColor; @@ -2838,7 +2838,7 @@ void main(void) { float doReplace = step(colorDistance, epsilon); gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a); } -`;(function(e){ahe(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,she,uhe)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(Gt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=un(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(Gt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=un(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){she(t,e);function t(r,n,i){r===void 0&&(r=16711680),n===void 0&&(n=0),i===void 0&&(i=.4);var o=e.call(this,uhe,lhe)||this;return o._originalColor=16711680,o._newColor=0,o.uniforms.originalColor=new Float32Array(3),o.uniforms.newColor=new Float32Array(3),o.originalColor=r,o.newColor=n,o.epsilon=i,o}return Object.defineProperty(t.prototype,"originalColor",{get:function(){return this._originalColor},set:function(r){var n=this.uniforms.originalColor;typeof r=="number"?(Gt(r,n),this._originalColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._originalColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newColor",{get:function(){return this._newColor},set:function(r){var n=this.uniforms.newColor;typeof r=="number"?(Gt(r,n),this._newColor=r):(n[0]=r[0],n[1]=r[1],n[2]=r[2],this._newColor=sn(n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"epsilon",{get:function(){return this.uniforms.epsilon},set:function(r){this.uniforms.epsilon=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-convolution - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2857,7 +2857,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var c_=function(e,t){return c_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},c_(e,t)};function lhe(e,t){c_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var che=`attribute vec2 aVertexPosition; +***************************************************************************** */var c_=function(e,t){return c_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},c_(e,t)};function che(e,t){c_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var fhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2868,7 +2868,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,fhe=`precision mediump float; +}`,hhe=`precision mediump float; varying mediump vec2 vTextureCoord; @@ -2897,7 +2897,7 @@ void main(void) gl_FragColor.a = c22.a; } -`;(function(e){lhe(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,che,fhe)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){che(t,e);function t(r,n,i){n===void 0&&(n=200),i===void 0&&(i=200);var o=e.call(this,fhe,hhe)||this;return o.uniforms.texelSize=new Float32Array(2),o.uniforms.matrix=new Float32Array(9),r!==void 0&&(o.matrix=r),o.width=n,o.height=i,o}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.matrix},set:function(r){var n=this;r.forEach(function(i,o){n.uniforms.matrix[o]=i})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return 1/this.uniforms.texelSize[0]},set:function(r){this.uniforms.texelSize[0]=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return 1/this.uniforms.texelSize[1]},set:function(r){this.uniforms.texelSize[1]=1/r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-cross-hatch - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2916,7 +2916,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var f_=function(e,t){return f_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},f_(e,t)};function hhe(e,t){f_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var dhe=`attribute vec2 aVertexPosition; +***************************************************************************** */var f_=function(e,t){return f_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},f_(e,t)};function dhe(e,t){f_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var phe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2927,7 +2927,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,phe=`precision mediump float; +}`,vhe=`precision mediump float; varying vec2 vTextureCoord; @@ -2971,7 +2971,7 @@ void main(void) } } } -`;(function(e){hhe(t,e);function t(){return e.call(this,dhe,phe)||this}return t})(ve);/*! +`;(function(e){dhe(t,e);function t(){return e.call(this,phe,vhe)||this}return t})(ve);/*! * @pixi/filter-crt - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -2990,7 +2990,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var h_=function(e,t){return h_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},h_(e,t)};function vhe(e,t){h_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mhe=`attribute vec2 aVertexPosition; +***************************************************************************** */var h_=function(e,t){return h_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},h_(e,t)};function mhe(e,t){h_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ghe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -3001,7 +3001,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,ghe=`varying vec2 vTextureCoord; +}`,yhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec4 filterArea; @@ -3067,7 +3067,7 @@ void main(void) gl_FragColor.rgb = rgb; } -`;(function(e){vhe(t,e);function t(r){var n=e.call(this,mhe,ghe)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(ve);/*! +`;(function(e){mhe(t,e);function t(r){var n=e.call(this,ghe,yhe)||this;return n.time=0,n.seed=0,n.uniforms.dimensions=new Float32Array(2),Object.assign(n,t.defaults,r),n}return t.prototype.apply=function(r,n,i,o){var a=n.filterFrame,s=a.width,u=a.height;this.uniforms.dimensions[0]=s,this.uniforms.dimensions[1]=u,this.uniforms.seed=this.seed,this.uniforms.time=this.time,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"curvature",{get:function(){return this.uniforms.curvature},set:function(r){this.uniforms.curvature=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return this.uniforms.lineWidth},set:function(r){this.uniforms.lineWidth=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineContrast",{get:function(){return this.uniforms.lineContrast},set:function(r){this.uniforms.lineContrast=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticalLine",{get:function(){return this.uniforms.verticalLine},set:function(r){this.uniforms.verticalLine=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.noise},set:function(r){this.uniforms.noise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noiseSize",{get:function(){return this.uniforms.noiseSize},set:function(r){this.uniforms.noiseSize=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignetting",{get:function(){return this.uniforms.vignetting},set:function(r){this.uniforms.vignetting=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingAlpha",{get:function(){return this.uniforms.vignettingAlpha},set:function(r){this.uniforms.vignettingAlpha=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vignettingBlur",{get:function(){return this.uniforms.vignettingBlur},set:function(r){this.uniforms.vignettingBlur=r},enumerable:!1,configurable:!0}),t.defaults={curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},t})(ve);/*! * @pixi/filter-drop-shadow - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3086,7 +3086,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var d_=function(e,t){return d_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},d_(e,t)};function yhe(e,t){d_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ph=function(){return Ph=Object.assign||function(t){for(var r=arguments,n,i=1,o=arguments.length;i>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(ve);/*! +`;(function(e){Ahe(t,e);function t(r,n,i){r===void 0&&(r=[0,0]),n===void 0&&(n=5),i===void 0&&(i=0);var o=e.call(this,Phe,khe)||this;return o.kernelSize=5,o.uniforms.uVelocity=new Float32Array(2),o._velocity=new Bi(o.velocityChanged,o),o.setVelocity(r),o.kernelSize=n,o.offset=i,o}return t.prototype.apply=function(r,n,i,o){var a=this.velocity,s=a.x,u=a.y;this.uniforms.uKernelSize=s!==0||u!==0?this.kernelSize:0,r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"velocity",{get:function(){return this._velocity},set:function(r){this.setVelocity(r)},enumerable:!1,configurable:!0}),t.prototype.setVelocity=function(r){if(Array.isArray(r)){var n=r[0],i=r[1];this._velocity.set(n,i)}else this._velocity.copyFrom(r)},t.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y,this.padding=(Math.max(Math.abs(this._velocity.x),Math.abs(this._velocity.y))>>0)+1},Object.defineProperty(t.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(r){this.uniforms.uOffset=r},enumerable:!1,configurable:!0}),t})(ve);/*! * @pixi/filter-multi-color-replace - v4.2.0 * Compiled Fri, 05 Aug 2022 19:53:35 UTC * @@ -3355,7 +3355,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var g_=function(e,t){return g_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},g_(e,t)};function khe(e,t){g_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rhe=`attribute vec2 aVertexPosition; +***************************************************************************** */var g_=function(e,t){return g_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},g_(e,t)};function Ihe(e,t){g_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rhe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -3366,7 +3366,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Ihe=`varying vec2 vTextureCoord; +}`,Nhe=`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform float epsilon; @@ -3404,7 +3404,7 @@ void main(void) } } } -`;(function(e){khe(t,e);function t(r,n,i){n===void 0&&(n=.05),i===void 0&&(i=r.length);var o=e.call(this,Rhe,Ihe.replace(/%maxColors%/g,i.toFixed(0)))||this;return o._replacements=[],o._maxColors=0,o.epsilon=n,o._maxColors=i,o.uniforms.originalColors=new Float32Array(i*3),o.uniforms.targetColors=new Float32Array(i*3),o.replacements=r,o}return Object.defineProperty(t.prototype,"replacements",{get:function(){return this._replacements},set:function(r){var n=this.uniforms.originalColors,i=this.uniforms.targetColors,o=r.length;if(o>this._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;athis._maxColors)throw new Error("Length of replacements ("+o+") exceeds the maximum colors length ("+this._maxColors+")");n[o*3]=-1;for(var a=0;ao===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new $N.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new hfe;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new mfe;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new xfe;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new Efe;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new Afe;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new Nfe;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return ade(this,r)}get shockwaveFilter(){return sde(this)}set shockwaveFilter(r){ude(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return cde(this,r)}get radiusAlphaFilter(){return fde(this)}set radiusAlphaFilter(r){hde(this,r)}}window.PIXI=ife;class dde{constructor(){se(this,"currentApp",null);se(this,"effectsContainer");se(this,"frameDuration",16.67);se(this,"notUpdateBacklogEffects",!1);se(this,"figureContainer");se(this,"figureObjects",[]);se(this,"backgroundContainer");se(this,"backgroundObjects",[]);se(this,"stageAnimations",[]);se(this,"assetLoader",new cs);se(this,"loadQueue",[]);se(this,"live2dFigureRecorder",[]);se(this,"lockTransformTarget",[]);se(this,"stageWidth",2560);se(this,"stageHeight",1440);se(this,"MAX_TEX_COUNT",10);const t=new Hb({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),Vb&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new gr,this.effectsContainer.zIndex=3,this.figureContainer=new gr,this.figureContainer.zIndex=2,this.backgroundContainer=new gr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};B.dispatch(Er.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new $n(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),v{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),p=new $n(u);p.scale.x=d,p.scale.y=d,p.anchor.set(.5),p.position.y=this.stageHeight/2;const g=l*d,v=c*d;o.setBaseY(this.stageHeight/2),vf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Qc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const p=f.width,g=f.height,v=this.stageWidth/p,m=this.stageHeight/g,y=Math.max(v,m),_=new $n(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new IC;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Qc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,p;const h=(p=(d=i.resources)==null?void 0:d[r])==null?void 0:p.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,v=h.height,m=this.stageWidth/g,y=this.stageHeight/v,_=Math.min(m,y),x=new $n(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=v*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,p;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const v=o.pixiContainer.children;for(const m of v)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((p=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||p.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){sI()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Om==null||Om(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Om=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),HN={version:"WebGAL 4.4.11",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},pde=navigator.userAgent,Vb=!!pde.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),vde=()=>{ne.info(HN.version),ne.info("Github: https://github.com/OpenWebGAL/WebGAL "),ne.info("Made with ❤ by OpenWebGAL"),Vb&&alert(`iOS 用户请横屏使用以获得最佳体验 + `;super(null,n),this.uniforms.center=[t.x,t.y],this.uniforms.radius=r}set center(t){this.uniforms.center=[t.x,t.y]}get center(){return new Ce(this.uniforms.center[0],this.uniforms.center[1])}set radius(t){console.log(t),this.uniforms.radius=t}get radius(){return this.uniforms.radius}}function fde(e,t){const r=e.containerFilters.get(A_);if(r)return r;if(t){const n=new cde(new Ce(.5,.5),O_);return n.radius=O_,e.addFilter(n),e.containerFilters.set(A_,n),n}}function hde(e){return e.getOrCreateShockwaveFilter(!1)?e.getOrCreateRadiusAlphaFilter().radius:O_}function dde(e,t){if(t===0)e.removeFilter(A_);else{const r=e.getOrCreateRadiusAlphaFilter();r&&(r.radius=t)}}class RC extends gr{constructor(){super();se(this,"containerFilters",new Map);se(this,"baseX",0);se(this,"baseY",0)}addFilter(r){this.filters?this.filters.push(r):this.filters=[r]}removeFilter(r){const n=this.containerFilters.get(r);if(n){const i=((this==null?void 0:this.filters)??[]).findIndex(o=>o===n);this.filters&&(this.filters.splice(i,1),this.containerFilters.delete(r))}}get blur(){return this.getOrCreateBlurFilter().blur}set blur(r){this.getOrCreateBlurFilter().blur=r}get x(){var n;return(((n=super.position)==null?void 0:n.x)??0)-this.baseX}set x(r){super.position&&(super.position.x=r+this.baseX)}get y(){var n;return(((n=super.position)==null?void 0:n.y)??0)-this.baseY}set y(r){super.position&&(super.position.y=r+this.baseY)}setBaseX(r){const n=this.x;this.baseX=r,this.x=n}setBaseY(r){const n=this.y;this.baseY=r,this.y=n}getOrCreateBlurFilter(){const r=this.containerFilters.get("blur");if(r)return r;{const n=new $N.BlurFilter;return n.blur=0,this.addFilter(n),this.containerFilters.set("blur",n),n}}getOrCreateOldFilmFilter(r=!0){const n=this.containerFilters.get("oldFilm");if(n)return n;if(r){const i=new dfe;return this.addFilter(i),this.containerFilters.set("oldFilm",i),i}else return null}get oldFilm(){return this.getOrCreateOldFilmFilter(!1)?1:0}set oldFilm(r){r===0?this.removeFilter("oldFilm"):this.getOrCreateOldFilmFilter()}getOrCreateDotFilter(r=!0){const n=this.containerFilters.get("dotFilm");if(n)return n;if(r){const i=new gfe;return this.addFilter(i),this.containerFilters.set("dotFilm",i),i}else return null}get dotFilm(){return this.getOrCreateDotFilter(!1)?1:0}set dotFilm(r){r===0?this.removeFilter("dotFilm"):this.getOrCreateDotFilter()}getOrCreateReflectionFilter(r=!0){const n=this.containerFilters.get("reflectionFilm");if(n)return n;if(r){const i=new bfe;return this.addFilter(i),this.containerFilters.set("reflectionFilm",i),i}else return null}get reflectionFilm(){return this.getOrCreateReflectionFilter(!1)?1:0}set reflectionFilm(r){r===0?this.removeFilter("reflectionFilm"):this.getOrCreateReflectionFilter()}getOrCreateGlitchFilter(r=!0){const n=this.containerFilters.get("glitchFilm");if(n)return n;if(r){const i=new Tfe;return this.addFilter(i),this.containerFilters.set("glitchFilm",i),i}else return null}get glitchFilm(){return this.getOrCreateGlitchFilter(!1)?1:0}set glitchFilm(r){r===0?this.removeFilter("glitchFilm"):this.getOrCreateGlitchFilter()}getOrCreateRGBSplitFilter(r=!0){const n=this.containerFilters.get("rgbFilm");if(n)return n;if(r){const i=new Pfe;return this.addFilter(i),this.containerFilters.set("rgbFilm",i),i}}get rgbFilm(){return this.getOrCreateRGBSplitFilter(!1)?1:0}set rgbFilm(r){r===0?this.removeFilter("rgbFilm"):this.getOrCreateRGBSplitFilter()}getOrCreateGodrayFilter(r=!0){const n=this.containerFilters.get("godrayFilm");if(n)return n;if(r){const i=new Lfe;return this.addFilter(i),this.containerFilters.set("godrayFilm",i),i}}get godrayFilm(){return this.getOrCreateGodrayFilter(!1)?1:0}set godrayFilm(r){r===0?this.removeFilter("godrayFilm"):this.getOrCreateGodrayFilter()}getOrCreateShockwaveFilter(r=!0){return sde(this,r)}get shockwaveFilter(){return ude(this)}set shockwaveFilter(r){lde(this,r)}getOrCreateRadiusAlphaFilter(r=!0){return fde(this,r)}get radiusAlphaFilter(){return hde(this)}set radiusAlphaFilter(r){dde(this,r)}}window.PIXI=ofe;class pde{constructor(){se(this,"currentApp",null);se(this,"effectsContainer");se(this,"frameDuration",16.67);se(this,"notUpdateBacklogEffects",!1);se(this,"figureContainer");se(this,"figureObjects",[]);se(this,"backgroundContainer");se(this,"backgroundObjects",[]);se(this,"stageAnimations",[]);se(this,"assetLoader",new fs);se(this,"loadQueue",[]);se(this,"live2dFigureRecorder",[]);se(this,"lockTransformTarget",[]);se(this,"stageWidth",2560);se(this,"stageHeight",1440);se(this,"MAX_TEX_COUNT",10);const t=new Hb({backgroundAlpha:0,preserveDrawingBuffer:!0});window.PIXIapp=this,window.__PIXI_APP__=t;const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.view.id="pixiCanvas",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),Vb&&(t.renderer.view.style.zIndex="-5"),t.stage.sortableChildren=!0,this.effectsContainer=new gr,this.effectsContainer.zIndex=3,this.figureContainer=new gr,this.figureContainer.zIndex=2,this.backgroundContainer=new gr,this.backgroundContainer.zIndex=0,t.stage.addChild(this.effectsContainer,this.figureContainer,this.backgroundContainer),this.currentApp=t;const i=()=>{this.updateFps(),setTimeout(i,1e4)};i();const o=()=>{setTimeout(o,500),this.callLoader()};o()}getFigureObjects(){return this.figureObjects}getAllLockedObject(){return this.lockTransformTarget}registerAnimation(t,r,n="default"){var i;t&&(this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"common"}),this.lockStageObject(n),t.setStartState(),(i=this.currentApp)==null||i.ticker.add(t.tickerFunc))}registerPresetAnimation(t,r,n="default",i){var a;if(!t)return;const o=i.find(s=>s.target===n);if(o){const s=this.getStageObjByKey(n);if(s){const u=s.pixiContainer;Object.assign(u,o.transform)}return}this.stageAnimations.push({uuid:Qc(),animationObject:t,key:r,targetKey:n,type:"preset"}),this.lockStageObject(n),t.setStartState(),(a=this.currentApp)==null||a.ticker.add(t.tickerFunc)}stopPresetAnimationOnTarget(t){const r=this.stageAnimations.find(n=>n.targetKey===t&&n.type==="preset");r&&this.removeAnimation(r.key)}removeAnimation(t){var n;const r=this.stageAnimations.findIndex(i=>i.key===t);if(r>=0){const i=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(i.animationObject.tickerFunc),i.animationObject.setEndState(),this.unlockStageObject(i.targetKey??"default"),this.stageAnimations.splice(r,1)}}removeAnimationWithSetEffects(t){var n,i,o;const r=this.stageAnimations.findIndex(a=>a.key===t);if(r>=0){const a=this.stageAnimations[r];(n=this.currentApp)==null||n.ticker.remove(a.animationObject.tickerFunc),a.animationObject.setEndState();const s=((o=(i=a.animationObject).getEndFilterEffect)==null?void 0:o.call(i))??{};if(this.unlockStageObject(a.targetKey??"default"),a.targetKey){const u=this.getStageObjByKey(a.targetKey);if(u){const l={alpha:u.pixiContainer.alpha,scale:{x:u.pixiContainer.scale.x,y:u.pixiContainer.scale.y},position:{x:u.pixiContainer.x,y:u.pixiContainer.y},rotation:u.pixiContainer.rotation,blur:u.pixiContainer.blur,...s};let c={target:a.targetKey,transform:l};B.dispatch(Er.updateEffect(c))}}this.stageAnimations.splice(r,1)}}performMouthSyncAnimation(t,r,n,i){var s;const o=(s=this.getStageObjByKey(t))==null?void 0:s.pixiContainer;if(!o)return;const a={open:r.mouthAnimation.open,half_open:r.mouthAnimation.halfOpen,closed:r.mouthAnimation.close};this.loadAsset(a[n],()=>{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new jn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),p{const u=this.assetLoader.resources[a[n]].texture;if(!u)return;const l=u.width,c=u.height,f=this.stageWidth/l,h=this.stageHeight/c,d=Math.min(f,h),v=new jn(u);v.scale.x=d,v.scale.y=d,v.anchor.set(.5),v.position.y=this.stageHeight/2;const g=l*d,p=c*d;o.setBaseY(this.stageHeight/2),pf.key===t)>=0&&this.removeStageObjectByKey(t),this.backgroundContainer.addChild(i);const s=Qc();this.backgroundObjects.push({uuid:s,key:t,pixiContainer:i,sourceUrl:r});const u=()=>{setTimeout(()=>{var h,d;const f=(d=(h=n.resources)==null?void 0:h[r])==null?void 0:d.texture;if(f&&this.getStageObjByUuid(s)){const v=f.width,g=f.height,p=this.stageWidth/v,m=this.stageHeight/g,y=Math.max(p,m),_=new jn(f);_.scale.x=y,_.scale.y=y,_.anchor.set(.5),_.position.y=this.stageHeight/2,i.setBaseX(this.stageWidth/2),i.setBaseY(this.stageHeight/2),i.pivot.set(0,this.stageHeight/2),i.addChild(_)}},0)};this.cacheGC(),(c=(l=n.resources)==null?void 0:l[r])!=null&&c.texture?u():this.loadAsset(r,u)}addFigure(t,r,n="center"){var c,f;const i=this.assetLoader,o=new RC;this.figureObjects.findIndex(h=>h.key===t)>=0&&this.removeStageObjectByKey(t),this.figureContainer.addChild(o);const u=Qc();this.figureObjects.push({uuid:u,key:t,pixiContainer:o,sourceUrl:r});const l=()=>{setTimeout(()=>{var d,v;const h=(v=(d=i.resources)==null?void 0:d[r])==null?void 0:v.texture;if(h&&this.getStageObjByUuid(u)){const g=h.width,p=h.height,m=this.stageWidth/g,y=this.stageHeight/p,_=Math.min(m,y),x=new jn(h);x.scale.x=_,x.scale.y=_,x.anchor.set(.5),x.position.y=this.stageHeight/2;const b=g*_,w=p*_;o.setBaseY(this.stageHeight/2),ws.key===t),i=this.live2dFigureRecorder.find(s=>s.target===t);if(n&&(i==null?void 0:i.motion)!==r){const u=n.pixiContainer.children;for(const l of u){let c=r,f=0,h=3;const d=(l==null?void 0:l.internalModel)??void 0;(a=(o=d==null?void 0:d.motionManager)==null?void 0:o.stopAllMotions)==null||a.call(o),l.motion(c,f,h)}this.updateL2dMotionByKey(t,r)}}changeModelExpressionByKey(t,r){const n=this.figureObjects.find(o=>o.key===t),i=this.live2dFigureRecorder.find(o=>o.target===t);if(n&&(i==null?void 0:i.expression)!==r){const a=n.pixiContainer.children;for(const s of a)s.expression(r);this.updateL2dExpressionByKey(t,r)}}setModelMouthY(t,r){var a,s,u,l,c,f,h,d,v;function n(g){return g<50?0:(g-50)/50}const i=n(r),o=this.figureObjects.find(g=>g.key===t);if(o){const p=o.pixiContainer.children;for(const m of p)m!=null&&m.internalModel&&((s=(a=m==null?void 0:m.internalModel)==null?void 0:a.coreModel)!=null&&s.setParamFloat&&((c=(l=(u=m==null?void 0:m.internalModel)==null?void 0:u.coreModel)==null?void 0:l.setParamFloat)==null||c.call(l,"PARAM_MOUTH_OPEN_Y",i)),(h=(f=m==null?void 0:m.internalModel)==null?void 0:f.coreModel)!=null&&h.setParameterValueById&&((v=(d=m==null?void 0:m.internalModel)==null?void 0:d.coreModel)==null||v.setParameterValueById("ParamMouthOpenY",i)))}}getStageObjByKey(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.key===t)}getStageObjByUuid(t){return[...this.figureObjects,...this.backgroundObjects].find(r=>r.uuid===t)}getAllStageObj(){return[...this.figureObjects,...this.backgroundObjects]}removeStageObjectByKey(t){const r=this.figureObjects.findIndex(i=>i.key===t),n=this.backgroundObjects.findIndex(i=>i.key===t);if(r>=0){const i=this.figureObjects[r];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.figureContainer.removeChild(i.pixiContainer),this.figureObjects.splice(r,1)}if(n>=0){const i=this.backgroundObjects[n];for(const o of i.pixiContainer.children)o.destroy();i.pixiContainer.destroy(),this.backgroundContainer.removeChild(i.pixiContainer),this.backgroundObjects.splice(n,1)}}cacheGC(){sR()}updateL2dMotionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].motion=r:this.live2dFigureRecorder.push({target:t,motion:r,expression:""})}updateL2dExpressionByKey(t,r){const n=this.live2dFigureRecorder.findIndex(i=>i.target===t);n>=0?this.live2dFigureRecorder[n].expression=r:this.live2dFigureRecorder.push({target:t,motion:"",expression:r})}loadAsset(t,r){this.loadQueue.unshift({url:t,callback:r}),this.callLoader()}callLoader(){if(!this.assetLoader.loading){const t=this.loadQueue.shift();if(t)try{this.assetLoader.resources[t.url]?(t.callback(),this.callLoader()):this.assetLoader.add(t.url).load(()=>{t.callback(),this.callLoader()})}catch(r){ne.fatal("PIXI Loader 故障",r),t.callback(),this.callLoader()}}}updateFps(){Om==null||Om(120).then(t=>{this.frameDuration=1e3/t})}lockStageObject(t){this.lockTransformTarget.push(t)}unlockStageObject(t){const r=this.lockTransformTarget.findIndex(n=>n===t);r>=0&&this.lockTransformTarget.splice(r,1)}}const Om=(()=>{const e=[window.requestAnimationFrame,window.webkitRequestAnimationFrame,window.mozRequestAnimationFrame].find(t=>t);if(!e){console.error("requestAnimationFrame is not supported!");return}return(t=60)=>{if(t<1)throw new Error("targetCount cannot be less than 1.");const r=Date.now();let n=0;return new Promise(i=>{(function o(){e(()=>{if(++n>=t){const a=Date.now()-r,s=n/a*1e3;return i(s)}o()})})()})}})(),HN={version:"WebGAL 4.4.11",contributors:[{username:"Mahiru",link:"https://github.com/MakinoharaShoko"},{username:"Hoshinokinya",link:"https://github.com/hshqwq"},{username:"Junbo Xiong",link:"https://github.com/C6H5-NO2"},{username:"lykl",link:"https://github.com/lykl"},{username:"SakuraSnow",link:"https://github.com/sliyoxn"},{username:"bcqsd",link:"https://github.com/bcqsd"},{username:"Yuji Sakai",link:"https://github.com/generalfreed"},{username:"Iara",link:"https://github.com/labiker"},{username:"22",link:"https://github.com/nini22P"},{username:"德布罗煜",link:"https://github.com/ch1ny"},{username:"Mike Zhou",link:"https://github.com/mikezzb"},{username:"Murasame0721",link:"https://github.com/Murasame0721"},{username:"loliko",link:"https://github.com/loliko114514"},{username:"IdrilK",link:"https://github.com/IdrilK"},{username:"callofblood",link:"https://github.com/callofblood"},{username:"lyle",link:"https://github.com/lylelove"}]},vde=navigator.userAgent,Vb=!!vde.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),mde=()=>{ne.info(HN.version),ne.info("Github: https://github.com/OpenWebGAL/WebGAL "),ne.info("Made with ❤ by OpenWebGAL"),Vb&&alert(`iOS 用户请横屏使用以获得最佳体验 | Please use landscape mode on iOS for the best experience -| iOS ユーザーは横画面での使用をお勧めします`),mde("./game/userStyleSheet.css"),gde(),sre("./game/config.txt");const e=jr("start.txt",Br.scene);ri(e).then(t=>{O.sceneManager.sceneData.currentScene=ni(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=Yl(r);Kl(n)}),O.gameplay.pixiStage=new dde,lre(),cre()};function mde(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function gde(){dl.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)dl.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const yde="_Menu_main_1a7i6_1",_de="_Menu_ShowSoftly_1a7i6_1",xde="_Menu_TagContent_1a7i6_10",NC={Menu_main:yde,Menu_ShowSoftly:_de,Menu_TagContent:xde},bde="_MenuPanel_main_1c9ky_1",Sde="_MenuPanel_button_1c9ky_10",wde="_MenuPanel_button_icon_1c9ky_38",Ede="_MenuPanel_button_hl_1c9ky_44",Da={MenuPanel_main:bde,MenuPanel_button:Sde,MenuPanel_button_icon:wde,MenuPanel_button_hl:Ede};var Tde=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function LC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ade(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Pde={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function kde(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Rde(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var VN=$.createContext(Pde);VN.Provider;function dt(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=Ode(n,Tde),d=$.useContext(VN),p=$.useMemo(kde,[]),g=Rde(p,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),v=[d.prefix+"-icon"];return v.push(d.prefix+"-icon-"+e),t&&d.rtl&&v.push(d.prefix+"-icon-rtl"),f&&v.push(d.prefix+"-icon-spin"),c&&v.push(c),Y.createElement("span",MC(MC({},h),{},{className:v.join(" ")}),r(g))}}const Ide=dt("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),WN=dt("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Nde=dt("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Lde=dt("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Mde=dt("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qN=dt("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Dde=dt("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Fde=dt("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Bde=dt("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),XN=dt("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),jde=dt("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),$de=dt("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Ude=dt("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Gde=dt("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),YN=dt("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),zde=dt("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Hde=dt("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Vde=dt("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Wde=dt("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),KN=dt("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ZN=dt("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),qde=dt("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),Xde=dt("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Yde=dt("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),Kde=e=>{let t;switch(e.iconName){case"save":t=S.jsx(KN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(qN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(ZN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(XN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"exit":t=S.jsx(Ude,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;default:t=S.jsx("div",{})}return t},pu=e=>{const{playSePageChange:t,playSeEnter:r}=_r();let n=Da.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc()},onMouseEnter:r,style:{...e.style,color:e.tagColor},children:[S.jsx("div",{className:Da.MenuPanel_button_icon,children:S.jsx(Kde,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},Wb=()=>{const e=B.dispatch;Dx(),zx(),Ka(),e(Ee({key:"playVocal",value:""})),e(De({component:"showTitle",visibility:!0})),ec(B.getState().GUI.titleBg)},Zde="_GlobalDialog_main_101j8_2",Qde="_showGlobalDialog_101j8_1",Jde="_glabalDialog_container_inner_101j8_17",epe="_glabalDialog_container_101j8_17",tpe="_title_101j8_36",rpe="_button_list_101j8_41",npe="_button_101j8_41",xo={GlobalDialog_main:Zde,showGlobalDialog:Qde,glabalDialog_container_inner:Jde,glabalDialog_container:epe,title:tpe,button_list:rpe,button:npe};function ipe(){const e=ye(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Fo(e){const{playSeClick:t,playSeEnter:r}=Sx();B.dispatch(De({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),DC()},i=()=>{t(),e.rightFunc(),DC()},o=S.jsx("div",{className:xo.GlobalDialog_main,children:S.jsx("div",{className:xo.glabalDialog_container,children:S.jsxs("div",{className:xo.glabalDialog_container_inner,children:[S.jsx("div",{className:xo.title,children:e.title}),S.jsxs("div",{className:xo.button_list,children:[S.jsx("div",{className:xo.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:xo.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{qn.render(o,document.getElementById("globalDialogContainer"))},100)}function DC(){B.dispatch(De({component:"showGlobalDialog",visibility:!1}))}function ope(){B.dispatch(De({component:"showControls",visibility:!0}))}function ape(){B.dispatch(De({component:"showControls",visibility:!1}))}function spe(){B.getState().GUI.showControls===!0?ape():ope()}const upe=()=>{const e=kr("menu."),{playSeClick:t,playSeDialogOpen:r,playSePageChange:n}=_r(),i=ye(g=>g.GUI),o=Ht(),a=i.currentMenuTag===Ze.Save?` ${Da.MenuPanel_button_hl}`:"",s=i.currentMenuTag===Ze.Load?` ${Da.MenuPanel_button_hl}`:"",u=i.currentMenuTag===Ze.Option?` ${Da.MenuPanel_button_hl}`:"",l=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",c=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",f=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)",h=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",d=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",p=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)";return S.jsxs("div",{className:Da.MenuPanel_main,children:[S.jsx(pu,{iconName:"save",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{n(),!i.showTitle&&o(jo(Ze.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(pu,{iconName:"load",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{n(),o(jo(Ze.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(pu,{iconName:"title",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{r(),Fo({title:e("$gaming.buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb(),o(De({component:"showMenuPanel",visibility:!1}))},rightFunc:()=>{}})},tagName:e("title.title")},"titleIcon"),S.jsx(pu,{iconName:"option",style:{marginLeft:"auto"},buttonOnClassName:u,iconColor:p,tagColor:f,clickFunc:()=>{n(),o(jo(Ze.Option))},tagName:e("options.title")},"optionButton"),S.jsx(pu,{iconName:"exit",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{t(),o(De({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},lpe="_Save_Load_main_a3o8b_2",cpe="_Save_Load_top_a3o8b_9",fpe="_Elements_in_a3o8b_1",hpe="_Save_Load_title_a3o8b_17",dpe="_Save_title_text_a3o8b_35",ppe="_Load_title_text_a3o8b_43",vpe="_Save_Load_top_buttonList_a3o8b_51",mpe="_Save_Load_top_button_a3o8b_51",gpe="_Save_Load_top_button_text_a3o8b_69",ype="_Save_Load_top_button_on_a3o8b_80",_pe="_Load_top_button_on_a3o8b_93",xpe="_Load_top_button_a3o8b_93",bpe="_Save_Load_content_a3o8b_106",Spe="_Save_Load_content_element_a3o8b_115",wpe="_Elements_in_transform_a3o8b_1",Epe="_Save_Load_content_element_top_a3o8b_131",Tpe="_Save_Load_content_element_top_index_a3o8b_138",Cpe="_Load_content_elememt_top_index_a3o8b_147",Ope="_Save_Load_content_element_top_date_a3o8b_151",Ape="_Load_content_element_top_date_a3o8b_162",Ppe="_Save_Load_content_text_a3o8b_166",kpe="_Save_Load_content_text_padding_a3o8b_180",Rpe="_Save_Load_content_speaker_a3o8b_184",Ipe="_Load_content_speaker_a3o8b_193",Npe="_Load_content_text_a3o8b_197",Lpe="_Save_Load_content_miniRen_a3o8b_201",Mpe="_Save_Load_content_miniRen_bg_a3o8b_208",Dpe="_Save_Load_content_miniRen_figure_a3o8b_215",Fpe="_Save_Load_content_miniRen_figLeft_a3o8b_223",Bpe="_Save_Load_content_miniRen_figRight_a3o8b_228",xe={Save_Load_main:lpe,Save_Load_top:cpe,Elements_in:fpe,Save_Load_title:hpe,Save_title_text:dpe,Load_title_text:ppe,Save_Load_top_buttonList:vpe,Save_Load_top_button:mpe,Save_Load_top_button_text:gpe,Save_Load_top_button_on:ype,Load_top_button_on:_pe,Load_top_button:xpe,Save_Load_content:bpe,Save_Load_content_element:Spe,Elements_in_transform:wpe,Save_Load_content_element_top:Epe,Save_Load_content_element_top_index:Tpe,Load_content_elememt_top_index:Cpe,Save_Load_content_element_top_date:Ope,Load_content_element_top_date:Ape,Save_Load_content_text:Ppe,Save_Load_content_text_padding:kpe,Save_Load_content_speaker:Rpe,Load_content_speaker:Ipe,Load_content_text:Npe,Save_Load_content_miniRen:Lpe,Save_Load_content_miniRen_bg:Mpe,Save_Load_content_miniRen_figure:Dpe,Save_Load_content_miniRen_figLeft:Fpe,Save_Load_content_miniRen_figRight:Bpe},jpe=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=_r(),n=ye(h=>h.userData),i=Ht(),o=[];for(let h=1;h<=20;h++){let d=xe.Save_Load_top_button;h===n.optionData.slPage&&(d=d+" "+xe.Save_Load_top_button_on);const p=S.jsx("div",{onClick:()=>{i(t2(h)),Me(),e()},onMouseEnter:t,className:d,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:h})},"Save_element_page"+h);o.push(p)}const a=kr("common."),s=[],u=(n.optionData.slPage-1)*10+1,l=u+9;let c=0;for(let h=u;h<=l;h++){c++;const d=n.saveData[h];let p=S.jsx("div",{});if(d){const v=d.nowStageState.showName===""?" ":`${d.nowStageState.showName}`;p=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index,children:d.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date,children:d.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:d.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker,children:v}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:d.nowStageState.showText})]})]})}const g=S.jsx("div",{onClick:()=>{n.saveData[h]?(r(),Fo({title:f("saving.isOverwrite"),leftText:a("yes"),rightText:a("no"),leftFunc:()=>{Hg(h),Me()},rightFunc:()=>{}})):(e(),Hg(h))},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${c*30}ms`},children:p},"saveElement_"+h);s.push(g)}const f=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Save_title_text,children:f("saving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:s})]})},$pe=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=_r(),n=ye(f=>f.userData),i=Ht(),o=[];for(let f=1;f<=20;f++){let h=xe.Save_Load_top_button+" "+xe.Load_top_button;f===n.optionData.slPage&&(h=h+" "+xe.Save_Load_top_button_on+" "+xe.Load_top_button_on);const d=S.jsx("div",{onClick:()=>{i(t2(f)),Me(),r()},onMouseEnter:t,className:h,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:f})},"Load_element_page"+f);o.push(d)}const a=[],s=(n.optionData.slPage-1)*10+1,u=s+9;let l=0;for(let f=s;f<=u;f++){l++;const h=n.saveData[f];let d=S.jsx("div",{});if(h){const g=h.nowStageState.showName===""?" ":`${h.nowStageState.showName}`;d=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index+" "+xe.Load_content_elememt_top_index,children:h.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date+" "+xe.Load_content_element_top_date,children:h.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:h.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker+" "+xe.Load_content_speaker,children:g}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:h.nowStageState.showText})]})]})}const p=S.jsx("div",{onClick:()=>{Qk(f),e()},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${l*30}ms`},children:d},"loadElement_"+f);a.push(p)}const c=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Load_title_text,children:c("loadSaving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:a})]})},Upe="_Options_main_u5orq_2",Gpe="_Options_top_u5orq_9",zpe="_Options_title_u5orq_16",Hpe="_Option_title_text_u5orq_25",Vpe="_Elements_in_u5orq_1",Wpe="_Option_title_text_shadow_u5orq_34",qpe="_Option_title_text_ts_u5orq_41",Xpe="_Options_main_content_u5orq_48",Ype="_Options_main_content_half_u5orq_55",Kpe="_About_title_text_u5orq_65",Zpe="_About_text_u5orq_73",Qpe="_Options_page_container_u5orq_92",Jpe="_Options_button_list_u5orq_98",eve="_Options_page_button_u5orq_102",tve="_Options_page_button_active_u5orq_114",dr={Options_main:Upe,Options_top:Gpe,Options_title:zpe,Option_title_text:Hpe,Elements_in:Vpe,Option_title_text_shadow:Wpe,Option_title_text_ts:qpe,Options_main_content:Xpe,Options_main_content_half:Ype,About_title_text:Kpe,About_text:Zpe,Options_page_container:Qpe,Options_button_list:Jpe,Options_page_button:eve,Options_page_button_active:tve},rve="_NormalOption_ogzuv_1",nve="_Elements_in_ogzuv_1",ive="_NormalOption_title_ogzuv_10",ove="_NormalOption_title_bef_ogzuv_19",ave="_NormalOption_title_sd_ogzuv_29",sve="_NormalOption_buttonList_ogzuv_39",Am={NormalOption:rve,Elements_in:nve,NormalOption_title:ive,NormalOption_title_bef:ove,NormalOption_title_sd:ave,NormalOption_buttonList:sve},ar=e=>S.jsxs("div",{className:Am.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Am.NormalOption_title,children:e.title}),S.jsx("div",{className:Am.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),uve="_NormalButton_1qk3b_1",lve="_NormalButtonChecked_1qk3b_18",Pm={NormalButton:uve,NormalButtonChecked:lve},yi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=_r();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Pm.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function cve(e){return ia[e]}function QN(){const{i18n:e}=Ud(),t=Is(n=>n.userData),r=Ht();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??ia.zhCn,a=cve(o);e.changeLanguage(a),r(rt({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&Me()}}const fve="_backButton_qbk37_1",hve="_about_qbk37_16",dve="_icon_qbk37_20",pve="_title_qbk37_24",vve="_text_qbk37_34",mve="_contributor_qbk37_43",Xr={backButton:fve,about:hve,icon:dve,title:pve,text:vve,contributor:mve};function gve(e){const t=kr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Xr.about,children:[S.jsx("div",{className:Xr.backButton,onClick:e.onClose,children:S.jsx(jde,{className:Xr.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Xr.title,children:t("subTitle")}),S.jsx("div",{className:Xr.title,children:t("version")}),S.jsx("div",{className:Xr.text,children:HN.version}),S.jsx("div",{className:Xr.title,children:t("source")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Xr.title,children:t("contributors")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Xr.title,children:t("website")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function yve(){const e=ye(f=>f.userData),t=Ht(),r=QN(),n=kr("menu.options.pages.system.options."),{playSeDialogOpen:i}=_r();function o(){Me(),uh.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),p=URL.createObjectURL(d),g=document.createElement("a");g.href=p,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=p=>{const g=p.target.result;try{const v=JSON.parse(g);i(),Fo({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{uh.setItem(O.gameKey,v).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),gl()},rightFunc:()=>{}})}catch(v){ne.error(n("gameSave.dialogs.import.error"),v)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:dr.Options_main_content_half,children:[s&&S.jsx(gve,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(ar,{title:n("autoSpeed.title"),children:S.jsx(yi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(rt({key:"autoSpeed",value:vr.slow})),Me()},()=>{t(rt({key:"autoSpeed",value:vr.normal})),Me()},()=>{t(rt({key:"autoSpeed",value:vr.fast})),Me()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(ar,{title:n("language.title"),children:S.jsx(yi,{currentChecked:e.optionData.language,textList:Object.values(lh),functionList:Object.keys(lh).map(f=>()=>r(ia[f]))})},"option7"),S.jsx(ar,{title:n("resetData.title"),children:S.jsx(yi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Fo({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(bG()),zu()},rightFunc:()=>{}})},()=>{i(),Fo({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(xG()),zu()},rightFunc:()=>{}})},()=>{i(),Fo({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(SG()),zu()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(ar,{title:n("gameSave.title"),children:S.jsx(yi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:dr.About_title_text,onClick:l,children:S.jsx("span",{className:dr.About_text,children:n("about.title")})})]})]})}const _ve="_textPreviewMain_nolr3_1",xve="_textbox_nolr3_8",FC={textPreviewMain:_ve,textbox:xve};function JN(){const e=ye(r=>r.userData.optionData.textboxFont);function t(){return jd(e).with(Vn.song,()=>'"思源宋体", serif').with(Vn.lxgw,()=>'"LXGW", serif').with(Vn.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function P_(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const bve="_TextBox_EventHandler_ujldp_1",Sve="_TextBox_main_ujldp_9",wve="_showSoftly_ujldp_1",Eve="_TextBox_textElement_start_ujldp_39",Tve="_TextDelayShow_ujldp_1",Cve="_outer_ujldp_45",Ove="_inner_ujldp_57",Ave="_zhanwei_ujldp_66",Pve="_TextBox_textElement_Settled_ujldp_71",kve="_TextBox_showName_ujldp_76",Rve="_miniAvatarContainer_ujldp_95",Ive="_miniAvatarImg_ujldp_105",Nve="_nameContainer_ujldp_113",Lve="_outerName_ujldp_119",Mve="_innerName_ujldp_130",Dve="_text_ujldp_137",Wt={TextBox_EventHandler:bve,TextBox_main:Sve,showSoftly:wve,TextBox_textElement_start:Eve,TextDelayShow:Tve,outer:Cve,inner:Ove,zhanwei:Ave,TextBox_textElement_Settled:Pve,TextBox_showName:kve,miniAvatarContainer:Rve,miniAvatarImg:Ive,nameContainer:Nve,outerName:Lve,innerName:Mve,text:Dve};function eL(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:p}=e,g=xR("Stage/TextBox/textbox.scss");$.useEffect(()=>{function m(){[...document.querySelectorAll(".Textelement_start")].forEach(x=>{x.className=g("TextBox_textElement_Settled",Wt.TextBox_textElement_Settled)})}return O.events.textSettle.on(m),()=>{O.events.textSettle.off(m)}},[]);const v=t.map((m,y)=>{let _=y*r,x=n.length;return n!==""&&y>=x&&(_=_-x*r),yS.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Wt.zhanwei,children:[m,S.jsx("span",{className:g("outerName",Wt.outerName),children:m}),d&&S.jsx("span",{className:g("innerName",Wt.innerName),children:m})]})},m+y))},c),S.jsx("div",{className:g("text",Wt.text),style:{fontSize:u,wordBreak:a||e.isFirefox?"break-all":void 0,display:a?"flex":void 0,flexWrap:a?"wrap":void 0,overflow:"hidden",paddingLeft:"0.1em",WebkitLineClamp:e.lineLimit},children:v})]})})}const tL=navigator.userAgent,Fve=/firefox/i.test(tL),Bve=/^((?!chrome|android).)*safari/i.test(tL),jve=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const y=()=>{const b=window.innerHeight,w=window.innerWidth,T=b/1440,R=w/2560,A=w/1440,P=b/2560;[T,R,A,P].forEach(D=>{D<=.2?t(!1):t(!0)})};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[]);const r=ye(y=>y.stage),n=ye(y=>y.userData),i=Tx(n.optionData.textSpeed),o=Ek(n.optionData.textSpeed);let a=P_(n.optionData.textSize)+"%";const s=JN(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=P_(r.showTextSize)+"%",l=r.showTextSize);const c=jd(n.optionData.textSize).with(xn.small,()=>3).with(xn.medium,()=>2).with(xn.large,()=>2).default(()=>2),f=qb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,p=r.currentDialogKey,g=r.miniAvatar,v=n.optionData.textboxOpacity,m=eL;return S.jsx(m,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:p,isSafari:Bve,isFirefox:Fve,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:v})};function BC(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function qb(e,t,r){const a=e.split("|").map(s=>Uve(s)).map(s=>{const u=[];return s.forEach((l,c)=>{jd(l.type).with("SegmentType.String",()=>{const f=$ve(l.value);u.push(...f)}).endsWith("SegmentType.Link",()=>{const f=l.value,h=S.jsxs("ruby",{children:[f.text,S.jsx("rt",{children:f.link})]},c+f.text);u.push(h)})}),u}).slice(0,r?void 0:t).reduce((s,u,l)=>[...s,...u,S.jsx("br",{},`br-${l}`)],[]);return a.pop(),a}function $ve(e){if(!e)return[];const t=[];let r="",n=BC(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(BC(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Uve(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const Gve=e=>{const t=kr("menu.options.pages.display.options."),r=ye(m=>m.userData),i=ye(m=>m.stage).bgName,o=Tx(r.optionData.textSpeed),a=Ek(r.optionData.textSpeed),s=r.optionData.textboxOpacity,u=P_(r.optionData.textSize)+"%",l=JN(),c=navigator.userAgent,f=/firefox/i.test(c),h=/^((?!chrome|android).)*safari/i.test(c),d=t("textPreview.text"),p=qb(d,3),g=eL,v={textArray:p,isText:!0,textDelay:o,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:u,currentDialogKey:"",isSafari:h,isFirefox:f,miniAvatar:"",textDuration:a,font:l,textSizeState:u,lineLimit:3,isUseStroke:!0,textboxOpacity:s};return S.jsx("div",{className:FC.textPreviewMain,style:{background:i?`bottom / cover no-repeat url(${i})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:FC.textbox,children:S.jsx(g,{...v})},`previewTextbox-${o}`)})};const Ta=e=>{const{playSeEnter:t}=_r();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function zve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.display.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("fullScreen.title"),children:S.jsx(yi,{textList:r("fullScreen.options.on","fullScreen.options.off"),functionList:[()=>{t(rt({key:"fullScreen",value:en.on})),Me()},()=>{t(rt({key:"fullScreen",value:en.off})),Me()}],currentChecked:e.optionData.fullScreen})},"fullScreen"),S.jsx(ar,{title:r("textSpeed.title"),children:S.jsx(yi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(rt({key:"textSpeed",value:vr.slow})),Me()},()=>{t(rt({key:"textSpeed",value:vr.normal})),Me()},()=>{t(rt({key:"textSpeed",value:vr.fast})),Me()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(ar,{title:r("textSize.title"),children:S.jsx(yi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(rt({key:"textSize",value:xn.small})),Me()},()=>{t(rt({key:"textSize",value:xn.medium})),Me()},()=>{t(rt({key:"textSize",value:xn.large})),Me()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(ar,{title:r("textFont.title"),children:S.jsx(yi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(rt({key:"textboxFont",value:Vn.song})),Me()},()=>{t(rt({key:"textboxFont",value:Vn.hei})),Me()},()=>{t(rt({key:"textboxFont",value:Vn.lxgw})),Me()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(ar,{title:r("textboxOpacity.title"),children:S.jsx(Ta,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(rt({key:"textboxOpacity",value:Number(i)})),Me()}})},"textboxOpacity"),S.jsx(ar,{full:!0,title:r("textPreview.title"),children:S.jsx(Gve,{})},"textPreview")]})}function Hve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.sound.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("volumeMain.title"),children:S.jsx(Ta,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(rt({key:"volumeMain",value:Number(i)})),Me()}})},"option4"),S.jsx(ar,{title:r("vocalVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"vocalVolume",value:Number(i)})),Me()}})},"option5"),S.jsx(ar,{title:r("bgmVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"bgmVolume",value:Number(i)})),Me()}})},"option6"),S.jsx(ar,{title:r("seVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"seVolume",value:Number(i)})),Me()}})},"option7"),S.jsx(ar,{title:r("uiSeVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(rt({key:"uiSeVolume",value:Number(i)})),Me()}})},"option8"),S.jsx(ar,{title:r("voiceOption.title"),children:S.jsx(yi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(rt({key:"voiceInterruption",value:hl.yes})),Me()},()=>{t(rt({key:"voiceInterruption",value:hl.no})),Me()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const Vve=()=>{const{playSeEnter:e,playSeSwitch:t}=_r(),r=En(0);$.useEffect(gl,[]);function n(o){return o===r.value?dr.Options_page_button+" "+dr.Options_page_button_active:dr.Options_page_button}const i=kr("menu.options.");return S.jsxs("div",{className:dr.Options_main,children:[S.jsx("div",{className:dr.Options_top,children:S.jsx("div",{className:dr.Options_title,children:S.jsx("div",{className:dr.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:dr.Options_page_container,children:[S.jsxs("div",{className:dr.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:dr.Options_main_content,children:[r.value===1&&S.jsx(zve,{}),r.value===0&&S.jsx(yve,{}),r.value===2&&S.jsx(Hve,{})]})]})]})},Wve=()=>{const e=ye(r=>r.GUI);let t;switch(e.currentMenuTag){case Ze.Save:t=S.jsx(jpe,{});break;case Ze.Load:t=S.jsx($pe,{});break;case Ze.Option:t=S.jsx(Vve,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:NC.Menu_main,children:[S.jsx("div",{className:NC.Menu_TagContent,children:t}),S.jsx(upe,{})]})})},qve="_MainStage_main_9enex_1",Xve="_MainStage_main_container_9enex_10",Yve="_MainStage_bgContainer_9enex_17",Kve="_MainStage_showBgSoftly_9enex_1",Zve="_MainStage_bgContainer_Settled_9enex_27",Qve="_MainStage_oldBgContainer_9enex_37",Jve="_MainStage_oldBgFadeout_9enex_1",eme="_MainStage_oldBgContainer_Settled_9enex_47",tme="_pixiContainer_9enex_72",rme="_chooseContainer_9enex_77",km={MainStage_main:qve,MainStage_main_container:Xve,MainStage_bgContainer:Yve,MainStage_showBgSoftly:Kve,MainStage_bgContainer_Settled:Zve,MainStage_oldBgContainer:Qve,MainStage_oldBgFadeout:Jve,MainStage_oldBgContainer_Settled:eme,pixiContainer:tme,chooseContainer:rme},nme=()=>{var g;const e=ye(v=>v.stage),t=ye(v=>v.GUI.titleBgm),r=ye(v=>v.GUI.showTitle),n=ye(v=>v.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=ye(v=>v.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),p=(v,m,y)=>{y>=0?v.volume=0:v.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{v.volume+x>=m?v.volume=m:v.volume+x<=0?(v.volume=0,B.dispatch(Ee({key:"bgm",value:{src:"",enter:0,volume:100}}))):(v.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const v=document.getElementById("currentBgm");v&&(s===0?v.volume=a:p(v,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const v=document.getElementById("currentVocal");v&&(v.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const v=document.createElement("audio");v.src=u,v.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),v.volume=isNaN(l)?i/100:l/100):v.volume=c,v.play(),v.addEventListener("ended",()=>{v.remove()}),B.dispatch(Ee({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},ime=()=>{const e=ye(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:In.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},ome="_TextBox_EventHandler_449dq_2",ame="_TextBox_main_449dq_10",sme="_showSoftly_449dq_1",ume="_TextBox_textElement_449dq_38",lme="_TextBox_textElement_start_449dq_43",cme="_TextDelayShow_449dq_1",fme="_TextBox_textElement_Settled_449dq_48",hme="_TextBox_showName_449dq_52",dme="_miniAvatarContainer_449dq_68",pme="_miniAvatarImg_449dq_76",Rm={TextBox_EventHandler:ome,TextBox_main:ame,showSoftly:sme,TextBox_textElement:ume,TextBox_textElement_start:lme,TextDelayShow:cme,TextBox_textElement_Settled:fme,TextBox_showName:hme,miniAvatarContainer:dme,miniAvatarImg:pme},vme=()=>{const e=ye(a=>a.stage),t=ye(a=>a.userData);$.useEffect(()=>{});const r=EG.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&jC(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),ec(t),ne.debug("重设背景");const{duration:s,animation:u}=Ii("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&jC(a)}},[t])}function jC(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=Ii("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function gme(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==r&&ui(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&Jc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:v,animation:m}=Ii(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除中立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==r&&ui(p,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==t&&ui(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&Jc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:v,animation:m}=Ii(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{ne.debug("移除左立绘");const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==t&&ui(p,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const p=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);p&&p.sourceUrl!==n&&ui(p,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&Jc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:v,animation:m}=Ii(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),v)}else{const p=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);p&&p.sourceUrl!==n&&ui(p,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,p;for(const g of i){const v=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(v);if(y){if(y.sourceUrl!==g.name){ui(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(v,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=Ii(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(v,g.name,g.basePosition),/.json$/.test(g.name)&&Jc(v,g.name,g.basePosition,((f=o.find(w=>w.target===v))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===v))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=Ii(v,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,v,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(v);y&&y.sourceUrl!==g.name&&ui(y,m,e.effects)}}const s=(p=O.gameplay.pixiStage)==null?void 0:p.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const v=g.key;if(i.findIndex(y=>y.key===v)<0){const y=`${g.key}-softin`;ui(g,y,e.effects)}}}},[i])}function ui(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=Ii(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function Jc(...e){}function yme(e){const t=e.effects;setTimeout(()=>{_me(t)},10)}function _me(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(lx))}}}}function $C(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function xme(){const e=ye(t=>t.stage);return mme(e),gme(e),yme(e),S.jsx("div",{style:{display:"none"}})}const bme="_introContainer_119k8_1",Sme={introContainer:bme};function wme(){return S.jsx("div",{className:Sme.introContainer,id:"introContainer"})}function UC(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(De({component:"controlsVisibility",visibility:!1}))},1e3)):Eme(e,r,n)}const Ome=()=>{const e=ye(n=>n.stage),t=ye(n=>n.GUI),r=Ht();return Ute(),S.jsxs("div",{className:km.MainStage_main,children:[S.jsx(ime,{}),S.jsx(xme,{}),S.jsx("div",{id:"pixiContianer",className:km.pixiContainer,style:{zIndex:Vb?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:km.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx(jve,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(vme,{}),S.jsx(nme,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(De({component:"showTextBox",visibility:!0}));return}Hx(),Vt()},onDoubleClick:()=>{O.events.fullscreenDbClick.emit()},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&Cme(n,e,t,r)}),S.jsx(wme,{})]})},Ame=()=>{const e=kr("gaming."),t=2.5,{i18n:r}=Ud(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=_r(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=ye(m=>m.GUI),f=ye(m=>m.stage),h=Ht(),d=(m,y)=>{h(De({component:m,visibility:y}))},p=m=>{h(jo(m))},g=ye(m=>m.userData.saveData);let v=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];v=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(zde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(Hde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(Ide,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(Vde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{SR(),i()},onMouseEnter:n,children:[S.jsx(YN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{CR(),i()},onMouseEnter:n,children:[S.jsx(Lde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{Hg(0),i()},onMouseEnter:n,children:[S.jsx(Nde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:v})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{Qk(0),i()},onMouseEnter:n,children:[S.jsx(Mde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:v})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ze.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(KN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ze.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(qN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{p(Ze.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(ZN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Fo({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(XN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{spe(),i()},onMouseEnter:n,children:c.showControls?S.jsx($de,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(Xde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},Pme=()=>{var h,d;const e=kr("gaming."),{playSeEnter:t,playSeClick:r}=_r(),n=ye(p=>p.GUI),i=Ht(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let p=[];for(let g=0;gb==="

"?S.jsx("br",{},`br${w}`):b),x=S.jsxs("div",{className:qt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:qt.backlog_func_area,children:[S.jsxs("div",{className:qt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),tJ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(Wde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),v.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=B.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(Yde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:qt.backlog_item_content_name,children:v.currentStageState.showName})]}),S.jsx("div",{className:qt.backlog_item_content,children:S.jsx("span",{className:qt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:v.currentStageState.vocal})]},"backlogItem"+v.currentStageState.showText+v.saveScene.currentSentenceId);p.unshift(x)}return p},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` +| iOS ユーザーは横画面での使用をお勧めします`),gde("./game/userStyleSheet.css"),yde(),ure("./game/config.txt");const e=jr("start.txt",Br.scene);ri(e).then(t=>{O.sceneManager.sceneData.currentScene=ni(t,"start.txt",e);const r=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const n=Yl(r);Kl(n)}),O.gameplay.pixiStage=new pde,cre(),fre()};function gde(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}function yde(){dl.get("./game/animation/animationTable.json").then(e=>{const t=e.data;for(const r of t)dl.get(`./game/animation/${r}.json`).then(n=>{if(n.data){const i={name:r,effects:n.data};O.animationManager.addAnimation(i)}})})}const _de="_Menu_main_1a7i6_1",xde="_Menu_ShowSoftly_1a7i6_1",bde="_Menu_TagContent_1a7i6_10",NC={Menu_main:_de,Menu_ShowSoftly:xde,Menu_TagContent:bde},Sde="_MenuPanel_main_1c9ky_1",wde="_MenuPanel_button_1c9ky_10",Ede="_MenuPanel_button_icon_1c9ky_38",Tde="_MenuPanel_button_hl_1c9ky_44",Fa={MenuPanel_main:Sde,MenuPanel_button:wde,MenuPanel_button_icon:Ede,MenuPanel_button_hl:Tde};var Cde=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function LC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MC(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pde(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var kde={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function Ide(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Rde(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var VN=$.createContext(kde);VN.Provider;function dt(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=Ade(n,Cde),d=$.useContext(VN),v=$.useMemo(Ide,[]),g=Rde(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),p=[d.prefix+"-icon"];return p.push(d.prefix+"-icon-"+e),t&&d.rtl&&p.push(d.prefix+"-icon-rtl"),f&&p.push(d.prefix+"-icon-spin"),c&&p.push(c),Y.createElement("span",MC(MC({},h),{},{className:p.join(" ")}),r(g))}}const Nde=dt("align-text-left-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),WN=dt("close-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Lde=dt("double-down",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M36 12L24 24L12 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M36 24L24 36L12 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Mde=dt("double-right",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Fde=dt("double-up",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12 24L24 12L36 24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M12 36L24 24L36 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qN=dt("folder-open",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Dde=dt("go-end",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M14 12L26 24L14 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Bde=dt("go-start",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 36L22 24L34 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 12V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),jde=dt("hamburger-button",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),XN=dt("home",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),$de=dt("left",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Ude=dt("lock",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Gde=dt("logout",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),zde=dt("music-list",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 19H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 10H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 38H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 28H40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M8 10L16 15L8 20V10Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),YN=dt("play-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Hde=dt("preview-close-one",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Vde=dt("preview-open",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Wde=dt("replay-music",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qde=dt("return",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),KN=dt("save",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),Y.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ZN=dt("setting-two",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M18.2838 43.1713C14.9327 42.1736 11.9498 40.3213 9.58787 37.867C10.469 36.8227 11 35.4734 11 34.0001C11 30.6864 8.31371 28.0001 5 28.0001C4.79955 28.0001 4.60139 28.01 4.40599 28.0292C4.13979 26.7277 4 25.3803 4 24.0001C4 21.9095 4.32077 19.8938 4.91579 17.9995C4.94381 17.9999 4.97188 18.0001 5 18.0001C8.31371 18.0001 11 15.3138 11 12.0001C11 11.0488 10.7786 10.1493 10.3846 9.35011C12.6975 7.1995 15.5205 5.59002 18.6521 4.72314C19.6444 6.66819 21.6667 8.00013 24 8.00013C26.3333 8.00013 28.3556 6.66819 29.3479 4.72314C32.4795 5.59002 35.3025 7.1995 37.6154 9.35011C37.2214 10.1493 37 11.0488 37 12.0001C37 15.3138 39.6863 18.0001 43 18.0001C43.0281 18.0001 43.0562 17.9999 43.0842 17.9995C43.6792 19.8938 44 21.9095 44 24.0001C44 25.3803 43.8602 26.7277 43.594 28.0292C43.3986 28.01 43.2005 28.0001 43 28.0001C39.6863 28.0001 37 30.6864 37 34.0001C37 35.4734 37.531 36.8227 38.4121 37.867C36.0502 40.3213 33.0673 42.1736 29.7162 43.1713C28.9428 40.752 26.676 39.0001 24 39.0001C21.324 39.0001 19.0572 40.752 18.2838 43.1713Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Xde=dt("square-small",!1,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M34 12H14C12.8954 12 12 12.8954 12 14V34C12 35.1046 12.8954 36 14 36H34C35.1046 36 36 35.1046 36 34V14C36 12.8954 35.1046 12 34 12Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}))}),Yde=dt("unlock",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M24 30V36",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Kde=dt("volume-notice",!0,function(e){return Y.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Y.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Y.createElement("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),Zde=e=>{let t;switch(e.iconName){case"save":t=S.jsx(KN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=S.jsx(qN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=S.jsx(ZN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=S.jsx(XN,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"exit":t=S.jsx(Gde,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;default:t=S.jsx("div",{})}return t},vu=e=>{const{playSePageChange:t,playSeEnter:r}=_r();let n=Fa.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(n=n+e.buttonOnClassName),S.jsxs("div",{className:n,onClick:()=>{e.clickFunc()},onMouseEnter:r,style:{...e.style,color:e.tagColor},children:[S.jsx("div",{className:Fa.MenuPanel_button_icon,children:S.jsx(Zde,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},Wb=()=>{const e=B.dispatch;Fx(),zx(),Za(),e(Ee({key:"playVocal",value:""})),e(Me({component:"showTitle",visibility:!0})),ec(B.getState().GUI.titleBg)},Qde="_GlobalDialog_main_101j8_2",Jde="_showGlobalDialog_101j8_1",epe="_glabalDialog_container_inner_101j8_17",tpe="_glabalDialog_container_101j8_17",rpe="_title_101j8_36",npe="_button_list_101j8_41",ipe="_button_101j8_41",xo={GlobalDialog_main:Qde,showGlobalDialog:Jde,glabalDialog_container_inner:epe,glabalDialog_container:tpe,title:rpe,button_list:npe,button:ipe};function ope(){const e=ye(t=>t.GUI.showGlobalDialog);return S.jsx(S.Fragment,{children:e&&S.jsx("div",{id:"globalDialogContainer"})})}function Do(e){const{playSeClick:t,playSeEnter:r}=Sx();B.dispatch(Me({component:"showGlobalDialog",visibility:!0}));const n=()=>{t(),e.leftFunc(),FC()},i=()=>{t(),e.rightFunc(),FC()},o=S.jsx("div",{className:xo.GlobalDialog_main,children:S.jsx("div",{className:xo.glabalDialog_container,children:S.jsxs("div",{className:xo.glabalDialog_container_inner,children:[S.jsx("div",{className:xo.title,children:e.title}),S.jsxs("div",{className:xo.button_list,children:[S.jsx("div",{className:xo.button,onClick:n,onMouseEnter:r,children:e.leftText}),S.jsx("div",{className:xo.button,onClick:i,onMouseEnter:r,children:e.rightText})]})]})})});setTimeout(()=>{qn.render(o,document.getElementById("globalDialogContainer"))},100)}function FC(){B.dispatch(Me({component:"showGlobalDialog",visibility:!1}))}function ape(){B.dispatch(Me({component:"showControls",visibility:!0}))}function spe(){B.dispatch(Me({component:"showControls",visibility:!1}))}function upe(){B.getState().GUI.showControls===!0?spe():ape()}const lpe=()=>{const e=kr("menu."),{playSeClick:t,playSeDialogOpen:r,playSePageChange:n}=_r(),i=ye(g=>g.GUI),o=Ht(),a=i.currentMenuTag===Ze.Save?` ${Fa.MenuPanel_button_hl}`:"",s=i.currentMenuTag===Ze.Load?` ${Fa.MenuPanel_button_hl}`:"",u=i.currentMenuTag===Ze.Option?` ${Fa.MenuPanel_button_hl}`:"",l=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",c=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",f=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)",h=i.currentMenuTag===Ze.Save?"rgba(74, 34, 93, 0.9)":"rgba(123,144,169,1)",d=i.currentMenuTag===Ze.Load?"rgba(11, 52, 110, 0.9)":"rgba(123,144,169,1)",v=i.currentMenuTag===Ze.Option?"rgba(81, 110, 65, 0.9)":"rgba(123,144,169,1)";return S.jsxs("div",{className:Fa.MenuPanel_main,children:[S.jsx(vu,{iconName:"save",buttonOnClassName:a,iconColor:h,tagColor:l,clickFunc:()=>{n(),!i.showTitle&&o(jo(Ze.Save))},tagName:e("saving.title")},"saveButton"),S.jsx(vu,{iconName:"load",buttonOnClassName:s,iconColor:d,tagColor:c,clickFunc:()=>{n(),o(jo(Ze.Load))},tagName:e("loadSaving.title")},"loadButton"),S.jsx(vu,{iconName:"title",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{r(),Do({title:e("$gaming.buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb(),o(Me({component:"showMenuPanel",visibility:!1}))},rightFunc:()=>{}})},tagName:e("title.title")},"titleIcon"),S.jsx(vu,{iconName:"option",style:{marginLeft:"auto"},buttonOnClassName:u,iconColor:v,tagColor:f,clickFunc:()=>{n(),o(jo(Ze.Option))},tagName:e("options.title")},"optionButton"),S.jsx(vu,{iconName:"exit",iconColor:"rgba(123,144,169,1)",tagColor:"rgba(123,144,169,1)",clickFunc:()=>{t(),o(Me({component:"showMenuPanel",visibility:!1}))},tagName:e("exit.title")},"exitIcon")]})},cpe="_Save_Load_main_a3o8b_2",fpe="_Save_Load_top_a3o8b_9",hpe="_Elements_in_a3o8b_1",dpe="_Save_Load_title_a3o8b_17",ppe="_Save_title_text_a3o8b_35",vpe="_Load_title_text_a3o8b_43",mpe="_Save_Load_top_buttonList_a3o8b_51",gpe="_Save_Load_top_button_a3o8b_51",ype="_Save_Load_top_button_text_a3o8b_69",_pe="_Save_Load_top_button_on_a3o8b_80",xpe="_Load_top_button_on_a3o8b_93",bpe="_Load_top_button_a3o8b_93",Spe="_Save_Load_content_a3o8b_106",wpe="_Save_Load_content_element_a3o8b_115",Epe="_Elements_in_transform_a3o8b_1",Tpe="_Save_Load_content_element_top_a3o8b_131",Cpe="_Save_Load_content_element_top_index_a3o8b_138",Ope="_Load_content_elememt_top_index_a3o8b_147",Ape="_Save_Load_content_element_top_date_a3o8b_151",Ppe="_Load_content_element_top_date_a3o8b_162",kpe="_Save_Load_content_text_a3o8b_166",Ipe="_Save_Load_content_text_padding_a3o8b_180",Rpe="_Save_Load_content_speaker_a3o8b_184",Npe="_Load_content_speaker_a3o8b_193",Lpe="_Load_content_text_a3o8b_197",Mpe="_Save_Load_content_miniRen_a3o8b_201",Fpe="_Save_Load_content_miniRen_bg_a3o8b_208",Dpe="_Save_Load_content_miniRen_figure_a3o8b_215",Bpe="_Save_Load_content_miniRen_figLeft_a3o8b_223",jpe="_Save_Load_content_miniRen_figRight_a3o8b_228",xe={Save_Load_main:cpe,Save_Load_top:fpe,Elements_in:hpe,Save_Load_title:dpe,Save_title_text:ppe,Load_title_text:vpe,Save_Load_top_buttonList:mpe,Save_Load_top_button:gpe,Save_Load_top_button_text:ype,Save_Load_top_button_on:_pe,Load_top_button_on:xpe,Load_top_button:bpe,Save_Load_content:Spe,Save_Load_content_element:wpe,Elements_in_transform:Epe,Save_Load_content_element_top:Tpe,Save_Load_content_element_top_index:Cpe,Load_content_elememt_top_index:Ope,Save_Load_content_element_top_date:Ape,Load_content_element_top_date:Ppe,Save_Load_content_text:kpe,Save_Load_content_text_padding:Ipe,Save_Load_content_speaker:Rpe,Load_content_speaker:Npe,Load_content_text:Lpe,Save_Load_content_miniRen:Mpe,Save_Load_content_miniRen_bg:Fpe,Save_Load_content_miniRen_figure:Dpe,Save_Load_content_miniRen_figLeft:Bpe,Save_Load_content_miniRen_figRight:jpe},$pe=()=>{const{playSePageChange:e,playSeEnter:t,playSeDialogOpen:r}=_r(),n=ye(h=>h.userData),i=Ht(),o=[];for(let h=1;h<=20;h++){let d=xe.Save_Load_top_button;h===n.optionData.slPage&&(d=d+" "+xe.Save_Load_top_button_on);const v=S.jsx("div",{onClick:()=>{i(t2(h)),$e(),e()},onMouseEnter:t,className:d,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:h})},"Save_element_page"+h);o.push(v)}const a=kr("common."),s=[],u=(n.optionData.slPage-1)*10+1,l=u+9;let c=0;for(let h=u;h<=l;h++){c++;const d=n.saveData[h];let v=S.jsx("div",{});if(d){const p=d.nowStageState.showName===""?" ":`${d.nowStageState.showName}`;v=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index,children:d.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date,children:d.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:d.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker,children:p}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:d.nowStageState.showText})]})]})}const g=S.jsx("div",{onClick:()=>{n.saveData[h]?(r(),Do({title:f("saving.isOverwrite"),leftText:a("yes"),rightText:a("no"),leftFunc:()=>{Hg(h),$e()},rightFunc:()=>{}})):(e(),Hg(h))},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${c*30}ms`},children:v},"saveElement_"+h);s.push(g)}const f=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Save_title_text,children:f("saving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Save_content_page_"+n.optionData.slPage,children:s})]})},Upe=()=>{const{playSeClick:e,playSeEnter:t,playSePageChange:r}=_r(),n=ye(f=>f.userData),i=Ht(),o=[];for(let f=1;f<=20;f++){let h=xe.Save_Load_top_button+" "+xe.Load_top_button;f===n.optionData.slPage&&(h=h+" "+xe.Save_Load_top_button_on+" "+xe.Load_top_button_on);const d=S.jsx("div",{onClick:()=>{i(t2(f)),$e(),r()},onMouseEnter:t,className:h,children:S.jsx("div",{className:xe.Save_Load_top_button_text,children:f})},"Load_element_page"+f);o.push(d)}const a=[],s=(n.optionData.slPage-1)*10+1,u=s+9;let l=0;for(let f=s;f<=u;f++){l++;const h=n.saveData[f];let d=S.jsx("div",{});if(h){const g=h.nowStageState.showName===""?" ":`${h.nowStageState.showName}`;d=S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:xe.Save_Load_content_element_top,children:[S.jsx("div",{className:xe.Save_Load_content_element_top_index+" "+xe.Load_content_elememt_top_index,children:h.index}),S.jsx("div",{className:xe.Save_Load_content_element_top_date+" "+xe.Load_content_element_top_date,children:h.saveTime})]}),S.jsx("div",{className:xe.Save_Load_content_miniRen,children:S.jsx("img",{className:xe.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:h.previewImage})}),S.jsxs("div",{className:xe.Save_Load_content_text,children:[S.jsx("div",{className:xe.Save_Load_content_speaker+" "+xe.Load_content_speaker,children:g}),S.jsx("div",{className:xe.Save_Load_content_text_padding,children:h.nowStageState.showText})]})]})}const v=S.jsx("div",{onClick:()=>{Qk(f),e()},onMouseEnter:t,className:xe.Save_Load_content_element,style:{animationDelay:`${l*30}ms`},children:d},"loadElement_"+f);a.push(v)}const c=kr("menu.");return S.jsxs("div",{className:xe.Save_Load_main,children:[S.jsxs("div",{className:xe.Save_Load_top,children:[S.jsx("div",{className:xe.Save_Load_title,children:S.jsx("div",{className:xe.Load_title_text,children:c("loadSaving.title")})}),S.jsx("div",{className:xe.Save_Load_top_buttonList,children:o})]}),S.jsx("div",{className:xe.Save_Load_content,id:"Load_content_page_"+n.optionData.slPage,children:a})]})},Gpe="_Options_main_u5orq_2",zpe="_Options_top_u5orq_9",Hpe="_Options_title_u5orq_16",Vpe="_Option_title_text_u5orq_25",Wpe="_Elements_in_u5orq_1",qpe="_Option_title_text_shadow_u5orq_34",Xpe="_Option_title_text_ts_u5orq_41",Ype="_Options_main_content_u5orq_48",Kpe="_Options_main_content_half_u5orq_55",Zpe="_About_title_text_u5orq_65",Qpe="_About_text_u5orq_73",Jpe="_Options_page_container_u5orq_92",eve="_Options_button_list_u5orq_98",tve="_Options_page_button_u5orq_102",rve="_Options_page_button_active_u5orq_114",dr={Options_main:Gpe,Options_top:zpe,Options_title:Hpe,Option_title_text:Vpe,Elements_in:Wpe,Option_title_text_shadow:qpe,Option_title_text_ts:Xpe,Options_main_content:Ype,Options_main_content_half:Kpe,About_title_text:Zpe,About_text:Qpe,Options_page_container:Jpe,Options_button_list:eve,Options_page_button:tve,Options_page_button_active:rve},nve="_NormalOption_ogzuv_1",ive="_Elements_in_ogzuv_1",ove="_NormalOption_title_ogzuv_10",ave="_NormalOption_title_bef_ogzuv_19",sve="_NormalOption_title_sd_ogzuv_29",uve="_NormalOption_buttonList_ogzuv_39",Am={NormalOption:nve,Elements_in:ive,NormalOption_title:ove,NormalOption_title_bef:ave,NormalOption_title_sd:sve,NormalOption_buttonList:uve},ar=e=>S.jsxs("div",{className:Am.NormalOption,style:{width:e.full?"100%":"auto"},children:[S.jsx("div",{className:Am.NormalOption_title,children:e.title}),S.jsx("div",{className:Am.NormalOption_buttonList,style:{width:e.full?"100%":"auto"},children:e.children})]}),lve="_NormalButton_1qk3b_1",cve="_NormalButtonChecked_1qk3b_18",Pm={NormalButton:lve,NormalButtonChecked:cve},yi=e=>{const t=e.textList.length,r=[],{playSeEnter:n,playSeSwitch:i}=_r();for(let o=0;o{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o+e);r.push(a)}else{const a=S.jsx("div",{className:Pm.NormalButton,onClick:()=>{i(),e.functionList[o]()},onMouseEnter:n,children:e.textList[o]},e.textList[o]+o);r.push(a)}return S.jsx(S.Fragment,{children:r})};function fve(e){return ia[e]}function QN(){const{i18n:e}=Ud(),t=Ns(n=>n.userData),r=Ht();return(n,i=!0)=>{var s;const o=n??((s=t.current)==null?void 0:s.optionData.language)??ia.zhCn,a=fve(o);e.changeLanguage(a),r(ot({key:"language",value:o})),ne.info("设置语言: "+a),window==null||window.localStorage.setItem("lang",o.toString()),i&&$e()}}const hve="_backButton_qbk37_1",dve="_about_qbk37_16",pve="_icon_qbk37_20",vve="_title_qbk37_24",mve="_text_qbk37_34",gve="_contributor_qbk37_43",Xr={backButton:hve,about:dve,icon:pve,title:vve,text:mve,contributor:gve};function yve(e){const t=kr("menu.options.pages.system.options.about.");return S.jsxs("div",{className:Xr.about,children:[S.jsx("div",{className:Xr.backButton,onClick:e.onClose,children:S.jsx($de,{className:Xr.icon,theme:"outline",size:"35",strokeWidth:3,fill:"#333"})}),S.jsx("div",{className:Xr.title,children:t("subTitle")}),S.jsx("div",{className:Xr.title,children:t("version")}),S.jsx("div",{className:Xr.text,children:HN.version}),S.jsx("div",{className:Xr.title,children:t("source")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL",children:"https://github.com/OpenWebGAL/WebGAL"})}),S.jsx("div",{className:Xr.title,children:t("contributors")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors",children:"https://github.com/OpenWebGAL/WebGAL/graphs/contributors"})}),S.jsx("div",{className:Xr.title,children:t("website")}),S.jsx("div",{className:Xr.text,children:S.jsx("a",{target:"_blank",href:"https://openwebgal.com/",children:"https://openwebgal.com/"})})]})}function _ve(){const e=ye(f=>f.userData),t=Ht(),r=QN(),n=kr("menu.options.pages.system.options."),{playSeDialogOpen:i}=_r();function o(){$e(),uh.getItem(O.gameKey).then(f=>{const h=JSON.stringify(f);if(h!==null){const d=new Blob([h],{type:"application/json"}),v=URL.createObjectURL(d),g=document.createElement("a");g.href=v,g.download="saves.json",g.click(),g.remove()}})}function a(){const f=document.createElement("input");f.type="file",f.onchange=c,f.click()}const[s,u]=$.useState(!1);function l(){u(!s)}function c(f){const h=f.target.files[0],d=new FileReader;d.onload=v=>{const g=v.target.result;try{const p=JSON.parse(g);i(),Do({title:n("gameSave.dialogs.import.title"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{uh.setItem(O.gameKey,p).then(()=>{ne.info(n("gameSave.dialogs.import.tip"))}),gl()},rightFunc:()=>{}})}catch(p){ne.error(n("gameSave.dialogs.import.error"),p)}},d.readAsText(h,"UTF-8")}return S.jsxs("div",{className:dr.Options_main_content_half,children:[s&&S.jsx(yve,{onClose:l}),!s&&S.jsxs(S.Fragment,{children:[S.jsx(ar,{title:n("autoSpeed.title"),children:S.jsx(yi,{textList:n("autoSpeed.options.slow","autoSpeed.options.medium","autoSpeed.options.fast"),functionList:[()=>{t(ot({key:"autoSpeed",value:vr.slow})),$e()},()=>{t(ot({key:"autoSpeed",value:vr.normal})),$e()},()=>{t(ot({key:"autoSpeed",value:vr.fast})),$e()}],currentChecked:e.optionData.autoSpeed})},"option1"),S.jsx(ar,{title:n("language.title"),children:S.jsx(yi,{currentChecked:e.optionData.language,textList:Object.values(lh),functionList:Object.keys(lh).map(f=>()=>r(ia[f]))})},"option7"),S.jsx(ar,{title:n("resetData.title"),children:S.jsx(yi,{textList:n("resetData.options.clearGameSave","resetData.options.resetSettings","resetData.options.clearAll"),functionList:[()=>{i(),Do({title:n("resetData.dialogs.clearGameSave"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(bG()),Ya()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.resetSettings"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(xG()),Ya()},rightFunc:()=>{}})},()=>{i(),Do({title:n("resetData.dialogs.clearAll"),leftText:n("$common.yes"),rightText:n("$common.no"),leftFunc:()=>{t(SG()),Ya()},rightFunc:()=>{}})}],currentChecked:3})},"option2"),S.jsx(ar,{title:n("gameSave.title"),children:S.jsx(yi,{textList:n("gameSave.options.export","gameSave.options.import"),functionList:[o,a],currentChecked:2})},"option3"),S.jsx("div",{className:dr.About_title_text,onClick:l,children:S.jsx("span",{className:dr.About_text,children:n("about.title")})})]})]})}const xve="_textPreviewMain_nolr3_1",bve="_textbox_nolr3_8",DC={textPreviewMain:xve,textbox:bve};function JN(){const e=ye(r=>r.userData.optionData.textboxFont);function t(){return jd(e).with(Hn.song,()=>'"思源宋体", serif').with(Hn.lxgw,()=>'"LXGW", serif').with(Hn.hei,()=>'"WebgalUI", serif').default(()=>'"WebgalUI", serif')}return t()}function P_(e){switch(e){case 0:return 150;case 1:return 205;case 2:return 240;default:return 205}}const Sve="_TextBox_EventHandler_eezpc_1",wve="_TextBox_main_eezpc_9",Eve="_showSoftly_eezpc_1",Tve="_TextBox_textElement_start_eezpc_39",Cve="_TextDelayShow_eezpc_1",Ove="_outer_eezpc_45",Ave="_inner_eezpc_57",Pve="_zhanwei_eezpc_66",kve="_TextBox_textElement_Settled_eezpc_71",Ive="_TextBox_showName_eezpc_76",Rve="_miniAvatarContainer_eezpc_95",Nve="_miniAvatarImg_eezpc_105",Lve="_nameContainer_eezpc_113",Mve="_outerName_eezpc_119",Fve="_innerName_eezpc_130",Dve="_text_eezpc_137",Wt={TextBox_EventHandler:Sve,TextBox_main:wve,showSoftly:Eve,TextBox_textElement_start:Tve,TextDelayShow:Cve,outer:Ove,inner:Ave,zhanwei:Pve,TextBox_textElement_Settled:kve,TextBox_showName:Ive,miniAvatarContainer:Rve,miniAvatarImg:Nve,nameContainer:Lve,outerName:Mve,innerName:Fve,text:Dve};function eL(e){const{textArray:t,textDelay:r,currentConcatDialogPrev:n,currentDialogKey:i,isText:o,isSafari:a,isFirefox:s,fontSize:u,miniAvatar:l,showName:c,font:f,textDuration:h,isUseStroke:d,textboxOpacity:v}=e,g=xI("Stage/TextBox/textbox.scss");$.useEffect(()=>{function y(){[...document.querySelectorAll(".Textelement_start")].forEach(b=>{b.className=g("TextBox_textElement_Settled",Wt.TextBox_textElement_Settled)})}return O.events.textSettle.on(y),()=>{O.events.textSettle.off(y)}},[]);let p=0;const m=t.map((y,_)=>{const x=y.map((b,w)=>{let T=p*r;p++;let k=n.length;return n!==""&&w>=k&&(T=T-k*r),wS.jsx("span",{style:{position:"relative"},children:S.jsxs("span",{className:Wt.zhanwei,children:[y,S.jsx("span",{className:g("outerName",Wt.outerName),children:y}),d&&S.jsx("span",{className:g("innerName",Wt.innerName),children:y})]})},y+_))},c),S.jsx("div",{className:g("text",Wt.text),style:{fontSize:u,flexFlow:"column",overflow:"hidden",paddingLeft:"0.1em"},children:m})]})})}const tL=navigator.userAgent,Bve=/firefox/i.test(tL),jve=/^((?!chrome|android).)*safari/i.test(tL),$ve=()=>{const[e,t]=$.useState(!0);$.useEffect(()=>{const y=()=>{const b=window.innerHeight,w=window.innerWidth,T=b/1440,k=w/2560,A=w/1440,P=b/2560;[T,k,A,P].forEach(F=>{F<=.2?t(!1):t(!0)})};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[]);const r=ye(y=>y.stage),n=ye(y=>y.userData),i=Tx(n.optionData.textSpeed),o=Ek(n.optionData.textSpeed);let a=P_(n.optionData.textSize)+"%";const s=JN(),u=r.showText!==""||r.showName!=="";let l=n.optionData.textSize;u&&r.showTextSize!==-1&&(a=P_(r.showTextSize)+"%",l=r.showTextSize);const c=jd(n.optionData.textSize).with(_n.small,()=>3).with(_n.medium,()=>2).with(_n.large,()=>2).default(()=>2),f=qb(r.showText,c),h=r.showName,d=r.currentConcatDialogPrev,v=r.currentDialogKey,g=r.miniAvatar,p=n.optionData.textboxOpacity,m=eL;return S.jsx(m,{textArray:f,isText:u,textDelay:i,showName:h,currentConcatDialogPrev:d,fontSize:a,currentDialogKey:v,isSafari:jve,isFirefox:Bve,miniAvatar:g,textDuration:o,font:s,textSizeState:l,lineLimit:c,isUseStroke:e,textboxOpacity:p})};function BC(e){return!!e.match(/[\u4e00-\u9fa5]|[\u0800-\u4e00]|[\uac00-\ud7ff]/)}function qb(e,t,r){return e.split("|").map(a=>Gve(a)).map(a=>{const s=[];return a.forEach((u,l)=>{jd(u.type).with("SegmentType.String",()=>{const c=Uve(u.value);s.push(...c)}).endsWith("SegmentType.Link",()=>{const c=u.value,f=S.jsxs("ruby",{children:[c.text,S.jsx("rt",{children:c.link})]},l+c.text);s.push(f)})}),s}).slice(0,r?void 0:t)}function Uve(e){if(!e)return[];const t=[];let r="",n=BC(e[0]);const i=o=>/[!-\/:-@\[-`{-~\u2000-\u206F\u3000-\u303F\uff00-\uffef]/g.test(o);for(const o of e)if(o===" ")r&&(t.push(r),r=""),t.push(" "),n=!1;else if(BC(o)&&!i(o))!n&&r&&(t.push(r),r=""),t.push(o),n=!0;else{if(i(o)){r?(r+=o,t.push(r),r=""):t.length>0?t[t.length-1]+=o:t.push(o);continue}n&&r&&(t.push(r),r=""),r+=o,n=!1}return r&&t.push(r),t}function Gve(e){const t=/(\[(.*?)\]\((.*?)\))|([^\[\]]+)/g,r=[];let n;for(;(n=t.exec(e))!==null;)if(n[1]){const i=n[2],o=n[3];r.push({type:"SegmentType.Link",value:{text:i,link:o}})}else{const i=n[0];r.push({type:"SegmentType.String",value:i})}return r}const zve=e=>{const t=kr("menu.options.pages.display.options."),r=ye(m=>m.userData),i=ye(m=>m.stage).bgName,o=Tx(r.optionData.textSpeed),a=Ek(r.optionData.textSpeed),s=r.optionData.textboxOpacity,u=P_(r.optionData.textSize)+"%",l=JN(),c=navigator.userAgent,f=/firefox/i.test(c),h=/^((?!chrome|android).)*safari/i.test(c),d=t("textPreview.text"),v=qb(d,3),g=eL,p={textArray:v,isText:!0,textDelay:o,showName:t("textPreview.title"),currentConcatDialogPrev:"",fontSize:u,currentDialogKey:"",isSafari:h,isFirefox:f,miniAvatar:"",textDuration:a,font:l,textSizeState:u,lineLimit:3,isUseStroke:!0,textboxOpacity:s};return S.jsx("div",{className:DC.textPreviewMain,style:{background:i?`bottom / cover no-repeat url(${i})`:"rgba(0, 0, 0, 0.1)"},children:S.jsx("div",{className:DC.textbox,children:S.jsx(g,{...p})},`previewTextbox-${o}`)})};const Ta=e=>{const{playSeEnter:t}=_r();return $.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(e.uniqueID);r!==null&&r.setAttribute("value",e.initValue.toString())},1)},[]),S.jsx("div",{className:"Option_WebGAL_slider",children:S.jsx("input",{id:e.uniqueID,type:"range",onChange:e.onChange,onFocus:t,onMouseEnter:t})})};function Hve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.display.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("fullScreen.title"),children:S.jsx(yi,{textList:r("fullScreen.options.on","fullScreen.options.off"),functionList:[()=>{t(ot({key:"fullScreen",value:Vn.on})),$e()},()=>{t(ot({key:"fullScreen",value:Vn.off})),$e()}],currentChecked:e.optionData.fullScreen})},"fullScreen"),S.jsx(ar,{title:r("textSpeed.title"),children:S.jsx(yi,{textList:r("textSpeed.options.slow","textSpeed.options.medium","textSpeed.options.fast"),functionList:[()=>{t(ot({key:"textSpeed",value:vr.slow})),$e()},()=>{t(ot({key:"textSpeed",value:vr.normal})),$e()},()=>{t(ot({key:"textSpeed",value:vr.fast})),$e()}],currentChecked:e.optionData.textSpeed})},"textSpeed"),S.jsx(ar,{title:r("textSize.title"),children:S.jsx(yi,{textList:r("textSize.options.small","textSize.options.medium","textSize.options.large"),functionList:[()=>{t(ot({key:"textSize",value:_n.small})),$e()},()=>{t(ot({key:"textSize",value:_n.medium})),$e()},()=>{t(ot({key:"textSize",value:_n.large})),$e()}],currentChecked:e.optionData.textSize})},"textSize"),S.jsx(ar,{title:r("textFont.title"),children:S.jsx(yi,{textList:r("textFont.options.siYuanSimSun","textFont.options.SimHei","textFont.options.lxgw"),functionList:[()=>{t(ot({key:"textboxFont",value:Hn.song})),$e()},()=>{t(ot({key:"textboxFont",value:Hn.hei})),$e()},()=>{t(ot({key:"textboxFont",value:Hn.lxgw})),$e()}],currentChecked:e.optionData.textboxFont})},"textFont"),S.jsx(ar,{title:r("textboxOpacity.title"),children:S.jsx(Ta,{initValue:e.optionData.textboxOpacity,uniqueID:r("textboxOpacity.title"),onChange:n=>{const i=n.target.value;t(ot({key:"textboxOpacity",value:Number(i)})),$e()}})},"textboxOpacity"),S.jsx(ar,{full:!0,title:r("textPreview.title"),children:S.jsx(zve,{})},"textPreview")]})}function Vve(){const e=ye(n=>n.userData),t=Ht(),r=kr("menu.options.pages.sound.options.");return S.jsxs("div",{className:dr.Options_main_content_half,children:[S.jsx(ar,{title:r("volumeMain.title"),children:S.jsx(Ta,{initValue:e.optionData.volumeMain,uniqueID:r("volumeMain.title"),onChange:n=>{const i=n.target.value;t(ot({key:"volumeMain",value:Number(i)})),$e()}})},"option4"),S.jsx(ar,{title:r("vocalVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.vocalVolume,uniqueID:r("vocalVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"vocalVolume",value:Number(i)})),$e()}})},"option5"),S.jsx(ar,{title:r("bgmVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.bgmVolume,uniqueID:r("bgmVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"bgmVolume",value:Number(i)})),$e()}})},"option6"),S.jsx(ar,{title:r("seVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.seVolume,uniqueID:r("seVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"seVolume",value:Number(i)})),$e()}})},"option7"),S.jsx(ar,{title:r("uiSeVolume.title"),children:S.jsx(Ta,{initValue:e.optionData.uiSeVolume,uniqueID:r("uiSeVolume.title"),onChange:n=>{const i=n.target.value;t(ot({key:"uiSeVolume",value:Number(i)})),$e()}})},"option8"),S.jsx(ar,{title:r("voiceOption.title"),children:S.jsx(yi,{textList:r("voiceStop.title","voiceContinue.title"),functionList:[()=>{t(ot({key:"voiceInterruption",value:hl.yes})),$e()},()=>{t(ot({key:"voiceInterruption",value:hl.no})),$e()}],currentChecked:e.optionData.voiceInterruption})},"option9")]})}const Wve=()=>{const{playSeEnter:e,playSeSwitch:t}=_r(),r=wn(0);$.useEffect(gl,[]);function n(o){return o===r.value?dr.Options_page_button+" "+dr.Options_page_button_active:dr.Options_page_button}const i=kr("menu.options.");return S.jsxs("div",{className:dr.Options_main,children:[S.jsx("div",{className:dr.Options_top,children:S.jsx("div",{className:dr.Options_title,children:S.jsx("div",{className:dr.Option_title_text,children:i("title")})})}),S.jsxs("div",{className:dr.Options_page_container,children:[S.jsxs("div",{className:dr.Options_button_list,children:[S.jsx("div",{onClick:()=>{r.set(0),t()},className:n(0),onMouseEnter:e,children:i("pages.system.title")}),S.jsx("div",{onClick:()=>{r.set(1),t()},className:n(1),onMouseEnter:e,children:i("pages.display.title")}),S.jsx("div",{onClick:()=>{r.set(2),t()},className:n(2),onMouseEnter:e,children:i("pages.sound.title")})]}),S.jsxs("div",{className:dr.Options_main_content,children:[r.value===1&&S.jsx(Hve,{}),r.value===0&&S.jsx(_ve,{}),r.value===2&&S.jsx(Vve,{})]})]})]})},qve=()=>{const e=ye(r=>r.GUI);let t;switch(e.currentMenuTag){case Ze.Save:t=S.jsx($pe,{});break;case Ze.Load:t=S.jsx(Upe,{});break;case Ze.Option:t=S.jsx(Wve,{});break}return S.jsx(S.Fragment,{children:e.showMenuPanel&&S.jsxs("div",{className:NC.Menu_main,children:[S.jsx("div",{className:NC.Menu_TagContent,children:t}),S.jsx(lpe,{})]})})},Xve="_MainStage_main_9enex_1",Yve="_MainStage_main_container_9enex_10",Kve="_MainStage_bgContainer_9enex_17",Zve="_MainStage_showBgSoftly_9enex_1",Qve="_MainStage_bgContainer_Settled_9enex_27",Jve="_MainStage_oldBgContainer_9enex_37",eme="_MainStage_oldBgFadeout_9enex_1",tme="_MainStage_oldBgContainer_Settled_9enex_47",rme="_pixiContainer_9enex_72",nme="_chooseContainer_9enex_77",km={MainStage_main:Xve,MainStage_main_container:Yve,MainStage_bgContainer:Kve,MainStage_showBgSoftly:Zve,MainStage_bgContainer_Settled:Qve,MainStage_oldBgContainer:Jve,MainStage_oldBgFadeout:eme,MainStage_oldBgContainer_Settled:tme,pixiContainer:rme,chooseContainer:nme},ime=()=>{var g;const e=ye(p=>p.stage),t=ye(p=>p.GUI.titleBgm),r=ye(p=>p.GUI.showTitle),n=ye(p=>p.userData),i=n.optionData.volumeMain,o=i*.01*n.optionData.vocalVolume*.01*e.vocalVolume*.01,a=i*.01*n.optionData.bgmVolume*.01*e.bgm.volume*.01,s=e.bgm.enter,u=e.uiSe,l=i*.01*(((g=n.optionData)==null?void 0:g.seVolume)??100)*.01,c=i*.01*(n.optionData.uiSeVolume??50)*.01,f=ye(p=>p.GUI.isEnterGame),[h,d]=$.useState(setTimeout(()=>{},0)),v=(p,m,y)=>{y>=0?p.volume=0:p.volume=m;const _=10,x=m/y*_,b=()=>{const w=setTimeout(()=>{p.volume+x>=m?p.volume=m:p.volume+x<=0?(p.volume=0,B.dispatch(Ee({key:"bgm",value:{src:"",enter:0,volume:100}}))):(p.volume+=x,b())},_);d(w)};b()};return $.useEffect(()=>{clearTimeout(h);const p=document.getElementById("currentBgm");p&&(s===0?p.volume=a:v(p,a,s))},[r,t,e.bgm.src,a,s]),$.useEffect(()=>{ne.debug(`设置背景音量:${a}`)},[a]),$.useEffect(()=>{ne.debug(`设置背景音量淡入时间: ${s}`)},[s]),$.useEffect(()=>{ne.debug(`设置语音音量:${o}`);const p=document.getElementById("currentVocal");p&&(p.volume=o.toString())},[o]),$.useEffect(()=>{if(u==="")return;const p=document.createElement("audio");p.src=u,p.loop=!1,isNaN(c)?(ne.error("UI SE Vol is NaN"),p.volume=isNaN(l)?i/100:l/100):p.volume=c,p.play(),p.addEventListener("ended",()=>{p.remove()}),B.dispatch(Ee({key:"uiSe",value:""}))},[u]),$.useEffect(()=>{ne.debug(`设置音效音量: ${l}`)},[l]),$.useEffect(()=>{ne.debug(`设置用户界面音效音量: ${c}`)},[c]),S.jsxs("div",{children:[S.jsx("audio",{id:"currentBgm",src:r?t:e.bgm.src,loop:!0,autoPlay:f},r.toString()+t),S.jsx("audio",{id:"currentVocal",src:e.playVocal})]})},ome=()=>{const e=ye(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),S.jsx("div",{className:In.FullScreenPerform_main,style:{width:t,height:r,top:n},children:S.jsx("div",{id:"videoContainer"})})},ame="_TextBox_EventHandler_449dq_2",sme="_TextBox_main_449dq_10",ume="_showSoftly_449dq_1",lme="_TextBox_textElement_449dq_38",cme="_TextBox_textElement_start_449dq_43",fme="_TextDelayShow_449dq_1",hme="_TextBox_textElement_Settled_449dq_48",dme="_TextBox_showName_449dq_52",pme="_miniAvatarContainer_449dq_68",vme="_miniAvatarImg_449dq_76",Im={TextBox_EventHandler:ame,TextBox_main:sme,showSoftly:ume,TextBox_textElement:lme,TextBox_textElement_start:cme,TextDelayShow:fme,TextBox_textElement_Settled:hme,TextBox_showName:dme,miniAvatarContainer:pme,miniAvatarImg:vme},mme=()=>{const e=ye(a=>a.stage),t=ye(a=>a.userData);$.useEffect(()=>{});const r=TG.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{var n,i,o;const r="bg-main";if(t!==""){const a=(n=O.gameplay.pixiStage)==null?void 0:n.getStageObjByKey(r);a&&a.sourceUrl!==t&&jC(a),(i=O.gameplay.pixiStage)==null||i.addBg(r,t),ec(t),ne.debug("重设背景");const{duration:s,animation:u}=Ri("bg-main","enter",!0);O.gameplay.pixiStage.registerPresetAnimation(u,"bg-main-softin",r,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects("bg-main-softin"),s)}else{const a=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(r);a&&jC(a)}},[t])}function jC(e){var i,o;(i=O.gameplay.pixiStage)==null||i.removeAnimationWithSetEffects("bg-main-softin");const t=e.key;e.key="bg-main-off",(o=O.gameplay.pixiStage)==null||o.removeStageObjectByKey(t);const{duration:r,animation:n}=Ri("bg-main-off","exit",!0);O.gameplay.pixiStage.registerAnimation(n,"bg-main-softoff","bg-main-off"),setTimeout(()=>{var a,s;(a=O.gameplay.pixiStage)==null||a.removeAnimation("bg-main-softoff"),(s=O.gameplay.pixiStage)==null||s.removeStageObjectByKey("bg-main-off")},r)}function yme(e){const{figNameLeft:t,figName:r,figNameRight:n,freeFigure:i,live2dMotion:o,live2dExpression:a}=e;$.useEffect(()=>{var s;for(const u of o)(s=O.gameplay.pixiStage)==null||s.changeModelMotionByKey(u.target,u.motion)},[o]),$.useEffect(()=>{var s;for(const u of a)(s=O.gameplay.pixiStage)==null||s.changeModelExpressionByKey(u.target,u.expression)},[a]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-center",u="fig-center-softin";if(r!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==r&&ui(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,r,"center"),/.json$/.test(r)&&Jc(s,r,"center",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("中立绘已重设");const{duration:p,animation:m}=Ri(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除中立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==r&&ui(v,u,e.effects)}},[r]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-left",u="fig-left-softin";if(t!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==t&&ui(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,t,"left"),/.json$/.test(t)&&Jc(s,t,"left",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("左立绘已重设");const{duration:p,animation:m}=Ri(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{ne.debug("移除左立绘");const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==t&&ui(v,u,e.effects)}},[t]),$.useEffect(()=>{var l,c,f,h,d;const s="fig-right",u="fig-right-softin";if(n!==""){const v=(l=O.gameplay.pixiStage)==null?void 0:l.getStageObjByKey(s);v&&v.sourceUrl!==n&&ui(v,u,e.effects),(c=O.gameplay.pixiStage)==null||c.addFigure(s,n,"right"),/.json$/.test(n)&&Jc(s,n,"right",((f=o.find(y=>y.target===s))==null?void 0:f.motion)??"",((h=a.find(y=>y.target===s))==null?void 0:h.expression)??""),ne.debug("右立绘已重设");const{duration:p,animation:m}=Ri(s,"enter");O.gameplay.pixiStage.registerPresetAnimation(m,u,s,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(u),p)}else{const v=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(s);v&&v.sourceUrl!==n&&ui(v,u,e.effects)}},[n]),$.useEffect(()=>{var u,l,c,f,h,d,v;for(const g of i){const p=`${g.key}`,m=`${g.key}-softin`;if(g.name!==""){const y=(u=O.gameplay.pixiStage)==null?void 0:u.getStageObjByKey(p);if(y){if(y.sourceUrl!==g.name){ui(y,m,e.effects),(l=O.gameplay.pixiStage)==null||l.addFigure(p,g.name,g.basePosition),ne.debug(`${g.key}立绘已重设`);const{duration:_,animation:x}=Ri(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(x,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),_)}}else{(c=O.gameplay.pixiStage)==null||c.addFigure(p,g.name,g.basePosition),/.json$/.test(g.name)&&Jc(p,g.name,g.basePosition,((f=o.find(w=>w.target===p))==null?void 0:f.motion)??"",((h=a.find(w=>w.target===p))==null?void 0:h.expression)??""),ne.debug(`${g.key}立绘已重设`);const{duration:x,animation:b}=Ri(p,"enter");O.gameplay.pixiStage.registerPresetAnimation(b,m,p,e.effects),setTimeout(()=>O.gameplay.pixiStage.removeAnimationWithSetEffects(m),x)}}else{const y=(d=O.gameplay.pixiStage)==null?void 0:d.getStageObjByKey(p);y&&y.sourceUrl!==g.name&&ui(y,m,e.effects)}}const s=(v=O.gameplay.pixiStage)==null?void 0:v.getFigureObjects();if(s){for(const g of s)if(!(g.key==="fig-left"||g.key==="fig-center"||g.key==="fig-right"||g.key.endsWith("-off"))){const p=g.key;if(i.findIndex(y=>y.key===p)<0){const y=`${g.key}-softin`;ui(g,y,e.effects)}}}},[i])}function ui(e,t,r){var u,l,c;if((u=O.gameplay.pixiStage)==null||u.removeAnimationWithSetEffects(t),O.gameplay.isFast){ne.info("快速模式,立刻关闭立绘"),(l=O.gameplay.pixiStage)==null||l.removeStageObjectByKey(e.key);return}const n=e.key;e.key=e.key+"-off",(c=O.gameplay.pixiStage)==null||c.removeStageObjectByKey(n);const i=e.key,o=i+"-softoff",{duration:a,animation:s}=Ri(i,"exit");O.gameplay.pixiStage.registerPresetAnimation(s,o,i,r),setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.removeAnimation(o),(h=O.gameplay.pixiStage)==null||h.removeStageObjectByKey(i)},a)}function Jc(...e){}function _me(e){const t=e.effects;setTimeout(()=>{xme(t)},10)}function xme(e){var r,n,i,o;const t=((r=O.gameplay.pixiStage)==null?void 0:r.getAllStageObj())??[];for(const a of t){const s=a.key,u=e.find(c=>c.target===s);if(!(((n=O.gameplay.pixiStage)==null?void 0:n.getAllLockedObject())??[]).includes(s))if(u){const c=(i=O.gameplay.pixiStage)==null?void 0:i.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(u.transform))}}else{const c=(o=O.gameplay.pixiStage)==null?void 0:o.getStageObjByKey(s);if(c){const f=c.pixiContainer;Object.assign(f,$C(lx))}}}}function $C(e){if(!e)return{};const{position:t,...r}=e;return{...r,x:t.x,y:t.y}}function bme(){const e=ye(t=>t.stage);return gme(e),yme(e),_me(e),S.jsx("div",{style:{display:"none"}})}const Sme="_introContainer_119k8_1",wme={introContainer:Sme};function Eme(){return S.jsx("div",{className:wme.introContainer,id:"introContainer"})}function UC(e){const t=document.getElementById("textBoxMain");if(!t)return!1;let r=t.getBoundingClientRect();return e.clientX>r.left&&e.clientXr.top&&e.clientY{n(Me({component:"controlsVisibility",visibility:!1}))},1e3)):Tme(e,r,n)}const Ame=()=>{const e=ye(n=>n.stage),t=ye(n=>n.GUI),r=Ht();return Gte(),S.jsxs("div",{className:km.MainStage_main,children:[S.jsx(ome,{}),S.jsx(bme,{}),S.jsx("div",{id:"pixiContianer",className:km.pixiContainer,style:{zIndex:Vb?"-5":void 0}}),S.jsx("div",{id:"chooseContainer",className:km.chooseContainer}),t.showTextBox&&e.enableFilm===""&&!e.isDisableTextbox&&S.jsx($ve,{}),t.showTextBox&&e.enableFilm!==""&&S.jsx(mme,{}),S.jsx(ime,{}),S.jsx("div",{onClick:()=>{if(!t.showTextBox){r(Me({component:"showTextBox",visibility:!0}));return}Hx(),Vt()},onDoubleClick:()=>{O.events.fullscreenDbClick.emit()},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"},onMouseMove:n=>!t.showControls&&Ome(n,e,t,r)}),S.jsx(Eme,{})]})},Pme=()=>{const e=kr("gaming."),t=2.5,{i18n:r}=Ud(),{playSeEnter:n,playSeClick:i,playSeDialogOpen:o}=_r(),s=r.language==="fr";let u=42,l="150%";s&&(l="125%",u=40);const c=ye(m=>m.GUI),f=ye(m=>m.stage),h=Ht(),d=(m,y)=>{h(Me({component:m,visibility:y}))},v=m=>{h(jo(m))},g=ye(m=>m.userData.saveData);let p=S.jsx("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:S.jsx("div",{style:{fontSize:"125%"},children:e("noSaving")})});if(g[0]){const m=g[0];p=S.jsxs("div",{className:he.slPreviewMain,children:[S.jsx("div",{className:he.imgContainer,children:S.jsx("img",{style:{height:"100%"},alt:"q-save-preview image",src:m.previewImage})}),S.jsxs("div",{className:he.textContainer,children:[S.jsx("div",{children:m.nowStageState.showName}),S.jsx("div",{style:{fontSize:"75%",color:"rgb(55,60,56)"},children:m.nowStageState.showText})]})]})}return S.jsx(S.Fragment,{children:c.showTextBox&&f.enableFilm===""&&S.jsxs("div",{className:he.main,style:{visibility:c.controlsVisibility?"visible":"hidden"},children:[c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(Hde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.hide")})]}),!c.showTextBox&&S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showTextBox",!0),i()},onMouseEnter:n,children:[S.jsx(Vde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.show")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{d("showBacklog",!0),d("showTextBox",!1),i()},onMouseEnter:n,children:[S.jsx(Nde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.backlog")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{let m=document.getElementById("currentVocal");m!==null&&(m.currentTime=0,m.pause(),m==null||m.play()),i()},onMouseEnter:n,children:[S.jsx(Wde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.replay")})]}),S.jsxs("span",{id:"Button_ControlPanel_auto",className:he.singleButton,style:{fontSize:l},onClick:()=>{SI(),i()},onMouseEnter:n,children:[S.jsx(YN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.auto")})]}),S.jsxs("span",{id:"Button_ControlPanel_fast",className:he.singleButton,style:{fontSize:l},onClick:()=>{CI(),i()},onMouseEnter:n,children:[S.jsx(Mde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.forward")})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastsave,style:{fontSize:l},onClick:()=>{Hg(0),i()},onMouseEnter:n,children:[S.jsx(Lde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklySave")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastSPreview,children:p})]}),S.jsxs("span",{className:he.singleButton+" "+he.fastload,style:{fontSize:l},onClick:()=>{Qk(0),i()},onMouseEnter:n,children:[S.jsx(Fde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.quicklyLoad")}),S.jsx("div",{className:he.fastSlPreview+" "+he.fastLPreview,children:p})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(Ze.Save),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(KN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.save")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(Ze.Load),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(qN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.load")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{v(Ze.Option),d("showMenuPanel",!0),i()},onMouseEnter:n,children:[S.jsx(ZN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.options")})]}),S.jsxs("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{o(),Do({title:e("buttons.titleTips"),leftText:e("$common.yes"),rightText:e("$common.no"),leftFunc:()=>{Wb()},rightFunc:()=>{}})},onMouseEnter:n,children:[S.jsx(XN,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}),S.jsx("span",{className:he.button_text,children:e("buttons.title")})]}),S.jsx("span",{className:he.singleButton,style:{fontSize:l},onClick:()=>{upe(),i()},onMouseEnter:n,children:c.showControls?S.jsx(Ude,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t}):S.jsx(Yde,{className:he.button,theme:"outline",size:u,fill:"#f5f5f7",strokeWidth:t})})]})})},kme=()=>{var h,d;const e=kr("gaming."),{playSeEnter:t,playSeClick:r}=_r(),n=ye(v=>v.GUI),i=Ht(),o="0.8em",[a,s]=$.useState(!1),[u,l]=$.useState(!1);let c=$.useRef();const f=$.useMemo(()=>{let v=[];for(let g=0;gS.jsx("div",{children:b.map((T,k)=>T==="
"?S.jsx("br",{},`br${k}`):T)},`backlog-line-${w}`)),x=S.jsxs("div",{className:qt.backlog_item,style:{animationDelay:`${20*(O.backlogManager.getBacklog().length-g)}ms`},children:[S.jsxs("div",{className:qt.backlog_func_area,children:[S.jsxs("div",{className:qt.backlog_item_button_list,children:[S.jsx("div",{onClick:b=>{r(),rJ(g),b.preventDefault(),b.stopPropagation()},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(qde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}),p.currentStageState.vocal?S.jsx("div",{onClick:()=>{r();const b=document.getElementById("backlog_audio_play_element_"+g);if(b){b.currentTime=0;const w=B.getState().userData,T=w.optionData.volumeMain;b.volume=T*.01*w.optionData.vocalVolume*.01,b==null||b.play()}},onMouseEnter:t,className:qt.backlog_item_button_element,children:S.jsx(Kde,{theme:"outline",size:o,fill:"#ffffff",strokeWidth:3})}):null]}),S.jsx("div",{className:qt.backlog_item_content_name,children:p.currentStageState.showName})]}),S.jsx("div",{className:qt.backlog_item_content,children:S.jsx("span",{className:qt.backlog_item_content_text,children:_})}),S.jsx("audio",{id:"backlog_audio_play_element_"+g,src:p.currentStageState.vocal})]},"backlogItem"+p.currentStageState.showText+p.saveScene.currentSentenceId);v.unshift(x)}return v},[((d=(h=O.backlogManager.getBacklog()[O.backlogManager.getBacklog().length-1])==null?void 0:h.saveScene)==null?void 0:d.currentSentenceId)??0]);return $.useEffect(()=>{n.showBacklog?(c.current&&clearTimeout(c.current),s(!1),l(!0),setTimeout(()=>{l(!1)},0)):c.current=setTimeout(()=>{s(!0),c.current=void 0},700+80)},[n.showBacklog]),S.jsx(S.Fragment,{children:S.jsxs("div",{className:` ${n.showBacklog?qt.Backlog_main:qt.Backlog_main_out} ${a?qt.Backlog_main_out_IndexHide:""} - `,children:[S.jsxs("div",{className:qt.backlog_top,children:[S.jsx(WN,{className:qt.backlog_top_icon,onClick:()=>{r(),i(De({component:"showBacklog",visibility:!1})),i(De({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:qt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${qt.backlog_content} ${u?qt.Backlog_main_DisableScroll:""}`,children:f})]})})};function kme(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=ye(g=>g.userData.appreciationData),i="Title_BGM",o=En(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,v)=>{g.url===r&&(a=g.name,s=v)});const f=En("");a!==i&&a!==f.value&&f.set(a);const h=Ht();function d(g){const v=n.bgm[g];f.set(v.name),h(ph({asset:"titleBgm",value:v.url}))}const p=n.bgm.map((g,v)=>{let m=at.bgmElement;return g.name===f.value&&(m=m+" "+at.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(ph({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${v*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:at.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:at.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Fde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(YN,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Dde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(qde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:at.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:at.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(Gde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:at.bgmListContainer,children:[" ",p]})]})}function rge(e){const t=En(!1),{playSeEnter:r,playSeClick:n}=_r();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:at.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:at.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:at.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function nge(){const t=ye(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=En(1),{playSeEnter:i,playSeClick:o}=_r(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:at.cgMain,children:[S.jsx("div",{className:at.cgShowDiv,children:S.jsx("div",{className:at.cgShowDivWarpper,children:u})}),S.jsx("div",{className:at.cgContainer,children:a})]})}function ige(e,t){return Math.round(Math.random()*(t-e))+e}function oge(){const{playSeClick:e}=_r(),t=ye(i=>i.GUI.showExtra),r=Ht(),n=kr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:at.extra,children:[S.jsxs("div",{className:at.extra_top,children:[S.jsx(WN,{className:at.extra_top_icon,onClick:()=>{r(De({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:at.extra_title,children:n("title")})]}),S.jsxs("div",{className:at.mainContainer,children:[S.jsx(nge,{}),S.jsx(tge,{})]})]})})}const age="_tag_yghix_2",sge="_container_yghix_17",uge="_showContainer_yghix_1",lge="_singleButton_yghix_33",cge="_button_text_yghix_37",Lt={tag:age,container:sge,showContainer:uge,singleButton:lge,button_text:cge},fge=()=>{const e=En(!1),t=ye(o=>o.stage),r=Ht(),n=(o,a)=>{r(De({component:o,visibility:a}))},i=o=>{r(jo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Lt.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(Bde,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:Lt.container,children:[S.jsx("span",{className:Lt.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:Lt.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:Lt.singleButton,onClick:()=>{SR(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:Lt.singleButton,onClick:()=>{CR(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),Wb()},children:S.jsx("span",{className:Lt.button_text,children:"标题 / TITLE"})})]})]})})},hge="_devPanelMain_11x6i_1",dge="_devPanelOpener_11x6i_13",GC={devPanelMain:hge,devPanelOpener:dge};function pge(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function vge(){function e(){return!!window.location.hash.match(/dev/)}const t=En(!1),r=En(window.location.hash),n=ye(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=Ud(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>pge(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:GC.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:GC.devPanelOpener,children:"Open Dev Panel"})]})}const mge="_trans_8uz61_2",gge="_langWrapper_8uz61_10",yge="_lang_8uz61_10",_ge="_langSelect_8uz61_29",xge="_langSelectButton_8uz61_35",vu={trans:mge,langWrapper:gge,lang:yge,langSelect:_ge,langSelectButton:xge};function bge(){const e=QN(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:vu.trans,children:S.jsxs("div",{className:vu.langWrapper,children:[S.jsx("div",{className:vu.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:vu.langSelect,children:Object.keys(lh).map(i=>S.jsx("div",{className:vu.langSelectButton,onClick:()=>n(ia[i]),children:lh[i]},i))})]})})})}const Sge="_panic_overlay_main_1ysz4_1",wge={panic_overlay_main:Sge},Ege="_yoozle_blue_1r48o_1",Tge="_yoozle_red_1r48o_5",Cge="_yoozle_yellow_1r48o_9",Oge="_yoozle_green_1r48o_13",Age="_yoozle_e_rotate_1r48o_17",Pge="_yoozle_container_1r48o_22",kge="_yoozle_title_1r48o_28",Rge="_yoozle_search_1r48o_37",Ige="_yoozle_search_bar_1r48o_44",Nge="_yoozle_search_buttons_1r48o_51",Lge="_yoozle_button_1r48o_55",br={yoozle_blue:Ege,yoozle_red:Tge,yoozle_yellow:Cge,yoozle_green:Oge,yoozle_e_rotate:Age,yoozle_container:Pge,yoozle_title:kge,yoozle_search:Rge,yoozle_search_bar:Ige,yoozle_search_buttons:Nge,yoozle_button:Lge},Mge=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:br.yoozle_container,children:[S.jsx("div",{className:br.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:br.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:br.yoozle_red,children:"o"}),S.jsx("span",{className:br.yoozle_yellow,children:"o"}),S.jsx("span",{className:br.yoozle_blue,children:"z"}),S.jsx("span",{className:br.yoozle_green,children:"l"}),S.jsx("span",{className:`${br.yoozle_red} ${br.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:br.yoozle_search,children:[S.jsx("input",{className:br.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:br.yoozle_search_buttons,children:[S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),Dge=()=>{const e=ye(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),qn.createPortal(S.jsx("div",{className:t?wge.panic_overlay_main:"",children:t&&S.jsx(Mge,{})}),document.querySelector("div#panic-overlay"))};function Fge(){const e=ye(a=>a.userData),t=ye(a=>a.GUI),r=Ht(),n=e.optionData.fullScreen,i=t.isEnterGame;let o=window.innerHeight;$.useEffect(()=>{switch(n){case en.on:{i&&(document.documentElement.requestFullscreen(),La&&La.lock(["Escape","F11"]));break}case en.off:{document.fullscreenElement&&(document.exitFullscreen(),La&&La.unlock());break}}},[n]),$.useEffect(()=>{const a=()=>{n===en.on&&i&&o>window.innerHeight&&o!==window.innerWidth&&(r(rt({key:"fullScreen",value:en.off})),Me()),o=window.innerHeight};return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}},[n,o])}function Bge(){return $.useEffect(()=>{vde()},[]),Fge(),S.jsxs("div",{className:"App",children:[S.jsx(bge,{}),S.jsx(Ome,{}),S.jsx(Ame,{}),S.jsx(fge,{}),S.jsx(Pme,{}),S.jsx(tre,{}),S.jsx(are,{}),S.jsx(oge,{}),S.jsx(Wve,{}),S.jsx(ipe,{}),S.jsx(Dge,{}),S.jsx(vge,{})]})}function Zi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k_(e,t){return k_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k_(e,t)}function np(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k_(e,t)}function oc(e,t){if(t&&($t(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zi(e)}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zn(e)}function jge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ge(e){return sR(e)||jge(e)||uR(e)||lR()}function zC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};Cn(this,e),this.init(t,r)}return On(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||Uge,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function WC(e,t,r){var n=Xb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function Hge(e,t,r,n){var i=Xb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function kh(e,t){var r=Xb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Vge(e,t,r){var n=kh(e,r);return n!==void 0?n:kh(t,r)}function rL(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):rL(e[n],t[n],r):e[n]=t[n]);return e}function xa(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Wge={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function qge(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Wge[t]}):e}var ip=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Xge=[" ",",","?","!",";"];function Yge(e,t,r){t=t||"",r=r||"";var n=Xge.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Rh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Rh(u,l,r):void 0}i=i[n[o]]}return i}}function qC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Qge=function(e){np(r,e);var t=Kge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Cn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return On(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=kh(this.data,c);return f||!l||typeof a!="string"?f:Rh(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),WC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=kh(this.data,c)||{};s?rL(f,a,u):f=ef(ef({},f),a),WC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ef(ef({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(lo),nL={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function XC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var YC={},KC=function(e){np(r,e);var t=Jge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Cn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),zge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Zi(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Un.create("translator"),i}return On(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Yge(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if($t(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),$t(o)==="object"&&(o=tr({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],p=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var v=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(v).concat(f),usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:"".concat(d).concat(v).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:p,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(R&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,tr(tr({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var D=b==="[object Array]",F=D?[]:{},H=D?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);F[re]=this.translate(z,tr(tr({},o),{joinArrays:!1,ns:h})),F[re]===z&&(F[re]=y[re])}y=F}}else if(R&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,le=!1,Ue=o.count!==void 0&&typeof o.count!="string",me=r.hasDefaultValue(o),Q=Ue?this.pluralResolver.getSuffix(p,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&me&&(q=!0,y=L),this.isValidLookup(y)||(le=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&le?void 0:y,ae=me&&L!==y&&this.options.updateMissing;if(le||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",p,d,f,ae?L:y),l){var ge=this.resolve(f,tr(tr({},o),{},{keySeparator:!1}));ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var be=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var Ge=0;Ge1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),p=d.key;u=p;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var v=a.count!==void 0&&typeof a.count!="string",m=v&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!YC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(YC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[p];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,p,b,x,a);else{var T;v&&(T=o.pluralResolver.getSuffix(b,a.count,a));var R="".concat(o.options.pluralSeparator,"zero");if(v&&(w.push(p+T),m&&w.push(p+R)),y){var A="".concat(p).concat(o.options.contextSeparator).concat(a.context);w.push(A),v&&(w.push(A+T),m&&w.push(A+R))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(lo);function Nm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=function(){function e(t){Cn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Un.create("languageUtils")}return On(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Nm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),tye=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],rye={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},nye=["v1","v2","v3"],QC={zero:0,one:1,two:2,few:3,many:4,other:5};function iye(){var e={};return tye.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:rye[t.fc]}})}),e}var oye=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Cn(this,e),this.languageUtils=t,this.options=r,this.logger=Un.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=iye()}return On(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return QC[a]-QC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!nye.includes(this.options.compatibilityJSON)}}]),e}();function JC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vn(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Vge(e,t,r);return!o&&i&&typeof r=="string"&&(o=Rh(e,r,n),o===void 0&&(o=Rh(t,r,n))),o}var aye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cn(this,e),this.logger=Un.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return On(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:qge,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?xa(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xa(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?xa(n.nestingPrefix):n.nestingPrefixEscaped||xa("$t("),this.nestingSuffix=n.nestingSuffix?xa(n.nestingSuffix):n.nestingSuffixEscaped||xa(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(v){return v.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=eO(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,vn(vn(vn({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(eO(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,vn(vn(vn({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(v){for(l=0;s=v.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(p){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=VC(u));var _=v.safeValue(u);if(r=r.replace(s[0],_),p?(v.regex.lastIndex+=u.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,p){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var v=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(v[1]);d=v[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),p&&(u=vn(vn({},p),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=vn({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=VC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,p){return i.format(d,p,o.lng,vn(vn({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function li(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=$ge(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function ba(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var uye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cn(this,e),this.logger=Un.create("formatter"),this.options=t,this.formats={number:ba(function(r,n){var i=new Intl.NumberFormat(r,li({},n));return function(o){return i.format(o)}}),currency:ba(function(r,n){var i=new Intl.NumberFormat(r,li(li({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:ba(function(r,n){var i=new Intl.DateTimeFormat(r,li({},n));return function(o){return i.format(o)}}),relativetime:ba(function(r,n){var i=new Intl.RelativeTimeFormat(r,li({},n));return function(o){return i.format(o,n.range||"day")}}),list:ba(function(r,n){var i=new Intl.ListFormat(r,li({},n));return function(o){return i.format(o)}})},this.init(t)}return On(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=ba(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=sye(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var p=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=g.locale||g.lng||a.locale||a.lng||i;p=o.formats[h](l,v,li(li(li({},d),a),g))}catch(m){o.logger.warn(m)}return p}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nO(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var hye=function(e){np(r,e);var t=lye(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Cn(this,r),a=t.call(this),ip&&lo.call(Zi(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Un.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return On(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var p=!0;o.forEach(function(g){var v="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[v]=2:u.state[v]<0||(u.state[v]===1?c[v]===void 0&&(c[v]=!0):(u.state[v]=1,p=!1,c[v]===void 0&&(c[v]=!0),l[v]===void 0&&(l[v]=!0),h[g]===void 0&&(h[g]=!0)))}),p||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){Hge(f.loaded,[u],l),fye(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(p){c[h][p]===void 0&&(c[h][p]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,v){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&v&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=nO(nO({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(p){return c(null,p)}).catch(c):c(null,d)}catch(p){c(p)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(lo);function iO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if($t(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),$t(t[2])==="object"||$t(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(){}function vye(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Ih=function(e){np(r,e);var t=dye(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Cn(this,r),n=t.call(this),ip&&lo.call(Zi(n)),n.options=oO(i),n.services={},n.logger=Un,n.modules={external:[]},vye(Zi(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),oc(n,Zi(n));setTimeout(function(){n.init(i,o)},0)}return n}return On(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=iO();this.options=Rn(Rn(Rn({},s),this.options),oO(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Rn(Rn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?Un.init(u(this.modules.logger),this.options):Un.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=uye);var c=new ZC(this.options);this.store=new Qge(this.options.resources,this.options);var f=this.services;f.logger=Un,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new oye(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new aye(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new hye(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var p=["addResource","addResources","addResourceBundle","removeResourceBundle"];p.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=mu(),v=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var p=o.services.languageUtils.toResolveHierarchy(d);p.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=mu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=tf),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&nL.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=mu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(p){l(p,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if($t(f)!=="object"){for(var d=arguments.length,p=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,p){var g=o.services.backendConnector.state["".concat(d,"|").concat(p)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=mu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=mu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new ZC(iO());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=Rn(Rn(Rn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=Rn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new KC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Ih(e,t)});var fr=Ih.createInstance();fr.createInstance=Ih.createInstance;fr.createInstance;fr.dir;fr.init;fr.loadResources;fr.reloadResources;fr.use;fr.changeLanguage;fr.getFixedT;fr.t;fr.exists;fr.setDefaultNamespace;fr.hasLoadedNamespace;fr.loadNamespaces;fr.loadLanguages;fr.use(PJ).init({resources:vG||{},lng:ia[mG]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));qn.render(S.jsx(Y.StrictMode,{children:S.jsx(NJ,{children:S.jsx(pZ,{store:B,children:S.jsx(Bge,{})})})}),document.getElementById("root"));export{gr as C,$n as S,de as T,O as W,yye as r}; + `,children:[S.jsxs("div",{className:qt.backlog_top,children:[S.jsx(WN,{className:qt.backlog_top_icon,onClick:()=>{r(),i(Me({component:"showBacklog",visibility:!1})),i(Me({component:"showTextBox",visibility:!0}))},onMouseEnter:t,theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),S.jsx("div",{className:qt.backlog_title,onClick:()=>{ne.info("Rua! Testing")},children:e("buttons.backlog")})]}),n.showBacklog&&S.jsx("div",{className:`${qt.backlog_content} ${u?qt.Backlog_main_DisableScroll:""}`,children:f})]})})};function Ime(e){let t=[],r="";for(let n=0;ng.GUI.titleBgm),n=ye(g=>g.userData.appreciationData),i="Title_BGM",o=wn(!1);let a=i,s=-1;const u=39,l=o.value?"80%":"10%",c=n.bgm.length;n.bgm.forEach((g,p)=>{g.url===r&&(a=g.name,s=p)});const f=wn("");a!==i&&a!==f.value&&f.set(a);const h=Ht();function d(g){const p=n.bgm[g];f.set(p.name),h(ph({asset:"titleBgm",value:p.url}))}const v=n.bgm.map((g,p)=>{let m=at.bgmElement;return g.name===f.value&&(m=m+" "+at.bgmElement_active),S.jsx("div",{onClick:()=>{e(),f.set(g.name),h(ph({asset:"titleBgm",value:g.url}))},className:m,style:{animationDelay:`${p*150}ms`},onMouseEnter:t,children:g.name},g.name)});return S.jsxs("div",{className:at.bgmContainer,style:{maxHeight:l},children:[S.jsxs("div",{className:at.bgmPlayerMain,children:[S.jsx("div",{onClick:()=>{e(),s<=0?d(c-1):d(s-1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Bde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e();const g=document.getElementById("currentBgm");g==null||g.play().then()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(YN,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),s>=c-1?d(0):d(s+1)},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Dde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{onClick:()=>{e(),document.getElementById("currentBgm").pause()},onMouseEnter:t,className:at.bgmControlButton,children:S.jsx(Xde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})}),S.jsx("div",{className:at.bgmName,children:a}),S.jsx("div",{onClick:()=>{e(),o.set(!o.value)},onMouseEnter:t,className:at.bgmControlButton,style:{marginLeft:"auto"},children:S.jsx(zde,{theme:"filled",size:u,fill:"#fff",strokeWidth:3,strokeLinejoin:"miter"})})]}),o.value&&S.jsxs("div",{className:at.bgmListContainer,children:[" ",v]})]})}function nge(e){const t=wn(!1),{playSeEnter:r,playSeClick:n}=_r();return S.jsxs(S.Fragment,{children:[t.value&&S.jsx("div",{onClick:()=>{t.set(!t.value),n()},className:at.showFullContainer,onMouseEnter:r,children:S.jsx("div",{className:at.showFullCgMain,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),S.jsx("div",{onClick:()=>{t.set(!t.value),n()},onMouseEnter:r,style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:at.cgElement,children:S.jsx("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function ige(){const t=ye(l=>l.userData.appreciationData),r=Math.ceil(t.cg.length/8),n=wn(1),{playSeEnter:i,playSeClick:o}=_r(),a=[],s=t.cg.length;for(let l=(n.value-1)*8;l{n.set(l),o()},onMouseEnter:i,className:c,children:l},"nav"+l);u.push(f)}return S.jsxs("div",{className:at.cgMain,children:[S.jsx("div",{className:at.cgShowDiv,children:S.jsx("div",{className:at.cgShowDivWarpper,children:u})}),S.jsx("div",{className:at.cgContainer,children:a})]})}function oge(e,t){return Math.round(Math.random()*(t-e))+e}function age(){const{playSeClick:e}=_r(),t=ye(i=>i.GUI.showExtra),r=Ht(),n=kr("extra.");return S.jsx(S.Fragment,{children:t&&S.jsxs("div",{className:at.extra,children:[S.jsxs("div",{className:at.extra_top,children:[S.jsx(WN,{className:at.extra_top_icon,onClick:()=>{r(Me({component:"showExtra",visibility:!1})),e()},onMouseEnter:e,theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),S.jsx("div",{className:at.extra_title,children:n("title")})]}),S.jsxs("div",{className:at.mainContainer,children:[S.jsx(ige,{}),S.jsx(rge,{})]})]})})}const sge="_tag_yghix_2",uge="_container_yghix_17",lge="_showContainer_yghix_1",cge="_singleButton_yghix_33",fge="_button_text_yghix_37",Lt={tag:sge,container:uge,showContainer:lge,singleButton:cge,button_text:fge},hge=()=>{const e=wn(!1),t=ye(o=>o.stage),r=Ht(),n=(o,a)=>{r(Me({component:o,visibility:a}))},i=o=>{r(jo(o))};return S.jsx(S.Fragment,{children:t.enableFilm!==""&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:Lt.tag,onClick:()=>{e.set(!e.value)},children:S.jsx(jde,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&S.jsxs("div",{className:Lt.container,children:[S.jsx("span",{className:Lt.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"剧情回想 / BACKLOG"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o==null||o.play())},children:S.jsx("span",{className:Lt.button_text,children:"重播语音 / REPLAY VOICE"})}),S.jsx("span",{id:"Button_ControlPanel_auto",className:Lt.singleButton,onClick:()=>{SI(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"自动模式 / AUTO"})}),S.jsx("span",{id:"Button_ControlPanel_fast",className:Lt.singleButton,onClick:()=>{CI(),e.set(!e.value)},children:S.jsx("span",{className:Lt.button_text,children:"快进 / FAST"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Save),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"存档 / SAVE"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Load),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"读档 / LOAD"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),i(Ze.Option),n("showMenuPanel",!0)},children:S.jsx("span",{className:Lt.button_text,children:"选项 / OPTIONS"})}),S.jsx("span",{className:Lt.singleButton,onClick:()=>{e.set(!e.value),Wb()},children:S.jsx("span",{className:Lt.button_text,children:"标题 / TITLE"})})]})]})})},dge="_devPanelMain_11x6i_1",pge="_devPanelOpener_11x6i_13",GC={devPanelMain:dge,devPanelOpener:pge};function vge(){document.getElementById("pixiCanvas").toBlob(t=>{if(t){const r=document.createElement("a");document.body.append(r),r.download="screenshot",r.href=URL.createObjectURL(t),r.click(),r.remove()}},"image/png")}function mge(){function e(){return!!window.location.hash.match(/dev/)}const t=wn(!1),r=wn(window.location.hash),n=ye(u=>u.stage);$.useEffect(()=>{window.onhashchange=()=>{r.set(window.location.hash)}},[]);const i=e(),{t:o,i18n:a}=Ud(),s=S.jsxs(S.Fragment,{children:[S.jsx("div",{onClick:()=>vge(),children:"Save PIXI Screenshot"}),S.jsxs("div",{children:["Current Language:",a.language]}),S.jsx("div",{onClick:()=>{var u;return(u=O.gameplay.pixiStage)==null?void 0:u.removeAnimation("snow-Ticker")},children:"Remove Snow Ticker"}),S.jsx("div",{children:"Stage State"}),S.jsx("div",{children:JSON.stringify(n,null," ")})]});return S.jsxs(S.Fragment,{children:[i&&t.value&&S.jsxs("div",{className:GC.devPanelMain,children:[S.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[S.jsx("div",{onClick:()=>t.set(!1),style:{fontSize:"150%",padding:"0 0 0 15px",cursor:"pointer"},children:"×"}),S.jsx("div",{style:{padding:"0 0 0 15px",fontSize:"115%"},children:"WebGAL DEV PANEL"})]}),S.jsx("div",{style:{padding:"10px 10px 10px 10px",overflow:"auto"},children:s})]}),!t.value&&i&&S.jsx("div",{onClick:()=>t.set(!0),className:GC.devPanelOpener,children:"Open Dev Panel"})]})}const gge="_trans_8uz61_2",yge="_langWrapper_8uz61_10",_ge="_lang_8uz61_10",xge="_langSelect_8uz61_29",bge="_langSelectButton_8uz61_35",mu={trans:gge,langWrapper:yge,lang:_ge,langSelect:xge,langSelectButton:bge};function Sge(){const e=QN(),[t,r]=$.useState(!1);$.useEffect(()=>{(window==null?void 0:window.localStorage.getItem("lang"))?e(Number(window==null?void 0:window.localStorage.getItem("lang")),!1):r(!0)},[]);const n=i=>{r(!1),e(i)};return S.jsx(S.Fragment,{children:t&&S.jsx("div",{className:mu.trans,children:S.jsxs("div",{className:mu.langWrapper,children:[S.jsx("div",{className:mu.lang,children:"LANGUAGE SELECT"}),S.jsx("div",{className:mu.langSelect,children:Object.keys(lh).map(i=>S.jsx("div",{className:mu.langSelectButton,onClick:()=>n(ia[i]),children:lh[i]},i))})]})})})}const wge="_panic_overlay_main_1ysz4_1",Ege={panic_overlay_main:wge},Tge="_yoozle_blue_1r48o_1",Cge="_yoozle_red_1r48o_5",Oge="_yoozle_yellow_1r48o_9",Age="_yoozle_green_1r48o_13",Pge="_yoozle_e_rotate_1r48o_17",kge="_yoozle_container_1r48o_22",Ige="_yoozle_title_1r48o_28",Rge="_yoozle_search_1r48o_37",Nge="_yoozle_search_bar_1r48o_44",Lge="_yoozle_search_buttons_1r48o_51",Mge="_yoozle_button_1r48o_55",br={yoozle_blue:Tge,yoozle_red:Cge,yoozle_yellow:Oge,yoozle_green:Age,yoozle_e_rotate:Pge,yoozle_container:kge,yoozle_title:Ige,yoozle_search:Rge,yoozle_search_bar:Nge,yoozle_search_buttons:Lge,yoozle_button:Mge},Fge=()=>($.useEffect(()=>{const e="Yoozle Search",t=document.title;return document.title=e,()=>{document.title=t}},[]),S.jsxs("div",{className:br.yoozle_container,children:[S.jsx("div",{className:br.yoozle_title,children:S.jsxs("span",{children:[S.jsx("span",{className:br.yoozle_blue,style:{marginRight:"1px"},children:"Y"}),S.jsx("span",{className:br.yoozle_red,children:"o"}),S.jsx("span",{className:br.yoozle_yellow,children:"o"}),S.jsx("span",{className:br.yoozle_blue,children:"z"}),S.jsx("span",{className:br.yoozle_green,children:"l"}),S.jsx("span",{className:`${br.yoozle_red} ${br.yoozle_e_rotate}`,children:"e"})]})}),S.jsxs("div",{className:br.yoozle_search,children:[S.jsx("input",{className:br.yoozle_search_bar,type:"text",defaultValue:""}),S.jsxs("div",{className:br.yoozle_search_buttons,children:[S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Yoozle Search"}),S.jsx("input",{className:br.yoozle_button,type:"submit",value:"Feeling Lucky"})]})]})]})),Dge=()=>{const e=ye(n=>n.GUI),[t,r]=$.useState(!1);return $.useEffect(()=>{r(e.showPanicOverlay)},[e.showPanicOverlay]),qn.createPortal(S.jsx("div",{className:t?Ege.panic_overlay_main:"",children:t&&S.jsx(Fge,{})}),document.querySelector("div#panic-overlay"))};function Bge(){const e=ye(i=>i.userData),t=ye(i=>i.GUI);Ht();const r=e.optionData.fullScreen,n=t.isEnterGame;$.useEffect(()=>{switch(r){case Vn.on:{n&&(document.documentElement.requestFullscreen(),La&&La.lock(["Escape","F11"]));break}case Vn.off:{document.fullscreenElement&&(document.exitFullscreen(),La&&La.unlock());break}}},[r])}function jge(){return $.useEffect(()=>{mde()},[]),Bge(),S.jsxs("div",{className:"App",children:[S.jsx(Sge,{}),S.jsx(Ame,{}),S.jsx(Pme,{}),S.jsx(hge,{}),S.jsx(kme,{}),S.jsx(rre,{}),S.jsx(sre,{}),S.jsx(age,{}),S.jsx(qve,{}),S.jsx(ope,{}),S.jsx(Dge,{}),S.jsx(mge,{})]})}function Zi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k_(e,t){return k_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k_(e,t)}function np(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k_(e,t)}function oc(e,t){if(t&&($t(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zi(e)}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zn(e)}function $ge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uge(e){return sI(e)||$ge(e)||uI(e)||lI()}function zC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.init(t,r)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||Gge,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i1?n-1:0),o=1;o-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:n(o.shift())}}function WC(e,t,r){var n=Xb(e,t,Object),i=n.obj,o=n.k;i[o]=r}function Vge(e,t,r,n){var i=Xb(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],n&&(o[a]=o[a].concat(r)),n||o[a].push(r)}function kh(e,t){var r=Xb(e,t),n=r.obj,i=r.k;if(n)return n[i]}function Wge(e,t,r){var n=kh(e,r);return n!==void 0?n:kh(t,r)}function rL(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):rL(e[n],t[n],r):e[n]=t[n]);return e}function xa(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var qge={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Xge(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return qge[t]}):e}var ip=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Yge=[" ",",","?","!",";"];function Kge(e,t,r){t=t||"",r=r||"";var n=Yge.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Ih(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;oo+a;)a++,s=n.slice(o,o+a).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var l=n.slice(o+a).join(r);return l?Ih(u,l,r):void 0}i=i[n[o]]}return i}}function qC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Jge=function(e){np(r,e);var t=Zge(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Tn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),i.data=n||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Cn(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(u?a.split(u):a)),i.indexOf(".")>-1&&(c=i.split("."));var f=kh(this.data,c);return f||!l||typeof a!="string"?f:Ih(this.data&&this.data[i]&&this.data[i][o],a,u)}},{key:"addResource",value:function(i,o,a,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},l=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,c=[i,o];a&&(c=c.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(c=i.split("."),s=o,o=c[1]),this.addNamespaces(o),WC(this.data,c,s),u.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in a)(typeof a[u]=="string"||Object.prototype.toString.apply(a[u])==="[object Array]")&&this.addResource(i,o,u,a[u],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),s=a,a=o,o=c[1]),this.addNamespaces(o);var f=kh(this.data,c)||{};s?rL(f,a,u):f=ef(ef({},f),a),WC(this.data,c,f),l.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ef(ef({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(lo),nL={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(r=a.processors[s].process(r,n,i,o))}),r}};function XC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var YC={},KC=function(e){np(r,e);var t=eye(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Tn(this,r),i=t.call(this),ip&&lo.call(Zi(i)),Hge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Zi(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=$n.create("translator"),i}return Cn(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],l=a&&i.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Kge(i,a,s);if(l&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var h=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),i=h.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,o,a){var s=this;if($t(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),$t(o)==="object"&&(o=tr({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,h=c.namespaces,d=h[h.length-1],v=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(g){var p=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(d).concat(p).concat(f),usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:"".concat(d).concat(p).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:v,usedNS:d}:f}var m=this.resolve(i,o),y=m&&m.res,_=m&&m.usedKey||f,x=m&&m.exactUsedKey||f,b=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],T=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(k&&y&&A&&w.indexOf(b)<0&&!(typeof T=="string"&&b==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,y,tr(tr({},o),{},{ns:h})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(m.res=P,m):P}if(l){var F=b==="[object Array]",D=F?[]:{},H=F?x:_;for(var re in y)if(Object.prototype.hasOwnProperty.call(y,re)){var z="".concat(H).concat(l).concat(re);D[re]=this.translate(z,tr(tr({},o),{joinArrays:!1,ns:h})),D[re]===z&&(D[re]=y[re])}y=D}}else if(k&&typeof T=="string"&&b==="[object Array]")y=y.join(T),y&&(y=this.extendTranslation(y,i,o,a));else{var q=!1,le=!1,Ue=o.count!==void 0&&typeof o.count!="string",me=r.hasDefaultValue(o),Q=Ue?this.pluralResolver.getSuffix(v,o.count,o):"",L=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(y)&&me&&(q=!0,y=L),this.isValidLookup(y)||(le=!0,y=f);var V=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=V&&le?void 0:y,ae=me&&L!==y&&this.options.updateMissing;if(le||q||ae){if(this.logger.log(ae?"updateKey":"missingKey",v,d,f,ae?L:y),l){var ge=this.resolve(f,tr(tr({},o),{},{keySeparator:!1}));ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var be=[],Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(var Ge=0;Ge1&&arguments[1]!==void 0?arguments[1]:{},s,u,l,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(h){if(!o.isValidLookup(s)){var d=o.extractFromKey(h,a),v=d.key;u=v;var g=d.namespaces;o.options.fallbackNS&&(g=g.concat(o.options.fallbackNS));var p=a.count!==void 0&&typeof a.count!="string",m=p&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),y=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",_=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);g.forEach(function(x){o.isValidLookup(s)||(f=x,!YC["".concat(_[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(YC["".concat(_[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(_.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(function(b){if(!o.isValidLookup(s)){c=b;var w=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(w,v,b,x,a);else{var T;p&&(T=o.pluralResolver.getSuffix(b,a.count,a));var k="".concat(o.options.pluralSeparator,"zero");if(p&&(w.push(v+T),m&&w.push(v+k)),y){var A="".concat(v).concat(o.options.contextSeparator).concat(a.context);w.push(A),p&&(w.push(A+T),m&&w.push(A+k))}}for(var P;P=w.pop();)o.isValidLookup(s)||(l=P,s=o.getResource(b,x,P,a))}}))})}}),{res:s,usedKey:u,exactUsedKey:l,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),r}(lo);function Nm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=function(){function e(t){Tn(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$n.create("languageUtils")}return Cn(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Nm(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Nm(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(o){if(!i){var a=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&r.forEach(function(o){if(!i){var a=n.getLanguagePartFromCode(o);if(n.isSupportedCode(a))return i=a;i=n.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),a=[],s=function(l){l&&(i.isSupportedCode(l)?a.push(l):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),o.forEach(function(u){a.indexOf(u)<0&&s(i.formatLanguageCode(u))}),a}}]),e}(),rye=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],nye={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},iye=["v1","v2","v3"],QC={zero:0,one:1,two:2,few:3,many:4,other:5};function oye(){var e={};return rye.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:nye[t.fc]}})}),e}var aye=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Tn(this,e),this.languageUtils=t,this.options=r,this.logger=$n.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=oye()}return Cn(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return QC[a]-QC[s]}).map(function(a){return"".concat(n.options.prepend).concat(a)}):o.numbers.map(function(a){return n.getSuffix(r,a,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!iye.includes(this.options.compatibilityJSON)}}]),e}();function JC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Wge(e,t,r);return!o&&i&&typeof r=="string"&&(o=Ih(e,r,n),o===void 0&&(o=Ih(t,r,n))),o}var sye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return Cn(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:Xge,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?xa(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xa(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?xa(n.nestingPrefix):n.nestingPrefixEscaped||xa("$t("),this.nestingSuffix=n.nestingSuffix?xa(n.nestingSuffix):n.nestingSuffixEscaped||xa(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,o){var a=this,s,u,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(p){return p.replace(/\$/g,"$$$$")}var h=function(m){if(m.indexOf(a.formatSeparator)<0){var y=eO(n,c,m,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(y,void 0,i,pn(pn(pn({},o),n),{},{interpolationkey:m})):y}var _=m.split(a.formatSeparator),x=_.shift().trim(),b=_.join(a.formatSeparator).trim();return a.format(eO(n,c,x,a.options.keySeparator,a.options.ignoreJSONStructure),b,i,pn(pn(pn({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(m){return f(m)}},{regex:this.regexp,safeValue:function(m){return a.escapeValue?f(a.escape(m)):f(m)}}];return g.forEach(function(p){for(l=0;s=p.regex.exec(r);){var m=s[1].trim();if(u=h(m),u===void 0)if(typeof d=="function"){var y=d(r,s,o);u=typeof y=="string"?y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))u="";else if(v){u=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(m," for interpolating ").concat(r)),u="";else typeof u!="string"&&!a.useRawValueToEscape&&(u=VC(u));var _=p.safeValue(u);if(r=r.replace(s[0],_),v?(p.regex.lastIndex+=u.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,l++,l>=a.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,u;function l(d,v){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var p=d.split(new RegExp("".concat(g,"[ ]*{"))),m="{".concat(p[1]);d=p[0],m=this.interpolate(m,u);var y=m.match(/'/g),_=m.match(/"/g);(y&&y.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{u=JSON.parse(m),v&&(u=pn(pn({},v),u))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),x),"".concat(d).concat(g).concat(m)}return delete u.defaultValue,d}for(;a=this.nestingRegexp.exec(r);){var c=[];u=pn({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var h=a[1].split(this.formatSeparator).map(function(d){return d.trim()});a[1]=h.shift(),c=h,f=!0}if(s=n(l.call(this,a[1].trim(),u),u),s&&a[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=VC(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(r)),s=""),f&&(s=c.reduce(function(d,v){return i.format(d,v,o.lng,pn(pn({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),r=r.replace(a[0],s),this.regexp.lastIndex=0}return r}}]),e}();function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function li(e){for(var t=1;t-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),u=Uge(s),l=u[0],c=u.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");r[l.trim()]||(r[l.trim()]=f),f==="false"&&(r[l.trim()]=!1),f==="true"&&(r[l.trim()]=!0),isNaN(f)||(r[l.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function ba(e){var t={};return function(n,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(n)}}var lye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(this,e),this.logger=$n.create("formatter"),this.options=t,this.formats={number:ba(function(r,n){var i=new Intl.NumberFormat(r,li({},n));return function(o){return i.format(o)}}),currency:ba(function(r,n){var i=new Intl.NumberFormat(r,li(li({},n),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:ba(function(r,n){var i=new Intl.DateTimeFormat(r,li({},n));return function(o){return i.format(o)}}),relativetime:ba(function(r,n){var i=new Intl.RelativeTimeFormat(r,li({},n));return function(o){return i.format(o,n.range||"day")}}),list:ba(function(r,n){var i=new Intl.ListFormat(r,li({},n));return function(o){return i.format(o)}})},this.init(t)}return Cn(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=ba(n)}},{key:"format",value:function(r,n,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(l,c){var f=uye(c),h=f.formatName,d=f.formatOptions;if(o.formats[h]){var v=l;try{var g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},p=g.locale||g.lng||a.locale||a.lng||i;v=o.formats[h](l,p,li(li(li({},d),a),g))}catch(m){o.logger.warn(m)}return v}else o.logger.warn("there was no format function for ".concat(h));return l},r);return u}}]),e}();function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nO(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hye(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var dye=function(e){np(r,e);var t=cye(r);function r(n,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Tn(this,r),a=t.call(this),ip&&lo.call(Zi(a)),a.backend=n,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=$n.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Cn(r,[{key:"queueLoad",value:function(i,o,a,s){var u=this,l={},c={},f={},h={};return i.forEach(function(d){var v=!0;o.forEach(function(g){var p="".concat(d,"|").concat(g);!a.reload&&u.store.hasResourceBundle(d,g)?u.state[p]=2:u.state[p]<0||(u.state[p]===1?c[p]===void 0&&(c[p]=!0):(u.state[p]=1,v=!1,c[p]===void 0&&(c[p]=!0),l[p]===void 0&&(l[p]=!0),h[g]===void 0&&(h[g]=!0)))}),v||(f[d]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),u=s[0],l=s[1];o&&this.emit("failedLoading",u,l,o),a&&this.store.addResourceBundle(u,l,a),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){Vge(f.loaded,[u],l),hye(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(h){c[h]||(c[h]={});var d=f.loaded[h];d.length&&d.forEach(function(v){c[h][v]===void 0&&(c[h][v]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:u,wait:l,callback:c});return}this.readingCalls++;var f=function(g,p){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(g&&p&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var l=this.queueLoad(i,o,s,u);if(!l.toLoad.length)return l.pending.length||u(),null;l.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],l=s[1];this.read(u,l,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(a,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(l," for language ").concat(u),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,a,s,u){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=nO(nO({},l),{},{isUpdate:u}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var d;h.length===5?d=h(i,o,a,s,f):d=h(i,o,a,s),d&&typeof d.then=="function"?d.then(function(v){return c(null,v)}).catch(c):c(null,d)}catch(v){c(v)}else h(i,o,a,s,c,f)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),r}(lo);function iO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if($t(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),$t(t[2])==="object"||$t(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(){}function mye(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Rh=function(e){np(r,e);var t=pye(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Tn(this,r),n=t.call(this),ip&&lo.call(Zi(n)),n.options=oO(i),n.services={},n.logger=$n,n.modules={external:[]},mye(Zi(n)),o&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,o),oc(n,Zi(n));setTimeout(function(){n.init(i,o)},0)}return n}return Cn(r,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=iO();this.options=kn(kn(kn({},s),this.options),oO(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=kn(kn({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(m){return m?typeof m=="function"?new m:m:null}if(!this.options.isClone){this.modules.logger?$n.init(u(this.modules.logger),this.options):$n.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=lye);var c=new ZC(this.options);this.store=new Jge(this.options.resources,this.options);var f=this.services;f.logger=$n,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new aye(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(l),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new sye(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new dye(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var y=arguments.length,_=new Array(y>1?y-1:0),x=1;x1?y-1:0),x=1;x0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(m){i[m]=function(){var y;return(y=i.store)[m].apply(y,arguments),i}});var g=gu(),p=function(){var y=function(x,b){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(b),a(x,b)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),g}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=a,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var l=[],c=function(d){if(d){var v=o.services.languageUtils.toResolveHierarchy(d);v.forEach(function(g){l.indexOf(g)<0&&l.push(g)})}};if(u)c(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(h){return c(h)})}this.options.preload&&this.options.preload.forEach(function(h){return c(h)}),this.services.backendConnector.load(l,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(h)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=gu();return i||(i=this.languages),o||(o=this.options.ns),a||(a=tf),this.services.backendConnector.reload(i,o,function(u){s.resolve(),a(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&nL.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=gu();this.emit("languageChanging",i);var u=function(h){a.language=h,a.languages=a.services.languageUtils.toResolveHierarchy(h),a.resolvedLanguage=void 0,a.setResolvedLanguage(h)},l=function(h,d){d?(u(d),a.translator.changeLanguage(d),a.isLanguageChangingTo=void 0,a.emit("languageChanged",d),a.logger.log("languageChanged",d)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(h,function(){return a.t.apply(a,arguments)})},c=function(h){!i&&!h&&a.services.languageDetector&&(h=[]);var d=typeof h=="string"?h:a.services.languageUtils.getBestMatchFromCodes(h);d&&(a.language||u(d),a.translator.language||a.translator.changeLanguage(d),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(d)),a.loadResources(d,function(v){l(v,d)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,u=function l(c,f){var h;if($t(f)!=="object"){for(var d=arguments.length,v=new Array(d>2?d-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=a.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,v){var g=o.services.backendConnector.state["".concat(d,"|").concat(v)];return g===-1||g===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,i)&&(!u||c(l,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=gu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=gu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(l){return s.indexOf(l)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new ZC(iO());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tf,s=kn(kn(kn({},this.options),o),{isClone:!0}),u=new r(s);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var l=["store","services","language"];return l.forEach(function(c){u[c]=i[c]}),u.services=kn({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new KC(u.services,u.options),u.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Rh(e,t)});var fr=Rh.createInstance();fr.createInstance=Rh.createInstance;fr.createInstance;fr.dir;fr.init;fr.loadResources;fr.reloadResources;fr.use;fr.changeLanguage;fr.getFixedT;fr.t;fr.exists;fr.setDefaultNamespace;fr.hasLoadedNamespace;fr.loadNamespaces;fr.loadLanguages;fr.use(kJ).init({resources:vG||{},lng:ia[mG]||"zhCn",fallbackLng:"zhCn",interpolation:{escapeValue:!1}}).then(()=>console.log("WebGAL i18n Ready!"));qn.render(S.jsx(Y.StrictMode,{children:S.jsx(LJ,{children:S.jsx(vZ,{store:B,children:S.jsx(jge,{})})})}),document.getElementById("root"));export{gr as C,jn as S,de as T,O as W,_ye as r}; diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-b0f07826.css b/packages/terre2/assets/templates/WebGAL_Template/assets/index-d935d359.css similarity index 59% rename from packages/terre2/assets/templates/WebGAL_Template/assets/index-b0f07826.css rename to packages/terre2/assets/templates/WebGAL_Template/assets/index-d935d359.css index 5bb70da64..a8c15f8ec 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-b0f07826.css +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-d935d359.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-family:思源宋体;src:url(./SourceHanSerifCN-Regular-1e60cc2e.ttf) format("truetype")}@font-face{font-family:LXGW;src:url(./LXGWWenKai-Regular-9375313a.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R-ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{background-color:#000;font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-webkit-user-select:none;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:2560px;height:1440px;overflow:hidden;font-size:160%}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}#ebg{height:100vh;width:100vw;filter:blur(50px);background-position:center;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}.App{height:100%;width:100%;background:rgba(0,0,0,1);overflow:hidden;perspective:0;-webkit-overflow-scrolling:auto}#pixiCanvas{z-index:5}._Title_main_xpe81_1{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_xpe81_8{display:flex;position:absolute;left:0;min-width:25%;height:100%;justify-content:center;align-items:flex-start;flex-flow:column;transition:background .75s;padding-left:120px}._Title_button_xpe81_8{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:1em 2em;margin:20px 0;transition:all .33s;background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:4px;transform:skew(-10deg);background:linear-gradient(to right,rgba(0,0,0,.3),rgba(0,0,0,.1))}._Title_button_xpe81_8:hover{text-shadow:0 0 10px rgb(255,255,255);padding:1em 6em 1em 3em}._Title_button_text_xpe81_41{font-size:165%;color:#fbfbfb;padding:0 .5em;letter-spacing:.2em}._Title_backup_background_xpe81_48{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._Choose_Main_cegqk_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_cegqk_13{font-family:WebgalUI,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_disabled_cegqk_29{font-family:WebgalUI,serif;cursor:not-allowed;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a80;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.5);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_cegqk_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._Choose_Main_4xkm5_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_4xkm5_13{cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#005caf;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._glabalDialog_container_inner_4xkm5_28{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_4xkm5_28{color:#fff;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_4xkm5_47{font-size:300%;letter-spacing:.05em;text-shadow:0 0 10px rgba(255,255,255,.5)}._Choose_item_4xkm5_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #005caf}._button_4xkm5_59{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_4xkm5_59:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}._FullScreenPerform_main_7er8a_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_7er8a_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_7er8a_17{position:absolute;display:block;width:100%;height:100%;z-index:11}@keyframes _slideIn_7er8a_80{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _typing_7er8a_86{0%{width:0;height:0}to{width:100%;height:auto;border-right:1px solid}}@keyframes _blinkCursor_7er8a_1{50%{border-color:transparent}}@keyframes _pixelateAnimation_7er8a_1{0%{filter:none;opacity:0}50%{filter:blur(5px)}to{filter:none;opacity:1}}@keyframes _revealAnimation_7er8a_101{0%{opacity:0;clip-path:polygon(0% 0%,0% 0%,0% 100%,0% 100%)}to{opacity:1;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%)}}._fadeIn_7er8a_74{opacity:0;animation:_intro_showSoftly_7er8a_1 1.5s ease-out forwards;font-family:思源宋体,serif}._slideIn_7er8a_80{opacity:0;animation:_slideIn_7er8a_80 1.5s forwards;font-family:思源宋体,serif}._typingEffect_7er8a_86{display:block;overflow:hidden;white-space:pre-line;width:0;animation:_typing_7er8a_86 1.5s forwards,_blinkCursor_7er8a_1 1s infinite 1.5s;font-family:思源宋体,serif}._pixelateEffect_7er8a_95{opacity:0;animation:_pixelateAnimation_7er8a_1 3s forwards;font-family:思源宋体,serif}._revealAnimation_7er8a_101{opacity:0;animation:_revealAnimation_7er8a_101 3s forwards;font-family:思源宋体,serif}@keyframes _intro_showSoftly_7er8a_1{0%{opacity:0}to{opacity:1}}._videoContainer_7er8a_115{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._main_15mmi_1{position:absolute;bottom:20px;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;height:70px;right:20px;border-radius:35px;padding:.15em 1.75em;font-size:80%}._button_15mmi_16{position:relative;top:2px;padding:0;filter:drop-shadow(1px 1px 5px rgb(0,0,0))}._button_text_15mmi_23{position:relative;bottom:8px;color:#fff;text-shadow:1px 1px 5px rgb(0,0,0);padding-left:3px}._button_on_15mmi_31{height:100%;display:inline-block;font-size:150%;padding:.25em .3em 0 .15em;transition:background-color .5s;background:rgba(255,255,255,.3);border-radius:4px;margin:0 .1em}._singleButton_15mmi_42{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.3em .3em 0 .15em;transition:background-color .5s;cursor:pointer;border-radius:4px;margin:0 .1em;position:relative}._singleButton_15mmi_42:hover{background-color:#ffffff4d}._fastSlPreview_15mmi_59{position:absolute;top:-250px;right:0;background:linear-gradient(315deg,rgba(253,251,251,.9) 0%,rgba(235,237,238,.85) 100%);width:900px;height:230px;color:#005caf;border-radius:5px;display:none;animation:_fastSlEnter_15mmi_1 .33s;transition:opacity .33s}._fastsave_15mmi_73:hover ._fastSPreview_15mmi_73,._fastload_15mmi_77:hover ._fastLPreview_15mmi_77{display:block}@keyframes _fastSlEnter_15mmi_1{0%{opacity:0}to{opacity:1}}._slPreviewMain_15mmi_89{padding:.5em;display:flex;box-sizing:border-box;height:100%;width:100%}._imgContainer_15mmi_97{display:flex;overflow:hidden;border-radius:5px;flex-shrink:0;height:100%}._textContainer_15mmi_105{overflow:hidden;padding:0 0 0 .5em}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._Logo_main_1bne2_1{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;animation:_change-img-anim_1bne2_1 5s forwards;background-size:cover;z-index:14}@keyframes _change-img-anim_1bne2_1{0%{opacity:0}35%{opacity:1}65%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Logo_Back_1bne2_32{width:100%;height:100%;position:absolute;top:0;left:0;right:0;opacity:1;bottom:0;background-size:cover;z-index:14;background:white}._animationActive_1bne2_46{animation:_fadeout_1bne2_1 5s forwards}@keyframes _fadeout_1bne2_1{0%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_1c9ky_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;padding:0 55px}._MenuPanel_button_1c9ky_10{padding:.25em 15px 0;margin-right:15px;display:flex;justify-content:center;font-size:200%;text-align:center;border-radius:6px;min-width:12.5%;cursor:pointer;color:#7b90a9;background:rgba(0,0,0,0);overflow:hidden;transition:text-shadow .7s,background-color .7s}._MenuPanel_button_1c9ky_10:last-child{margin-right:0}._MenuPanel_button_1c9ky_10:hover{background-color:#f5f6f726}._MenuPanel_button_1c9ky_10:last-child{border-right:none}._MenuPanel_button_icon_1c9ky_38{transform:translateY(.125em);padding:0 .15em 0 0;margin:0 .15em 0 0}._MenuPanel_button_hl_1c9ky_44{background-color:#f5f6f759!important}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Save_Load_main_a3o8b_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_a3o8b_9{height:10%;width:100%;display:flex;animation:_Elements_in_a3o8b_1 ease-out 1s forwards;justify-content:center}._Save_Load_title_a3o8b_17{font-family:思源宋体,serif;letter-spacing:.1em;width:auto;font-size:500%;min-width:350px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:absolute;left:20px;top:0;z-index:-1;opacity:.2;transform:translateY(-10px)}._Save_title_text_a3o8b_35{font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_a3o8b_43{font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_a3o8b_51{height:100%;display:flex}._Save_Load_top_button_a3o8b_51{cursor:pointer;font-size:200%;width:2.05em;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_a3o8b_69{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_a3o8b_51:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_a3o8b_80{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_a3o8b_51:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_a3o8b_93{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_a3o8b_93:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_a3o8b_106{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_a3o8b_115{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_a3o8b_1 1s ease-out forwards,_Elements_in_transform_a3o8b_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_a3o8b_115:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_a3o8b_131{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_a3o8b_138{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_a3o8b_147{background-color:#51a8dd}._Save_Load_content_element_top_date_a3o8b_151{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_a3o8b_162{background-color:#005caf}._Save_Load_content_text_a3o8b_166{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_a3o8b_180{padding:.2em .75em}._Save_Load_content_speaker_a3o8b_184{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_a3o8b_193{color:#005caf}._Load_content_text_a3o8b_197{background-color:#005cafbf}._Save_Load_content_miniRen_a3o8b_201{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_a3o8b_208{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_a3o8b_215{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_a3o8b_223{bottom:0;left:0}._Save_Load_content_miniRen_figRight_a3o8b_228{bottom:0;right:0}@keyframes _Elements_in_a3o8b_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_a3o8b_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._Options_main_u5orq_2{position:absolute;cursor:default;height:90%;width:100%}._Options_top_u5orq_9{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_u5orq_16{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_u5orq_25{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Option_title_text_shadow_u5orq_34{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_u5orq_41{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_u5orq_48{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_u5orq_55{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_u5orq_65{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_u5orq_1 ease-out .7s forwards;cursor:pointer}._About_text_u5orq_73{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_u5orq_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_u5orq_92{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_u5orq_98{animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Options_page_button_u5orq_102{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_u5orq_114{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_u5orq_102:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_ujldp_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_ujldp_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_ujldp_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_ujldp_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_ujldp_39{position:relative;animation:_TextDelayShow_ujldp_1 1s ease-out forwards;opacity:0}._outer_ujldp_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_ujldp_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_ujldp_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_ujldp_71{position:relative;opacity:1}._TextBox_showName_ujldp_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_ujldp_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_ujldp_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_ujldp_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_ujldp_113{position:absolute;left:2em;top:-3.5em}._outerName_ujldp_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_ujldp_130{position:absolute;left:0;top:0;z-index:1}._text_ujldp_137{line-height:1.9em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_1tymt_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_1tymt_14{padding:0;display:flex;height:10%}._extra_top_icon_1tymt_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_1tymt_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_1tymt_1 .25s ease-out forwards}@keyframes _extra_icon_softin_1tymt_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_1tymt_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_1tymt_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_1tymt_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_1tymt_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_1tymt_91{display:flex}._bgmControlButton_1tymt_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_1tymt_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_1tymt_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_1tymt_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_1tymt_1{0%{opacity:.95}to{opacity:1}}._bgmElement_1tymt_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_1tymt_148{background-color:#ffffffd9!important;color:#666}._cgMain_1tymt_153{width:100%;height:88%}._cgContainer_1tymt_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_1tymt_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_1tymt_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_1tymt_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;border-radius:7px;padding:12px 15px}._cgNav_1tymt_203{font-size:170%;color:#fff;padding:.12em 1em;margin:0 .25em;text-align:center;cursor:pointer;transition:background-color .5s,color .5s,font-weight .5s;border-radius:7px}._cgNav_1tymt_203:first-child{margin-left:0}._cgNav_1tymt_203:last-child{margin-right:0}._cgNav_active_1tymt_222{background-color:#005caf1a!important;color:#005caf;font-weight:700}._cgNav_1tymt_203:hover{background-color:#005caf0d}._showFullContainer_1tymt_232{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_1tymt_245{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_1tymt_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_1tymt_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} +@charset "UTF-8";@font-face{font-family:思源宋体;src:url(./SourceHanSerifCN-Regular-1e60cc2e.ttf) format("truetype")}@font-face{font-family:LXGW;src:url(./LXGWWenKai-Regular-9375313a.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R-ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{background-color:#000;font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-webkit-user-select:none;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:2560px;height:1440px;overflow:hidden;font-size:160%}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}#ebg{height:100vh;width:100vw;filter:blur(50px);background-position:center;background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}.App{height:100%;width:100%;background:rgba(0,0,0,1);overflow:hidden;perspective:0;-webkit-overflow-scrolling:auto}#pixiCanvas{z-index:5}._Title_main_xpe81_1{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_xpe81_8{display:flex;position:absolute;left:0;min-width:25%;height:100%;justify-content:center;align-items:flex-start;flex-flow:column;transition:background .75s;padding-left:120px}._Title_button_xpe81_8{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:1em 2em;margin:20px 0;transition:all .33s;background:rgba(255,255,255,.15);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:4px;transform:skew(-10deg);background:linear-gradient(to right,rgba(0,0,0,.3),rgba(0,0,0,.1))}._Title_button_xpe81_8:hover{text-shadow:0 0 10px rgb(255,255,255);padding:1em 6em 1em 3em}._Title_button_text_xpe81_41{font-size:165%;color:#fbfbfb;padding:0 .5em;letter-spacing:.2em}._Title_backup_background_xpe81_48{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._Choose_Main_cegqk_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_cegqk_13{font-family:WebgalUI,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_disabled_cegqk_29{font-family:WebgalUI,serif;cursor:not-allowed;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a80;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.5);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_cegqk_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._Choose_Main_4xkm5_1{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_4xkm5_13{cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#005caf;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._glabalDialog_container_inner_4xkm5_28{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_4xkm5_28{color:#fff;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_4xkm5_47{font-size:300%;letter-spacing:.05em;text-shadow:0 0 10px rgba(255,255,255,.5)}._Choose_item_4xkm5_13:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #005caf}._button_4xkm5_59{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_4xkm5_59:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}._FullScreenPerform_main_7er8a_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_7er8a_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_7er8a_17{position:absolute;display:block;width:100%;height:100%;z-index:11}@keyframes _slideIn_7er8a_80{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _typing_7er8a_86{0%{width:0;height:0}to{width:100%;height:auto;border-right:1px solid}}@keyframes _blinkCursor_7er8a_1{50%{border-color:transparent}}@keyframes _pixelateAnimation_7er8a_1{0%{filter:none;opacity:0}50%{filter:blur(5px)}to{filter:none;opacity:1}}@keyframes _revealAnimation_7er8a_101{0%{opacity:0;clip-path:polygon(0% 0%,0% 0%,0% 100%,0% 100%)}to{opacity:1;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%)}}._fadeIn_7er8a_74{opacity:0;animation:_intro_showSoftly_7er8a_1 1.5s ease-out forwards;font-family:思源宋体,serif}._slideIn_7er8a_80{opacity:0;animation:_slideIn_7er8a_80 1.5s forwards;font-family:思源宋体,serif}._typingEffect_7er8a_86{display:block;overflow:hidden;white-space:pre-line;width:0;animation:_typing_7er8a_86 1.5s forwards,_blinkCursor_7er8a_1 1s infinite 1.5s;font-family:思源宋体,serif}._pixelateEffect_7er8a_95{opacity:0;animation:_pixelateAnimation_7er8a_1 3s forwards;font-family:思源宋体,serif}._revealAnimation_7er8a_101{opacity:0;animation:_revealAnimation_7er8a_101 3s forwards;font-family:思源宋体,serif}@keyframes _intro_showSoftly_7er8a_1{0%{opacity:0}to{opacity:1}}._videoContainer_7er8a_115{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._main_15mmi_1{position:absolute;bottom:20px;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;height:70px;right:20px;border-radius:35px;padding:.15em 1.75em;font-size:80%}._button_15mmi_16{position:relative;top:2px;padding:0;filter:drop-shadow(1px 1px 5px rgb(0,0,0))}._button_text_15mmi_23{position:relative;bottom:8px;color:#fff;text-shadow:1px 1px 5px rgb(0,0,0);padding-left:3px}._button_on_15mmi_31{height:100%;display:inline-block;font-size:150%;padding:.25em .3em 0 .15em;transition:background-color .5s;background:rgba(255,255,255,.3);border-radius:4px;margin:0 .1em}._singleButton_15mmi_42{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.3em .3em 0 .15em;transition:background-color .5s;cursor:pointer;border-radius:4px;margin:0 .1em;position:relative}._singleButton_15mmi_42:hover{background-color:#ffffff4d}._fastSlPreview_15mmi_59{position:absolute;top:-250px;right:0;background:linear-gradient(315deg,rgba(253,251,251,.9) 0%,rgba(235,237,238,.85) 100%);width:900px;height:230px;color:#005caf;border-radius:5px;display:none;animation:_fastSlEnter_15mmi_1 .33s;transition:opacity .33s}._fastsave_15mmi_73:hover ._fastSPreview_15mmi_73,._fastload_15mmi_77:hover ._fastLPreview_15mmi_77{display:block}@keyframes _fastSlEnter_15mmi_1{0%{opacity:0}to{opacity:1}}._slPreviewMain_15mmi_89{padding:.5em;display:flex;box-sizing:border-box;height:100%;width:100%}._imgContainer_15mmi_97{display:flex;overflow:hidden;border-radius:5px;flex-shrink:0;height:100%}._textContainer_15mmi_105{overflow:hidden;padding:0 0 0 .5em}._Backlog_main_zwyao_2{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_zwyao_15{font-family:思源宋体,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_out_zwyao_1 .7s ease-out forwards;box-sizing:border-box}._Backlog_main_out_IndexHide_zwyao_28{z-index:-10}._Backlog_main_DisableScroll_zwyao_32{overflow:hidden!important}._backlog_top_zwyao_36{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_zwyao_42{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._backlog_top_icon_zwyao_42:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_zwyao_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_zwyao_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_zwyao_62{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_zwyao_72{position:absolute;height:80%;padding:1em 10em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_zwyao_84{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_zwyao_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_item_out_zwyao_94{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_out_zwyao_94 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_zwyao_104{display:flex;flex-flow:row;align-items:flex-start;width:30%;max-width:30%;min-width:30%}._backlog_item_content_name_zwyao_113{font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text;margin:0 0 0 auto;overflow-wrap:break-word;box-sizing:border-box;border-radius:7px;padding:.2em .5em;font-size:115%;width:50%;text-align:left;letter-spacing:.1em}._backlog_item_content_zwyao_113{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em;letter-spacing:.05em}._backlog_item_button_list_zwyao_137{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_zwyao_144{cursor:pointer;padding:.01em .75em 0;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_zwyao_144:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_zwyao_157{box-sizing:border-box}@keyframes _backlog_soft_in_zwyao_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_soft_out_zwyao_1{0%{opacity:1}to{opacity:0}}@keyframes _backlog_item_in_zwyao_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes _backlog_item_out_zwyao_94{0%{opacity:1;transform:scale(1) translate(0)}to{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}}._Logo_main_1bne2_1{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;animation:_change-img-anim_1bne2_1 5s forwards;background-size:cover;z-index:14}@keyframes _change-img-anim_1bne2_1{0%{opacity:0}35%{opacity:1}65%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Logo_Back_1bne2_32{width:100%;height:100%;position:absolute;top:0;left:0;right:0;opacity:1;bottom:0;background-size:cover;z-index:14;background:white}._animationActive_1bne2_46{animation:_fadeout_1bne2_1 5s forwards}@keyframes _fadeout_1bne2_1{0%{opacity:1}99%{opacity:0}to{opacity:0;display:none}}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_1c9ky_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;padding:0 55px}._MenuPanel_button_1c9ky_10{padding:.25em 15px 0;margin-right:15px;display:flex;justify-content:center;font-size:200%;text-align:center;border-radius:6px;min-width:12.5%;cursor:pointer;color:#7b90a9;background:rgba(0,0,0,0);overflow:hidden;transition:text-shadow .7s,background-color .7s}._MenuPanel_button_1c9ky_10:last-child{margin-right:0}._MenuPanel_button_1c9ky_10:hover{background-color:#f5f6f726}._MenuPanel_button_1c9ky_10:last-child{border-right:none}._MenuPanel_button_icon_1c9ky_38{transform:translateY(.125em);padding:0 .15em 0 0;margin:0 .15em 0 0}._MenuPanel_button_hl_1c9ky_44{background-color:#f5f6f759!important}._GlobalDialog_main_101j8_2{height:100%;width:100%;position:absolute;z-index:20;background:rgba(15,37,64,.39);color:#fff;opacity:.5;animation:_showGlobalDialog_101j8_1 .33s forwards;display:flex;justify-content:center;align-items:center;font-family:思源宋体,serif}._glabalDialog_container_inner_101j8_17{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;background:linear-gradient(to right,rgba(0,92,175,0) 0%,rgba(0,92,175,.5) 33%,rgba(0,92,175,.85) 50%,rgba(0,92,175,.5) 66%,rgba(0,92,175,0) 100%);padding:1em 5em 1.5em}._glabalDialog_container_101j8_17{height:20%;width:100%;border-top:4px solid;border-bottom:4px solid;border-image:linear-gradient(to right,rgba(255,255,255,.05) 0%,rgba(255,255,255,.85) 33%,rgb(255,255,255) 50%,rgba(255,255,255,.85) 66%,rgba(255,255,255,.05) 100%) 1}._title_101j8_36{font-size:300%;text-shadow:0 0 10px rgba(255,255,255,.5)}._button_list_101j8_41{display:flex;margin:auto 0 0}._button_101j8_41{font-size:200%;padding:.15em 1em;margin:.2em 1em;cursor:pointer;transition:background-color .33s,color .33s,font-weight .33s,transform .33s;text-shadow:0 0 10px rgb(255,255,255);border-radius:5px}._button_101j8_41:hover{font-weight:700;color:#005caf;transform:scale(1.1);text-shadow:0 0 15px rgba(0,0,0,0);background:rgba(255,255,255,.85)}@keyframes _showGlobalDialog_101j8_1{0%{opacity:0}to{opacity:1}}._Save_Load_main_a3o8b_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_a3o8b_9{height:10%;width:100%;display:flex;animation:_Elements_in_a3o8b_1 ease-out 1s forwards;justify-content:center}._Save_Load_title_a3o8b_17{font-family:思源宋体,serif;letter-spacing:.1em;width:auto;font-size:500%;min-width:350px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:absolute;left:20px;top:0;z-index:-1;opacity:.2;transform:translateY(-10px)}._Save_title_text_a3o8b_35{font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_a3o8b_43{font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_a3o8b_51{height:100%;display:flex}._Save_Load_top_button_a3o8b_51{cursor:pointer;font-size:200%;width:2.05em;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_a3o8b_69{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_a3o8b_51:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_a3o8b_80{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_a3o8b_51:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_a3o8b_93{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_a3o8b_93:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_a3o8b_106{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_a3o8b_115{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_a3o8b_1 1s ease-out forwards,_Elements_in_transform_a3o8b_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_a3o8b_115:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_a3o8b_131{font-family:思源宋体,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_a3o8b_138{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_a3o8b_147{background-color:#51a8dd}._Save_Load_content_element_top_date_a3o8b_151{padding:.425em 0 0 .5em;background-color:#77428d;color:#fff;font-size:115%;height:100%;width:80%;font-family:WebgalUI,serif;letter-spacing:.1em}._Load_content_element_top_date_a3o8b_162{background-color:#005caf}._Save_Load_content_text_a3o8b_166{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_a3o8b_180{padding:.2em .75em}._Save_Load_content_speaker_a3o8b_184{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_a3o8b_193{color:#005caf}._Load_content_text_a3o8b_197{background-color:#005cafbf}._Save_Load_content_miniRen_a3o8b_201{width:100%;height:48%;position:relative;background-size:cover}._Save_Load_content_miniRen_bg_a3o8b_208{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_a3o8b_215{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_a3o8b_223{bottom:0;left:0}._Save_Load_content_miniRen_figRight_a3o8b_228{bottom:0;right:0}@keyframes _Elements_in_a3o8b_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_a3o8b_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._Options_main_u5orq_2{position:absolute;cursor:default;height:90%;width:100%}._Options_top_u5orq_9{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_u5orq_16{font-family:思源宋体,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_u5orq_25{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Option_title_text_shadow_u5orq_34{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_u5orq_41{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_u5orq_48{display:flex;flex:1;padding:0 0 0 3em;overflow:auto}._Options_main_content_half_u5orq_55{width:95%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:0 1em}._About_title_text_u5orq_65{margin:.2em 1em;padding:.2em;width:100%;animation:_Elements_in_u5orq_1 ease-out .7s forwards;cursor:pointer}._About_text_u5orq_73{font-weight:700;color:transparent;background:linear-gradient(to left,rgba(34,125,81,.65),rgba(81,110,65,.65));-webkit-background-clip:text;font-size:135%;text-decoration:underline}@keyframes _Elements_in_u5orq_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._Options_page_container_u5orq_92{height:85%;display:flex;padding:1em 3.75em}._Options_button_list_u5orq_98{animation:_Elements_in_u5orq_1 ease-out .7s forwards}._Options_page_button_u5orq_102{font-family:思源宋体,serif;font-size:300%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));opacity:.35;-webkit-background-clip:text;transition:color .33s,background-image .33s,opacity .33s;cursor:pointer}._Options_page_button_active_u5orq_114{background-image:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;opacity:1}._Options_page_button_u5orq_102:hover{opacity:1}._NormalOption_ogzuv_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_ogzuv_1 ease-out .7s forwards}._NormalOption_title_ogzuv_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_ogzuv_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_ogzuv_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_ogzuv_39{padding:.5em 0;display:flex}@keyframes _Elements_in_ogzuv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1qk3b_1{font-size:150%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer;border-bottom:2px solid transparent}._NormalButton_1qk3b_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1qk3b_18{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._backButton_qbk37_1{display:flex;justify-content:center;align-items:center;width:50px;height:50px;background:rgba(0,0,0,.1);border-radius:4px;cursor:pointer}._backButton_qbk37_1:hover{background:rgba(0,0,0,.2)}._about_qbk37_16{padding:10px 0 0}._icon_qbk37_20{display:inline-flex}._title_qbk37_24{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700;margin-top:20px}._text_qbk37_34{color:#516e41;padding:0 0 0 10px;font-size:135%}._text_qbk37_34 a{color:#516e41}._contributor_qbk37_43{padding:0 10px 0 0}._textPreviewMain_nolr3_1{z-index:1;padding:1em;min-height:480px;width:100%}._textbox_nolr3_8{width:100%;height:100%;position:relative}._TextBox_EventHandler_eezpc_1{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_eezpc_9{position:absolute;z-index:6;right:25px;min-height:330px;max-height:330px;background-blend-mode:darken;border-radius:165px 20px 20px 165px;bottom:20px;left:275px;font-weight:700;color:#fff;padding:1em 50px 70px 200px;box-sizing:border-box;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_eezpc_1 .7s ease-out forwards;letter-spacing:.2em;transition:left .33s}@keyframes _showSoftly_eezpc_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_start_eezpc_39{position:relative;animation:_TextDelayShow_eezpc_1 1s ease-out forwards;opacity:0}._outer_eezpc_45{position:absolute;white-space:nowrap;left:0;top:0;background-image:linear-gradient(#0B346E 0%,#141423 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._inner_eezpc_57{white-space:nowrap;position:absolute;left:0;top:0;-webkit-text-stroke:.1em rgb(255,255,255);z-index:1}._zhanwei_eezpc_66{color:transparent;white-space:nowrap}._TextBox_textElement_Settled_eezpc_71{position:relative;opacity:1}._TextBox_showName_eezpc_76{font-size:85%;padding:0 2em;position:absolute;left:150px;top:-68px;height:80px;line-height:68px;border-radius:40px}@keyframes _TextDelayShow_eezpc_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_eezpc_95{position:absolute;height:450px;width:450px;bottom:0;left:-250px;border-radius:100% 0 0 100%;overflow:hidden}._miniAvatarImg_eezpc_105{max-height:100%;max-width:100%;position:absolute;bottom:0;filter:drop-shadow(15px 0 3px rgba(0,0,0,.5))}._nameContainer_eezpc_113{position:absolute;left:2em;top:-3.5em}._outerName_eezpc_119{position:absolute;left:0;top:0;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);background-clip:text;-webkit-background-clip:text;color:transparent;z-index:2}._innerName_eezpc_130{position:absolute;left:0;top:0;z-index:1}._text_eezpc_137{line-height:1.9em;overflow:hidden}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._MainStage_main_9enex_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_9enex_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_9enex_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_9enex_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_9enex_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_9enex_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_9enex_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_9enex_1 3s forwards}._MainStage_oldBgContainer_Settled_9enex_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_9enex_1{0%{opacity:.15}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_9enex_1{0%{opacity:1}to{opacity:0}}._pixiContainer_9enex_72{position:absolute;z-index:5}._chooseContainer_9enex_77{z-index:8}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:思源宋体,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._introContainer_119k8_1{box-sizing:border-box;position:absolute;z-index:11;width:100%;height:100%;color:#fff;display:none}._extra_1tymt_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_1tymt_14{padding:0;display:flex;height:10%}._extra_top_icon_1tymt_20{padding:.6em .6em 0;border-radius:1000px;transform:translateY(-13px);cursor:pointer}._extra_top_icon_1tymt_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_1tymt_1 .25s ease-out forwards}@keyframes _extra_icon_softin_1tymt_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_1tymt_40{font-family:思源宋体,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_1tymt_51{box-sizing:border-box;padding:0 2em;display:flex;height:92%;flex-flow:column}._bgmContainer_1tymt_59{left:50px;right:50px;bottom:30px;position:absolute;overflow:auto;box-sizing:border-box;display:flex;flex-flow:column-reverse;align-content:center;background-image:linear-gradient(315deg,rgba(163,189,237,.95) 0%,rgba(105,145,199,.95) 100%);padding:1em 2em;border-radius:4px;transition:max-height .5s;z-index:2}._bgmListContainer_1tymt_76{z-index:2;bottom:0;width:100%;box-sizing:border-box;display:flex;flex:1;flex-flow:row;justify-content:flex-start;align-items:flex-start;margin:0 0 15px;flex-wrap:wrap;overflow:auto}._bgmPlayerMain_1tymt_91{display:flex}._bgmControlButton_1tymt_95{padding:.6em 1.2em .2em;margin:0 5px;box-sizing:border-box;border-radius:4px;border:1px solid rgba(255,255,255,.5);cursor:pointer;transition:background-color .33s,color .33s;flex-shrink:0}._bgmControlButton_1tymt_95:hover{box-shadow:0 0 10px 5px #ffffff59}._bgmName_1tymt_110{color:#fffc;font-family:思源宋体,serif;font-size:155%;margin:5px 5px 0 15px;overflow:hidden}._bgmElement_1tymt_118{font-family:思源宋体,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:125%;margin:.5em 1em .5em .5em;transition:background-color 1s,color 1s;opacity:1;cursor:pointer;width:28%;flex-shrink:0}@keyframes _bgmElement_In_1tymt_1{0%{opacity:.95}to{opacity:1}}._bgmElement_1tymt_118:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_1tymt_148{background-color:#ffffffd9!important;color:#666}._cgMain_1tymt_153{width:100%;height:88%}._cgContainer_1tymt_158{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:4em 0 0 2em}._cgElement_1tymt_170{width:22.5%;height:37.5%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_1tymt_185{height:8%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgShowDivWarpper_1tymt_194{display:flex;flex-flow:row;justify-content:center;align-items:flex-end;border-radius:7px;padding:12px 15px}._cgNav_1tymt_203{font-size:170%;color:#fff;padding:.12em 1em;margin:0 .25em;text-align:center;cursor:pointer;transition:background-color .5s,color .5s,font-weight .5s;border-radius:7px}._cgNav_1tymt_203:first-child{margin-left:0}._cgNav_1tymt_203:last-child{margin-right:0}._cgNav_active_1tymt_222{background-color:#005caf1a!important;color:#005caf;font-weight:700}._cgNav_1tymt_203:hover{background-color:#005caf0d}._showFullContainer_1tymt_232{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_1tymt_245{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_1tymt_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_1tymt_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:思源宋体,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}._devPanelMain_11x6i_1{font-size:150%;position:absolute;right:0;top:0;bottom:0;width:35%;background:rgba(255,255,255,.75);z-index:99;overflow:auto}._devPanelOpener_11x6i_13{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.75);z-index:100;padding:3px 7px;border-radius:4px;cursor:pointer}._trans_8uz61_2{height:100%;width:100%;background-image:linear-gradient(225deg,#a3bded 0%,#6991c7 100%);position:absolute;z-index:20}._langWrapper_8uz61_10{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-flow:column}._lang_8uz61_10{width:100%;text-align:center;font-family:思源宋体,serif;color:transparent;font-size:300%;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._langSelect_8uz61_29{display:flex;gap:50px;padding:50px}._langSelectButton_8uz61_35{font-family:思源宋体,serif;cursor:pointer;font-size:200%;color:#fff;border-radius:4px;border:1px solid rgba(255,255,255,.8);padding:10px 50px;transition:color .33s,background-color .33s}._langSelectButton_8uz61_35:hover{background:white;color:#93a5cf}._panic_overlay_main_1ysz4_1{margin:0;position:fixed;width:100%;height:100%;background-color:#fff;z-index:256}._yoozle_blue_1r48o_1{color:#4285f4}._yoozle_red_1r48o_5{color:#db4437}._yoozle_yellow_1r48o_9{color:#f4b400}._yoozle_green_1r48o_13{color:#0f9d58}._yoozle_e_rotate_1r48o_17{display:inline-block;transform:rotate(-12deg)}._yoozle_container_1r48o_22{display:flex;flex-direction:column;height:100%}._yoozle_title_1r48o_28{display:flex;flex-direction:column;align-items:center;padding-top:80px;font-family:arial,sans-serif;font-size:90px}._yoozle_search_1r48o_37{display:flex;flex-direction:column;align-items:center;padding:20px 10px}._yoozle_search_bar_1r48o_44{width:40%;line-height:32px;font-family:arial,sans-serif;font-size:18px}._yoozle_search_buttons_1r48o_51{padding-top:13px}._yoozle_button_1r48o_55{background-color:#f8f9fa;border:1px solid #f8f9fa;border-radius:4px;color:#3c4043;font-family:arial,sans-serif;font-size:14px;margin:11px 4px;padding:0 16px;line-height:27px;height:36px;min-width:54px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}._yoozle_button_1r48o_55:hover{box-shadow:0 1px 1px #0000001a;border:1px solid #dadce0;color:#202124}._yoozle_button_1r48o_55:focus{border:1px solid #4285f4;outline:none}@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role=list],ol[role=list]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}} diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-b6f2cb0a.js b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-066993bc.js similarity index 97% rename from packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-b6f2cb0a.js rename to packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-066993bc.js index ca8d2b80f..54510b227 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-b6f2cb0a.js +++ b/packages/terre2/assets/templates/WebGAL_Template/assets/initRegister-066993bc.js @@ -1 +1 @@ -import{r as S,W as h,C as u,T as w,S as C}from"./index-f4e44d7a.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); +import{r as S,W as h,C as u,T as w,S as C}from"./index-5710cfe5.js";const k=g=>{const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/cherryBlossoms.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(c){const o=new C(n);let r=.25;o.scale.x=.15*r,o.scale.y=.15*r,o.anchor.set(.5),o.x=Math.random()*2560-.5*2560,o.y=0-.5*1440,o.dropSpeed=Math.random()*5,o.acc=Math.random(),e.addChild(o),i.push(o);let s=0;for(const t of i){s++;const a=Math.random();t.dropSpeed=t.acc*.01+t.dropSpeed,t.y+=c*g*t.dropSpeed*.3+.7,s%2===0?(t.x+=c*a*.5,t.rotation+=c*a*.03):(t.x-=c*a*.5,t.rotation-=c*a*.03)}i.length>=200&&(i.unshift(),e.removeChild(e.children[0]))}return h.gameplay.pixiStage.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"cherryBlossoms-Ticker"),{container:e,tickerKey:"cherryBlossoms-Ticker"}};S("cherryBlossoms",()=>k(3));const M=(g,f)=>{var d;const l=h.gameplay.pixiStage.effectsContainer,e=h.gameplay.pixiStage.currentApp,n=new u;l.addChild(n);const i=w.from("./game/tex/raindrop.png");n.x=e.screen.width/2,n.y=e.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const p=[];function c(x){for(let s=0;s=.5&&(t.alpha=.5),t.alpha<=.2&&(t.alpha=.2),n.addChild(t),p.push(t)}for(const s of p)s.dropSpeed=s.acc*.01+s.dropSpeed,s.y+=x*g*s.dropSpeed*1.1+3;p.length>=2500&&(p.unshift(),n.removeChild(n.children[0]))}return(d=h.gameplay.pixiStage)==null||d.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:c},"rain-Ticker"),{container:n,tickerKey:"rain-Ticker"}};S("rain",()=>M(6,10));const W=g=>{var c;const y=h.gameplay.pixiStage.effectsContainer,l=h.gameplay.pixiStage.currentApp,e=new u;y.addChild(e);const n=w.from("./game/tex/snowFlake_min.png");e.x=l.screen.width/2,e.y=l.screen.height/2,e.pivot.x=e.width/2,e.pivot.y=e.height/2,e.scale.x=1,e.scale.y=1;const i=[];function p(d){const r=new C(n);let s=Math.random();s<=.5&&(s=.5),r.scale.x=.144*s,r.scale.y=.144*s,r.anchor.set(.5),r.x=Math.random()*2560-.5*2560,r.y=0-.5*1440,r.dropSpeed=Math.random()*2,r.acc=Math.random(),e.addChild(r),i.push(r);let t=0;for(const a of i){t++;const m=Math.random();a.dropSpeed=a.acc*.01+a.dropSpeed,a.y+=d*g*a.dropSpeed*.3+.7,t%2===0?(a.x+=d*m*.5,a.rotation+=d*m*.03):(a.x-=d*m*.5,a.rotation-=d*m*.03)}i.length>=500&&(i.unshift(),e.removeChild(e.children[0]))}return(c=h.gameplay.pixiStage)==null||c.registerAnimation({setStartState:()=>{},setEndState:()=>{},tickerFunc:p},"snow-Ticker"),{container:e,tickerKey:"snow-Ticker"}};S("snow",()=>W(3)); diff --git a/packages/terre2/assets/templates/WebGAL_Template/index.html b/packages/terre2/assets/templates/WebGAL_Template/index.html index c7e978f44..dd4f5f328 100644 --- a/packages/terre2/assets/templates/WebGAL_Template/index.html +++ b/packages/terre2/assets/templates/WebGAL_Template/index.html @@ -7,8 +7,8 @@ WebGAL - - + + From ee44c5f6dec473b197f7a9dbbaf280583f8b73a6 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:16:48 +0800 Subject: [PATCH 025/125] feat: add assets api --- packages/origine2/src/api/Api.ts | 209 ++++++++-- .../origine2/src/components/Assets/Assets.tsx | 11 + packages/origine2/src/config/swagger.json | 370 +++++++++++++++--- .../src/Modules/assets/assets.controller.ts | 125 ++++++ .../terre2/src/Modules/assets/assets.dto.ts | 33 ++ .../src/Modules/assets/assets.module.ts | 11 + .../src/Modules/assets/assets.service.ts | 4 + packages/terre2/src/app.module.ts | 3 + 8 files changed, 694 insertions(+), 72 deletions(-) create mode 100644 packages/origine2/src/components/Assets/Assets.tsx create mode 100644 packages/terre2/src/Modules/assets/assets.controller.ts create mode 100644 packages/terre2/src/Modules/assets/assets.dto.ts create mode 100644 packages/terre2/src/Modules/assets/assets.module.ts create mode 100644 packages/terre2/src/Modules/assets/assets.service.ts diff --git a/packages/origine2/src/api/Api.ts b/packages/origine2/src/api/Api.ts index 4e41833b6..620efd6c9 100644 --- a/packages/origine2/src/api/Api.ts +++ b/packages/origine2/src/api/Api.ts @@ -16,6 +16,30 @@ export interface CompletionDto { params: object; } +export interface MkDirDto { + /** The source path where the directory will be created */ + source: string; + /** Name for the new directory */ + name: string; +} + +export interface UploadFilesDto { + /** Target directory for the uploaded files */ + targetDirectory: string; +} + +export interface DeleteFileOrDirDto { + /** The source path of the file or directory to be deleted */ + source: string; +} + +export interface RenameDto { + /** The source path of the file or directory to be renamed */ + source: string; + /** New name for renaming the file or directory */ + newName: string; +} + export interface CreateGameDto { /** The name of the game to be created */ gameName: string; @@ -66,28 +90,9 @@ export interface GameConfigDto { newConfig: string; } -export interface UploadFilesDto { - /** Target directory for the uploaded files */ - targetDirectory: string; -} - -export interface MkDirDto { - /** The source path where the directory will be created */ - source: string; - /** Name for the new directory */ - name: string; -} - -export interface DeleteFileOrDirDto { - /** The source path of the file or directory to be deleted */ - source: string; -} - -export interface RenameDto { - /** The source path of the file or directory to be renamed */ - source: string; - /** New name for renaming the file or directory */ - newName: string; +export interface CreateTemplateDto { + /** The name of the template to be created */ + templateName: string; } import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, HeadersDefaults, ResponseType } from 'axios'; @@ -574,5 +579,165 @@ export class Api extends HttpClient + this.request({ + path: `/api/manageTemplate/templateList`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Manage Template + * @name ManageTemplateControllerCreateTemplate + * @summary Create a new template + * @request POST:/api/manageTemplate/createTemplate + */ + manageTemplateControllerCreateTemplate: (data: CreateTemplateDto, params: RequestParams = {}) => + this.request({ + path: `/api/manageTemplate/createTemplate`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Manage Template + * @name ManageTemplateControllerGetTemplateConfig + * @summary Get Template Configuration + * @request GET:/api/manageTemplate/getTemplateConfig/{templateName} + */ + manageTemplateControllerGetTemplateConfig: (templateName: string, params: RequestParams = {}) => + this.request({ + path: `/api/manageTemplate/getTemplateConfig/${templateName}`, + method: 'GET', + ...params, + }), + }; + assets = { + /** + * No description + * + * @tags Assets + * @name AssetsControllerReadAssets + * @summary Read Assets + * @request GET:/assets/readAssets/{readDirPath} + */ + assetsControllerReadAssets: (readDirPath: string, params: RequestParams = {}) => + this.request({ + path: `/assets/readAssets/${readDirPath}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerOpenDict + * @summary Open Assets Dictionary + * @request GET:/assets/openDict + */ + assetsControllerOpenDict: (dirPath: string, params: RequestParams = {}) => + this.request({ + path: `/assets/openDict`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerMkDir + * @summary Create Directory + * @request POST:/assets/mkdir + */ + assetsControllerMkDir: (data: MkDirDto, params: RequestParams = {}) => + this.request({ + path: `/assets/mkdir`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerUpload + * @summary Upload Files + * @request POST:/assets/upload + */ + assetsControllerUpload: (data: UploadFilesDto, params: RequestParams = {}) => + this.request({ + path: `/assets/upload`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerDeleteFileOrDir + * @summary Delete File or Directory + * @request POST:/assets/delete + */ + assetsControllerDeleteFileOrDir: (data: DeleteFileOrDirDto, params: RequestParams = {}) => + this.request({ + path: `/assets/delete`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerRename + * @summary Rename File or Directory + * @request POST:/assets/rename + */ + assetsControllerRename: (data: RenameDto, params: RequestParams = {}) => + this.request({ + path: `/assets/rename`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + }; + templatePreview = { + /** + * No description + * + * @name TemplatePreviewControllerGetTemplateAsset + * @request GET:/template-preview/{templateName}/game/template/{path} + */ + templatePreviewControllerGetTemplateAsset: (path: string, templateName: string, params: RequestParams = {}) => + this.request({ + path: `/template-preview/${templateName}/game/template/${path}`, + method: 'GET', + ...params, + }), }; } diff --git a/packages/origine2/src/components/Assets/Assets.tsx b/packages/origine2/src/components/Assets/Assets.tsx new file mode 100644 index 000000000..e9befb907 --- /dev/null +++ b/packages/origine2/src/components/Assets/Assets.tsx @@ -0,0 +1,11 @@ +interface AssetsProps { + basePath: string[], +} + +export default function Assets(props: AssetsProps) { + return ( + <> + + + ); +} \ No newline at end of file diff --git a/packages/origine2/src/config/swagger.json b/packages/origine2/src/config/swagger.json index f789fed37..f6f69a15a 100644 --- a/packages/origine2/src/config/swagger.json +++ b/packages/origine2/src/config/swagger.json @@ -43,6 +43,168 @@ ] } }, + "/assets/readAssets/{readDirPath}": { + "get": { + "operationId": "AssetsController_readAssets", + "summary": "Read Assets", + "parameters": [ + { + "name": "readDirPath", + "required": true, + "in": "path", + "description": "Path of the directory to read assets from, including subdirectories.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Retrieve the assets of the directory." + } + }, + "tags": [ + "Assets" + ] + } + }, + "/assets/openDict": { + "get": { + "operationId": "AssetsController_openDict", + "summary": "Open Assets Dictionary", + "parameters": [ + { + "name": "dirPath", + "required": true, + "in": "path", + "description": "Directory path to open.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Opens the assets dictionary for a specified game." + } + }, + "tags": [ + "Assets" + ] + } + }, + "/assets/mkdir": { + "post": { + "operationId": "AssetsController_mkDir", + "summary": "Create Directory", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MkDirDto" + } + } + } + }, + "responses": { + "200": { + "description": "Directory created successfully." + }, + "400": { + "description": "Failed to create directory." + } + }, + "tags": [ + "Assets" + ] + } + }, + "/assets/upload": { + "post": { + "operationId": "AssetsController_upload", + "summary": "Upload Files", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadFilesDto" + } + } + } + }, + "responses": { + "200": { + "description": "Files uploaded successfully." + }, + "400": { + "description": "Failed to upload files." + } + }, + "tags": [ + "Assets" + ] + } + }, + "/assets/delete": { + "post": { + "operationId": "AssetsController_deleteFileOrDir", + "summary": "Delete File or Directory", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteFileOrDirDto" + } + } + } + }, + "responses": { + "200": { + "description": "Successfully deleted the file or directory." + }, + "400": { + "description": "Failed to delete the file or directory." + } + }, + "tags": [ + "Assets" + ] + } + }, + "/assets/rename": { + "post": { + "operationId": "AssetsController_rename", + "summary": "Rename File or Directory", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RenameDto" + } + } + } + }, + "responses": { + "200": { + "description": "Successfully renamed the file or directory." + }, + "400": { + "description": "Failed to rename the file or directory." + } + }, + "tags": [ + "Assets" + ] + } + }, "/api/manageGame/gameList": { "get": { "operationId": "ManageGameController_getGameList", @@ -551,6 +713,102 @@ "Manage Game" ] } + }, + "/api/manageTemplate/templateList": { + "get": { + "operationId": "ManageTemplateController_getTemplateList", + "summary": "Retrieve template list", + "parameters": [], + "responses": { + "200": { + "description": "Returned template list." + } + }, + "tags": [ + "Manage Template" + ] + } + }, + "/api/manageTemplate/createTemplate": { + "post": { + "operationId": "ManageTemplateController_createTemplate", + "summary": "Create a new template", + "parameters": [], + "requestBody": { + "required": true, + "description": "Template creation data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTemplateDto" + } + } + } + }, + "responses": { + "200": { + "description": "Template creation result." + } + }, + "tags": [ + "Manage Template" + ] + } + }, + "/api/manageTemplate/getTemplateConfig/{templateName}": { + "get": { + "operationId": "ManageTemplateController_getTemplateConfig", + "summary": "Get Template Configuration", + "parameters": [ + { + "name": "templateName", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Returned template configuration." + }, + "400": { + "description": "Failed to get the template configuration." + } + }, + "tags": [ + "Manage Template" + ] + } + }, + "/template-preview/{templateName}/game/template/{path}": { + "get": { + "operationId": "TemplatePreviewController_getTemplateAsset", + "parameters": [ + { + "name": "path", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "templateName", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "" + } + } + } } }, "info": { @@ -580,6 +838,64 @@ "params" ] }, + "MkDirDto": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "The source path where the directory will be created" + }, + "name": { + "type": "string", + "description": "Name for the new directory" + } + }, + "required": [ + "source", + "name" + ] + }, + "UploadFilesDto": { + "type": "object", + "properties": { + "targetDirectory": { + "type": "string", + "description": "Target directory for the uploaded files" + } + }, + "required": [ + "targetDirectory" + ] + }, + "DeleteFileOrDirDto": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "The source path of the file or directory to be deleted" + } + }, + "required": [ + "source" + ] + }, + "RenameDto": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "The source path of the file or directory to be renamed" + }, + "newName": { + "type": "string", + "description": "New name for renaming the file or directory" + } + }, + "required": [ + "source", + "newName" + ] + }, "CreateGameDto": { "type": "object", "properties": { @@ -695,62 +1011,16 @@ "newConfig" ] }, - "UploadFilesDto": { + "CreateTemplateDto": { "type": "object", "properties": { - "targetDirectory": { + "templateName": { "type": "string", - "description": "Target directory for the uploaded files" + "description": "The name of the template to be created" } }, "required": [ - "targetDirectory" - ] - }, - "MkDirDto": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "The source path where the directory will be created" - }, - "name": { - "type": "string", - "description": "Name for the new directory" - } - }, - "required": [ - "source", - "name" - ] - }, - "DeleteFileOrDirDto": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "The source path of the file or directory to be deleted" - } - }, - "required": [ - "source" - ] - }, - "RenameDto": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "The source path of the file or directory to be renamed" - }, - "newName": { - "type": "string", - "description": "New name for renaming the file or directory" - } - }, - "required": [ - "source", - "newName" + "templateName" ] } } diff --git a/packages/terre2/src/Modules/assets/assets.controller.ts b/packages/terre2/src/Modules/assets/assets.controller.ts new file mode 100644 index 000000000..9934a6ff6 --- /dev/null +++ b/packages/terre2/src/Modules/assets/assets.controller.ts @@ -0,0 +1,125 @@ +import { + Body, + Controller, + Get, + Param, + Post, + UploadedFiles, + UseInterceptors, +} from '@nestjs/common'; +import { + IUploadFileInfo, + WebgalFsService, +} from '../webgal-fs/webgal-fs.service'; +import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { AssetsService } from './assets.service'; +import { + DeleteFileOrDirDto, + MkDirDto, + RenameDto, + UploadFilesDto, +} from './assets.dto'; +import { FilesInterceptor } from '@nestjs/platform-express'; +import { _open } from 'src/util/open'; + +@Controller('assets') +@ApiTags('Assets') +export class AssetsController { + constructor( + private readonly webgalFs: WebgalFsService, + private readonly assets: AssetsService, + ) {} + + @Get('readAssets/:readDirPath(*)') + @ApiOperation({ summary: 'Read Assets' }) + @ApiResponse({ + status: 200, + description: 'Retrieve the assets of the directory.', + }) + @ApiParam({ + name: 'readDirPath', + type: String, + description: + 'Path of the directory to read assets from, including subdirectories.', + }) + async readAssets(@Param('readDirPath') readDirPath: string) { + readDirPath = decodeURI(readDirPath); + const dirPath = this.webgalFs.getPathFromRoot(`${readDirPath}`); + const dirInfo = await this.webgalFs.getDirInfo(dirPath); + return { readDirPath, dirPath, dirInfo }; + } + + @Get('openDict') // <-- Define the route parameter using :gameName + @ApiOperation({ summary: 'Open Assets Dictionary' }) + @ApiResponse({ + status: 200, + description: 'Opens the assets dictionary for a specified game.', + }) + @ApiParam({ + name: 'dirPath', + type: String, + description: 'Directory path to open.', + }) + async openDict(@Param('dirPath') dirPath: string) { + dirPath = decodeURI(dirPath); // Optionally decode the URI if necessary + const path = this.webgalFs.getPathFromRoot(dirPath); + await _open(path); + } + + @Post('mkdir') + @ApiOperation({ summary: 'Create Directory' }) + @ApiResponse({ status: 200, description: 'Directory created successfully.' }) + @ApiResponse({ status: 400, description: 'Failed to create directory.' }) + async mkDir(@Body() fileOperationDto: MkDirDto) { + await this.webgalFs.mkdir( + this.webgalFs.getPathFromRoot(fileOperationDto.source), + fileOperationDto.name, + ); + return true; + } + + @Post('upload') + @UseInterceptors(FilesInterceptor('files')) + @ApiOperation({ summary: 'Upload Files' }) + @ApiResponse({ status: 200, description: 'Files uploaded successfully.' }) + @ApiResponse({ status: 400, description: 'Failed to upload files.' }) + async upload(@UploadedFiles() files, @Body() uploadFilesDto: UploadFilesDto) { + const fileInfos: IUploadFileInfo[] = files.map((file) => { + return { fileName: file.originalname, file: file.buffer }; + }); + return this.webgalFs.writeFiles(uploadFilesDto.targetDirectory, fileInfos); + } + + @Post('delete') + @ApiOperation({ summary: 'Delete File or Directory' }) + @ApiResponse({ + status: 200, + description: 'Successfully deleted the file or directory.', + }) + @ApiResponse({ + status: 400, + description: 'Failed to delete the file or directory.', + }) + async deleteFileOrDir(@Body() fileOperationDto: DeleteFileOrDirDto) { + return this.webgalFs.deleteFileOrDirectory( + this.webgalFs.getPathFromRoot(fileOperationDto.source), + ); + } + + @Post('rename') + @ApiOperation({ summary: 'Rename File or Directory' }) + @ApiResponse({ + status: 200, + description: 'Successfully renamed the file or directory.', + }) + @ApiResponse({ + status: 400, + description: 'Failed to rename the file or directory.', + }) + async rename(@Body() fileOperationDto: RenameDto) { + return this.webgalFs.renameFile( + this.webgalFs.getPathFromRoot(fileOperationDto.source), + fileOperationDto.newName, + ); + } +} diff --git a/packages/terre2/src/Modules/assets/assets.dto.ts b/packages/terre2/src/Modules/assets/assets.dto.ts new file mode 100644 index 000000000..9ba6905d2 --- /dev/null +++ b/packages/terre2/src/Modules/assets/assets.dto.ts @@ -0,0 +1,33 @@ +import { ApiProperty } from '@nestjs/swagger'; + +export class UploadFilesDto { + @ApiProperty({ description: 'Target directory for the uploaded files' }) + targetDirectory: string; +} + +export class MkDirDto { + @ApiProperty({ + description: 'The source path where the directory will be created', + }) + source: string; + + @ApiProperty({ description: 'Name for the new directory' }) + name: string; +} + +export class DeleteFileOrDirDto { + @ApiProperty({ + description: 'The source path of the file or directory to be deleted', + }) + source: string; +} + +export class RenameDto { + @ApiProperty({ + description: 'The source path of the file or directory to be renamed', + }) + source: string; + + @ApiProperty({ description: 'New name for renaming the file or directory' }) + newName: string; +} diff --git a/packages/terre2/src/Modules/assets/assets.module.ts b/packages/terre2/src/Modules/assets/assets.module.ts new file mode 100644 index 000000000..f2f84dc2a --- /dev/null +++ b/packages/terre2/src/Modules/assets/assets.module.ts @@ -0,0 +1,11 @@ +import { Module } from '@nestjs/common'; +import { AssetsController } from './assets.controller'; +import { AssetsService } from './assets.service'; +import { WebgalFsModule } from '../webgal-fs/webgal-fs.module'; + +@Module({ + imports: [WebgalFsModule], + controllers: [AssetsController], + providers: [AssetsService], +}) +export class AssetsModule {} diff --git a/packages/terre2/src/Modules/assets/assets.service.ts b/packages/terre2/src/Modules/assets/assets.service.ts new file mode 100644 index 000000000..ff69e8f12 --- /dev/null +++ b/packages/terre2/src/Modules/assets/assets.service.ts @@ -0,0 +1,4 @@ +import { Injectable } from '@nestjs/common'; + +@Injectable() +export class AssetsService {} diff --git a/packages/terre2/src/app.module.ts b/packages/terre2/src/app.module.ts index 788634fa3..8423c0d17 100644 --- a/packages/terre2/src/app.module.ts +++ b/packages/terre2/src/app.module.ts @@ -7,11 +7,14 @@ import { ManageGameModule } from './Modules/manage-game/manage-game.module'; import { ManageTemplateModule } from './Modules/manage-template/manage-template.module' import { LspModule } from './Modules/lsp/lsp.module'; import { TemplatePreviewModule } from './Modules/template-preview/template-preview.module'; +import { AssetsModule } from './Modules/assets/assets.module'; @Module({ imports: [ // 代码提示 LspModule, + // 资源管理 + AssetsModule, ManageGameModule, ManageTemplateModule, TemplatePreviewModule, From abb642433843a4b36015823f41b52010b734137d Mon Sep 17 00:00:00 2001 From: Mahiru Date: Thu, 7 Mar 2024 21:00:33 +0800 Subject: [PATCH 026/125] add product hunt link --- README.md | 2 ++ README_EN.md | 2 ++ README_JP.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index afc3e13c8..34134d55b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ![WebGAL](https://user-images.githubusercontent.com/30483415/227243167-5ce43420-497a-4049-a621-21a639797abd.png) +WebGAL - Galgame Editing. Redefined | Product Hunt + ### [English](README_EN.md) | [日本語](README_JP.md) # WebGAL_Terre diff --git a/README_EN.md b/README_EN.md index d30b5f8ae..ed36e1947 100644 --- a/README_EN.md +++ b/README_EN.md @@ -1,5 +1,7 @@ ![WebGAL](https://user-images.githubusercontent.com/30483415/227243167-5ce43420-497a-4049-a621-21a639797abd.png) +WebGAL - Galgame Editing. Redefined | Product Hunt + # WebGAL_Terre **Redefining the way Galgame is made** diff --git a/README_JP.md b/README_JP.md index fde8bd585..0df9b104a 100644 --- a/README_JP.md +++ b/README_JP.md @@ -1,5 +1,7 @@ ![WebGAL](https://user-images.githubusercontent.com/30483415/227243167-5ce43420-497a-4049-a621-21a639797abd.png) +WebGAL - Galgame Editing. Redefined | Product Hunt + # WebGAL_Terre **ギャルゲー作り方の再定義** From 6bbe4393f0c71d9a02f303363d060585061e1b01 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:59:40 +0800 Subject: [PATCH 027/125] feat: new Assets component --- packages/origine2/src/api/Api.ts | 230 +++++++++-------- .../src/components/Assets/Assets.module.scss | 30 +++ .../origine2/src/components/Assets/Assets.tsx | 240 +++++++++++++++++- .../components/Assets/FileElement.module.scss | 21 ++ .../src/components/Assets/FileElement.tsx | 108 ++++++++ packages/origine2/src/config/swagger.json | 86 ++++++- .../editor/EditorSidebar/EditorSidebar.tsx | 10 +- .../EditorSidebar/editorSidebar.module.scss | 5 +- packages/origine2/src/translations/en.ts | 10 +- packages/origine2/src/translations/jp.ts | 10 +- packages/origine2/src/translations/zh-cn.ts | 10 +- .../src/Modules/assets/assets.controller.ts | 43 +++- .../terre2/src/Modules/assets/assets.dto.ts | 12 +- 13 files changed, 681 insertions(+), 134 deletions(-) create mode 100644 packages/origine2/src/components/Assets/Assets.module.scss create mode 100644 packages/origine2/src/components/Assets/FileElement.module.scss create mode 100644 packages/origine2/src/components/Assets/FileElement.tsx diff --git a/packages/origine2/src/api/Api.ts b/packages/origine2/src/api/Api.ts index 620efd6c9..e95cfc89e 100644 --- a/packages/origine2/src/api/Api.ts +++ b/packages/origine2/src/api/Api.ts @@ -16,7 +16,14 @@ export interface CompletionDto { params: object; } -export interface MkDirDto { +export interface CreateNewFileDto { + /** The source path where the directory will be created */ + source: string; + /** Name for the new file */ + name: string; +} + +export interface CreateNewFolderDto { /** The source path where the directory will be created */ source: string; /** Name for the new directory */ @@ -90,6 +97,13 @@ export interface GameConfigDto { newConfig: string; } +export interface MkDirDto { + /** The source path where the directory will be created */ + source: string; + /** Name for the new directory */ + name: string; +} + export interface CreateTemplateDto { /** The name of the template to be created */ templateName: string; @@ -266,6 +280,121 @@ export class Api extends HttpClient + this.request({ + path: `/api/assets/readAssets/${readDirPath}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerOpenDict + * @summary Open Assets Dictionary + * @request GET:/api/assets/openDict/{dirPath} + */ + assetsControllerOpenDict: (dirPath: string, params: RequestParams = {}) => + this.request({ + path: `/api/assets/openDict/${dirPath}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerCreateNewFile + * @summary Create a New FIle + * @request POST:/api/assets/createNewFile + */ + assetsControllerCreateNewFile: (data: CreateNewFileDto, params: RequestParams = {}) => + this.request({ + path: `/api/assets/createNewFile`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerCreateNewFolder + * @summary Create Folder + * @request POST:/api/assets/createNewFolder + */ + assetsControllerCreateNewFolder: (data: CreateNewFolderDto, params: RequestParams = {}) => + this.request({ + path: `/api/assets/createNewFolder`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerUpload + * @summary Upload Files + * @request POST:/api/assets/upload + */ + assetsControllerUpload: (data: UploadFilesDto, params: RequestParams = {}) => + this.request({ + path: `/api/assets/upload`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerDeleteFileOrDir + * @summary Delete File or Directory + * @request POST:/api/assets/delete + */ + assetsControllerDeleteFileOrDir: (data: DeleteFileOrDirDto, params: RequestParams = {}) => + this.request({ + path: `/api/assets/delete`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Assets + * @name AssetsControllerRename + * @summary Rename File or Directory + * @request POST:/api/assets/rename + */ + assetsControllerRename: (data: RenameDto, params: RequestParams = {}) => + this.request({ + path: `/api/assets/rename`, + method: 'POST', + body: data, + type: ContentType.Json, + ...params, + }), + /** * No description * @@ -627,105 +756,6 @@ export class Api extends HttpClient - this.request({ - path: `/assets/readAssets/${readDirPath}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Assets - * @name AssetsControllerOpenDict - * @summary Open Assets Dictionary - * @request GET:/assets/openDict - */ - assetsControllerOpenDict: (dirPath: string, params: RequestParams = {}) => - this.request({ - path: `/assets/openDict`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Assets - * @name AssetsControllerMkDir - * @summary Create Directory - * @request POST:/assets/mkdir - */ - assetsControllerMkDir: (data: MkDirDto, params: RequestParams = {}) => - this.request({ - path: `/assets/mkdir`, - method: 'POST', - body: data, - type: ContentType.Json, - ...params, - }), - - /** - * No description - * - * @tags Assets - * @name AssetsControllerUpload - * @summary Upload Files - * @request POST:/assets/upload - */ - assetsControllerUpload: (data: UploadFilesDto, params: RequestParams = {}) => - this.request({ - path: `/assets/upload`, - method: 'POST', - body: data, - type: ContentType.Json, - ...params, - }), - - /** - * No description - * - * @tags Assets - * @name AssetsControllerDeleteFileOrDir - * @summary Delete File or Directory - * @request POST:/assets/delete - */ - assetsControllerDeleteFileOrDir: (data: DeleteFileOrDirDto, params: RequestParams = {}) => - this.request({ - path: `/assets/delete`, - method: 'POST', - body: data, - type: ContentType.Json, - ...params, - }), - - /** - * No description - * - * @tags Assets - * @name AssetsControllerRename - * @summary Rename File or Directory - * @request POST:/assets/rename - */ - assetsControllerRename: (data: RenameDto, params: RequestParams = {}) => - this.request({ - path: `/assets/rename`, - method: 'POST', - body: data, - type: ContentType.Json, - ...params, - }), - }; templatePreview = { /** * No description diff --git a/packages/origine2/src/components/Assets/Assets.module.scss b/packages/origine2/src/components/Assets/Assets.module.scss new file mode 100644 index 000000000..86e893885 --- /dev/null +++ b/packages/origine2/src/components/Assets/Assets.module.scss @@ -0,0 +1,30 @@ +.controll { + display: flex; + padding: 8px; + gap: 4px; + align-items: center; + border-bottom: var(--border-sm); +} + +.fileUploadContainer { + display: flex; + align-items: center; + justify-content: center; + flex-flow: column; + gap: 1rem; +} + +.fileSelectInput { + width: 300px; + border: var(--border-md); + border-radius: var(--radius-md); + padding: 15px; + font-size: 16px; + outline: none; + cursor: pointer; +} + +.fileSelectInput:focus { + border: var(--border-primary-sm); + box-shadow: var(--shadow-primary-md); +} \ No newline at end of file diff --git a/packages/origine2/src/components/Assets/Assets.tsx b/packages/origine2/src/components/Assets/Assets.tsx index e9befb907..c2978d9fa 100644 --- a/packages/origine2/src/components/Assets/Assets.tsx +++ b/packages/origine2/src/components/Assets/Assets.tsx @@ -1,11 +1,245 @@ +import { api } from "@/api"; +import { useValue } from "@/hooks/useValue"; +import { ChangeEvent, useEffect, useMemo, useState } from "react"; +import styles from "./Assets.module.scss"; +import { Button, Input, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Popover, PopoverSurface, PopoverTrigger, Text } from "@fluentui/react-components"; +import { ArrowExportUpFilled, ArrowExportUpRegular, ArrowLeftFilled, ArrowLeftRegular, ArrowSyncFilled, ArrowSyncRegular, DocumentAddFilled, DocumentAddRegular, FolderAddFilled, FolderAddRegular, FolderOpenFilled, FolderOpenRegular, MoreVerticalFilled, MoreVerticalRegular, bundleIcon } from "@fluentui/react-icons"; +import useTrans from "@/hooks/useTrans"; +import FileElement from "./FileElement"; +import axios from "axios"; + +export interface IFile { + extName: string; + isDir: boolean; + name: string; + path: string; +} + interface AssetsProps { basePath: string[], + extra?: { + path: string[], + protect: boolean, + mark?: string, + }[] } +const ArrowLeftIcon = bundleIcon(ArrowLeftFilled, ArrowLeftRegular); +const DocumentAddIcon = bundleIcon(DocumentAddFilled, DocumentAddRegular); +const FolderAddIcon = bundleIcon(FolderAddFilled, FolderAddRegular); +const FolderOpenIcon = bundleIcon(FolderOpenFilled, FolderOpenRegular); +const MoreVerticalIcon = bundleIcon(MoreVerticalFilled, MoreVerticalRegular); +const ArrowExportUpIcon = bundleIcon(ArrowExportUpFilled, ArrowExportUpRegular); +const ArrowSyncIcon = bundleIcon(ArrowSyncFilled, ArrowSyncRegular); + export default function Assets(props: AssetsProps) { + const t = useTrans(); + + const currentPath = useValue(props.basePath); + const currentPathName = useMemo(() => currentPath.value.join("/"), [currentPath]); + const isBasePath = (currentPathName === props.basePath.join('/')); + const fileList = useValue(null); + const refresh = useValue(false); + + useEffect( + () => { + api.assetsControllerReadAssets(currentPathName).then((res) => { + const data = res.data as unknown as object; + if ('dirInfo' in data && data.dirInfo) { + const dirInfo = data.dirInfo as IFile[]; + const dirs = dirInfo.filter((item) => item.isDir); + const files = dirInfo.filter((item) => !item.isDir); + dirs.sort((a, b) => a.name.localeCompare(b.name)); + files.sort((a, b) => a.name.localeCompare(b.name)); + fileList.set([...dirs, ...files]); + } + }); + }, + [currentPathName, refresh.value] + ); + + const handleRefresh = () => refresh.set(!refresh.value); + + const handleBack = () => !isBasePath && currentPath.set(currentPath.value.slice(0, currentPath.value.length - 1)); + + const handleCreateNewFile = (source: string, name: string) => + api.assetsControllerCreateNewFile({ source, name }).then(() => handleRefresh()); + + const handleCreateNewFolder = (source: string, name: string) => + api.assetsControllerCreateNewFolder({ source, name }).then(() => handleRefresh()); + + const handleOpenFolder = () => api.assetsControllerOpenDict(currentPathName); + + const handleRenameFile = (source: string, newName: string) => + api.assetsControllerRename({ source, newName }).then(() => handleRefresh()); + + const handleDeleteFile = (source: string) => + api.assetsControllerDeleteFileOrDir({ source }).then(() => handleRefresh()); + + const createNewFilePopoverOpen = useValue(false); + const createNewFolderPopoverOpen = useValue(false); + const newFileName = useValue(''); + const uploadAssetPopoverOpen = useValue(false); + + return ( +
+
+ {!isBasePath && +
+ + + + createNewFolderPopoverOpen.set(!createNewFolderPopoverOpen.value)} + > + + +
+ + + + uploadAssetPopoverOpen.set(!uploadAssetPopoverOpen.value)} + > + +
+
+ { + fileList.value?.map(file => + + ) + } +
+
+ ); +} + +interface IFileUploaderProps { + targetDirectory: string; + uploadUrl: string; + onUpload: () => void; +} + +function FileUploader({ targetDirectory, uploadUrl, onUpload }: IFileUploaderProps) { + const t = useTrans(); + + const [files, setFiles] = useState([]); + + const handleFileChange = (event: ChangeEvent) => { + setFiles(Array.from(event.target.files!)); + }; + + const handleUpload = () => { + const formData = new FormData(); + formData.append("targetDirectory", targetDirectory); + files.forEach((file) => { + formData.append("files", file); + }); + + axios.post(uploadUrl, formData).then((response) => { + if (response.data) { + onUpload(); + } + }); + }; + return ( - <> - - +
+
+ +
+ +
); } \ No newline at end of file diff --git a/packages/origine2/src/components/Assets/FileElement.module.scss b/packages/origine2/src/components/Assets/FileElement.module.scss new file mode 100644 index 000000000..4b5826e8d --- /dev/null +++ b/packages/origine2/src/components/Assets/FileElement.module.scss @@ -0,0 +1,21 @@ +.file { + display: flex; + flex-direction: row; + align-items: center; + gap: 2px; + padding: 0 8px; + cursor: pointer; + height: 28px; +} + +.file > button { + visibility: hidden; +} + +.file:hover { + background: var(--bg-button-hover); +} + +.file:hover > button { + visibility: visible; +} \ No newline at end of file diff --git a/packages/origine2/src/components/Assets/FileElement.tsx b/packages/origine2/src/components/Assets/FileElement.tsx new file mode 100644 index 000000000..7ca2aa9fb --- /dev/null +++ b/packages/origine2/src/components/Assets/FileElement.tsx @@ -0,0 +1,108 @@ +import { getFileIcon, getDirIcon } from "@/utils/getFileIcon"; +import { Popover, PopoverTrigger, Button, PopoverSurface, Input, Text } from "@fluentui/react-components"; +import { t } from "i18next"; +import IconWrapper from "../iconWrapper/IconWrapper"; +import { IFile } from "./Assets"; +import styles from "./FileElement.module.scss"; +import { useValue } from '../../hooks/useValue'; +import { bundleIcon, RenameFilled, RenameRegular, DeleteFilled, DeleteRegular } from "@fluentui/react-icons"; +import { ITag, statusActions } from "@/store/statusReducer"; +import { RootState } from "@/store/origineStore"; +import { useDispatch, useSelector } from "react-redux"; +import useTrans from "@/hooks/useTrans"; + +const RenameIcon = bundleIcon(RenameFilled, RenameRegular); +const DeleteIcon = bundleIcon(DeleteFilled, DeleteRegular); + +export default function FileElement( + { file, currentPath, handleRenameFile, handleDeleteFile } + : { + file: IFile, + currentPath: any, + handleRenameFile: (source: string, newName: string) => Promise, + handleDeleteFile: (source: string) => Promise, + }) { + const t = useTrans(); + const dispatch = useDispatch(); + const tags = useSelector((state: RootState) => state.status.editor.tags); + const newFileName = useValue(file.name); + + return ( +
{ + if (file.isDir) { + currentPath.set([...currentPath.value, file.name]); + } + else { + const target = file.path; + const tag: ITag = { + tagName: file.name, + tagTarget: file.path, + tagType: "asset" + }; + // 先要确定没有这个tag + const result = tags.findIndex((e) => e.tagTarget === target); + if (result < 0) dispatch(statusActions.addEditAreaTag(tag)); + dispatch(statusActions.setCurrentTagTarget(target)); + } + }} + className={styles.file} + > + {!file.isDir && } + {file.isDir && } +
+ {file.name} +
+ + + + +
+ + + + + + + + + + + + ); +} \ No newline at end of file diff --git a/packages/origine2/src/config/swagger.json b/packages/origine2/src/config/swagger.json index f6f69a15a..3cb50addc 100644 --- a/packages/origine2/src/config/swagger.json +++ b/packages/origine2/src/config/swagger.json @@ -43,7 +43,7 @@ ] } }, - "/assets/readAssets/{readDirPath}": { + "/api/assets/readAssets/{readDirPath}": { "get": { "operationId": "AssetsController_readAssets", "summary": "Read Assets", @@ -68,7 +68,7 @@ ] } }, - "/assets/openDict": { + "/api/assets/openDict/{dirPath}": { "get": { "operationId": "AssetsController_openDict", "summary": "Open Assets Dictionary", @@ -93,27 +93,55 @@ ] } }, - "/assets/mkdir": { + "/api/assets/createNewFile": { "post": { - "operationId": "AssetsController_mkDir", - "summary": "Create Directory", + "operationId": "AssetsController_createNewFile", + "summary": "Create a New FIle", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MkDirDto" + "$ref": "#/components/schemas/CreateNewFileDto" } } } }, "responses": { "200": { - "description": "Directory created successfully." + "description": "Successfully created the File." }, "400": { - "description": "Failed to create directory." + "description": "Failed to create the File or file already exists." + } + }, + "tags": [ + "Assets" + ] + } + }, + "/api/assets/createNewFolder": { + "post": { + "operationId": "AssetsController_createNewFolder", + "summary": "Create Folder", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateNewFolderDto" + } + } + } + }, + "responses": { + "200": { + "description": "Folder created successfully." + }, + "400": { + "description": "Failed to create Folder." } }, "tags": [ @@ -121,7 +149,7 @@ ] } }, - "/assets/upload": { + "/api/assets/upload": { "post": { "operationId": "AssetsController_upload", "summary": "Upload Files", @@ -149,7 +177,7 @@ ] } }, - "/assets/delete": { + "/api/assets/delete": { "post": { "operationId": "AssetsController_deleteFileOrDir", "summary": "Delete File or Directory", @@ -177,7 +205,7 @@ ] } }, - "/assets/rename": { + "/api/assets/rename": { "post": { "operationId": "AssetsController_rename", "summary": "Rename File or Directory", @@ -838,7 +866,24 @@ "params" ] }, - "MkDirDto": { + "CreateNewFileDto": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "The source path where the directory will be created" + }, + "name": { + "type": "string", + "description": "Name for the new file" + } + }, + "required": [ + "source", + "name" + ] + }, + "CreateNewFolderDto": { "type": "object", "properties": { "source": { @@ -1011,6 +1056,23 @@ "newConfig" ] }, + "MkDirDto": { + "type": "object", + "properties": { + "source": { + "type": "string", + "description": "The source path where the directory will be created" + }, + "name": { + "type": "string", + "description": "Name for the new directory" + } + }, + "required": [ + "source", + "name" + ] + }, "CreateTemplateDto": { "type": "object", "properties": { diff --git a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx index 54c03c60e..0fde5c594 100644 --- a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx +++ b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx @@ -4,6 +4,7 @@ import { RootState } from "../../../store/origineStore"; import { setEditorSidebarTag, sidebarTag } from "../../../store/statusReducer"; import Assets from "./SidebarTags/Assets/Assets"; import Scenes from "./SidebarTags/Scenes/Scenes"; +import NewAssets from "@/components/Assets/Assets"; import React, { useEffect, useRef } from "react"; import useTrans from "@/hooks/useTrans"; import {eventBus} from "@/utils/eventBus"; @@ -55,7 +56,7 @@ export default function EditorSideBar() { if (isMouseDown) { const deltaX = event.clientX - (startX); const newValue = prevXvalue + deltaX; - document.body.style.setProperty("--sidebar-width", `${newValue}px`); + document.body.style.setProperty("--sidebar-width", `${(newValue < 240) ? 240 : newValue}px`); } }; @@ -156,9 +157,12 @@ export default function EditorSideBar() {
- {/* {state.currentSidebarTag === sidebarTag.gameconfig && } */} - {state.currentSidebarTag === sidebarTag.assets && } + {/* {state.currentSidebarTag === sidebarTag.assets && } */} + {state.currentSidebarTag === sidebarTag.assets && + } {state.currentSidebarTag === sidebarTag.scenes && } + {/* {state.currentSidebarTag === sidebarTag.scenes && + } */}
diff --git a/packages/origine2/src/pages/editor/EditorSidebar/editorSidebar.module.scss b/packages/origine2/src/pages/editor/EditorSidebar/editorSidebar.module.scss index 5fdfb133f..f6b9198c3 100644 --- a/packages/origine2/src/pages/editor/EditorSidebar/editorSidebar.module.scss +++ b/packages/origine2/src/pages/editor/EditorSidebar/editorSidebar.module.scss @@ -24,8 +24,8 @@ flex-flow: column; flex-shrink: 0; position: relative; - width: calc(var(--sidebar-width) - 8px); - height: calc(calc(var(--sidebar-width) - 8px) / 16 * 9); + // width: calc(var(--sidebar-width) - 8px); + // height: calc(calc(var(--sidebar-width) - 8px) / 16 * 9); } .previewWindow { @@ -35,6 +35,7 @@ //margin: 4px 0 4px 0; border-radius: var(--radius-md); border: var(--border-md); + aspect-ratio: 16 / 9; } .preview_container:hover .previewWindow { diff --git a/packages/origine2/src/translations/en.ts b/packages/origine2/src/translations/en.ts index c9f9e1656..9c6bafaa0 100644 --- a/packages/origine2/src/translations/en.ts +++ b/packages/origine2/src/translations/en.ts @@ -713,5 +713,13 @@ export const en = { "默认值0":"Default Value is 0", "默认值1":"Default Value is 1", "持续时间(单位为毫秒)":"Duration (milliseconds)", - "结束后保持":"Hold after end" + "结束后保持":"Hold after end", + "createNewFile":"Create New File", + "createNewFolder":"Create New Folder", + "newFileName":"New File Name", + "newFolderName":"New Folder Name", + "upload":"Upload", + "uploadAsset":"Upload Asset", + "refresh":"Refresh", + "openFolder":"Open Folder", }; diff --git a/packages/origine2/src/translations/jp.ts b/packages/origine2/src/translations/jp.ts index ffe62c32c..dbd8eb332 100644 --- a/packages/origine2/src/translations/jp.ts +++ b/packages/origine2/src/translations/jp.ts @@ -721,5 +721,13 @@ export const jp = { "默认值0":"デフォルト値は0", "默认值1":"デフォルト値は1", "持续时间(单位为毫秒)":"持続時間(ミリ秒)", - "结束后保持":"終了後保持" + "结束后保持":"終了後保持", + "createNewFile":"新しいファイルを作成", + "createNewFolder":"新しいフォルダーを作成", + "newFileName":"新しいファイル名", + "newFolderName":"新しいフォルダー名", + "upload":"アップロード", + "uploadAsset":"アセットのアップロード", + "refresh":"更新", + "openFolder":"フォルダーを開く", }; diff --git a/packages/origine2/src/translations/zh-cn.ts b/packages/origine2/src/translations/zh-cn.ts index 202a9899b..cc3f9c214 100644 --- a/packages/origine2/src/translations/zh-cn.ts +++ b/packages/origine2/src/translations/zh-cn.ts @@ -720,5 +720,13 @@ export const zhCn = { "默认值0":"默认值0", "默认值1":"默认值1", "持续时间(单位为毫秒)":"持续时间(单位为毫秒)", - "结束后保持":"结束后保持" + "结束后保持":"结束后保持", + "createNewFile":"新建文件", + "createNewFolder":"新建文件夹", + "newFileName":"新文件名", + "newFolderName":"新文件夹名", + "upload": "上传", + "uploadAsset":"上传资源", + "refresh":"刷新", + "openFolder":"打开文件夹", }; diff --git a/packages/terre2/src/Modules/assets/assets.controller.ts b/packages/terre2/src/Modules/assets/assets.controller.ts index 9934a6ff6..f97abf7d0 100644 --- a/packages/terre2/src/Modules/assets/assets.controller.ts +++ b/packages/terre2/src/Modules/assets/assets.controller.ts @@ -1,4 +1,5 @@ import { + BadRequestException, Body, Controller, Get, @@ -14,15 +15,16 @@ import { import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger'; import { AssetsService } from './assets.service'; import { + CreateNewFileDto, DeleteFileOrDirDto, - MkDirDto, + CreateNewFolderDto, RenameDto, UploadFilesDto, } from './assets.dto'; import { FilesInterceptor } from '@nestjs/platform-express'; import { _open } from 'src/util/open'; -@Controller('assets') +@Controller('api/assets') @ApiTags('Assets') export class AssetsController { constructor( @@ -49,7 +51,7 @@ export class AssetsController { return { readDirPath, dirPath, dirInfo }; } - @Get('openDict') // <-- Define the route parameter using :gameName + @Get('openDict/:dirPath(*)') @ApiOperation({ summary: 'Open Assets Dictionary' }) @ApiResponse({ status: 200, @@ -66,14 +68,35 @@ export class AssetsController { await _open(path); } - @Post('mkdir') - @ApiOperation({ summary: 'Create Directory' }) - @ApiResponse({ status: 200, description: 'Directory created successfully.' }) - @ApiResponse({ status: 400, description: 'Failed to create directory.' }) - async mkDir(@Body() fileOperationDto: MkDirDto) { + @Post('createNewFile') + @ApiOperation({ summary: 'Create a New FIle' }) + @ApiResponse({ status: 200, description: 'Successfully created the File.' }) + @ApiResponse({ + status: 400, + description: 'Failed to create the File or file already exists.', + }) + async createNewFile( + @Body() createNewFileData: CreateNewFileDto, + ): Promise { + const path = this.webgalFs.getPathFromRoot( + `${createNewFileData.source}/${createNewFileData.name}`, + ); + + if (await this.webgalFs.exists(path)) { + throw new BadRequestException('Scene already exists'); + } + + return this.webgalFs.createEmptyFile(path); + } + + @Post('createNewFolder') + @ApiOperation({ summary: 'Create Folder' }) + @ApiResponse({ status: 200, description: 'Folder created successfully.' }) + @ApiResponse({ status: 400, description: 'Failed to create Folder.' }) + async createNewFolder(@Body() createNewFolderData: CreateNewFolderDto) { await this.webgalFs.mkdir( - this.webgalFs.getPathFromRoot(fileOperationDto.source), - fileOperationDto.name, + this.webgalFs.getPathFromRoot(createNewFolderData.source), + createNewFolderData.name, ); return true; } diff --git a/packages/terre2/src/Modules/assets/assets.dto.ts b/packages/terre2/src/Modules/assets/assets.dto.ts index 9ba6905d2..139d74000 100644 --- a/packages/terre2/src/Modules/assets/assets.dto.ts +++ b/packages/terre2/src/Modules/assets/assets.dto.ts @@ -5,7 +5,17 @@ export class UploadFilesDto { targetDirectory: string; } -export class MkDirDto { +export class CreateNewFileDto { + @ApiProperty({ + description: 'The source path where the directory will be created', + }) + source: string; + + @ApiProperty({ description: 'Name for the new file' }) + name: string; +} + +export class CreateNewFolderDto { @ApiProperty({ description: 'The source path where the directory will be created', }) From 1a4b5cadef5c494fb78ffd3ba978f7e32986c9bf Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Sun, 10 Mar 2024 21:42:36 +0800 Subject: [PATCH 028/125] feat: add assets protect check --- .../origine2/src/components/Assets/Assets.tsx | 2 +- .../src/components/Assets/FileElement.tsx | 105 +++++++++++------- .../editor/EditorSidebar/EditorSidebar.tsx | 6 +- .../src/Modules/assets/assets.controller.ts | 4 +- .../terre2/src/Modules/assets/assets.dto.ts | 2 +- 5 files changed, 70 insertions(+), 49 deletions(-) diff --git a/packages/origine2/src/components/Assets/Assets.tsx b/packages/origine2/src/components/Assets/Assets.tsx index c2978d9fa..d00ed454c 100644 --- a/packages/origine2/src/components/Assets/Assets.tsx +++ b/packages/origine2/src/components/Assets/Assets.tsx @@ -239,7 +239,7 @@ function FileUploader({ targetDirectory, uploadUrl, onUpload }: IFileUploaderPro
- + ); } \ No newline at end of file diff --git a/packages/origine2/src/components/Assets/FileElement.tsx b/packages/origine2/src/components/Assets/FileElement.tsx index 7ca2aa9fb..c17217950 100644 --- a/packages/origine2/src/components/Assets/FileElement.tsx +++ b/packages/origine2/src/components/Assets/FileElement.tsx @@ -14,6 +14,20 @@ import useTrans from "@/hooks/useTrans"; const RenameIcon = bundleIcon(RenameFilled, RenameRegular); const DeleteIcon = bundleIcon(DeleteFilled, DeleteRegular); +const protectFiles = [ + '/game/animation', + '/game/background', + '/game/bgm', + '/game/figure', + '/game/scene', + '/game/scene/start.txt', + '/game/tex', + '/game/video', + '/game/vocal', + '/game/config.txt', + '/game/userStyleSheet.css', +]; + export default function FileElement( { file, currentPath, handleRenameFile, handleDeleteFile } : { @@ -27,6 +41,9 @@ export default function FileElement( const tags = useSelector((state: RootState) => state.status.editor.tags); const newFileName = useValue(file.name); + const isScene = () => /\/public\/games\/([^\/\n]+)\/game\/scene\/([^\/\n]+).txt/.test(file.path.replaceAll('\\','/')); + const isProtect = protectFiles.some((item) => new RegExp(`\/public\/games\/[^\/\n]+${item.replaceAll('/','\/')}$`).test(file.path.replaceAll('\\','/'))); + return (
e.tagTarget === target); @@ -61,48 +78,52 @@ export default function FileElement( {file.name}
- - - - - - - - - - - - - + { + !isProtect && + <> + + + + + + + + + + + + + + } ); } \ No newline at end of file diff --git a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx index 0fde5c594..9aa7ae75b 100644 --- a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx +++ b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx @@ -160,9 +160,9 @@ export default function EditorSideBar() { {/* {state.currentSidebarTag === sidebarTag.assets && } */} {state.currentSidebarTag === sidebarTag.assets && } - {state.currentSidebarTag === sidebarTag.scenes && } - {/* {state.currentSidebarTag === sidebarTag.scenes && - } */} + {/* {state.currentSidebarTag === sidebarTag.scenes && } */} + {state.currentSidebarTag === sidebarTag.scenes && + } diff --git a/packages/terre2/src/Modules/assets/assets.controller.ts b/packages/terre2/src/Modules/assets/assets.controller.ts index f97abf7d0..c66b6fa6d 100644 --- a/packages/terre2/src/Modules/assets/assets.controller.ts +++ b/packages/terre2/src/Modules/assets/assets.controller.ts @@ -18,7 +18,7 @@ import { CreateNewFileDto, DeleteFileOrDirDto, CreateNewFolderDto, - RenameDto, + RenameFileDto, UploadFilesDto, } from './assets.dto'; import { FilesInterceptor } from '@nestjs/platform-express'; @@ -139,7 +139,7 @@ export class AssetsController { status: 400, description: 'Failed to rename the file or directory.', }) - async rename(@Body() fileOperationDto: RenameDto) { + async rename(@Body() fileOperationDto: RenameFileDto) { return this.webgalFs.renameFile( this.webgalFs.getPathFromRoot(fileOperationDto.source), fileOperationDto.newName, diff --git a/packages/terre2/src/Modules/assets/assets.dto.ts b/packages/terre2/src/Modules/assets/assets.dto.ts index 139d74000..7ba440ec4 100644 --- a/packages/terre2/src/Modules/assets/assets.dto.ts +++ b/packages/terre2/src/Modules/assets/assets.dto.ts @@ -32,7 +32,7 @@ export class DeleteFileOrDirDto { source: string; } -export class RenameDto { +export class RenameFileDto { @ApiProperty({ description: 'The source path of the file or directory to be renamed', }) From bb7d0fc162d123cf4f19cdfc8d27a25dc0338831 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:03:44 +0800 Subject: [PATCH 029/125] feat: assets add format support and file description --- .../origine2/src/components/Assets/Assets.tsx | 61 +++++++++++++------ .../src/components/Assets/FileElement.tsx | 32 +++------- .../editor/ChooseFile/chooseFileConfig.ts | 2 +- .../editor/EditorSidebar/EditorSidebar.tsx | 33 ++++++++-- packages/origine2/src/translations/en.ts | 26 +++++--- packages/origine2/src/translations/jp.ts | 26 +++++--- packages/origine2/src/translations/zh-cn.ts | 26 +++++--- 7 files changed, 134 insertions(+), 72 deletions(-) diff --git a/packages/origine2/src/components/Assets/Assets.tsx b/packages/origine2/src/components/Assets/Assets.tsx index d00ed454c..7862547d8 100644 --- a/packages/origine2/src/components/Assets/Assets.tsx +++ b/packages/origine2/src/components/Assets/Assets.tsx @@ -2,11 +2,12 @@ import { api } from "@/api"; import { useValue } from "@/hooks/useValue"; import { ChangeEvent, useEffect, useMemo, useState } from "react"; import styles from "./Assets.module.scss"; -import { Button, Input, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Popover, PopoverSurface, PopoverTrigger, Text } from "@fluentui/react-components"; +import { Badge, Button, Input, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Popover, PopoverSurface, PopoverTrigger, Text } from "@fluentui/react-components"; import { ArrowExportUpFilled, ArrowExportUpRegular, ArrowLeftFilled, ArrowLeftRegular, ArrowSyncFilled, ArrowSyncRegular, DocumentAddFilled, DocumentAddRegular, FolderAddFilled, FolderAddRegular, FolderOpenFilled, FolderOpenRegular, MoreVerticalFilled, MoreVerticalRegular, bundleIcon } from "@fluentui/react-icons"; import useTrans from "@/hooks/useTrans"; import FileElement from "./FileElement"; import axios from "axios"; +import { dirNameToExtNameMap } from "@/pages/editor/ChooseFile/chooseFileConfig"; export interface IFile { extName: string; @@ -15,14 +16,16 @@ export interface IFile { path: string; } -interface AssetsProps { - basePath: string[], - extra?: { - path: string[], - protect: boolean, - mark?: string, - }[] +export type FolderType = 'animation' | 'background' | 'bgm' | 'figure' | 'scene' | 'tex' | 'video' | 'vocal' + +export type FileConfig = Map< +string, +{ + name?: string, + folderType?: FolderType, + isProtected?: boolean, } +> const ArrowLeftIcon = bundleIcon(ArrowLeftFilled, ArrowLeftRegular); const DocumentAddIcon = bundleIcon(DocumentAddFilled, DocumentAddRegular); @@ -32,18 +35,32 @@ const MoreVerticalIcon = bundleIcon(MoreVerticalFilled, MoreVerticalRegular); const ArrowExportUpIcon = bundleIcon(ArrowExportUpFilled, ArrowExportUpRegular); const ArrowSyncIcon = bundleIcon(ArrowSyncFilled, ArrowSyncRegular); -export default function Assets(props: AssetsProps) { +export default function Assets({basePath, fileConfig}: {basePath: string[], fileConfig?: FileConfig}) { const t = useTrans(); - const currentPath = useValue(props.basePath); - const currentPathName = useMemo(() => currentPath.value.join("/"), [currentPath]); - const isBasePath = (currentPathName === props.basePath.join('/')); + const currentPath = useValue(basePath); + const currentPathString = useMemo(() => currentPath.value.join("/"), [currentPath]); + const isBasePath = (currentPathString === basePath.join('/')); const fileList = useValue(null); const refresh = useValue(false); + const folderType = useValue(undefined); + const supportedExtName = folderType.value ? dirNameToExtNameMap.get(folderType.value) : []; useEffect( () => { - api.assetsControllerReadAssets(currentPathName).then((res) => { + fileConfig?.forEach((value, key) => { + if (currentPathString.startsWith(key)) { + folderType.set(value.folderType); + } + }); + return () => folderType.set(undefined); + }, + [currentPathString] + ); + + useEffect( + () => { + api.assetsControllerReadAssets(currentPathString).then((res) => { const data = res.data as unknown as object; if ('dirInfo' in data && data.dirInfo) { const dirInfo = data.dirInfo as IFile[]; @@ -55,7 +72,7 @@ export default function Assets(props: AssetsProps) { } }); }, - [currentPathName, refresh.value] + [currentPathString, refresh.value] ); const handleRefresh = () => refresh.set(!refresh.value); @@ -68,7 +85,7 @@ export default function Assets(props: AssetsProps) { const handleCreateNewFolder = (source: string, name: string) => api.assetsControllerCreateNewFolder({ source, name }).then(() => handleRefresh()); - const handleOpenFolder = () => api.assetsControllerOpenDict(currentPathName); + const handleOpenFolder = () => api.assetsControllerOpenDict(currentPathString); const handleRenameFile = (source: string, newName: string) => api.assetsControllerRename({ source, newName }).then(() => handleRefresh()); @@ -86,7 +103,7 @@ export default function Assets(props: AssetsProps) {
{!isBasePath &&
+
+ {supportedExtName?.map(item => {item})} +
{ fileList.value?.map(file => diff --git a/packages/origine2/src/components/Assets/FileElement.tsx b/packages/origine2/src/components/Assets/FileElement.tsx index c17217950..7c454b53d 100644 --- a/packages/origine2/src/components/Assets/FileElement.tsx +++ b/packages/origine2/src/components/Assets/FileElement.tsx @@ -2,7 +2,7 @@ import { getFileIcon, getDirIcon } from "@/utils/getFileIcon"; import { Popover, PopoverTrigger, Button, PopoverSurface, Input, Text } from "@fluentui/react-components"; import { t } from "i18next"; import IconWrapper from "../iconWrapper/IconWrapper"; -import { IFile } from "./Assets"; +import { FolderType, IFile } from "./Assets"; import styles from "./FileElement.module.scss"; import { useValue } from '../../hooks/useValue'; import { bundleIcon, RenameFilled, RenameRegular, DeleteFilled, DeleteRegular } from "@fluentui/react-icons"; @@ -14,25 +14,14 @@ import useTrans from "@/hooks/useTrans"; const RenameIcon = bundleIcon(RenameFilled, RenameRegular); const DeleteIcon = bundleIcon(DeleteFilled, DeleteRegular); -const protectFiles = [ - '/game/animation', - '/game/background', - '/game/bgm', - '/game/figure', - '/game/scene', - '/game/scene/start.txt', - '/game/tex', - '/game/video', - '/game/vocal', - '/game/config.txt', - '/game/userStyleSheet.css', -]; - export default function FileElement( - { file, currentPath, handleRenameFile, handleDeleteFile } + { file, name, currentPath, isProtected, folderType, handleRenameFile, handleDeleteFile } : { file: IFile, + name?: string, currentPath: any, + folderType?: FolderType, + isProtected?: boolean, handleRenameFile: (source: string, newName: string) => Promise, handleDeleteFile: (source: string) => Promise, }) { @@ -41,13 +30,12 @@ export default function FileElement( const tags = useSelector((state: RootState) => state.status.editor.tags); const newFileName = useValue(file.name); - const isScene = () => /\/public\/games\/([^\/\n]+)\/game\/scene\/([^\/\n]+).txt/.test(file.path.replaceAll('\\','/')); - const isProtect = protectFiles.some((item) => new RegExp(`\/public\/games\/[^\/\n]+${item.replaceAll('/','\/')}$`).test(file.path.replaceAll('\\','/'))); - + const isScene = () => (folderType === 'scene') && file.name.endsWith('.txt'); + return (
{ + onClick={() => { if (file.isDir) { currentPath.set([...currentPath.value, file.name]); } @@ -75,11 +63,11 @@ export default function FileElement( whiteSpace: 'nowrap', }} > - {file.name} + {file.name} {name && ({name})}
{ - !isProtect && + !isProtected && <> diff --git a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts index 33a02377c..bdfb45f17 100644 --- a/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts +++ b/packages/origine2/src/pages/editor/ChooseFile/chooseFileConfig.ts @@ -12,7 +12,7 @@ dirnameToDisplayNameMap.set('tex', () => t(tPrefix + 'tex')); dirnameToDisplayNameMap.set('video', () => t(tPrefix + 'video')); dirnameToDisplayNameMap.set('vocal', () => t(tPrefix + 'vocal')); -export const dirNameToExtNameMap = new Map(); +export const dirNameToExtNameMap = new Map(); dirNameToExtNameMap.set('animation', ['.json']); dirNameToExtNameMap.set('background', ['.jpg', '.png', '.webp']); diff --git a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx index 9aa7ae75b..3f3d15d02 100644 --- a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx +++ b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx @@ -4,8 +4,8 @@ import { RootState } from "../../../store/origineStore"; import { setEditorSidebarTag, sidebarTag } from "../../../store/statusReducer"; import Assets from "./SidebarTags/Assets/Assets"; import Scenes from "./SidebarTags/Scenes/Scenes"; -import NewAssets from "@/components/Assets/Assets"; -import React, { useEffect, useRef } from "react"; +import NewAssets, { FileConfig } from "@/components/Assets/Assets"; +import React, { useEffect, useMemo, useRef } from "react"; import useTrans from "@/hooks/useTrans"; import {eventBus} from "@/utils/eventBus"; import { ArrowClockwise24Filled, ArrowClockwise24Regular, bundleIcon, Open24Filled, Open24Regular } from "@fluentui/react-icons"; @@ -99,6 +99,21 @@ export default function EditorSideBar() { }; }, []); + const fileConfig: FileConfig = new Map([ + [`public/games/${state.currentEditingGame}/game/animation`, { name: t('$animation'), folderType: 'animation', isProtected: true}], + [`public/games/${state.currentEditingGame}/game/animation/animationTable.json`, { isProtected: true }], + [`public/games/${state.currentEditingGame}/game/background`, { name: t('$background'), folderType: 'background', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/bgm`, { name: t('$bgm'), folderType: 'bgm', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/figure`, { name: t('$figure'), folderType: 'figure', isProtected: true}], + [`public/games/${state.currentEditingGame}/game/scene`, { name: t('$scene'), folderType: 'scene', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/scene/start.txt`, { isProtected: true }], + [`public/games/${state.currentEditingGame}/game/tex`, { name: t('$tex'), folderType: 'tex', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/video`, { name: t('$video'), folderType: 'video', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/vocal`, { name: t('$vocal'), folderType: 'vocal', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/config.txt`, { name: t('$gameConfig'), isProtected: true }], + [`public/games/${state.currentEditingGame}/game/userStyleSheet.css`, { isProtected: true }], + ]); + return <> {isShowSidebar &&
setSidebarTab(sidebarTag.assets)} /> - + setSidebarTab(sidebarTag.scenes)} /> - +
{/* {state.currentSidebarTag === sidebarTag.assets && } */} {state.currentSidebarTag === sidebarTag.assets && - } + } {/* {state.currentSidebarTag === sidebarTag.scenes && } */} {state.currentSidebarTag === sidebarTag.scenes && - } + }
diff --git a/packages/origine2/src/translations/en.ts b/packages/origine2/src/translations/en.ts index 9c6bafaa0..c9fce078d 100644 --- a/packages/origine2/src/translations/en.ts +++ b/packages/origine2/src/translations/en.ts @@ -714,12 +714,22 @@ export const en = { "默认值1":"Default Value is 1", "持续时间(单位为毫秒)":"Duration (milliseconds)", "结束后保持":"Hold after end", - "createNewFile":"Create New File", - "createNewFolder":"Create New Folder", - "newFileName":"New File Name", - "newFolderName":"New Folder Name", - "upload":"Upload", - "uploadAsset":"Upload Asset", - "refresh":"Refresh", - "openFolder":"Open Folder", + createNewFile:'Create New File', + createNewFolder:'Create New Folder', + newFileName:'New File Name', + newFolderName:'New Folder Name', + upload:'Upload', + uploadAsset:'Upload Asset', + refresh:'Refresh', + openFolder:'Open Folder', + assets:'Assets', + animation: 'Animation', + background: 'Background', + bgm: 'BGM', + figure: 'Figure', + scene: 'Scene', + tex: 'Tex', + video: 'Video', + vocal: 'Vocal', + gameConfig: 'Game Config', }; diff --git a/packages/origine2/src/translations/jp.ts b/packages/origine2/src/translations/jp.ts index dbd8eb332..17e91b7f0 100644 --- a/packages/origine2/src/translations/jp.ts +++ b/packages/origine2/src/translations/jp.ts @@ -722,12 +722,22 @@ export const jp = { "默认值1":"デフォルト値は1", "持续时间(单位为毫秒)":"持続時間(ミリ秒)", "结束后保持":"終了後保持", - "createNewFile":"新しいファイルを作成", - "createNewFolder":"新しいフォルダーを作成", - "newFileName":"新しいファイル名", - "newFolderName":"新しいフォルダー名", - "upload":"アップロード", - "uploadAsset":"アセットのアップロード", - "refresh":"更新", - "openFolder":"フォルダーを開く", + createNewFile:'新しいファイルを作成', + createNewFolder:'新しいフォルダーを作成', + newFileName:'新しいファイル名', + newFolderName:'新しいフォルダー名', + upload:'アップロード', + uploadAsset:'アセットのアップロード', + refresh:'更新', + openFolder:'フォルダーを開く', + assets:'Assets', + animation: 'Animation', + background: 'Background', + bgm: 'BGM', + figure: 'Figure', + scene: 'Scene', + tex: 'Tex', + video: 'Video', + vocal: 'Vocal', + gameConfig: 'Game Config', }; diff --git a/packages/origine2/src/translations/zh-cn.ts b/packages/origine2/src/translations/zh-cn.ts index cc3f9c214..81c92b2be 100644 --- a/packages/origine2/src/translations/zh-cn.ts +++ b/packages/origine2/src/translations/zh-cn.ts @@ -721,12 +721,22 @@ export const zhCn = { "默认值1":"默认值1", "持续时间(单位为毫秒)":"持续时间(单位为毫秒)", "结束后保持":"结束后保持", - "createNewFile":"新建文件", - "createNewFolder":"新建文件夹", - "newFileName":"新文件名", - "newFolderName":"新文件夹名", - "upload": "上传", - "uploadAsset":"上传资源", - "refresh":"刷新", - "openFolder":"打开文件夹", + createNewFile:'新建文件', + createNewFolder:'新建文件夹', + newFileName:'新文件名', + newFolderName:'新文件夹名', + upload: '上传', + uploadAsset:'上传资源', + refresh:'刷新', + openFolder:'打开文件夹', + assets:'资源', + animation: '动画', + background: '背景', + bgm: '音乐', + figure: '立绘', + scene: '场景', + tex: '纹理', + video: '视频', + vocal: '语音', + gameConfig: '游戏配置', }; From aed83847355044bfae913ca6d68c8b5f659d4e25 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:10:34 +0800 Subject: [PATCH 030/125] style: update file style --- packages/origine2/src/components/Assets/FileElement.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/origine2/src/components/Assets/FileElement.tsx b/packages/origine2/src/components/Assets/FileElement.tsx index 7c454b53d..a858f2105 100644 --- a/packages/origine2/src/components/Assets/FileElement.tsx +++ b/packages/origine2/src/components/Assets/FileElement.tsx @@ -63,7 +63,7 @@ export default function FileElement( whiteSpace: 'nowrap', }} > - {file.name} {name && ({name})} + {file.name} {name && {name}}
{ From d491e7282112713ca486fd6802ee6214a994a325 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Mon, 11 Mar 2024 21:33:19 +0800 Subject: [PATCH 031/125] style: update popover style --- .../origine2/src/components/Assets/Assets.tsx | 68 +++++++++---------- .../src/components/Assets/FileElement.tsx | 38 +++++------ .../origine2/src/pages/dashboard/Sidebar.tsx | 6 +- .../editor/EditorSidebar/EditorSidebar.tsx | 18 ++--- packages/origine2/src/translations/en.ts | 2 + packages/origine2/src/translations/jp.ts | 2 + packages/origine2/src/translations/zh-cn.ts | 2 + 7 files changed, 67 insertions(+), 69 deletions(-) diff --git a/packages/origine2/src/components/Assets/Assets.tsx b/packages/origine2/src/components/Assets/Assets.tsx index 7862547d8..83e6a3dd9 100644 --- a/packages/origine2/src/components/Assets/Assets.tsx +++ b/packages/origine2/src/components/Assets/Assets.tsx @@ -2,7 +2,7 @@ import { api } from "@/api"; import { useValue } from "@/hooks/useValue"; import { ChangeEvent, useEffect, useMemo, useState } from "react"; import styles from "./Assets.module.scss"; -import { Badge, Button, Input, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Popover, PopoverSurface, PopoverTrigger, Text } from "@fluentui/react-components"; +import { Badge, Button, Field, Input, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Popover, PopoverSurface, PopoverTrigger, Radio, RadioGroup, Subtitle1, Text } from "@fluentui/react-components"; import { ArrowExportUpFilled, ArrowExportUpRegular, ArrowLeftFilled, ArrowLeftRegular, ArrowSyncFilled, ArrowSyncRegular, DocumentAddFilled, DocumentAddRegular, FolderAddFilled, FolderAddRegular, FolderOpenFilled, FolderOpenRegular, MoreVerticalFilled, MoreVerticalRegular, bundleIcon } from "@fluentui/react-icons"; import useTrans from "@/hooks/useTrans"; import FileElement from "./FileElement"; @@ -21,7 +21,7 @@ export type FolderType = 'animation' | 'background' | 'bgm' | 'figure' | 'scene' export type FileConfig = Map< string, { - name?: string, + desc?: string, folderType?: FolderType, isProtected?: boolean, } @@ -43,20 +43,8 @@ export default function Assets({basePath, fileConfig}: {basePath: string[], file const isBasePath = (currentPathString === basePath.join('/')); const fileList = useValue(null); const refresh = useValue(false); - const folderType = useValue(undefined); - const supportedExtName = folderType.value ? dirNameToExtNameMap.get(folderType.value) : []; - - useEffect( - () => { - fileConfig?.forEach((value, key) => { - if (currentPathString.startsWith(key)) { - folderType.set(value.folderType); - } - }); - return () => folderType.set(undefined); - }, - [currentPathString] - ); + const folderType = fileConfig ? Array.from(fileConfig.entries()).find(([key]) => currentPathString.startsWith(key))?.[1].folderType : undefined; + const extName = folderType ? dirNameToExtNameMap.get(folderType) : []; useEffect( () => { @@ -96,6 +84,7 @@ export default function Assets({basePath, fileConfig}: {basePath: string[], file const createNewFilePopoverOpen = useValue(false); const createNewFolderPopoverOpen = useValue(false); const newFileName = useValue(''); + const newFileExtensionName = useValue(folderType === 'scene' ? '.txt' : ''); const uploadAssetPopoverOpen = useValue(false); return ( @@ -117,10 +106,8 @@ export default function Assets({basePath, fileConfig}: {basePath: string[], file + @@ -97,11 +98,10 @@ export default function FileElement( onClick={(e) => e.stopPropagation()} /> e.stopPropagation()}> - - {t("$common.delete")} - -
- -
+ {t('createNewGame.dialog.title')} (event.key === 'Enter') && createNewGame()} defaultValue={t('createNewGame.dialog.defaultName')} placeholder={t('createNewGame.dialog.text')} /> -
- -
+
diff --git a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx index 3f3d15d02..6e1054ca6 100644 --- a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx +++ b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx @@ -100,17 +100,17 @@ export default function EditorSideBar() { }, []); const fileConfig: FileConfig = new Map([ - [`public/games/${state.currentEditingGame}/game/animation`, { name: t('$animation'), folderType: 'animation', isProtected: true}], + [`public/games/${state.currentEditingGame}/game/animation`, { desc: t('$animation'), folderType: 'animation', isProtected: true}], [`public/games/${state.currentEditingGame}/game/animation/animationTable.json`, { isProtected: true }], - [`public/games/${state.currentEditingGame}/game/background`, { name: t('$background'), folderType: 'background', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/bgm`, { name: t('$bgm'), folderType: 'bgm', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/figure`, { name: t('$figure'), folderType: 'figure', isProtected: true}], - [`public/games/${state.currentEditingGame}/game/scene`, { name: t('$scene'), folderType: 'scene', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/background`, { desc: t('$background'), folderType: 'background', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/bgm`, { desc: t('$bgm'), folderType: 'bgm', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/figure`, { desc: t('$figure'), folderType: 'figure', isProtected: true}], + [`public/games/${state.currentEditingGame}/game/scene`, { desc: t('$scene'), folderType: 'scene', isProtected: true }], [`public/games/${state.currentEditingGame}/game/scene/start.txt`, { isProtected: true }], - [`public/games/${state.currentEditingGame}/game/tex`, { name: t('$tex'), folderType: 'tex', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/video`, { name: t('$video'), folderType: 'video', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/vocal`, { name: t('$vocal'), folderType: 'vocal', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/config.txt`, { name: t('$gameConfig'), isProtected: true }], + [`public/games/${state.currentEditingGame}/game/tex`, { desc: t('$tex'), folderType: 'tex', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/video`, { desc: t('$video'), folderType: 'video', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/vocal`, { desc: t('$vocal'), folderType: 'vocal', isProtected: true }], + [`public/games/${state.currentEditingGame}/game/config.txt`, { desc: t('$gameConfig'), isProtected: true }], [`public/games/${state.currentEditingGame}/game/userStyleSheet.css`, { isProtected: true }], ]); diff --git a/packages/origine2/src/translations/en.ts b/packages/origine2/src/translations/en.ts index c9fce078d..6adb8f2c1 100644 --- a/packages/origine2/src/translations/en.ts +++ b/packages/origine2/src/translations/en.ts @@ -732,4 +732,6 @@ export const en = { video: 'Video', vocal: 'Vocal', gameConfig: 'Game Config', + extensionName: 'Extension Name', + null: 'Null', }; diff --git a/packages/origine2/src/translations/jp.ts b/packages/origine2/src/translations/jp.ts index 17e91b7f0..4d666f520 100644 --- a/packages/origine2/src/translations/jp.ts +++ b/packages/origine2/src/translations/jp.ts @@ -740,4 +740,6 @@ export const jp = { video: 'Video', vocal: 'Vocal', gameConfig: 'Game Config', + extensionName: 'Extension Name', + null: 'Null', }; diff --git a/packages/origine2/src/translations/zh-cn.ts b/packages/origine2/src/translations/zh-cn.ts index 81c92b2be..c751e906e 100644 --- a/packages/origine2/src/translations/zh-cn.ts +++ b/packages/origine2/src/translations/zh-cn.ts @@ -739,4 +739,6 @@ export const zhCn = { video: '视频', vocal: '语音', gameConfig: '游戏配置', + extensionName: '扩展名', + null: '无', }; From c9ce01b077ce39f54d3fa25b3e0194bd581e29db Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Mon, 11 Mar 2024 21:43:16 +0800 Subject: [PATCH 032/125] Remove old assets component --- .../editor/EditorSidebar/EditorSidebar.tsx | 10 +- .../SidebarTags/Assets/Assets.tsx | 364 ------------------ .../SidebarTags/Assets/assets.module.scss | 156 -------- .../SidebarTags/Scenes/Scenes.tsx | 156 -------- .../SidebarTags/Scenes/sceneTab.module.scss | 13 - .../SidebarTags/sidebarTags.module.scss | 0 .../sidebarComponents/FileElement.tsx | 120 ------ .../sidebarComponents.module.scss | 57 --- 8 files changed, 3 insertions(+), 873 deletions(-) delete mode 100644 packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx delete mode 100644 packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/assets.module.scss delete mode 100644 packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx delete mode 100644 packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/sceneTab.module.scss delete mode 100644 packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/sidebarTags.module.scss delete mode 100644 packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx delete mode 100644 packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/sidebarComponents.module.scss diff --git a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx index 6e1054ca6..4f7c92777 100644 --- a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx +++ b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx @@ -2,9 +2,7 @@ import styles from "./editorSidebar.module.scss"; import { useDispatch, useSelector } from "react-redux"; import { RootState } from "../../../store/origineStore"; import { setEditorSidebarTag, sidebarTag } from "../../../store/statusReducer"; -import Assets from "./SidebarTags/Assets/Assets"; -import Scenes from "./SidebarTags/Scenes/Scenes"; -import NewAssets, { FileConfig } from "@/components/Assets/Assets"; +import Assets, { FileConfig } from "@/components/Assets/Assets"; import React, { useEffect, useMemo, useRef } from "react"; import useTrans from "@/hooks/useTrans"; import {eventBus} from "@/utils/eventBus"; @@ -172,15 +170,13 @@ export default function EditorSideBar() {
- {/* {state.currentSidebarTag === sidebarTag.assets && } */} {state.currentSidebarTag === sidebarTag.assets && - } - {/* {state.currentSidebarTag === sidebarTag.scenes && } */} {state.currentSidebarTag === sidebarTag.scenes && - } diff --git a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx deleted file mode 100644 index 3de2c2802..000000000 --- a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx +++ /dev/null @@ -1,364 +0,0 @@ -import assetsStyles from "./assets.module.scss"; -import axios from "axios"; -import { origineStore, RootState } from "../../../../../store/origineStore"; -import { useValue } from "../../../../../hooks/useValue"; -import { useDispatch, useSelector } from "react-redux"; -import React, { useEffect, useState } from "react"; -import { getFileList, IFileDescription } from "../../../ChooseFile/ChooseFile"; -import { dirnameToDisplayNameMap, dirNameToExtNameMap } from "../../../ChooseFile/chooseFileConfig"; -import { DeleteOne, Editor, FolderOpen, FolderPlus, LeftSmall, Upload } from "@icon-park/react"; -import { ITag, statusActions } from "../../../../../store/statusReducer"; -import { extractPathAfterPublic } from "../../../ResourceDisplay/ResourceDisplay"; -import useTrans from "@/hooks/useTrans"; -import IconWrapper from "@/components/iconWrapper/IconWrapper"; -import { getDirIcon, getFileIcon } from "@/utils/getFileIcon"; -import TagTitleWrapper from "@/components/TagTitleWrapper/TagTitleWrapper"; -import { api } from "@/api"; -import { RequestParams } from "@/api/Api"; -import { Button, Input, Popover, PopoverSurface, PopoverTrigger, Text } from "@fluentui/react-components"; - -export default function Assets() { - const t = useTrans("editor.sideBar.assets."); - - /** - * 上传文件 - */ - - const isShowUploadCallout = useValue(false); - - /** - * 当前目录,以及包含文件 - */ - const currentChildDir = useValue([],true,'current-child-dir-hold'); - const currentDirName = currentChildDir.value.reduce((prev, curr) => prev + "/" + curr, ""); - const currentDirFiles = useValue([]); - const gameName = useSelector((state: RootState) => state.status.editor.currentEditingGame); - const currentDirExtName = useValue(["unset"],true,'current-dir-ext-name'); - const currentDirExtNameKey = currentDirExtName.value.toString(); - const dispatch = useDispatch(); - const tags = useSelector((state: RootState) => state.status.editor.tags); - - function open_assets() { - api.manageGameControllerOpenGameAssetsDict( gameName, { subFolder: currentDirName }).then(); - } - - /** - * 新建文件夹 - */ - const isShowMkdirCallout = useValue(false); - const newDirName = useValue(""); - const handleCreatNewDir = () => { - axios.post("/api/manageGame/mkdir", { - source: `public/games/${gameName}/game${currentDirName}`, - name: newDirName.value - }).then(refreshCurrentDir); - isShowMkdirCallout.set(false); - }; - - function refreshCurrentDir() { - /** - * 更新当前目录内的文件 - */ - getFileList(gameName, currentDirName, currentDirExtName.value).then(result => { - currentDirFiles.set(result); - }); - - if (currentChildDir.value.length === 0) { - currentDirExtName.set(["unset"]); - } - } - - useEffect(() => { - refreshCurrentDir(); - }, [currentDirName, currentDirExtNameKey]); - - async function goBack() { - if (currentChildDir.value.length > 0) - currentChildDir.set(currentChildDir.value.slice(0, currentChildDir.value.length - 1)); - } - - async function renameFile(source: string, newName: string) { - const trueSource = `public/${extractPathAfterPublic(source)}`; - await axios.post("/api/manageGame/rename", { source: trueSource, newName }); - refreshCurrentDir(); - } - - async function deleteFile(source: string) { - const trueSource = `public/${extractPathAfterPublic(source)}`; - await axios.post("/api/manageGame/delete", { source: trueSource }); - refreshCurrentDir(); - } - - let currentFileList; - - if (currentDirName === "") { - currentFileList = currentDirFiles.value.map((fileDesc) => { - const dirName = dirnameToDisplayNameMap.get(fileDesc.name); - const currentFileName = dirName ? dirName() : fileDesc.name; - if (currentFileName === t("folders.scene")) return null; - return { - }} - onRename={() => { - }} - onClick={() => { - currentChildDir.set([...currentChildDir.value, fileDesc.name]); - const targetDirExtName = dirNameToExtNameMap.get(fileDesc.name) ?? []; - currentDirExtName.set(targetDirExtName); - }} />; - }); - } else { - currentFileList = currentDirFiles.value.map((fileDesc) => { - const dirName = dirnameToDisplayNameMap.get(fileDesc.name); - const currentFileName = dirName ? dirName() : fileDesc.name; - - function openChildDir() { - currentChildDir.set([...currentChildDir.value, fileDesc.name]); - } - - return deleteFile(fileDesc.path)} - onRename={(newName) => renameFile(fileDesc.path, newName)} - onClick={() => { - if (fileDesc.isDir) { - openChildDir(); - } else { - const target = fileDesc.path; - const tag: ITag = { - tagName: fileDesc.name, - tagTarget: fileDesc.path, - tagType: "asset" - }; - // 先要确定没有这个tag - const result = tags.findIndex((e) => e.tagTarget === target); - if (result < 0) dispatch(statusActions.addEditAreaTag(tag)); - dispatch(statusActions.setCurrentTagTarget(target)); - } - }} />; - }); - } - - return ( -
- {/* - {t("buttons.openFolder")} -
} /> */} -
- { - currentDirName && -
- -
- } -
- {currentDirName === "" ? "/" : currentDirName} -
- {currentDirName !== "" && - <> - isShowUploadCallout.set(!isShowUploadCallout.value)} - > - -
- -
-
- - - {t("buttons.uploadAsset")} - - { - isShowUploadCallout.set(false); - refreshCurrentDir(); - }} targetDirectory={`public/games/${gameName}/game${currentDirName}`} - uploadUrl="/api/manageGame/uploadFiles" /> - -
- - { - isShowMkdirCallout.set(!isShowMkdirCallout.value); - newDirName.set(""); - }} - > - -
- -
-
- - - {t("buttons.createNewFolder")} - -
- { - newDirName.set(data.value ?? ""); - }} /> -
- -
-
-
- - } - -
open_assets()}> - -
-
-
- {currentDirName !== "" &&
- {t("supportFileTypes")} {currentDirExtName.value.map(e => { - return {e}; - })} -
- } - {currentFileList} -
-
- ); -} - -/** - * 单个文件的按钮 - * @param props - * @constructor - */ -function CommonFileButton(props: IFileDescription & { - showOptions: boolean, - onClick: Function, - onRename: (newName: string) => void, - onDelete: () => void -}) { - const t = useTrans("editor.sideBar.assets."); - - const showConformDeleteCallout = useValue(false); - const showRenameCallout = useValue(false); - const newFileName = useValue(""); - - return
props.onClick()}> - {!props.isDir && } - {props.isDir && } -
- {props.name} -
- {props.showOptions && - <> - { - newFileName.set(""); - }} - > - -
{ - e.stopPropagation(); - newFileName.set(props.name); - }} - className={assetsStyles.deleteButton} - style={{ display: showRenameCallout.value ? "block" : undefined }} - > - -
-
- e.stopPropagation()}> - - {t("buttons.rename")} - -
- { - newFileName.set(data.value ?? ""); - }} /> -
- -
-
-
- - -
e.stopPropagation()} - className={assetsStyles.deleteButton} - style={{ display: showRenameCallout.value ? "block" : undefined}} - > - -
-
- e.stopPropagation()}> - - {t("$common.delete")} - -
- -
-
-
- - } -
; -} - -interface IFileUploaderProps { - targetDirectory: string; - uploadUrl: string; - onUpload: () => void; -} - -function FileUploader({ targetDirectory, uploadUrl, onUpload }: IFileUploaderProps) { - const t = useTrans("editor.sideBar.assets."); - - const [files, setFiles] = useState([]); - - const handleFileChange = (event: React.ChangeEvent) => { - setFiles(Array.from(event.target.files!)); - }; - - const handleUpload = () => { - const formData = new FormData(); - formData.append("targetDirectory", targetDirectory); - files.forEach((file) => { - formData.append("files", file); - }); - - axios.post(uploadUrl, formData).then((response) => { - if (response.data) { - onUpload(); - } - }); - }; - - return ( -
-
- -
- -
- ); -} diff --git a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/assets.module.scss b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/assets.module.scss deleted file mode 100644 index b898d1f0b..000000000 --- a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/assets.module.scss +++ /dev/null @@ -1,156 +0,0 @@ -.assetsHead { - display: flex; - align-items: center; -} - -.controlHead { - display: flex; - align-items: center; - margin: 8px; - gap: 4px; - height: 25px; -} - -.controlCommonButton { - border: var(--border-md); - border-radius: var(--radius-md); - cursor: pointer; - transition: all 0.33s; - height: 25px; - width: 25px; - display: flex; - align-items: center; - justify-content: center; -} - -.controlCommonButton:hover { - background: var(--bg-button-hover); -} - -.controlDirnameDisplay { - padding: 0 0 0 10px; - font-family: Consolas, "Courier New", monospace; - border: var(--border-md); - border-radius: var(--radius-md); - flex: 1; - font-size: 14px; - height: 25px; - line-height: 25px; - letter-spacing: .01em; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - // margin: 0 0 0 4px; -} - -.commonFileButton { - padding: 5px 5px 5px 10px; - margin: 5px 0 0 0; - //border-radius: 4px; - flex: 1; - cursor: pointer; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - display: flex; - align-items: center; - font-size: 14px; - border-radius: var(--radius-md); - height: 25px; -} - -.commonFileButton:hover { - background: var(--bg-button-hover); -} - -.fileName { - flex: 1; - cursor: pointer; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - margin: 0 0 0 6px; -} - - -.deleteButton { - padding: 2px 2px 1px 2px; - margin: 0 4px 0 0; - border-radius: var(--radius-md); - transition: all 0.33s; - visibility: hidden; -} - -.commonFileButton:hover .deleteButton { - visibility: visible; -} - -.deleteButton:hover { - background: var(--bg-button-hover); -} - -.deleteButton:hover svg path { - stroke: var(--primary); -} - -.fileList { - overflow: auto; - // margin: 3px 0 0 0; -} - -.uploadCallout { - padding: 3px 9px 9px 9px; - display: flex; - flex-flow: column; - align-items: center; -} - -.fileUploadContainer { - display: flex; - align-items: center; - justify-content: center; - flex-flow: column; -} - -.fileInput { - display: none; -} - -.fileSelectButton { - background-color: var(--primary); - color: var(--bg-input); - padding: 8px 16px; - border-radius: var(--radius-md); - border: none; - cursor: pointer; - font-size: 14px; - font-weight: 500; - margin: 4px 0 0 0; -} - -.fileSelectInput { - width: 300px; - border: var(--border-md); - border-radius: var(--radius-md); - padding: 15px; - font-size: 16px; - outline: none; - cursor: pointer; -} - -.fileSelectInput:focus { - border: var(--border-primary-sm); - box-shadow: var(--shadow-primary-md); -} - -.extNameShow { - background: var(--primary-5pct); - color: var(--primary); - padding: 1px 5px 4px 5px; - border-radius: var(--radius-md); - margin: 0 0 0 4px; -} - -.iconParkIcon>svg>path { - stroke: var(--text); -} \ No newline at end of file diff --git a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx deleted file mode 100644 index 49e32f47d..000000000 --- a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx +++ /dev/null @@ -1,156 +0,0 @@ -import {useValue} from "../../../../../hooks/useValue"; -import {useEffect, useState} from "react"; -import {useDispatch, useSelector} from "react-redux"; -import {RootState} from "../../../../../store/origineStore"; -import axios from "axios"; -import {IFileInfo} from "webgal-terre-2/dist/Modules/webgal-fs/webgal-fs.service"; -import FileElement from "../../sidebarComponents/FileElement"; -import {ITag, statusActions} from "../../../../../store/statusReducer"; -import useTrans from "@/hooks/useTrans"; -import TagTitleWrapper from "@/components/TagTitleWrapper/TagTitleWrapper"; -import {Newlybuild} from "@icon-park/react"; -import s from './sceneTab.module.scss'; -import { Button, Input, Popover, PopoverSurface, PopoverTrigger, Text } from "@fluentui/react-components"; - -export default function Scenes() { - const t = useTrans('editor.sideBar.scenes.'); - - const state = useSelector((state: RootState) => state.status.editor); - const dispatch = useDispatch(); - const currentGameName = state.currentEditingGame; - // 场景文件的列表 - const sceneList = useValue([]); - - const [errorMessage, setErrorMessage] = useState(''); - - // 处理新建场景的问题 - const showCreateSceneCallout = useValue(false); - const newSceneName = useValue(""); - - const createNewScene = async () => { - if (newSceneName.value && newSceneName.value.length !==0){ - const gameName = state.currentEditingGame; - const params = new URLSearchParams(); - - params.append("gameName", gameName); - params.append("sceneName", newSceneName.value); - - axios.post("/api/manageGame/createNewScene/", params) - .then(() => { - showCreateSceneCallout.set(false); - updateSceneListView(); - newSceneName.set(""); - }) - .catch(() => { - setErrorMessage(t('dialogs.create.sceneExisted')); - }); - } - }; - - // 请求场景文件的函数 - async function getSceneList() { - const url = `/api/manageGame/readGameAssets/${currentGameName}/game/scene`; - const rawSceneList: IFileInfo[] = await axios.get(url).then((r) => r.data.dirInfo); - return rawSceneList.filter((e: any) => e.extName === ".txt"); - } - - function updateSceneListView() { - getSceneList().then((result) => { - sceneList.set(result); - }); - } - - // 准备请求场景文件 - useEffect(() => { - updateSceneListView(); - }, []); - - // 更新文件名的函数 - function constructUpdateFilenameFunc(oldPath: string) { - return function (newFilename: string) { - const params = new URLSearchParams(); - params.append("path", oldPath); - params.append("newName", newFilename); - axios.post("/api/manageGame/editFilename/", params).then(updateSceneListView); - }; - } - - // 删除文件的函数 - function constructDeleteFileFunc(path: string) { - return function () { - const params = new URLSearchParams(); - params.append("path", path); - axios.post("/api/manageGame/deleteFile/", params).then(updateSceneListView); - }; - } - - // 添加 Tag 的函数 - function addEditTag(name: string, target: string) { - const tag: ITag = {tagName: name, tagTarget: target, tagType: "scene"}; - // 先要确定没有这个tag - const result = state.tags.findIndex((e) => e.tagTarget === target); - if (result < 0) dispatch(statusActions.addEditAreaTag(tag)); - dispatch(statusActions.setCurrentTagTarget(target)); - } - - const showSceneList = sceneList.value.map((singleFile) => { - return ( - addEditTag(singleFile.name, singleFile.path)} - name={singleFile.name} - key={singleFile.name} - deleteCallback={constructDeleteFileFunc(singleFile.path)} - editFileNameCallback={constructUpdateFilenameFunc(singleFile.path)} - undeletable={singleFile.name === 'start.txt'} - /> - ); - }); - - return ( -
- showCreateSceneCallout.set(!showCreateSceneCallout.value)} - > - -
- - {t('dialogs.create.button')} -
-
- - - {t('dialogs.create.title')} - -
- newSceneName.set(e.target.value)} - placeholder={t('dialogs.create.text')} - onKeyDown={(event) => (event.key === "Enter") && createNewScene()} - /> -
-
- -
-
- - } - /> -
{showSceneList}
-
- ); -} diff --git a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/sceneTab.module.scss b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/sceneTab.module.scss deleted file mode 100644 index 965212c09..000000000 --- a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/sceneTab.module.scss +++ /dev/null @@ -1,13 +0,0 @@ -.tag_title_button { - font-size: 90%; - padding: 3px 7px 3px 7px; - color: var(--bg-root); - cursor: pointer; - background: var(--primary); - border-radius: var(--radius-md); - transition: background-color 0.33s, border-left-color 0.33s; - - &:hover { - background: var(--primary-90pct); - } -} diff --git a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/sidebarTags.module.scss b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/sidebarTags.module.scss deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx b/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx deleted file mode 100644 index d67ff7715..000000000 --- a/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx +++ /dev/null @@ -1,120 +0,0 @@ -import { DeleteOne, Editor } from "@icon-park/react"; -import { ReactElement } from "react"; -import styles from "./sidebarComponents.module.scss"; -import { useValue } from "../../../../hooks/useValue"; -import useTrans from "@/hooks/useTrans"; -import documentLogo from "material-icon-theme/icons/document.svg"; -import IconWrapper from "@/components/iconWrapper/IconWrapper"; -import { Button, Input, Popover, PopoverSurface, PopoverTrigger, Text } from "@fluentui/react-components"; - -export interface IFileElementProps { - name: string; - fileType?: string; - editFileNameCallback?: Function; - clickCallback?: Function; - deleteCallback?: Function; - icon?: ReactElement; - undeletable?: boolean; -} - - -export default function FileElement(props: IFileElementProps) { - const t = useTrans("editor.sideBar.file.dialogs."); - - const icon = props.icon ?? ; - - // 修改文件名部分 - const showEditNameCallout = useValue(false); - const newFileName = useValue(props.name); - - function closeEditNameCallout() { - showEditNameCallout.set(false); - } - - function switchEditNameCallout() { - showEditNameCallout.set(!showEditNameCallout.value); - } - - function updateNewFilename(event: any) { - const newValue = event.target.value; - newFileName.set(newValue); - } - - function commitNewFileName() { - if (props.editFileNameCallback) - props.editFileNameCallback(newFileName.value); - } - - const clickCallback = () => { - console.log("clicked"); - props?.clickCallback && props.clickCallback(); - }; - - // 删除文件部分 - const deleteFileCallback = () => { - if (!props?.undeletable) props?.deleteCallback && props.deleteCallback(); - }; - - const showDeleteCalllout = useValue(false); - - return ( -
-
{icon}
-
{props.name}
- - -
e.stopPropagation()} - > - -
-
- e.stopPropagation()}> - - {t("editName.title")} - -
- -
-
- -
-
-
- showDeleteCalllout.set(!showDeleteCalllout.value)} - > - - { - !props?.undeletable - ?
e.stopPropagation()} - > - -
- :
- } - - e.stopPropagation()}> - - {t({ key: "delete.text", format: { name: props.name } })} - -
- - -
-
- -
- ); -} diff --git a/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/sidebarComponents.module.scss b/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/sidebarComponents.module.scss deleted file mode 100644 index 25277a21f..000000000 --- a/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/sidebarComponents.module.scss +++ /dev/null @@ -1,57 +0,0 @@ -.fileElement { - padding: 5px 5px 5px 10px; - margin: 5px 0 0 0; - //border-radius: 4px; - flex: 1; - cursor: pointer; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - display: flex; - align-items: center; - font-size: 14px; - border-radius: var(--radius-md); - height: 25px; -} - -.fileElement:hover { - background: var(--bg-button-hover); -} - -.fileElement_name { - flex: 1; - padding: 2px 0 2px 0; - margin: 1px 0 1px 0; -} - -.fileElement_icon { - padding: 2px 3px 1px 0px; - margin: 1px 1px 1px 0px; - box-sizing: border-box; -} - -.fileElement_interactable_icon { - box-sizing: border-box; - padding: 2px 3px 1px 2px; - margin: 1px 1px 1px 1px; - border-radius: var(--radius-md); - transition: all 0.33s; - cursor: pointer; - visibility: hidden; -} - -.fileElement:hover .fileElement_interactable_icon { - visibility: visible; -} - -.fileElement_interactable_icon:hover { - background: var(--bg-button-hover); -} - -.fileElement_interactable_icon>span>svg>path { - stroke: var(--text); -} - -.fileElement_interactable_icon:hover>span>svg>path { - stroke: var(--primary); -} \ No newline at end of file From 53032c6af5fa09fba0f6c11eb98c33134b1a9f11 Mon Sep 17 00:00:00 2001 From: 22 <60903333+nini22P@users.noreply.github.com> Date: Sun, 17 Mar 2024 15:54:15 +0800 Subject: [PATCH 033/125] feat: route improvements, state repository migration to zustand --- packages/origine2/package.json | 6 +- packages/origine2/src/App.tsx | 55 +++-- .../origine2/src/components/Assets/Assets.tsx | 13 +- .../src/components/Assets/FileElement.tsx | 31 ++- .../GameEditorContextProvider copy.tsx | 17 ++ .../GameEditorContextProvider.tsx | 17 ++ .../components/translation/Translation.tsx | 10 - packages/origine2/src/config/info.ts | 2 +- packages/origine2/src/hooks/useExpand.ts | 10 - packages/origine2/src/hooks/useHashRoute.ts | 116 ++++------ packages/origine2/src/hooks/useLanguage.ts | 39 +--- .../src/pages/dashboard/DashBoard.tsx | 132 ++++++------ .../src/pages/dashboard/GameElement.tsx | 23 +- .../src/pages/dashboard/TemplateElement.tsx | 24 +-- .../pages/editor/ChooseFile/ChooseFile.tsx | 6 +- packages/origine2/src/pages/editor/Editor.tsx | 36 +--- .../editor/EditorSidebar/EditorSidebar.tsx | 118 +++++----- .../GraphicalEditor/GraphicalEditor.tsx | 9 +- .../SentenceEditor/ChangeBg.tsx | 6 +- .../SentenceEditor/ChangeFigure.tsx | 11 +- .../GraphicalEditor/SentenceEditor/Intro.tsx | 6 +- .../SentenceEditor/SetTransform.tsx | 6 +- .../GraphicalEditor/components/TerrePanel.tsx | 13 +- .../src/pages/editor/MainArea/EditArea.tsx | 40 ++-- .../pages/editor/MainArea/EditorToolbar.tsx | 23 +- .../src/pages/editor/MainArea/MainArea.tsx | 7 - .../src/pages/editor/MainArea/TagsManager.tsx | 57 +++-- .../editor/MainArea/editorToolbar.module.scss | 2 + .../pages/editor/TextEditor/TextEditor.tsx | 23 +- .../src/pages/editor/Topbar/Topbar.tsx | 95 ++++---- .../editor/Topbar/components/TopbarTab.tsx | 8 +- .../editor/Topbar/tabs/Export/ExportTab.tsx | 5 +- .../Topbar/tabs/GameConfig/GameConfig.tsx | 14 +- .../Topbar/tabs/Settings/SettingsTab.tsx | 25 +-- .../editor/Topbar/tabs/ViewConfig/ViewTab.tsx | 25 +-- .../pages/templateeditor/TemplateEditor.tsx | 14 +- packages/origine2/src/store/origineStore.ts | 26 --- packages/origine2/src/store/statusReducer.ts | 204 ------------------ packages/origine2/src/store/useEditorStore.ts | 37 ++++ .../origine2/src/store/useGameEditorStore.ts | 40 ++++ .../src/store/useTemplateEditorStore.ts | 30 +++ .../origine2/src/store/userDataReducer.ts | 44 ---- packages/origine2/src/types/editor.ts | 19 ++ packages/origine2/src/types/gameEditor.ts | 29 +++ packages/origine2/src/types/templateEditor.ts | 12 ++ .../origine2/src/utils/createSelectors.ts | 20 ++ packages/origine2/src/utils/wsUtil.ts | 3 +- .../manage-template/manage-template.dto.ts | 2 +- .../manage-template.service.ts | 15 +- packages/terre2/src/app.module.ts | 2 +- packages/terre2/src/util/open.ts | 2 +- yarn.lock | 62 +----- 52 files changed, 676 insertions(+), 915 deletions(-) create mode 100644 packages/origine2/src/components/ContextProvider/GameEditorContextProvider copy.tsx create mode 100644 packages/origine2/src/components/ContextProvider/GameEditorContextProvider.tsx delete mode 100644 packages/origine2/src/components/translation/Translation.tsx delete mode 100644 packages/origine2/src/hooks/useExpand.ts delete mode 100644 packages/origine2/src/store/origineStore.ts delete mode 100644 packages/origine2/src/store/statusReducer.ts create mode 100644 packages/origine2/src/store/useEditorStore.ts create mode 100644 packages/origine2/src/store/useGameEditorStore.ts create mode 100644 packages/origine2/src/store/useTemplateEditorStore.ts delete mode 100644 packages/origine2/src/store/userDataReducer.ts create mode 100644 packages/origine2/src/types/editor.ts create mode 100644 packages/origine2/src/types/gameEditor.ts create mode 100644 packages/origine2/src/types/templateEditor.ts create mode 100644 packages/origine2/src/utils/createSelectors.ts diff --git a/packages/origine2/package.json b/packages/origine2/package.json index c58b460fe..5fab0a31e 100644 --- a/packages/origine2/package.json +++ b/packages/origine2/package.json @@ -18,7 +18,6 @@ "@fluentui/react-icons-mdl2": "^1.3.41", "@icon-park/react": "^1.4.2", "@monaco-editor/react": "^4.4.5", - "@reduxjs/toolkit": "^1.8.1", "@uiw/react-json-view": "^2.0.0-alpha.12", "axios": "^1.6.0", "classnames": "^2.5.1", @@ -36,11 +35,10 @@ "react-beautiful-dnd": "^13.1.0", "react-dom": "^18.0.0", "react-i18next": "^12.2.2", - "react-redux": "^8.0.1", - "redux-persist": "^6.0.0", "sass": "^1.51.0", "swr": "^2.2.4", - "webgal-parser": "latest" + "webgal-parser": "latest", + "zustand": "^4.5.2" }, "devDependencies": { "@types/lodash": "^4.14.182", diff --git a/packages/origine2/src/App.tsx b/packages/origine2/src/App.tsx index db31f8285..4c95b4a07 100644 --- a/packages/origine2/src/App.tsx +++ b/packages/origine2/src/App.tsx @@ -1,26 +1,28 @@ import "./App.css"; -import {logger} from "./utils/logger"; +import { logger } from "./utils/logger"; import DashBoard from "./pages/dashboard/DashBoard"; -import {Provider} from "react-redux"; -import {origineStore, persistor} from "./store/origineStore"; import Editor from "./pages/editor/Editor"; -import {useEffect} from "react"; +import { useEffect } from "react"; import "@icon-park/react/styles/index.css"; import axios from "axios"; -import {mapLspKindToMonacoKind} from "./pages/editor/TextEditor/convert"; +import { mapLspKindToMonacoKind } from "./pages/editor/TextEditor/convert"; import * as monaco from "monaco-editor"; -import Translation from "./components/translation/Translation"; -import {lspSceneName} from "@/runtime/WG_ORIGINE_RUNTIME"; +import { lspSceneName } from "@/runtime/WG_ORIGINE_RUNTIME"; import './config/themes/theme.css'; -import {PersistGate} from 'redux-persist/integration/react'; import './assets/font-family.css'; +import useEditorStore from "./store/useEditorStore"; +import useHashRoute from "./hooks/useHashRoute"; +import useLanguage from "./hooks/useLanguage"; +import GameEditorContextProvider from "./components/ContextProvider/GameEditorContextProvider"; +import TemplateEditorContextProvider from "./components/ContextProvider/GameEditorContextProvider copy"; +import TemplateEditor from "./pages/templateEditor/TemplateEditor"; function App() { useEffect(() => { logger.info("Welcome to WebGAL live editor!"); // 防止多次注册,语言在初次进入的时候注册 - monaco.languages.register({id: "webgal"}); + monaco.languages.register({ id: "webgal" }); /** * LSP */ @@ -31,7 +33,7 @@ function App() { textDocument: { uri: lspSceneName.value }, - position: {line: position.lineNumber - 1, character: position.column - 1} + position: { line: position.lineNumber - 1, character: position.column - 1 } }; const data = { @@ -43,7 +45,7 @@ function App() { // 处理 LSP 的响应 const result = { suggestions: response.data.items.map((suggestion: any) => { - return {...suggestion, kind: mapLspKindToMonacoKind(suggestion.kind)}; + return { ...suggestion, kind: mapLspKindToMonacoKind(suggestion.kind) }; }) }; resolve(result); @@ -53,16 +55,31 @@ function App() { }); }); + useHashRoute(); + useLanguage(); + + const editor = useEditorStore.use.editor(); + const currentEdit = useEditorStore.use.currentEdit(); + + const checkRoute = () => { + if (editor === 'game' && currentEdit.length !== 0) { + return 'game-editor'; + } else if (editor === 'template' && currentEdit.length !== 0) { + return 'template-editor'; + } else { + return 'dashBoard'; + } + }; + + const routers = { + 'dashBoard': , + 'game-editor': , + 'template-editor': , + }; + return ( - // 将编辑器的根元素占满整个视口
- - - - - - - + {routers[checkRoute()]}
); } diff --git a/packages/origine2/src/components/Assets/Assets.tsx b/packages/origine2/src/components/Assets/Assets.tsx index 83e6a3dd9..63751fa87 100644 --- a/packages/origine2/src/components/Assets/Assets.tsx +++ b/packages/origine2/src/components/Assets/Assets.tsx @@ -124,14 +124,9 @@ export default function Assets({basePath, fileConfig}: {basePath: string[], file
diff --git a/packages/origine2/src/components/ContextProvider/GameEditorContextProvider copy.tsx b/packages/origine2/src/components/ContextProvider/GameEditorContextProvider copy.tsx new file mode 100644 index 000000000..4f54de7c0 --- /dev/null +++ b/packages/origine2/src/components/ContextProvider/GameEditorContextProvider copy.tsx @@ -0,0 +1,17 @@ +import useEditorStore from "@/store/useEditorStore"; +import { TemplateEditorContext, createTemplateEditorStore } from "@/store/useTemplateEditorStore"; +import { ReactNode, useRef } from "react"; + +const TemplateEditorContextProvider = ({ children }: { children: ReactNode}) => { + const editor = useEditorStore.use.editor(); + if (editor !== 'template') return null; + const currentEdit = useEditorStore.use.currentEdit(); + const templateEditorStore = useRef(createTemplateEditorStore(currentEdit)).current; + return( + + {children} + + ); +}; + +export default TemplateEditorContextProvider; \ No newline at end of file diff --git a/packages/origine2/src/components/ContextProvider/GameEditorContextProvider.tsx b/packages/origine2/src/components/ContextProvider/GameEditorContextProvider.tsx new file mode 100644 index 000000000..584984581 --- /dev/null +++ b/packages/origine2/src/components/ContextProvider/GameEditorContextProvider.tsx @@ -0,0 +1,17 @@ +import useEditorStore from "@/store/useEditorStore"; +import { GameEditorContext, createGameEditorStore } from "@/store/useGameEditorStore"; +import { ReactNode, useRef } from "react"; + +const GameEditorContextProvider = ({ children }: { children: ReactNode}) => { + const editor = useEditorStore.use.editor(); + if (editor !== 'game') return null; + const currentEdit = useEditorStore.use.currentEdit(); + const gameEditorStore = useRef(createGameEditorStore(currentEdit)).current; + return( + + {children} + + ); +}; + +export default GameEditorContextProvider; \ No newline at end of file diff --git a/packages/origine2/src/components/translation/Translation.tsx b/packages/origine2/src/components/translation/Translation.tsx deleted file mode 100644 index 89da9771d..000000000 --- a/packages/origine2/src/components/translation/Translation.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import useLanguage from '@/hooks/useLanguage'; -import { useEffect } from 'react'; - -export default function Translation() { - const setLanguage = useLanguage(); - - useEffect(() => setLanguage(Number(window?.localStorage?.getItem('editor-lang'))) , []); - - return null; -} diff --git a/packages/origine2/src/config/info.ts b/packages/origine2/src/config/info.ts index 4f62f7e56..1f4320e2b 100644 --- a/packages/origine2/src/config/info.ts +++ b/packages/origine2/src/config/info.ts @@ -5,5 +5,5 @@ export interface Info { export const __INFO: Info = { version: '4.4.12', - buildTime: '2023-12-30T03:22:49.651Z', // 编译时会通过 version-sync.js 自动更新 + buildTime: '2024-03-16T08:35:29.057Z', // 编译时会通过 version-sync.js 自动更新 }; diff --git a/packages/origine2/src/hooks/useExpand.ts b/packages/origine2/src/hooks/useExpand.ts deleted file mode 100644 index ffe38666b..000000000 --- a/packages/origine2/src/hooks/useExpand.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {useDispatch, useSelector} from "react-redux"; -import {RootState} from "@/store/origineStore"; -import {updateGraphicalEditorCurrentExpandSentence} from "@/store/statusReducer"; - -export function useExpand() { - const currentExpandSentence = useSelector((state: RootState) => state.status.editor.graphicalEditorState.currentExpandSentence); - const dispatch = useDispatch(); - const updateIndex = (index:number)=>dispatch(updateGraphicalEditorCurrentExpandSentence(index)); - return {expandIndex:currentExpandSentence,updateExpandIndex:updateIndex}; -} diff --git a/packages/origine2/src/hooks/useHashRoute.ts b/packages/origine2/src/hooks/useHashRoute.ts index c67dfb8e8..20b815729 100644 --- a/packages/origine2/src/hooks/useHashRoute.ts +++ b/packages/origine2/src/hooks/useHashRoute.ts @@ -1,82 +1,42 @@ -import {useDispatch, useSelector} from "react-redux"; -import {RootState} from "@/store/origineStore"; +import useEditorStore from "@/store/useEditorStore"; import {useEffect} from "react"; -import {setDashboardShow, setEditingGame, statusActions} from "@/store/statusReducer"; -import {ITag} from "@/store/statusReducer"; - -export function useHashRoute() { - const state = useSelector((state: RootState) => state.status); - const isShowDashboard = state.dashboard.showDashBoard; - const editingGameName = state.editor.currentEditingGame; - const currentTag = state.editor.selectedTagTarget; - const dispatch = useDispatch(); - useEffect(() => { - setTimeout(() => { - // 写入 Hash - // 如果显示 dashboard 或者两个状态都为空,则清空哈希 - if (isShowDashboard || (!editingGameName && !currentTag)) { - window.location.hash = ''; - return; - } - console.log(currentTag); - const tagInfoObj = state.editor.tags.find(e => e.tagTarget === currentTag); - let tagStr = ''; - if (tagInfoObj) { - tagStr = JSON.stringify(tagInfoObj); - } - tagStr = encodeURIComponent(tagStr); - // 基于当前的状态构造哈希字符串,过滤掉空字符串并用 '/' 连接 - const hashParts = [editingGameName, tagStr].filter(part => part !== ''); - // 更新浏览器的哈希部分 - window.location.hash = `#/${hashParts.join('/')}`; - }, 50); - - }, [isShowDashboard, editingGameName, currentTag]); - - useEffect(() => { - const result = decodeHash(); - if (result.editingGameName !== '') { - dispatch(setDashboardShow(false)); - dispatch(setEditingGame(decodeURIComponent(result.editingGameName))); - if (result.currentTag !== '') { - const currentTagJsonStr = decodeURIComponent(result.currentTag); - let tagObj: null | ITag = null; - try { - tagObj = JSON.parse(currentTagJsonStr); - } catch (e) { - } - if (tagObj) { - dispatch(statusActions.addEditAreaTag(tagObj)); - dispatch(statusActions.setCurrentTagTarget(tagObj.tagTarget)); - } - - } - } - }, []); +interface RouterMap { + [key: string]: string; } -function decodeHash() { - // 获取当前 URL 的哈希部分 - const hash = window.location.hash; - - // 如果没有哈希,返回空 - if (!hash) { - return {editingGameName: '', currentTag: ''}; - } - - // 移除哈希开头的 #/ ,然后分割字符串 - const parts = hash.slice(2).split('/'); - - // 根据 parts 的长度返回相应的值 - if (parts.length === 0) { - // 哈希存在但没有内容 - return {editingGameName: '', currentTag: ''}; - } else if (parts.length === 1) { - // 只有 editingGameName - return {editingGameName: parts[0], currentTag: ''}; - } else { - // 有 editingGameName 和 currentTag - return {editingGameName: parts[0], currentTag: parts[1]}; - } -} +export const routerMap: RouterMap = { + game: '#game-editor', + template: '#template-editor', +}; + + +export default function useHashRoute() { + const updateEditor = useEditorStore.use.updateEditor(); + const updateCurrentEdit = useEditorStore.use.updateCurrentEdit(); + + useEffect( + () => { + const getHash = () => { + const [editor, currentEdit] = window.location.hash.slice(1).split('/'); + if (editor === 'game-editor') { + updateEditor('game'); + } else if (editor === 'template-editor') { + updateEditor('template'); + } else { + window.location.hash = routerMap.game; + } + (currentEdit && currentEdit.length > 0) + ? updateCurrentEdit(decodeURIComponent(currentEdit)) + : updateCurrentEdit(''); + }; + getHash(); + window.addEventListener('hashchange', getHash); + return () => { + window.removeEventListener('hashchange', getHash); + }; + }, + [] + ); + +} \ No newline at end of file diff --git a/packages/origine2/src/hooks/useLanguage.ts b/packages/origine2/src/hooks/useLanguage.ts index ebce467bc..d6c3927cd 100644 --- a/packages/origine2/src/hooks/useLanguage.ts +++ b/packages/origine2/src/hooks/useLanguage.ts @@ -1,34 +1,17 @@ import { useTranslation } from 'react-i18next'; -import { useDispatch } from 'react-redux'; -import { useGenSyncRef } from './useGenSyncRef'; -import { language } from '@/store/statusReducer'; -import { RootState } from '@/store/origineStore'; import { logger } from '@/utils/logger'; -import { setLanguage } from '@/store/statusReducer'; +import useEditorStore from '@/store/useEditorStore'; +import {useEffect} from 'react'; -export function getLanguageName(lang: language): string { - switch (lang) { - case language.zhCn: - return 'zhCn'; - case language.en: - return 'en'; - case language.jp: - return 'jp'; - } -} - -export default function useLanguage(): (lang?: language) => void { +export default function useLanguage() { const { i18n } = useTranslation(); - const GlobalStatesRef = useGenSyncRef((state: RootState) => state.status); - const dispatch = useDispatch(); - - return (_lang?: language) => { - const lang = (Number.isNaN(_lang) ? null : _lang) ?? GlobalStatesRef.current?.editor.language ?? language.zhCn; - - const languageName = getLanguageName(lang); - i18n.changeLanguage(languageName); + const language = useEditorStore.use.language(); - dispatch(setLanguage(lang)); - logger.info('设置语言: ' + languageName); - }; + useEffect( + () => { + logger.info('设置语言: ' + language); + i18n.changeLanguage(language); + }, + [language] + ); } diff --git a/packages/origine2/src/pages/dashboard/DashBoard.tsx b/packages/origine2/src/pages/dashboard/DashBoard.tsx index 70ff4e7f0..38b72c0ad 100644 --- a/packages/origine2/src/pages/dashboard/DashBoard.tsx +++ b/packages/origine2/src/pages/dashboard/DashBoard.tsx @@ -7,11 +7,7 @@ import styles from "./dashboard.module.scss"; import Sidebar from "./Sidebar"; import TemplateSidebar from "./TemplateSidebar"; import GamePreview from "./GamePreview"; -import {useSelector} from "react-redux"; -import {RootState} from "../../store/origineStore"; import useTrans from "@/hooks/useTrans"; -import useLanguage from "@/hooks/useLanguage"; -import {language} from "@/store/statusReducer"; import About from "./About"; import {WebgalParser} from "../editor/GraphicalEditor/parser"; import { @@ -40,6 +36,8 @@ import { } from "@fluentui/react-icons"; import {useState} from "react"; import classNames from "classnames"; +import useEditorStore from "@/store/useEditorStore"; +import { routerMap } from "@/hooks/useHashRoute"; // 返回的文件信息(单个) interface IFileInfo { @@ -59,27 +57,24 @@ export interface TemplateInfo { title: string; } +const LocalLanguageIcon = bundleIcon(LocalLanguage24Filled, LocalLanguage24Regular); +const GameIcon = bundleIcon(GamesFilled, GamesRegular); +const AlbumIcon = bundleIcon(AlbumFilled, AlbumRegular); + export default function DashBoard() { const t = useTrans('editor.topBar.'); - const setLanguage = useLanguage(); + const updateLanguage = useEditorStore.use.updateLanguage(); const trans = useTrans('dashBoard.'); - const LocalLanguageIcon = bundleIcon(LocalLanguage24Filled, LocalLanguage24Regular); - - const GameIcon = bundleIcon(GamesFilled, GamesRegular); - - const AlbumIcon = bundleIcon(AlbumFilled, AlbumRegular); - - const isDashboardShow: boolean = useSelector((state: RootState) => state.status.dashboard.showDashBoard); - const messageRef = useRef(null); + const editor = useEditorStore.use.editor(); // 左侧栏页签 - const selectedValue = useValue("game"); + const selectedValue = editor; const onTabSelect = (event: SelectTabEvent, data: SelectTabData) => { - selectedValue.set(data.value); + window.location.hash = routerMap[data.value as string] ?? routerMap.game; refreashDashboard(); }; @@ -120,7 +115,7 @@ export default function DashBoard() { } function refreashDashboard() { - if (selectedValue.value === "game") { + if (selectedValue === "game") { getDirInfo("/api/manageGame/gameList").then(response => { const gameList = (response as Array) .filter(e => e.isDir) @@ -139,7 +134,7 @@ export default function DashBoard() { Promise.all(getGameInfoList).then(list => gameInfoList.set(list)); }); } - if(selectedValue.value === "template") + if(selectedValue === "template") { getDirInfo("/api/manageTemplate/templateList").then(response => { console.log("refreash template"); @@ -170,63 +165,62 @@ export default function DashBoard() { setCurrentGame(null); }; - return <> - {isDashboardShow && -
-
+ return( +
+
WebGAL Terre - - - - - }>{t('commandBar.items.language.text')} - - - - setLanguage(language.zhCn)}>简体中文 - setLanguage(language.en)}>English - setLanguage(language.jp)}>日本语 - - - - + + + + + }>{t('commandBar.items.language.text')} + + + + updateLanguage('zhCn')}>简体中文 + updateLanguage('en')}>English + updateLanguage('jp')}>日本语 + + + + +
+
+
+ + } value="game">{t("$游戏")} + } value="template">{t("$模板")} +
-
-
- - } value="game">{t("$游戏")} - } value="template">{t("$模板")} - -
- {selectedValue.value === "game" &&
- - { - currentGame.value && + {selectedValue === "game" &&
+ + { + currentGame.value && e.dir === currentGame.value)!} /> - } - -
} - {selectedValue.value === "template" &&
- -
} -
-
} - ; + } + +
} + {selectedValue === "template" &&
+ +
} +
+
+ ); } diff --git a/packages/origine2/src/pages/dashboard/GameElement.tsx b/packages/origine2/src/pages/dashboard/GameElement.tsx index 1e3052c3b..7daa79596 100644 --- a/packages/origine2/src/pages/dashboard/GameElement.tsx +++ b/packages/origine2/src/pages/dashboard/GameElement.tsx @@ -1,7 +1,5 @@ import styles from "./gameElement.module.scss"; import axios from "axios"; -import { useDispatch } from "react-redux"; -import { setDashboardShow, setEditingGame } from "../../store/statusReducer"; import { useValue } from "../../hooks/useValue"; import useVarTrans from "@/hooks/useVarTrans"; import { GameInfo } from "./DashBoard"; @@ -9,6 +7,7 @@ import { useMemo } from "react"; import { api } from "@/api"; import { Button, Dialog, DialogActions, DialogBody, DialogContent, DialogSurface, DialogTitle, Input, Menu, MenuButton, MenuItem, MenuList, MenuPopover, MenuTrigger } from "@fluentui/react-components"; import { Delete24Filled, Delete24Regular, FolderOpen24Filled, FolderOpen24Regular, MoreVertical24Filled, MoreVertical24Regular, Open24Filled, Open24Regular, Rename24Filled, Rename24Regular, bundleIcon } from "@fluentui/react-icons"; +import { routerMap } from "@/hooks/useHashRoute"; interface IGameElementProps { gameInfo: GameInfo; @@ -17,22 +16,16 @@ interface IGameElementProps { refreash?: () => void; } +const MoreVerticalIcon = bundleIcon(MoreVertical24Filled, MoreVertical24Regular); +const FolderOpenIcon = bundleIcon(FolderOpen24Filled, FolderOpen24Regular); +const OpenIcon = bundleIcon(Open24Filled, Open24Regular); +const RenameIcon = bundleIcon(Rename24Filled, Rename24Regular); +const DeleteIcon = bundleIcon(Delete24Filled, Delete24Regular); + export default function GameElement(props: IGameElementProps) { const soureBase = "background"; const t = useVarTrans('dashBoard.'); - const dispatch = useDispatch(); - - const MoreVerticalIcon = bundleIcon(MoreVertical24Filled, MoreVertical24Regular); - const FolderOpenIcon = bundleIcon(FolderOpen24Filled, FolderOpen24Regular); - const OpenIcon = bundleIcon(Open24Filled, Open24Regular); - const RenameIcon = bundleIcon(Rename24Filled, Rename24Regular); - const DeleteIcon = bundleIcon(Delete24Filled, Delete24Regular); - - const enterEditor = (gameName: string) => { - dispatch(setEditingGame(gameName)); - dispatch(setDashboardShow(false)); - }; let className = styles.gameElement_main; if (props.checked) { @@ -94,7 +87,7 @@ export default function GameElement(props: IGameElementProps) {
{props.gameInfo.dir}
event.stopPropagation()}> - + } /> diff --git a/packages/origine2/src/pages/dashboard/TemplateElement.tsx b/packages/origine2/src/pages/dashboard/TemplateElement.tsx index 20d680e63..fbff6a15d 100644 --- a/packages/origine2/src/pages/dashboard/TemplateElement.tsx +++ b/packages/origine2/src/pages/dashboard/TemplateElement.tsx @@ -3,12 +3,10 @@ import { Button, Dialog, DialogActions, DialogBody, DialogContent, DialogSurface import { Delete24Filled, Delete24Regular, FolderOpen24Filled, FolderOpen24Regular, MoreVertical24Filled, MoreVertical24Regular, Open24Filled, Open24Regular, Rename24Filled, Rename24Regular, bundleIcon } from "@fluentui/react-icons"; import { TemplateInfo } from "./DashBoard"; import useVarTrans from "@/hooks/useVarTrans"; -import { useDispatch } from "react-redux"; import { useMemo } from "react"; -import { setDashboardShow, setEditingGame } from "@/store/statusReducer"; import { useValue } from "../../hooks/useValue"; import { api } from "@/api"; -import axios from "axios"; +import { routerMap } from "@/hooks/useHashRoute"; interface ITemplateElementProps { templateInfo: TemplateInfo; @@ -16,21 +14,19 @@ interface ITemplateElementProps { refreash?: () => void; checked: boolean; } + +const MoreVerticalIcon = bundleIcon(MoreVertical24Filled, MoreVertical24Regular); +const FolderOpenIcon = bundleIcon(FolderOpen24Filled, FolderOpen24Regular); +const OpenIcon = bundleIcon(Open24Filled, Open24Regular); +const RenameIcon = bundleIcon(Rename24Filled, Rename24Regular); +const DeleteIcon = bundleIcon(Delete24Filled, Delete24Regular); + export default function TemplateElement(props: ITemplateElementProps){ const soureBase = "background"; const t = useVarTrans('dashBoard.'); - const dispatch = useDispatch(); - - const MoreVerticalIcon = bundleIcon(MoreVertical24Filled, MoreVertical24Regular); - const FolderOpenIcon = bundleIcon(FolderOpen24Filled, FolderOpen24Regular); - const OpenIcon = bundleIcon(Open24Filled, Open24Regular); - const RenameIcon = bundleIcon(Rename24Filled, Rename24Regular); - const DeleteIcon = bundleIcon(Delete24Filled, Delete24Regular); const enterEditor = (templateName: string) => { - console.log(templateName); - // dispatch(setEditingTemplate(templateName)); 模板编辑界面还没做 可能需要template专用的store? - // dispatch(setDashboardShow(false)); + window.location.hash = `#template-editor/${templateName}`; }; let className = styles.templateElement_main; @@ -90,7 +86,7 @@ export default function TemplateElement(props: ITemplateElementProps){
{props.templateInfo.dir}
event.stopPropagation()}> - + } /> diff --git a/packages/origine2/src/pages/editor/ChooseFile/ChooseFile.tsx b/packages/origine2/src/pages/editor/ChooseFile/ChooseFile.tsx index a8938dd82..2d2459e71 100644 --- a/packages/origine2/src/pages/editor/ChooseFile/ChooseFile.tsx +++ b/packages/origine2/src/pages/editor/ChooseFile/ChooseFile.tsx @@ -1,12 +1,11 @@ import { useValue } from "../../../hooks/useValue"; import { useEffect, useMemo } from "react"; import axios from "axios"; -import { useSelector } from "react-redux"; -import { RootState } from "../../../store/origineStore"; import styles from "./chooseFile.module.scss"; import { FolderOpen, FolderWithdrawal, Notes } from "@icon-park/react"; import useTrans from "@/hooks/useTrans"; import { Button, Input, Popover, PopoverSurface, PopoverTrigger } from "@fluentui/react-components"; +import useEditorStore from "@/store/useEditorStore"; export interface IChooseFile { sourceBase: string; @@ -29,7 +28,8 @@ export default function ChooseFile(props: IChooseFile) { const currentDirName = props.sourceBase + currentChildDir.value.reduce((prev, curr) => prev + "/" + curr, ""); const currentDirFiles = useValue([]); const fileSearch = useValue(''); - const gameName = useSelector((state: RootState) => state.status.editor.currentEditingGame); + const currentEdit = useEditorStore.use.currentEdit(); + const gameName = currentEdit; const updateFileList = ()=>{ /** diff --git a/packages/origine2/src/pages/editor/Editor.tsx b/packages/origine2/src/pages/editor/Editor.tsx index 846f6925e..ebab5f198 100644 --- a/packages/origine2/src/pages/editor/Editor.tsx +++ b/packages/origine2/src/pages/editor/Editor.tsx @@ -1,41 +1,23 @@ import TopBar from "./Topbar/Topbar"; import styles from "./editor.module.scss"; import EditorSideBar from "./EditorSidebar/EditorSidebar"; -import {useDispatch, useSelector} from "react-redux"; -import { RootState } from "@/store/origineStore"; import MainArea from "./MainArea/MainArea"; -import { Splitter, SplitterPanel } from "primereact/splitter"; -import { useHashRoute } from "@/hooks/useHashRoute"; -import {statusActions} from "@/store/statusReducer"; - +import useEditorStore from "@/store/useEditorStore"; +import { useGameEditorContext } from "@/store/useGameEditorStore"; export default function Editor() { - const isShowDashboard = useSelector((state: RootState) => state.status.dashboard.showDashBoard); - const editorState = useSelector((state: RootState) => state.status.editor); - const isShowPreview = editorState.showPreview; - const dispatch = useDispatch(); - const currentTag = editorState.currentSidebarTag; - useHashRoute(); - const isAutoHideToolbar = useSelector((state:RootState)=>state.userData.isAutoHideToolbar); + const isAutoHideToolbar = useEditorStore.use.isAutoHideToolbar(); + const updateCurrentTopbarTab = useGameEditorContext((state) => state.updateCurrentTopbarTab); - function handleMainAreaClick(){ - if(isAutoHideToolbar){ - dispatch(statusActions.setCurrentTopbarTab(undefined)); - } - } + const handleMainAreaClick = () => isAutoHideToolbar && updateCurrentTopbarTab(null); - return <> - {!isShowDashboard &&
+ return ( +
handleMainAreaClick()}> - {/* */} - {/* */} - {/* */} - {/* */}
-
} - ; +
+ ); } diff --git a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx index 4f7c92777..b2f11b30f 100644 --- a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx +++ b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx @@ -1,25 +1,28 @@ import styles from "./editorSidebar.module.scss"; -import { useDispatch, useSelector } from "react-redux"; -import { RootState } from "../../../store/origineStore"; -import { setEditorSidebarTag, sidebarTag } from "../../../store/statusReducer"; import Assets, { FileConfig } from "@/components/Assets/Assets"; -import React, { useEffect, useMemo, useRef } from "react"; +import React, { useEffect, useRef } from "react"; import useTrans from "@/hooks/useTrans"; import {eventBus} from "@/utils/eventBus"; import { ArrowClockwise24Filled, ArrowClockwise24Regular, bundleIcon, Open24Filled, Open24Regular } from "@fluentui/react-icons"; import { Button } from "@fluentui/react-components"; +import useEditorStore from "@/store/useEditorStore"; +import { useGameEditorContext } from "@/store/useGameEditorStore"; let startX = 0; let prevXvalue = 0; let isMouseDown = false; +const ArrowClockwiseIcon = bundleIcon(ArrowClockwise24Filled, ArrowClockwise24Regular); +const OpenIcon = bundleIcon(Open24Filled, Open24Regular); + export default function EditorSideBar() { const t = useTrans("editor.sideBar."); + const currentEdit = useEditorStore.use.currentEdit(); + + const isShowSidebar = useGameEditorContext((state) => state.isShowSidebar); + const currentSidebarTab = useGameEditorContext((state) => state.currentSidebarTab); + const updateCurrentSidebarTab = useGameEditorContext((state) => state.updateCurrentSidebarTab); - const ArrowClockwiseIcon = bundleIcon(ArrowClockwise24Filled, ArrowClockwise24Regular); - const OpenIcon = bundleIcon(Open24Filled, Open24Regular); - - const state = useSelector((state: RootState) => state.status.editor); const ifRef = useRef(null); useEffect(() => { if (ifRef.current) { @@ -80,14 +83,6 @@ export default function EditorSideBar() { }; }, []); - const dispatch = useDispatch(); - - const setSidebarTab = (currentTag: sidebarTag) => { - dispatch(setEditorSidebarTag(currentTag)); - }; - - const isShowSidebar = useSelector((state:RootState)=>state.userData.isShowSidebar); - const refreshGame = () => (ifRef?.current as unknown as HTMLIFrameElement).contentWindow?.location.reload(); useEffect(() => { @@ -98,18 +93,18 @@ export default function EditorSideBar() { }, []); const fileConfig: FileConfig = new Map([ - [`public/games/${state.currentEditingGame}/game/animation`, { desc: t('$animation'), folderType: 'animation', isProtected: true}], - [`public/games/${state.currentEditingGame}/game/animation/animationTable.json`, { isProtected: true }], - [`public/games/${state.currentEditingGame}/game/background`, { desc: t('$background'), folderType: 'background', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/bgm`, { desc: t('$bgm'), folderType: 'bgm', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/figure`, { desc: t('$figure'), folderType: 'figure', isProtected: true}], - [`public/games/${state.currentEditingGame}/game/scene`, { desc: t('$scene'), folderType: 'scene', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/scene/start.txt`, { isProtected: true }], - [`public/games/${state.currentEditingGame}/game/tex`, { desc: t('$tex'), folderType: 'tex', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/video`, { desc: t('$video'), folderType: 'video', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/vocal`, { desc: t('$vocal'), folderType: 'vocal', isProtected: true }], - [`public/games/${state.currentEditingGame}/game/config.txt`, { desc: t('$gameConfig'), isProtected: true }], - [`public/games/${state.currentEditingGame}/game/userStyleSheet.css`, { isProtected: true }], + [`public/games/${currentEdit}/game/animation`, { desc: t('$animation'), folderType: 'animation', isProtected: true}], + [`public/games/${currentEdit}/game/animation/animationTable.json`, { isProtected: true }], + [`public/games/${currentEdit}/game/background`, { desc: t('$background'), folderType: 'background', isProtected: true }], + [`public/games/${currentEdit}/game/bgm`, { desc: t('$bgm'), folderType: 'bgm', isProtected: true }], + [`public/games/${currentEdit}/game/figure`, { desc: t('$figure'), folderType: 'figure', isProtected: true}], + [`public/games/${currentEdit}/game/scene`, { desc: t('$scene'), folderType: 'scene', isProtected: true }], + [`public/games/${currentEdit}/game/scene/start.txt`, { isProtected: true }], + [`public/games/${currentEdit}/game/tex`, { desc: t('$tex'), folderType: 'tex', isProtected: true }], + [`public/games/${currentEdit}/game/video`, { desc: t('$video'), folderType: 'video', isProtected: true }], + [`public/games/${currentEdit}/game/vocal`, { desc: t('$vocal'), folderType: 'vocal', isProtected: true }], + [`public/games/${currentEdit}/game/config.txt`, { desc: t('$gameConfig'), isProtected: true }], + [`public/games/${currentEdit}/game/userStyleSheet.css`, { isProtected: true }], ]); return <> @@ -119,42 +114,39 @@ export default function EditorSideBar() { // onMouseUp={handleDragEnd} // onMouseLeave={handleDragEnd} /> - { - state.showPreview && -
- {/* eslint-disable-next-line react/iframe-missing-sandbox */} -