@kitten-science/kitten-scientists 2.0.0-beta.10-20250402-4e11d20 → 2.0.0-beta.10-dev-2a02d77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/KittenScientists.d.ts +1 -1
- package/lib/KittenScientists.d.ts.map +1 -1
- package/lib/KittenScientists.js +6 -6
- package/lib/KittenScientists.js.map +1 -1
- package/lib/ReligionManager.js +1 -1
- package/lib/ReligionManager.js.map +1 -1
- package/lib/TimeControlManager.js +2 -2
- package/lib/TimeControlManager.js.map +1 -1
- package/lib/TradeManager.d.ts.map +1 -1
- package/lib/TradeManager.js.map +1 -1
- package/lib/tools/Log.d.ts +1 -1
- package/lib/tools/Log.d.ts.map +1 -1
- package/lib/tools/Log.js +4 -1
- package/lib/tools/Log.js.map +1 -1
- package/lib/ui/BonfireSettingsUi.d.ts +4 -5
- package/lib/ui/BonfireSettingsUi.d.ts.map +1 -1
- package/lib/ui/BonfireSettingsUi.js +109 -90
- package/lib/ui/BonfireSettingsUi.js.map +1 -1
- package/lib/ui/BuildSectionTools.d.ts +3 -13
- package/lib/ui/BuildSectionTools.d.ts.map +1 -1
- package/lib/ui/BuildSectionTools.js +52 -59
- package/lib/ui/BuildSectionTools.js.map +1 -1
- package/lib/ui/BuildingUpgradeSettingsUi.d.ts +2 -4
- package/lib/ui/BuildingUpgradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/BuildingUpgradeSettingsUi.js +13 -20
- package/lib/ui/BuildingUpgradeSettingsUi.js.map +1 -1
- package/lib/ui/EmbassySettingsUi.d.ts +4 -5
- package/lib/ui/EmbassySettingsUi.d.ts.map +1 -1
- package/lib/ui/EmbassySettingsUi.js +48 -61
- package/lib/ui/EmbassySettingsUi.js.map +1 -1
- package/lib/ui/EngineSettingsUi.d.ts +2 -2
- package/lib/ui/EngineSettingsUi.d.ts.map +1 -1
- package/lib/ui/EngineSettingsUi.js +10 -8
- package/lib/ui/EngineSettingsUi.js.map +1 -1
- package/lib/ui/InternalsUi.d.ts +2 -2
- package/lib/ui/InternalsUi.d.ts.map +1 -1
- package/lib/ui/InternalsUi.js +43 -53
- package/lib/ui/InternalsUi.js.map +1 -1
- package/lib/ui/LogFilterSettingsUi.d.ts +2 -4
- package/lib/ui/LogFilterSettingsUi.d.ts.map +1 -1
- package/lib/ui/LogFilterSettingsUi.js +24 -32
- package/lib/ui/LogFilterSettingsUi.js.map +1 -1
- package/lib/ui/MissionSettingsUi.d.ts +2 -4
- package/lib/ui/MissionSettingsUi.d.ts.map +1 -1
- package/lib/ui/MissionSettingsUi.js +13 -18
- package/lib/ui/MissionSettingsUi.js.map +1 -1
- package/lib/ui/PolicySettingsUi.d.ts +2 -4
- package/lib/ui/PolicySettingsUi.d.ts.map +1 -1
- package/lib/ui/PolicySettingsUi.js +13 -20
- package/lib/ui/PolicySettingsUi.js.map +1 -1
- package/lib/ui/ReligionSettingsUi.d.ts +4 -5
- package/lib/ui/ReligionSettingsUi.d.ts.map +1 -1
- package/lib/ui/ReligionSettingsUi.js +108 -132
- package/lib/ui/ReligionSettingsUi.js.map +1 -1
- package/lib/ui/ResetBonfireSettingsUi.d.ts +2 -2
- package/lib/ui/ResetBonfireSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetBonfireSettingsUi.js +30 -36
- package/lib/ui/ResetBonfireSettingsUi.js.map +1 -1
- package/lib/ui/ResetReligionSettingsUi.d.ts +2 -2
- package/lib/ui/ResetReligionSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetReligionSettingsUi.js +42 -51
- package/lib/ui/ResetReligionSettingsUi.js.map +1 -1
- package/lib/ui/ResetResourcesSettingsUi.d.ts +2 -2
- package/lib/ui/ResetResourcesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetResourcesSettingsUi.js +24 -31
- package/lib/ui/ResetResourcesSettingsUi.js.map +1 -1
- package/lib/ui/ResetSettingsUi.d.ts +2 -4
- package/lib/ui/ResetSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetSettingsUi.js +14 -19
- package/lib/ui/ResetSettingsUi.js.map +1 -1
- package/lib/ui/ResetSpaceSettingsUi.d.ts +2 -2
- package/lib/ui/ResetSpaceSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetSpaceSettingsUi.js +30 -39
- package/lib/ui/ResetSpaceSettingsUi.js.map +1 -1
- package/lib/ui/ResetTimeSettingsUi.d.ts +2 -2
- package/lib/ui/ResetTimeSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetTimeSettingsUi.js +32 -41
- package/lib/ui/ResetTimeSettingsUi.js.map +1 -1
- package/lib/ui/ResetUpgradesSettingsUi.d.ts +2 -2
- package/lib/ui/ResetUpgradesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetUpgradesSettingsUi.js +12 -12
- package/lib/ui/ResetUpgradesSettingsUi.js.map +1 -1
- package/lib/ui/ResourcesSettingsUi.d.ts +2 -4
- package/lib/ui/ResourcesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResourcesSettingsUi.js +16 -20
- package/lib/ui/ResourcesSettingsUi.js.map +1 -1
- package/lib/ui/ScienceSettingsUi.d.ts +2 -4
- package/lib/ui/ScienceSettingsUi.d.ts.map +1 -1
- package/lib/ui/ScienceSettingsUi.js +16 -35
- package/lib/ui/ScienceSettingsUi.js.map +1 -1
- package/lib/ui/SpaceSettingsUi.d.ts +4 -5
- package/lib/ui/SpaceSettingsUi.d.ts.map +1 -1
- package/lib/ui/SpaceSettingsUi.js +43 -51
- package/lib/ui/SpaceSettingsUi.js.map +1 -1
- package/lib/ui/StateManagementUi.d.ts +2 -2
- package/lib/ui/StateManagementUi.d.ts.map +1 -1
- package/lib/ui/StateManagementUi.js +162 -169
- package/lib/ui/StateManagementUi.js.map +1 -1
- package/lib/ui/TechSettingsUi.d.ts +4 -5
- package/lib/ui/TechSettingsUi.d.ts.map +1 -1
- package/lib/ui/TechSettingsUi.js +51 -69
- package/lib/ui/TechSettingsUi.js.map +1 -1
- package/lib/ui/TimeControlSettingsUi.d.ts +3 -4
- package/lib/ui/TimeControlSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeControlSettingsUi.js +22 -34
- package/lib/ui/TimeControlSettingsUi.js.map +1 -1
- package/lib/ui/TimeSettingsUi.d.ts +4 -5
- package/lib/ui/TimeSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSettingsUi.js +55 -62
- package/lib/ui/TimeSettingsUi.js.map +1 -1
- package/lib/ui/TimeSkipHeatSettingsUi.d.ts +4 -5
- package/lib/ui/TimeSkipHeatSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSkipHeatSettingsUi.js +28 -44
- package/lib/ui/TimeSkipHeatSettingsUi.js.map +1 -1
- package/lib/ui/TimeSkipSettingsUi.d.ts +2 -4
- package/lib/ui/TimeSkipSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSkipSettingsUi.js +75 -103
- package/lib/ui/TimeSkipSettingsUi.js.map +1 -1
- package/lib/ui/TradeSettingsUi.d.ts +4 -5
- package/lib/ui/TradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/TradeSettingsUi.js +102 -115
- package/lib/ui/TradeSettingsUi.js.map +1 -1
- package/lib/ui/UpgradeSettingsUi.d.ts +4 -5
- package/lib/ui/UpgradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/UpgradeSettingsUi.js +50 -66
- package/lib/ui/UpgradeSettingsUi.js.map +1 -1
- package/lib/ui/UserInterface.d.ts +3 -0
- package/lib/ui/UserInterface.d.ts.map +1 -1
- package/lib/ui/UserInterface.js +37 -19
- package/lib/ui/UserInterface.js.map +1 -1
- package/lib/ui/VillageSettingsUi.d.ts +2 -4
- package/lib/ui/VillageSettingsUi.d.ts.map +1 -1
- package/lib/ui/VillageSettingsUi.js +87 -105
- package/lib/ui/VillageSettingsUi.js.map +1 -1
- package/lib/ui/WorkshopSettingsUi.d.ts +4 -5
- package/lib/ui/WorkshopSettingsUi.d.ts.map +1 -1
- package/lib/ui/WorkshopSettingsUi.js +82 -103
- package/lib/ui/WorkshopSettingsUi.js.map +1 -1
- package/lib/ui/components/Button.d.ts +9 -8
- package/lib/ui/components/Button.d.ts.map +1 -1
- package/lib/ui/components/Button.js +8 -6
- package/lib/ui/components/Button.js.map +1 -1
- package/lib/ui/components/ButtonListItem.d.ts +4 -4
- package/lib/ui/components/ButtonListItem.d.ts.map +1 -1
- package/lib/ui/components/ButtonListItem.js +2 -7
- package/lib/ui/components/ButtonListItem.js.map +1 -1
- package/lib/ui/components/CollapsiblePanel.d.ts +15 -11
- package/lib/ui/components/CollapsiblePanel.d.ts.map +1 -1
- package/lib/ui/components/CollapsiblePanel.js +42 -25
- package/lib/ui/components/CollapsiblePanel.js.map +1 -1
- package/lib/ui/components/Container.d.ts +7 -2
- package/lib/ui/components/Container.d.ts.map +1 -1
- package/lib/ui/components/Container.js +6 -3
- package/lib/ui/components/Container.js.map +1 -1
- package/lib/ui/components/CyclesList.d.ts +7 -8
- package/lib/ui/components/CyclesList.d.ts.map +1 -1
- package/lib/ui/components/CyclesList.js +34 -27
- package/lib/ui/components/CyclesList.js.map +1 -1
- package/lib/ui/components/Delimiter.d.ts +3 -2
- package/lib/ui/components/Delimiter.d.ts.map +1 -1
- package/lib/ui/components/Delimiter.js +6 -2
- package/lib/ui/components/Delimiter.js.map +1 -1
- package/lib/ui/components/Dialog.d.ts +14 -6
- package/lib/ui/components/Dialog.d.ts.map +1 -1
- package/lib/ui/components/Dialog.js +66 -40
- package/lib/ui/components/Dialog.js.map +1 -1
- package/lib/ui/components/ExplainerListItem.d.ts +5 -2
- package/lib/ui/components/ExplainerListItem.d.ts.map +1 -1
- package/lib/ui/components/ExplainerListItem.js +7 -4
- package/lib/ui/components/ExplainerListItem.js.map +1 -1
- package/lib/ui/components/Fieldset.d.ts +6 -4
- package/lib/ui/components/Fieldset.d.ts.map +1 -1
- package/lib/ui/components/Fieldset.js +6 -3
- package/lib/ui/components/Fieldset.js.map +1 -1
- package/lib/ui/components/HeaderListItem.d.ts +6 -3
- package/lib/ui/components/HeaderListItem.d.ts.map +1 -1
- package/lib/ui/components/HeaderListItem.js +6 -3
- package/lib/ui/components/HeaderListItem.js.map +1 -1
- package/lib/ui/components/IconButton.d.ts +8 -6
- package/lib/ui/components/IconButton.d.ts.map +1 -1
- package/lib/ui/components/IconButton.js +6 -5
- package/lib/ui/components/IconButton.js.map +1 -1
- package/lib/ui/components/IconSettingsPanel.d.ts +5 -4
- package/lib/ui/components/IconSettingsPanel.d.ts.map +1 -1
- package/lib/ui/components/IconSettingsPanel.js +4 -2
- package/lib/ui/components/IconSettingsPanel.js.map +1 -1
- package/lib/ui/components/Input.d.ts +6 -3
- package/lib/ui/components/Input.d.ts.map +1 -1
- package/lib/ui/components/Input.js +6 -3
- package/lib/ui/components/Input.js.map +1 -1
- package/lib/ui/components/LabelListItem.d.ts +10 -7
- package/lib/ui/components/LabelListItem.d.ts.map +1 -1
- package/lib/ui/components/LabelListItem.js +21 -10
- package/lib/ui/components/LabelListItem.js.map +1 -1
- package/lib/ui/components/ListItem.d.ts +9 -6
- package/lib/ui/components/ListItem.d.ts.map +1 -1
- package/lib/ui/components/ListItem.js +6 -3
- package/lib/ui/components/ListItem.js.map +1 -1
- package/lib/ui/components/OptionsListItem.d.ts +6 -5
- package/lib/ui/components/OptionsListItem.d.ts.map +1 -1
- package/lib/ui/components/OptionsListItem.js +7 -5
- package/lib/ui/components/OptionsListItem.js.map +1 -1
- package/lib/ui/components/Paragraph.d.ts +7 -2
- package/lib/ui/components/Paragraph.d.ts.map +1 -1
- package/lib/ui/components/Paragraph.js +6 -3
- package/lib/ui/components/Paragraph.js.map +1 -1
- package/lib/ui/components/RadioItem.d.ts +9 -7
- package/lib/ui/components/RadioItem.d.ts.map +1 -1
- package/lib/ui/components/RadioItem.js +9 -7
- package/lib/ui/components/RadioItem.js.map +1 -1
- package/lib/ui/components/SeasonsList.d.ts +7 -6
- package/lib/ui/components/SeasonsList.d.ts.map +1 -1
- package/lib/ui/components/SeasonsList.js +20 -13
- package/lib/ui/components/SeasonsList.js.map +1 -1
- package/lib/ui/components/SettingLimitedListItem.d.ts +7 -7
- package/lib/ui/components/SettingLimitedListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedListItem.js +7 -8
- package/lib/ui/components/SettingLimitedListItem.js.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts +7 -6
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.js +12 -11
- package/lib/ui/components/SettingLimitedTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingListItem.d.ts +11 -11
- package/lib/ui/components/SettingListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingListItem.js +16 -20
- package/lib/ui/components/SettingListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxListItem.d.ts +7 -7
- package/lib/ui/components/SettingMaxListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxListItem.js +12 -10
- package/lib/ui/components/SettingMaxListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts +9 -6
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.js +19 -14
- package/lib/ui/components/SettingMaxTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.d.ts +8 -7
- package/lib/ui/components/SettingTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.js +15 -12
- package/lib/ui/components/SettingTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingsList.d.ts +13 -11
- package/lib/ui/components/SettingsList.d.ts.map +1 -1
- package/lib/ui/components/SettingsList.js +15 -16
- package/lib/ui/components/SettingsList.js.map +1 -1
- package/lib/ui/components/SettingsPanel.d.ts +9 -8
- package/lib/ui/components/SettingsPanel.d.ts.map +1 -1
- package/lib/ui/components/SettingsPanel.js +10 -10
- package/lib/ui/components/SettingsPanel.js.map +1 -1
- package/lib/ui/components/TextButton.d.ts +7 -6
- package/lib/ui/components/TextButton.d.ts.map +1 -1
- package/lib/ui/components/TextButton.js +7 -5
- package/lib/ui/components/TextButton.js.map +1 -1
- package/lib/ui/components/ToolbarListItem.d.ts +6 -5
- package/lib/ui/components/ToolbarListItem.d.ts.map +1 -1
- package/lib/ui/components/ToolbarListItem.js +7 -12
- package/lib/ui/components/ToolbarListItem.js.map +1 -1
- package/lib/ui/components/UiComponent.d.ts +32 -18
- package/lib/ui/components/UiComponent.d.ts.map +1 -1
- package/lib/ui/components/UiComponent.js +50 -19
- package/lib/ui/components/UiComponent.js.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.d.ts +8 -7
- package/lib/ui/components/WorkshopCraftListItem.d.ts.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.js +17 -18
- package/lib/ui/components/WorkshopCraftListItem.js.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.d.ts +5 -2
- package/lib/ui/components/buttons/ConsumeButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.js +19 -26
- package/lib/ui/components/buttons/ConsumeButton.js.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.d.ts +6 -2
- package/lib/ui/components/buttons/ExpandoButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.js +10 -9
- package/lib/ui/components/buttons/ExpandoButton.js.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.d.ts +8 -7
- package/lib/ui/components/buttons/LimitedButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.js +20 -13
- package/lib/ui/components/buttons/LimitedButton.js.map +1 -1
- package/lib/ui/components/buttons/MaxButton.d.ts +5 -5
- package/lib/ui/components/buttons/MaxButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/MaxButton.js +5 -7
- package/lib/ui/components/buttons/MaxButton.js.map +1 -1
- package/lib/ui/components/buttons/PaddingButton.d.ts +5 -2
- package/lib/ui/components/buttons/PaddingButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/PaddingButton.js +6 -3
- package/lib/ui/components/buttons/PaddingButton.js.map +1 -1
- package/lib/ui/components/buttons/StockButton.d.ts +5 -2
- package/lib/ui/components/buttons/StockButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/StockButton.js +25 -32
- package/lib/ui/components/buttons/StockButton.js.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.d.ts +6 -5
- package/lib/ui/components/buttons/TriggerButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.js +11 -12
- package/lib/ui/components/buttons/TriggerButton.js.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.d.ts +6 -5
- package/lib/ui/components/buttons-text/BuyButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.js +19 -26
- package/lib/ui/components/buttons-text/BuyButton.js.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.d.ts +6 -5
- package/lib/ui/components/buttons-text/SellButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.js +19 -28
- package/lib/ui/components/buttons-text/SellButton.js.map +1 -1
- package/output/kitten-scientists.inject.js +2441 -2516
- package/package.json +6 -6
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import { redirectErrorsToConsole } from "@oliversalzburg/js-utils/errors/console.js";
|
|
2
1
|
import styles from "./TimeSkipHeatSettingsUi.module.css";
|
|
3
2
|
import { CyclesList } from "./components/CyclesList.js";
|
|
4
3
|
import { Dialog } from "./components/Dialog.js";
|
|
5
|
-
import stylesSettingListItem from "./components/SettingListItem.module.css";
|
|
6
4
|
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
7
5
|
import { SettingsList } from "./components/SettingsList.js";
|
|
8
6
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
9
7
|
export class TimeSkipHeatSettingsUi extends SettingsPanel {
|
|
10
|
-
constructor(
|
|
11
|
-
const label = host.engine.i18n("option.time.activeHeatTransfer");
|
|
12
|
-
super(
|
|
8
|
+
constructor(parent, settings, locale, sectionSetting, sectionParentSetting) {
|
|
9
|
+
const label = parent.host.engine.i18n("option.time.activeHeatTransfer");
|
|
10
|
+
super(parent, settings, new SettingTriggerListItem(parent, settings, locale, label, {
|
|
13
11
|
onCheck: (isBatchProcess) => {
|
|
14
|
-
host.engine.imessage("status.auto.enable", [label]);
|
|
15
|
-
this.refreshUi();
|
|
16
|
-
options?.onCheck?.(isBatchProcess);
|
|
12
|
+
parent.host.engine.imessage("status.auto.enable", [label]);
|
|
17
13
|
},
|
|
18
14
|
onUnCheck: (isBatchProcess) => {
|
|
19
|
-
host.engine.imessage("status.auto.disable", [label]);
|
|
15
|
+
parent.host.engine.imessage("status.auto.disable", [label]);
|
|
20
16
|
settings.activeHeatTransferStatus.enabled = false;
|
|
21
|
-
this.refreshUi();
|
|
22
|
-
options?.onUnCheck?.(isBatchProcess);
|
|
23
17
|
},
|
|
24
|
-
onRefresh:
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
onRefresh: () => {
|
|
19
|
+
this.settingItem.triggerButton.inactive = !settings.enabled;
|
|
20
|
+
this.settingItem.triggerButton.ineffective =
|
|
27
21
|
sectionParentSetting.enabled &&
|
|
28
22
|
sectionSetting.enabled &&
|
|
29
23
|
settings.enabled &&
|
|
@@ -42,39 +36,29 @@ export class TimeSkipHeatSettingsUi extends SettingsPanel {
|
|
|
42
36
|
this.head.elementLabel.removeClass(styles.active);
|
|
43
37
|
}
|
|
44
38
|
},
|
|
45
|
-
onSetTrigger: () => {
|
|
46
|
-
Dialog.prompt(
|
|
47
|
-
host.renderPercentage(settings.trigger, locale.selected, true),
|
|
48
|
-
]), host.renderPercentage(settings.trigger), host.engine.i18n("ui.trigger.activeHeatTransfer.promptExplainer"))
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
settings.trigger = host.parsePercentage(value);
|
|
54
|
-
})
|
|
55
|
-
.then(() => {
|
|
56
|
-
this.refreshUi();
|
|
57
|
-
})
|
|
58
|
-
.catch(redirectErrorsToConsole(console));
|
|
39
|
+
onSetTrigger: async () => {
|
|
40
|
+
const value = await Dialog.prompt(parent, parent.host.engine.i18n("ui.trigger.activeHeatTransfer.prompt"), parent.host.engine.i18n("ui.trigger.activeHeatTransfer.promptTitle", [
|
|
41
|
+
parent.host.renderPercentage(settings.trigger, locale.selected, true),
|
|
42
|
+
]), parent.host.renderPercentage(settings.trigger), parent.host.engine.i18n("ui.trigger.activeHeatTransfer.promptExplainer"));
|
|
43
|
+
if (value === undefined || value === "" || value.startsWith("-")) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
settings.trigger = parent.host.parsePercentage(value);
|
|
59
47
|
},
|
|
60
|
-
})
|
|
61
|
-
this.
|
|
62
|
-
classes: [stylesSettingListItem.checked, stylesSettingListItem.setting],
|
|
63
|
-
children: [
|
|
64
|
-
new CyclesList(host, this.setting.cycles, {
|
|
65
|
-
onCheck: (label) => {
|
|
66
|
-
host.engine.imessage("time.heatTransfer.cycle.enable", [label]);
|
|
67
|
-
this.refreshUi();
|
|
68
|
-
},
|
|
69
|
-
onUnCheck: (label) => {
|
|
70
|
-
host.engine.imessage("time.heatTransfer.cycle.disable", [label]);
|
|
71
|
-
this.refreshUi();
|
|
72
|
-
},
|
|
73
|
-
}),
|
|
74
|
-
],
|
|
48
|
+
}));
|
|
49
|
+
this.addChildContent(new SettingsList(this, {
|
|
75
50
|
hasDisableAll: false,
|
|
76
51
|
hasEnableAll: false,
|
|
77
|
-
})
|
|
52
|
+
}).addChildren([
|
|
53
|
+
new CyclesList(this, this.setting.cycles, {
|
|
54
|
+
onCheckCycle: (label) => {
|
|
55
|
+
this.host.engine.imessage("time.heatTransfer.cycle.enable", [label]);
|
|
56
|
+
},
|
|
57
|
+
onUnCheckCycle: (label) => {
|
|
58
|
+
this.host.engine.imessage("time.heatTransfer.cycle.disable", [label]);
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
]));
|
|
78
62
|
}
|
|
79
63
|
}
|
|
80
64
|
//# sourceMappingURL=TimeSkipHeatSettingsUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSkipHeatSettingsUi.js","sourceRoot":"","sources":["../../source/ui/TimeSkipHeatSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeSkipHeatSettingsUi.js","sourceRoot":"","sources":["../../source/ui/TimeSkipHeatSettingsUi.ts"],"names":[],"mappings":"AAKA,OAAO,MAAM,MAAM,qCAAqC,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,MAAM,OAAO,sBAAuB,SAAQ,aAG3C;IACC,YACE,MAAmB,EACnB,QAA8B,EAC9B,MAAuC,EACvC,cAAgC,EAChC,oBAAyC;QAEzC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;QACxE,KAAK,CACH,MAAM,EACN,QAAQ,EACR,IAAI,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;YAC1D,OAAO,EAAE,CAAC,cAAwB,EAAE,EAAE;gBACpC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;YAC7D,CAAC;YACD,SAAS,EAAE,CAAC,cAAwB,EAAE,EAAE;gBACtC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5D,QAAQ,CAAC,wB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
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
4
3
|
import type { TimeControlSettings } from "../settings/TimeControlSettings.js";
|
|
5
4
|
import type { TimeSkipSettings } from "../settings/TimeSkipSettings.js";
|
|
6
|
-
import { type PanelOptions } from "./components/CollapsiblePanel.js";
|
|
7
|
-
import { type SettingListItemOptions } from "./components/SettingListItem.js";
|
|
8
5
|
import { SettingMaxTriggerListItem } from "./components/SettingMaxTriggerListItem.js";
|
|
9
6
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
7
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
10
8
|
export declare class TimeSkipSettingsUi extends SettingsPanel<TimeSkipSettings, SettingMaxTriggerListItem> {
|
|
11
9
|
private readonly _cycles;
|
|
12
10
|
private readonly _seasons;
|
|
13
11
|
private readonly _activeHeatTransferUI;
|
|
14
|
-
constructor(
|
|
12
|
+
constructor(parent: UiComponent, settings: TimeSkipSettings, locale: SettingOptions<SupportedLocale>, sectionSetting: TimeControlSettings);
|
|
15
13
|
}
|
|
16
14
|
//# sourceMappingURL=TimeSkipSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSkipSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/TimeSkipSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeSkipSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/TimeSkipSettingsUi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAaxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAEtF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;IAChG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAyB;gBAG7D,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC,EACvC,cAAc,EAAE,mBAAmB;CAwJtC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { redirectErrorsToConsole } from "@oliversalzburg/js-utils/errors/console.js";
|
|
2
1
|
import { Icons } from "../images/Icons.js";
|
|
3
2
|
import { ucfirst } from "../tools/Format.js";
|
|
4
3
|
import { TimeSkipHeatSettingsUi } from "./TimeSkipHeatSettingsUi.js";
|
|
@@ -19,24 +18,19 @@ export class TimeSkipSettingsUi extends SettingsPanel {
|
|
|
19
18
|
_cycles;
|
|
20
19
|
_seasons;
|
|
21
20
|
_activeHeatTransferUI;
|
|
22
|
-
constructor(
|
|
23
|
-
const label = host.engine.i18n("option.time.skip");
|
|
24
|
-
super(
|
|
21
|
+
constructor(parent, settings, locale, sectionSetting) {
|
|
22
|
+
const label = parent.host.engine.i18n("option.time.skip");
|
|
23
|
+
super(parent, settings, new SettingMaxTriggerListItem(parent, settings, locale, label, {
|
|
25
24
|
onCheck: (isBatchProcess) => {
|
|
26
|
-
host.engine.imessage("status.auto.enable", [label]);
|
|
27
|
-
this.refreshUi();
|
|
28
|
-
options?.onCheck?.(isBatchProcess);
|
|
25
|
+
parent.host.engine.imessage("status.auto.enable", [label]);
|
|
29
26
|
},
|
|
30
27
|
onUnCheck: (isBatchProcess) => {
|
|
31
|
-
host.engine.imessage("status.auto.disable", [label]);
|
|
32
|
-
this.refreshUi();
|
|
33
|
-
options?.onUnCheck?.(isBatchProcess);
|
|
28
|
+
parent.host.engine.imessage("status.auto.disable", [label]);
|
|
34
29
|
},
|
|
35
|
-
onRefresh:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
element.maxButton.ineffective =
|
|
30
|
+
onRefresh: () => {
|
|
31
|
+
this.settingItem.maxButton.inactive = !settings.enabled || settings.max === -1;
|
|
32
|
+
this.settingItem.triggerButton.inactive = !settings.enabled || settings.trigger === -1;
|
|
33
|
+
this.settingItem.maxButton.ineffective =
|
|
40
34
|
sectionSetting.enabled && settings.enabled && settings.max === 0;
|
|
41
35
|
this._cycles.expando.ineffective =
|
|
42
36
|
sectionSetting.enabled &&
|
|
@@ -47,111 +41,89 @@ export class TimeSkipSettingsUi extends SettingsPanel {
|
|
|
47
41
|
settings.enabled &&
|
|
48
42
|
!Object.values(settings.seasons).some(season => season.enabled);
|
|
49
43
|
},
|
|
50
|
-
onRefreshMax
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
onRefreshMax() {
|
|
45
|
+
this.maxButton.updateLabel(parent.host.renderAbsolute(settings.max));
|
|
46
|
+
this.maxButton.element[0].title =
|
|
53
47
|
settings.max < 0
|
|
54
|
-
? host.engine.i18n("ui.max.timeSkip.titleInfinite", [label])
|
|
48
|
+
? parent.host.engine.i18n("ui.max.timeSkip.titleInfinite", [label])
|
|
55
49
|
: settings.max === 0
|
|
56
|
-
? host.engine.i18n("ui.max.timeSkip.titleZero", [label])
|
|
57
|
-
: host.engine.i18n("ui.max.timeSkip.title", [
|
|
58
|
-
host.renderAbsolute(settings.max),
|
|
50
|
+
? parent.host.engine.i18n("ui.max.timeSkip.titleZero", [label])
|
|
51
|
+
: parent.host.engine.i18n("ui.max.timeSkip.title", [
|
|
52
|
+
parent.host.renderAbsolute(settings.max),
|
|
59
53
|
label,
|
|
60
54
|
]);
|
|
61
55
|
},
|
|
62
|
-
onRefreshTrigger
|
|
63
|
-
|
|
56
|
+
onRefreshTrigger() {
|
|
57
|
+
this.triggerButton.element[0].title = parent.host.engine.i18n("ui.trigger", [
|
|
64
58
|
settings.trigger < 0
|
|
65
|
-
? host.engine.i18n("ui.trigger.section.inactive")
|
|
66
|
-
: `${host.renderFloat(settings.trigger, locale.selected)} TC`,
|
|
59
|
+
? parent.host.engine.i18n("ui.trigger.section.inactive")
|
|
60
|
+
: `${parent.host.renderFloat(settings.trigger, locale.selected)} TC`,
|
|
67
61
|
]);
|
|
68
62
|
},
|
|
69
|
-
onSetMax: () => {
|
|
70
|
-
Dialog.prompt(
|
|
71
|
-
host.renderAbsolute(settings.max, locale.selected),
|
|
72
|
-
]), host.renderAbsolute(settings.max), host.engine.i18n("ui.max.timeSkip.promptExplainer"))
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
settings.max = host.parseAbsolute(value) ?? settings.max;
|
|
85
|
-
})
|
|
86
|
-
.then(() => {
|
|
87
|
-
this.refreshUi();
|
|
88
|
-
})
|
|
89
|
-
.catch(redirectErrorsToConsole(console));
|
|
63
|
+
onSetMax: async () => {
|
|
64
|
+
const value = await Dialog.prompt(parent, parent.host.engine.i18n("ui.max.timeSkip.prompt"), parent.host.engine.i18n("ui.max.timeSkip.promptTitle", [
|
|
65
|
+
parent.host.renderAbsolute(settings.max, locale.selected),
|
|
66
|
+
]), parent.host.renderAbsolute(settings.max), parent.host.engine.i18n("ui.max.timeSkip.promptExplainer"));
|
|
67
|
+
if (value === undefined) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (value === "" || value.startsWith("-")) {
|
|
71
|
+
settings.max = -1;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (value === "0") {
|
|
75
|
+
settings.enabled = false;
|
|
76
|
+
}
|
|
77
|
+
settings.max = parent.host.parseAbsolute(value) ?? settings.max;
|
|
90
78
|
},
|
|
91
|
-
onSetTrigger: () => {
|
|
92
|
-
Dialog.prompt(
|
|
93
|
-
host.renderAbsolute(settings.trigger, locale.selected),
|
|
94
|
-
]), host.renderAbsolute(settings.trigger), host.engine.i18n("ui.trigger.timeSkip.promptExplainer"))
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
settings.trigger = host.parseAbsolute(value) ?? settings.trigger;
|
|
100
|
-
})
|
|
101
|
-
.then(() => {
|
|
102
|
-
this.refreshUi();
|
|
103
|
-
})
|
|
104
|
-
.catch(redirectErrorsToConsole(console));
|
|
79
|
+
onSetTrigger: async () => {
|
|
80
|
+
const value = await Dialog.prompt(parent, parent.host.engine.i18n("ui.trigger.timeSkip.prompt"), parent.host.engine.i18n("ui.trigger.timeSkip.promptTitle", [
|
|
81
|
+
parent.host.renderAbsolute(settings.trigger, locale.selected),
|
|
82
|
+
]), parent.host.renderAbsolute(settings.trigger), parent.host.engine.i18n("ui.trigger.timeSkip.promptExplainer"));
|
|
83
|
+
if (value === undefined || value === "" || value.startsWith("-")) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
settings.trigger = parent.host.parseAbsolute(value) ?? settings.trigger;
|
|
105
87
|
},
|
|
106
|
-
|
|
88
|
+
renderLabelTrigger: false,
|
|
89
|
+
}));
|
|
107
90
|
this.settingItem.triggerButton.element.removeClass(stylesButton.lastHeadAction);
|
|
108
|
-
this._cycles = new CollapsiblePanel(
|
|
91
|
+
this._cycles = new CollapsiblePanel(this, new LabelListItem(this, ucfirst(this.host.engine.i18n("ui.cycles")), {
|
|
109
92
|
classes: [stylesSettingListItem.checked, stylesSettingListItem.setting],
|
|
110
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
111
93
|
icon: Icons.Cycles,
|
|
112
|
-
}), {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}),
|
|
124
|
-
],
|
|
125
|
-
});
|
|
126
|
-
this._seasons = new CollapsiblePanel(host, new LabelListItem(host, ucfirst(host.engine.i18n("trade.seasons")), {
|
|
94
|
+
}).addChildrenHead([new Container(this, { classes: [stylesLabelListItem.fillSpace] })])).addChildrenContent([
|
|
95
|
+
new CyclesList(this, this.setting.cycles, {
|
|
96
|
+
onCheckCycle: (label) => {
|
|
97
|
+
this.host.engine.imessage("time.skip.cycle.enable", [label]);
|
|
98
|
+
},
|
|
99
|
+
onUnCheckCycle: (label) => {
|
|
100
|
+
this.host.engine.imessage("time.skip.cycle.disable", [label]);
|
|
101
|
+
},
|
|
102
|
+
}),
|
|
103
|
+
]);
|
|
104
|
+
this._seasons = new CollapsiblePanel(this, new LabelListItem(this, ucfirst(this.host.engine.i18n("trade.seasons")), {
|
|
127
105
|
classes: [stylesSettingListItem.checked, stylesSettingListItem.setting],
|
|
128
|
-
childrenHead: [new Container(host, { classes: [stylesLabelListItem.fillSpace] })],
|
|
129
106
|
icon: Icons.Seasons,
|
|
130
|
-
}), {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
],
|
|
143
|
-
});
|
|
144
|
-
this._activeHeatTransferUI = new TimeSkipHeatSettingsUi(host, this.setting.activeHeatTransfer, locale, settings, sectionSetting);
|
|
145
|
-
this.addChild(new SettingsList(host, {
|
|
146
|
-
children: [
|
|
147
|
-
this._cycles,
|
|
148
|
-
this._seasons,
|
|
149
|
-
new SettingListItem(host, this.setting.ignoreOverheat, host.engine.i18n("option.time.skip.ignoreOverheat")),
|
|
150
|
-
this._activeHeatTransferUI,
|
|
151
|
-
],
|
|
107
|
+
}).addChildrenHead([new Container(this, { classes: [stylesLabelListItem.fillSpace] })])).addChildrenContent([
|
|
108
|
+
new SeasonsList(this, this.setting.seasons, {
|
|
109
|
+
onCheckSeason: (label) => {
|
|
110
|
+
this.host.engine.imessage("time.skip.season.enable", [label]);
|
|
111
|
+
},
|
|
112
|
+
onUnCheckSeason: (label) => {
|
|
113
|
+
this.host.engine.imessage("time.skip.season.disable", [label]);
|
|
114
|
+
},
|
|
115
|
+
}),
|
|
116
|
+
]);
|
|
117
|
+
this._activeHeatTransferUI = new TimeSkipHeatSettingsUi(this, this.setting.activeHeatTransfer, locale, settings, sectionSetting);
|
|
118
|
+
this.addChildContent(new SettingsList(this, {
|
|
152
119
|
hasDisableAll: false,
|
|
153
120
|
hasEnableAll: false,
|
|
154
|
-
})
|
|
121
|
+
}).addChildren([
|
|
122
|
+
this._cycles,
|
|
123
|
+
this._seasons,
|
|
124
|
+
new SettingListItem(this, this.setting.ignoreOverheat, this.host.engine.i18n("option.time.skip.ignoreOverheat")),
|
|
125
|
+
this._activeHeatTransferUI,
|
|
126
|
+
]));
|
|
155
127
|
}
|
|
156
128
|
}
|
|
157
129
|
//# sourceMappingURL=TimeSkipSettingsUi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSkipSettingsUi.js","sourceRoot":"","sources":["../../source/ui/TimeSkipSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeSkipSettingsUi.js","sourceRoot":"","sources":["../../source/ui/TimeSkipSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAI3C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EA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@@
|
|
|
1
1
|
import type { SupportedLocale } from "../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../KittenScientists.js";
|
|
3
2
|
import type { SettingOptions } from "../settings/Settings.js";
|
|
4
3
|
import type { TradeSettings } from "../settings/TradeSettings.js";
|
|
5
|
-
import
|
|
6
|
-
import { type SettingListItemOptions } from "./components/SettingListItem.js";
|
|
4
|
+
import { SettingTriggerListItem } from "./components/SettingTriggerListItem.js";
|
|
7
5
|
import { SettingsPanel } from "./components/SettingsPanel.js";
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import type { UiComponent } from "./components/UiComponent.js";
|
|
7
|
+
export declare class TradeSettingsUi extends SettingsPanel<TradeSettings, SettingTriggerListItem> {
|
|
8
|
+
constructor(parent: UiComponent, settings: TradeSettings, locale: SettingOptions<SupportedLocale>);
|
|
10
9
|
private _getTradeOption;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=TradeSettingsUi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradeSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/TradeSettingsUi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TradeSettingsUi.d.ts","sourceRoot":"","sources":["../../source/ui/TradeSettingsUi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAEV,cAAc,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,8BAA8B,CAAC;AAQrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI/D,qBAAa,eAAgB,SAAQ,aAAa,CAAC,aAAa,EAAE,sBAAsB,CAAC;gBAErF,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC;IA8KzC,OAAO,CAAC,eAAe;CA8FxB"}
|