@epam/ai-dial-celebrations 1.3.0-dev.28 → 1.3.0-dev.282

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.
Files changed (104) hide show
  1. package/celebration-capabilities-DABcz0mO.js +27 -0
  2. package/components/LottieScene/LottieScene.d.ts +14 -0
  3. package/components/LottieScene/LottieScene.d.ts.map +1 -0
  4. package/components/StaticTriggerDecoration/StaticTriggerDecoration.d.ts +14 -0
  5. package/components/StaticTriggerDecoration/StaticTriggerDecoration.d.ts.map +1 -0
  6. package/constants/celebration-capabilities.d.ts +3 -0
  7. package/constants/celebration-capabilities.d.ts.map +1 -0
  8. package/halloween/components/Halloween/HalloweenCandy.d.ts.map +1 -1
  9. package/halloween/components/Halloween/HalloweenMimic.d.ts.map +1 -1
  10. package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts.map +1 -1
  11. package/halloween/components/Halloween/HalloweenTrain.d.ts.map +1 -1
  12. package/halloween/utils/halloween-bowling.d.ts.map +1 -1
  13. package/halloween/utils/halloween-candy-plan.d.ts.map +1 -1
  14. package/halloween/utils/halloween-footprint-plan.d.ts.map +1 -1
  15. package/halloween/utils/halloween-raven-targets.d.ts.map +1 -1
  16. package/halloween/utils/halloween-skeleton-plan.d.ts.map +1 -1
  17. package/halloween/utils/halloween-witch-plan.d.ts.map +1 -1
  18. package/halloween.js +3109 -3277
  19. package/hooks/useLottieSceneSession.d.ts +1 -1
  20. package/hooks/useLottieSceneSession.d.ts.map +1 -1
  21. package/index.css +3 -2
  22. package/index.d.ts +3 -0
  23. package/index.d.ts.map +1 -1
  24. package/index.js +63 -62
  25. package/{lottie_light-DVla0_7m.js → lottie_light-DUHSXGUj.js} +1003 -1056
  26. package/models/celebration-pack.d.ts +126 -0
  27. package/models/celebration-pack.d.ts.map +1 -0
  28. package/models/lottie-scene.d.ts +17 -4
  29. package/models/lottie-scene.d.ts.map +1 -1
  30. package/new-year/components/NewYear/NewYearSceneOverlay.d.ts.map +1 -1
  31. package/new-year/components/NewYearReindeerTakeoff/NewYearReindeerTakeoff.d.ts +5 -0
  32. package/new-year/components/NewYearReindeerTakeoff/NewYearReindeerTakeoff.d.ts.map +1 -0
  33. package/new-year/components/NewYearReindeerTakeoff/ReindeerStill.d.ts +4 -0
  34. package/new-year/components/NewYearReindeerTakeoff/ReindeerStill.d.ts.map +1 -0
  35. package/new-year/components/NewYearSnowmanDelivery/NewYearSnowmanDelivery.d.ts +5 -0
  36. package/new-year/components/NewYearSnowmanDelivery/NewYearSnowmanDelivery.d.ts.map +1 -0
  37. package/new-year/components/NewYearSnowmanDelivery/SnowmanDeliveryStill.d.ts +4 -0
  38. package/new-year/components/NewYearSnowmanDelivery/SnowmanDeliveryStill.d.ts.map +1 -0
  39. package/new-year/constants/labels.d.ts +2 -3
  40. package/new-year/constants/labels.d.ts.map +1 -1
  41. package/new-year/constants/new-year.d.ts +3 -3
  42. package/new-year/constants/new-year.d.ts.map +1 -1
  43. package/new-year/event.d.ts.map +1 -1
  44. package/new-year/models/labels.d.ts +4 -6
  45. package/new-year/models/labels.d.ts.map +1 -1
  46. package/new-year/types/new-year.d.ts +17 -6
  47. package/new-year/types/new-year.d.ts.map +1 -1
  48. package/new-year/utils/gift-wrapping-composition.d.ts.map +1 -1
  49. package/new-year/utils/penguin-star-art.d.ts.map +1 -1
  50. package/new-year/utils/penguin-star-composition.d.ts.map +1 -1
  51. package/new-year/utils/reindeer-animation.d.ts +5 -0
  52. package/new-year/utils/reindeer-animation.d.ts.map +1 -0
  53. package/new-year/utils/reindeer-art.d.ts +58 -0
  54. package/new-year/utils/reindeer-art.d.ts.map +1 -0
  55. package/new-year/utils/reindeer-composition.d.ts +66 -0
  56. package/new-year/utils/reindeer-composition.d.ts.map +1 -0
  57. package/new-year/utils/reindeer-physics.d.ts +60 -0
  58. package/new-year/utils/reindeer-physics.d.ts.map +1 -0
  59. package/new-year/utils/reindeer-scene.d.ts +4 -0
  60. package/new-year/utils/reindeer-scene.d.ts.map +1 -0
  61. package/new-year/utils/reindeer-targets.d.ts +28 -0
  62. package/new-year/utils/reindeer-targets.d.ts.map +1 -0
  63. package/new-year/utils/reindeer-text.d.ts +14 -0
  64. package/new-year/utils/reindeer-text.d.ts.map +1 -0
  65. package/new-year/utils/snowman-delivery-animation.d.ts +7 -0
  66. package/new-year/utils/snowman-delivery-animation.d.ts.map +1 -0
  67. package/new-year/utils/snowman-delivery-art.d.ts +96 -0
  68. package/new-year/utils/snowman-delivery-art.d.ts.map +1 -0
  69. package/new-year/utils/snowman-delivery-card.d.ts +12 -0
  70. package/new-year/utils/snowman-delivery-card.d.ts.map +1 -0
  71. package/new-year/utils/snowman-delivery-composition.d.ts +161 -0
  72. package/new-year/utils/snowman-delivery-composition.d.ts.map +1 -0
  73. package/new-year/utils/snowman-delivery-rig.d.ts +87 -0
  74. package/new-year/utils/snowman-delivery-rig.d.ts.map +1 -0
  75. package/new-year/utils/snowman-delivery-targets.d.ts +65 -0
  76. package/new-year/utils/snowman-delivery-targets.d.ts.map +1 -0
  77. package/new-year/utils/snowman-delivery-timeline.d.ts +47 -0
  78. package/new-year/utils/snowman-delivery-timeline.d.ts.map +1 -0
  79. package/new-year.js +3474 -1026
  80. package/package.json +9 -4
  81. package/packs/index.d.ts +6 -0
  82. package/packs/index.d.ts.map +1 -0
  83. package/packs.js +197 -0
  84. package/scene-targets-C5LEjDnN.js +180 -0
  85. package/types/celebration-pack.d.ts +82 -0
  86. package/types/celebration-pack.d.ts.map +1 -0
  87. package/useLottieSceneSession-FcSRnJ26.js +204 -0
  88. package/useReducedMotion-BWIeAFB_.js +8 -0
  89. package/utils/celebration-descriptor-event.d.ts +9 -0
  90. package/utils/celebration-descriptor-event.d.ts.map +1 -0
  91. package/utils/celebration-pack-scene.d.ts +19 -0
  92. package/utils/celebration-pack-scene.d.ts.map +1 -0
  93. package/utils/celebration-snapshots.d.ts.map +1 -1
  94. package/utils/celebration-variant.d.ts +7 -0
  95. package/utils/celebration-variant.d.ts.map +1 -0
  96. package/utils/lottie-scene-session.d.ts +1 -1
  97. package/utils/lottie-scene-session.d.ts.map +1 -1
  98. package/flying-characters-Czuzwf8T.js +0 -40
  99. package/new-year/components/NewYear/NewYearParticles.d.ts +0 -10
  100. package/new-year/components/NewYear/NewYearParticles.d.ts.map +0 -1
  101. package/new-year/components/NewYear/NewYearSleigh.d.ts +0 -3
  102. package/new-year/components/NewYear/NewYearSleigh.d.ts.map +0 -1
  103. package/new-year/components/NewYear/particles.d.ts +0 -5
  104. package/new-year/components/NewYear/particles.d.ts.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { CelebrationAnchors } from '../../models/celebration';
