+ );
}
/**
diff --git a/packages/origine2/src/pages/editor/ChooseFile/chooseFile.module.scss b/packages/origine2/src/pages/editor/ChooseFile/chooseFile.module.scss
index 508ee2fbc..3697c57f7 100644
--- a/packages/origine2/src/pages/editor/ChooseFile/chooseFile.module.scss
+++ b/packages/origine2/src/pages/editor/ChooseFile/chooseFile.module.scss
@@ -1,11 +1,4 @@
-.callout{
- padding: 10px 12px;
- width: 320px;
- max-width: 90%;
- height: 30vh;
-}
-
-.chooseFileCalloutTitle{
+.chooseFileTitle{
font-weight: bold;
font-size: large;
padding: 2px 0 2px 4px;
@@ -21,10 +14,12 @@
border-bottom: var(--border-md);
}
-.chooseFileCalloutContentWarpper{
+.chooseFileContentWarpper{
display: flex;
flex-flow: column;
height: 100%;
+ max-height: 40vh;
+ gap: 8px;
}
.chooseFileFileListWarpper{
diff --git a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx
index 05f183b97..54c03c60e 100644
--- a/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx
+++ b/packages/origine2/src/pages/editor/EditorSidebar/EditorSidebar.tsx
@@ -6,8 +6,9 @@ import Assets from "./SidebarTags/Assets/Assets";
import Scenes from "./SidebarTags/Scenes/Scenes";
import React, { useEffect, useRef } from "react";
import useTrans from "@/hooks/useTrans";
-import { IconButton } from "@fluentui/react";
import {eventBus} from "@/utils/eventBus";
+import { ArrowClockwise24Filled, ArrowClockwise24Regular, bundleIcon, Open24Filled, Open24Regular } from "@fluentui/react-icons";
+import { Button } from "@fluentui/react-components";
let startX = 0;
let prevXvalue = 0;
@@ -15,6 +16,10 @@ let isMouseDown = false;
export default function EditorSideBar() {
const t = useTrans("editor.sideBar.");
+
+ const ArrowClockwiseIcon = bundleIcon(ArrowClockwise24Filled, ArrowClockwise24Regular);
+ const OpenIcon = bundleIcon(Open24Filled, Open24Regular);
+
const state = useSelector((state: RootState) => state.status.editor);
const ifRef = useRef(null);
useEffect(() => {
@@ -112,13 +117,15 @@ export default function EditorSideBar() {
src={`/games/${state.currentEditingGame}`}
/>
-
}
title={t("preview.refresh")}
onClick={refreshGame}
/>
-
}
title={t("preview.previewInNewTab")}
onClick={() => window.open(`/games/${state.currentEditingGame}`, "_blank")}
/>
diff --git a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx
index f09baf1d9..3de2c2802 100644
--- a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx
+++ b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/Assets.tsx
@@ -1,4 +1,3 @@
-import styles from "../sidebarTags.module.scss";
import assetsStyles from "./assets.module.scss";
import axios from "axios";
import { origineStore, RootState } from "../../../../../store/origineStore";
@@ -8,8 +7,6 @@ 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 { useId } from "@fluentui/react-hooks";
-import { Callout, PrimaryButton, Text, TextField } from "@fluentui/react";
import { ITag, statusActions } from "../../../../../store/statusReducer";
import { extractPathAfterPublic } from "../../../ResourceDisplay/ResourceDisplay";
import useTrans from "@/hooks/useTrans";
@@ -18,6 +15,7 @@ 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.");
@@ -27,7 +25,6 @@ export default function Assets() {
*/
const isShowUploadCallout = useValue(false);
- const buttonId = useId("upload-button");
/**
* 当前目录,以及包含文件
@@ -49,7 +46,6 @@ export default function Assets() {
* 新建文件夹
*/
const isShowMkdirCallout = useValue(false);
- const mkdirButtonId = useId("mkdir-button");
const newDirName = useValue("");
const handleCreatNewDir = () => {
axios.post("/api/manageGame/mkdir", {
@@ -154,7 +150,6 @@ export default function Assets() {
});
}
-
return (
{/*
@@ -172,59 +167,57 @@ export default function Assets() {
{currentDirName !== "" &&
<>
-
isShowUploadCallout.set(!isShowUploadCallout.value)}>
-
-
-
isShowMkdirCallout.set(!isShowMkdirCallout.value)}>
-
-
+
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 ?? "");
+ }} />
+
+
+
+
+
>
}
- {isShowUploadCallout.value && (
-
isShowUploadCallout.set(false)}
- setInitialFocus
- >
-
- {t("buttons.uploadAsset")}
-
- {
- isShowUploadCallout.set(false);
- refreshCurrentDir();
- }} targetDirectory={`public/games/${gameName}/game${currentDirName}`}
- uploadUrl="/api/manageGame/uploadFiles" />
-
- )}
- {isShowMkdirCallout.value && (
-
{
- isShowMkdirCallout.set(false);
- newDirName.set("");
- }}
- setInitialFocus
- >
-
- {t("buttons.createNewFolder")}
-
-
-
{
- newDirName.set(val ?? "");
- }} />
-
- {t("$common.create")}
-
-
- )}
+
open_assets()}>
@@ -259,8 +252,6 @@ function CommonFileButton(props: IFileDescription & {
const showConformDeleteCallout = useValue(false);
const showRenameCallout = useValue(false);
const newFileName = useValue("");
- const renameButtonId = useId("renameBtn");
- const deleteButtonId = useId("deleteBtn");
return
props.onClick()}>
{!props.isDir &&
}
@@ -268,70 +259,68 @@ function CommonFileButton(props: IFileDescription & {
{props.name}
- {props.showOptions && <>
-
{
- e.stopPropagation();
- showRenameCallout.set(!showRenameCallout.value);
- newFileName.set(props.name);
- }} id={renameButtonId} className={assetsStyles.deleteButton} style={{
- display: showRenameCallout.value ? "block" : undefined
- }}>
-
-
-
{
- e.stopPropagation();
- showConformDeleteCallout.set(!showConformDeleteCallout.value);
- }} id={deleteButtonId} className={assetsStyles.deleteButton} style={{
- display: showRenameCallout.value ? "block" : undefined
- }}>
-
-
- {showRenameCallout.value &&
{
- showRenameCallout.set(false);
+ {props.showOptions &&
+ <>
+ {
newFileName.set("");
}}
- setInitialFocus
>
-
- {t("buttons.rename")}
-
-
-
{
- newFileName.set(val ?? "");
- }} />
-
- {
- props.onRename(newFileName.value);
- showRenameCallout.set(false);
- }}>{t("buttons.rename")}
-
- }
- {showConformDeleteCallout.value &&
{
- showConformDeleteCallout.set(false);
- }}
- setInitialFocus
+
+ {
+ e.stopPropagation();
+ newFileName.set(props.name);
+ }}
+ className={assetsStyles.deleteButton}
+ style={{ display: showRenameCallout.value ? "block" : undefined }}
+ >
+
+
+
+ e.stopPropagation()}>
+
+ {t("buttons.rename")}
+
+
+ {
+ newFileName.set(data.value ?? "");
+ }} />
+
+
+
+
+
+
-
- {t("$common.delete")}
-
-
-
{
- props.onDelete();
- showConformDeleteCallout.set(false);
- }}>{t("buttons.deleteSure")}
-
- }
- >}
+
+ e.stopPropagation()}
+ className={assetsStyles.deleteButton}
+ style={{ display: showRenameCallout.value ? "block" : undefined}}
+ >
+
+
+
+
e.stopPropagation()}>
+
+ {t("$common.delete")}
+
+
+
+
+
+
+ >
+ }
;
}
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
index 5dea89ca9..b898d1f0b 100644
--- a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/assets.module.scss
+++ b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Assets/assets.module.scss
@@ -78,11 +78,11 @@
margin: 0 4px 0 0;
border-radius: var(--radius-md);
transition: all 0.33s;
- display: none;
+ visibility: hidden;
}
.commonFileButton:hover .deleteButton {
- display: block;
+ visibility: visible;
}
.deleteButton:hover {
diff --git a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx
index 654682ecd..49e32f47d 100644
--- a/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx
+++ b/packages/origine2/src/pages/editor/EditorSidebar/SidebarTags/Scenes/Scenes.tsx
@@ -1,4 +1,3 @@
-import styles from "../sidebarTags.module.scss";
import {useValue} from "../../../../../hooks/useValue";
import {useEffect, useState} from "react";
import {useDispatch, useSelector} from "react-redux";
@@ -6,12 +5,12 @@ 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 {Callout, PrimaryButton, Text, TextField} from "@fluentui/react";
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.');
@@ -27,26 +26,25 @@ export default function Scenes() {
// 处理新建场景的问题
const showCreateSceneCallout = useValue(false);
const newSceneName = useValue("");
- const updateNewSceneName = (event: any) => {
- const newValue = event.target.value;
- newSceneName.set(newValue);
- };
+
const createNewScene = async () => {
- const gameName = state.currentEditingGame;
- const params = new URLSearchParams();
+ if (newSceneName.value && newSceneName.value.length !==0){
+ const gameName = state.currentEditingGame;
+ const params = new URLSearchParams();
- params.append("gameName", gameName);
- params.append("sceneName", newSceneName.value);
+ 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'));
- });
+ axios.post("/api/manageGame/createNewScene/", params)
+ .then(() => {
+ showCreateSceneCallout.set(false);
+ updateSceneListView();
+ newSceneName.set("");
+ })
+ .catch(() => {
+ setErrorMessage(t('dialogs.create.sceneExisted'));
+ });
+ }
};
// 请求场景文件的函数
@@ -110,48 +108,48 @@ export default function Scenes() {
return (
-
- showCreateSceneCallout.set(!showCreateSceneCallout.value)}
- >
-
- {t('dialogs.create.button')}
-
- {showCreateSceneCallout.value && (
- {
- showCreateSceneCallout.set(false);
- }}
- setInitialFocus
- style={{width: "300px", padding: "5px 10px 5px 10px"}}
+ showCreateSceneCallout.set(!showCreateSceneCallout.value)}
>
-
- {t('dialogs.create.title')}
-
-
-
-
-
-
-
- )}>}/>
+
+
+
+ {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/editorSidebar.module.scss b/packages/origine2/src/pages/editor/EditorSidebar/editorSidebar.module.scss
index dc7d0ec9d..5fdfb133f 100644
--- a/packages/origine2/src/pages/editor/EditorSidebar/editorSidebar.module.scss
+++ b/packages/origine2/src/pages/editor/EditorSidebar/editorSidebar.module.scss
@@ -58,10 +58,6 @@
display: block;
}
-.gamePreviewButons>button:hover {
- background: var(--bg-card-hover);
-}
-
.preview_top_title_container {
display: flex;
align-items: center;
diff --git a/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx b/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx
index 7acc1f0fa..d67ff7715 100644
--- a/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx
+++ b/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/FileElement.tsx
@@ -2,11 +2,10 @@ import { DeleteOne, Editor } from "@icon-park/react";
import { ReactElement } from "react";
import styles from "./sidebarComponents.module.scss";
import { useValue } from "../../../../hooks/useValue";
-import { Callout, DefaultButton, PrimaryButton, Text, TextField } from "@fluentui/react";
-import { useId } from "@fluentui/react-hooks";
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;
@@ -58,72 +57,64 @@ export default function FileElement(props: IFileElementProps) {
const showDeleteCalllout = useValue(false);
- const editNameButtonId = useId(`editNameButton`);
- const deleteButtonId = useId("deleteButton");
-
- // @ts-ignore
- return
-
{icon}
-
{props.name}
-
{
- e.stopPropagation();
- switchEditNameCallout();
- }}>
-
- {showEditNameCallout.value &&
+ {icon}
+ {props.name}
+
-
- {t("editName.title")}
-
-
-
-
-
- }
-
-
{
- e.stopPropagation();
- showDeleteCalllout.set(!showDeleteCalllout.value);
- }}>
- {!props?.undeletable &&
}
- {!props?.undeletable && showDeleteCalllout.value &&
{
- showDeleteCalllout.set(false);
- }}
- setInitialFocus
- style={{ width: "300px", padding: "5px 10px 5px 10px" }}
+
+ e.stopPropagation()}
+ >
+
+
+
+ e.stopPropagation()}>
+
+ {t("editName.title")}
+
+
+
+
+
+
+
+
+
+ showDeleteCalllout.set(!showDeleteCalllout.value)}
>
-
- {t({ key: "delete.text", format: { name: props.name } })}
-
-
-
-
{
- showDeleteCalllout.set(false);
- }} allowDisabledFocus />
-
- }
+
+ {
+ !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
index 8693b3033..25277a21f 100644
--- a/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/sidebarComponents.module.scss
+++ b/packages/origine2/src/pages/editor/EditorSidebar/sidebarComponents/sidebarComponents.module.scss
@@ -37,11 +37,11 @@
border-radius: var(--radius-md);
transition: all 0.33s;
cursor: pointer;
- display: none;
+ visibility: hidden;
}
.fileElement:hover .fileElement_interactable_icon {
- display: block;
+ visibility: visible;
}
.fileElement_interactable_icon:hover {
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/GraphicalEditor.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/GraphicalEditor.tsx
index 5fee4f337..ce1f062e8 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/GraphicalEditor.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/GraphicalEditor.tsx
@@ -146,7 +146,7 @@ export default function GraphicalEditor(props: IGraphicalEditorProps) {
const parsedScene = (sceneText.value === "" ? {sentenceList: []} : parseScene(sceneText.value));
return
-
+
{(provided, snapshot) => (
@@ -200,7 +200,7 @@ export default function GraphicalEditor(props: IGraphicalEditorProps) {
deleteOneSentence(i)}>
-
{t("delete")}
@@ -208,7 +208,7 @@ export default function GraphicalEditor(props: IGraphicalEditorProps) {
syncToIndex(i)}>
-
{t("$执行到此句")}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeBg.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeBg.tsx
index 0b62ff13e..221ef3de0 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeBg.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeBg.tsx
@@ -8,9 +8,9 @@ import TerreToggle from "../../../../components/terreToggle/TerreToggle";
import useTrans from "@/hooks/useTrans";
import CommonTips from "@/pages/editor/GraphicalEditor/components/CommonTips";
import {EffectEditor} from "@/pages/editor/GraphicalEditor/components/EffectEditor";
-import {DefaultButton, PrimaryButton, TextField} from "@fluentui/react";
import {TerrePanel} from "@/pages/editor/GraphicalEditor/components/TerrePanel";
import {useExpand} from "@/hooks/useExpand";
+import { Button, Input } from "@fluentui/react-components";
export default function ChangeBg(props: ISentenceEditorProps) {
const t = useTrans('editor.graphical.sentences.changeBg.');
@@ -74,9 +74,9 @@ export default function ChangeBg(props: ISentenceEditorProps) {
/>
}
- {
+
+ }}>{t('$打开效果编辑器')}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeFigure.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeFigure.tsx
index f398a342e..00ee16c29 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeFigure.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/ChangeFigure.tsx
@@ -1,32 +1,35 @@
import CommonOptions from "../components/CommonOption";
-import {ISentenceEditorProps} from "./index";
+import { ISentenceEditorProps } from "./index";
import styles from "./sentenceEditor.module.scss";
import ChooseFile from "../../ChooseFile/ChooseFile";
-import {useValue} from "../../../../hooks/useValue";
-import {getArgByKey} from "../utils/getArgByKey";
+import { useValue } from "../../../../hooks/useValue";
+import { getArgByKey } from "../utils/getArgByKey";
import TerreToggle from "../../../../components/terreToggle/TerreToggle";
-import {useEffect, useState} from "react";
-import {ActionButton, DefaultButton, Dropdown, Panel, PanelType, PrimaryButton, TextField} from "@fluentui/react";
+import { useEffect, useState } from "react";
import useTrans from "@/hooks/useTrans";
-import {EffectEditor} from "@/pages/editor/GraphicalEditor/components/EffectEditor";
+import { EffectEditor } from "@/pages/editor/GraphicalEditor/components/EffectEditor";
import CommonTips from "@/pages/editor/GraphicalEditor/components/CommonTips";
import axios from "axios";
-import {useSelector} from "react-redux";
-import {RootState} from "@/store/origineStore";
-import {TerrePanel} from "@/pages/editor/GraphicalEditor/components/TerrePanel";
-import {useExpand} from "@/hooks/useExpand";
+import { useSelector } from "react-redux";
+import { RootState } from "@/store/origineStore";
+import { TerrePanel } from "@/pages/editor/GraphicalEditor/components/TerrePanel";
+import { useExpand } from "@/hooks/useExpand";
+import { Button, Dropdown, Input, Option } from "@fluentui/react-components";
+
+type FigurePosition = "" | "left" | "right";
+type AnimationFlag = "" | "on";
export default function ChangeFigure(props: ISentenceEditorProps) {
const gameName = useSelector((state: RootState) => state.status.editor.currentEditingGame);
const t = useTrans('editor.graphical.sentences.changeFigure.');
const isGoNext = useValue(!!getArgByKey(props.sentence, "next"));
const figureFile = useValue(props.sentence.content);
- const figurePosition = useValue<"left" | "" | "right">("");
+ const figurePosition = useValue("");
const isNoFile = props.sentence.content === "";
const id = useValue(getArgByKey(props.sentence, "id").toString() ?? "");
const json = useValue(getArgByKey(props.sentence, 'transform') as string);
const duration = useValue(getArgByKey(props.sentence, 'duration') as number);
- const {updateExpandIndex} = useExpand();
+ const { updateExpandIndex } = useExpand();
const mouthOpen = useValue(getArgByKey(props.sentence, "mouthOpen").toString() ?? "");
const mouthHalfOpen = useValue(getArgByKey(props.sentence, "mouthHalfOpen").toString() ?? "");
const mouthClose = useValue(getArgByKey(props.sentence, "mouthClose").toString() ?? "");
@@ -42,13 +45,24 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
getArgByKey(props.sentence, "expression").toString() ?? ""
);
+ const figurePositions = new Map([
+ ["", t('options.position.options.center')],
+ ["left", t('options.position.options.left')],
+ ["right", t('options.position.options.right')]
+ ]);
+
+ const animationFlags = new Map([
+ ["", "OFF"],
+ ["on", "ON"],
+ ]);
+
useEffect(() => {
if (figureFile.value.includes('json')) {
console.log('loading JSON file to get motion and expression');
axios.get(`/games/${gameName}/game/figure/${figureFile.value}`).then(resp => {
const data = resp.data;
- if(data?.motions){
+ if (data?.motions) {
// 处理 motions
const motions = Object.keys(data.motions);
setL2dMotionsList(motions.sort((a, b) => a.localeCompare(b)));
@@ -61,12 +75,12 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
}
// 处理 v3 版本的 model
- if(data?.['FileReferences']?.['Motions']){
+ if (data?.['FileReferences']?.['Motions']) {
const motions = Object.keys(data['FileReferences']['Motions']);
setL2dMotionsList(motions.sort((a, b) => a.localeCompare(b)));
}
- if(data?.['FileReferences']?.['Expressions']){
+ if (data?.['FileReferences']?.['Expressions']) {
const expressions: string[] = data['FileReferences']['Expressions'].map((exp: { Name: string }) => exp.Name);
setL2dExpressionsList(expressions.sort((a, b) => a.localeCompare(b)));
}
@@ -132,7 +146,7 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
} else
figureFile.set("none");
submit();
- }} onText={t("options.hide.on")} offText={t("options.hide.off")} isChecked={isNoFile}/>
+ }} onText={t("options.hide.on")} offText={t("options.hide.off")} isChecked={isNoFile} />
{!isNoFile &&
@@ -142,7 +156,7 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
figureFile.set(fileDesc?.name ?? "");
submit();
}}
- extName={[".png", ".jpg", ".webp", ".json"]}/>
+ extName={[".png", ".jpg", ".webp", ".json"]} />
>
}
@@ -150,51 +164,52 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
isGoNext.set(newValue);
submit();
}} onText={t('$editor.graphical.sentences.common.options.goNext.on')}
- offText={t('$editor.graphical.sentences.common.options.goNext.off')} isChecked={isGoNext.value}/>
+ offText={t('$editor.graphical.sentences.common.options.goNext.off')} isChecked={isGoNext.value} />
{figureFile.value.includes('.json') && (
<>
({key: e, text: e}))}
- onChange={(ev, newValue: any) => {
- currentMotion.set(newValue.key);
+ value={currentMotion.value}
+ selectedOptions={[currentMotion.value]}
+ onOptionSelect={(ev, data) => {
+ data.optionValue && currentMotion.set(data.optionValue);
submit();
}}
- />
+ style={{ minWidth: 0 }}
+ >
+ {l2dMotionsList.map(e => ())}
+
({key: e, text: e}))}
- onChange={(ev, newValue: any) => {
- currentExpression.set(newValue.key);
+ value={currentExpression.value}
+ selectedOptions={[currentExpression.value]}
+ onOptionSelect={(ev, data) => {
+ data.optionValue && currentExpression.set(data.optionValue);
submit();
}}
- />
+ style={{ minWidth: 0 }}
+ >
+ {l2dExpressionsList.map(e => ())}
+
>
)}
{
- figurePosition.set(newValue?.key?.toString() ?? "");
+ value={figurePositions.get(figurePosition.value) ?? figurePosition.value}
+ selectedOptions={[figurePosition.value]}
+ onOptionSelect={(ev, data) => {
+ figurePosition.set(data.optionValue?.toString() as FigurePosition ?? "");
submit();
}}
- />
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(figurePositions.entries()).map(([key, value]) => )}
+
- {
+
+ }}>{t('$打开效果编辑器')}
@@ -244,16 +259,16 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
}}>
{
- animationFlag.set(newValue?.key?.toString() ?? "");
+ value={animationFlags.get(animationFlag.value as AnimationFlag)}
+ selectedOptions={[animationFlag.value]}
+ onOptionSelect={(ev, data) => {
+ animationFlag.set(data.optionValue?.toString() ?? "");
submit();
}}
- />
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(animationFlags.entries()).map(([key, value]) => )}
+
{animationFlag.value === "on" &&
@@ -263,7 +278,7 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
mouthOpen.set(fileDesc?.name ?? "");
submit();
}}
- extName={[".png", ".jpg", ".webp"]}/>
+ extName={[".png", ".jpg", ".webp"]} />
>
}
{animationFlag.value === "on" &&
@@ -274,7 +289,7 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
mouthHalfOpen.set(fileDesc?.name ?? "");
submit();
}}
- extName={[".png", ".jpg", ".webp"]}/>
+ extName={[".png", ".jpg", ".webp"]} />
>
}
{animationFlag.value === "on" &&
@@ -285,7 +300,7 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
mouthClose.set(fileDesc?.name ?? "");
submit();
}}
- extName={[".png", ".jpg", ".webp"]}/>
+ extName={[".png", ".jpg", ".webp"]} />
>
}
{animationFlag.value === "on" &&
@@ -295,7 +310,7 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
eyesOpen.set(fileDesc?.name ?? "");
submit();
}}
- extName={[".png", ".jpg", ".webp"]}/>
+ extName={[".png", ".jpg", ".webp"]} />
>
}
{animationFlag.value === "on" &&
@@ -305,7 +320,7 @@ export default function ChangeFigure(props: ISentenceEditorProps) {
eyesClose.set(fileDesc?.name ?? "");
submit();
}}
- extName={[".png", ".jpg", ".webp"]}/>
+ extName={[".png", ".jpg", ".webp"]} />
>
}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Choose.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Choose.tsx
index fc07fd67b..5323e27f6 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Choose.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Choose.tsx
@@ -3,8 +3,8 @@ import styles from "./sentenceEditor.module.scss";
import { useValue } from "../../../../hooks/useValue";
import { cloneDeep } from "lodash";
import ChooseFile from "../../ChooseFile/ChooseFile";
-import { DefaultButton } from "@fluentui/react";
import useTrans from "@/hooks/useTrans";
+import { Button } from "@fluentui/react-components";
export default function Choose(props: ISentenceEditorProps) {
const t = useTrans('editor.graphical.sentences.choose.');
@@ -18,12 +18,16 @@ export default function Choose(props: ISentenceEditorProps) {
const chooseList = chooseItems.value.map((item, i) => {
return
-
{
- const newList = cloneDeep(chooseItems.value);
- newList.splice(i,1);
- chooseItems.set(newList);
- submit();
- }}>{t('delete')}
+
{
const newValue = ev.target.value;
@@ -50,11 +54,14 @@ export default function Choose(props: ISentenceEditorProps) {
});
return
{chooseList}
- {
- const newList = cloneDeep(chooseItems.value);
- newList.push(t('option.option', 'option.chooseFile'));
- chooseItems.set(newList);
- submit();
- }}>{t('add')}
+
;
}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Intro.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Intro.tsx
index c04beae32..c2cae9eeb 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Intro.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/Intro.tsx
@@ -1,16 +1,21 @@
import CommonOptions from "../components/CommonOption";
-import {ISentenceEditorProps} from "./index";
+import { ISentenceEditorProps } from "./index";
import styles from "./sentenceEditor.module.scss";
-import {useValue} from "../../../../hooks/useValue";
-import {cloneDeep} from "lodash";
-import {DefaultButton, PrimaryButton, Dropdown, ColorPicker, IColor, Toggle} from "@fluentui/react";
+import { useValue } from "../../../../hooks/useValue";
+import { cloneDeep } from "lodash";
+import { ColorPicker, IColor } from "@fluentui/react";
import useTrans from "@/hooks/useTrans";
-import {getArgByKey} from "../utils/getArgByKey";
-import {useState} from "react";
+import { getArgByKey } from "../utils/getArgByKey";
+import { useState } from "react";
import React from 'react';
-import {logger} from "@/utils/logger";
-import {TerrePanel} from "../components/TerrePanel";
-import {useExpand} from "@/hooks/useExpand";
+import { logger } from "@/utils/logger";
+import { TerrePanel } from "../components/TerrePanel";
+import { useExpand } from "@/hooks/useExpand";
+import { Button, Dropdown, Option, Switch } from "@fluentui/react-components";
+
+type FontSize = "small" | "medium" | "large";
+type Animation = "fadeIn" | "slideIn" | "typingEffect" | "pixelateEffect" | "revealAnimation";
+type DelayTime = 1500 | 2000 | 2500 | 3000 | 3500 | 4000 | 4500 | 5000;
export default function Intro(props: ISentenceEditorProps) {
const t = useTrans('editor.graphical.sentences.intro.options.');
@@ -88,62 +93,60 @@ export default function Intro(props: ISentenceEditorProps) {
return initialFontColor;
};
+ const fontSizes = new Map
([
+ ["small", "small"],
+ ["medium", "medium"],
+ ["large", "large"],
+ ]);
+
+ const animations = new Map([
+ ["fadeIn", "fadeIn"],
+ ["slideIn", "slideIn"],
+ ["typingEffect", "typingEffect"],
+ ["pixelateEffect", "pixelateEffect"],
+ ["revealAnimation", "revealAnimation"],
+ ]);
+
+ const delayTimes = new Map([
+ [1500, "1.5"],
+ [2000, "2"],
+ [2500, "2.5"],
+ [3000, "3"],
+ [3500, "3.5"],
+ [4000, "4"],
+ [4500, "4.5"],
+ [5000, "5"],
+ ]);
+
const getInitialFontSize = (): string => {
const fontSizeValue = getArgByKey(props.sentence, "fontSize");
- if (typeof fontSizeValue === 'string' && ["small", "medium", "large"].includes(fontSizeValue)) {
+ if (typeof fontSizeValue === 'string' && Array.from(fontSizes.keys()).includes(fontSizeValue as FontSize)) {
return fontSizeValue;
}
return "medium";
};
-
const getInitialAnimation = (): string => {
const animationValue = getArgByKey(props.sentence, "animation");
- if (typeof animationValue === 'string' && ["fadeIn", "slideIn", "typingEffect", "pixelateEffect", "revealAnimation"].includes(animationValue)) {
+ if (typeof animationValue === 'string' && Array.from(animations.keys()).includes(animationValue as Animation)) {
return animationValue;
}
return "fadeIn";
};
-
const getInitialDelayTime = (): string => {
const delayTimeValue = getArgByKey(props.sentence, "delayTime");
- if (typeof delayTimeValue === 'number' && [1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000].includes(delayTimeValue)) {
+ if (typeof delayTimeValue === 'number' && Array.from(delayTimes.keys()).includes(delayTimeValue as DelayTime)) {
return delayTimeValue.toString();
}
return "1500";
};
- const fontSizes = [
- {key: "small", text: "small"},
- {key: "medium", text: "medium"},
- {key: "large", text: "large"},
- ];
-
- const animations = [
- {key: "fadeIn", text: "fadeIn"},
- {key: "slideIn", text: "slideIn"},
- {key: "typingEffect", text: "typingEffect"},
- {key: "pixelateEffect", text: "pixelateEffect"},
- {key: "revealAnimation", text: "revealAnimation"},
- ];
-
- const delayTimes = [
- {key: "1500", text: "1.5"},
- {key: "2000", text: "2"},
- {key: "2500", text: "2.5"},
- {key: "3000", text: "3"},
- {key: "3500", text: "3.5"},
- {key: "4000", text: "4"},
- {key: "4500", text: "4.5"},
- {key: "5000", text: "5"},
- ];
-
const backgroundColor = useValue(getBackgroundColor());
const fontColor = useValue(getFontColor());
const fontSize = useValue(getInitialFontSize());
@@ -151,13 +154,7 @@ export default function Intro(props: ISentenceEditorProps) {
const delayTime = useValue(getInitialDelayTime());
const [localBackgroundColor, setLocalBackgroundColor] = useState(backgroundColor.value);
const [localFontColor, setLocalFontColor] = useState(fontColor.value);
- const {updateExpandIndex} = useExpand();
- const optionButtonStyles = {
- root: {
- // margin: '6px 0 0 0',
- display: 'flex'
- },
- };
+ const { updateExpandIndex } = useExpand();
const handleLocalBackgroundColorChange = (ev: React.SyntheticEvent, newColor: IColor) => {
setLocalBackgroundColor(newColor);
@@ -185,7 +182,18 @@ export default function Intro(props: ISentenceEditorProps) {
};
const introCompList = introTextList.value.map((text, index) => {
- return
+ return
+
+
{
const newValue = ev.target.value;
@@ -196,75 +204,77 @@ export default function Intro(props: ISentenceEditorProps) {
onBlur={submit}
className={styles.sayInput}
placeholder={t('value.placeholder')}
- style={{width: "100%"}}
+ style={{ width: "100%" }}
/>
-
-
{
- const newList = cloneDeep(introTextList.value);
- newList.splice(index, 1);
- introTextList.set(newList);
- submit();
- }}>{t('$common.delete')}
;
});
- return
-
+ return
+
{introCompList}
-
{
+
-
updateExpandIndex(props.index)} styles={optionButtonStyles}>
+ }}>{t('add.button')}
+
+
-
-
+
+
({key: f.key, text: f.text}))}
- selectedKey={fontSize.value}
- onChange={(event, item) => {
- item && fontSize.set(item.key as string);
+ value={fontSizes.get(fontSize.value as FontSize) ?? fontSize.value}
+ selectedOptions={[fontSize.value]}
+ onOptionSelect={(event, data) => {
+ data.optionValue && fontSize.set(data.optionValue as string);
submit();
}}
- />
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(fontSizes.entries()).map(([key, value]) => )}
+
({key: f.key, text: f.text}))}
- onChange={(ev, newValue: any) => {
- animation.set(newValue?.key?.toString() ?? "");
+ value={animations.get(animation.value as Animation) ?? animation.value}
+ selectedOptions={[animation.value]}
+ onOptionSelect={(ev, data) => {
+ data.optionValue && animation.set(data.optionValue.toString() ?? "");
submit();
}}
- />
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(animations.entries()).map(([key, value]) => )}
+
({key: f.key, text: f.text}))}
- onChange={(ev, newValue: any) => {
- delayTime.set(newValue?.key?.toString() ?? "");
+ value={delayTimes.get(Number(delayTime.value) as DelayTime) ?? delayTime.value}
+ selectedOptions={[delayTime.value]}
+ onOptionSelect={(ev, data) => {
+ data.optionValue && delayTime.set(data.optionValue.toString() ?? "");
submit();
}}
- />
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(delayTimes.entries()).map(([key, value]) => )}
+
- {
- isHold.set(newValue ?? false);
+ onChange={(ev, data) => {
+ isHold.set(data.checked ?? false);
submit();
}}
/>
-
+
-
{t('colorPicker.submit')}
+
;
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/PixiPerform.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/PixiPerform.tsx
index 0f45b1929..3f36281df 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/PixiPerform.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/PixiPerform.tsx
@@ -3,17 +3,22 @@ import { ISentenceEditorProps } from "./index";
import styles from "./sentenceEditor.module.scss";
import { useValue } from "../../../../hooks/useValue";
import TerreToggle from "../../../../components/terreToggle/TerreToggle";
-import { Dropdown } from "@fluentui/react";
import { commandType } from "webgal-parser/src/interface/sceneInterface";
import useTrans from "@/hooks/useTrans";
+import { Dropdown, Option } from "@fluentui/react-components";
export default function PixiPerform(props: ISentenceEditorProps) {
const t = useTrans('editor.graphical.sentences.specialEffect.options.');
+ const effects = new Map([
+ ["snow", t('usePrepared.effects.snow')],
+ ["rain", t('usePrepared.effects.rain')],
+ ["cherryBlossoms", t('usePrepared.effects.cherryBlossoms')],
+ ]);
+
const isSetEffectsOff = useValue(props.sentence.command === commandType.pixiInit);
const effectName = useValue(props.sentence.content);
- const isUsePreset = useValue(["snow", "rain", "cherryBlossoms"].includes(effectName.value));
-
+ const isUsePreset = useValue(Array.from(effects.keys()).includes(effectName.value));
const submit = () => {
if (isSetEffectsOff.value) {
@@ -43,14 +48,16 @@ export default function PixiPerform(props: ISentenceEditorProps) {
}
{isUsePreset.value &&
{
- effectName.set(newValue?.key?.toString() ?? "");
+ value={effects.get(effectName.value) ?? effectName.value}
+ selectedOptions={[effectName.value]}
+ onOptionSelect={(ev, data) => {
+ effectName.set(data.optionValue?.toString() ?? "");
submit();
}}
- styles={{ dropdown: { width: "160px" } }}
- />
+ style={{ minWidth: 0}}
+ >
+ { Array.from(effects.entries()).map(([key, value]) => ) }
+
}
{!isUsePreset.value && !isSetEffectsOff.value && < CommonOptions title={t('useUser.title')} key="3">
("");
const figureId = useValue(getArgByKey(props.sentence, "figureId").toString() ?? "");
+ const figurePosition = useValue
("");
+ const figurePositions = new Map([
+ [ "", t('position.options.none') ] ,
+ [ "left", t('position.options.left') ],
+ [ "center", t('position.options.center') ],
+ [ "right", t('position.options.right') ],
+ [ "id", t('position.options.id') ],
+ ]);
+
useEffect(() => {
/**
* 初始化立绘位置
@@ -38,24 +49,23 @@ export default function Say(props: ISentenceEditorProps) {
}
}, []);
- const getInitialFontSize = (): string => {
+ const fontSizes = new Map([
+ [ "default", t('font.options.default')],
+ [ "small", t('font.options.small') ],
+ [ "medium", t('font.options.medium') ],
+ [ "large", t('font.options.large') ],
+ ]);
+ const getInitialFontSize = (): FontSize => {
const fontSizeValue = getArgByKey(props.sentence, "fontSize");
- if (typeof fontSizeValue === 'string' && ["default", "small", "medium", "large"].includes(fontSizeValue)) {
- return fontSizeValue;
+ if (typeof fontSizeValue === 'string' && Array.from(fontSizes.keys()).includes(fontSizeValue as FontSize)) {
+ return fontSizeValue as FontSize;
}
return "default";
};
const fontSize = useValue(getInitialFontSize());
- const fontSizes = [
- { key: "default", text: t('font.options.default')},
- { key: "small", text: t('font.options.small') },
- { key: "medium", text: t('font.options.medium') },
- { key: "large", text: t('font.options.large') },
- ];
-
const submit = () => {
const selectedFontSize = fontSize.value;
const pos = figurePosition.value !== "" ? ` -${figurePosition.value}` : "";
@@ -70,7 +80,7 @@ export default function Say(props: ISentenceEditorProps) {
return
-
+
{
const newValue = ev.target.value;
@@ -83,7 +93,7 @@ export default function Say(props: ISentenceEditorProps) {
/>
{currentValue.value.map((text, index) => (
-
+
))}
- {currentValue.value.length < 3 &&
{
+ {currentValue.value.length < 3 && }
+ }}>{t('add.button')}}
{
@@ -132,19 +142,16 @@ export default function Say(props: ISentenceEditorProps) {
{
- figurePosition.set(newValue?.key?.toString() ?? "");
+ value={figurePositions.get(figurePosition.value) ?? figurePosition.value}
+ selectedOptions={[figurePosition.value]}
+ onOptionSelect={(event, data) => {
+ figurePosition.set(data.optionValue as FigurePosition?? "");
submit();
}}
- />
+ style={{ minWidth: 0}}
+ >
+ { Array.from(figurePositions.entries()).map(([key, value]) => ) }
+
{figurePosition.value === 'id' &&
}
({ key: f.key, text: f.text }))}
- selectedKey={fontSize.value}
- onChange={(event, item) =>{
- item && fontSize.set(item.key as string);
+ value={fontSizes.get(fontSize.value) ?? fontSize.value}
+ selectedOptions={[fontSize.value]}
+ onOptionSelect={(event, data) =>{
+ data.optionValue && fontSize.set(data.optionValue as FontSize);
submit();
}}
- />
+ style={{ minWidth: 0}}
+ >
+ { Array.from(fontSizes.entries()).map(([key, value]) => ) }
+
;
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/SetAnimation.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/SetAnimation.tsx
index 218872aed..d386943a1 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/SetAnimation.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/SetAnimation.tsx
@@ -5,15 +5,23 @@ import { getArgByKey } from "../utils/getArgByKey";
import ChooseFile from "../../ChooseFile/ChooseFile";
import CommonOptions from "../components/CommonOption";
import TerreToggle from "../../../../components/terreToggle/TerreToggle";
-import { Dropdown } from "@fluentui/react";
import CommonTips from "../components/CommonTips";
import useTrans from "@/hooks/useTrans";
+import { Dropdown, Option } from "@fluentui/react-components";
+
+type PresetTarget = "fig-left" | "fig-center" | "fig-right" | "bg-main";
export default function SetAnimation(props: ISentenceEditorProps) {
const t = useTrans('editor.graphical.sentences.setAnime.options.');
const fileName = useValue(props.sentence.content);
const target = useValue(getArgByKey(props.sentence, "target")?.toString() ?? "");
- const isPresetTarget = ["bg-main", "fig-left", "fig-center", "fig-right"].includes(target.value);
+ const presetTargets = new Map
([
+ [ "fig-left", t('preparedTarget.choose.options.figLeft') ],
+ [ "fig-center", t('preparedTarget.choose.options.figCenter') ],
+ [ "fig-right", t('preparedTarget.choose.options.figRight') ],
+ [ "bg-main", t('preparedTarget.choose.options.bgMain') ],
+ ]);
+ const isPresetTarget = Array.from(presetTargets.keys()).includes(target.value as PresetTarget);
const isUsePreset = useValue(isPresetTarget);
const isGoNext = useValue(!!getArgByKey(props.sentence, "next"));
@@ -41,15 +49,17 @@ export default function SetAnimation(props: ISentenceEditorProps) {
isChecked={isUsePreset.value} />
{isUsePreset.value &&
- {
- target.set(option?.key.toString() ?? "");
- submit();
- }} options={[
- { key: "fig-left", text: t('preparedTarget.choose.options.figLeft') },
- { key: "fig-center", text: t('preparedTarget.choose.options.figCenter') },
- { key: "fig-right", text: t('preparedTarget.choose.options.figRight') },
- { key: "bg-main", text: t('preparedTarget.choose.options.bgMain') }
- ]} selectedKey={target.value} />
+ {
+ target.set(data.optionValue?.toString() ?? "");
+ submit();
+ }}
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(presetTargets.entries()).map(([key, text]) => )}
+
}
{!isUsePreset.value &&
([
+ [ "fig-left", tTarget('preparedTarget.choose.options.figLeft') ],
+ [ "fig-center", tTarget('preparedTarget.choose.options.figCenter') ],
+ [ "fig-right", tTarget('preparedTarget.choose.options.figRight') ],
+ [ "bg-main", tTarget('preparedTarget.choose.options.bgMain') ],
+ ]);
+ const isPresetTarget = Array.from(presetTargets.keys()).includes(target.value as PresetTarget);
const isUsePreset = useValue(isPresetTarget);
const submit = () => {
const isGoNextStr = isGoNext.value ? " -next" : "";
@@ -29,13 +37,12 @@ export default function SetTransform(props: ISentenceEditorProps) {
props.onSubmit(str);
};
-
return
- {
- updateExpandIndex(props.index);
- }}>{tTarget('$打开效果编辑器')}
+
{
transform.set(newJson);
@@ -45,13 +52,20 @@ export default function SetTransform(props: ISentenceEditorProps) {
- {
- const newDuration = Number(newValue);
- if (isNaN(newDuration))
- duration.set(0);
- else
- duration.set(newDuration);
- }} onBlur={submit}/>
+ {
+ const newDuration = Number(ev.target.value);
+ if (isNaN(newDuration))
+ duration.set(0);
+ else
+ duration.set(newDuration);
+ }}
+ onBlur={submit}
+ />
@@ -61,15 +75,17 @@ export default function SetTransform(props: ISentenceEditorProps) {
isChecked={isUsePreset.value} />
{isUsePreset.value &&
- {
- target.set(option?.key.toString() ?? "");
- submit();
- }} options={[
- { key: "fig-left", text: tTarget('preparedTarget.choose.options.figLeft') },
- { key: "fig-center", text: tTarget('preparedTarget.choose.options.figCenter') },
- { key: "fig-right", text: tTarget('preparedTarget.choose.options.figRight') },
- { key: "bg-main", text: tTarget('preparedTarget.choose.options.bgMain') }
- ]} selectedKey={target.value} />
+ {
+ target.set(data.optionValue?.toString() ?? "");
+ submit();
+ }}
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(presetTargets.entries()).map(([key, text]) => )}
+
}
{!isUsePreset.value &&
([
+ [ "fig-left", t('preparedTarget.choose.options.figLeft') ],
+ [ "fig-center", t('preparedTarget.choose.options.figCenter') ],
+ [ "fig-right", t('preparedTarget.choose.options.figRight') ],
+ [ "bg-main", t('preparedTarget.choose.options.bgMain') ],
+ ]);
+ const isPresetTarget = Array.from(presetTargets.keys()).includes(target.value as PresetTarget);
const isUsePreset = useValue(isPresetTarget);
const submit = () => {
props.onSubmit(`setTransition: -target=${target.value} -enter=${enterFileName.value} -exit=${exitFileName.value};`);
@@ -46,15 +54,17 @@ export default function SetTransition(props: ISentenceEditorProps) {
isChecked={isUsePreset.value} />
{isUsePreset.value &&
- {
- target.set(option?.key.toString() ?? "");
- submit();
- }} options={[
- { key: "fig-left", text: t('preparedTarget.choose.options.figLeft') },
- { key: "fig-center", text: t('preparedTarget.choose.options.figCenter') },
- { key: "fig-right", text: t('preparedTarget.choose.options.figRight') },
- { key: "bg-main", text: t('preparedTarget.choose.options.bgMain') }
- ]} selectedKey={target.value} />
+ {
+ target.set(data.optionValue?.toString() ?? "");
+ submit();
+ }}
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(presetTargets.entries()).map(([key, text]) => )}
+
}
{!isUsePreset.value &&
- {
- if(option?.key?.toString() !== unlockType.value){
- fileName.set("");
- }
- unlockType.set(option?.key?.toString() ?? "");
- submit();
- }} />
+ {
+ if(data.optionValue?.toString() !== unlockType.value){
+ fileName.set("");
+ }
+ unlockType.set(data.optionValue?.toString() ?? "");
+ submit();
+ }}
+ style={{ minWidth: 0 }}
+ >
+ {Array.from(extra.entries()).map(([key, value]) => )}
+
<>
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/sentenceEditor.module.scss b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/sentenceEditor.module.scss
index 060e6cc08..d814e56d6 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/sentenceEditor.module.scss
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/SentenceEditor/sentenceEditor.module.scss
@@ -8,10 +8,10 @@
display: flex;
//align-items: center;
align-items: stretch;
- margin: 4px 0 0 0;
+ // margin: 4px 0 0 0;
width: 100%;
flex-wrap: wrap;
- gap: 8px;
+ gap: 4px;
}
.flex1 {
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/components/AddSentence.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/components/AddSentence.tsx
index 167a449a4..f2d312d9a 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/components/AddSentence.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/components/AddSentence.tsx
@@ -1,12 +1,12 @@
import { sentenceEditorConfig } from "../SentenceEditor";
import { useValue } from "../../../../hooks/useValue";
-import { useId } from "@fluentui/react-hooks";
-import { Dialog, DialogType } from "@fluentui/react";
+import { Button, Dialog, DialogBody, DialogContent, DialogSurface, DialogTitle, DialogTrigger } from "@fluentui/react-components";
import { Add } from "@icon-park/react";
import stylesAs from "./addSentence.module.scss";
import stylesGe from '../graphicalEditor.module.scss';
import { commandType } from "webgal-parser/src/interface/sceneInterface";
import useTrans from "@/hooks/useTrans";
+import { Dismiss24Filled, Dismiss24Regular, bundleIcon } from "@fluentui/react-icons";
export enum addSentenceType {
forward,
@@ -21,8 +21,8 @@ interface IAddSentenceProps {
export default function AddSentence(props: IAddSentenceProps) {
const t = useTrans('editor.graphical.components.addSentence.');
+ const DismissIcon = bundleIcon(Dismiss24Filled, Dismiss24Regular);
const isShowCallout = useValue(false);
- const addButtonId = useId("addbutton");
const addSentenceButtons = sentenceEditorConfig.filter(e => e.type !== commandType.comment).map(sentenceConfig => {
return {
props.onChoose(sentenceConfig.initialText());
@@ -39,57 +39,38 @@ export default function AddSentence(props: IAddSentenceProps) {
{sentenceConfig.descText()}
-
;
});
- const modelProps = {
- isBlocking: false,
- // styles: { main: { maxWidth: 600 } },
- topOffsetFixed: false
- };
- const dialogContentProps = {
- type: DialogType.largeHeader,
- title: props.titleText,
- subText: props.type ? t('dialogs.add.text.backward') : t('dialogs.add.text.forward')
- };
-
return <>
-
isShowCallout.set(!isShowCallout.value)}>
+
isShowCallout.set(!isShowCallout.value)}>
{props.titleText}
- {/* @ts-ignore */}
- {isShowCallout.value &&
>;
}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/components/EffectEditor.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/components/EffectEditor.tsx
index a8023357b..db5a5861e 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/components/EffectEditor.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/components/EffectEditor.tsx
@@ -1,9 +1,8 @@
import {logger} from "@/utils/logger";
import CommonOptions from "@/pages/editor/GraphicalEditor/components/CommonOption";
-import {TextField} from "@fluentui/react";
-import { Checkbox } from '@fluentui/react';
import {useValue} from "@/hooks/useValue";
import useTrans from "@/hooks/useTrans";
+import { Checkbox, Input } from "@fluentui/react-components";
export function EffectEditor(props:{
json:string,onChange:(newJson:string)=>void
@@ -85,43 +84,43 @@ export function EffectEditor(props:{
return <>
- {t('transform.x')} {
- x.set(newValue);
+ {t('transform.x')} {
+ x.set(data.value);
}} onBlur={submit}/>{'\u00a0'}
- {t('transform.y')} {
- y.set(newValue);
+ {t('transform.y')} {
+ y.set(data.value);
}} onBlur={submit}/>
- {t('scale.x')} {
- scaleX.set(newValue);
+ {t('scale.x')} {
+ scaleX.set(data.value);
}} onBlur={submit}/>{'\u00a0'}
- {t('scale.y')} {
- scaleY.set(newValue);
+ {t('scale.y')} {
+ scaleY.set(data.value);
}} onBlur={submit}/>
- {t('effect.alpha')} {
- alpha.set(newValue);
- }} onBlur={submit}/>{'\u00a0'}
+ {t('effect.alpha')} {
+ alpha.set(data.value);
+ }} onBlur={submit} style={{width: '140px'}}/>{'\u00a0'}
- {t('effect.rotation')} {
- rotation.set(newValue);
- }} onBlur={submit}/>{'\u00a0'}
+ {t('effect.rotation')} {
+ rotation.set(data.value);
+ }} onBlur={submit} style={{width: '140px'}}/>{'\u00a0'}
- {t('effect.blur')} {
- blur.set(newValue);
- }} onBlur={submit}/>
+ {t('effect.blur')} {
+ blur.set(data.value);
+ }} onBlur={submit} style={{width: '140px'}}/>
- { oldFilm.set(newValue ? 1 : 0); submit(); }} />{t('filter.oldFilm')}{'\u00a0'}
- { dotFilm.set(newValue ? 1 : 0); submit(); }} />{t('filter.dotFilm')}{'\u00a0'}
- { reflectionFilm.set(newValue ? 1 : 0); submit(); }} />{t('filter.reflectionFilm')}{'\u00a0'}
- { glitchFilm.set(newValue ? 1 : 0); submit(); }} />{t('filter.glitchFilm')}{'\u00a0'}
- { rgbFilm.set(newValue ? 1 : 0); submit(); }} />{t('filter.rgbFilm')}{'\u00a0'}
- { godrayFilm.set(newValue ? 1 : 0); submit(); }} />{t('filter.godrayFilm')}
+ { oldFilm.set(data.checked ? 1 : 0); submit(); }} label={t('filter.oldFilm')} />{'\u00a0'}
+ { dotFilm.set(data.checked ? 1 : 0); submit(); }} label={t('filter.dotFilm')}/>{'\u00a0'}
+ { reflectionFilm.set(data.checked ? 1 : 0); submit(); }} label={t('filter.reflectionFilm')}/>{'\u00a0'}
+ { glitchFilm.set(data.checked ? 1 : 0); submit(); }} label={t('filter.glitchFilm')}/>{'\u00a0'}
+ { rgbFilm.set(data.checked ? 1 : 0); submit(); }} label={t('filter.rgbFilm')}/>{'\u00a0'}
+ { godrayFilm.set(data.checked ? 1 : 0); submit(); }} label={t('filter.godrayFilm')}/>
>;
}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/components/TerrePanel.tsx b/packages/origine2/src/pages/editor/GraphicalEditor/components/TerrePanel.tsx
index 584e06ee2..52bc631a4 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/components/TerrePanel.tsx
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/components/TerrePanel.tsx
@@ -1,6 +1,7 @@
-import {Panel, PanelType} from "@fluentui/react";
import React, {ReactNode} from "react";
import {useExpand} from "@/hooks/useExpand";
+import { Button, DrawerBody, DrawerHeader, DrawerHeaderTitle, OverlayDrawer } from "@fluentui/react-components";
+import { Dismiss24Filled, Dismiss24Regular, bundleIcon } from "@fluentui/react-icons";
export function TerrePanel(props: {
children: ReactNode,
@@ -11,15 +12,31 @@ export function TerrePanel(props: {
const {width = 750} = props;
const {expandIndex, updateExpandIndex} = useExpand();
const isExpand = expandIndex === props.sentenceIndex;
- return
updateExpandIndex(0)}
- customWidth={`${width}px`}
- // You MUST provide this prop! Otherwise, screen readers will just say "button" with no label.
- closeButtonAriaLabel="Close"
- >{props.children};
+ const DismissIcon = bundleIcon(Dismiss24Filled, Dismiss24Regular);
+ return (
+
updateExpandIndex(0)}
+ position="end"
+ style={{width:`${width}px`}}
+ >
+
+ }
+ onClick={() => updateExpandIndex(0)}
+ />
+ }
+ >
+ {props.title}
+
+
+
+ {props.children}
+
+
+ );
}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/components/addSentence.module.scss b/packages/origine2/src/pages/editor/GraphicalEditor/components/addSentence.module.scss
index ea83b8806..f1dc6fd60 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/components/addSentence.module.scss
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/components/addSentence.module.scss
@@ -9,8 +9,14 @@
//}
.sentenceTypeButtonList {
- display: flex;
- flex-wrap: wrap;
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr;
+}
+
+@media screen and (max-width: 960px) {
+ .sentenceTypeButtonList {
+ grid-template-columns: 1fr 1fr;
+ }
}
.sentenceTypeButton {
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/components/commonOption.module.scss b/packages/origine2/src/pages/editor/GraphicalEditor/components/commonOption.module.scss
index 96a9d6008..027bf2ecd 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/components/commonOption.module.scss
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/components/commonOption.module.scss
@@ -1,5 +1,5 @@
.item {
- padding: 6px 8px 6px 8px;
+ padding: 2px 4px;
//margin: 0 0 0 8px;
display: flex;
flex-flow: column;
@@ -13,7 +13,6 @@
.title {
text-align: left;
color: var(--text-weak);
- padding: 0 0 5px 0;
font-weight: bold;
font-size: 95%;
}
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/components/commonTips.module.scss b/packages/origine2/src/pages/editor/GraphicalEditor/components/commonTips.module.scss
index ee476b572..debebe70d 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/components/commonTips.module.scss
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/components/commonTips.module.scss
@@ -1,7 +1,7 @@
.tips {
background: var(--primary-5pct);
- margin: 0 0 3px 0;
- padding: 4px 6px 4px 6px;
+ margin-bottom: 4px;
+ padding: 2px 4px;
border-radius: var(--radius-md);
color: var(--primary);
font-size: 90%;
diff --git a/packages/origine2/src/pages/editor/GraphicalEditor/graphicalEditor.module.scss b/packages/origine2/src/pages/editor/GraphicalEditor/graphicalEditor.module.scss
index 6d8dc3d60..2f29c0b76 100644
--- a/packages/origine2/src/pages/editor/GraphicalEditor/graphicalEditor.module.scss
+++ b/packages/origine2/src/pages/editor/GraphicalEditor/graphicalEditor.module.scss
@@ -16,7 +16,7 @@
display: flex;
background: var(--bg-card);
width: 100%;
- padding: 0px 6px 6px 6px;
+ padding: 0px 4px 4px 4px;
border: var(--border-md);
border-radius: var(--radius-md);
}
@@ -40,7 +40,7 @@
align-items: center;
box-sizing: border-box;
margin: 0 0 0 0;
- padding: 2px 0 4px 0;
+ padding: 2px 0 0 0;
}
.title {
@@ -55,14 +55,13 @@
}
.optionButtonContainer{
- margin-top: 2px;
margin-left: auto;
opacity: 0;
display: flex;
border: var(--border-md);
box-shadow: var(--shadow-md);
border-radius: var(--radius-md);
- padding: 2px;
+ // padding: 2px;
}
.sentenceEditorWrapper:hover .optionButtonContainer{
@@ -73,9 +72,11 @@
display: flex;
align-items: center;
box-sizing: border-box;
- padding: 3px 6px 3px 6px;
+ padding: 2px 4px;
border-radius: var(--radius-md);
cursor: pointer;
+ -webkit-user-select: none;
+ user-select: none;
//
//&:first-child {
// border-left: 1px solid;
@@ -104,7 +105,7 @@
}
.addForwardArea {
- height: 5px;
+ height: 4px;
width: 100%;
position: relative;
}
@@ -125,7 +126,7 @@
.addForwardAreaButtonGroup {
position: absolute;
- top: -12.5px;
+ top: -11.5px;
display: flex;
justify-content: center;
gap: 16px;
@@ -142,7 +143,7 @@
border: var(--border-md);
box-shadow: var(--shadow-md);
border-radius: var(--radius-md);
- padding: 2px;
+ // padding: 2px;
height: max-content;
}
diff --git a/packages/origine2/src/pages/editor/MainArea/EditArea.tsx b/packages/origine2/src/pages/editor/MainArea/EditArea.tsx
index b36ca50e8..307e29672 100644
--- a/packages/origine2/src/pages/editor/MainArea/EditArea.tsx
+++ b/packages/origine2/src/pages/editor/MainArea/EditArea.tsx
@@ -7,12 +7,14 @@ import {ITag} from "../../../store/statusReducer";
import GraphicalEditor from "../GraphicalEditor/GraphicalEditor";
import useTrans from "@/hooks/useTrans";
import EditorToolbar from "@/pages/editor/MainArea/EditorToolbar";
+import EditorDebugger from "@/pages/editor/MainArea/EditorDebugger/EditorDebugger";
export default function EditArea() {
const t = useTrans('editor.mainArea.');
const selectedTagTarget = useSelector((state: RootState) => state.status.editor.selectedTagTarget);
const tags = useSelector((state: RootState) => state.status.editor.tags);
const isCodeMode = useSelector((state: RootState) => state.status.editor.isCodeMode);
+ const isShowDebugger = useSelector((state: RootState) => state.status.editor.isShowDebugger);
// 生成每个 Tag 对应的编辑器主体
@@ -40,12 +42,13 @@ export default function EditArea() {
const tagPage = tag ? getTagPage(tag) : "";
- return<>
+ return <>
{selectedTagTarget === "" &&
{t('noFileOpened')}
}
{selectedTagTarget !== "" && tagPage}
- {isScene &&
}
+ {isScene && isShowDebugger &&
}
+ {isScene &&
}
>;
}
diff --git a/packages/origine2/src/pages/editor/MainArea/EditorDebugger/EditorDebugger.tsx b/packages/origine2/src/pages/editor/MainArea/EditorDebugger/EditorDebugger.tsx
new file mode 100644
index 000000000..7d8e0758d
--- /dev/null
+++ b/packages/origine2/src/pages/editor/MainArea/EditorDebugger/EditorDebugger.tsx
@@ -0,0 +1,92 @@
+import s from './editorDebugger.module.scss';
+import {useValue} from "@/hooks/useValue";
+import JsonView from '@uiw/react-json-view';
+import {githubLightTheme} from "@/pages/editor/MainArea/EditorDebugger/theme";
+import {ReactNode, useEffect} from "react";
+import {eventBus} from "@/utils/eventBus";
+import {Terminal} from 'primereact/terminal';
+import {TerminalService} from 'primereact/terminalservice';
+import {WsUtil} from "@/utils/wsUtil";
+
+export default function EditorDebugger() {
+ const mode = useValue<'state' | 'console'>('console');
+
+ const editorValue = useValue
}
+
{tSidebar('preview.notice')} }
+ relationship="description"
+ showDelay={0}
+ hideDelay={0}
+ withArrow
>
- {
- dispatch(setEnableLivePreview(!isEnableLivePreview));
- }}
- icon={}
- text={isEnableLivePreview ? t2('实时预览打开') : t2('实时预览关闭')}
- />
-
-
+
+ {
+ dispatch(setEnableLivePreview(!isEnableLivePreview));
+ }}
+ icon={ isEnableLivePreview ? : }
+ text={ isEnableLivePreview ? t2('实时预览打开') : t2('实时预览关闭') }
+ />
+
+
+
+
{
dispatch(setIsWarp(!isAutoWarp));
}}
- icon={}
- text={isAutoWarp ? t2('自动换行') : t2('永不换行')}
+ icon={ isAutoWarp ? : }
+ text={ isAutoWarp ? t2('自动换行') : t2('永不换行') }
/>
;
diff --git a/packages/origine2/src/pages/editor/Topbar/tabs/ViewConfig/ViewTab.tsx b/packages/origine2/src/pages/editor/Topbar/tabs/ViewConfig/ViewTab.tsx
index 71fddb4b4..dfc5a0d43 100644
--- a/packages/origine2/src/pages/editor/Topbar/tabs/ViewConfig/ViewTab.tsx
+++ b/packages/origine2/src/pages/editor/Topbar/tabs/ViewConfig/ViewTab.tsx
@@ -5,36 +5,55 @@ import {useDispatch, useSelector} from "react-redux";
import {RootState} from "@/store/origineStore";
import {setEnableLivePreview, setShowSidebar} from "@/store/userDataReducer";
import s from './viewTab.module.scss';
-import {FontIcon, TooltipDelay, TooltipHost} from "@fluentui/react";
import {IconWithTextItem} from "@/pages/editor/Topbar/components/IconWithTextItem";
import {eventBus} from "@/utils/eventBus";
import {useTranslation} from "react-i18next";
+import {
+ ArrowClockwise24Filled,
+ ArrowClockwise24Regular,
+ bundleIcon,
+ Open24Filled,
+ Open24Regular,
+ PanelLeft24Filled,
+ PanelLeft24Regular,
+ PanelLeftContract24Filled,
+ PanelLeftContract24Regular,
+} from "@fluentui/react-icons";
export function ViewTab() {
const dispatch = useDispatch();
const isShowSidebar = useSelector((state: RootState) => state.userData.isShowSidebar);
const currentEditGame = useSelector((state: RootState) => state.status.editor.currentEditingGame);
const {t} = useTranslation();
+
+ const PanelLeftIcon = bundleIcon(PanelLeft24Filled, PanelLeft24Regular);
+ const PanelLeftContractIcon = bundleIcon(PanelLeftContract24Filled, PanelLeftContract24Regular);
+ const ArrowClockwiseIcon = bundleIcon(ArrowClockwise24Filled, ArrowClockwise24Regular);
+ const OpenIcon = bundleIcon(Open24Filled, Open24Regular);
+
return
- {
- dispatch(setShowSidebar(!isShowSidebar));
- }} icon={}
- text={isShowSidebar ? t('显示侧边栏') : t('隐藏侧边栏')}/>
+ {
+ dispatch(setShowSidebar(!isShowSidebar));
+ }}
+ icon={isShowSidebar ? : }
+ text={isShowSidebar ? t('显示侧边栏') : t('隐藏侧边栏')}
+ />
{
eventBus.emit('refGame');
}}
- icon={}
+ icon={}
text={t("刷新游戏")}
/>
{
window.open(`/games/${currentEditGame}`, "_blank");
}}
- icon={}
+ icon={}
text={t("新标签页预览")}
/>
diff --git a/packages/origine2/src/pages/editor/Topbar/topbar.module.scss b/packages/origine2/src/pages/editor/Topbar/topbar.module.scss
index 49f0c1333..b65e79c39 100644
--- a/packages/origine2/src/pages/editor/Topbar/topbar.module.scss
+++ b/packages/origine2/src/pages/editor/Topbar/topbar.module.scss
@@ -45,29 +45,6 @@
margin: 0 auto 0 auto;
}
-.topbar_link {
- height: 100%;
- display: flex;
- align-items: center;
- padding: 0 8px 0 8px;
- cursor: pointer;
-}
-
-.topbar_link:hover {
- background: var(--bg-button-hover);
-}
-
-.topbar_link_text {
- padding: 0 6px;
- font-size: 14px;
-}
-
-@media screen and (max-width: 768px) {
- .topbar_link_text {
- display: none;
- }
-}
-
.topbar_btn_special {
border-radius: var(--radius-md) var(--radius-md) 0 0;
margin-left: 4px;
diff --git a/packages/origine2/src/store/statusReducer.ts b/packages/origine2/src/store/statusReducer.ts
index 19ae08202..a740b6679 100644
--- a/packages/origine2/src/store/statusReducer.ts
+++ b/packages/origine2/src/store/statusReducer.ts
@@ -50,6 +50,7 @@ interface IEditorState {
currentTopbarTab: TopbarTabs | undefined,
language: language,
graphicalEditorState: IGraphicalEditorState,
+ isShowDebugger: boolean,
}
// tag的假数据,用于测试
@@ -72,7 +73,8 @@ export const editorInitState: IEditorState = {
language: language.zhCn,
graphicalEditorState: {
currentExpandSentence: 0
- }
+ },
+ isShowDebugger: false,
};
const initialState = {
@@ -167,8 +169,12 @@ const statusSlice = createSlice({
state.editor.isEnableLivePreview = action.payload;
},
- updateGraphicalEditorCurrentExpandSentence:(state,action:PayloadAction)=>{
+ updateGraphicalEditorCurrentExpandSentence: (state, action: PayloadAction) => {
state.editor.graphicalEditorState.currentExpandSentence = action.payload;
+ },
+
+ setDebuggerOpen:(state,action:PayloadAction)=>{
+ state.editor.isShowDebugger = action.payload;
}
}
diff --git a/packages/origine2/src/translations/en.ts b/packages/origine2/src/translations/en.ts
index 9ce503cc8..c9f9e1656 100644
--- a/packages/origine2/src/translations/en.ts
+++ b/packages/origine2/src/translations/en.ts
@@ -667,8 +667,8 @@ export const en = {
},
fileChoose: {
- cancel: "Cancel choose",
- choose: "Choose file",
+ cancel: "Cancel",
+ choose: "Choose",
fileSearch: 'Search file'
}
},
diff --git a/packages/origine2/src/translations/jp.ts b/packages/origine2/src/translations/jp.ts
index e6cf555af..ffe62c32c 100644
--- a/packages/origine2/src/translations/jp.ts
+++ b/packages/origine2/src/translations/jp.ts
@@ -676,7 +676,7 @@ export const jp = {
fileChoose: {
cancel: "キャンセル",
- choose: "ファイル選択",
+ choose: "選択",
fileSearch: 'ファイル検索'
}
},
diff --git a/packages/origine2/src/translations/zh-cn.ts b/packages/origine2/src/translations/zh-cn.ts
index 9d8f417ca..202a9899b 100644
--- a/packages/origine2/src/translations/zh-cn.ts
+++ b/packages/origine2/src/translations/zh-cn.ts
@@ -674,8 +674,8 @@ export const zhCn = {
},
},
fileChoose: {
- cancel: "取消选择",
- choose: "选择文件",
+ cancel: "取消",
+ choose: "选择",
fileSearch: '搜索文件'
}
},
diff --git a/packages/origine2/src/types/debugProtocol.ts b/packages/origine2/src/types/debugProtocol.ts
index b56a45c36..02d76a004 100644
--- a/packages/origine2/src/types/debugProtocol.ts
+++ b/packages/origine2/src/types/debugProtocol.ts
@@ -7,6 +7,8 @@ export enum DebugCommand {
SYNCFC,
// 同步自编辑器
SYNCFE,
+ // 执行指令
+ EXE_COMMAND,
}
export interface IDebugMessage {
@@ -15,5 +17,6 @@ export interface IDebugMessage {
sentence: number;
scene: string;
};
+ message: string;
stageSyncMsg: IStageState;
}
diff --git a/packages/origine2/src/utils/wsUtil.ts b/packages/origine2/src/utils/wsUtil.ts
index 8a7a15994..aae240e0c 100644
--- a/packages/origine2/src/utils/wsUtil.ts
+++ b/packages/origine2/src/utils/wsUtil.ts
@@ -20,7 +20,27 @@ export class WsUtil {
scene: sceneName,
sentence: lineNumber
},// @ts-ignore
- stageSyncMsg: {}
+ stageSyncMsg: {},
+ message: 'Sync'
+ };
+ // @ts-ignore
+ window["currentWs"].send(JSON.stringify(message));
+ }
+ }
+
+ public static sendExeCommand(command: string) {
+
+ // @ts-ignore
+ if (window["currentWs"]) { // @ts-ignore
+ logger.debug("编辑器开始发送同步数据");
+ const message: IDebugMessage = {
+ command: DebugCommand.EXE_COMMAND,
+ sceneMsg: {
+ scene: 'temp',
+ sentence: 0
+ },// @ts-ignore
+ stageSyncMsg: {},
+ message: command
};
// @ts-ignore
window["currentWs"].send(JSON.stringify(message));
diff --git a/packages/terre2/assets/templates/WebGAL_Template/assets/index-6b405d24.js b/packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js
similarity index 63%
rename from packages/terre2/assets/templates/WebGAL_Template/assets/index-6b405d24.js
rename to packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js
index b3e4de1b7..410490a89 100644
--- a/packages/terre2/assets/templates/WebGAL_Template/assets/index-6b405d24.js
+++ b/packages/terre2/assets/templates/WebGAL_Template/assets/index-e4a5e140.js
@@ -1,54 +1,54 @@
-var ZR=Object.defineProperty;var QR=(e,t,r)=>t in e?ZR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var le=(e,t,r)=>(QR(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 Vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function JR(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 FT={exports:{}},ml={};/*
+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={};/*
object-assign
(c) Sindre Sorhus
@license MIT
-*/var sb=Object.getOwnPropertySymbols,eN=Object.prototype.hasOwnProperty,tN=Object.prototype.propertyIsEnumerable;function rN(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function nN(){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 Uy=nN()?Object.assign:function(e,t){for(var r,n=rN(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))$e!==void 0&&0>k($e,we)?(L[ae]=$e,L[je]=ee,ae=je):(L[ae]=we,L[be]=ee,ae=be);else if($e!==void 0&&0>k($e,ee))L[ae]=$e,L[je]=ee,ae=je;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,X=!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(X=!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,X&&(X=!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)&&(X?n():X=!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}}}})(tC);eC.exports=tC;var pN=eC.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,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
* 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=U,ut=Uy,jt=pN;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"),vN=/^[: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]*$/,fb=Object.prototype.hasOwnProperty,hb={},db={};function mN(e){return fb.call(db,e)?!0:fb.call(hb,e)?!1:vN.test(e)?db[e]=!0:(hb[e]=!0,!1)}function gN(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 yN(e,t,r,n){if(t===null||typeof t>"u"||gN(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 Wy=/[\-:]([a-z])/g;function Xy(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(Wy,Xy);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(Wy,Xy);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(Wy,Xy);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 qy(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"),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:!(!(2s||i[a]!==o[s])return`
-`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{Pd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tu(e):""}function _N(e){switch(e.tag){case 5:return tu(e.type);case 16:return tu("Lazy");case 13:return tu("Suspense");case 19:return tu("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 22:return e=Dl(e.type._render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function Sa(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 vi:return"Fragment";case mo:return"Portal";case uu:return"Profiler";case Yy:return"StrictMode";case lu:return"Suspense";case Jc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zy:return(e.displayName||"Context")+".Consumer";case Ky: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 oh:return Sa(e.type);case Jy:return Sa(e._render);case Qy:t=e._payload,e=e._init;try{return Sa(e(t))}catch{}}return null}function ji(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function iC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xN(e){var t=iC(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 jl(e){e._valueTracker||(e._valueTracker=xN(e))}function oC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=iC(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ef(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 Vv(e,t){var r=t.checked;return ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function vb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ji(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 aC(e,t){t=t.checked,t!=null&&qy(e,"checked",t,!1)}function Wv(e,t){aC(e,t);var r=ji(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")?Xv(e,t.type,r):t.hasOwnProperty("defaultValue")&&Xv(e,t.type,ji(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mb(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 Xv(e,t,r){(t!=="number"||ef(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function bN(e){var t="";return nh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function qv(e,t){return e=ut({children:void 0},t),(t=bN(t.children))&&(e.children=t),e}function wa(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:ji(r)}}function sC(e,t){var r=ji(t.value),n=ji(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 yb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Kv={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function uC(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 Zv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bl,lC=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!==Kv.svg||"innerHTML"in e)e.innerHTML=t;else{for(Bl=Bl||document.createElement("div"),Bl.innerHTML="",t=Bl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nu(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},SN=["Webkit","ms","Moz","O"];Object.keys(cu).forEach(function(e){SN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cu[t]=cu[e]})});function cC(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 fC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=cC(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var wN=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 Qv(e,t){if(t){if(wN[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 Jv(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 r_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var em=null,Ea=null,Ta=null;function _b(e){if(e=_l(e)){if(typeof em!="function")throw Error(K(280));var t=e.stateNode;t&&(t=fh(t),em(e.stateNode,e.type,t))}}function hC(e){Ea?Ta?Ta.push(e):Ta=[e]:Ea=e}function dC(){if(Ea){var e=Ea,t=Ta;if(Ta=Ea=null,_b(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function sh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Bi(t),e[t]=r}var Bi=Math.clz32?Math.clz32:BN,DN=Math.log,jN=Math.LN2;function BN(e){return e===0?32:31-(DN(e)/jN|0)|0}var UN=jt.unstable_UserBlockingPriority,$N=jt.unstable_runWithPriority,kc=!0;function GN(e,t,r,n){go||i_();var i=l_,o=go;go=!0;try{pC(i,e,t,r,n)}finally{(go=o)||o_()}}function zN(e,t,r,n){$N(UN,l_.bind(null,e,t,r,n))}function l_(e,t,r,n){if(kc){var i;if((i=(t&4)===0)&&0=hu),Pb=String.fromCharCode(32),kb=!1;function IC(e,t){switch(e){case"keyup":return hL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function pL(e,t){switch(e){case"compositionend":return RC(t);case"keypress":return t.which!==32?null:(kb=!0,Pb);case"textInput":return e=t.data,e===Pb&&kb?null:e;default:return null}}function vL(e,t){if(ha)return e==="compositionend"||!p_&&IC(e,t)?(e=PC(),Ic=f_=yi=null,ha=!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=Lb(r)}}function FC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?FC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fb(){for(var e=window,t=ef();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ef(e.document)}return t}function om(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 TL=si&&"documentMode"in document&&11>=document.documentMode,da=null,am=null,pu=null,sm=!1;function Db(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;sm||da==null||da!==ef(n)||(n=da,"selectionStart"in n&&om(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}),pu&&Bu(pu,n)||(pu=n,n=of(am,"onSelect"),0va||(e.current=lm[va],lm[va]=null,va--)}function vt(e,t){va++,lm[va]=e.current,e.current=t}var Ui={},nr=Ki(Ui),wr=Ki(!1),ko=Ui;function ja(e,t){var r=e.type.contextTypes;if(!r)return Ui;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 uf(){it(wr),it(nr)}function Wb(e,t,r){if(nr.current!==Ui)throw Error(K(168));vt(nr,t),vt(wr,r)}function HC(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,Sa(t)||"Unknown",i));return ut({},r,n)}function Nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ui,ko=nr.current,vt(nr,e),vt(wr,wr.current),!0}function Xb(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=HC(e,t,ko),n.__reactInternalMemoizedMergedChildContext=e,it(wr),it(nr),vt(nr,e)):it(wr),vt(wr,r)}var m_=null,Eo=null,AL=jt.unstable_runWithPriority,g_=jt.unstable_scheduleCallback,cm=jt.unstable_cancelCallback,PL=jt.unstable_shouldYield,qb=jt.unstable_requestPaint,fm=jt.unstable_now,kL=jt.unstable_getCurrentPriorityLevel,hh=jt.unstable_ImmediatePriority,VC=jt.unstable_UserBlockingPriority,WC=jt.unstable_NormalPriority,XC=jt.unstable_LowPriority,qC=jt.unstable_IdlePriority,Gd={},IL=qb!==void 0?qb:function(){},Qn=null,Lc=null,zd=!1,Yb=fm(),tr=1e4>Yb?fm:function(){return fm()-Yb};function Ba(){switch(kL()){case hh:return 99;case VC:return 98;case WC:return 97;case XC:return 96;case qC:return 95;default:throw Error(K(332))}}function YC(e){switch(e){case 99:return hh;case 98:return VC;case 97:return WC;case 96:return XC;case 95:return qC;default:throw Error(K(332))}}function Io(e,t){return e=YC(e),AL(e,t)}function $u(e,t,r){return e=YC(e),g_(e,t,r)}function $n(){if(Lc!==null){var e=Lc;Lc=null,cm(e)}KC()}function KC(){if(!zd&&Qn!==null){zd=!0;var e=0;try{var t=Qn;Io(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===vi&&y.key===null;x&&(y=y.props.children);var b=typeof y=="object"&&y!==null;if(b)switch(y.$$typeof){case eu:e:{for(b=y.key,x=m;x!==null;){if(x.key===b){switch(x.tag){case 7:if(y.type===vi){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=Ms(p,x,y),m.return=p,p=m;break e}}r(p,x);break}else t(p,x);x=x.sibling}y.type===vi?(m=Ia(y.props.children,p.mode,_,y.key),m.return=p,p=m):(_=jc(y.type,y.key,y.props,null,p.mode,_),_.ref=Ms(p,m,y),_.return=p,p=_)}return a(p);case mo: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=Yd(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=qd(y,p.mode,_),m.return=p,p=m),a(p);if(Gl(y))return v(p,m,y,_);if(Ps(y))return g(p,m,y,_);if(b&&zl(p,y),typeof y>"u"&&!x)switch(p.tag){case 1:case 22:case 0:case 11:case 15:throw Error(K(152,Sa(p.type)||"Component"))}return r(p,m)}}var df=tO(!0),rO=tO(!1),xl={},In=Ki(xl),zu=Ki(xl),Hu=Ki(xl);function _o(e){if(e===xl)throw Error(K(174));return e}function dm(e,t){switch(vt(Hu,t),vt(zu,e),vt(In,xl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zv(t,e)}it(In),vt(In,t)}function Ua(){it(In),it(zu),it(Hu)}function e1(e){_o(Hu.current);var t=_o(In.current),r=Zv(t,e.type);t!==r&&(vt(zu,e),vt(In,r))}function b_(e){zu.current===e&&(it(In),it(zu))}var pt=Ki(0);function pf(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 ri=null,xi=null,Rn=!1;function nO(e,t){var r=Hr(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 t1(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 pm(e){if(Rn){var t=xi;if(t){var r=t;if(!t1(e,t)){if(t=Ca(r.nextSibling),!t||!t1(e,t)){e.flags=e.flags&-1025|2,Rn=!1,ri=e;return}nO(ri,r)}ri=e,xi=Ca(t.firstChild)}else e.flags=e.flags&-1025|2,Rn=!1,ri=e}}function r1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ri=e}function Hl(e){if(e!==ri)return!1;if(!Rn)return r1(e),Rn=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!um(t,e.memoizedProps))for(t=xi;t;)nO(e,t),t=Ca(t.nextSibling);if(r1(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){xi=Ca(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}xi=null}}else xi=ri?Ca(e.stateNode.nextSibling):null;return!0}function Hd(){xi=ri=null,Rn=!1}var Aa=[];function S_(){for(var e=0;eo))throw Error(K(301));o+=1,Xt=er=null,t.updateQueue=null,vu.current=FL,e=r(n,i)}while(mu)}if(vu.current=_f,t=er!==null&&er.next!==null,Vu=0,Xt=er=xt=null,vf=!1,t)throw Error(K(300));return e}function xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?xt.memoizedState=Xt=e:Xt=Xt.next=e,Xt}function Uo(){if(er===null){var e=xt.alternate;e=e!==null?e.memoizedState:null}else e=er.next;var t=Xt===null?xt.memoizedState:Xt.next;if(t!==null)Xt=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},Xt===null?xt.memoizedState=Xt=e:Xt=Xt.next=e}return Xt}function On(e,t){return typeof t=="function"?t(e):t}function Fs(e){var t=Uo(),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((Vu&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,bl|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,zr(n,t.memoizedState)||(hn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Ds(e){var t=Uo(),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)||(hn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function n1(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=(Vu&e)===e)&&(t._workInProgressVersionPrimary=n,Aa.push(t))),e)return r(t._source);throw Aa.push(t),Error(K(350))}function iO(e,t,r,n){var i=cr;if(i===null)throw Error(K(349));var o=t._getVersion,a=o(t._source),s=vu.current,u=s.useState(function(){return n1(i,t,r)}),l=u[1],c=u[0];u=Xt;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(!zr(a,p)){p=r(t._source),zr(c,p)||(l(p),p=ki(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)}),Io(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[_i]=t,e[sf]=n,dO(e,t,!1,!1),t.stateNode=e,a=Jv(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;iEm&&(t.flags|=64,o=!0,Bs(n,!1),t.lanes=33554432)}else{if(!o)if(e=pf(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bs(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>Em&&r!==1073741824&&(t.flags|=64,o=!0,Bs(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 R_(),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 BL(e){switch(e.tag){case 1:Er(e.type)&&uf();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Ua(),it(wr),it(nr),S_(),t=e.flags,t&64)throw Error(K(285));return e.flags=t&-4097|64,e;case 5:return b_(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 Ua(),null;case 10:return __(e),null;case 23:case 24:return R_(),null;default:return null}}function A_(e,t){try{var r="",n=t;do r+=_N(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{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=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=`
Error generating stack: `+o.message+`
-`+o.stack}return{value:e,source:t,stack:i}}function _m(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var UL=typeof WeakMap=="function"?WeakMap:Map;function mO(e,t,r){r=Ai(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){bf||(bf=!0,Tm=n),_m(e,t)},r}function gO(e,t,r){r=Ai(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return _m(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),_m(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var $L=typeof WeakSet=="function"?WeakSet:Set;function m1(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Ri(e,r)}else t.current=null}function GL(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&&v_(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(K(163))}function zL(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&&(CO(r,e),ZL(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&&Zb(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}Zb(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&GC(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&&bC(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(K(163))}function g1(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=cC("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 y1(e,t){if(Eo&&typeof Eo.onCommitFiberUnmount=="function")try{Eo.onCommitFiberUnmount(m_,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)CO(t,r);else{n=t;try{i()}catch(o){Ri(n,o)}}r=r.next}while(r!==e)}break;case 1:if(m1(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Ri(t,o)}break;case 5:m1(t);break;case 4:yO(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 x1(e){return e.tag===5||e.tag===3||e.tag===4}function b1(e){e:{for(var t=e.return;t!==null;){if(x1(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&&(Nu(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||x1(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?xm(e,r,t):bm(e,r,t)}function xm(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=af));else if(n!==4&&(e=e.child,e!==null))for(xm(e,t,r),e=e.sibling;e!==null;)xm(e,t,r),e=e.sibling}function bm(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(bm(e,t,r),e=e.sibling;e!==null;)bm(e,t,r),e=e.sibling}function yO(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(y1(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(y1(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 Xd(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[sf]=n,e==="input"&&n.type==="radio"&&n.name!=null&&aC(r,n),Jv(e,i),t=Jv(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*VL(r/1960))-r,10i&&(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,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}qt!==5&&(qt=2),u=A_(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var b=mO(h,o,t);Kb(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=gO(h,o,t);Kb(h,k);break e}}h=h.return}while(h!==null)}TO(r)}catch(A){t=A,At===r&&r!==null&&(At=r=r.return);continue}break}while(1)}function wO(){var e=xf.current;return xf.current=_f,e===null?_f:e}function iu(e,t){var r=ve;ve|=16;var n=wO();cr===e&&rr===t||ka(e,t);do try{XL();break}catch(i){SO(e,i)}while(1);if(y_(),ve=r,xf.current=n,At!==null)throw Error(K(261));return cr=null,rr=0,qt}function XL(){for(;At!==null;)EO(At)}function qL(){for(;At!==null&&!PL();)EO(At)}function EO(e){var t=OO(e.alternate,e,Ro);e.memoizedProps=e.pendingProps,t===null?TO(e):At=t,P_.current=null}function TO(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=BL(t),r!==null){r.flags&=2047,At=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=jL(r,t,Ro),r!==null){At=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Ro&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=Mb(y,b),o=Mb(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}kc=!!Bd,Ud=Bd=null,e.current=r,ie=n;do try{for(y=e;ie!==null;){var w=ie.flags;if(w&36&&zL(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));Ri(ie,A),ie=ie.nextEffect}while(ie!==null);ie=null,IL(),ve=i}else e.current=r;if($i)$i=!1,gu=e,nu=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===Am?yu++:(yu=0,Am=e):yu=0,r=r.stateNode,Eo&&typeof Eo.onCommitFiberRoot=="function")try{Eo.onCommitFiberRoot(m_,r,void 0,(r.current.flags&64)===64)}catch{}if(Zr(e,tr()),bf)throw bf=!1,e=Tm,Tm=null,e;return ve&8||$n(),null}function KL(){for(;ie!==null;){var e=ie.alternate;Dc||_u===null||(ie.flags&8?bb(ie,_u)&&(Dc=!0):ie.tag===13&&HL(e,ie)&&bb(ie,_u)&&(Dc=!0));var t=ie.flags;t&256&&GL(e,ie),!(t&512)||$i||($i=!0,$u(97,function(){return Zi(),null})),ie=ie.nextEffect}}function Zi(){if(nu!==90){var e=97tr()-I_?ka(e,0):k_|=r),Zr(e,t)}function eM(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ei===0&&(ei=rs),t=ua(62914560&~ei),t===0&&(t=4194304)):t=Ba()===99?1:2:t=1),r=Nr(),e=vh(e,t),e!==null&&(sh(e,t,r),Zr(e,r))}var OO;OO=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:l1(t),Hd();break;case 5:e1(t);break;case 1:Er(t.type)&&Nc(t);break;case 4:dm(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;vt(lf,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?c1(e,t,r):(vt(pt,pt.current&1),t=ni(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 v1(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,Vd(e,t,r)}return ni(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=ja(t,nr.current),Oa(t,r),i=E_(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;Nc(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,x_(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&hf(t,n,a,e),i.updater=dh,t.stateNode=i,i._reactInternals=t,hm(t,n,e,r),t=gm(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=rM(i),e=cn(i,e),o){case 0:t=mm(null,t,i,e,r);break e;case 1:t=u1(null,t,i,e,r);break e;case 11:t=a1(null,t,i,e,r);break e;case 14:t=s1(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),mm(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cn(n,i),u1(e,t,n,i,r);case 3:if(l1(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,QC(e,t),Gu(t,n,null,r),n=t.memoizedState.element,n===i)Hd(),t=ni(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(xi=Ca(t.stateNode.containerInfo.firstChild),ri=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(PO)}catch(e){console.error(e)}}PO(),JT.exports=tn;var kO=JT.exports;const Mn=en(kO);const lM="_Title_main_13knx_2",cM="_Title_buttonList_13knx_9",fM="_Title_button_13knx_9",hM="_Title_button_text_13knx_43",dM="_Title_button_text_up_13knx_52",pM="_Title_backup_background_13knx_58",kt={Title_main:lM,Title_buttonList:cM,Title_button:fM,Title_button_text:hM,Title_button_text_up:dM,Title_backup_background:pM};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:D_(e)?2:j_(e)?3:0}function Ra(e,t){return os(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vM(e,t){return os(e)===2?e.get(t):e[t]}function IO(e,t,r){var n=os(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function RO(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function D_(e){return bM&&e instanceof Map}function j_(e){return SM&&e instanceof Set}function uo(e){return e.o||e.t}function B_(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=LO(e);delete t[st];for(var r=Na(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=mM),Object.freeze(e),t&&No(e,function(r,n){return U_(n,!0)},!0)),e}function mM(){fn(2)}function $_(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Nn(e){var t=Nm[e];return t||fn(18,e),t}function gM(e,t){Nm[e]||(Nm[e]=t)}function km(){return Wu}function Zd(e,t){t&&(Nn("Patches"),e.u=[],e.s=[],e.v=t)}function wf(e){Im(e),e.p.forEach(yM),e.p=null}function Im(e){e===Wu&&(Wu=e.l)}function T1(e){return Wu={p:[],l:Wu,h:e,m:!0,_:0}}function yM(e){var t=e[st];t.i===0||t.i===1?t.j():t.g=!0}function Qd(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&&(wf(t),fn(4)),ui(e)&&(e=Ef(t,e),t.l||Tf(t,e)),t.u&&Nn("Patches").M(r[st].t,e,t.u,t.s)):e=Ef(t,r,[]),wf(t),t.u&&t.v(t.u,t.s),e!==NO?e:void 0}function Ef(e,t,r){if($_(t))return t;var n=t[st];if(!n)return No(t,function(s,u){return C1(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Tf(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=B_(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),No(o,function(s,u){return C1(e,n,i,s,u,r,a)}),Tf(e,i,!1),r&&e.u&&Nn("Patches").N(n,r,e.u,e.s)}return n.o}function C1(e,t,r,n,i,o,a){if(zi(i)){var s=Ef(e,i,o&&t&&t.i!==3&&!Ra(t.R,n)?o.concat(n):void 0);if(IO(r,n,s),!zi(s))return;e.m=!1}else a&&r.add(i);if(ui(i)&&!$_(i)){if(!e.h.D&&e._<1)return;Ef(e,i),t&&t.A.l||Tf(e,i)}}function Tf(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&U_(t,r)}function Jd(e,t){var r=e[st];return(r?uo(r):e)[t]}function O1(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 mi(e){e.P||(e.P=!0,e.l&&mi(e.l))}function ep(e){e.o||(e.o=B_(e.t))}function Rm(e,t,r){var n=D_(t)?Nn("MapSet").F(t,r):j_(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:km(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=Xu;a&&(u=[s],l=ou);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:km()).p.push(n),n}function _M(e){return zi(e)||fn(22,e),function t(r){if(!ui(r))return r;var n,i=r[st],o=os(r);if(i){if(!i.P&&(i.i<4||!Nn("ES5").K(i)))return i.t;i.I=!0,n=A1(r,o),i.I=!1}else n=A1(r,o);return No(n,function(a,s){i&&vM(i.t,a)===s||IO(n,a,t(s))}),o===3?new Set(n):n}(e)}function A1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return B_(e)}function xM(){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 Xu.get(u,o)},set:function(u){var l=this[st];Xu.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)&&mi(s);break;case 4:r(s)&&mi(s)}}}function r(o){for(var a=o.t,s=o.k,u=Na(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==st){var f=a[c];if(f===void 0&&!Ra(a,c))return!0;var h=s[c],d=h&&h[st];if(d?d.t!==f:!RO(h,f))return!0}}var v=!!a[st];return u.length!==Na(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 zi(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Lr=new EM,MO=Lr.produce;Lr.produceWithPatches.bind(Lr);Lr.setAutoFreeze.bind(Lr);Lr.setUseProxies.bind(Lr);Lr.applyPatches.bind(Lr);Lr.createDraft.bind(Lr);Lr.finishDraft.bind(Lr);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 TM(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 FO(e){var t=TM(e,"string");return Dt(t)=="symbol"?t:String(t)}function Fr(e,t,r){return t=FO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R1(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 N1(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(DO)(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(!CM(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:Cf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Jt(13))})}function AM(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 Of(){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 vF=pF,mF=gh;function gF(e,t){var r=this.__data__,n=mF(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var yF=gF,_F=tF,xF=lF,bF=hF,SF=vF,wF=yF;function as(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Cj}var JO=Oj,Aj=wl,Pj=JO,kj=cs,Ij="[object Arguments]",Rj="[object Array]",Nj="[object Boolean]",Lj="[object Date]",Mj="[object Error]",Fj="[object Function]",Dj="[object Map]",jj="[object Number]",Bj="[object Object]",Uj="[object RegExp]",$j="[object Set]",Gj="[object String]",zj="[object WeakMap]",Hj="[object ArrayBuffer]",Vj="[object DataView]",Wj="[object Float32Array]",Xj="[object Float64Array]",qj="[object Int8Array]",Yj="[object Int16Array]",Kj="[object Int32Array]",Zj="[object Uint8Array]",Qj="[object Uint8ClampedArray]",Jj="[object Uint16Array]",eB="[object Uint32Array]",tt={};tt[Wj]=tt[Xj]=tt[qj]=tt[Yj]=tt[Kj]=tt[Zj]=tt[Qj]=tt[Jj]=tt[eB]=!0;tt[Ij]=tt[Rj]=tt[Hj]=tt[Nj]=tt[Vj]=tt[Lj]=tt[Mj]=tt[Fj]=tt[Dj]=tt[jj]=tt[Bj]=tt[Uj]=tt[$j]=tt[Gj]=tt[zj]=!1;function tB(e){return kj(e)&&Pj(e.length)&&!!tt[Aj(e)]}var rB=tB;function nB(e){return function(t){return e(t)}}var q_=nB,Pf={exports:{}};Pf.exports;(function(e,t){var r=HO,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})(Pf,Pf.exports);var Y_=Pf.exports,iB=rB,oB=q_,q1=Y_,Y1=q1&&q1.isTypedArray,aB=Y1?oB(Y1):iB,sB=aB,uB=sj,lB=yj,cB=X_,fB=QO,hB=Tj,dB=sB,pB=Object.prototype,vB=pB.hasOwnProperty;function mB(e,t){var r=cB(e),n=!r&&lB(e),i=!r&&!n&&fB(e),o=!r&&!n&&!i&&dB(e),a=r||n||i||o,s=a?uB(e.length,String):[],u=s.length;for(var l in e)(t||vB.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||hB(l,u)))&&s.push(l);return s}var eA=mB,gB=Object.prototype;function yB(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||gB;return e===r}var K_=yB;function _B(e,t){return function(r){return e(t(r))}}var tA=_B,xB=tA,bB=xB(Object.keys,Object),SB=bB,wB=K_,EB=SB,TB=Object.prototype,CB=TB.hasOwnProperty;function OB(e){if(!wB(e))return EB(e);var t=[];for(var r in Object(e))CB.call(e,r)&&r!="constructor"&&t.push(r);return t}var AB=OB,PB=WO,kB=JO;function IB(e){return e!=null&&kB(e.length)&&!PB(e)}var rA=IB,RB=eA,NB=AB,LB=rA;function MB(e){return LB(e)?RB(e):NB(e)}var Z_=MB,FB=bh,DB=Z_;function jB(e,t){return e&&FB(t,DB(t),e)}var BB=jB;function UB(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var $B=UB,GB=Qi,zB=K_,HB=$B,VB=Object.prototype,WB=VB.hasOwnProperty;function XB(e){if(!GB(e))return HB(e);var t=zB(e),r=[];for(var n in e)n=="constructor"&&(t||!WB.call(e,n))||r.push(n);return r}var qB=XB,YB=eA,KB=qB,ZB=rA;function QB(e){return ZB(e)?YB(e,!0):KB(e)}var Q_=QB,JB=bh,e4=Q_;function t4(e,t){return e&&JB(t,e4(t),e)}var r4=t4,kf={exports:{}};kf.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})(kf,kf.exports);var n4=kf.exports;function i4(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 dA={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},r0=z_({name:"stage",initialState:Et(dA),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:Sh,setStage:Te,setStageVar:pA}=r0.actions,kr=r0.actions,A8=r0.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 vA={exports:{}};/*!
+Add a 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:{}};/*!
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(j){var $=R.result;try{$.createObjectStore(E.storeName),j.oldVersion<=1&&$.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($){$.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 X(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 j(){return f.resolve()}for(var $=0;$>4,J[M++]=(j&15)<<4|$>>2,J[M++]=($&3)<<6|W&63;return q}function bd(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 dR(E,I){var C="";if(E&&(C=Jx.call(E)),E&&(C==="[object ArrayBuffer]"||E.buffer&&Jx.call(E.buffer)==="[object ArrayBuffer]")){var N,M=sr;E instanceof ArrayBuffer?(N=E,M+=ci):(N=E.buffer,C==="[object Int8Array]"?M+=Es:C==="[object Uint8Array]"?M+=Ts:C==="[object Uint8ClampedArray]"?M+=Cs:C==="[object Int16Array]"?M+=Wx:C==="[object Uint16Array]"?M+=qx:C==="[object Int32Array]"?M+=Xx:C==="[object Uint32Array]"?M+=Yx:C==="[object Float32Array]"?M+=Kx:C==="[object Float64Array]"?M+=Zx:I(new Error("Failed to get type for BinaryArray"))),I(M+bd(N))}else if(C==="[object Blob]"){var R=new FileReader;R.onload=function(){var j=Kt+E.type+"~"+bd(this.result);I(sr+Wo+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 pR(E){if(E.substring(0,xn)!==sr)return JSON.parse(E);var I=E.substring(Qx),C=E.substring(xn,Qx),N;if(C===Wo&&Ne.test(I)){var M=I.match(Ne);N=M[1],I=I.substring(M[0].length)}var R=eb(I);switch(C){case ci:return R;case Wo:return c([R],{type:N});case Es:return new Int8Array(R);case Ts:return new Uint8Array(R);case Cs:return new Uint8ClampedArray(R);case Wx:return new Int16Array(R);case qx:return new Uint16Array(R);case Xx:return new Int32Array(R);case Yx:return new Uint32Array(R);case Kx:return new Float32Array(R);case Zx:return new Float64Array(R);default:throw new Error("Unkown type: "+C)}}var Sd={serialize:dR,deserialize:pR,stringToBuffer:eb,bufferToString:bd};function tb(E,I,C,N){E.executeSql("CREATE TABLE IF NOT EXISTS "+I.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,N)}function vR(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($){return j($)}C.db.transaction(function($){tb($,C,function(){I._dbInfo=C,R()},function(W,q){j(q)})},j)});return C.serializer=Sd,M}function fi(E,I,C,N,M,R){E.executeSql(C,N,M,function(j,$){$.code===$.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[I.storeName],function(W,q){q.rows.length?R(W,$):tb(W,I,function(){W.executeSql(C,N,M,R)},R)},R):R(j,$)},R)}function mR(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($){fi($,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[E],function(W,q){var J=q.rows.length?q.rows.item(0).value:null;J&&(J=j.serializer.deserialize(J)),M(J)},function(W,q){R(q)})})}).catch(R)});return h(N,I),N}function gR(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function($){fi($,j,"SELECT * FROM "+j.storeName,[],function(W,q){for(var J=q.rows,se=J.length,Ce=0;Ce0){j(rb.apply(M,[E,W,C,N-1]));return}$(Ce)}})})}).catch($)});return h(R,C),R}function yR(E,I,C){return rb.apply(this,[E,I,C,1])}function _R(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($){fi($,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[E],function(){M()},function(W,q){R(q)})})}).catch(R)});return h(N,I),N}function xR(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){fi(j,R,"DELETE FROM "+R.storeName,[],function(){N()},function($,W){M(W)})})}).catch(M)});return h(C,E),C}function bR(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){fi(j,R,"SELECT COUNT(key) as c FROM "+R.storeName,[],function($,W){var q=W.rows.item(0).c;N(q)},function($,W){M(W)})})}).catch(M)});return h(C,E),C}function SR(E,I){var C=this,N=new f(function(M,R){C.ready().then(function(){var j=C._dbInfo;j.db.transaction(function($){fi($,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[E+1],function(W,q){var J=q.rows.length?q.rows.item(0).key:null;M(J)},function(W,q){R(q)})})}).catch(R)});return h(N,I),N}function wR(E){var I=this,C=new f(function(N,M){I.ready().then(function(){var R=I._dbInfo;R.db.transaction(function(j){fi(j,R,"SELECT key FROM "+R.storeName,[],function($,W){for(var q=[],J=0;J '__WebKitDatabaseInfoTable__'",[],function(M,R){for(var j=[],$=0;$0}function kR(E){var I=this,C={};if(E)for(var N in E)C[N]=E[N];return C.keyPrefix=nb(E,I._defaultConfig),PR()?(I._dbInfo=C,C.serializer=Sd,f.resolve()):f.reject()}function IR(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 RR(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 NR(E,I){var C=this,N=C.ready().then(function(){for(var M=C._dbInfo,R=M.keyPrefix,j=R.length,$=localStorage.length,W=1,q=0;q<$;q++){var J=localStorage.key(q);if(J.indexOf(R)===0){var se=localStorage.getItem(J);if(se&&(se=M.serializer.deserialize(se)),se=E(se,J.substring(j),W++),se!==void 0)return se}}});return h(N,I),N}function LR(E,I){var C=this,N=C.ready().then(function(){var M=C._dbInfo,R;try{R=localStorage.key(E)}catch{R=null}return R&&(R=R.substring(M.keyPrefix.length)),R});return h(N,I),N}function MR(E){var I=this,C=I.ready().then(function(){for(var N=I._dbInfo,M=localStorage.length,R=[],j=0;j=0;j--){var $=localStorage.key(j);$.indexOf(R)===0&&localStorage.removeItem($)}}):M=f.reject("Invalid arguments"),h(M,I),M}var UR={_driver:"localStorageWrapper",_initStorage:kR,_support:OR(),iterate:NR,getItem:RR,setItem:jR,removeItem:DR,clear:IR,length:FR,key:LR,keys:MR,dropInstance:BR},$R=function(I,C){return I===C||typeof I=="number"&&typeof C=="number"&&isNaN(I)&&isNaN(C)},GR=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,$){try{var W=C._driver,q=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){$(q);return}for(var J=wd.concat("_initStorage"),se=0,Ce=J.length;se"u"}function k8(e){return e!==null&&!Um(e)&&e.constructor!==null&&!Um(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function I8(e){return Go.call(e)==="[object ArrayBuffer]"}function R8(e){return typeof FormData<"u"&&e instanceof FormData}function N8(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function L8(e){return typeof e=="string"}function M8(e){return typeof e=="number"}function gA(e){return e!==null&&typeof e=="object"}function Uc(e){if(Go.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function F8(e){return Go.call(e)==="[object Date]"}function D8(e){return Go.call(e)==="[object File]"}function j8(e){return Go.call(e)==="[object Blob]"}function yA(e){return Go.call(e)==="[object Function]"}function B8(e){return gA(e)&&yA(e.pipe)}function U8(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function $8(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G8(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function o0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),i0(e))for(var r=0,n=e.length;r"u"||(Yo.isArray(u)?l=l+"[]":u=[u],Yo.forEach(u,function(f){Yo.isDate(f)?f=f.toISOString():Yo.isObject(f)&&(f=JSON.stringify(f)),o.push(fS(l)+"="+fS(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},V8=Dr;function wh(){this.handlers=[]}wh.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};wh.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};wh.prototype.forEach=function(t){V8.forEach(this.handlers,function(n){n!==null&&t(n)})};var W8=wh,X8=Dr,q8=function(t,r){X8.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},xA=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},op,hS;function bA(){if(hS)return op;hS=1;var e=xA;return op=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},op}var ap,dS;function Y8(){if(dS)return ap;dS=1;var e=bA();return ap=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))},ap}var sp,pS;function K8(){if(pS)return sp;pS=1;var e=Dr;return sp=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(){}}}(),sp}var up,vS;function Z8(){return vS||(vS=1,up=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),up}var lp,mS;function Q8(){return mS||(mS=1,lp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),lp}var cp,gS;function J8(){if(gS)return cp;gS=1;var e=Z8(),t=Q8();return cp=function(n,i){return n&&!e(i)?t(n,i):i},cp}var fp,yS;function e5(){if(yS)return fp;yS=1;var e=Dr,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 fp=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},fp}var hp,_S;function t5(){if(_S)return hp;_S=1;var e=Dr;return hp=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}}(),hp}var dp,xS;function Eh(){if(xS)return dp;xS=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,dp=e,dp}var pp,bS;function SS(){if(bS)return pp;bS=1;var e=Dr,t=Y8(),r=K8(),n=_A,i=J8(),o=e5(),a=t5(),s=bA(),u=Th(),l=Eh();return pp=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)})},pp}var vp,wS;function Th(){if(wS)return vp;wS=1;var e=Dr,t=q8,r=xA,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=SS()),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)}),vp=s,vp}var r5=Dr,n5=Th(),i5=function(t,r,n){var i=this||n5;return r5.forEach(n,function(a){t=a.call(i,t,r)}),t},mp,ES;function SA(){return ES||(ES=1,mp=function(t){return!!(t&&t.__CANCEL__)}),mp}var TS=Dr,gp=i5,o5=SA(),a5=Th(),s5=Eh();function yp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s5("canceled")}var u5=function(t){yp(t),t.headers=t.headers||{},t.data=gp.call(t,t.data,t.headers,t.transformRequest),t.headers=TS.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),TS.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||a5.adapter;return r(t).then(function(i){return yp(t),i.data=gp.call(t,i.data,i.headers,t.transformResponse),i},function(i){return o5(i)||(yp(t),i&&i.response&&(i.response.data=gp.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Ar=Dr,wA=function(t,r){r=r||{};var n={};function i(c,f){return Ar.isPlainObject(c)&&Ar.isPlainObject(f)?Ar.merge(c,f):Ar.isPlainObject(f)?Ar.merge({},f):Ar.isArray(f)?f.slice():f}function o(c){if(Ar.isUndefined(r[c])){if(!Ar.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Ar.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Ar.isUndefined(r[c])){if(!Ar.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 Ar.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Ar.isUndefined(d)&&h!==u||(n[f]=d)}),n},_p,CS;function EA(){return CS||(CS=1,_p={version:"0.24.0"}),_p}var l5=EA().version,a0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var OS={};a0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+l5+"] 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&&!OS[a]&&(OS[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 c5(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 f5={assertOptions:c5,validators:a0},TA=Dr,h5=_A,AS=W8,PS=u5,Ch=wA,CA=f5,Ko=CA.validators;function El(e){this.defaults=e,this.interceptors={request:new AS,response:new AS}}El.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Ch(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&&CA.assertOptions(r,{silentJSONParsing:Ko.transitional(Ko.boolean),forcedJSONParsing:Ko.transitional(Ko.boolean),clarifyTimeoutError:Ko.transitional(Ko.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=[PS,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=PS(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};El.prototype.getUri=function(t){return t=Ch(this.defaults,t),h5(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};TA.forEach(["delete","get","head","options"],function(t){El.prototype[t]=function(r,n){return this.request(Ch(n||{},{method:t,url:r,data:(n||{}).data}))}});TA.forEach(["post","put","patch"],function(t){El.prototype[t]=function(r,n,i){return this.request(Ch(i||{},{method:t,url:r,data:n}))}});var d5=El,xp,kS;function p5(){if(kS)return xp;kS=1;var e=Eh();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 E5=w5;const T5=en(E5),ne=new T5,C5={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"}},O5={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:"鑑賞モード"}},A5={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:"鉴赏模式"}},P5={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"}},k5={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"}},I5={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 zo=(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))(zo||{});const Rf={zhCn:"中文",en:"English",jp:"日本語",fr:"Français",de:"Deutsch",zhTw:"繁體中文"},R5={en:{translation:C5},zhCn:{translation:A5},jp:{translation:O5},fr:{translation:P5},de:{translation:k5},zhTw:{translation:I5}},N5=0;var fr=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(fr||{}),Yr=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(Yr||{}),Ln=(e=>(e[e.song=0]="song",e[e.hei=1]="hei",e[e.lxgw=2]="lxgw",e))(Ln||{}),qu=(e=>(e[e.yes=0]="yes",e[e.no=1]="no",e))(qu||{});const AA={slPage:1,volumeMain:100,textSpeed:fr.normal,autoSpeed:fr.normal,textSize:Yr.medium,vocalVolume:100,bgmVolume:25,seVolume:100,uiSeVolume:50,textboxFont:Ln.song,textboxOpacity:75,language:zo.zhCn,voiceInterruption:qu.yes},Gm={saveData:[],optionData:AA,globalGameVar:{},appreciationData:{bgm:[],cg:[]},quickSaveData:null},PA=z_({name:"userData",initialState:Et(Gm),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,AA)},resetAllData(e){Object.assign(e,Et(Gm))},resetSaveData(e){e.saveData.splice(0,e.saveData.length)}}}),{setUserData:L5,resetUserData:s0,setOptionData:_t,setGlobalVar:M5,setSlPage:kA,unlockCgInUserData:IA,unlockBgmInUserData:RA,setFastSave:F5,resetOptionSet:D5,resetSaveData:j5,resetAllData:B5}=PA.actions,U5=PA.reducer,NA={backlog_size:200,fast_timeout:50},$5={textInitialDelay:80};class G5{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=B.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>NA.backlog_size;)this.getBacklog().shift()}}function z5(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 LS={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}};class H5{constructor(){le(this,"settledScenes",[]);le(this,"settledAssets",[]);le(this,"sceneData",Et(LS))}resetScene(){this.sceneData.currentSentenceId=0,this.sceneData.sceneStack=[],this.sceneData.currentScene=Et(LS.currentScene)}}class V5{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 Ue={audioContext:new AudioContext,source:null,analyser:void 0,dataArray:void 0,audioLevelInterval:setInterval(()=>{},0),blinkTimerID:setTimeout(()=>{},0),maxAudioLevel:0},W5=e=>(Ue.maxAudioLevel=Math.max(e,Ue.maxAudioLevel),{OPEN_THRESHOLD:Ue.maxAudioLevel*.75,HALF_OPEN_THRESHOLD:Ue.maxAudioLevel*.5}),X5=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),Ue.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;Ue.blinkTimerID=setTimeout(r,i)},200))}r()},q5=(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 Y5{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 Oh(e){return new Y5(e)}const K5=e=>{ne.debug("play vocal");const t="vocal-play",r=Pe(e,"vocal"),n=Pe(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&&Oh(v.key).with("left",()=>{o="left"}).with("right",()=>{o="right"}).endsWith("center",()=>{o="center"}),v.key==="figureId"&&(a=`${v.value.toString()}`);B.dispatch(Te({key:"playVocal",value:r})),B.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?B.dispatch(Te({key:"vocalVolume",value:n})):B.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(Ue.audioLevelInterval),g.pause(),a=a||`fig-${o}`;const m=u.find(y=>y.targetId===a);MS({audioLevel:0,OPEN_THRESHOLD:1,HALF_OPEN_THRESHOLD:1,currentMouthValue:c,lerpSpeed:f,key:a,animationItem:m,pos:o}),clearTimeout(Ue.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),!Ue.audioContext){let b;b=new AudioContext,Ue.analyser=b.createAnalyser(),Ue.analyser.fftSize=256,Ue.dataArray=new Uint8Array(Ue.analyser.frequencyBinCount)}Ue.analyser||(Ue.analyser=Ue.audioContext.createAnalyser(),Ue.analyser.fftSize=256),l=Ue.analyser.frequencyBinCount,Ue.dataArray=new Uint8Array(l);let _=document.getElementById("currentVocal");Ue.source||(Ue.source=Ue.audioContext.createMediaElementSource(_),Ue.source.connect(Ue.analyser)),Ue.analyser.connect(Ue.audioContext.destination),Ue.audioLevelInterval=setInterval(()=>{const b=q5(Ue.analyser,Ue.dataArray,l),{OPEN_THRESHOLD:w,HALF_OPEN_THRESHOLD:T}=W5(b);MS({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,X5({key:a,animationItem:m,pos:o,animationEndTime:x}),setTimeout(()=>{clearTimeout(Ue.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 u0(e){switch(e){case fr.slow:return 80;case fr.normal:return 35;case fr.fast:return 3}}function LA(e){switch(e){case fr.slow:return 800;case fr.normal:return 350;case fr.fast:return 200}}const MA=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.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===qu.no&&c===null||(n(Te({key:"playVocal",value:""})),O.gameplay.performController.unmountPerform("vocal-play",!0)),n(Te({key:"currentDialogKey",value:i}));const h=u0(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:Yr.small}));break;case"medium":n(Te({key:"showTextSize",value:Yr.medium}));break;case"large":n(Te({key:"showTextSize",value:Yr.large}));break}let d=t.showName;u!==null&&(d=u),l&&(d=""),n(Te({key:"showName",value:d})),c&&K5(e);const v=L0();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}},Z5={performName:"",duration:100,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0},Q5=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 Ir=(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))(Ir||{});const Rr=(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 FS=(e,t,r)=>{let n={type:oe.say,additionalArgs:[]};const i=J5(e,t,r);return n.type=i,i===oe.say&&e!=="say"&&n.additionalArgs.push({key:"speaker",value:e}),n=e6(n,i,t),n};function J5(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 e6(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 FA(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 t6=(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 r6(e,r);case oe.unlockBgm:return r(e,St.bgm);case oe.unlockCg:return r(e,St.background);default:return e}};function r6(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},i6=(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},o6=(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=FS(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=FS(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 FA(v,t))s.push(g)}return o=t6(f,i,t),u=n6(i,o,s),a=i6(i,o),{command:i,commandRaw:c,content:o,args:s,sentenceAssets:u,subScene:a}};var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a6=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl,s6=a6,u6=s6,l6=typeof self=="object"&&self&&self.Object===Object&&self,c6=u6||l6||Function("return this")(),Ah=c6,f6=Ah,h6=f6.Symbol,DA=h6,DS=DA,jA=Object.prototype,d6=jA.hasOwnProperty,p6=jA.toString,Gs=DS?DS.toStringTag:void 0;function v6(e){var t=d6.call(e,Gs),r=e[Gs];try{e[Gs]=void 0;var n=!0}catch{}var i=p6.call(e);return n&&(t?e[Gs]=r:delete e[Gs]),i}var m6=v6,g6=Object.prototype,y6=g6.toString;function _6(e){return y6.call(e)}var x6=_6,jS=DA,b6=m6,S6=x6,w6="[object Null]",E6="[object Undefined]",BS=jS?jS.toStringTag:void 0;function T6(e){return e==null?e===void 0?E6:w6:BS&&BS in Object(e)?b6(e):S6(e)}var C6=T6;function O6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var BA=O6,A6=C6,P6=BA,k6="[object AsyncFunction]",I6="[object Function]",R6="[object GeneratorFunction]",N6="[object Proxy]";function L6(e){if(!P6(e))return!1;var t=A6(e);return t==I6||t==R6||t==k6||t==N6}var M6=L6,F6=Ah,D6=F6["__core-js_shared__"],j6=D6,wp=j6,US=function(){var e=/[^.]+$/.exec(wp&&wp.keys&&wp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function B6(e){return!!US&&US in e}var U6=B6,$6=Function.prototype,G6=$6.toString;function z6(e){if(e!=null){try{return G6.call(e)}catch{}try{return e+""}catch{}}return""}var H6=z6,V6=M6,W6=U6,X6=BA,q6=H6,Y6=/[\\^$.*+?()[\]{}|]/g,K6=/^\[object .+?Constructor\]$/,Z6=Function.prototype,Q6=Object.prototype,J6=Z6.toString,eG=Q6.hasOwnProperty,tG=RegExp("^"+J6.call(eG).replace(Y6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rG(e){if(!X6(e)||W6(e))return!1;var t=V6(e)?tG:K6;return t.test(q6(e))}var nG=rG;function iG(e,t){return e==null?void 0:e[t]}var oG=iG,aG=nG,sG=oG;function uG(e,t){var r=sG(e,t);return aG(r)?r:void 0}var l0=uG,lG=l0,cG=lG(Object,"create"),Ph=cG,$S=Ph;function fG(){this.__data__=$S?$S(null):{},this.size=0}var hG=fG;function dG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pG=dG,vG=Ph,mG="__lodash_hash_undefined__",gG=Object.prototype,yG=gG.hasOwnProperty;function _G(e){var t=this.__data__;if(vG){var r=t[e];return r===mG?void 0:r}return yG.call(t,e)?t[e]:void 0}var xG=_G,bG=Ph,SG=Object.prototype,wG=SG.hasOwnProperty;function EG(e){var t=this.__data__;return bG?t[e]!==void 0:wG.call(t,e)}var TG=EG,CG=Ph,OG="__lodash_hash_undefined__";function AG(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=CG&&t===void 0?OG:t,this}var PG=AG,kG=hG,IG=pG,RG=xG,NG=TG,LG=PG;function hs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var QG=ZG,JG=kh;function ez(e,t){var r=this.__data__,n=JG(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var tz=ez,rz=DG,nz=WG,iz=YG,oz=QG,az=tz;function ds(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var aH=oH;function sH(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=PH){var l=t?null:OH(e);if(l)return AH(l);a=!1,i=CH,u=new wH}else u=t?[]:s;e:for(;++n{const u=e.split(`
-`);let l=[],c=[];const f=u.map(h=>{const d=o6(h,i,o,a);return l=[...l,...d.sentenceAssets],c=[...c,...d.subScene],d});return l=LH(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 FH(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 FA(a,(u,l)=>u))t.push(s)}return{command:r,args:n.split("|").map(a=>a.trim()).filter(a=>a!==""),options:t}}function DH(e){return e.replaceAll("\r","").split(`
-`).map(r=>FH(r)).filter(r=>r.command!=="")}class jH{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 MH(t,r,n,this.assetsPrefetcher,this.assetSetter,this.ADD_NEXT_ARG_LIST,this.SCRIPT_CONFIG)}parseConfig(t){return DH(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 BH="_FullScreenPerform_main_7er8a_2",UH="_FullScreenPerform_element_7er8a_9",$H="_fullScreen_video_7er8a_17",GH="_fadeIn_7er8a_74",zH="_intro_showSoftly_7er8a_1",HH="_slideIn_7er8a_80",VH="_typingEffect_7er8a_86",WH="_typing_7er8a_86",XH="_blinkCursor_7er8a_1",qH="_pixelateEffect_7er8a_95",YH="_pixelateAnimation_7er8a_1",KH="_revealAnimation_7er8a_101",ZH="_videoContainer_7er8a_115",wn={FullScreenPerform_main:BH,FullScreenPerform_element:UH,fullScreen_video:$H,fadeIn:GH,intro_showSoftly:zH,slideIn:HH,typingEffect:VH,typing:WH,blinkCursor:XH,pixelateEffect:qH,pixelateAnimation:YH,revealAnimation:KH,videoContainer:ZH},QH=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($t,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 Yu(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 $A(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 GA(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 c0={alpha:1,scale:{x:1,y:1},position:{x:0,y:0},rotation:0,blur:0};function zA(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),Tp=.001,e9=.01,HS=10,t9=.05,r9=1;function n9({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;JH(e<=HS*1e3);let a=1-t;a=zm(t9,r9,a),e=zm(e9,HS,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,h=c-r,d=Hm(l,a),v=Math.exp(-f);return Tp-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=Hm(Math.pow(l,2),a);return(-i(l)+Tp>0?-1:1)*((h-d)*v)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Tp+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=o9(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 i9=12;function o9(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function u9(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!VS(e,s9)&&VS(e,a9)){const r=n9(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function f0(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=zA(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=u9(o),d=WS,v=WS;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=Hm(_,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()}}}f0.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const WS=e=>0,HA=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},h0=(e,t,r)=>-r*e+r*t+e,VA=(e,t)=>r=>Math.max(Math.min(r,t),e),xu=e=>e%1?Number(e.toFixed(5)):e,Lf=/(-)?([\d]*\.?[\d])+/g,Vm=/(#[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,l9=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Tl(e){return typeof e=="string"}const Rh={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},WA=Object.assign(Object.assign({},Rh),{transform:VA(0,1)});Object.assign(Object.assign({},Rh),{default:1});const c9=e=>({test:t=>Tl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bu=c9("%");Object.assign(Object.assign({},bu),{parse:e=>bu.parse(e)/100,transform:e=>bu.transform(e*100)});const d0=(e,t)=>r=>!!(Tl(r)&&l9.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),XA=(e,t,r)=>n=>{if(!Tl(n))return n;const[i,o,a,s]=n.match(Lf);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},bo={test:d0("hsl","hue"),parse:XA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bu.transform(xu(t))+", "+bu.transform(xu(r))+", "+xu(WA.transform(n))+")"},f9=VA(0,255),Cp=Object.assign(Object.assign({},Rh),{transform:e=>Math.round(f9(e))}),bi={test:d0("rgb","red"),parse:XA("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Cp.transform(e)+", "+Cp.transform(t)+", "+Cp.transform(r)+", "+xu(WA.transform(n))+")"};function h9(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 Wm={test:d0("#"),parse:h9,transform:bi.transform},Nh={test:e=>bi.test(e)||Wm.test(e)||bo.test(e),parse:e=>bi.test(e)?bi.parse(e):bo.test(e)?bo.parse(e):Wm.parse(e),transform:e=>Tl(e)?e:e.hasOwnProperty("red")?bi.transform(e):bo.transform(e)},qA="${c}",YA="${n}";function d9(e){var t,r,n,i;return isNaN(e)&&Tl(e)&&((r=(t=e.match(Lf))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Vm))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function KA(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Vm);n&&(r=n.length,e=e.replace(Vm,qA),t.push(...n.map(Nh.parse)));const i=e.match(Lf);return i&&(e=e.replace(Lf,YA),t.push(...i.map(Rh.parse))),{values:t,numColors:r,tokenised:e}}function ZA(e){return KA(e).values}function QA(e){const{values:t,numColors:r,tokenised:n}=KA(e),i=t.length;return o=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function v9(e){const t=ZA(e);return QA(e)(t.map(p9))}const JA={test:d9,parse:ZA,createTransformer:QA,getAnimatableNone:v9};function Op(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 XS({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=Op(u,s,e+1/3),o=Op(u,s,e),a=Op(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const m9=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},g9=[Wm,bi,bo],qS=e=>g9.find(t=>t.test(e)),eP=(e,t)=>{let r=qS(e),n=qS(t),i=r.parse(e),o=n.parse(t);r===bo&&(i=XS(i),r=bi),n===bo&&(o=XS(o),n=bi);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=m9(i[u],o[u],s));return a.alpha=h0(i.alpha,o.alpha,s),r.transform(a)}},y9=e=>typeof e=="number",_9=(e,t)=>r=>t(e(r)),tP=(...e)=>e.reduce(_9);function rP(e,t){return y9(e)?r=>h0(e,t,r):Nh.test(e)?eP(e,t):iP(e,t)}const nP=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>rP(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]=rP(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function YS(e){const t=JA.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a{const r=JA.createTransformer(t),n=YS(e),i=YS(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?tP(nP(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},b9=(e,t)=>r=>h0(e,t,r);function S9(e){if(typeof e=="number")return b9;if(typeof e=="string")return Nh.test(e)?eP:iP;if(Array.isArray(e))return nP;if(typeof e=="object")return x9}function w9(e,t,r){const n=[],i=r||S9(e[0]),o=e.length-1;for(let a=0;ar(HA(e,t,n))}function T9(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=HA(e[o],e[o+1],i);return t[o](s)}}function oP(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;zS(o===t.length),zS(!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=w9(t,n,i),s=o===2?E9(e,a):T9(e,a);return r?u=>s(zm(e[0],e[o-1],u)):s}const C9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,O9=e=>t=>Math.pow(t,e),A9=e=>t=>t*t*((e+1)*t-e),P9=e=>{const t=A9(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},k9=1.525,I9=O9(2),R9=C9(I9);P9(k9);function N9(e,t){return e.map(()=>t||R9).splice(0,e.length-1)}function L9(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function M9(e,t){return e.map(r=>r*t)}function Gc({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=M9(n&&n.length===a.length?n:L9(a),i);function u(){return oP(s,a,{ease:Array.isArray(r)?r:N9(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function F9({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 KS={keyframes:Gc,spring:f0,decay:F9};function D9(e){if(Array.isArray(e.to))return Gc;if(KS[e.type])return KS[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Gc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?f0:Gc}const aP=1/60*1e3,j9=typeof performance<"u"?()=>performance.now():()=>Date.now(),sP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(j9()),aP);function B9(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]=B9(()=>Ku=!0),e),{}),$9=Cl.reduce((e,t)=>{const r=Lh[t];return e[t]=(n,i=!1,o=!1)=>(Ku||H9(),r.schedule(n,i,o)),e},{}),G9=Cl.reduce((e,t)=>(e[t]=Lh[t].cancel,e),{});Cl.reduce((e,t)=>(e[t]=()=>Lh[t].process(Su),e),{});const z9=e=>Lh[e].process(Su),uP=e=>{Ku=!1,Su.delta=Xm?aP:Math.max(Math.min(e-Su.timestamp,U9),1),Su.timestamp=e,qm=!0,Cl.forEach(z9),qm=!1,Ku&&(Xm=!1,sP(uP))},H9=()=>{Ku=!0,Xm=!0,qm||sP(uP)},V9=$9;function lP(e,t,r=0){return e-t-r}function W9(e,t,r=0,n=!0){return n?lP(t+-e,t,r):t-(e-t)+r}function X9(e,t,r,n){return n?e>=t+r:e<=-r}const q9=e=>{const t=({delta:r})=>e(r);return{start:()=>V9.update(t,!0),stop:()=>G9.update(t)}};function Y9(e){var t,r,{from:n,autoplay:i=!0,driver:o=q9,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:h,onRepeat:d,onUpdate:v}=e,g=zA(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=D9(g);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,p)&&(T=oP([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=W9(a,_,l,w)):(a=lP(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 cP(e,t,r){const n=O.gameplay.pixiStage.getStageObjByKey(t);let i=0;const o=[],a=[];for(const m of e){const y=m.duration;i+=y;const{position:_,scale:x,...b}=m;o.push({x:_.x,y:_.y,scaleX:x.x,scaleY:x.y,...b}),r!==0?a.push(i/r):a.push(0)}const s=n==null?void 0:n.pixiContainer;let u=null;r>0&&(u=Y9({to:o,offset:a,duration:r,onUpdate:m=>{if(s){const{scaleX:y,scaleY:_,...x}=m;Object.assign(s,x),s.scale.x=y,s.scale.y=_}}}));const{duration:l,...c}=g();B.dispatch(kr.updateEffect({target:t,transform:c}));function f(){if(n!=null&&n.pixiContainer){const{position:m,...y}=v();Object.assign(n==null?void 0:n.pixiContainer,{x:m.x,y:m.y,...y})}}function h(){if(u&&u.stop(),u=null,n!=null&&n.pixiContainer){const{position:m,...y}=g();Object.assign(n==null?void 0:n.pixiContainer,{x:m.x,y:m.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 Mf(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=Et({...(a==null?void 0:a.transform)??c0,duration:0});return Object.assign(s,o),s.duration=o.duration,s});return ne.debug("装载自定义动画",i),cP(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 gi(e,t,r=!1){if(t==="enter"){let n=500;r&&(n=1500);let i=$A(e,n);const o=O.animationManager.nextEnterAnimationName.get(e);return o&&(ne.debug("取代默认进入动画",e),i=Mf(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=GA(e,n);const o=O.animationManager.nextExitAnimationName.get(e);return o&&(ne.debug("取代默认退出动画",e),i=Mf(o,e,xr(o)),n=xr(o),O.animationManager.nextExitAnimationName.delete(e)),{duration:n,animation:i}}}const K9=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(IA({name:r,url:t,series:n})),i(kr.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=Yu("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=Yu("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 Z9(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=Rr(u,Ir.figure);break;case"mouthClose":l=b.value.toString(),l=Rr(l,Ir.figure);break;case"mouthHalfOpen":c=b.value.toString(),c=Rr(c,Ir.figure);break;case"eyesOpen":f=b.value.toString(),f=Rr(f,Ir.figure);break;case"eyesClose":h=b.value.toString(),h=Rr(h,Ir.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(Te({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(kr.removeEffectByTargetId(b)),B.dispatch(kr.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=Yu(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=Yu(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){B.getState().stage.freeFigure;const b={key:a,name:r,basePosition:t};x(a,e),i&&v(kr.setLive2dMotion({target:a,motion:i})),o&&v(kr.setLive2dExpression({target:a,expression:o})),v(kr.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(kr.setLive2dMotion({target:a,motion:i})),o&&v(kr.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 Q9=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),B.dispatch(Te({key:"miniAvatar",value:t})),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};var p0={exports:{}},fP=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function eV(e){return e!==null&&!Ym(e)&&e.constructor!==null&&!Ym(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function hP(e){return Ji.call(e)==="[object ArrayBuffer]"}function tV(e){return Ji.call(e)==="[object FormData]"}function rV(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hP(e.buffer),t}function nV(e){return typeof e=="string"}function iV(e){return typeof e=="number"}function dP(e){return e!==null&&typeof e=="object"}function zc(e){if(Ji.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function oV(e){return Ji.call(e)==="[object Date]"}function aV(e){return Ji.call(e)==="[object File]"}function sV(e){return Ji.call(e)==="[object Blob]"}function pP(e){return Ji.call(e)==="[object Function]"}function uV(e){return dP(e)&&pP(e.pipe)}function lV(e){return Ji.call(e)==="[object URLSearchParams]"}function cV(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function fV(){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]),v0(e))for(var r=0,n=e.length;r"u"||(Zo.isArray(u)?l=l+"[]":u=[u],Zo.forEach(u,function(f){Zo.isDate(f)?f=f.toISOString():Zo.isObject(f)&&(f=JSON.stringify(f)),o.push(ZS(l)+"="+ZS(f))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},pV=Or;function Mh(){this.handlers=[]}Mh.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};Mh.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Mh.prototype.forEach=function(t){pV.forEach(this.handlers,function(n){n!==null&&t(n)})};var vV=Mh,mV=Or,gV=function(t,r){mV.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})},mP=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},gP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ap,QS;function yP(){if(QS)return Ap;QS=1;var e=mP;return Ap=function(r,n,i,o,a){var s=new Error(r);return e(s,n,i,o,a)},Ap}var Pp,JS;function yV(){if(JS)return Pp;JS=1;var e=yP();return Pp=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))},Pp}var kp,ew;function _V(){if(ew)return kp;ew=1;var e=Or;return kp=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(){}}}(),kp}var Ip,tw;function xV(){return tw||(tw=1,Ip=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Ip}var Rp,rw;function bV(){return rw||(rw=1,Rp=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Rp}var Np,nw;function SV(){if(nw)return Np;nw=1;var e=xV(),t=bV();return Np=function(n,i){return n&&!e(i)?t(n,i):i},Np}var Lp,iw;function wV(){if(iw)return Lp;iw=1;var e=Or,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 Lp=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},Lp}var Mp,ow;function EV(){if(ow)return Mp;ow=1;var e=Or;return Mp=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}}(),Mp}var Fp,aw;function Fh(){if(aw)return Fp;aw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Fp=e,Fp}var Dp,sw;function uw(){if(sw)return Dp;sw=1;var e=Or,t=yV(),r=_V(),n=vP,i=SV(),o=wV(),a=EV(),s=yP(),u=gP,l=Fh();return Dp=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)})},Dp}var Wt=Or,lw=gV,TV=mP,CV=gP,OV={"Content-Type":"application/x-www-form-urlencoded"};function cw(e,t){!Wt.isUndefined(e)&&Wt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function AV(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=uw()),e}function PV(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 Dh={transitional:CV,adapter:AV(),transformRequest:[function(t,r){return lw(r,"Accept"),lw(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)?(cw(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Wt.isObject(t)||r&&r["Content-Type"]==="application/json"?(cw(r,"application/json"),PV(t)):t}],transformResponse:[function(t){var r=this.transitional||Dh.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"?TV(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){Dh.headers[t]={}});Wt.forEach(["post","put","patch"],function(t){Dh.headers[t]=Wt.merge(OV)});var g0=Dh,kV=Or,IV=g0,RV=function(t,r,n){var i=this||IV;return kV.forEach(n,function(a){t=a.call(i,t,r)}),t},jp,fw;function _P(){return fw||(fw=1,jp=function(t){return!!(t&&t.__CANCEL__)}),jp}var hw=Or,Bp=RV,NV=_P(),LV=g0,MV=Fh();function Up(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new MV("canceled")}var FV=function(t){Up(t),t.headers=t.headers||{},t.data=Bp.call(t,t.data,t.headers,t.transformRequest),t.headers=hw.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),hw.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||LV.adapter;return r(t).then(function(i){return Up(t),i.data=Bp.call(t,i.data,i.headers,t.transformResponse),i},function(i){return NV(i)||(Up(t),i&&i.response&&(i.response.data=Bp.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Pr=Or,xP=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},$p,dw;function bP(){return dw||(dw=1,$p={version:"0.26.1"}),$p}var DV=bP().version,y0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){y0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var pw={};y0.transitional=function(t,r,n){function i(o,a){return"[Axios v"+DV+"] 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&&!pw[a]&&(pw[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 jV(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 BV={assertOptions:jV,validators:y0},SP=Or,UV=vP,vw=vV,mw=FV,jh=xP,wP=BV,Qo=wP.validators;function Ol(e){this.defaults=e,this.interceptors={request:new vw,response:new vw}}Ol.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=jh(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&&wP.assertOptions(n,{silentJSONParsing:Qo.transitional(Qo.boolean),forcedJSONParsing:Qo.transitional(Qo.boolean),clarifyTimeoutError:Qo.transitional(Qo.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=[mw,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=mw(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Ol.prototype.getUri=function(t){return t=jh(this.defaults,t),UV(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};SP.forEach(["delete","get","head","options"],function(t){Ol.prototype[t]=function(r,n){return this.request(jh(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(jh(i||{},{method:t,url:r,data:n}))}});var $V=Ol,Gp,gw;function GV(){if(gw)return Gp;gw=1;var e=Fh();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=>{Ff.get(e).then(r=>{const n=r.data.toString();t(n)})});var KV="__lodash_hash_undefined__";function ZV(e){return this.__data__.set(e,KV),this}var QV=ZV;function JV(e){return this.__data__.has(e)}var eW=JV,tW=qO,rW=QV,nW=eW;function Df(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new tW;++t-1}var yW=gW;function _W(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=DW){var l=t?null:MW(e);if(l)return FW(l);a=!1,i=LW,u=new IW}else u=t?[]:s;e:for(;++n{for(const t of e)O.sceneManager.settledScenes.includes(t)?ne.warn(`场景${t}已经加载过,无需再次加载`):(ne.info(`现在预加载场景${t}`),Hn(t).then(r=>{Vn(r,t,t)}))},CP=(e,t)=>{Hn(e).then(r=>{O.sceneManager.sceneData.currentScene=Vn(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Al(n);Pl(i),ne.debug("现在切换场景,切换后的结果:",O.sceneManager.sceneData),$t()})},bw=e=>{const t=e.content.split("/"),r=t[t.length-1];return CP(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},OP=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($t,1)},zW="_Choose_Main_cegqk_1",HW="_Choose_item_cegqk_13",VW="_Choose_item_disabled_cegqk_29",Wp={Choose_Main:zW,Choose_item:HW,Choose_item_disabled:VW},WW=""+new URL("page-flip-1-7df32409.mp3",import.meta.url).href,XW=""+new URL("switch-1-99b576bc.mp3",import.meta.url).href,AP="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=",qW=""+new URL("dialog-d5b91235.mp3",import.meta.url).href,PP="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 kP={exports:{}},IP={};/**
+*/(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={};/**
* @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 Ga=U;function YW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var KW=typeof Object.is=="function"?Object.is:YW,ZW=Ga.useState,QW=Ga.useEffect,JW=Ga.useLayoutEffect,e7=Ga.useDebugValue;function t7(e,t){var r=t(),n=ZW({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return JW(function(){i.value=r,i.getSnapshot=t,Xp(i)&&o({inst:i})},[e,r,t]),QW(function(){return Xp(i)&&o({inst:i}),e(function(){Xp(i)&&o({inst:i})})},[e]),e7(r),r}function Xp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!KW(e,r)}catch{return!0}}function r7(e,t){return t()}var n7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r7:t7;IP.useSyncExternalStore=Ga.useSyncExternalStore!==void 0?Ga.useSyncExternalStore:n7;kP.exports=IP;var i7=kP.exports,RP={exports:{}},NP={};/**
+ */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={};/**
* @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 Bh=U,o7=i7;function a7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var s7=typeof Object.is=="function"?Object.is:a7,u7=o7.useSyncExternalStore,l7=Bh.useRef,c7=Bh.useEffect,f7=Bh.useMemo,h7=Bh.useDebugValue;NP.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=l7(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=f7(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,s7(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=u7(e,o[0],o[1]);return c7(function(){a.hasValue=!0,a.value=s},[s]),h7(s),s};RP.exports=NP;var d7=RP.exports;function p7(e){e()}let LP=p7;const v7=e=>LP=e,m7=()=>LP,Sw=Symbol.for("react-redux-context"),ww=typeof globalThis<"u"?globalThis:{};function g7(){var e;if(!U.createContext)return{};const t=(e=ww[Sw])!=null?e:ww[Sw]=new Map;let r=t.get(U.createContext);return r||(r=U.createContext(null),t.set(U.createContext,r)),r}const Vi=g7();function _0(e=Vi){return function(){return U.useContext(e)}}const MP=_0(),y7=()=>{throw new Error("uSES not initialized!")};let FP=y7;const _7=e=>{FP=e},x7=(e,t)=>e===t;function b7(e=Vi){const t=e===Vi?MP:_0(e);return function(n,i={}){const{equalityFn:o=x7,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();U.useRef(!0);const d=U.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a]),v=FP(l.addNestedSub,u.getState,c||u.getState,d,o);return U.useDebugValue(v),v}}const Se=b7();function S7(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 DP={exports:{}},We={};/** @license React v16.13.1
+ */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
* 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 Ut=typeof Symbol=="function"&&Symbol.for,x0=Ut?Symbol.for("react.element"):60103,b0=Ut?Symbol.for("react.portal"):60106,Uh=Ut?Symbol.for("react.fragment"):60107,$h=Ut?Symbol.for("react.strict_mode"):60108,Gh=Ut?Symbol.for("react.profiler"):60114,zh=Ut?Symbol.for("react.provider"):60109,Hh=Ut?Symbol.for("react.context"):60110,S0=Ut?Symbol.for("react.async_mode"):60111,Vh=Ut?Symbol.for("react.concurrent_mode"):60111,Wh=Ut?Symbol.for("react.forward_ref"):60112,Xh=Ut?Symbol.for("react.suspense"):60113,w7=Ut?Symbol.for("react.suspense_list"):60120,qh=Ut?Symbol.for("react.memo"):60115,Yh=Ut?Symbol.for("react.lazy"):60116,E7=Ut?Symbol.for("react.block"):60121,T7=Ut?Symbol.for("react.fundamental"):60117,C7=Ut?Symbol.for("react.responder"):60118,O7=Ut?Symbol.for("react.scope"):60119;function jr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case x0:switch(e=e.type,e){case S0:case Vh:case Uh:case Gh:case $h:case Xh:return e;default:switch(e=e&&e.$$typeof,e){case Hh:case Wh:case Yh:case qh:case zh:return e;default:return t}}case b0:return t}}}function jP(e){return jr(e)===Vh}We.AsyncMode=S0;We.ConcurrentMode=Vh;We.ContextConsumer=Hh;We.ContextProvider=zh;We.Element=x0;We.ForwardRef=Wh;We.Fragment=Uh;We.Lazy=Yh;We.Memo=qh;We.Portal=b0;We.Profiler=Gh;We.StrictMode=$h;We.Suspense=Xh;We.isAsyncMode=function(e){return jP(e)||jr(e)===S0};We.isConcurrentMode=jP;We.isContextConsumer=function(e){return jr(e)===Hh};We.isContextProvider=function(e){return jr(e)===zh};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===x0};We.isForwardRef=function(e){return jr(e)===Wh};We.isFragment=function(e){return jr(e)===Uh};We.isLazy=function(e){return jr(e)===Yh};We.isMemo=function(e){return jr(e)===qh};We.isPortal=function(e){return jr(e)===b0};We.isProfiler=function(e){return jr(e)===Gh};We.isStrictMode=function(e){return jr(e)===$h};We.isSuspense=function(e){return jr(e)===Xh};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uh||e===Vh||e===Gh||e===$h||e===Xh||e===w7||typeof e=="object"&&e!==null&&(e.$$typeof===Yh||e.$$typeof===qh||e.$$typeof===zh||e.$$typeof===Hh||e.$$typeof===Wh||e.$$typeof===T7||e.$$typeof===C7||e.$$typeof===O7||e.$$typeof===E7)};We.typeOf=jr;DP.exports=We;var A7=DP.exports,BP=A7,P7={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k7={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},UP={};UP[BP.ForwardRef]=P7;UP[BP.Memo]=k7;var qe={};/**
+ */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={};/**
* @license React
* react-is.production.min.js
*
@@ -79,60 +79,60 @@ 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 w0=Symbol.for("react.element"),E0=Symbol.for("react.portal"),Kh=Symbol.for("react.fragment"),Zh=Symbol.for("react.strict_mode"),Qh=Symbol.for("react.profiler"),Jh=Symbol.for("react.provider"),ed=Symbol.for("react.context"),I7=Symbol.for("react.server_context"),td=Symbol.for("react.forward_ref"),rd=Symbol.for("react.suspense"),nd=Symbol.for("react.suspense_list"),id=Symbol.for("react.memo"),od=Symbol.for("react.lazy"),R7=Symbol.for("react.offscreen"),$P;$P=Symbol.for("react.module.reference");function rn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case w0:switch(e=e.type,e){case Kh:case Qh:case Zh:case rd:case nd:return e;default:switch(e=e&&e.$$typeof,e){case I7:case ed:case td:case od:case id:case Jh:return e;default:return t}}case E0:return t}}}qe.ContextConsumer=ed;qe.ContextProvider=Jh;qe.Element=w0;qe.ForwardRef=td;qe.Fragment=Kh;qe.Lazy=od;qe.Memo=id;qe.Portal=E0;qe.Profiler=Qh;qe.StrictMode=Zh;qe.Suspense=rd;qe.SuspenseList=nd;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return rn(e)===ed};qe.isContextProvider=function(e){return rn(e)===Jh};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===w0};qe.isForwardRef=function(e){return rn(e)===td};qe.isFragment=function(e){return rn(e)===Kh};qe.isLazy=function(e){return rn(e)===od};qe.isMemo=function(e){return rn(e)===id};qe.isPortal=function(e){return rn(e)===E0};qe.isProfiler=function(e){return rn(e)===Qh};qe.isStrictMode=function(e){return rn(e)===Zh};qe.isSuspense=function(e){return rn(e)===rd};qe.isSuspenseList=function(e){return rn(e)===nd};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kh||e===Qh||e===Zh||e===rd||e===nd||e===R7||typeof e=="object"&&e!==null&&(e.$$typeof===od||e.$$typeof===id||e.$$typeof===Jh||e.$$typeof===ed||e.$$typeof===td||e.$$typeof===$P||e.getModuleId!==void 0)};qe.typeOf=rn;function N7(){const e=m7();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 Ew={notify(){},get:()=>[]};function L7(e,t){let r,n=Ew,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=N7())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Ew)}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 M7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F7=M7?U.useLayoutEffect:U.useEffect;function D7({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){const a=U.useMemo(()=>{const l=L7(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),s=U.useMemo(()=>e.getState(),[e]);F7(()=>{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||Vi;return U.createElement(u.Provider,{value:a},r)}function GP(e=Vi){const t=e===Vi?MP:_0(e);return function(){const{store:n}=t();return n}}const j7=GP();function B7(e=Vi){const t=e===Vi?j7:GP(e);return function(){return t().dispatch}}const or=B7();_7(d7.useSyncExternalStoreWithSelector);v7(kO.unstable_batchedUpdates);const vr=()=>{const e=or();return{playSeEnter:()=>{e(Te({key:"uiSe",value:AP}))},playSeClick:()=>{e(Te({key:"uiSe",value:PP}))},playSePageChange:()=>{e(Te({key:"uiSe",value:WW}))},playSeDialogOpen:()=>{e(Te({key:"uiSe",value:qW}))},playSeSwitch:()=>{e(Te({key:"uiSe",value:XW}))}}},T0=()=>({playSeEnter:()=>{B.dispatch(Te({key:"uiSe",value:AP}))},playSeClick:()=>{B.dispatch(Te({key:"uiSe",value:PP}))}});class C0{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 C0(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 U7=e=>{const r=e.content.split("|").map(u=>C0.parse(u)),i=B.getState().userData.optionData.textboxFont===Ln.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:o,playSeClick:a}=T0(),s=u=>u.filter((l,c)=>Jm(l.showCondition)).map((l,c)=>{const f=Jm(l.enableCondition),h=f?Wp.Choose_item:Wp.Choose_item_disabled,d=f?()=>{a(),l.jumpToScene?CP(l.jump,l.text):OP(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:Wp.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}},O0=(e,t=!0)=>{e&&O.backlogManager.makeBacklogEmpty(),t&&O.sceneManager.resetScene(),O.gameplay.performController.removeAllPerform(),O.gameplay.resetGamePlay();const r=Et(dA),n=B.getState().stage.GameVar;B.dispatch(Sh(r)),t||B.dispatch(Te({key:"GameVar",value:n}))},$7=e=>{O0(!0);const t=B.dispatch,r=Rr("start.txt",Ir.scene);return Hn(r).then(n=>{O.sceneManager.sceneData.currentScene=Vn(n,"start.txt",r)}),t(Me({component:"showTitle",visibility:!0})),M0(B.getState().GUI.titleBgm),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},G7=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!==""&&B.dispatch(RA({name:r,url:t,series:n})),M0(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}},z7=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=L0();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),$t())},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 H7(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 V7=[{name:"universalSoftIn",animationGenerateFunc:$A},{name:"universalSoftOff",animationGenerateFunc:GA},{name:"testblur",animationGenerateFunc:H7}],W7=e=>{var s,u;B.getState().stage.currentDialogKey;const t=e.content,r=Pe(e,"duration")??0,n=Pe(e,"target")??0,i=`${n}-${t}-${r}`,o=X7(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 X7(e){const t=V7.find(r=>r.name===e);return ne.debug("装载动画",t),t?t.animationGenerateFunc:null}const q7=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),Y7=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}),K7="modulepreload",Z7=function(e,t){return new URL(e,t).href},Tw={},Q7=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=Z7(o,n),o in Tw)return;Tw[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":K7,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})},zP=new Map;function J7(e){return e?typeof e=="string"?e:e():null}function HP(e){const t=J7(e);return t||(ne.error("Get name of perform failed. There no name of the perform."),"")}function Whe(e,t){if(!t||typeof t!="function")throw new Error(`"${e}" is not a callback.`);zP.set(HP(e),t)}function eX(e,t=[]){const r=zP.get(HP(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)}Q7(()=>import("./initRegister-5028c2d0.js"),[],import.meta.url);const tX=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=eX(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}},rX=e=>({performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),nX=e=>(OP(e.content),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0});var A0={},Zu={document:{}},VP=Object.prototype.hasOwnProperty,WP=function(e){return ad(e)?e.toLowerCase():e},wu=Array.isArray,iX=function(e){return ad(e)?e.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):e};"I".toLowerCase()!=="i"&&(WP=iX);var oX,P0=Object.prototype.toString,XP=Object.getPrototypeOf,qp=QP("ng");Zu.angular||(Zu.angular={});Zu.document.documentMode;function aX(e){if(e==null||R0(e))return!1;if(wu(e)||ad(e)||oX)return!0;var t="length"in Object(e)&&e.length;return I0(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(KP(e))for(n in e)n!=="prototype"&&n!=="length"&&n!=="name"&&e.hasOwnProperty(n)&&t.call(r,e[n],n,e);else if(wu(e)||aX(e)){var o=typeof e!="object";for(n=0,i=e.length;n"u"}function ga(e){return typeof e<"u"}function qP(e){return e!==null&&typeof e=="object"}function YP(e){return e!==null&&typeof e=="object"&&!XP(e)}function ad(e){return typeof e=="string"}function I0(e){return typeof e=="number"}function KP(e){return typeof e=="function"}function R0(e){return e&&e.window===e}function ZP(e){return e&&e.$evalAsync&&e.$watch}var lX=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;function cX(e){return e&&I0(e.length)&&lX.test(P0.call(e))}function fX(e){return P0.call(e)==="[object ArrayBuffer]"}function hX(e,t){var r=[],n=[];if(t){if(cX(t)||fX(t))throw qp("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw qp("cpi","Can't copy! Source and destination are identical.");return wu(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(wu(s))for(var f=0,h=s.length;f=0)return"...";t.push(n)}return n})}function Cw(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):uX(e)?"undefined":typeof e!="string"?mX(e):e}function QP(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){Vc[e]=!0});var gX={n:`
-`,f:"\f",r:"\r",t:" ",v:"\v","'":"'",'"':'"'},Zm=function(t){this.options=t};Zm.prototype={constructor:Zm,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=ga(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,r)+"]":" "+r;throw ya("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(!r2(e))throw ya("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=hX(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 ya("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 ya("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 ya("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 yX(e,t){return typeof e<"u"?e:t}function e2(e,t){return typeof e>"u"?t:typeof t>"u"?e:e+t}function _X(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?_X(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 t2(e){if(e.length===1){var t=e[0].expression,r=t.toWatch;return r.length!==1||r[0]!==t?r:void 0}}function r2(e){return e.type===G.Identifier||e.type===G.MemberExpression}function n2(e){if(e.body.length===1&&r2(e.body[0].expression))return{type:G.AssignmentExpression,left:e.body[0].expression,right:{type:G.NGValueParameter},operator:"="}}function i2(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 o2(e){return e.constant}function a2(e,t){this.astBuilder=e,this.$filter=t}a2.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=n2(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=t2(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,JP,yX,e2);return this.state=this.stage=void 0,u.ast=r,u.literal=i2(r),u.constant=o2(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||k0,!o&&ga(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(ad(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(I0(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 ya("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 s2(e,t){this.astBuilder=e,this.$filter=t}s2.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);Rt(r,t.$filter);var n,i;(n=n2(r))&&(i=this.recurse(n));var o=t2(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?k0: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=i2(r),u.constant=o2(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=JP(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 Qm=function(t,r,n){this.lexer=t,this.$filter=r,this.options=n,this.ast=new G(t,n),this.astCompiler=n.csp?new s2(this.ast,r):new a2(this.ast,r)};Qm.prototype={constructor:Qm,parse:function(e){return this.astCompiler.compile(e)}};A0.Lexer=Zm;A0.Parser=Qm;var u2=A0,xX={},bX=u2.Lexer,SX=u2.Parser;function Eu(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 bX(t),o=new SX(i,function(s){return xX[s]},n);return Eu.cache?(r=Eu.cache[e],r||(r=Eu.cache[e]=o.parse(e)),r):o.parse(e)}Eu.cache=Object.create(null);var l2=Eu;const wX=e=>{let t=!1;e.args.forEach(n=>{n.key==="global"&&(t=!0)});let r;if(t?r=M5:r=pA,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]/)?N0(l).toString():l).reduce((l,c)=>l+c,""),u=l2(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]}),Tu()):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 N0(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 EX=e=>{const t=B.getState().stage,r=B.getState().userData,n=B.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=L0(),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}},TX=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(IA({name:r,url:t,series:n}));const i=B.getState().userData;return If.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},CX=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(RA({name:r,url:t,series:n}));const i=B.getState().userData;return If.setItem(O.gameKey,i).then(()=>{}),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},OX=e=>(e.content!==""&&e.content!=="none"?B.dispatch(Te({key:"enableFilm",value:e.content})):B.dispatch(Te({key:"enableFilm",value:""})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),AX=(e,t)=>{O.sceneManager.sceneData.sceneStack.push({sceneName:O.sceneManager.sceneData.currentScene.sceneName,sceneUrl:O.sceneManager.sceneData.currentScene.sceneUrl,continueLine:O.sceneManager.sceneData.currentSentenceId}),Hn(e).then(r=>{O.sceneManager.sceneData.currentScene=Vn(r,t,e),O.sceneManager.sceneData.currentSentenceId=0;const n=O.sceneManager.sceneData.currentScene.subSceneList;O.sceneManager.settledScenes.push(e);const i=Al(n);Pl(i),ne.debug("现在调用场景,调用结果:",O.sceneManager.sceneData),$t()})},PX=e=>{const t=e.content.split("/"),r=t[t.length-1];return AX(e.content,r),{performName:"none",duration:0,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function kX(e){return e.content==="hide"?B.dispatch(Te({key:"isDisableTextbox",value:!0})):B.dispatch(Te({key:"isDisableTextbox",value:!1})),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}}const IX=e=>{B.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=Mf(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}},RX=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=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:()=>!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)})}},NX=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=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=Mf(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}},LX=e=>(ne.debug(`脚本内注释${e.content}`),{performName:"none",duration:0,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),MX=e=>{B.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=Yu(o,c,i)}catch{n=[]}const a={name:t,effects:n};O.animationManager.addAnimation(a);const s=DX(t),u=`${o}-${t}-${s}`;let l=()=>{};return setTimeout(()=>{var f,h;(f=O.gameplay.pixiStage)==null||f.stopPresetAnimationOnTarget(o);const c=FX(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 FX(e,t,r){const n=O.animationManager.getAnimations().find(i=>i.name===e);if(n){const i=n.effects.map(o=>{const a=Et({...c0,duration:0});return Object.assign(a,o),a.duration=o.duration,a});return ne.debug("装载自定义动画",i),cP(i,t,r)}return null}function DX(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 jX=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}},BX="_Choose_Main_4xkm5_1",UX="_Choose_item_4xkm5_13",$X="_glabalDialog_container_inner_4xkm5_28",GX="_glabalDialog_container_4xkm5_28",zX="_title_4xkm5_47",HX="_button_4xkm5_59",Jo={Choose_Main:BX,Choose_item:UX,glabalDialog_container_inner:$X,glabalDialog_container:GX,title:zX,button:HX},VX=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=B.getState().userData.optionData.textboxFont===Ln.song?'"思源宋体", serif':'"WebgalUI", serif',{playSeEnter:u,playSeClick:l}=T0(),c=S.jsx("div",{style:{fontFamily:s},className:Jo.glabalDialog_container,children:S.jsxs("div",{className:Jo.glabalDialog_container_inner,children:[S.jsx("div",{className:Jo.title,children:n}),S.jsx("input",{id:"user-input",className:Jo.Choose_item}),S.jsx("div",{onMouseEnter:u,onClick:()=>{const f=document.getElementById("user-input");f&&B.dispatch(pA({key:t,value:(f==null?void 0:f.value)??""})),l(),O.gameplay.performController.unmountPerform("userInput"),$t()},className:Jo.button,children:o})]})});return Mn.render(S.jsx("div",{className:Jo.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}},c2=[{scriptString:"intro",scriptType:de.intro,scriptFunction:QH},{scriptString:"changeBg",scriptType:de.changeBg,scriptFunction:K9},{scriptString:"changeFigure",scriptType:de.changeFigure,scriptFunction:Z9},{scriptString:"miniAvatar",scriptType:de.miniAvatar,scriptFunction:Q9},{scriptString:"changeScene",scriptType:de.changeScene,scriptFunction:bw},{scriptString:"choose",scriptType:de.choose,scriptFunction:U7},{scriptString:"end",scriptType:de.end,scriptFunction:$7},{scriptString:"bgm",scriptType:de.bgm,scriptFunction:G7},{scriptString:"playVideo",scriptType:de.video,scriptFunction:z7},{scriptString:"setComplexAnimation",scriptType:de.setComplexAnimation,scriptFunction:W7},{scriptString:"setFilter",scriptType:de.setFilter,scriptFunction:q7},{scriptString:"pixiInit",scriptType:de.pixiInit,scriptFunction:Y7},{scriptString:"pixiPerform",scriptType:de.pixi,scriptFunction:tX},{scriptString:"label",scriptType:de.label,scriptFunction:rX},{scriptString:"jumpLabel",scriptType:de.jumpLabel,scriptFunction:nX},{scriptString:"setVar",scriptType:de.setVar,scriptFunction:wX},{scriptString:"callScene",scriptType:de.callScene,scriptFunction:bw},{scriptString:"showVars",scriptType:de.showVars,scriptFunction:EX},{scriptString:"unlockCg",scriptType:de.unlockCg,scriptFunction:TX},{scriptString:"unlockBgm",scriptType:de.unlockBgm,scriptFunction:CX},{scriptString:"say",scriptType:de.say,scriptFunction:MA},{scriptString:"filmMode",scriptType:de.filmMode,scriptFunction:OX},{scriptString:"callScene",scriptType:de.callScene,scriptFunction:PX},{scriptString:"setTextbox",scriptType:de.setTextbox,scriptFunction:kX},{scriptString:"setAnimation",scriptType:de.setAnimation,scriptFunction:IX},{scriptString:"playEffect",scriptType:de.playEffect,scriptFunction:RX},{scriptString:"setTempAnimation",scriptType:de.setTempAnimation,scriptFunction:NX},{scriptString:"__commment",scriptType:de.comment,scriptFunction:LX},{scriptString:"setTransform",scriptType:de.setTransform,scriptFunction:MX},{scriptString:"setTransition",scriptType:de.setTransition,scriptFunction:jX},{scriptString:"getUserInput",scriptType:de.getUserInput,scriptFunction:VX}],WX=[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],f2=new jH(Q5,Rr,WX,c2),Vn=(e,t,r)=>{const n=f2.parse(e,t,r);return ne.info(`解析场景:${t},数据为:`,n),n},h2=e=>{let t=Z5,r=MA;const n=new Map;c2.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)},XX=e=>{Hn(e.sceneUrl).then(t=>{O.sceneManager.sceneData.currentScene=Vn(t,e.sceneName,e.sceneUrl),O.sceneManager.sceneData.currentSentenceId=e.continueLine+1,ne.debug("现在恢复场景,恢复后场景:",O.sceneManager.sceneData.currentScene),$t()})};function qX(e){return l2(e)()}const Jm=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:N0(n).toString():n).reduce((n,i)=>n+i,"");return!!qX(r)},d2=()=>{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&&XX(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=N0(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=Jm(o)),!n){ne.warn("不满足条件,跳过本句!"),O.sceneManager.sceneData.currentSentenceId++,$t();return}h2(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++,d2();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++},$t=()=>{if(O.eventBus.emit("__NEXT"),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=Et(i);for(let a=0;aMath.random().toString().substring(0,10);class YX{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};B.dispatch(kr.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):$t()}}class KX{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 YX)}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 ZX{constructor(){le(this,"sceneManager",new H5);le(this,"backlogManager",new G5(this.sceneManager));le(this,"animationManager",new V5);le(this,"gameplay",new KX);le(this,"gameName","");le(this,"gameKey","");le(this,"eventBus",z5())}}const O=new ZX,Ke=p2(()=>{const e=B.getState().userData;Hi.setItem(O.gameKey,e).then(()=>{ne.info("写入本地存储")})},100),Qu=p2(()=>{Hi.getItem(O.gameKey).then(e=>{if(!e||!v2(e)){ne.warn("现在重置数据"),Ke();return}B.dispatch(s0(e))})},100);function p2(e,t){let r;function n(...i){clearTimeout(r);let o;return r=setTimeout(()=>{o=e.apply(n,i)},t),o}return n}const Tu=()=>{const e=B.getState().userData;Hi.setItem(O.gameKey,e).then(()=>{Hi.getItem(O.gameKey).then(t=>{if(!t){Ke();return}B.dispatch(s0(t))}),ne.info("同步本地存储")})};function v2(e){let t=!0;for(const r in Gm)e.hasOwnProperty(r)||(t=!1);return t}async function QX(){const e=B.getState().userData;return await Hi.setItem(O.gameKey,e)}async function m2(){const e=await Hi.getItem(O.gameKey);if(!e||!v2(e)){const t=B.getState().userData;return ne.warn("现在重置数据"),await Hi.setItem(O.gameKey,t)}else B.dispatch(s0(e))}var Xe=(e=>(e[e.Save=0]="Save",e[e.Load=1]="Load",e[e.Option=2]="Option",e))(Xe||{});const JX={showBacklog:!1,showStarter:!0,showTitle:!0,showMenuPanel:!1,showTextBox:!0,showControls:!0,controlsVisibility:!0,currentMenuTag:Xe.Option,titleBg:"",titleBgm:"",logoImage:[],showExtra:!1,showGlobalDialog:!1,showPanicOverlay:!1,isEnterGame:!1,isShowLogo:!0,theme:{textbox:"standard"}},g2=z_({name:"gui",initialState:JX,reducers:{setVisibility:(e,t)=>{Qu();const{component:r,visibility:n}=t.payload;e[r]=n},setMenuPanelTag:(e,t)=>{Qu(),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:eq,setVisibility:Me,setMenuPanelTag:To,setGuiAsset:jf,setLogoImage:tq}=g2.actions,rq=g2.reducer,B=HM({reducer:{stage:A8,GUI:rq,userData:U5},middleware:$O({serializableCheck:!1})});let Ow;function M0(e,t=0,r=100){if(ne.info("playing bgm"+e),e===""){Ow=setTimeout(()=>{B.dispatch(Te({key:"bgm",value:{src:"",enter:0,volume:100}}))},t);const i=B.getState().stage.bgm.src;B.dispatch(Te({key:"bgm",value:{src:i,enter:-t,volume:r}}))}else clearTimeout(Ow),B.dispatch(Te({key:"bgm",value:{src:e,enter:t,volume:r}}));const n=document.getElementById("currentBgm");n.src&&(n==null||n.play())}function kl(e){const t=document.getElementById("ebg");t&&(t.style.backgroundImage=`url("${e}")`)}const F0=()=>{ne.warn("清除所有演出");for(let e=0;e{B.getState().stage.PerformList.forEach(t=>{h2(t.script)})},nq=e=>{const t=B.dispatch,r=O.backlogManager.getBacklog()[e];ne.debug("读取的backlog数据",r),Hn(r.saveScene.sceneUrl).then(i=>{O.sceneManager.sceneData.currentScene=Vn(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=Al(o);Pl(a)}),O.sceneManager.sceneData.currentSentenceId=r.saveScene.currentSentenceId,O.sceneManager.sceneData.sceneStack=Et(r.saveScene.sceneStack),F0();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(Sh(n)),setTimeout(D0,0),t(Me({component:"showBacklog",visibility:!1})),t(Me({component:"showTextBox",visibility:!0}))},y2=e=>{const r=B.getState().userData.saveData[e];ne.debug("读取的存档数据",r),_2(r)};function _2(e){if(!e){ne.info("暂无存档");return}const t=e;Hn(t.sceneData.sceneUrl).then(o=>{O.sceneManager.sceneData.currentScene=Vn(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=Al(a);Pl(s)}),O.sceneManager.sceneData.currentSentenceId=t.sceneData.currentSentenceId,O.sceneManager.sceneData.sceneStack=Et(t.sceneData.sceneStack),F0();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=B.dispatch;i(Sh(n)),setTimeout(D0,0),i(Me({component:"showTitle",visibility:!1})),i(Me({component:"showMenuPanel",visibility:!1})),kl(B.getState().stage.bgName)}const eg=e=>{const t=B.getState().userData,r=x2(e);ne.debug("存档数据:",r);const n=Et(t.saveData);ne.debug("newSaveData:",n),n[e]=r,B.dispatch(L5({key:"saveData",value:[...n]})),ne.debug("存档完成,存档结果:",n),Tu()};function x2(e){const t=B.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 iq(){`${O.gameName}${O.gameKey}`,`${O.gameName}${O.gameKey}`}async function oq(){const e=x2(-1),t=Et(e);B.dispatch(F5(t)),await QX()}async function aq(){return await m2(),B.getState().userData.quickSaveData!==null}async function sq(){await m2();const e=B.getState().userData.quickSaveData;e&&_2(e)}const uq=()=>{O0(!0);const e=Rr("start.txt",Ir.scene);Hn(e).then(t=>{O.sceneManager.sceneData.currentScene=Vn(t,"start.txt",e),$t()}),B.dispatch(Me({component:"showTitle",visibility:!1}))};async function lq(){if(kl(B.getState().stage.bgName),await aq()&&O.sceneManager.sceneData.currentSentenceId===0){await sq();return}O.sceneManager.sceneData.currentSentenceId===0&&O.sceneManager.sceneData.currentScene.sceneName==="start.txt"?$t():D0()}function j0(e,t){if(e==null)return{};var r=S7(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 cq={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 fq=en(cq);var hq=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Aw(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(fq[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(hq),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 dq=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,pq=/^\s*$/,vq=Object.create(null);function b2(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(b2,"")+""+t.name+">";case"comment":return e+""}}var mq={parse:function(e,t){t||(t={}),t.components||(t.components=vq);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(dq,function(u,l){if(a){if(u!==""+r.name+">")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(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,"")+""+t.name+">";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!==""+r.name+">")return;a=!1}var c,f=u.charAt(1)!=="/",h=u.startsWith(")]*-->)?\s*\