@drincs/pixi-vn-json 1.15.0 → 1.16.1

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.
@@ -2,6 +2,7 @@ import { a as PixiVNJsonValueSet, m as PixiVNJsonFunction, P as PixiVNJsonIfElse
2
2
  import { CanvasBaseInterface, ImageSprite, ShakeEffectProps, BounceEffectProps, PulseEffectProps, HopEffectProps, WiggleEffectProps, NodEffectProps, SwayEffectProps, PunchEffectProps, GlitchEffectProps, ChromaticAberrationEffectProps, ShockwaveEffectProps, RadialBlurEffectProps, BlurPulseEffectProps, VignettePulseEffectProps, DesaturateEffectProps, GlowPulseEffectProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps, PushInOutProps, WipeInOutProps, IrisInOutProps, SplitInOutProps, BlurInOutProps, PixelateInOutProps, FlashInOutProps, GlitchInOutProps, TwistInOutProps, WarpInOutProps, RippleInOutProps, NoiseDissolveInOutProps, TvInOutProps, PinchInOutProps, ContainerOptions, ImageContainerOptions, ImageSpriteOptions, TextOptions, ImageSpriteMemory, VideoSpriteMemory, ImageContainerMemory, TextMemory, ContainerMemory, SoundPlayOptionsWithChannel, MediaInterface, LabelRunModeType, StorageObjectType, StepLabelPropsType } from '@drincs/pixi-vn';
3
3
  import { KeyframesType, AnimationOptions, ObjectSegment, ObjectSegmentWithTransition, SequenceOptions } from '@drincs/pixi-vn/motion';
4
4
  import { UPDATE_PRIORITY } from 'pixi.js';
5
+ import { AnimatedSpriteSource, AnimatedSpriteOptions, AnimatedSpriteMemory } from '@drincs/pixi-vn/canvas';
5
6
 
6
7
  /**
7
8
  * Additional options controlling the animation (duration, easing, repeat, etc.).
@@ -787,6 +788,21 @@ type PixiVNJsonCanvasTextShow = {
787
788
  */
788
789
  transition?: PixiVNJsonMediaTransiotions;
789
790
  };
791
+ /**
792
+ * Shows a spritesheet animation on the canvas.
793
+ */
794
+ type PixiVNJsonCanvasAnimatedSpriteShow = {
795
+ type: "asprite";
796
+ operationType: "show";
797
+ /** Unique identifier (alias) used to reference this element on the canvas. */
798
+ alias: string;
799
+ /** Spritesheet alias or serializable description of its animation frames. */
800
+ source?: AnimatedSpriteSource | string;
801
+ /** Display and playback options for the animated sprite. */
802
+ props?: AnimatedSpriteOptions;
803
+ /** Optional transition effect applied when the element appears on screen. */
804
+ transition?: PixiVNJsonMediaTransiotions;
805
+ };
790
806
  /**
791
807
  * Edits the properties of an existing image sprite on the canvas.
792
808
  */
@@ -847,6 +863,17 @@ type PixiVNJsonTextEdit = {
847
863
  */
848
864
  props?: Partial<TextMemory>;
849
865
  };
866
+ /**
867
+ * Edits the properties or frame source of an existing animated sprite.
868
+ */
869
+ type PixiVNJsonAnimatedSpriteEdit = {
870
+ type: "asprite";
871
+ operationType: "edit";
872
+ /** Alias of the animated sprite to edit. */
873
+ alias: string;
874
+ /** Partial memory/state properties to update on the animated sprite. */
875
+ props?: Partial<AnimatedSpriteMemory>;
876
+ };
850
877
  /**
851
878
  * Edits the properties of an unknown/generic canvas element.
852
879
  * Use this when the specific element type is not one of the built-in kinds.
@@ -867,7 +894,7 @@ type PixiVNJsonUnknownEdit<T extends ContainerOptions<any>> = {
867
894
  * Removes a canvas element from the stage, optionally with a transition.
868
895
  */
869
896
  type PixiVNJsonCanvasRemove = {
870
- type: "image" | "video" | "imagecontainer" | "canvaselement" | "text";
897
+ type: "image" | "video" | "imagecontainer" | "canvaselement" | "text" | "asprite";
871
898
  operationType: "remove";
872
899
  /**
873
900
  * Alias of the canvas element to remove.
@@ -896,6 +923,22 @@ type PixiVNJsonVideoPauseResume = {
896
923
  */
897
924
  alias: string;
898
925
  };
926
+ /**
927
+ * Pauses, resumes, or selects a frame in an animated sprite.
928
+ */
929
+ type PixiVNJsonAnimatedSpriteControl = {
930
+ type: "asprite";
931
+ operationType: "pause" | "resume";
932
+ /** Alias of the animated sprite to control. */
933
+ alias: string;
934
+ } | {
935
+ type: "asprite";
936
+ operationType: "goto";
937
+ /** Alias of the animated sprite to control. */
938
+ alias: string;
939
+ /** Zero-based frame index. */
940
+ frame: number;
941
+ };
899
942
  /**
900
943
  * Loads or lazy-loads asset bundles or individual assets into memory.
901
944
  */
@@ -907,16 +950,16 @@ type PixiVNJsonAssetsLoad = {
907
950
  */
908
951
  aliases: string[];
909
952
  };
910
- type PixiVNJsonCanvasShow = PixiVNJsonCanvasImageContainerShow | PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasTextShow;
953
+ type PixiVNJsonCanvasShow = PixiVNJsonCanvasImageContainerShow | PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasTextShow | PixiVNJsonCanvasAnimatedSpriteShow;
911
954
  /**
912
955
  * Union of all canvas-element edit operations.
913
956
  */
914
- type PixiVNJsonCanvasEdit = PixiVNJsonImageEdit | PixiVNJsonVideoEdit | PixiVNJsonImageContainerEdit | PixiVNJsonTextEdit | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory | TextMemory>;
957
+ type PixiVNJsonCanvasEdit = PixiVNJsonImageEdit | PixiVNJsonVideoEdit | PixiVNJsonImageContainerEdit | PixiVNJsonTextEdit | PixiVNJsonAnimatedSpriteEdit | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory | TextMemory>;
915
958
  /**
916
959
  * Union of all canvas operations — show, edit, remove, clear, animate, apply effects, and asset
917
960
  * loading.
918
961
  */
919
- type PixiVNJsonCanvas = PixiVNJsonCanvasShow | PixiVNJsonCanvasEdit | PixiVNJsonCanvasRemove | PixiVNJsonCanvasClear | PixiVNJsonVideoPauseResume | PixiVNJsonAssetsLoad | PixiVNJsonCanvasAnimate | PixiVNJsonCanvasEffect;
962
+ type PixiVNJsonCanvas = PixiVNJsonCanvasShow | PixiVNJsonCanvasEdit | PixiVNJsonCanvasRemove | PixiVNJsonCanvasClear | PixiVNJsonVideoPauseResume | PixiVNJsonAnimatedSpriteControl | PixiVNJsonAssetsLoad | PixiVNJsonCanvasAnimate | PixiVNJsonCanvasEffect;
920
963
 