2
+ import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
3
+ import { ReindeerPoint } from './reindeer-art';
4
+ import { ReindeerText } from './reindeer-text';
5
+ /** All geometry is measured once in viewport pixels before the session starts. */
6
+ export interface ReindeerTargets {
7
+ width: number;
8
+ height: number;
9
+ scale: number;
10
+ dir: number;
11
+ origin: ReindeerPoint;
12
+ catchPoint: ReindeerPoint;
13
+ bounds: {
14
+ left: number;
15
+ right: number;
16
+ };
17
+ rim: {
18
+ left: number;
19
+ right: number;
20
+ };
21
+ composer: CelebrationSnapshotTarget | null;
22
+ word: ReindeerText | null;
23
+ watched: HTMLElement[];
24
+ isStatic: boolean;
25
+ }
26
+ /** The input's upper border supports the cast; only a word is visually borrowed. */
27
+ export declare const getReindeerTargets: (anchors: CelebrationAnchors, isMobile: boolean) => ReindeerTargets;
28
+ //# sourceMappingURL=reindeer-targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reindeer-targets.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/reindeer-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAGnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAErE,kFAAkF;AAClF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,aAAa,CAAC;IAC1B,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,QAAQ,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC3C,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,GAC7B,SAAS,kBAAkB,EAC3B,UAAU,OAAO,KAChB,eAmDF,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { CelebrationSnapshotTarget } from '../../utils/celebration-snapshots';
2
+ /** A measured word, never an editable clone or a mutation of the draft. */
3
+ export interface ReindeerText {
4
+ element: HTMLTextAreaElement;
5
+ rect: DOMRect;
6
+ text: string;
7
+ style: Partial<CSSStyleDeclaration>;
8
+ background: string;
9
+ }
10
+ /** Measure a short visible word with a disposable native-layout mirror. */
11
+ export declare const getReindeerText: (composer: CelebrationSnapshotTarget) => ReindeerText | null;
12
+ /** Cover only the word's original pixels; the real textarea stays untouched. */
13
+ export declare const animateReindeerText: (word: ReindeerText, host: HTMLElement, frames: Keyframe[], duration: number, startTime: number, caught: number, restored: number) => (() => void);
14
+ //# sourceMappingURL=reindeer-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reindeer-text.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/reindeer-text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,2EAA2E;AAC3E,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAkBD,2EAA2E;AAC3E,eAAO,MAAM,eAAe,GAC1B,UAAU,yBAAyB,KAClC,YAAY,GAAG,IA+GjB,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,mBAAmB,GAC9B,MAAM,YAAY,EAClB,MAAM,WAAW,EACjB,QAAQ,QAAQ,EAAE,EAClB,UAAU,MAAM,EAChB,WAAW,MAAM,EACjB,QAAQ,MAAM,EACd,UAAU,MAAM,KACf,CAAC,MAAM,IAAI,CAmDb,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { LottieScenePlayback, LottieSceneTimings } from '../../models/lottie-scene';
2
+ import { SnowmanDeliveryComposition } from './snowman-delivery-composition';
3
+ /** Load, readiness and playback deadlines; the provider lifetime adds a 2500 ms exit allowance. */
4
+ export declare const SNOWMAN_DELIVERY_TIMINGS: LottieSceneTimings;
5
+ /** The scene's contribution to its Lottie session: timings, single-use data, target observers and the synchronized card copy. */
6
+ export declare const SNOWMAN_DELIVERY_PLAYBACK: LottieScenePlayback<SnowmanDeliveryComposition>;
7
+ //# sourceMappingURL=snowman-delivery-animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowman-delivery-animation.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/snowman-delivery-animation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,gCAAgC,CAAC;AAExC,mGAAmG;AACnG,eAAO,MAAM,wBAAwB,EAAE,kBAItC,CAAC;AAgDF,iIAAiI;AACjI,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,0BAA0B,CAOnF,CAAC"}
@@ -0,0 +1,96 @@
1
+ import { Point } from './snowman-delivery-rig';
2
+ /** Native Lottie property, fixed or authored in keyframes. */
3
+ export interface SnowmanProperty {
4
+ /** Animation flag. */ a: number;
5
+ /** Fixed value or keyframes. */ k: unknown;
6
+ }
7
+ /** Native Lottie vector shape or group. */
8
+ export interface SnowmanShape {
9
+ /** Shape kind. */ ty: string;
10
+ /** Authoring name. */ nm?: string;
11
+ /** Nested shapes of a group. */ it?: SnowmanShape[];
12
+ [key: string]: unknown;
13
+ }
14
+ /** Native transform of a layer or a vector group. */
15
+ export interface SnowmanTransform {
16
+ /** Anchor. */ a: SnowmanProperty;
17
+ /** Position. */ p: SnowmanProperty;
18
+ /** Scale. */ s: SnowmanProperty;
19
+ /** Rotation. */ r: SnowmanProperty;
20
+ /** Opacity. */ o: SnowmanProperty;
21
+ }
22
+ /** A fixed native property. */
23
+ export declare const fixed: (k: unknown) => SnowmanProperty;
24
+ /** An identity transform, optionally pivoting at `anchor`. */
25
+ export declare const identity: (anchor?: Point) => SnowmanTransform;
26
+ /** Flat palette: blue shadows and a dark contour keep snow readable on white and dark hosts. */
27
+ export declare const SNOWMAN_PALETTE: {
28
+ readonly snow: "#ffffff";
29
+ readonly shadow: "#c6d5ec";
30
+ readonly deepShadow: "#7d9cc7";
31
+ readonly ink: "#22304a";
32
+ readonly coal: "#1d2230";
33
+ readonly carrot: "#ef7a1d";
34
+ readonly scarf: "#8e2436";
35
+ readonly scarfDark: "#6a1626";
36
+ readonly mitten: "#2d4f86";
37
+ readonly twig: "#6b4a2b";
38
+ readonly present: "#c8323c";
39
+ readonly ribbon: "#f2c14e";
40
+ readonly fir: "#2f7d4f";
41
+ readonly firDark: "#21603b";
42
+ readonly trunk: "#6b4a2b";
43
+ readonly bauble: "#f2c14e";
44
+ readonly wood: "#b0743c";
45
+ };
46
+ /** A vector group with an optional fill, contour and transform. */
47
+ export declare const group: (nm: string, shapes: SnowmanShape[], paint?: {
48
+ fill?: string;
49
+ stroke?: string;
50
+ width?: number;
51
+ }, transform?: SnowmanTransform) => SnowmanShape;
52
+ /** Two snow balls with buttons; drawn in the rig frame, pivoting at the ground point. */
53
+ export declare const bodyArt: () => SnowmanShape[];
54
+ /** A stubby snow foot centred on its ground contact. */
55
+ export declare const footArt: () => SnowmanShape[];
56
+ /** Scarf knot the tail pivots at, in the rig frame. */
57
+ export declare const SCARF_KNOT: Point;
58
+ /** Burgundy scarf wrap with a separately rotating tail pivoting at the knot. */
59
+ export declare const scarfArt: () => SnowmanShape[];
60
+ /** Expression groups on the head; exactly one is visible at a time. */
61
+ export declare enum SnowmanFace {
62
+ Neutral = "neutral",
63
+ Idea = "idea",
64
+ Cautious = "cautious",
65
+ Smug = "smug",
66
+ Indignant = "indignant",
67
+ Sneeze = "sneeze"
68
+ }
69
+ /** Head drawn around its centre, facing +x: snow ball, eyes, carrot and the expression groups. */
70
+ export declare const headArt: () => SnowmanShape[];
71
+ /** A two-segment stick arm drawn from `shoulder` along +x; the forearm group bends at the elbow. */
72
+ export declare const armArt: (shoulder: Point) => SnowmanShape[];
73
+ /** A wrapped present, 22 × 18 units, standing on its bottom centre. */
74
+ export declare const presentArt: () => SnowmanShape[];
75
+ /** Present size, for grip and ground contact. */
76
+ export declare const PRESENT_SIZE: Point;
77
+ /** A small fir: trunk and three tiers, drawn from its ground centre. */
78
+ export declare const treeArt: () => SnowmanShape[];
79
+ /** Height of the fir in native units. */
80
+ export declare const TREE_HEIGHT = 92;
81
+ /** The middle bough on the snowman's side, pivoting at the trunk; the head lodges near its tip. */
82
+ export declare const branchArt: () => SnowmanShape[];
83
+ /** Bough pivot on the trunk and the socket the head lodges in, relative to the tree's ground centre. */
84
+ export declare const BRANCH_PIVOT: Point;
85
+ export declare const BRANCH_SOCKET: Point;
86
+ /** Needles drawn over the lodged head so it reads as inside the bough. */
87
+ export declare const needlesArt: () => SnowmanShape[];
88
+ /** A snowbank mound, 30 × 14 units, on its ground centre. */
89
+ export declare const snowbankArt: () => SnowmanShape[];
90
+ /** The ground strip: a snow ledge, platform or rim cap below the floor line. */
91
+ export declare const groundArt: (length: number, thickness: number) => SnowmanShape[];
92
+ /** A drawn wooden sled, centred on its bottom edge. */
93
+ export declare const sledArt: () => SnowmanShape[];
94
+ /** One snow puff particle centred on its origin. */
95
+ export declare const puffArt: (radius: number) => SnowmanShape[];
96
+ //# sourceMappingURL=snowman-delivery-art.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowman-delivery-art.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/snowman-delivery-art.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAEjE,8DAA8D;AAC9D,MAAM,WAAW,eAAe;IAC9B,sBAAsB,CAAC,CAAC,EAAE,MAAM,CAAC;IACjC,gCAAgC,CAAC,CAAC,EAAE,OAAO,CAAC;CAC7C;AACD,2CAA2C;AAC3C,MAAM,WAAW,YAAY;IAC3B,kBAAkB,CAAC,EAAE,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACnC,gCAAgC,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC;IACrD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD,qDAAqD;AACrD,MAAM,WAAW,gBAAgB;IAC/B,cAAc,CAAC,CAAC,EAAE,eAAe,CAAC;IAClC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC;IACpC,aAAa,CAAC,CAAC,EAAE,eAAe,CAAC;IACjC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC;IACpC,eAAe,CAAC,CAAC,EAAE,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,yCAAyC;AACzC,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,mGAAmG;AACnG,eAAO,MAAM,SAAS,QAAO,YAAY,EAkBxC,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,YAAY,EAAE,KAAiB,CAAC;AAC7C,eAAO,MAAM,aAAa,EAAE,KAAkB,CAAC;AAE/C,0EAA0E;AAC1E,eAAO,MAAM,UAAU,QAAO,YAAY,EAiBzC,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,WAAW,QAAO,YAAY,EAkB1C,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,SAAS,GACpB,QAAQ,MAAM,EACd,WAAW,MAAM,KAChB,YAAY,EAiBd,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,OAAO,QAAO,YAAY,EAwBtC,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,KAAG,YAAY,EAMpD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SnowmanCardFrame, SnowmanDeliveryComposition } from './snowman-delivery-composition';
2
+ /** WAAPI keyframes of the card copy, relative to the original rect. */
3
+ export declare const toCardKeyframes: (frames: SnowmanCardFrame[]) => Keyframe[];
4
+ /**
5
+ * Starts the borrowed card's inert copy on the Lottie clock: the copy and
6
+ * the original's opacity share `timelineZeroMs` as their start time. A stop
7
+ * before the restore time means the snapshot helper saw an interruption, so
8
+ * the scene is cancelled too. Returns the stop function, or `null` without a
9
+ * card.
10
+ */
11
+ export declare const startSnowmanCard: (composition: SnowmanDeliveryComposition, layer: HTMLElement, timelineZeroMs: number, onInterrupted: () => void) => (() => void) | null;
12
+ //# sourceMappingURL=snowman-delivery-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowman-delivery-card.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/snowman-delivery-card.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAChC,MAAM,gCAAgC,CAAC;AAExC,uEAAuE;AACvE,eAAO,MAAM,eAAe,GAAI,QAAQ,gBAAgB,EAAE,KAAG,QAAQ,EAMhE,CAAC;AAEN;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,0BAA0B,EACvC,OAAO,WAAW,EAClB,gBAAgB,MAAM,EACtB,eAAe,MAAM,IAAI,KACxB,CAAC,MAAM,IAAI,CAAC,GAAG,IAyBjB,CAAC"}
@@ -0,0 +1,161 @@
1
+ import { SnowmanShape, SnowmanTransform } from './snowman-delivery-art';
2
+ import { Point } from './snowman-delivery-rig';
3
+ import { SnowmanDeliveryTargets } from './snowman-delivery-targets';
4
+ /** One authored timeline: entrance, borrowing, ride, impact, recovery, return and exit. */
5
+ export declare const SNOWMAN_DELIVERY_MS = 25000;
6
+ /** Story beat times in seconds; the card's hide and restore offsets come from here. */
7
+ export declare const SNOWMAN_BEATS: {
8
+ readonly enterEnd: 1.2;
9
+ readonly lookTree: 1.5;
10
+ readonly lookDistance: 2.1;
11
+ readonly lookCard: 2.6;
12
+ readonly idea: 3;
13
+ readonly presentUp: 3.3;
14
+ readonly presentOnHead: 3.85;
15
+ readonly grip: 4.3;
16
+ readonly gripHeld: 4.42;
17
+ readonly tug1: 4.6;
18
+ readonly tug1End: 4.75;
19
+ readonly tug2: 4.8;
20
+ readonly free: 5.1;
21
+ readonly lowered: 5.6;
22
+ readonly release: 5.75;
23
+ readonly landed: 5.9;
24
+ readonly presentDown: 6;
25
+ readonly presentHeld: 6.5;
26
+ readonly seatReached: 7.2;
27
+ readonly footTest: 7.4;
28
+ readonly footTestEnd: 7.6;
29
+ readonly sit: 8.1;
30
+ readonly settled: 8.3;
31
+ readonly push1: 8.6;
32
+ readonly push1End: 8.8;
33
+ readonly push2: 9.2;
34
+ readonly push2End: 9.5;
35
+ readonly glide: 9.6;
36
+ readonly smug: 10.6;
37
+ readonly impact: 12;
38
+ readonly separation: 12.05;
39
+ readonly compressed: 12.1;
40
+ readonly rebound: 12.25;
41
+ readonly settledImpact: 12.45;
42
+ readonly standUp: 14.8;
43
+ readonly bow: 15.5;
44
+ readonly presentPlaced: 15.8;
45
+ readonly risen: 16.2;
46
+ readonly spread: 16.9;
47
+ readonly inhale: 17.3;
48
+ readonly sneeze: 17.8;
49
+ readonly branchRelease: 17.95;
50
+ readonly catch: 18.35;
51
+ readonly headOn: 18.9;
52
+ readonly realize: 19.3;
53
+ readonly headGrabbed: 19.5;
54
+ readonly swap: 19.85;
55
+ readonly corrected: 20.2;
56
+ readonly nudge: 20.45;
57
+ readonly straightened: 20.75;
58
+ readonly turn: 21;
59
+ readonly cardGrip: 21.4;
60
+ readonly cardGripHeld: 21.52;
61
+ readonly cardLifted: 21.85;
62
+ readonly walkedBack: 22.55;
63
+ readonly slotted: 23;
64
+ readonly cardRelease: 23.2;
65
+ readonly headHeld: 23.5;
66
+ readonly exited: 24.6;
67
+ };
68
+ /** Moments where one actor or prop visibly causes another to move; evidence for tests. */
69
+ export declare enum SnowmanContactKind {
70
+ Grip = "grip",
71
+ Release = "release",
72
+ Seat = "seat",
73
+ Impact = "impact",
74
+ Compression = "compression",
75
+ HeadLaunch = "head-launch",
76
+ HeadLodge = "head-lodge",
77
+ BranchRelease = "branch-release",
78
+ HeadCatch = "head-catch",
79
+ Slot = "slot"
80
+ }
81
+ /** One contact with its time; tests probe the plan around it. */
82
+ export interface SnowmanContact {
83
+ kind: SnowmanContactKind;
84
+ t: number;
85
+ }
86
+ /** World-pixel probe of the plan at one time, mirroring the renderer's interpolation. */
87
+ export interface SnowmanProbe {
88
+ gripFront: Point;
89
+ gripBack: Point;
90
+ neck: Point;
91
+ head: Point;
92
+ headAttached: boolean;
93
+ seat: Point;
94
+ feet: [Point, Point];
95
+ /** The card or sled's near-bottom corner and its rotation in degrees. */
96
+ sled: {
97
+ corner: Point;
98
+ rotation: number;
99
+ } | null;
100
+ /** The sled grips currently held, in world pixels. */
101
+ sledGrips: [Point, Point] | null;
102
+ present: Point;
103
+ presentGrips: [Point, Point] | null;
104
+ }
105
+ interface Layer {
106
+ ty: number;
107
+ ind: number;
108
+ nm: string;
109
+ parent?: number;
110
+ /** Precomposition asset of a `ty: 0` layer, with its size. */
111
+ refId?: string;
112
+ w?: number;
113
+ h?: number;
114
+ ip: number;
115
+ op: number;
116
+ st: number;
117
+ sr: number;
118
+ ks: SnowmanTransform;
119
+ shapes?: SnowmanShape[];
120
+ }
121
+ /** One WAAPI keyframe of the borrowed card's copy, relative to its original rect. */
122
+ export interface SnowmanCardFrame {
123
+ offset: number;
124
+ dx: number;
125
+ dy: number;
126
+ rotate: number;
127
+ opacity: number;
128
+ easing: string;
129
+ }
130
+ /** Lottie data, the borrowed card's synchronized track and probes for tests. */
131
+ export interface SnowmanDeliveryComposition {
132
+ targets: SnowmanDeliveryTargets;
133
+ animationData: {
134
+ v: string;
135
+ fr: number;
136
+ ip: number;
137
+ op: number;
138
+ w: number;
139
+ h: number;
140
+ nm: string;
141
+ ddd: number;
142
+ assets: {
143
+ id: string;
144
+ layers: Layer[];
145
+ }[];
146
+ layers: Layer[];
147
+ };
148
+ /** Keyframes of the card copy; empty with a drawn sled. */
149
+ cardFrames: SnowmanCardFrame[];
150
+ /** Grip contact and slot release, as offsets of the playback. */
151
+ cardHideAt: number;
152
+ cardRestoreAt: number;
153
+ contacts: SnowmanContact[];
154
+ /** Number of snow puff particles. */
155
+ particleCount: number;
156
+ probe: (seconds: number) => SnowmanProbe;
157
+ }
158
+ /** Compose the snowman, props and the card copy's track on one Lottie clock. */
159
+ export declare const buildSnowmanDeliveryComposition: (targets: SnowmanDeliveryTargets, isMobile: boolean) => SnowmanDeliveryComposition;
160
+ export {};
161
+ //# sourceMappingURL=snowman-delivery-composition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowman-delivery-composition.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/snowman-delivery-composition.ts"],"names":[],"mappings":"AACA,OAAO,EAqBL,KAAK,YAAY,EACjB,KA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AiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,qCAAqC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,YAAY,CAAC;CAC1C;AAgED,gFAAgF;AAChF,eAAO,MAAM,+BAA+B,GAC1C,SAAS,sBAAsB,EAC/B,UAAU,OAAO,KAChB,0BA+wCF,CAAC"}
@@ -0,0 +1,87 @@
1
+ /** A point in native snowman units or viewport pixels. */
2
+ export type Point = [number, number];
3
+ /**
4
+ * Snowman geometry in native units shared by the artwork, the composition
5
+ * and the card track. The ground is y = 0, y grows downward and the snowman
6
+ * faces +x; the scene mirrors x for travel toward −x.
7
+ */
8
+ export declare const SNOWMAN_RIG: {
9
+ readonly footBack: Point;
10
+ readonly footFront: Point;
11
+ readonly footRadius: Point;
12
+ readonly bottomBall: {
13
+ readonly center: Point;
14
+ readonly radius: 28;
15
+ };
16
+ readonly middleBall: {
17
+ readonly center: Point;
18
+ readonly radius: 20;
19
+ };
20
+ readonly neck: Point;
21
+ /** Head centre relative to the neck socket. */
22
+ readonly headOffset: Point;
23
+ readonly headRadius: 15;
24
+ /** Carrot base and tip relative to the head centre. */
25
+ readonly carrotBase: Point;
26
+ readonly carrotTip: Point;
27
+ readonly shoulderFront: Point;
28
+ readonly shoulderBack: Point;
29
+ readonly upperArm: 26;
30
+ readonly lowerArm: 24;
31
+ /** Mitten grip beyond the wrist, along the forearm. */
32
+ readonly gripReach: 5;
33
+ /** Bottom of the lower ball: rests on the seat while sitting. */
34
+ readonly seat: Point;
35
+ /** Highest mitten grip on tiptoe with both arms raised. */
36
+ readonly reach: 128;
37
+ /** Height band the standing cast needs above its floor. */
38
+ readonly castHeight: 150;
39
+ readonly baseWidth: 56;
40
+ /** Width and height of the drawn sled used when no card is borrowed. */
41
+ readonly sledSize: Point;
42
+ };
43
+ /** Scene scale of one native unit, in CSS pixels. */
44
+ export declare const SNOWMAN_SCALE: {
45
+ readonly desktop: 0.9;
46
+ readonly mobile: 0.68;
47
+ };
48
+ /** Elbow bend limits of the stick arms, in degrees. */
49
+ export declare const ELBOW_RANGE: {
50
+ readonly min: 20;
51
+ readonly max: 140;
52
+ };
53
+ /**
54
+ * Sled motion constants shared by staging and choreography: the two pushes
55
+ * cover `pushShare` of the travel, then the sled glides from a small speed
56
+ * with constant acceleration for `glideSeconds` until the snowbank stops it.
57
+ */
58
+ export declare const SNOWMAN_SLIDE: {
59
+ readonly pushShare: 0.1;
60
+ readonly glideSeconds: 2.4;
61
+ readonly startSpeedShare: 0.15;
62
+ };
63
+ /** Bounds of the detached head's flight time, in seconds. */
64
+ export declare const HEAD_FLIGHT: {
65
+ readonly min: 0.35;
66
+ readonly nominal: 0.5;
67
+ readonly max: 0.6;
68
+ };
69
+ /** Sled speed at the snowbank for a travel of `length`. */
70
+ export declare const glideEndSpeed: (length: number) => number;
71
+ /** Position of the glide at `phase` ∈ [0, 1] as a share of its length. */
72
+ export declare const glideProgress: (phase: number) => number;
73
+ /** Elbow and grip of a stick arm whose upper segment points at `upper` degrees and bends by `bend` degrees. */
74
+ export declare const armPose: (shoulder: Point, upper: number, bend: number) => {
75
+ elbow: Point;
76
+ wrist: Point;
77
+ grip: Point;
78
+ };
79
+ /**
80
+ * Upper-arm direction and elbow bend that put the grip on `target`, with
81
+ * the bend clamped to {@link ELBOW_RANGE}; `bendSign` picks the elbow side.
82
+ */
83
+ export declare const reachArm: (shoulder: Point, target: Point, bendSign?: 1 | -1) => {
84
+ upper: number;
85
+ bend: number;
86
+ };
87
+ //# sourceMappingURL=snowman-delivery-rig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowman-delivery-rig.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/snowman-delivery-rig.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,WAAW;uBACC,KAAK;wBACL,KAAK;yBACN,KAAK;;yBACO,KAAK;;;;yBACL,KAAK;;;mBACrB,KAAK;IACvB,+CAA+C;yBACvB,KAAK;;IAE7B,uDAAuD;yBAC/B,KAAK;wBACP,KAAK;4BACA,KAAK;2BACL,KAAK;;;IAGhC,uDAAuD;;IAEvD,iEAAiE;mBAChD,KAAK;IACtB,2DAA2D;;IAE3D,2DAA2D;;;IAG3D,wEAAwE;uBAClD,KAAK;CACnB,CAAC;AAEX,qDAAqD;AACrD,eAAO,MAAM,aAAa;;;CAA0C,CAAC;AAErE,uDAAuD;AACvD,eAAO,MAAM,WAAW;;;CAAiC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,6DAA6D;AAC7D,eAAO,MAAM,WAAW;;;;CAAiD,CAAC;AAE1E,2DAA2D;AAC3D,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,KAAG,MAM9C,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAG7C,CAAC;AAKF,+GAA+G;AAC/G,eAAO,MAAM,OAAO,GAClB,UAAU,KAAK,EACf,OAAO,MAAM,EACb,MAAM,MAAM,KACX;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,KAAK,CAAA;CAiB3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GACnB,UAAU,KAAK,EACf,QAAQ,KAAK,EACb,WAAU,CAAC,GAAG,CAAC,CAAK,KACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CA0B/B,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { CelebrationAnchors } from '../../models/celebration';
2
+ import { SnowmanStage } from '../types/new-year';
3
+ /** A live element and its bounds when the scene was prepared. */
4
+ export interface MeasuredElement {
5
+ element: HTMLElement;
6
+ rect: DOMRect;
7
+ }
8
+ /** A horizontal extent in viewport pixels. */
9
+ export interface Bounds {
10
+ left: number;
11
+ right: number;
12
+ }
13
+ /** Measured stage, staging mode and travel geometry of one activation, in viewport pixels. */
14
+ export interface SnowmanDeliveryTargets {
15
+ width: number;
16
+ height: number;
17
+ rtl: boolean;
18
+ mode: SnowmanStage;
19
+ /** CSS pixels per native unit. */
20
+ scale: number;
21
+ /** Viewport x direction of the slide toward the tree. */
22
+ dir: 1 | -1;
23
+ /** Viewport y of the ground the snowman stands on. */
24
+ floor: number;
25
+ /** Viewport x of the edge he enters from and leaves through. */
26
+ startEdge: number;
27
+ /** Where he stands to pick the card up and to set the sled down. */
28
+ stanceX: number;
29
+ /** Sled (card copy or drawn sled) size and its centre when placed. */
30
+ sled: {
31
+ width: number;
32
+ height: number;
33
+ startX: number;
34
+ };
35
+ /** Distance from the sled's front edge back to the seat. */
36
+ seatFromFront: number;
37
+ /** Sled travel from placement to the snowbank, including both pushes. */
38
+ slideLength: number;
39
+ /** Horizontal head flight from the neck at impact to the branch socket, and its duration. */
40
+ headFlight: {
41
+ distance: number;
42
+ seconds: number;
43
+ };
44
+ snowbankX: number;
45
+ /** Lower-branch socket the head lodges in. */
46
+ branchX: number;
47
+ treeX: number;
48
+ /** The borrowed starter card, or `null` for a drawn sled. */
49
+ card: MeasuredElement | null;
50
+ /** Horizontal extent of the welcome region; the scene is clipped to it. */
51
+ bounds: Bounds;
52
+ /** Host elements whose mutation or movement cancels the scene. */
53
+ watched: HTMLElement[];
54
+ }
55
+ /** He stands this far before the card's near edge to grip its bottom edge. */
56
+ export declare const STANCE_TO_CARD = 14;
57
+ /** The sled lands this far ahead of the stance, clear of his belly. */
58
+ export declare const STANCE_TO_SLED = 36;
59
+ /**
60
+ * Measures the host once and picks the first staging mode that fits:
61
+ * a ledge under the starter row, the composer rim with a borrowed card,
62
+ * the rim with a drawn sled, a snowy platform, or the static still.
63
+ */
64
+ export declare const getSnowmanDeliveryTargets: (anchors: CelebrationAnchors, isMobile: boolean) => SnowmanDeliveryTargets;
65
+ //# sourceMappingURL=snowman-delivery-targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowman-delivery-targets.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/snowman-delivery-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AASjD,iEAAiE;AACjE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,8CAA8C;AAC9C,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8FAA8F;AAC9F,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,YAAY,CAAC;IACnB,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACZ,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,WAAW,EAAE,MAAM,CAAC;IACpB,6FAA6F;IAC7F,UAAU,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC;IAC7B,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAgBD,8EAA8E;AAC9E,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,uEAAuE;AACvE,eAAO,MAAM,cAAc,KAAK,CAAC;AAoMjC;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,kBAAkB,EAC3B,UAAU,OAAO,KAChB,sBAmNF,CAAC"}
@@ -0,0 +1,47 @@
1
+ /** A keyframed value: a scalar or a point. */
2
+ export type Vec = number[];
3
+ /** Cubic-Bézier timing control points, as in CSS `cubic-bezier()`. */
4
+ export type Bezier = readonly [number, number, number, number];
5
+ /** How a segment eases from one key to the next. */
6
+ export type Ease = 'linear' | 'hold' | Bezier;
7
+ /** Slow-in, slow-out for authored poses. */
8
+ export declare const EASE: Bezier;
9
+ /** Accelerating start, for drops and launches. */
10
+ export declare const EASE_IN: Bezier;
11
+ /** Decelerating finish, for settling. */
12
+ export declare const EASE_OUT: Bezier;
13
+ interface Key {
14
+ t: number;
15
+ v: Vec;
16
+ ease: Ease;
17
+ }
18
+ /** Returns the eased progress of a cubic-Bézier timing curve at `x` ∈ [0, 1]. */
19
+ export declare const bezierProgress: ([x1, y1, x2, y2]: Bezier, x: number) => number;
20
+ /** One keyframed channel; the ease of a key shapes the segment that follows it. */
21
+ export declare class Track {
22
+ readonly keys: Key[];
23
+ constructor(initial?: Vec);
24
+ /** Sets the value at `t`, replacing a key at the same time. */
25
+ set(t: number, v: Vec | number, ease?: Ease): this;
26
+ /** Holds the current value until `t`, then keeps going from there. */
27
+ hold(t: number, ease?: Ease): this;
28
+ /** The interpolated value at `t`. */
29
+ value(t: number): Vec;
30
+ /** Scalar value at `t`. */
31
+ at(t: number): number;
32
+ /**
33
+ * Replaces keys inside [t0, t1] with linear samples of `sample` on a grid
34
+ * of about `step`, plus every time in `kinks`, so corners stay exact.
35
+ */
36
+ sample(t0: number, t1: number, step: number, sample: (t: number) => Vec, kinks?: number[]): this;
37
+ /**
38
+ * Drops linear keys that a straight line between the kept keys of the same
39
+ * linear run reproduces within `tolerance` (Douglas–Peucker over time), so
40
+ * dense samples cost keys only where the motion bends.
41
+ */
42
+ prune(tolerance: number): this;
43
+ /** Whether any two keys differ, so the channel must be animated. */
44
+ get isAnimated(): boolean;
45
+ }
46
+ export {};
47
+ //# sourceMappingURL=snowman-delivery-timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowman-delivery-timeline.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/snowman-delivery-timeline.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,MAAM,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;AAE3B,sEAAsE;AACtE,MAAM,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/D,oDAAoD;AACpD,MAAM,MAAM,IAAI,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C,4CAA4C;AAC5C,eAAO,MAAM,IAAI,EAAE,MAA2B,CAAC;AAC/C,kDAAkD;AAClD,eAAO,MAAM,OAAO,EAAE,MAAwB,CAAC;AAC/C,yCAAyC;AACzC,eAAO,MAAM,QAAQ,EAAE,MAAwB,CAAC;AAEhD,UAAU,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,GAAG,CAAC;IACP,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,iFAAiF;AACjF,eAAO,MAAM,cAAc,GAAI,kBAAkB,MAAM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