921
964
  /**
922
965
  * Requests user input during the narrative.
@@ -1176,4 +1219,4 @@ type PixiVNJsonLabelStep = {
1176
1219
  conditionalStep?: PixiVNJsonConditionalStatements<PixiVNJsonLabelStep | PixiVNJsonLabelStep[]>;
1177
1220
  };
1178
1221
 
1179
- export type { PixiVNJsonDialogue as $, PinchInOutTransition as A, BlurInOutTransition as B, PinchTransitionProps as C, DissolveTransition as D, PixelateInOutTransition as E, FadeTransition as F, GlitchInOutTransition as G, PixelateTransitionProps as H, IrisInOutTransition as I, PixiVNJsonAnimateBase as J, PixiVNJsonAnimateBaseOptions as K, PixiVNJsonAnimateSequence as L, MoveInOutTransition as M, NoiseDissolveInOutTransition as N, PixiVNJsonAnimateSequenceOptions as O, PixiVNJsonOperation as P, PixiVNJsonCanvas as Q, PixiVNJsonCanvasEdit as R, PixiVNJsonCanvasImageContainerShowProps as S, PixiVNJsonCanvasImageVideoShowProps as T, PixiVNJsonCanvasShow as U, PixiVNJsonCanvasTextShowProps as V, PixiVNJsonChoice as W, PixiVNJsonChoices as X, PixiVNJsonConditionalOperation as Y, PixiVNJsonDialog as Z, PixiVNJsonDialogText as _, PixiVNJsonOperationString as a, PixiVNJsonEffectBlurPulse as a0, PixiVNJsonEffectBounce as a1, PixiVNJsonEffectChromaticAberration as a2, PixiVNJsonEffectDesaturate as a3, PixiVNJsonEffectGlitch as a4, PixiVNJsonEffectGlowPulse as a5, PixiVNJsonEffectHop as a6, PixiVNJsonEffectNod as a7, PixiVNJsonEffectPulse as a8, PixiVNJsonEffectPunch as a9, WarpTransitionProps as aA, WipeInOutTransition as aB, WipeTransitionProps as aC, ZoomInOutTransition as aD, ZoomInOutTransitionProps as aE, PixiVNJsonEffectRadialBlur as aa, PixiVNJsonEffectShake as ab, PixiVNJsonEffectShockwave as ac, PixiVNJsonEffectSway as ad, PixiVNJsonEffectVignettePulse as ae, PixiVNJsonEffectWiggle as af, PixiVNJsonInputRequest as ag, PixiVNJsonLabelToOpen as ah, PixiVNJsonMediaTransiotions as ai, PixiVNJsonSoundEdit as aj, PixiVNJsonSoundEditProps as ak, PixiVNJsonSoundPauseResume as al, PixiVNJsonSoundPlay as am, PixiVNJsonSoundPlayProps as an, PixiVNJsonSoundRemove as ao, PushInOutTransition as ap, PushInOutTransitionProps as aq, RippleInOutTransition as ar, RippleTransitionProps as as, SplitInOutTransition as at, SplitTransitionProps as au, TvInOutTransition as av, TvTransitionProps as aw, TwistInOutTransition as ax, TwistTransitionProps as ay, WarpInOutTransition as az, PixiVNJsonSound as b, PixiVNJsonCanvasImageVideoShow as c, PixiVNJsonImageEdit as d, PixiVNJsonCanvasRemove as e, PixiVNJsonVideoEdit as f, PixiVNJsonVideoPauseResume as g, PixiVNJsonCanvasImageContainerShow as h, PixiVNJsonImageContainerEdit as i, PixiVNJsonCanvasTextShow as j, PixiVNJsonTextEdit as k, PixiVNJsonUnknownEdit as l, PixiVNJsonNarration as m, PixiVNJsonCanvasEffect as n, PixiVNJsonCanvasAnimate as o, PixiVNJsonCanvasClear as p, PixiVNJsonLabelStep as q, BlurTransitionProps as r, DissolveTransitionProps as s, FadeTransitionProps as t, FlashInOutTransition as u, FlashTransitionProps as v, GlitchTransitionProps as w, IrisTransitionProps as x, MoveInOutTransitionProps as y, NoiseDissolveTransitionProps as z };
1222
+ export type { PixiVNJsonConditionalOperation as $, IrisTransitionProps as A, BlurInOutTransition as B, MoveInOutTransitionProps as C, DissolveTransition as D, NoiseDissolveTransitionProps as E, FadeTransition as F, GlitchInOutTransition as G, PinchInOutTransition as H, IrisInOutTransition as I, PinchTransitionProps as J, PixelateInOutTransition as K, PixelateTransitionProps as L, MoveInOutTransition as M, NoiseDissolveInOutTransition as N, PixiVNJsonAnimateBase as O, PixiVNJsonOperation as P, PixiVNJsonAnimateBaseOptions as Q, PixiVNJsonAnimateSequence as R, PixiVNJsonAnimateSequenceOptions as S, PixiVNJsonCanvas as T, PixiVNJsonCanvasEdit as U, PixiVNJsonCanvasImageContainerShowProps as V, PixiVNJsonCanvasImageVideoShowProps as W, PixiVNJsonCanvasShow as X, PixiVNJsonCanvasTextShowProps as Y, PixiVNJsonChoice as Z, PixiVNJsonChoices as _, PixiVNJsonOperationString as a, PixiVNJsonDialog as a0, PixiVNJsonDialogText as a1, PixiVNJsonDialogue as a2, PixiVNJsonEffectBlurPulse as a3, PixiVNJsonEffectBounce as a4, PixiVNJsonEffectChromaticAberration as a5, PixiVNJsonEffectDesaturate as a6, PixiVNJsonEffectGlitch as a7, PixiVNJsonEffectGlowPulse as a8, PixiVNJsonEffectHop as a9, TwistInOutTransition as aA, TwistTransitionProps as aB, WarpInOutTransition as aC, WarpTransitionProps as aD, WipeInOutTransition as aE, WipeTransitionProps as aF, ZoomInOutTransition as aG, ZoomInOutTransitionProps as aH, PixiVNJsonEffectNod as aa, PixiVNJsonEffectPulse as ab, PixiVNJsonEffectPunch as ac, PixiVNJsonEffectRadialBlur as ad, PixiVNJsonEffectShake as ae, PixiVNJsonEffectShockwave as af, PixiVNJsonEffectSway as ag, PixiVNJsonEffectVignettePulse as ah, PixiVNJsonEffectWiggle as ai, PixiVNJsonInputRequest as aj, PixiVNJsonLabelToOpen as ak, PixiVNJsonMediaTransiotions as al, PixiVNJsonSoundEdit as am, PixiVNJsonSoundEditProps as an, PixiVNJsonSoundPauseResume as ao, PixiVNJsonSoundPlay as ap, PixiVNJsonSoundPlayProps as aq, PixiVNJsonSoundRemove as ar, PushInOutTransition as as, PushInOutTransitionProps as at, RippleInOutTransition as au, RippleTransitionProps as av, SplitInOutTransition as aw, SplitTransitionProps as ax, TvInOutTransition as ay, TvTransitionProps as az, PixiVNJsonSound as b, PixiVNJsonCanvasImageVideoShow as c, PixiVNJsonImageEdit as d, PixiVNJsonCanvasRemove as e, PixiVNJsonVideoEdit as f, PixiVNJsonVideoPauseResume as g, PixiVNJsonCanvasAnimatedSpriteShow as h, PixiVNJsonAnimatedSpriteEdit as i, PixiVNJsonAnimatedSpriteControl as j, PixiVNJsonCanvasImageContainerShow as k, PixiVNJsonImageContainerEdit as l, PixiVNJsonCanvasTextShow as m, PixiVNJsonTextEdit as n, PixiVNJsonUnknownEdit as o, PixiVNJsonNarration as p, PixiVNJsonCanvasEffect as q, PixiVNJsonCanvasAnimate as r, PixiVNJsonCanvasClear as s, PixiVNJsonLabelStep as t, BlurTransitionProps as u, DissolveTransitionProps as v, FadeTransitionProps as w, FlashInOutTransition as x, FlashTransitionProps as y, GlitchTransitionProps as z };
@@ -2,6 +2,7 @@ import { a as PixiVNJsonValueSet, m as PixiVNJsonFunction, P as PixiVNJsonIfElse
2
2
  import { CanvasBaseInterface, ImageSprite, ShakeEffectProps, BounceEffectProps, PulseEffectProps, HopEffectProps, WiggleEffectProps, NodEffectProps, SwayEffectProps, PunchEffectProps, GlitchEffectProps, ChromaticAberrationEffectProps, ShockwaveEffectProps, RadialBlurEffectProps, BlurPulseEffectProps, VignettePulseEffectProps, DesaturateEffectProps, GlowPulseEffectProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps, PushInOutProps, WipeInOutProps, IrisInOutProps, SplitInOutProps, BlurInOutProps, PixelateInOutProps, FlashInOutProps, GlitchInOutProps, TwistInOutProps, WarpInOutProps, RippleInOutProps, NoiseDissolveInOutProps, TvInOutProps, PinchInOutProps, ContainerOptions, ImageContainerOptions, ImageSpriteOptions, TextOptions, ImageSpriteMemory, VideoSpriteMemory, ImageContainerMemory, TextMemory, ContainerMemory, SoundPlayOptionsWithChannel, MediaInterface, LabelRunModeType, StorageObjectType, StepLabelPropsType } from '@drincs/pixi-vn';
3
3
  import { KeyframesType, AnimationOptions, ObjectSegment, ObjectSegmentWithTransition, SequenceOptions } from '@drincs/pixi-vn/motion';
4
4
  import { UPDATE_PRIORITY } from 'pixi.js';
5
+ import { AnimatedSpriteSource, AnimatedSpriteOptions, AnimatedSpriteMemory } from '@drincs/pixi-vn/canvas';
5
6
 
6
7
  /**
7
8
  * Additional options controlling the animation (duration, easing, repeat, etc.).
@@ -787,6 +788,21 @@ type PixiVNJsonCanvasTextShow = {
787
788
  */
788
789
  transition?: PixiVNJsonMediaTransiotions;
789
790
  };
791
+ /**
792
+ * Shows a spritesheet animation on the canvas.
793
+ */
794
+ type PixiVNJsonCanvasAnimatedSpriteShow = {
795
+ type: "asprite";
796
+ operationType: "show";
797
+ /** Unique identifier (alias) used to reference this element on the canvas. */
798
+ alias: string;
799
+ /** Spritesheet alias or serializable description of its animation frames. */
800
+ source?: AnimatedSpriteSource | string;
801
+ /** Display and playback options for the animated sprite. */
802
+ props?: AnimatedSpriteOptions;
803
+ /** Optional transition effect applied when the element appears on screen. */
804
+ transition?: PixiVNJsonMediaTransiotions;
805
+ };
790
806
  /**
791
807
  * Edits the properties of an existing image sprite on the canvas.
792
808
  */
@@ -847,6 +863,17 @@ type PixiVNJsonTextEdit = {
847
863
  */
848
864
  props?: Partial<TextMemory>;
849
865
  };
866
+ /**
867
+ * Edits the properties or frame source of an existing animated sprite.
868
+ */
869
+ type PixiVNJsonAnimatedSpriteEdit = {
870
+ type: "asprite";
871
+ operationType: "edit";
872
+ /** Alias of the animated sprite to edit. */
873
+ alias: string;
874
+ /** Partial memory/state properties to update on the animated sprite. */
875
+ props?: Partial<AnimatedSpriteMemory>;
876
+ };
850
877
  /**
851
878
  * Edits the properties of an unknown/generic canvas element.
852
879
  * Use this when the specific element type is not one of the built-in kinds.
@@ -867,7 +894,7 @@ type PixiVNJsonUnknownEdit<T extends ContainerOptions<any>> = {
867
894
  * Removes a canvas element from the stage, optionally with a transition.
868
895
  */
869
896
  type PixiVNJsonCanvasRemove = {
870
- type: "image" | "video" | "imagecontainer" | "canvaselement" | "text";
897
+ type: "image" | "video" | "imagecontainer" | "canvaselement" | "text" | "asprite";
871
898
  operationType: "remove";
872
899
  /**
873
900
  * Alias of the canvas element to remove.
@@ -896,6 +923,22 @@ type PixiVNJsonVideoPauseResume = {
896
923
  */
897
924
  alias: string;
898
925
  };
926
+ /**
927
+ * Pauses, resumes, or selects a frame in an animated sprite.
928
+ */
929
+ type PixiVNJsonAnimatedSpriteControl = {
930
+ type: "asprite";
931
+ operationType: "pause" | "resume";
932
+ /** Alias of the animated sprite to control. */
933
+ alias: string;
934
+ } | {
935
+ type: "asprite";
936
+ operationType: "goto";
937
+ /** Alias of the animated sprite to control. */
938
+ alias: string;
939
+ /** Zero-based frame index. */
940
+ frame: number;
941
+ };
899
942
  /**
900
943
  * Loads or lazy-loads asset bundles or individual assets into memory.
901
944
  */
@@ -907,16 +950,16 @@ type PixiVNJsonAssetsLoad = {
907
950
  */
908
951
  aliases: string[];
909
952
  };
910
- type PixiVNJsonCanvasShow = PixiVNJsonCanvasImageContainerShow | PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasTextShow;
953
+ type PixiVNJsonCanvasShow = PixiVNJsonCanvasImageContainerShow | PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasTextShow | PixiVNJsonCanvasAnimatedSpriteShow;
911
954
  /**
912
955
  * Union of all canvas-element edit operations.
913
956
  */
914
- type PixiVNJsonCanvasEdit = PixiVNJsonImageEdit | PixiVNJsonVideoEdit | PixiVNJsonImageContainerEdit | PixiVNJsonTextEdit | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory | TextMemory>;
957
+ type PixiVNJsonCanvasEdit = PixiVNJsonImageEdit | PixiVNJsonVideoEdit | PixiVNJsonImageContainerEdit | PixiVNJsonTextEdit | PixiVNJsonAnimatedSpriteEdit | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory | TextMemory>;
915
958
  /**
916
959
  * Union of all canvas operations — show, edit, remove, clear, animate, apply effects, and asset
917
960
  * loading.
918
961
  */
919
- type PixiVNJsonCanvas = PixiVNJsonCanvasShow | PixiVNJsonCanvasEdit | PixiVNJsonCanvasRemove | PixiVNJsonCanvasClear | PixiVNJsonVideoPauseResume | PixiVNJsonAssetsLoad | PixiVNJsonCanvasAnimate | PixiVNJsonCanvasEffect;
962
+ type PixiVNJsonCanvas = PixiVNJsonCanvasShow | PixiVNJsonCanvasEdit | PixiVNJsonCanvasRemove | PixiVNJsonCanvasClear | PixiVNJsonVideoPauseResume | PixiVNJsonAnimatedSpriteControl | PixiVNJsonAssetsLoad | PixiVNJsonCanvasAnimate | PixiVNJsonCanvasEffect;
920
963
 
921
964
  /**
922
965
  * Requests user input during the narrative.
@@ -1176,4 +1219,4 @@ type PixiVNJsonLabelStep = {
1176
1219
  conditionalStep?: PixiVNJsonConditionalStatements<PixiVNJsonLabelStep | PixiVNJsonLabelStep[]>;
1177
1220
  };
1178
1221
 
1179
- export type { PixiVNJsonDialogue as $, PinchInOutTransition as A, BlurInOutTransition as B, PinchTransitionProps as C, DissolveTransition as D, PixelateInOutTransition as E, FadeTransition as F, GlitchInOutTransition as G, PixelateTransitionProps as H, IrisInOutTransition as I, PixiVNJsonAnimateBase as J, PixiVNJsonAnimateBaseOptions as K, PixiVNJsonAnimateSequence as L, MoveInOutTransition as M, NoiseDissolveInOutTransition as N, PixiVNJsonAnimateSequenceOptions as O, PixiVNJsonOperation as P, PixiVNJsonCanvas as Q, PixiVNJsonCanvasEdit as R, PixiVNJsonCanvasImageContainerShowProps as S, PixiVNJsonCanvasImageVideoShowProps as T, PixiVNJsonCanvasShow as U, PixiVNJsonCanvasTextShowProps as V, PixiVNJsonChoice as W, PixiVNJsonChoices as X, PixiVNJsonConditionalOperation as Y, PixiVNJsonDialog as Z, PixiVNJsonDialogText as _, PixiVNJsonOperationString as a, PixiVNJsonEffectBlurPulse as a0, PixiVNJsonEffectBounce as a1, PixiVNJsonEffectChromaticAberration as a2, PixiVNJsonEffectDesaturate as a3, PixiVNJsonEffectGlitch as a4, PixiVNJsonEffectGlowPulse as a5, PixiVNJsonEffectHop as a6, PixiVNJsonEffectNod as a7, PixiVNJsonEffectPulse as a8, PixiVNJsonEffectPunch as a9, WarpTransitionProps as aA, WipeInOutTransition as aB, WipeTransitionProps as aC, ZoomInOutTransition as aD, ZoomInOutTransitionProps as aE, PixiVNJsonEffectRadialBlur as aa, PixiVNJsonEffectShake as ab, PixiVNJsonEffectShockwave as ac, PixiVNJsonEffectSway as ad, PixiVNJsonEffectVignettePulse as ae, PixiVNJsonEffectWiggle as af, PixiVNJsonInputRequest as ag, PixiVNJsonLabelToOpen as ah, PixiVNJsonMediaTransiotions as ai, PixiVNJsonSoundEdit as aj, PixiVNJsonSoundEditProps as ak, PixiVNJsonSoundPauseResume as al, PixiVNJsonSoundPlay as am, PixiVNJsonSoundPlayProps as an, PixiVNJsonSoundRemove as ao, PushInOutTransition as ap, PushInOutTransitionProps as aq, RippleInOutTransition as ar, RippleTransitionProps as as, SplitInOutTransition as at, SplitTransitionProps as au, TvInOutTransition as av, TvTransitionProps as aw, TwistInOutTransition as ax, TwistTransitionProps as ay, WarpInOutTransition as az, PixiVNJsonSound as b, PixiVNJsonCanvasImageVideoShow as c, PixiVNJsonImageEdit as d, PixiVNJsonCanvasRemove as e, PixiVNJsonVideoEdit as f, PixiVNJsonVideoPauseResume as g, PixiVNJsonCanvasImageContainerShow as h, PixiVNJsonImageContainerEdit as i, PixiVNJsonCanvasTextShow as j, PixiVNJsonTextEdit as k, PixiVNJsonUnknownEdit as l, PixiVNJsonNarration as m, PixiVNJsonCanvasEffect as n, PixiVNJsonCanvasAnimate as o, PixiVNJsonCanvasClear as p, PixiVNJsonLabelStep as q, BlurTransitionProps as r, DissolveTransitionProps as s, FadeTransitionProps as t, FlashInOutTransition as u, FlashTransitionProps as v, GlitchTransitionProps as w, IrisTransitionProps as x, MoveInOutTransitionProps as y, NoiseDissolveTransitionProps as z };
1222
+ export type { PixiVNJsonConditionalOperation as $, IrisTransitionProps as A, BlurInOutTransition as B, MoveInOutTransitionProps as C, DissolveTransition as D, NoiseDissolveTransitionProps as E, FadeTransition as F, GlitchInOutTransition as G, PinchInOutTransition as H, IrisInOutTransition as I, PinchTransitionProps as J, PixelateInOutTransition as K, PixelateTransitionProps as L, MoveInOutTransition as M, NoiseDissolveInOutTransition as N, PixiVNJsonAnimateBase as O, PixiVNJsonOperation as P, PixiVNJsonAnimateBaseOptions as Q, PixiVNJsonAnimateSequence as R, PixiVNJsonAnimateSequenceOptions as S, PixiVNJsonCanvas as T, PixiVNJsonCanvasEdit as U, PixiVNJsonCanvasImageContainerShowProps as V, PixiVNJsonCanvasImageVideoShowProps as W, PixiVNJsonCanvasShow as X, PixiVNJsonCanvasTextShowProps as Y, PixiVNJsonChoice as Z, PixiVNJsonChoices as _, PixiVNJsonOperationString as a, PixiVNJsonDialog as a0, PixiVNJsonDialogText as a1, PixiVNJsonDialogue as a2, PixiVNJsonEffectBlurPulse as a3, PixiVNJsonEffectBounce as a4, PixiVNJsonEffectChromaticAberration as a5, PixiVNJsonEffectDesaturate as a6, PixiVNJsonEffectGlitch as a7, PixiVNJsonEffectGlowPulse as a8, PixiVNJsonEffectHop as a9, TwistInOutTransition as aA, TwistTransitionProps as aB, WarpInOutTransition as aC, WarpTransitionProps as aD, WipeInOutTransition as aE, WipeTransitionProps as aF, ZoomInOutTransition as aG, ZoomInOutTransitionProps as aH, PixiVNJsonEffectNod as aa, PixiVNJsonEffectPulse as ab, PixiVNJsonEffectPunch as ac, PixiVNJsonEffectRadialBlur as ad, PixiVNJsonEffectShake as ae, PixiVNJsonEffectShockwave as af, PixiVNJsonEffectSway as ag, PixiVNJsonEffectVignettePulse as ah, PixiVNJsonEffectWiggle as ai, PixiVNJsonInputRequest as aj, PixiVNJsonLabelToOpen as ak, PixiVNJsonMediaTransiotions as al, PixiVNJsonSoundEdit as am, PixiVNJsonSoundEditProps as an, PixiVNJsonSoundPauseResume as ao, PixiVNJsonSoundPlay as ap, PixiVNJsonSoundPlayProps as aq, PixiVNJsonSoundRemove as ar, PushInOutTransition as as, PushInOutTransitionProps as at, RippleInOutTransition as au, RippleTransitionProps as av, SplitInOutTransition as aw, SplitTransitionProps as ax, TvInOutTransition as ay, TvTransitionProps as az, PixiVNJsonSound as b, PixiVNJsonCanvasImageVideoShow as c, PixiVNJsonImageEdit as d, PixiVNJsonCanvasRemove as e, PixiVNJsonVideoEdit as f, PixiVNJsonVideoPauseResume as g, PixiVNJsonCanvasAnimatedSpriteShow as h, PixiVNJsonAnimatedSpriteEdit as i, PixiVNJsonAnimatedSpriteControl as j, PixiVNJsonCanvasImageContainerShow as k, PixiVNJsonImageContainerEdit as l, PixiVNJsonCanvasTextShow as m, PixiVNJsonTextEdit as n, PixiVNJsonUnknownEdit as o, PixiVNJsonNarration as p, PixiVNJsonCanvasEffect as q, PixiVNJsonCanvasAnimate as r, PixiVNJsonCanvasClear as s, PixiVNJsonLabelStep as t, BlurTransitionProps as u, DissolveTransitionProps as v, FadeTransitionProps as w, FlashInOutTransition as x, FlashTransitionProps as y, GlitchTransitionProps as z };
package/dist/actions.cjs CHANGED
@@ -1,3 +1,3 @@
1
- 'use strict';var core=require('@drincs/pixi-vn-json/core'),canvas=require('@drincs/pixi-vn/canvas'),translator=require('@drincs/pixi-vn-json/translator'),narration=require('@drincs/pixi-vn/narration'),sound=require('@drincs/pixi-vn/sound'),pixiVn=require('@drincs/pixi-vn'),storage=require('@drincs/pixi-vn/storage');async function ge(e){let t=core.JsonUnifier.getLogichValue(e,{});if(t)switch(t.type){case "assets":switch(t.operationType){case "load":await canvas.Assets.load(t.aliases);break;case "lazyload":canvas.Assets.backgroundLoad(t.aliases);break}break;case "bundle":switch(t.operationType){case "load":await canvas.Assets.loadBundle(t.aliases);break;case "lazyload":canvas.Assets.backgroundLoadBundle(t.aliases);break}break}}var s;(a=>(a.log=(o,...y)=>console.log(`[Pixi\u2019VN Json] ${o}`,...y),a.warn=(o,...y)=>console.warn(`[Pixi\u2019VN Json] ${o}`,...y),a.error=(o,...y)=>console.error(`[Pixi\u2019VN Json] ${o}`,...y),a.info=(o,...y)=>console.info(`[Pixi\u2019VN Json] ${o}`,...y)))(s||={});async function k(e,t,n){let{alias:i}=t,{props:a,priority:o}=n;switch(n.type){case "fade":await canvas.transitions.showWithFade(i,e,a,o);break;case "dissolve":await canvas.transitions.showWithDissolve(i,e,a,o);break;case "movein":case "moveout":await canvas.transitions.moveIn(i,e,a,o);break;case "zoomin":case "zoomout":await canvas.transitions.zoomIn(i,e,a,o);break;case "pushin":case "pushout":await canvas.transitions.pushIn(i,e,a,o);break;case "wipein":case "wipeout":await canvas.transitions.wipeIn(i,e,a,o);break;case "irisin":case "irisout":await canvas.transitions.irisIn(i,e,a,o);break;case "splitin":case "splitout":await canvas.transitions.splitIn(i,e,a,o);break;case "blurin":case "blurout":await canvas.transitions.blurIn(i,e,a,o);break;case "pixelatein":case "pixelateout":await canvas.transitions.pixelateIn(i,e,a,o);break;case "flashin":case "flashout":await canvas.transitions.flashIn(i,e,a,o);break;case "glitchin":case "glitchout":await canvas.transitions.glitchIn(i,e,a,o);break;case "twistin":case "twistout":await canvas.transitions.twistIn(i,e,a,o);break;case "warpin":case "warpout":await canvas.transitions.warpIn(i,e,a,o);break;case "ripplein":case "rippleout":await canvas.transitions.rippleIn(i,e,a,o);break;case "noisedissolvein":case "noisedissolveout":await canvas.transitions.noiseDissolveIn(i,e,a,o);break;case "tvin":case "tvout":await canvas.transitions.tvIn(i,e,a,o);break;case "pinchin":case "pinchout":await canvas.transitions.pinchIn(i,e,a,o);break}}function w(e){let{transition:t,alias:n}=e;if(!t){canvas.canvas.remove(n);return}let{props:i,priority:a}=t;switch(t.type){case "fade":canvas.transitions.removeWithFade(n,i,a);break;case "dissolve":canvas.transitions.removeWithDissolve(n,i,a);break;case "movein":case "moveout":canvas.transitions.moveOut(n,i,a);break;case "zoomin":case "zoomout":canvas.transitions.zoomOut(n,i,a);break;case "pushin":case "pushout":canvas.transitions.pushOut(n,i,a);break;case "wipein":case "wipeout":canvas.transitions.wipeOut(n,i,a);break;case "irisin":case "irisout":canvas.transitions.irisOut(n,i,a);break;case "splitin":case "splitout":canvas.transitions.splitOut(n,i,a);break;case "blurin":case "blurout":canvas.transitions.blurOut(n,i,a);break;case "pixelatein":case "pixelateout":canvas.transitions.pixelateOut(n,i,a);break;case "flashin":case "flashout":canvas.transitions.flashOut(n,i,a);break;case "glitchin":case "glitchout":canvas.transitions.glitchOut(n,i,a);break;case "twistin":case "twistout":canvas.transitions.twistOut(n,i,a);break;case "warpin":case "warpout":canvas.transitions.warpOut(n,i,a);break;case "ripplein":case "rippleout":canvas.transitions.rippleOut(n,i,a);break;case "noisedissolvein":case "noisedissolveout":canvas.transitions.noiseDissolveOut(n,i,a);break;case "tvin":case "tvout":canvas.transitions.tvOut(n,i,a);break;case "pinchin":case "pinchout":canvas.transitions.pinchOut(n,i,a);break}}async function Pe(e){switch(e.operationType){case "show":if(e.transition){let t=new canvas.ImageSprite(e.props,e.url||e.alias);await k(t,e,e.transition);}else await canvas.showImage(e.alias,e.url,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):s.error(`Image with alias ${e.alias} not found.`);break}case "remove":w(e);break}}async function je(e){switch(e.operationType){case "show":if(e.transition){let t=new canvas.VideoSprite(e.props,e.url||e.alias);await k(t,e,e.transition);}else await canvas.showVideo(e.alias,e.url,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):s.error(`Video with alias ${e.alias} not found.`);break}case "remove":w(e);break;case "pause":case "resume":{let t=canvas.canvas.find(e.alias);t?t.paused=e.operationType==="pause":s.error(`Video with alias ${e.alias} not found.`);break}}}async function we(e){switch(e.operationType){case "show":if(e.transition){let t=new canvas.ImageContainer(e.props,e.urls);await k(t,e,e.transition);}else await canvas.showImageContainer(e.alias,e.urls,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):s.error(`ImageContainer with alias ${e.alias} not found.`);break}case "remove":w(e);break}}async function Te(e){switch(e.operationType){case "show":if(e.props=e.props||{},e.props.text=translator.translator.t(e.text),e.transition){let t=new canvas.Text(e.props);await k(t,e,e.transition);}else canvas.showText(e.alias,e.text,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):s.error(`Text with alias ${e.alias} not found.`);break}case "remove":w(e);break}}async function Ne(e){switch(e.operationType){case "edit":try{let t=canvas.canvas.find(e.alias);t?e.props&&t.setMemory({...t.memory,...e.props}):s.error(`Canvas Element with alias ${e.alias} not found.`);}catch(t){s.error(`There was an error while trying to edit the canvas element with alias ${e.alias}.`,t);}break;case "remove":w(e);break}}function ke(e){e.operationType==="clear"&&canvas.canvas.removeAll();}async function Ce(e){switch(e.type){case "shake":await canvas.effects.shakeEffect(e.alias,e.props,e.priority);break;case "bounce":await canvas.effects.bounceEffect(e.alias,e.props,e.priority);break;case "pulse":await canvas.effects.pulseEffect(e.alias,e.props,e.priority);break;case "hop":await canvas.effects.hopEffect(e.alias,e.props,e.priority);break;case "wiggle":await canvas.effects.wiggleEffect(e.alias,e.props,e.priority);break;case "nod":await canvas.effects.nodEffect(e.alias,e.props,e.priority);break;case "sway":await canvas.effects.swayEffect(e.alias,e.props,e.priority);break;case "punch":await canvas.effects.punchEffect(e.alias,e.props,e.priority);break;case "glitch":await canvas.effects.glitchEffect(e.alias,e.props,e.priority);break;case "chromatic-aberration":await canvas.effects.chromaticAberrationEffect(e.alias,e.props,e.priority);break;case "shockwave":await canvas.effects.shockwaveEffect(e.alias,e.props,e.priority);break;case "radial-blur":await canvas.effects.radialBlurEffect(e.alias,e.props,e.priority);break;case "blur-pulse":await canvas.effects.blurPulseEffect(e.alias,e.props,e.priority);break;case "vignette-pulse":await canvas.effects.vignettePulseEffect(e.alias,e.props,e.priority);break;case "desaturate":await canvas.effects.desaturateEffect(e.alias,e.props,e.priority);break;case "glow-pulse":await canvas.effects.glowPulseEffect(e.alias,e.props,e.priority);break}}function Se(e){switch(e.type){case "animate":canvas.canvas.animate(e.alias,e.keyframes,e.options,e.priority);break;case "animate-sequence":canvas.canvas.animate(e.alias,e.sequence,e.options,e.priority);break}}var ie={type:"object",properties:{isRenderGroup:{type:"boolean"},blendMode:{enum:["inherit","normal","add","multiply","screen","darken","lighten","erase","color-dodge","color-burn","linear-burn","linear-dodge","linear-light","hard-light","soft-light","pin-light","difference","exclusion","overlay","saturation","color","luminosity","normal-npm","add-npm","screen-npm","none","subtract","divide","vivid-light","hard-mix","negation","min","max"]},tint:{type:["string","number","object"]},alpha:{type:"number"},angle:{type:"number"},children:{type:"object"},parent:{type:"object"},renderable:{type:"boolean"},rotation:{type:"number"},scale:{type:["number","object"]},pivot:{type:["number","object"]},origin:{type:["number","object"]},position:{type:"object"},skew:{type:"object"},visible:{type:"boolean"},x:{type:"number"},y:{type:"number"},boundsArea:{type:"object"},accessible:{type:"boolean"},accessibleTitle:{type:"string"},accessibleHint:{type:"string"},tabIndex:{type:"number"},accessibleType:{enum:["object","label","a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]},accessiblePointerEvents:{enum:["inherit","none","auto","visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all"]},accessibleText:{type:"string"},accessibleChildren:{type:"boolean"},cullArea:{type:"object"},cullable:{type:"boolean"},cullableChildren:{type:"boolean"},cursor:{anyOf:[{const:"none"},{const:"progress"},{const:"auto"},{const:"default"},{const:"context-menu"},{const:"help"},{const:"pointer"},{const:"wait"},{const:"cell"},{const:"crosshair"},{const:"text"},{const:"vertical-text"},{const:"alias"},{const:"copy"},{const:"move"},{const:"no-drop"},{const:"not-allowed"},{const:"e-resize"},{const:"n-resize"},{const:"ne-resize"},{const:"nw-resize"},{const:"s-resize"},{const:"se-resize"},{const:"sw-resize"},{const:"w-resize"},{const:"ns-resize"},{const:"ew-resize"},{const:"nesw-resize"},{const:"col-resize"},{const:"nwse-resize"},{const:"row-resize"},{const:"all-scroll"},{const:"zoom-in"},{const:"zoom-out"},{const:"grab"},{const:"grabbing"},{type:"string"}]},eventMode:{enum:["none","auto","passive","static","dynamic"]},interactive:{type:"boolean"},interactiveChildren:{type:"boolean"},hitArea:{type:"object"},width:{type:"number"},height:{type:"number"},mask:{type:["number","object"]},filters:{type:"object"},label:{type:"string"},zIndex:{type:"number"},sortDirty:{type:"boolean"},sortableChildren:{type:"boolean"},pixivnId:{type:"string"},index:{type:"number"},parentLabel:{type:"string"},onEvents:{type:"object"},align:{type:["number","object"]},xAlign:{type:"number"},yAlign:{type:"number"},percentagePosition:{type:["number","object"]},percentageX:{type:"number"},percentageY:{type:"number"}},required:["pixivnId"],additionalProperties:false};var ae={dissolve:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},fade:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},movein:{type:"object",properties:{direction:{enum:["left","right","up","down"]},motionBlur:{anyOf:[{type:"number"},{const:false},{const:true}]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},zoomin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pushin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},motionBlur:{anyOf:[{type:"number"},{const:false},{const:true}]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},wipein:{type:"object",properties:{angle:{type:"number"},direction:{enum:["left","right","up","down"]},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},irisin:{type:"object",properties:{origin:{type:"object"},aspect:{type:"number"},direction:{enum:["expand","contract"]},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},splitin:{type:"object",properties:{direction:{enum:["inward","outward"]},orientation:{enum:["horizontal","vertical"]},origin:{type:"number"},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},blurin:{type:"object",properties:{strength:{type:"number"},quality:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pixelatein:{type:"object",properties:{pixelSize:{type:"number"},direction:{enum:["up-left","up-right","down-left","down-right"]},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},flashin:{type:"object",properties:{color:{type:["string","number","object"]},maxAlpha:{type:"number"},holdDuration:{type:"number"},pulses:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},glitchin:{type:"object",properties:{strength:{type:"number"},bursts:{type:"number"},slices:{type:"number"},rgbSplit:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},twistin:{type:"object",properties:{angle:{type:"number"},radius:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},warpin:{type:"object",properties:{strength:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},ripplein:{type:"object",properties:{origin:{type:"object"},amplitude:{type:"number"},wavelength:{type:"number"},speed:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},noisedissolvein:{type:"object",properties:{edge:{enum:["hard","soft"]},noiseScale:{type:"number"},seed:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},tvin:{type:"object",properties:{lineThickness:{type:"number"},brightness:{type:"number"},scanlines:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pinchin:{type:"object",properties:{strength:{type:"number"},mode:{enum:["pinch","bulge"]},radius:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false}};var Le=["dissolve","fade","movein","zoomin","pushin","wipein","irisin","splitin","blurin","pixelatein","flashin","glitchin","twistin","warpin","ripplein","noisedissolvein","tvin","pinchin"];async function ze(e,t,n,i){switch(n){case "dissolve":return canvas.transitions.showWithDissolve(e,t,i);case "fade":return canvas.transitions.showWithFade(e,t,i);case "movein":return canvas.transitions.moveIn(e,t,i);case "zoomin":return canvas.transitions.zoomIn(e,t,i);case "pushin":return canvas.transitions.pushIn(e,t,i);case "wipein":return canvas.transitions.wipeIn(e,t,i);case "irisin":return canvas.transitions.irisIn(e,t,i);case "splitin":return canvas.transitions.splitIn(e,t,i);case "blurin":return canvas.transitions.blurIn(e,t,i);case "pixelatein":return canvas.transitions.pixelateIn(e,t,i);case "flashin":return canvas.transitions.flashIn(e,t,i);case "glitchin":return canvas.transitions.glitchIn(e,t,i);case "twistin":return canvas.transitions.twistIn(e,t,i);case "warpin":return canvas.transitions.warpIn(e,t,i);case "ripplein":return canvas.transitions.rippleIn(e,t,i);case "noisedissolvein":return canvas.transitions.noiseDissolveIn(e,t,i);case "tvin":return canvas.transitions.tvIn(e,t,i);case "pinchin":return canvas.transitions.pinchIn(e,t,i)}}function $e(e){switch(e.type){case "input":narration.narration.input.request({type:e.valueType},e.defaultValue);break;case "dialogue":narration.narration.dialogue=void 0;break}}function Ue(e){switch(e.operationType){case "play":e.url?sound.sound.play(e.alias,e.url,e.props):sound.sound.play(e.alias,e.props);break;case "stop":switch(e.type){case "sound":sound.sound.stop(e.alias);break;case "all":sound.sound.stopAll();break}break;case "pause":switch(e.type){case "sound":sound.sound.pause(e.alias);break;case "channel":sound.sound.channels.find(e.alias).pauseAll();break;case "all":sound.sound.pauseAll();break}break;case "resume":switch(e.type){case "sound":sound.sound.resume(e.alias);break;case "channel":sound.sound.channels.find(e.alias).resumeAll();break;case "all":sound.sound.resumeAll();break}break;case "edit":{let t=sound.sound.find(e.alias);if(!t)break;for(let[n,i]of Object.entries(e.props))switch(n){case "volume":t.volume.value=i;break;case "playbackRate":t.playbackRate=i;break;case "mute":t.mute=i;break;case "loop":t.loop=i;break;case "paused":t.paused=i;break}break}}}var C="___param___";var O=class e{static init(t){t.loadAssets&&(e._loadAssets=t.loadAssets),t.soundOperation&&(e._soundOperation=t.soundOperation),t.imageOperation&&(e._imageOperation=t.imageOperation),t.videoOperation&&(e._videoOperation=t.videoOperation),t.imageContainerOperation&&(e._imageContainerOperation=t.imageContainerOperation),t.textOperation&&(e._textOperation=t.textOperation),t.canvasElementOperation&&(e._canvasElementOperation=t.canvasElementOperation),t.setStorageValue&&(e._setStorageValue=t.setStorageValue),t.setInitialStorageValue&&(e._setInitialStorageValue=t.setInitialStorageValue),t.narrationOperation&&(e._narrationOperation=t.narrationOperation),t.effectOperation&&(e._effectOperation=t.effectOperation),t.animateOperation&&(e._animateOperation=t.animateOperation),t.canvasOperation&&(e._canvasOperation=t.canvasOperation),t.getLogichValue&&(e._getLogichValue=t.getLogichValue),t.getConditionalStep&&(e._getConditionalStep=t.getConditionalStep);}static _loadAssets=()=>{};static get loadAssets(){return e._loadAssets}static _soundOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get soundOperation(){return e._soundOperation}static _imageOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageOperation(){return e._imageOperation}static _videoOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get videoOperation(){return e._videoOperation}static _imageContainerOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageContainerOperation(){return e._imageContainerOperation}static _textOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get textOperation(){return e._textOperation}static _canvasElementOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasElementOperation(){return e._canvasElementOperation}static _setStorageValue=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setStorageValue(){return e._setStorageValue}static _setInitialStorageValue=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setInitialStorageValue(){return e._setInitialStorageValue}static _narrationOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get narrationOperation(){return e._narrationOperation}static _effectOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get effectOperation(){return e._effectOperation}static _animateOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animateOperation(){return e._animateOperation}static _canvasOperation=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasOperation(){return e._canvasOperation}static _getLogichValue=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getLogichValue(){return e._getLogichValue}static _getConditionalStep=()=>{throw s.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getConditionalStep(){return e._getConditionalStep}};function _(e,t){if(t&&typeof t=="object"&&typeof e.functionName=="string"&&e.functionName in t){let n=t[e.functionName];if(typeof n=="function"){let i=e.args.map(a=>O.getLogichValue(a,t));return n(...i)}else s.warn(`getLogichValue function ${e.functionName} not found in props`);}}function G(e,t){let n=core.JsonUnifier.getLogichValue(e,t);return n&&typeof n=="object"&&"type"in n?core.JsonUnifier.getLogichValue(n,t):n}function mt(e,t={}){let n=G(e.value,t);switch(e.storageType){case "flagStorage":storage.storage.flags.set(e.key,e.value);break;case "storage":storage.storage.set(e.key,n);break;case "tempstorage":storage.storage.temp.set(e.key,n);break;case "params":{let i=storage.storage.get(`${C}${narration.narration.labels.opened.length-1}`)||[];i.length>e.key&&(i[e.key]=n),storage.storage.temp.set(`${C}${narration.narration.labels.opened.length-1}`,i);break}}}function bt(e,t={}){let n=G(e.value,t);switch(e.storageType){case "storage":case "tempstorage":storage.storage.default={[e.key]:n};break}}function D(e,t={}){let n=R(e,t);if(n&&typeof n=="object"&&"type"in n)switch(n.type){case "value":return ce(n,t);case "arithmetic":case "arithmeticsingle":return se(n,t);case "compare":case "union":return pe(n,t);case "function":return _(n,t)}return n}function se(e,t){let n=core.JsonUnifier.getLogichValue(e.leftValue,t);switch(e.type){case "arithmetic":{let i=core.JsonUnifier.getLogichValue(e.rightValue,t);switch(e.operator){case "*":return n*i;case "/":return n/i;case "+":return typeof n=="string"||typeof i=="string"?`${n}${i}`:Array.isArray(n)&&Array.isArray(i)?[...n,...i]:Array.isArray(n)?[...n,i]:Array.isArray(i)?[n,...i]:n+i;case "-":if(Array.isArray(n)&&Array.isArray(i))return n.filter(a=>!i.includes(a));if(Array.isArray(n))return n.filter(a=>a!==i);if(Array.isArray(i)){s.warn("getValueFromArithmeticOperations cannot subtract array from non-array");return}return n-i;case "%":return n%i;case "POW":return n**i;case "RANDOM":return narration.narration.getRandomNumber(n,i);case "INTERSECTION":if(Array.isArray(n)&&Array.isArray(i))return n.filter(a=>i.includes(a));s.warn("getValueFromArithmeticOperations cannot intersect non-array values");return;default:s.warn("getValueFromArithmeticOperations unknown operator",e);return}}case "arithmeticsingle":switch(e.operator){case "INT":return Number(n);case "FLOOR":return Math.floor(n);}break}}function ce(e,t){if(e&&typeof e=="object"&&"type"in e&&e.type==="value"&&e.storageOperationType==="get")switch(e.storageType){case "storage":case "tempstorage":return e.key==="_input_value_"?narration.narration.input.value:storage.storage.get(e.key);case "flagStorage":return storage.storage.flags.get(e.key);case "label":return narration.narration.queries.timesLabelOpened(e.label);case "choice":return narration.narration.queries.timesChoiceMade(e.index);case "logic":return core.JsonUnifier.getLogichValue(e.operation,t);case "params":{let n=storage.storage.get(`${C}${narration.narration.labels.opened.length-1}`)||[];if(n&&n.length>e.key)return n[e.key];s.warn("getValue params not found");return}}return e}function pe(e,t){if(!e)return false;if(typeof e!="object"||!("type"in e))return !!e;switch(e.type){case "compare":{let n=core.JsonUnifier.getLogichValue(e.leftValue,t),i=core.JsonUnifier.getLogichValue(e.rightValue,t);switch(e.operator){case "==":return Array.isArray(n)&&Array.isArray(i)?n.length===i.length&&n.every(a=>i.includes(a)):n===i;case "!=":return Array.isArray(n)&&Array.isArray(i)?n.length!==i.length||!n.every(a=>i.includes(a)):n!==i;case "<":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)<0:Array.isArray(n)&&Array.isArray(i)?n.length<i.length:n<i;case "<=":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)<=0:Array.isArray(n)&&Array.isArray(i)?n.length<=i.length:n<=i;case ">":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)>0:Array.isArray(n)&&Array.isArray(i)?n.length>i.length:n>i;case ">=":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)>=0:Array.isArray(n)&&Array.isArray(i)?n.length>=i.length:n>=i;case "CONTAINS":return Array.isArray(n)&&Array.isArray(i)?i.every(a=>n.includes(a)):Array.isArray(n)?n.includes(i):n.toString().includes(i.toString())}break}case "value":{let n=core.JsonUnifier.getLogichValue(e,t);return Array.isArray(n)?n.length>0:n&&typeof n=="object"?Object.keys(n).length>0:!!n}case "union":return ue(e,t)}return !!e}function ue(e,t){if(e.unionType==="not"){let i=D(e.condition,t);return Array.isArray(i)?i.length===0:i&&typeof i=="object"?Object.keys(i).length===0:!i}let n=i=>core.JsonUnifier.getLogichValue(i,t)||false;return e.unionType==="and"?e.conditions.every(n):e.conditions.some(n)}function ye(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function R(e,t={}){if(Array.isArray(e)||!e)return e;if(e&&typeof e=="object"&&"type"in e)switch(e.type){case "resulttocombine":return le(e,t);case "ifelse":return core.JsonUnifier.getLogichValue(e.condition,t)?core.JsonUnifier.getLogichValue(e.then,t):core.JsonUnifier.getLogichValue(e.else,t);case "stepswitch":{let n=core.JsonUnifier.getLogichValue(e.elements,t)||[];if(n.length===0){s.error("getValueFromConditionalStatements elements.length === 0");return}switch(e.choiceType){case "random":{let i=ye(0,n.length-1);return core.JsonUnifier.getLogichValue(n[i],t)}case "loop":{let i=narration.NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return i>n.length-1?(i=i%n.length,core.JsonUnifier.getLogichValue(n[i],t)):core.JsonUnifier.getLogichValue(n[i],t)}case "sequential":{let i,a=narration.NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return e.end==="lastItem"&&(i=core.JsonUnifier.getLogichValue(n[n.length-1],t)),a>n.length-1?i:core.JsonUnifier.getLogichValue(n[a],t)}case "sequentialrandom":{let i=narration.NarrationManagerStatic.getRandomNumber(0,n.length-1,{nestedId:e.nestedId,onceOnly:true});if(i===void 0&&e.end==="lastItem"){let a=narration.NarrationManagerStatic.getCurrentStepTimesCounterData(e.nestedId);if(!a?.usedRandomNumbers){s.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}let o=a.usedRandomNumbers[`0-${n.length-1}`];return core.JsonUnifier.getLogichValue(n[o[o.length-1]],t)}if(i===void 0){s.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}return core.JsonUnifier.getLogichValue(n[i],t)}}}}return e}function $(e,t={}){if(e.conditionalStep){let n=pixiVn.createExportableElement(core.JsonUnifier.getLogichValue(e.conditionalStep,t));if(n?.glueEnabled===void 0&&delete n?.glueEnabled,n?.goNextStep===void 0&&delete n?.goNextStep,n?.end===void 0&&delete n?.end,n?.choices===void 0&&delete n?.choices,n?.dialogue===void 0&&delete n?.dialogue,n?.labelToOpen===void 0&&delete n?.labelToOpen,n?.operations===void 0&&delete n?.operations,n){let i={...e,conditionalStep:void 0,...n};return $(i,t)}else narration.narration.dialogGlue&&(narration.narration.dialogGlue=false);}return e}function le(e,t){let n=e.firstItem,i=(e.secondConditionalItem??[]).flatMap(o=>Array.isArray(o)?o.map(y=>core.JsonUnifier.getLogichValue(y,t)):[core.JsonUnifier.getLogichValue(o,t)]),a=n?[n,...i]:i;if(a.length===0){s.warn("combinateResult toCheck.length === 0");return}if(typeof a[0]=="string")return translator.translator.t(a);if(typeof a[0]=="object"){let o=a,y,P=false,j=o.map((p,V)=>{p=$(p,t);let m=core.JsonUnifier.getLogichValue(p.dialogue,t)||"";return V===0?(y=core.JsonUnifier.getLogichValue(p.glueEnabled,t)||false,m):(typeof m=="object"&&"text"in m&&(m=`${m.character}: ${m.text}`),y===false&&P&&(m=`
1
+ 'use strict';var core=require('@drincs/pixi-vn-json/core'),canvas=require('@drincs/pixi-vn/canvas'),translator=require('@drincs/pixi-vn-json/translator'),narration=require('@drincs/pixi-vn/narration'),sound=require('@drincs/pixi-vn/sound'),pixiVn=require('@drincs/pixi-vn'),storage=require('@drincs/pixi-vn/storage');async function xe(e){let t=core.JsonUnifier.getLogichValue(e,{});if(t)switch(t.type){case "assets":switch(t.operationType){case "load":await canvas.Assets.load(t.aliases);break;case "lazyload":canvas.Assets.backgroundLoad(t.aliases);break}break;case "bundle":switch(t.operationType){case "load":await canvas.Assets.loadBundle(t.aliases);break;case "lazyload":canvas.Assets.backgroundLoadBundle(t.aliases);break}break}}var r;(a=>(a.log=(o,...y)=>console.log(`[Pixi\u2019VN Json] ${o}`,...y),a.warn=(o,...y)=>console.warn(`[Pixi\u2019VN Json] ${o}`,...y),a.error=(o,...y)=>console.error(`[Pixi\u2019VN Json] ${o}`,...y),a.info=(o,...y)=>console.info(`[Pixi\u2019VN Json] ${o}`,...y)))(r||={});async function N(e,t,n){let{alias:i}=t,{props:a,priority:o}=n;switch(n.type){case "fade":await canvas.transitions.showWithFade(i,e,a,o);break;case "dissolve":await canvas.transitions.showWithDissolve(i,e,a,o);break;case "movein":case "moveout":await canvas.transitions.moveIn(i,e,a,o);break;case "zoomin":case "zoomout":await canvas.transitions.zoomIn(i,e,a,o);break;case "pushin":case "pushout":await canvas.transitions.pushIn(i,e,a,o);break;case "wipein":case "wipeout":await canvas.transitions.wipeIn(i,e,a,o);break;case "irisin":case "irisout":await canvas.transitions.irisIn(i,e,a,o);break;case "splitin":case "splitout":await canvas.transitions.splitIn(i,e,a,o);break;case "blurin":case "blurout":await canvas.transitions.blurIn(i,e,a,o);break;case "pixelatein":case "pixelateout":await canvas.transitions.pixelateIn(i,e,a,o);break;case "flashin":case "flashout":await canvas.transitions.flashIn(i,e,a,o);break;case "glitchin":case "glitchout":await canvas.transitions.glitchIn(i,e,a,o);break;case "twistin":case "twistout":await canvas.transitions.twistIn(i,e,a,o);break;case "warpin":case "warpout":await canvas.transitions.warpIn(i,e,a,o);break;case "ripplein":case "rippleout":await canvas.transitions.rippleIn(i,e,a,o);break;case "noisedissolvein":case "noisedissolveout":await canvas.transitions.noiseDissolveIn(i,e,a,o);break;case "tvin":case "tvout":await canvas.transitions.tvIn(i,e,a,o);break;case "pinchin":case "pinchout":await canvas.transitions.pinchIn(i,e,a,o);break}}async function je(e){switch(e.operationType){case "show":if(e.transition){let t=e.source,n;typeof t=="string"?n={spritesheet:t}:t?.spritesheet||t?.frames?.length?n=t:n={...t,spritesheet:e.alias};let i=new canvas.AnimatedSprite({autoPlay:true,...e.props},n);await i.load(),await N(i,e,e.transition);}else await canvas.showAnimatedSprite(e.alias,e.source,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t&&e.props?await t.setMemory({...t.memory,...e.props}):t||r.error(`AnimatedSprite with alias ${e.alias} not found.`);break}case "remove":P(e);break;case "pause":case "resume":{let t=canvas.canvas.find(e.alias);t?e.operationType==="pause"?t.stop():t.play():r.error(`AnimatedSprite with alias ${e.alias} not found.`);break}case "goto":{if(!Number.isInteger(e.frame)||e.frame<0)throw new RangeError("AnimatedSprite frame must be a non-negative integer.");let t=canvas.canvas.find(e.alias);if(t){if(!t.haveEmptyTexture&&e.frame>=t.totalFrames)throw new RangeError(`AnimatedSprite frame must be less than ${t.totalFrames}.`);t.setFrame(e.frame);}else r.error(`AnimatedSprite with alias ${e.alias} not found.`);break}}}function P(e){let{transition:t,alias:n}=e;if(!t){canvas.canvas.remove(n);return}let{props:i,priority:a}=t;switch(t.type){case "fade":canvas.transitions.removeWithFade(n,i,a);break;case "dissolve":canvas.transitions.removeWithDissolve(n,i,a);break;case "movein":case "moveout":canvas.transitions.moveOut(n,i,a);break;case "zoomin":case "zoomout":canvas.transitions.zoomOut(n,i,a);break;case "pushin":case "pushout":canvas.transitions.pushOut(n,i,a);break;case "wipein":case "wipeout":canvas.transitions.wipeOut(n,i,a);break;case "irisin":case "irisout":canvas.transitions.irisOut(n,i,a);break;case "splitin":case "splitout":canvas.transitions.splitOut(n,i,a);break;case "blurin":case "blurout":canvas.transitions.blurOut(n,i,a);break;case "pixelatein":case "pixelateout":canvas.transitions.pixelateOut(n,i,a);break;case "flashin":case "flashout":canvas.transitions.flashOut(n,i,a);break;case "glitchin":case "glitchout":canvas.transitions.glitchOut(n,i,a);break;case "twistin":case "twistout":canvas.transitions.twistOut(n,i,a);break;case "warpin":case "warpout":canvas.transitions.warpOut(n,i,a);break;case "ripplein":case "rippleout":canvas.transitions.rippleOut(n,i,a);break;case "noisedissolvein":case "noisedissolveout":canvas.transitions.noiseDissolveOut(n,i,a);break;case "tvin":case "tvout":canvas.transitions.tvOut(n,i,a);break;case "pinchin":case "pinchout":canvas.transitions.pinchOut(n,i,a);break}}async function Ne(e){switch(e.operationType){case "show":if(e.transition){let t=new canvas.ImageSprite(e.props,e.url||e.alias);await N(t,e,e.transition);}else await canvas.showImage(e.alias,e.url,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`Image with alias ${e.alias} not found.`);break}case "remove":P(e);break}}async function Se(e){switch(e.operationType){case "show":if(e.transition){let t=new canvas.VideoSprite(e.props,e.url||e.alias);await N(t,e,e.transition);}else await canvas.showVideo(e.alias,e.url,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`Video with alias ${e.alias} not found.`);break}case "remove":P(e);break;case "pause":case "resume":{let t=canvas.canvas.find(e.alias);t?t.paused=e.operationType==="pause":r.error(`Video with alias ${e.alias} not found.`);break}}}async function Te(e){switch(e.operationType){case "show":if(e.transition){let t=new canvas.ImageContainer(e.props,e.urls);await N(t,e,e.transition);}else await canvas.showImageContainer(e.alias,e.urls,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`ImageContainer with alias ${e.alias} not found.`);break}case "remove":P(e);break}}async function ke(e){switch(e.operationType){case "show":if(e.props=e.props||{},e.props.text=translator.translator.t(e.text),e.transition){let t=new canvas.Text(e.props);await N(t,e,e.transition);}else canvas.showText(e.alias,e.text,e.props);break;case "edit":{let t=canvas.canvas.find(e.alias);t?e.props&&await t.setMemory({...t.memory,...e.props}):r.error(`Text with alias ${e.alias} not found.`);break}case "remove":P(e);break}}async function Ce(e){switch(e.operationType){case "edit":try{let t=canvas.canvas.find(e.alias);t?e.props&&t.setMemory({...t.memory,...e.props}):r.error(`Canvas Element with alias ${e.alias} not found.`);}catch(t){r.error(`There was an error while trying to edit the canvas element with alias ${e.alias}.`,t);}break;case "remove":P(e);break}}function Ie(e){e.operationType==="clear"&&canvas.canvas.removeAll();}async function Je(e){switch(e.type){case "shake":await canvas.effects.shakeEffect(e.alias,e.props,e.priority);break;case "bounce":await canvas.effects.bounceEffect(e.alias,e.props,e.priority);break;case "pulse":await canvas.effects.pulseEffect(e.alias,e.props,e.priority);break;case "hop":await canvas.effects.hopEffect(e.alias,e.props,e.priority);break;case "wiggle":await canvas.effects.wiggleEffect(e.alias,e.props,e.priority);break;case "nod":await canvas.effects.nodEffect(e.alias,e.props,e.priority);break;case "sway":await canvas.effects.swayEffect(e.alias,e.props,e.priority);break;case "punch":await canvas.effects.punchEffect(e.alias,e.props,e.priority);break;case "glitch":await canvas.effects.glitchEffect(e.alias,e.props,e.priority);break;case "chromatic-aberration":await canvas.effects.chromaticAberrationEffect(e.alias,e.props,e.priority);break;case "shockwave":await canvas.effects.shockwaveEffect(e.alias,e.props,e.priority);break;case "radial-blur":await canvas.effects.radialBlurEffect(e.alias,e.props,e.priority);break;case "blur-pulse":await canvas.effects.blurPulseEffect(e.alias,e.props,e.priority);break;case "vignette-pulse":await canvas.effects.vignettePulseEffect(e.alias,e.props,e.priority);break;case "desaturate":await canvas.effects.desaturateEffect(e.alias,e.props,e.priority);break;case "glow-pulse":await canvas.effects.glowPulseEffect(e.alias,e.props,e.priority);break}}function Ae(e){switch(e.type){case "animate":canvas.canvas.animate(e.alias,e.keyframes,e.options,e.priority);break;case "animate-sequence":canvas.canvas.animate(e.alias,e.sequence,e.options,e.priority);break}}var oe={type:"object",properties:{isRenderGroup:{type:"boolean"},blendMode:{enum:["inherit","normal","add","multiply","screen","darken","lighten","erase","color-dodge","color-burn","linear-burn","linear-dodge","linear-light","hard-light","soft-light","pin-light","difference","exclusion","overlay","saturation","color","luminosity","normal-npm","add-npm","screen-npm","none","subtract","divide","vivid-light","hard-mix","negation","min","max"]},tint:{type:["string","number","object"]},alpha:{type:"number"},angle:{type:"number"},children:{type:"object"},parent:{type:"object"},renderable:{type:"boolean"},rotation:{type:"number"},scale:{type:["number","object"]},pivot:{type:["number","object"]},origin:{type:["number","object"]},position:{type:"object"},skew:{type:"object"},visible:{type:"boolean"},x:{type:"number"},y:{type:"number"},boundsArea:{type:"object"},accessible:{type:"boolean"},accessibleTitle:{type:"string"},accessibleHint:{type:"string"},tabIndex:{type:"number"},accessibleType:{enum:["object","label","a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]},accessiblePointerEvents:{enum:["inherit","none","auto","visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all"]},accessibleText:{type:"string"},accessibleChildren:{type:"boolean"},cullArea:{type:"object"},cullable:{type:"boolean"},cullableChildren:{type:"boolean"},cursor:{anyOf:[{const:"none"},{const:"progress"},{const:"auto"},{const:"default"},{const:"context-menu"},{const:"help"},{const:"pointer"},{const:"wait"},{const:"cell"},{const:"crosshair"},{const:"text"},{const:"vertical-text"},{const:"alias"},{const:"copy"},{const:"move"},{const:"no-drop"},{const:"not-allowed"},{const:"e-resize"},{const:"n-resize"},{const:"ne-resize"},{const:"nw-resize"},{const:"s-resize"},{const:"se-resize"},{const:"sw-resize"},{const:"w-resize"},{const:"ns-resize"},{const:"ew-resize"},{const:"nesw-resize"},{const:"col-resize"},{const:"nwse-resize"},{const:"row-resize"},{const:"all-scroll"},{const:"zoom-in"},{const:"zoom-out"},{const:"grab"},{const:"grabbing"},{type:"string"}]},eventMode:{enum:["none","auto","passive","static","dynamic"]},interactive:{type:"boolean"},interactiveChildren:{type:"boolean"},hitArea:{type:"object"},width:{type:"number"},height:{type:"number"},mask:{type:["number","object"]},filters:{type:"object"},label:{type:"string"},zIndex:{type:"number"},sortDirty:{type:"boolean"},sortableChildren:{type:"boolean"},pixivnId:{type:"string"},index:{type:"number"},parentLabel:{type:"string"},onEvents:{type:"object"},align:{type:["number","object"]},xAlign:{type:"number"},yAlign:{type:"number"},percentagePosition:{type:["number","object"]},percentageX:{type:"number"},percentageY:{type:"number"}},required:["pixivnId"],additionalProperties:false};var re={dissolve:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},fade:{type:"object",properties:{completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},movein:{type:"object",properties:{direction:{enum:["left","right","up","down"]},motionBlur:{anyOf:[{type:"number"},{const:false},{const:true}]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},zoomin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pushin:{type:"object",properties:{direction:{enum:["left","right","up","down"]},motionBlur:{anyOf:[{type:"number"},{const:false},{const:true}]},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},wipein:{type:"object",properties:{angle:{type:"number"},direction:{enum:["left","right","up","down"]},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},irisin:{type:"object",properties:{origin:{type:"object"},aspect:{type:"number"},direction:{enum:["expand","contract"]},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},splitin:{type:"object",properties:{direction:{enum:["inward","outward"]},orientation:{enum:["horizontal","vertical"]},origin:{type:"number"},invert:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},blurin:{type:"object",properties:{strength:{type:"number"},quality:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pixelatein:{type:"object",properties:{pixelSize:{type:"number"},direction:{enum:["up-left","up-right","down-left","down-right"]},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},flashin:{type:"object",properties:{color:{type:["string","number","object"]},maxAlpha:{type:"number"},holdDuration:{type:"number"},pulses:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},glitchin:{type:"object",properties:{strength:{type:"number"},bursts:{type:"number"},slices:{type:"number"},rgbSplit:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},twistin:{type:"object",properties:{angle:{type:"number"},radius:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},warpin:{type:"object",properties:{strength:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},ripplein:{type:"object",properties:{origin:{type:"object"},amplitude:{type:"number"},wavelength:{type:"number"},speed:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},noisedissolvein:{type:"object",properties:{edge:{enum:["hard","soft"]},noiseScale:{type:"number"},seed:{type:"number"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},tvin:{type:"object",properties:{lineThickness:{type:"number"},brightness:{type:"number"},scanlines:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false},pinchin:{type:"object",properties:{strength:{type:"number"},mode:{enum:["pinch","bulge"]},radius:{type:"number"},origin:{type:"object"},fadeComponent:{type:"boolean"},completeOnContinue:{type:"boolean"},animateOldComponentOut:{type:"boolean"},delay:{type:["number","object"]},stiffness:{type:"number"},damping:{type:"number"},mass:{type:"number"},duration:{type:"number"},visualDuration:{type:"number"},bounce:{type:"number"},velocity:{type:"number"},restSpeed:{type:"number"},restDelta:{type:"number"},bounceStiffness:{type:"number"},bounceDamping:{type:"number"},min:{type:"number"},max:{type:"number"},power:{type:"number"},timeConstant:{type:"number"},isSync:{type:"boolean"},elapsed:{type:"number"},type:{anyOf:[{const:false},{const:"keyframes"},{type:"object"},{const:"decay"},{const:"spring"},{const:"tween"},{const:"inertia"}]},autoplay:{type:"boolean"},startTime:{type:"number"},from:{},inherit:{type:"boolean"},skipAnimations:{type:"boolean"},path:{type:"object"},when:{anyOf:[{type:"string"},{const:false}]},delayChildren:{type:["number","object"]},staggerChildren:{type:"number"},staggerDirection:{type:"number"},repeat:{type:"number"},repeatType:{enum:["loop","reverse","mirror"]},repeatDelay:{type:"number"},ease:{anyOf:[{type:"object"},{const:"linear"},{const:"easeIn"},{const:"easeOut"},{const:"easeInOut"},{const:"circIn"},{const:"circOut"},{const:"circInOut"},{const:"backIn"},{const:"backOut"},{const:"backInOut"},{const:"anticipate"},{type:"object"},{type:"object"}]},times:{type:"object"},reduceMotion:{type:"boolean"},aliasToRemoveAfter:{type:["string","object"]},tickerAliasToResume:{type:["string","object"]},tickerIdToResume:{type:["string","object"]}},additionalProperties:false}};var _e=["dissolve","fade","movein","zoomin","pushin","wipein","irisin","splitin","blurin","pixelatein","flashin","glitchin","twistin","warpin","ripplein","noisedissolvein","tvin","pinchin"];async function Ge(e,t,n,i){switch(n){case "dissolve":return canvas.transitions.showWithDissolve(e,t,i);case "fade":return canvas.transitions.showWithFade(e,t,i);case "movein":return canvas.transitions.moveIn(e,t,i);case "zoomin":return canvas.transitions.zoomIn(e,t,i);case "pushin":return canvas.transitions.pushIn(e,t,i);case "wipein":return canvas.transitions.wipeIn(e,t,i);case "irisin":return canvas.transitions.irisIn(e,t,i);case "splitin":return canvas.transitions.splitIn(e,t,i);case "blurin":return canvas.transitions.blurIn(e,t,i);case "pixelatein":return canvas.transitions.pixelateIn(e,t,i);case "flashin":return canvas.transitions.flashIn(e,t,i);case "glitchin":return canvas.transitions.glitchIn(e,t,i);case "twistin":return canvas.transitions.twistIn(e,t,i);case "warpin":return canvas.transitions.warpIn(e,t,i);case "ripplein":return canvas.transitions.rippleIn(e,t,i);case "noisedissolvein":return canvas.transitions.noiseDissolveIn(e,t,i);case "tvin":return canvas.transitions.tvIn(e,t,i);case "pinchin":return canvas.transitions.pinchIn(e,t,i)}}function Ue(e){switch(e.type){case "input":narration.narration.input.request({type:e.valueType},e.defaultValue);break;case "dialogue":narration.narration.dialogue=void 0;break}}function Be(e){switch(e.operationType){case "play":e.url?sound.sound.play(e.alias,e.url,e.props):sound.sound.play(e.alias,e.props);break;case "stop":switch(e.type){case "sound":sound.sound.stop(e.alias);break;case "all":sound.sound.stopAll();break}break;case "pause":switch(e.type){case "sound":sound.sound.pause(e.alias);break;case "channel":sound.sound.channels.find(e.alias).pauseAll();break;case "all":sound.sound.pauseAll();break}break;case "resume":switch(e.type){case "sound":sound.sound.resume(e.alias);break;case "channel":sound.sound.channels.find(e.alias).resumeAll();break;case "all":sound.sound.resumeAll();break}break;case "edit":{let t=sound.sound.find(e.alias);if(!t)break;for(let[n,i]of Object.entries(e.props))switch(n){case "volume":t.volume.value=i;break;case "playbackRate":t.playbackRate=i;break;case "mute":t.mute=i;break;case "loop":t.loop=i;break;case "paused":t.paused=i;break}break}}}var k="___param___";var O=class e{static init(t){t.loadAssets&&(e._loadAssets=t.loadAssets),t.soundOperation&&(e._soundOperation=t.soundOperation),t.imageOperation&&(e._imageOperation=t.imageOperation),t.videoOperation&&(e._videoOperation=t.videoOperation),t.animatedSpriteOperation&&(e._animatedSpriteOperation=t.animatedSpriteOperation),t.imageContainerOperation&&(e._imageContainerOperation=t.imageContainerOperation),t.textOperation&&(e._textOperation=t.textOperation),t.canvasElementOperation&&(e._canvasElementOperation=t.canvasElementOperation),t.setStorageValue&&(e._setStorageValue=t.setStorageValue),t.setInitialStorageValue&&(e._setInitialStorageValue=t.setInitialStorageValue),t.narrationOperation&&(e._narrationOperation=t.narrationOperation),t.effectOperation&&(e._effectOperation=t.effectOperation),t.animateOperation&&(e._animateOperation=t.animateOperation),t.canvasOperation&&(e._canvasOperation=t.canvasOperation),t.getLogichValue&&(e._getLogichValue=t.getLogichValue),t.getConditionalStep&&(e._getConditionalStep=t.getConditionalStep);}static _loadAssets=()=>{};static get loadAssets(){return e._loadAssets}static _soundOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get soundOperation(){return e._soundOperation}static _imageOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageOperation(){return e._imageOperation}static _videoOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get videoOperation(){return e._videoOperation}static _animatedSpriteOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animatedSpriteOperation(){return e._animatedSpriteOperation}static _imageContainerOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get imageContainerOperation(){return e._imageContainerOperation}static _textOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get textOperation(){return e._textOperation}static _canvasElementOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasElementOperation(){return e._canvasElementOperation}static _setStorageValue=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setStorageValue(){return e._setStorageValue}static _setInitialStorageValue=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get setInitialStorageValue(){return e._setInitialStorageValue}static _narrationOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get narrationOperation(){return e._narrationOperation}static _effectOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get effectOperation(){return e._effectOperation}static _animateOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get animateOperation(){return e._animateOperation}static _canvasOperation=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get canvasOperation(){return e._canvasOperation}static _getLogichValue=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getLogichValue(){return e._getLogichValue}static _getConditionalStep=()=>{throw r.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new pixiVn.PixiError("invalid_usage","An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")};static get getConditionalStep(){return e._getConditionalStep}};function _(e,t){if(t&&typeof t=="object"&&typeof e.functionName=="string"&&e.functionName in t){let n=t[e.functionName];if(typeof n=="function"){let i=e.args.map(a=>O.getLogichValue(a,t));return n(...i)}else r.warn(`getLogichValue function ${e.functionName} not found in props`);}}function G(e,t){let n=core.JsonUnifier.getLogichValue(e,t);return n&&typeof n=="object"&&"type"in n?core.JsonUnifier.getLogichValue(n,t):n}function ft(e,t={}){let n=G(e.value,t);switch(e.storageType){case "flagStorage":storage.storage.flags.set(e.key,e.value);break;case "storage":storage.storage.set(e.key,n);break;case "tempstorage":storage.storage.temp.set(e.key,n);break;case "params":{let i=storage.storage.get(`${k}${narration.narration.labels.opened.length-1}`)||[];i.length>e.key&&(i[e.key]=n),storage.storage.temp.set(`${k}${narration.narration.labels.opened.length-1}`,i);break}}}function gt(e,t={}){let n=G(e.value,t);switch(e.storageType){case "storage":case "tempstorage":storage.storage.default={[e.key]:n};break}}function D(e,t={}){let n=E(e,t);if(n&&typeof n=="object"&&"type"in n)switch(n.type){case "value":return ue(n,t);case "arithmetic":case "arithmeticsingle":return ce(n,t);case "compare":case "union":return ye(n,t);case "function":return _(n,t)}return n}function ce(e,t){let n=core.JsonUnifier.getLogichValue(e.leftValue,t);switch(e.type){case "arithmetic":{let i=core.JsonUnifier.getLogichValue(e.rightValue,t);switch(e.operator){case "*":return n*i;case "/":return n/i;case "+":return typeof n=="string"||typeof i=="string"?`${n}${i}`:Array.isArray(n)&&Array.isArray(i)?[...n,...i]:Array.isArray(n)?[...n,i]:Array.isArray(i)?[n,...i]:n+i;case "-":if(Array.isArray(n)&&Array.isArray(i))return n.filter(a=>!i.includes(a));if(Array.isArray(n))return n.filter(a=>a!==i);if(Array.isArray(i)){r.warn("getValueFromArithmeticOperations cannot subtract array from non-array");return}return n-i;case "%":return n%i;case "POW":return n**i;case "RANDOM":return narration.narration.getRandomNumber(n,i);case "INTERSECTION":if(Array.isArray(n)&&Array.isArray(i))return n.filter(a=>i.includes(a));r.warn("getValueFromArithmeticOperations cannot intersect non-array values");return;default:r.warn("getValueFromArithmeticOperations unknown operator",e);return}}case "arithmeticsingle":switch(e.operator){case "INT":return Number(n);case "FLOOR":return Math.floor(n);}break}}function ue(e,t){if(e&&typeof e=="object"&&"type"in e&&e.type==="value"&&e.storageOperationType==="get")switch(e.storageType){case "storage":case "tempstorage":return e.key==="_input_value_"?narration.narration.input.value:storage.storage.get(e.key);case "flagStorage":return storage.storage.flags.get(e.key);case "label":return narration.narration.queries.timesLabelOpened(e.label);case "choice":return narration.narration.queries.timesChoiceMade(e.index);case "logic":return core.JsonUnifier.getLogichValue(e.operation,t);case "params":{let n=storage.storage.get(`${k}${narration.narration.labels.opened.length-1}`)||[];if(n&&n.length>e.key)return n[e.key];r.warn("getValue params not found");return}}return e}function ye(e,t){if(!e)return false;if(typeof e!="object"||!("type"in e))return !!e;switch(e.type){case "compare":{let n=core.JsonUnifier.getLogichValue(e.leftValue,t),i=core.JsonUnifier.getLogichValue(e.rightValue,t);switch(e.operator){case "==":return Array.isArray(n)&&Array.isArray(i)?n.length===i.length&&n.every(a=>i.includes(a)):n===i;case "!=":return Array.isArray(n)&&Array.isArray(i)?n.length!==i.length||!n.every(a=>i.includes(a)):n!==i;case "<":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)<0:Array.isArray(n)&&Array.isArray(i)?n.length<i.length:n<i;case "<=":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)<=0:Array.isArray(n)&&Array.isArray(i)?n.length<=i.length:n<=i;case ">":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)>0:Array.isArray(n)&&Array.isArray(i)?n.length>i.length:n>i;case ">=":return typeof n=="string"&&typeof i=="string"?n.localeCompare(i)>=0:Array.isArray(n)&&Array.isArray(i)?n.length>=i.length:n>=i;case "CONTAINS":return Array.isArray(n)&&Array.isArray(i)?i.every(a=>n.includes(a)):Array.isArray(n)?n.includes(i):n.toString().includes(i.toString())}break}case "value":{let n=core.JsonUnifier.getLogichValue(e,t);return Array.isArray(n)?n.length>0:n&&typeof n=="object"?Object.keys(n).length>0:!!n}case "union":return le(e,t)}return !!e}function le(e,t){if(e.unionType==="not"){let i=D(e.condition,t);return Array.isArray(i)?i.length===0:i&&typeof i=="object"?Object.keys(i).length===0:!i}let n=i=>core.JsonUnifier.getLogichValue(i,t)||false;return e.unionType==="and"?e.conditions.every(n):e.conditions.some(n)}function me(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function E(e,t={}){if(Array.isArray(e)||!e)return e;if(e&&typeof e=="object"&&"type"in e)switch(e.type){case "resulttocombine":return be(e,t);case "ifelse":return core.JsonUnifier.getLogichValue(e.condition,t)?core.JsonUnifier.getLogichValue(e.then,t):core.JsonUnifier.getLogichValue(e.else,t);case "stepswitch":{let n=core.JsonUnifier.getLogichValue(e.elements,t)||[];if(n.length===0){r.error("getValueFromConditionalStatements elements.length === 0");return}switch(e.choiceType){case "random":{let i=me(0,n.length-1);return core.JsonUnifier.getLogichValue(n[i],t)}case "loop":{let i=narration.NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return i>n.length-1?(i=i%n.length,core.JsonUnifier.getLogichValue(n[i],t)):core.JsonUnifier.getLogichValue(n[i],t)}case "sequential":{let i,a=narration.NarrationManagerStatic.getCurrentStepTimesCounter(e.nestedId)-1;return e.end==="lastItem"&&(i=core.JsonUnifier.getLogichValue(n[n.length-1],t)),a>n.length-1?i:core.JsonUnifier.getLogichValue(n[a],t)}case "sequentialrandom":{let i=narration.NarrationManagerStatic.getRandomNumber(0,n.length-1,{nestedId:e.nestedId,onceOnly:true});if(i===void 0&&e.end==="lastItem"){let a=narration.NarrationManagerStatic.getCurrentStepTimesCounterData(e.nestedId);if(!a?.usedRandomNumbers){r.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}let o=a.usedRandomNumbers[`0-${n.length-1}`];return core.JsonUnifier.getLogichValue(n[o[o.length-1]],t)}if(i===void 0){r.warn("getValueFromConditionalStatements randomIndexWhitExclude == undefined");return}return core.JsonUnifier.getLogichValue(n[i],t)}}}}return e}function $(e,t={}){if(e.conditionalStep){let n=pixiVn.createExportableElement(core.JsonUnifier.getLogichValue(e.conditionalStep,t));if(n?.glueEnabled===void 0&&delete n?.glueEnabled,n?.goNextStep===void 0&&delete n?.goNextStep,n?.end===void 0&&delete n?.end,n?.choices===void 0&&delete n?.choices,n?.dialogue===void 0&&delete n?.dialogue,n?.labelToOpen===void 0&&delete n?.labelToOpen,n?.operations===void 0&&delete n?.operations,n){let i={...e,conditionalStep:void 0,...n};return $(i,t)}else narration.narration.dialogGlue&&(narration.narration.dialogGlue=false);}return e}function be(e,t){let n=e.firstItem,i=(e.secondConditionalItem??[]).flatMap(o=>Array.isArray(o)?o.map(y=>core.JsonUnifier.getLogichValue(y,t)):[core.JsonUnifier.getLogichValue(o,t)]),a=n?[n,...i]:i;if(a.length===0){r.warn("combinateResult toCheck.length === 0");return}if(typeof a[0]=="string")return translator.translator.t(a);if(typeof a[0]=="object"){let o=a,y,w=false,j=o.map((c,v)=>{c=$(c,t);let b=core.JsonUnifier.getLogichValue(c.dialogue,t)||"";return v===0?(y=core.JsonUnifier.getLogichValue(c.glueEnabled,t)||false,b):(typeof b=="object"&&"text"in b&&(b=`${b.character}: ${b.text}`),y===false&&w&&(b=`
2
2
 
3
- ${m}`),m&&(P=true),y=core.JsonUnifier.getLogichValue(p.glueEnabled,t)||false,m)}),x=core.JsonUnifier.getLogichValue(j[0],t),v=typeof x=="object"&&"character"in x?x.character:void 0,T=j.flatMap(p=>{let V;p&&typeof p=="object"&&"text"in p?V=p.text:V=p;let m;return Array.isArray(V)?m=V.map(U=>{let W=core.JsonUnifier.getLogichValue(U,t);return translator.translator.t(`${W}`)}):m=core.JsonUnifier.getLogichValue(V,t)||"",translator.translator.t(m)}),I=o.find(p=>p.end),F=o.find(p=>p.choices),E=false,L=false;o.length>0&&(o[0].glueEnabled&&o[0].goNextStep&&o[0].dialogue===void 0&&(narration.narration.dialogGlue=true),E=o[o.length-1].glueEnabled,L=o.reverse().find(p=>!(p.operations&&(!p.dialogue||!p.choices)))?.goNextStep);let q=o.find(p=>p.labelToOpen),J=[];return o.forEach(p=>{p.operations&&(J=[...J,...p.operations]);}),{dialogue:v?{character:v,text:T}:T,end:I?.end,choices:F?.choices,glueEnabled:E,goNextStep:L,labelToOpen:q?.labelToOpen,operations:J}}}exports.VariableGetter=void 0;(a=>{let e=new Set;function t(o){e.add(o);}a.add=t;function n(){e.clear();}a.clear=n;function i(o,y={}){let P=v=>D(v,y)??void 0,j=R(o,y);if(e.size===0)return P(j);let x=P;for(let v of e){let T=x;x=I=>v(I,T)??void 0;}return x(j)}a.getLogichValue=i;})(exports.VariableGetter||={});exports.ENTRANCE_TRANSITION_TYPES=Le;exports.animateOperation=Se;exports.canvasElementOperation=Ne;exports.canvasOperation=ke;exports.containerMemorySchema=ie;exports.effectOperation=Ce;exports.entranceTransitionKeySchemas=ae;exports.executeEntranceTransition=ze;exports.getConditionalStep=$;exports.getLogichValue=D;exports.getValueFromConditionalStatements=R;exports.imageContainerOperation=we;exports.imageOperation=Pe;exports.loadAssets=ge;exports.narrationOperation=$e;exports.setInitialStorageValue=bt;exports.setStorageValue=mt;exports.soundOperation=Ue;exports.textOperation=Te;exports.videoOperation=je;
3
+ ${b}`),b&&(w=true),y=core.JsonUnifier.getLogichValue(c.glueEnabled,t)||false,b)}),x=core.JsonUnifier.getLogichValue(j[0],t),V=typeof x=="object"&&"character"in x?x.character:void 0,S=j.flatMap(c=>{let v;c&&typeof c=="object"&&"text"in c?v=c.text:v=c;let b;return Array.isArray(v)?b=v.map(U=>{let W=core.JsonUnifier.getLogichValue(U,t);return translator.translator.t(`${W}`)}):b=core.JsonUnifier.getLogichValue(v,t)||"",translator.translator.t(b)}),I=o.find(c=>c.end),F=o.find(c=>c.choices),R=false,L=false;o.length>0&&(o[0].glueEnabled&&o[0].goNextStep&&o[0].dialogue===void 0&&(narration.narration.dialogGlue=true),R=o[o.length-1].glueEnabled,L=o.reverse().find(c=>!(c.operations&&(!c.dialogue||!c.choices)))?.goNextStep);let q=o.find(c=>c.labelToOpen),J=[];return o.forEach(c=>{c.operations&&(J=[...J,...c.operations]);}),{dialogue:V?{character:V,text:S}:S,end:I?.end,choices:F?.choices,glueEnabled:R,goNextStep:L,labelToOpen:q?.labelToOpen,operations:J}}}exports.VariableGetter=void 0;(a=>{let e=new Set;function t(o){e.add(o);}a.add=t;function n(){e.clear();}a.clear=n;function i(o,y={}){let w=V=>D(V,y)??void 0,j=E(o,y);if(e.size===0)return w(j);let x=w;for(let V of e){let S=x;x=I=>V(I,S)??void 0;}return x(j)}a.getLogichValue=i;})(exports.VariableGetter||={});exports.ENTRANCE_TRANSITION_TYPES=_e;exports.animateOperation=Ae;exports.animatedSpriteOperation=je;exports.canvasElementOperation=Ce;exports.canvasOperation=Ie;exports.containerMemorySchema=oe;exports.effectOperation=Je;exports.entranceTransitionKeySchemas=re;exports.executeEntranceTransition=Ge;exports.getConditionalStep=$;exports.getLogichValue=D;exports.getValueFromConditionalStatements=E;exports.imageContainerOperation=Te;exports.imageOperation=Ne;exports.loadAssets=xe;exports.narrationOperation=Ue;exports.setInitialStorageValue=gt;exports.setStorageValue=ft;exports.soundOperation=Be;exports.textOperation=ke;exports.videoOperation=Se;