@ssgoi/core 3.5.0 → 4.0.0

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 (105) hide show
  1. package/dist/animator/integrator/double-spring-integrator.d.ts +25 -0
  2. package/dist/animator/integrator/double-spring-integrator.d.ts.map +1 -0
  3. package/dist/animator/integrator/index.d.ts +13 -0
  4. package/dist/animator/integrator/index.d.ts.map +1 -0
  5. package/dist/animator/integrator/inertia-integrator.d.ts +19 -0
  6. package/dist/animator/integrator/inertia-integrator.d.ts.map +1 -0
  7. package/dist/animator/integrator/provider.d.ts +22 -0
  8. package/dist/animator/integrator/provider.d.ts.map +1 -0
  9. package/dist/animator/integrator/spring-integrator.d.ts +13 -0
  10. package/dist/animator/integrator/spring-integrator.d.ts.map +1 -0
  11. package/dist/animator/integrator/types.d.ts +34 -0
  12. package/dist/animator/integrator/types.d.ts.map +1 -0
  13. package/dist/animator/multi-animator.d.ts +2 -2
  14. package/dist/animator/multi-animator.d.ts.map +1 -1
  15. package/dist/animator/{animate → runner}/css-runner.d.ts +2 -2
  16. package/dist/animator/runner/css-runner.d.ts.map +1 -0
  17. package/dist/animator/runner/provider.d.ts +35 -0
  18. package/dist/animator/runner/provider.d.ts.map +1 -0
  19. package/dist/animator/{animate → runner}/tick-runner.d.ts +2 -2
  20. package/dist/animator/runner/tick-runner.d.ts.map +1 -0
  21. package/dist/animator/runner/ticker.d.ts.map +1 -0
  22. package/dist/animator/{animate → runner}/types.d.ts +6 -3
  23. package/dist/animator/runner/types.d.ts.map +1 -0
  24. package/dist/animator/{index.d.ts → single-animator.d.ts} +17 -9
  25. package/dist/animator/single-animator.d.ts.map +1 -0
  26. package/dist/animator/{animation.d.ts → types.d.ts} +2 -2
  27. package/dist/animator/types.d.ts.map +1 -0
  28. package/dist/index.cjs +1 -1
  29. package/dist/index.js +479 -532
  30. package/dist/provider-B6Xnh0BA.cjs +1 -0
  31. package/dist/provider-CMBovM_W.js +134 -0
  32. package/dist/transition/transition-strategy.d.ts +2 -2
  33. package/dist/transition/transition-strategy.d.ts.map +1 -1
  34. package/dist/transitions/blur.d.ts +4 -4
  35. package/dist/transitions/blur.d.ts.map +1 -1
  36. package/dist/transitions/bounce.d.ts +4 -4
  37. package/dist/transitions/bounce.d.ts.map +1 -1
  38. package/dist/transitions/fade.d.ts +4 -4
  39. package/dist/transitions/fade.d.ts.map +1 -1
  40. package/dist/transitions/index.cjs +1 -1
  41. package/dist/transitions/index.d.ts +5 -0
  42. package/dist/transitions/index.d.ts.map +1 -1
  43. package/dist/transitions/index.js +141 -191
  44. package/dist/transitions/rotate.d.ts +4 -4
  45. package/dist/transitions/rotate.d.ts.map +1 -1
  46. package/dist/transitions/scale.d.ts +4 -4
  47. package/dist/transitions/scale.d.ts.map +1 -1
  48. package/dist/transitions/slide.d.ts +4 -4
  49. package/dist/transitions/slide.d.ts.map +1 -1
  50. package/dist/transitions/utils.d.ts +8 -0
  51. package/dist/transitions/utils.d.ts.map +1 -0
  52. package/dist/types.cjs +1 -1
  53. package/dist/types.d.ts +59 -3
  54. package/dist/types.d.ts.map +1 -1
  55. package/dist/types.js +6 -6
  56. package/dist/view-transitions/blind.d.ts +2 -3
  57. package/dist/view-transitions/blind.d.ts.map +1 -1
  58. package/dist/view-transitions/curtain-reveal.d.ts +2 -3
  59. package/dist/view-transitions/curtain-reveal.d.ts.map +1 -1
  60. package/dist/view-transitions/depth.d.ts +2 -2
  61. package/dist/view-transitions/depth.d.ts.map +1 -1
  62. package/dist/view-transitions/drill.d.ts +2 -2
  63. package/dist/view-transitions/drill.d.ts.map +1 -1
  64. package/dist/view-transitions/fade.d.ts +2 -3
  65. package/dist/view-transitions/fade.d.ts.map +1 -1
  66. package/dist/view-transitions/film.d.ts +2 -1
  67. package/dist/view-transitions/film.d.ts.map +1 -1
  68. package/dist/view-transitions/hero.d.ts +2 -2
  69. package/dist/view-transitions/hero.d.ts.map +1 -1
  70. package/dist/view-transitions/index.cjs +17 -17
  71. package/dist/view-transitions/index.d.ts +1 -0
  72. package/dist/view-transitions/index.d.ts.map +1 -1
  73. package/dist/view-transitions/index.js +863 -843
  74. package/dist/view-transitions/instagram.d.ts +2 -2
  75. package/dist/view-transitions/instagram.d.ts.map +1 -1
  76. package/dist/view-transitions/jaemin.d.ts +2 -2
  77. package/dist/view-transitions/jaemin.d.ts.map +1 -1
  78. package/dist/view-transitions/pinterest.d.ts +2 -2
  79. package/dist/view-transitions/pinterest.d.ts.map +1 -1
  80. package/dist/view-transitions/rotate.d.ts +5 -2
  81. package/dist/view-transitions/rotate.d.ts.map +1 -1
  82. package/dist/view-transitions/scroll.d.ts +2 -2
  83. package/dist/view-transitions/scroll.d.ts.map +1 -1
  84. package/dist/view-transitions/sheet.d.ts +2 -2
  85. package/dist/view-transitions/sheet.d.ts.map +1 -1
  86. package/dist/view-transitions/slide.d.ts +2 -2
  87. package/dist/view-transitions/slide.d.ts.map +1 -1
  88. package/dist/view-transitions/snap.d.ts +14 -0
  89. package/dist/view-transitions/snap.d.ts.map +1 -0
  90. package/dist/view-transitions/strip.d.ts +6 -2
  91. package/dist/view-transitions/strip.d.ts.map +1 -1
  92. package/dist/view-transitions/swap.d.ts +2 -2
  93. package/dist/view-transitions/swap.d.ts.map +1 -1
  94. package/package.json +1 -1
  95. package/dist/animator/animate/css-runner.d.ts.map +0 -1
  96. package/dist/animator/animate/index.d.ts +0 -42
  97. package/dist/animator/animate/index.d.ts.map +0 -1
  98. package/dist/animator/animate/tick-runner.d.ts.map +0 -1
  99. package/dist/animator/animate/types.d.ts.map +0 -1
  100. package/dist/animator/animation.d.ts.map +0 -1
  101. package/dist/animator/index.d.ts.map +0 -1
  102. package/dist/animator/spring-core.d.ts +0 -82
  103. package/dist/animator/spring-core.d.ts.map +0 -1
  104. package/dist/animator/ticker.d.ts.map +0 -1
  105. /package/dist/animator/{ticker.d.ts → runner/ticker.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","s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AM,MAAM,oBAAoB,GAAG;IACjC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CACzB,IAAI,EAAE,MAAM,KACT,UAAU,GAAG;IAAE,GAAG,EAAE,aAAa,CAAA;CAAE,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG;IACtE,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,WAAW,CAAA;KAAE,CAAC;IACzE,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,iBAAiB,EACjB,SAAS,GAAG,UAAU,CACvB,GAAG;IACF,OAAO,EAAE,oBAAoB,EAAE,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,WAAW,GACpB,2BAA2B,CA8C7B;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
package/dist/types.js CHANGED
@@ -31,7 +31,7 @@ async function k(n) {
31
31
  onEnd: e.onEnd,
32
32
  springs: [
33
33
  {
34
- spring: e.spring,
34
+ physics: e.physics,
35
35
  tick: e.tick,
36
36
  css: e.css
37
37
  }
@@ -39,9 +39,9 @@ async function k(n) {
39
39
  schedule: "parallel"
40
40
  });
41
41
  }
42
- function w(n, e) {
42
+ function y(n, e) {
43
43
  const r = n.schedule ?? "parallel", o = n.springs.map(
44
- (s) => {
44
+ (i) => {
45
45
  let t;
46
46
  switch (r) {
47
47
  case "parallel":
@@ -51,12 +51,12 @@ function w(n, e) {
51
51
  t = 1;
52
52
  break;
53
53
  case "stagger":
54
- t = Math.max(0, Math.min(1, s.offset ?? 0));
54
+ t = Math.max(0, Math.min(1, i.offset ?? 0));
55
55
  break;
56
56
  default:
57
57
  t = 0;
58
58
  }
59
- const { css: i, offset: m, ...c } = s, l = i ? typeof i == "function" ? e ? { element: e, style: i } : void 0 : { element: i.element, style: i.style } : void 0;
59
+ const { css: s, offset: m, ...c } = i, l = s ? typeof s == "function" ? e ? { element: e, style: s } : void 0 : { element: s.element, style: s.style } : void 0;
60
60
  return { ...c, css: l, normalizedOffset: t };
61
61
  }
62
62
  ), { schedule: g, ...a } = n;
@@ -70,7 +70,7 @@ export {
70
70
  u as isMultiSpring,
71
71
  S as isSingleSpring,
72
72
  d as isTickAnimation,
73
- w as normalizeMultiSpringSchedule,
73
+ y as normalizeMultiSpringSchedule,
74
74
  k as normalizeToMultiSpring,
75
75
  f as validateAnimationMode,
76
76
  h as validateSpringItem
@@ -1,7 +1,6 @@
1
- import { SpringConfig, SggoiTransition } from '../types';
1
+ import { SggoiTransition, PhysicsOptions } from '../types';
2
2
  interface BlindOptions {
3
- inSpring?: SpringConfig;
4
- outSpring?: SpringConfig;
3
+ physics?: PhysicsOptions;
5
4
  transitionDelay?: number;
6
5
  blindCount?: number;
7
6
  direction?: "horizontal" | "vertical";
@@ -1 +1 @@
1
- {"version":3,"file":"blind.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/blind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAGhB,MAAM,UAAU,CAAC;AAWlB,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eAuMlD,CAAC"}
1
+ {"version":3,"file":"blind.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/blind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAGf,cAAc,EACf,MAAM,UAAU,CAAC;AAelB,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eA0MlD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { SggoiTransition, SpringConfig } from '../types';
1
+ import { SggoiTransition, PhysicsOptions } from '../types';
2
2
  type CurtainShape = "circle" | "square" | "triangle";
3
3
  interface CurtainRevealOptions {
4
4
  /** Background style.
@@ -10,9 +10,8 @@ interface CurtainRevealOptions {
10
10
  background?: string;
11
11
  texts?: string[];
12
12
  shape?: CurtainShape;
13
- inSpring?: SpringConfig;
14
- outSpring?: SpringConfig;
15
13
  textStyle?: Partial<CSSStyleDeclaration>;
14
+ physics?: PhysicsOptions;
16
15
  }
17
16
  export declare const curtainReveal: (options?: CurtainRevealOptions) => SggoiTransition;
18
17
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"curtain-reveal.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/curtain-reveal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiD9D,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAErD,UAAU,oBAAoB;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC1C;AAmBD,eAAO,MAAM,aAAa,GACxB,UAAS,oBAAyB,KACjC,eA0HF,CAAC"}
1
+ {"version":3,"file":"curtain-reveal.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/curtain-reveal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAqDhE,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAErD,UAAU,oBAAoB;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAmBD,eAAO,MAAM,aAAa,GACxB,UAAS,oBAAyB,KACjC,eA6HF,CAAC"}
@@ -1,7 +1,7 @@
1
- import { SpringConfig, SggoiTransition } from '../types';
1
+ import { PhysicsOptions, SggoiTransition } from '../types';
2
2
  interface DepthOptions {
3
3
  direction?: "enter" | "exit";
4
- spring?: Partial<SpringConfig>;
4
+ physics?: PhysicsOptions;
5
5
  }
6
6
  /**
7
7
  * Material Design Z-Axis depth transition
@@ -1 +1 @@
1
- {"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/depth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAGhB,MAAM,UAAU,CAAC;AAoBlB,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAChC;AAoBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eAgKlD,CAAC"}
1
+ {"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/depth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAGhB,MAAM,UAAU,CAAC;AAsBlB,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAoBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eA4JlD,CAAC"}
@@ -1,8 +1,8 @@
1
- import { SpringConfig, SggoiTransition } from '../types';
1
+ import { PhysicsOptions, SggoiTransition } from '../types';
2
2
  interface DrillOptions {
3
3
  opacity?: boolean;
4
4
  direction?: "enter" | "exit";
5
- spring?: Partial<SpringConfig>;
5
+ physics?: PhysicsOptions;
6
6
  }
7
7
  export declare const drill: (options?: DrillOptions) => SggoiTransition;
8
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"drill.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/drill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAe3E,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eAmHlD,CAAC"}
1
+ {"version":3,"file":"drill.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/drill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAiB7E,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eAgHlD,CAAC"}
@@ -1,8 +1,7 @@
1
- import { SpringConfig, SggoiTransition } from '../types';
1
+ import { SggoiTransition, PhysicsOptions } from '../types';
2
2
  interface FadeOptions {
3
- inSpring?: SpringConfig;
4
- outSpring?: SpringConfig;
5
3
  transitionDelay?: number;
4
+ physics?: PhysicsOptions;
6
5
  }
7
6
  export declare const fade: (options?: FadeOptions) => SggoiTransition;
8
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAgB3E,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAyDhD,CAAC"}
1
+ {"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,cAAc,EAAE,MAAM,UAAU,CAAC;AAY7E,UAAU,WAAW;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAwDhD,CAAC"}
@@ -1,8 +1,9 @@
1
- import { SggoiTransition } from '../types';
1
+ import { PhysicsOptions, SggoiTransition } from '../types';
2
2
  interface FilmOptions {
3
3
  border?: {
4
4
  color?: string;
5
5
  };
6
+ physics?: PhysicsOptions;
6
7
  }
7
8
  export declare const film: (options?: FilmOptions) => SggoiTransition;
8
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"film.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/film.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EAGhB,MAAM,UAAU,CAAC;AAsBlB,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,eAAO,MAAM,IAAI,GAAI,UAAU,WAAW,KAAG,eA+J5C,CAAC"}
1
+ {"version":3,"file":"film.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/film.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,eAAe,EAGhB,MAAM,UAAU,CAAC;AAsBlB,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAU,WAAW,KAAG,eA+J5C,CAAC"}
@@ -1,6 +1,6 @@
1
- import { SpringConfig, SggoiTransition } from '../types';
1
+ import { SggoiTransition, PhysicsOptions } from '../types';
2
2
  interface HeroOptions {
3
- spring?: Partial<SpringConfig>;
3
+ physics?: PhysicsOptions;
4
4
  timeout?: number;
5
5
  maxDistance?: number;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI9D,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eA6KhD,CAAC"}
1
+ {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAQhE,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eA0KhD,CAAC"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=(t,n)=>{var r;t.style.position="absolute",t.style.width="100%",t.style.top=`${-1*(((r=n==null?void 0:n.scrollOffset)==null?void 0:r.y)??0)}px`,t.style.left="0"},N=t=>new Promise(n=>setTimeout(n,t));function x(t,n){function r(o){let d=0,s=0;const c=o.offsetWidth,e=o.offsetHeight;let i=o;for(;i;)d+=i.offsetTop,s+=i.offsetLeft,i=i.offsetParent;return d-=window.scrollY,s-=window.scrollX,{top:d,left:s,width:c,height:e}}const p=r(t),a=r(n);return new DOMRect(a.left-p.left,a.top-p.top,a.width,a.height)}function S(){let t,n;return{promise:new Promise((p,a)=>{t=p,n=a}),resolve:t,reject:n}}const Q={stiffness:80,damping:25},R={stiffness:75,damping:25},tt=300,nt=10,it="horizontal",st="#000000",et=(t={})=>{const{inSpring:n=R,outSpring:r=Q,transitionDelay:p=tt,blindCount:a=nt,direction:o=it,blindColor:d=st}=t;let s,c=null;const e=(i,y,h="left")=>{window.getComputedStyle(i).position==="static"&&(i.style.position="relative");const l=document.createElement("div");l.className="blind-container",l.style.cssText=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=(t,i)=>{var o;t.style.position="absolute",t.style.width="100%",t.style.top=`${-1*(((o=i==null?void 0:i.scrollOffset)==null?void 0:o.y)??0)}px`,t.style.left="0"},V=t=>new Promise(i=>setTimeout(i,t));function x(t,i){function o(s){let n=0,e=0;const c=s.offsetWidth,y=s.offsetHeight;let r=s;for(;r;)n+=r.offsetTop,e+=r.offsetLeft,r=r.offsetParent;return n-=window.scrollY,e-=window.scrollX,{top:n,left:e,width:c,height:y}}const l=o(t),a=o(i);return new DOMRect(a.left-l.left,a.top-l.top,a.width,a.height)}function E(){let t,i;return{promise:new Promise((l,a)=>{t=l,i=a}),resolve:t,reject:i}}const j={spring:{stiffness:80,damping:25}},N={spring:{stiffness:75,damping:25}},G=300,Z=10,J="horizontal",K="#000000",Q=(t={})=>{const{transitionDelay:i=G,blindCount:o=Z,direction:l=J,blindColor:a=K}=t,s=t.physics??N,n=t.physics??j;let e,c=null;const y=(r,d,h="left")=>{window.getComputedStyle(r).position==="static"&&(r.style.position="relative");const g=document.createElement("div");g.className="blind-container",g.style.cssText=`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -7,29 +7,29 @@
7
7
  pointer-events: none;
8
8
  z-index: 9999;
9
9
  overflow: hidden;
10
- `;const u=[];for(let b=0;b<a;b++){const f=document.createElement("div");if(o==="horizontal"){const $=100/a,w=`calc(${$}% + 1px)`;f.style.cssText=`
10
+ `;const p=[];for(let w=0;w<o;w++){const f=document.createElement("div");if(l==="horizontal"){const b=100/o,m=`calc(${b}% + 1px)`;f.style.cssText=`
11
11
  position: absolute;
12
- top: ${$*b}%;
12
+ top: ${b*w}%;
13
13
  left: 0;
14
14
  width: 100%;
15
- height: ${w};
16
- background: ${d};
17
- transform: scaleX(${y==="hidden"?0:1});
15
+ height: ${m};
16
+ background: ${a};
17
+ transform: scaleX(${d==="hidden"?0:1});
18
18
  transform-origin: ${h} center;
19
19
  will-change: transform;
20
- `}else{const $=100/a,w=`calc(${$}% + 1px)`;f.style.cssText=`
20
+ `}else{const b=100/o,m=`calc(${b}% + 1px)`;f.style.cssText=`
21
21
  position: absolute;
22
22
  top: 0;
23
- left: ${$*b}%;
24
- width: ${w};
23
+ left: ${b*w}%;
24
+ width: ${m};
25
25
  height: 100%;
26
- background: ${d};
27
- transform: scaleY(${y==="hidden"?0:1});
26
+ background: ${a};
27
+ transform: scaleY(${d==="hidden"?0:1});
28
28
  transform-origin: ${h==="left"?"top":"bottom"} center;
29
29
  will-change: transform;
30
- `}u.push(f),l.appendChild(f)}return i.appendChild(l),{container:l,blinds:u}};return{out:()=>{let i=null;s=new Promise(g=>{c=g});const y=g=>{const l=1-g;return{transform:o==="horizontal"?`scaleX(${l})`:`scaleY(${l})`}};return{springs:Array.from({length:a},(g,l)=>({spring:r,offset:.2,css:{get element(){return i==null?void 0:i.blinds[l]},style:y}})),schedule:"stagger",prepare:g=>{m(g),g.style.zIndex="1000",i=e(g,"hidden","left")},onStart:()=>{},onEnd:()=>{c&&c()}}},in:()=>{let i=null;const y=g=>{const l=1-g;return{transform:o==="horizontal"?`scaleX(${l})`:`scaleY(${l})`}};return{springs:Array.from({length:a},(g,l)=>({spring:n,offset:.2,css:{get element(){return i==null?void 0:i.blinds[l]},style:y}})),schedule:"stagger",prepare:g=>{g.style.position="relative",g.style.zIndex="0",i=e(g,"closed","right")},onStart:()=>{},wait:async()=>{s&&await s,await N(p)},onEnd:()=>{i&&i.container&&i.container.remove()}}}}},rt={stiffness:1,damping:1},at={stiffness:20,damping:25},ot="#000000",lt="circle",F="CURTAIN_REVEAL_OVERLAY_ID",ct={position:"fixed",inset:"0",width:"100vw",height:"100%",zIndex:"9999",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},dt={position:"relative",display:"inline-block",height:"5.5rem",overflow:"hidden"},pt={display:"flex",height:"100%",willChange:"transform",transition:"transform 0.3s ease"},yt={display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:"5.5rem",fontWeight:"900",letterSpacing:"0.02em",color:"#FFFFFF"},ht=.4,P=.5,gt=.2;function ut(t,n){switch(t){case"circle":return`circle(${n*100}% at 50% 50%)`;case"square":return`inset(${(1-n)*50}% round ${10*n}%)`;case"triangle":{const r=n*100;return`polygon(50% ${50-r}%, ${50-r}% ${50+r}%, ${50+r}% ${50+r}%)`}}}const ft=t=>t.reduce((n,r)=>n+r,0),wt=(t={})=>{const{background:n=ot,texts:r=[],shape:p=lt,inSpring:a=at,outSpring:o=rt,textStyle:d={}}=t;return{out:(s,c)=>{const e=s.style.opacity;return{spring:o,from:1,to:0,prepare:i=>{m(i,c),i.style.opacity="1"},tick:i=>{const y=Math.max(0,i-ht);s.style.opacity=String(y)},onEnd:()=>{s.style.opacity=e}}},in:s=>{let c=null,e=null,i=null;const y=document.body.style.overflow,h=document.getElementById(F);let g=[];const l=()=>{c=document.createElement("div"),c.id=F,Object.assign(c.style,ct,{background:n}),document.body.appendChild(c),e=document.createElement("div"),Object.assign(e.style,dt),c.appendChild(e),i=document.createElement("div"),Object.assign(i.style,pt),e.appendChild(i),r.forEach(u=>{const b=document.createElement("div");b.textContent=u,Object.assign(b.style,yt,d),i.appendChild(b)}),g=Array.from(i.children).map(u=>u.getBoundingClientRect().width)};return{spring:a,from:0,to:1,prepare:()=>{document.body.style.overflow="hidden",s.style.opacity="1",h==null||h.remove(),l(),c&&e&&(c.style.clipPath="none",e.style.transform="scale(1)")},tick:u=>{if(!(!c||!e||!i)){if(u<=P&&r.length>0){const b=u/P,f=Math.min(Math.floor(b*r.length),r.length-1),$=g[f]??0,w=ft(g.slice(0,f));e.style.width=`${$}px`,i.style.transform=`translateX(-${w}px)`}if(u>P){const f=1-Math.max(0,Math.min(1,(u-P)/gt));c.style.clipPath=ut(p,f),e.style.transform=`scale(${f})`}}},onEnd:()=>{c==null||c.remove(),c=e=i=null,document.body.style.overflow=y}}}}},bt={stiffness:300,damping:22,doubleSpring:.5},$t={stiffness:300,damping:22,doubleSpring:.5},C=.05;function k(t){const n=x(document.body,t.positionedParent),r=t.scroll.y,p=window.innerHeight-n.top;return{top:r,left:0,width:n.width,height:p}}const mt=(t={})=>{var d,s,c;const{direction:n="enter"}=t,r=n==="enter"?bt:$t,p={stiffness:((d=t.spring)==null?void 0:d.stiffness)??r.stiffness,damping:((s=t.spring)==null?void 0:s.damping)??r.damping,doubleSpring:((c=t.spring)==null?void 0:c.doubleSpring)??r.doubleSpring};let{promise:a,resolve:o}=S();return n==="enter"?{in:(e,i)=>{const y=k(i),h=y.left+y.width/2,g=y.top+y.height/2;return{spring:p,prepare:()=>{e.style.opacity="0",e.style.willChange="transform, opacity",e.style.backfaceVisibility="hidden",e.style.contain="layout paint",e.style.transformOrigin=`${h}px ${g}px`},wait:async()=>{if(a){await a;const l=S();a=l.promise,o=l.resolve}},css:l=>({transform:`scale(${1-C+l*C})`,opacity:l}),onEnd:()=>{e.style.opacity="1",e.style.willChange="auto",e.style.backfaceVisibility="",e.style.contain="",e.style.transformOrigin=""}}},out:(e,i)=>{const y=k(i),h=y.left+y.width/2,g=y.top+y.height/2+i.scrollOffset.y;return{spring:p,prepare:l=>{m(l,i),l.style.zIndex="-1",l.style.willChange="transform, opacity",l.style.backfaceVisibility="hidden",l.style.contain="layout paint",l.style.pointerEvents="none",l.style.transformOrigin=`${h}px ${g}px`},css:l=>({transform:`scale(${1+(1-l)*C})`,opacity:l}),onEnd:()=>{o&&o()}}}}:{in:(e,i)=>{const y=k(i),h=y.left+y.width/2,g=y.top+y.height/2;return{spring:p,prepare:()=>{e.style.opacity="0",e.style.willChange="transform, opacity",e.style.backfaceVisibility="hidden",e.style.contain="layout paint",e.style.transformOrigin=`${h}px ${g}px`},wait:async()=>{if(a){await a;const l=S();a=l.promise,o=l.resolve}},css:l=>({transform:`scale(${1+C-l*C})`,opacity:l}),onEnd:()=>{e.style.opacity="1",e.style.willChange="auto",e.style.backfaceVisibility="",e.style.contain="",e.style.transformOrigin=""}}},out:(e,i)=>{const y=k(i),h=y.left+y.width/2,g=y.top+y.height/2+i.scrollOffset.y;return{spring:p,prepare:l=>{m(l,i),l.style.zIndex="100",l.style.willChange="transform, opacity",l.style.backfaceVisibility="hidden",l.style.contain="layout paint",l.style.pointerEvents="none",l.style.transformOrigin=`${h}px ${g}px`},css:l=>({transform:`scale(${1-(1-l)*C})`,opacity:l}),onEnd:()=>{o&&o()}}}}},xt={stiffness:125,damping:14,doubleSpring:.5},Et={stiffness:128,damping:14,doubleSpring:.5},St=(t={})=>{var o,d,s;const{opacity:n=!1,direction:r="enter"}=t,p=r==="enter"?xt:Et,a={stiffness:((o=t.spring)==null?void 0:o.stiffness)??p.stiffness,damping:((d=t.spring)==null?void 0:d.damping)??p.damping,doubleSpring:((s=t.spring)==null?void 0:s.doubleSpring)??p.doubleSpring};return r==="enter"?{in:c=>({spring:a,prepare:()=>{c.style.willChange=n?"transform, opacity":"transform",c.style.backfaceVisibility="hidden",c.style.contain="layout paint"},css:e=>{const i={transform:`translate3d(${(1-e)*100}%, 0, 0)`};return n&&(i.opacity=e),i},onEnd:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain=""}}),out:(c,e)=>({spring:a,prepare:i=>{m(i,e),i.style.zIndex="-1",i.style.willChange=n?"transform, opacity":"transform",i.style.backfaceVisibility="hidden",i.style.contain="layout paint",i.style.pointerEvents="none"},css:i=>{const y={transform:`translate3d(${-(1-i)*20}%, 0, 0)`};return n&&(y.opacity=i),y}})}:{in:c=>({spring:a,prepare:()=>{c.style.willChange=n?"transform, opacity":"transform",c.style.backfaceVisibility="hidden",c.style.contain="layout paint"},css:e=>{const i={transform:`translate3d(${-(1-e)*20}%, 0, 0)`};return n&&(i.opacity=e),i},onEnd:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain=""}}),out:(c,e)=>({spring:a,prepare:i=>{m(i,e),i.style.zIndex="100",i.style.willChange=n?"transform, opacity":"transform",i.style.backfaceVisibility="hidden",i.style.contain="layout paint",i.style.pointerEvents="none"},css:i=>{const y={transform:`translate3d(${(1-i)*100}%, 0, 0)`};return n&&(y.opacity=i),y}})}},Ct={stiffness:180,damping:20,doubleSpring:!0},At={stiffness:170,damping:20,doubleSpring:!0},Pt=0,kt=(t={})=>{const{inSpring:n=At,outSpring:r=Ct,transitionDelay:p=Pt}=t;let{promise:a,resolve:o}=S();return{in:d=>({spring:n,prepare:()=>{d.style.opacity="0",d.style.willChange="opacity"},wait:async()=>{if(a){await a;const s=S();a=s.promise,o=s.resolve,await N(p)}},css:s=>({opacity:s}),onEnd:()=>{d.style.willChange="auto",d.style.opacity="1"}}),out:(d,s)=>({spring:r,css:c=>({opacity:c}),prepare:()=>{m(d,s),d.style.willChange="opacity"},onEnd:()=>{o&&o(),d.style.willChange="auto"}})}},Tt={scaleDown:{stiffness:20,damping:7},translate:{stiffness:15,damping:7},scaleUp:{stiffness:20,damping:7}},A={scaleDown:0,translate:.2,scaleUp:.8},Ot=.8,Lt="white",vt=t=>{var a;const n=Tt,r=Ot,p=((a=t==null?void 0:t.border)==null?void 0:a.color)??Lt;return{out:async(o,d)=>{const s=Y(d),c=x(document.body,d.positionedParent),e=_t(p,{...s,top:c.top}),i={scale:1,translateY:-s.top},y=()=>{o.style.transform=`translateY(${i.translateY}px) scale(${i.scale})`;const h=(s.width-s.width*i.scale)/2,g=(s.height-s.height*i.scale)/2;It(e,h,g)};return{springs:[{spring:n.scaleDown,offset:A.scaleDown,tick:h=>{const g=1-h;i.scale=1-(1-r)*g,y()}},{spring:n.translate,offset:A.translate,tick:h=>{const g=1-h;i.translateY=-s.top-s.height*g,y()}},{spring:n.scaleUp,offset:A.scaleUp,tick:h=>{const g=1-h;i.scale=r+(1-r)*g,y()}}],schedule:"stagger",prepare:()=>{m(o),V(o,s),U(o,s),Dt(o,s);for(const h of e)d.positionedParent.appendChild(h)},onEnd:()=>{o.style.clipPath="",o.style.transformOrigin="",setTimeout(()=>{for(const h of e)d.positionedParent.removeChild(h)},1e3)}}},in:async(o,d)=>{const s=Y(d),c={scale:r,translateY:-s.top+s.height},e=()=>{o.style.transform=`translateY(${c.translateY}px) scale(${c.scale})`};return{springs:[{spring:n.scaleDown,offset:A.scaleDown,tick:i=>{c.scale=1-(1-r)*i,e()}},{spring:n.translate,offset:A.translate,tick:i=>{c.translateY=-s.top+s.height*(1-i),e()}},{spring:n.scaleUp,offset:A.scaleUp,tick:i=>{c.scale=r+(1-r)*i,e()}}],schedule:"stagger",prepare:()=>{V(o,s),U(o,s),o.style.transform=`translateY(${-s.top+s.height}px) scale(${r})`},onEnd:()=>{o.style.clipPath="",o.style.transformOrigin="",o.style.transform=""}}}}};function It(t,n,r){const p=n*.7,a=r*.7;t.topLeft.style.transform=`translate(${p}px, ${a}px)`,t.topRight.style.transform=`translate(${-p}px, ${a}px)`,t.bottomLeft.style.transform=`translate(${p}px, ${-a}px)`,t.bottomRight.style.transform=`translate(${-p}px, ${-a}px)`}function _t(t="white",n){const a=document.createElement("div");a.style.position="fixed",a.style.pointerEvents="none",a.style.zIndex="9999",a.style.top=`${n.top-1}px`,a.style.left=`${n.left-1}px`,a.style.width="15px",a.style.height="15px";const o=document.createElement("div");o.style.position="absolute",o.style.width="15px",o.style.height="1px",o.style.backgroundColor=t,o.style.top="0",o.style.left="0";const d=document.createElement("div");d.style.position="absolute",d.style.width="1px",d.style.height="15px",d.style.backgroundColor=t,d.style.top="0",d.style.left="0",a.appendChild(o),a.appendChild(d);const s=document.createElement("div");s.style.position="fixed",s.style.pointerEvents="none",s.style.zIndex="9999",s.style.top=`${n.top-1}px`,s.style.left=`${n.left+n.width-15+1}px`,s.style.width="15px",s.style.height="15px";const c=document.createElement("div");c.style.position="absolute",c.style.width="15px",c.style.height="1px",c.style.backgroundColor=t,c.style.top="0",c.style.right="0";const e=document.createElement("div");e.style.position="absolute",e.style.width="1px",e.style.height="15px",e.style.backgroundColor=t,e.style.top="0",e.style.right="0",s.appendChild(c),s.appendChild(e);const i=document.createElement("div");i.style.position="fixed",i.style.pointerEvents="none",i.style.zIndex="9999",i.style.top=`${n.top+n.height-15+1}px`,i.style.left=`${n.left-1}px`,i.style.width="15px",i.style.height="15px";const y=document.createElement("div");y.style.position="absolute",y.style.width="15px",y.style.height="1px",y.style.backgroundColor=t,y.style.bottom="0",y.style.left="0";const h=document.createElement("div");h.style.position="absolute",h.style.width="1px",h.style.height="15px",h.style.backgroundColor=t,h.style.bottom="0",h.style.left="0",i.appendChild(y),i.appendChild(h);const g=document.createElement("div");g.style.position="fixed",g.style.pointerEvents="none",g.style.zIndex="9999",g.style.top=`${n.top+n.height-15+1}px`,g.style.left=`${n.left+n.width-15+1}px`,g.style.width="15px",g.style.height="15px";const l=document.createElement("div");l.style.position="absolute",l.style.width="15px",l.style.height="1px",l.style.backgroundColor=t,l.style.bottom="0",l.style.right="0";const u=document.createElement("div");return u.style.position="absolute",u.style.width="1px",u.style.height="15px",u.style.backgroundColor=t,u.style.bottom="0",u.style.right="0",g.appendChild(l),g.appendChild(u),{topLeft:a,topRight:s,bottomLeft:i,bottomRight:g,*[Symbol.iterator](){yield a,yield s,yield i,yield g}}}function Y(t){const n=x(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:n.width,height:window.innerHeight-n.top}}function V(t,n){const r=n.left+n.width/2,p=n.top+n.height/2;t.style.transformOrigin=`${r}px ${p}px`}function U(t,n){t.style.clipPath=`polygon(
31
- ${n.left}px ${n.top}px,
32
- ${n.left+n.width}px ${n.top}px,
33
- ${n.left+n.width}px ${n.top+n.height}px,
34
- ${n.left}px ${n.top+n.height}px
35
- )`}function Dt(t,n){t.style.transform=`translateY(${-n.top}px)`}function Ft(t,n){return t.querySelector(`[data-hero-key="${n}"]`)}const Yt=(t={})=>{var d,s;const n={stiffness:((d=t.spring)==null?void 0:d.stiffness)??300,damping:((s=t.spring)==null?void 0:s.damping)??30},r=t.timeout??300,p=t.maxDistance??700;let a=null,o=null;return{in:async(c,e)=>{const i=c,y=Array.from(i.querySelectorAll("[data-hero-key]"));if(y.length===0)return{spring:n,tick:()=>{}};if(!await new Promise(l=>{a?l(!0):(o=l,setTimeout(()=>{o=null,l(!1)},r))})||!a)return a=null,{spring:n,tick:()=>{}};const g=y.map(l=>{const u=l.getAttribute("data-hero-key");if(!u)return null;const b=Ft(a,u);if(!b)return null;const f=l,$=x(a,b),w=x(i,f),E=$.left-w.left-e.scrollOffset.x,W=$.top-w.top-e.scrollOffset.y,G=$.width/w.width,B=$.height/w.height,q=f.style.transform,j=f.style.position,Z=f.style.transformOrigin,J=f.style.zIndex,K=f.style.willChange;return{toEl:f,dx:E,dy:W,dw:G,dh:B,originalTransform:q,originalPosition:j,originalTransformOrigin:Z,originalZIndex:J,originalWillChange:K}}).filter(l=>l!==null&&Math.abs(l.dy)<=p);return a=null,g.length===0?{spring:n,tick:()=>{}}:{springs:g.map(({toEl:l,dx:u,dy:b,dw:f,dh:$})=>({spring:n,tick:w=>{l.style.transform=`translate(${(1-w)*u}px, ${(1-w)*b}px) scale(${w+(1-w)*f}, ${w+(1-w)*$})`}})),schedule:"parallel",prepare:()=>{g.forEach(({toEl:l})=>{l.style.position="relative",l.style.transformOrigin="top left",l.style.zIndex="1000",l.style.willChange="transform"})},onEnd:()=>{g.forEach(({toEl:l,originalTransform:u,originalPosition:b,originalTransformOrigin:f,originalZIndex:$,originalWillChange:w})=>{l.style.transform=u,l.style.position=b,l.style.transformOrigin=f,l.style.zIndex=$,l.style.willChange=w})}}},out:async c=>({spring:n,onStart:()=>{a=c,o&&(o(!0),o=null)},tick:()=>{},prepare:e=>{m(e),e.style.opacity="0"}})}},L={stiffness:140,damping:19,doubleSpring:.8};function Vt({detailRect:t,galleryRect:n,pageRect:r,scrollOffset:p}){const a=n.left-t.left+(n.width-t.width)/2-p.x,o=n.top-t.top+(n.height-t.height)/2-p.y,d=n.width/t.width,s=n.height/t.height,c=Math.max(d,s),e=t.top/r.height*100,i=(r.width-(t.left+t.width))/r.width*100,y=(r.height-(t.top+t.height))/r.height*100,h=t.left/r.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:l=>{const u=1-l;return{clipPath:`inset(${e*u}% ${i*u}% ${y*u}% ${h*u}%)`,transform:`translate(${a*u}px, ${o*u}px) scale(${1+(c-1)*u})`}}}}function Ut({detailRect:t,galleryRect:n,pageRect:r,scrollOffset:p}){const a=n.left-t.left+(n.width-t.width)/2+p.x,o=n.top-t.top+(n.height-t.height)/2+p.y,d=n.width/t.width,s=n.height/t.height,c=Math.min(d,s),e=t.top/r.height*100,i=(r.width-(t.left+t.width))/r.width*100,y=(r.height-(t.top+t.height))/r.height*100,h=t.left/r.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:l=>{const u=1-l;return{clipPath:`inset(${e*u}% ${i*u}% ${y*u}% ${h*u}%)`,transform:`translate(${a*u-p.x}px, ${o*u-p.y}px) scale(${1+(c-1)*u})`}}}}function Xt(t,n,r){const p=t.querySelector("[data-instagram-detail-key]"),a=n.querySelector("[data-instagram-detail-key]");if(t.querySelectorAll("[data-instagram-detail-key]").length>1||n.querySelectorAll("[data-instagram-detail-key]").length>1)return null;let o=null,d=null,s=!1;if(!p&&a){d=a;const i=d.getAttribute("data-instagram-detail-key");if(!i)return null;o=t.querySelector(`[data-instagram-gallery-key="${i}"]`),o&&(s=!0)}else if(p&&!a){d=p;const i=d.getAttribute("data-instagram-detail-key");if(!i)return null;o=n.querySelector(`[data-instagram-gallery-key="${i}"]`),o&&(s=!1)}if(!o||!d)return null;const c=x(s?t:n,o),e=x(s?n:t,d);if(s){const i=Vt({detailRect:e,galleryRect:c,pageRect:n.getBoundingClientRect(),scrollOffset:r});return n.style.transformOrigin=i.transformOrigin,{isEnterMode:!0,inAnimation:i.animate}}else{const i=Ut({detailRect:e,galleryRect:c,pageRect:t.getBoundingClientRect(),scrollOffset:r});return t.style.transformOrigin=i.transformOrigin,{isEnterMode:!1,outAnimation:i.animate}}}const zt=(t={})=>{var s,c,e;const n={stiffness:((s=t.spring)==null?void 0:s.stiffness)??L.stiffness,damping:((c=t.spring)==null?void 0:c.damping)??L.damping,doubleSpring:((e=t.spring)==null?void 0:e.doubleSpring)??L.doubleSpring},r=t.timeout??300;let p=null,a=null,o=null,d=null;return{in:async(i,{scrollOffset:y})=>{const h=i;return!await new Promise(l=>{p?l(!0):(a=l,setTimeout(()=>{a=null,l(!1)},r))})||!p?(d==null||d(),d=null,p=null,{spring:n,css:()=>({})}):(o=Xt(p,h,y),d==null||d(),d=null,o?(p=null,{spring:n,css:l=>o!=null&&o.inAnimation?o.inAnimation(l):{}}):(p=null,{spring:n,css:()=>({})}))},out:async(i,y)=>{const h=new Promise(g=>{d=g});return{spring:n,prepare:g=>{o!=null&&o.isEnterMode?m(g):(m(g,y),g.style.zIndex="-1")},wait:async()=>{p=i,a&&(a(!0),a=null),await h},css:g=>o!=null&&o.outAnimation?o.outAnimation(g):{}}}}};function Ht(t){const n=x(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:n.width,height:window.innerHeight-n.top}}const Mt=(t={})=>{var o,d;const n={stiffness:((o=t.spring)==null?void 0:o.stiffness)??50,damping:((d=t.spring)==null?void 0:d.damping)??30},r=t.initialRotation??45,p=t.initialScale??.01,a=t.rotationTriggerPoint??.8;return{out:async(s,c)=>{const e=s.style.opacity;return{spring:{stiffness:80,damping:25},from:1,to:0,prepare:()=>{m(s,c),s.style.opacity="1"},tick:i=>{s.style.opacity=String(i)},onEnd:()=>{s.style.opacity=e}}},in:async(s,c)=>{const e=Ht(c),i=s.style.transform,y=s.style.transformOrigin,h=s.style.position,g=s.style.zIndex;return{spring:n,from:0,to:1,prepare:()=>{const l=Math.min(e.width,e.height)*.4;s.style.setProperty("--max-border-radius",`${l}px`),s.style.setProperty("--border-radius-scale","1"),s.style.willChange="transform",s.style.backfaceVisibility="hidden";const u=e.left+e.width/2,b=e.top+e.height/2;s.style.transformOrigin=`${u}px ${b}px`,s.style.position="fixed",s.style.top=`${e.top}px`,s.style.left=`${e.left}px`,s.style.width=`${e.width}px`,s.style.height=`${e.height}px`,s.style.zIndex="1000",s.style.overflow="hidden",s.style.transform=`rotate(${r}deg) scale(${p}) translateZ(0)`,s.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",s.style.opacity="1"},tick:l=>{let u;if(l<=.05)u=p;else if(l<=a){const w=(l-.05)/(a-.05),E=Math.pow(w,9);u=p+(.8-p)*E}else{const w=(l-a)/(1-a);u=.8+.2*(1-Math.pow(1-w,3))}let b;const f=.7;if(l<=f)b=r;else{const w=(l-f)/(1-f),E=1-Math.pow(1-w,2);b=r*(1-E)}let $;if(l<=f)$=1;else{const w=(l-f)/(1-f);$=1-Math.pow(w,.5)}s.style.transform=`rotate(${b.toFixed(2)}deg) scale(${u.toFixed(4)}) translateZ(0)`,s.style.setProperty("--border-radius-scale",$.toFixed(4))},onEnd:()=>{s.style.willChange="",s.style.backfaceVisibility="",s.style.removeProperty("--max-border-radius"),s.style.removeProperty("--border-radius-scale"),s.style.transform=i,s.style.transformOrigin=y,s.style.position=h,s.style.zIndex=g,s.style.top="",s.style.left="",s.style.width="",s.style.height="",s.style.overflow="",s.style.borderRadius=""}}}}},v={stiffness:140,damping:19,doubleSpring:.7};function Nt({detailRect:t,galleryRect:n,pageRect:r,scrollOffset:p}){const a=n.left-t.left+(n.width-t.width)/2-p.x,o=n.top-t.top+(n.height-t.height)/2-p.y,d=n.width/t.width,s=n.height/t.height,c=Math.max(d,s),e=t.top/r.height*100,i=(r.width-(t.left+t.width))/r.width*100,y=(r.height-(t.top+t.height))/r.height*100,h=t.left/r.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:l=>{const u=1-l;return{clipPath:`inset(${e*u}% ${i*u}% ${y*u}% ${h*u}%)`,transform:`translate(${a*u}px, ${o*u}px) scale(${1+(c-1)*u})`}}}}function Wt({galleryRect:t,detailRect:n,scrollOffset:r}){const p=n.left-t.left+(n.width-t.width)/2+r.x,a=n.top-t.top+(n.height-t.height)/2+r.y,o=n.width/t.width,d=n.height/t.height,s=Math.max(o,d);return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:e=>{const i=1-e;return{transform:`translate(${p*i-r.x}px, ${a*i-r.y}px) scale(${1+(s-1)*i})`,opacity:`${1-i}`}}}}function Gt({galleryRect:t,detailRect:n,scrollOffset:r}){const p=n.left-t.left+(n.width-t.width)/2-r.x,a=n.top-t.top+(n.height-t.height)/2-r.y,o=n.width/t.width,d=n.height/t.height,s=Math.max(o,d);return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:e=>{const i=1-e,y=e;return{transform:`translate(${p*i}px, ${a*i}px) scale(${1+(s-1)*i})`,opacity:`${y}`}}}}function Bt({detailRect:t,galleryRect:n,pageRect:r,scrollOffset:p}){const a=n.left-t.left+(n.width-t.width)/2+p.x,o=n.top-t.top+(n.height-t.height)/2+p.y,d=n.width/t.width,s=n.height/t.height,c=Math.min(d,s),e=t.top/r.height*100,i=(r.width-(t.left+t.width))/r.width*100,y=(r.height-(t.top+t.height))/r.height*100,h=t.left/r.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:l=>{const u=1-l;return{clipPath:`inset(${e*u}% ${i*u}% ${y*u}% ${h*u}%)`,transform:`translate(${a*u-p.x}px, ${o*u-p.y}px) scale(${1+(c-1)*u})`}}}}function qt(t,n,r){const p=t.querySelector("[data-pinterest-detail-key]"),a=n.querySelector("[data-pinterest-detail-key]");if(t.querySelectorAll("[data-pinterest-detail-key]").length>1||n.querySelectorAll("[data-pinterest-detail-key]").length>1)return null;let o=null,d=null,s=!1;if(!p&&a){d=a;const i=d.getAttribute("data-pinterest-detail-key");if(!i)return null;o=t.querySelector(`[data-pinterest-gallery-key="${i}"]`),o&&(s=!0)}else if(p&&!a){d=p;const i=d.getAttribute("data-pinterest-detail-key");if(!i)return null;o=n.querySelector(`[data-pinterest-gallery-key="${i}"]`),o&&(s=!1)}if(!o||!d)return null;const c=x(s?t:n,o),e=x(s?n:t,d);if(s){const i=Nt({detailRect:e,galleryRect:c,pageRect:n.getBoundingClientRect(),scrollOffset:r}),y=Wt({galleryRect:c,detailRect:e,scrollOffset:r});return n.style.transformOrigin=i.transformOrigin,t.style.transformOrigin=y.transformOrigin,{inAnimation:i.animate,outAnimation:y.animate}}else{const i=Gt({galleryRect:c,detailRect:e,scrollOffset:r}),y=Bt({detailRect:e,galleryRect:c,pageRect:t.getBoundingClientRect(),scrollOffset:r});return n.style.transformOrigin=i.transformOrigin,t.style.transformOrigin=y.transformOrigin,{inAnimation:i.animate,outAnimation:y.animate}}}const jt=(t={})=>{var s,c,e;const n={stiffness:((s=t.spring)==null?void 0:s.stiffness)??v.stiffness,damping:((c=t.spring)==null?void 0:c.damping)??v.damping,doubleSpring:((e=t.spring)==null?void 0:e.doubleSpring)??v.doubleSpring},r=t.timeout??300;let p=null,a=null,o=null,d=null;return{in:async(i,{scrollOffset:y})=>{const h=i;return!await new Promise(l=>{p?l(!0):(a=l,setTimeout(()=>{a=null,l(!1)},r))})||!p?(d==null||d(),d=null,p=null,{spring:n,css:()=>({})}):(o=qt(p,h,y),d==null||d(),d=null,o?(p=null,{spring:n,css:l=>o?o.inAnimation(l):{}}):(p=null,{spring:n,css:()=>({})}))},out:async i=>{const y=new Promise(h=>{d=h});return{spring:n,prepare:h=>{m(h),h.style.zIndex="-1"},wait:async()=>{p=i,a&&(a(!0),a=null),await y},css:h=>o?o.outAnimation(h):{}}}}},X={stiffness:100,damping:30},Zt=()=>({in:t=>({spring:X,prepare:()=>{t.style.opacity="0",t.style.transform="rotate(-180deg)",t.style.transformOrigin="center center",t.style.willChange="transform, opacity"},css:n=>({transform:`rotate(${(n-1)*180}deg)`,opacity:n>.5?1:0}),onEnd:()=>{t.style.willChange="auto",t.style.transform="",t.style.transformOrigin="",t.style.opacity=""}}),out:(t,n)=>({spring:X,prepare:()=>{m(t,n),t.style.transformOrigin="center center",t.style.willChange="transform, opacity"},css:r=>({transform:`rotate(${(1-r)*180}deg)`,opacity:r>.5?1:0}),onEnd:()=>{t.style.willChange="auto"}})}),z={stiffness:5,damping:4},Jt=(t={})=>{var c,e;const n=t.direction??"up",r={stiffness:((c=t.spring)==null?void 0:c.stiffness)??z.stiffness,damping:((e=t.spring)==null?void 0:e.damping)??z.damping},p=n==="up";let a=null,o=null,d=null;const s=()=>{if(a===null||o===null)return null;const i=Math.min(a,o),y=window.innerHeight;return Math.max(i,y)};return{in:i=>(o=i.offsetHeight,a!==null&&(d=s()),{spring:r,prepare:()=>{i.style.willChange="transform",i.style.backfaceVisibility="hidden",i.style.contain="layout paint"},tick:y=>{d===null&&(d=s());const h=d??window.innerHeight,g=p?(1-y)*h:(1-y)*-h;i.style.transform=`translate3d(0, ${g}px, 0)`},onEnd:()=>{i.style.willChange="auto",i.style.backfaceVisibility="",i.style.contain=""}}),out:(i,y)=>({spring:r,onStart:()=>{a=i.offsetHeight,o!==null&&(d=s())},tick:h=>{d===null&&(d=s());const g=d??window.innerHeight,l=p?(1-h)*-g:(1-h)*g;i.style.transform=`translate3d(0, ${l}px, 0)`},prepare:h=>{m(h,y),h.style.zIndex=p?"-1":"1",h.style.willChange="transform",h.style.backfaceVisibility="hidden",h.style.contain="layout paint",h.style.pointerEvents="none"}})}},Kt={stiffness:140,damping:15,doubleSpring:.5},Qt={stiffness:145,damping:15,doubleSpring:.5};function T(t){const n=x(document.body,t.positionedParent),r=t.scroll.y,p=window.innerHeight-n.top;return{top:r,left:0,width:n.width,height:p}}const Rt=(t={})=>{var a,o,d;const{direction:n="enter"}=t,r=n==="enter"?Kt:Qt,p={stiffness:((a=t.spring)==null?void 0:a.stiffness)??r.stiffness,damping:((o=t.spring)==null?void 0:o.damping)??r.damping,doubleSpring:((d=t.spring)==null?void 0:d.doubleSpring)??r.doubleSpring};return n==="enter"?{in:(s,c)=>{const i=T(c).height;return{spring:p,prepare:()=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"},css:y=>({transform:`translate3d(0, ${(1-y)*i}px, 0)`}),onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain=""}}},out:(s,c)=>{const e=T(c),i=e.left+e.width/2,y=e.top+e.height/2+c.scrollOffset.y;return{spring:p,prepare:h=>{m(h,c),h.style.zIndex="-1",h.style.willChange="transform, opacity",h.style.backfaceVisibility="hidden",h.style.contain="layout paint",h.style.pointerEvents="none",h.style.transformOrigin=`${i}px ${y}px`},css:h=>({transform:`scale(${.8+h*.2})`,opacity:h})}}}:{in:(s,c)=>{const e=T(c),i=e.left+e.width/2,y=e.top+e.height/2;return{spring:p,prepare:()=>{s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.transformOrigin=`${i}px ${y}px`},css:h=>({transform:`scale(${.8+h*.2})`,opacity:h}),onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain="",s.style.transformOrigin=""}}},out:(s,c)=>{const i=T(c).height;return{spring:p,prepare:y=>{m(y,c),y.style.zIndex="100",y.style.willChange="transform",y.style.backfaceVisibility="hidden",y.style.contain="layout paint",y.style.pointerEvents="none"},css:y=>({transform:`translate3d(0, ${(1-y)*i}px, 0)`})}}}},I={stiffness:140,damping:19,doubleSpring:.8},tn=(t={})=>{var a,o,d;const n=t.direction??"left",r={stiffness:((a=t.spring)==null?void 0:a.stiffness)??I.stiffness,damping:((o=t.spring)==null?void 0:o.damping)??I.damping,doubleSpring:((d=t.spring)==null?void 0:d.doubleSpring)??I.doubleSpring},p=n==="left";return{in:s=>({spring:r,prepare:()=>{s.style.willChange="transform",s.style.backfaceVisibility="hidden",s.style.contain="layout paint"},css:c=>({transform:`translate3d(${p?(1-c)*100:(1-c)*-100}%, 0, 0)`}),onEnd:()=>{s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain=""}}),out:(s,c)=>({spring:r,css:e=>({transform:`translate3d(${p?(1-e)*-100:(1-e)*100}%, 0, 0)`}),prepare:e=>{m(e,c),e.style.willChange="transform",e.style.backfaceVisibility="hidden",e.style.contain="layout paint",e.style.pointerEvents="none"}})}},H={stiffness:17,damping:6},_=20,O=800,nn=()=>{let t,n=null;return{in:r=>({spring:H,prepare:()=>{r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.transform=`perspective(${O}px) rotateY(${_}deg) translate3d(-100%, 0, 0)`},wait:async()=>{t&&await t},css:p=>{const a=(1-p)*_,o=-(1-p)*100;return{transform:`perspective(${O}px) rotateY(${a}deg) translate3d(${o}%, 0, 0)`}},onEnd:()=>{r.style.transform="",r.style.willChange="auto",r.style.backfaceVisibility="",r.style.contain=""}}),out:(r,p)=>(t=new Promise(a=>{n=a}),{spring:H,prepare:a=>{m(a,p),a.style.willChange="transform",a.style.backfaceVisibility="hidden",a.style.contain="layout paint",a.style.pointerEvents="none",a.style.transform=`perspective(${O}px) rotateY(0deg) translate3d(0%, 0, 0)`},css:a=>{const o=1-a,d=o*_,s=o*100;return{transform:`perspective(${O}px) rotateY(${-d}deg) translate3d(${s}%, 0, 0)`}},onEnd:()=>{n&&n(),r.style.transform=""}})}},D={stiffness:300,damping:22,doubleSpring:.5},M=.05;function sn(t){const n=x(document.body,t.positionedParent),r=t.scroll.y,p=window.innerHeight-n.top;return{top:r,left:0,width:n.width,height:p}}const en=(t={})=>{var a,o,d;const n={stiffness:((a=t.spring)==null?void 0:a.stiffness)??D.stiffness,damping:((o=t.spring)==null?void 0:o.damping)??D.damping,doubleSpring:((d=t.spring)==null?void 0:d.doubleSpring)??D.doubleSpring};let{promise:r,resolve:p}=S();return{in:(s,c)=>{const e=sn(c),i=e.left+e.width/2,y=e.top+e.height/2;return{spring:n,prepare:()=>{s.style.opacity="0",s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.transformOrigin=`${i}px ${y}px`},wait:async()=>{if(r){await r;const h=S();r=h.promise,p=h.resolve}},css:h=>({transform:`scale(${1-M+h*M})`,opacity:h}),onEnd:()=>{s.style.opacity="1",s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain="",s.style.transformOrigin=""}}},out:(s,c)=>({spring:n,prepare:e=>{m(e,c),e.style.willChange="opacity",e.style.backfaceVisibility="hidden",e.style.contain="layout paint",e.style.pointerEvents="none"},css:e=>({opacity:e}),onEnd:()=>{p&&p()}})}};exports.blind=et;exports.curtainReveal=wt;exports.depth=mt;exports.drill=St;exports.fade=kt;exports.film=vt;exports.hero=Yt;exports.instagram=zt;exports.jaemin=Mt;exports.pinterest=jt;exports.rotate=Zt;exports.scroll=Jt;exports.sheet=Rt;exports.slide=tn;exports.strip=nn;exports.swap=en;
30
+ `}p.push(f),g.appendChild(f)}return r.appendChild(g),{container:g,blinds:p}};return{out:()=>{let r=null;e=new Promise(u=>{c=u});const d=u=>{const g=1-u;return{transform:l==="horizontal"?`scaleX(${g})`:`scaleY(${g})`}};return{springs:Array.from({length:o},(u,g)=>({physics:n,offset:.2,css:{get element(){return r==null?void 0:r.blinds[g]},style:d}})),schedule:"stagger",prepare:u=>{$(u),u.style.zIndex="1000",r=y(u,"hidden","left")},onStart:()=>{},onEnd:()=>{c&&c()}}},in:()=>{let r=null;const d=u=>{const g=1-u;return{transform:l==="horizontal"?`scaleX(${g})`:`scaleY(${g})`}};return{springs:Array.from({length:o},(u,g)=>({physics:s,offset:.2,css:{get element(){return r==null?void 0:r.blinds[g]},style:d}})),schedule:"stagger",prepare:u=>{u.style.position="relative",u.style.zIndex="0",r=y(u,"closed","right")},onStart:()=>{},wait:async()=>{e&&await e,await V(i)},onEnd:()=>{r&&r.container&&r.container.remove()}}}}},R={spring:{stiffness:1,damping:1}},tt={spring:{stiffness:20,damping:25}},st="#000000",nt="circle",v="CURTAIN_REVEAL_OVERLAY_ID",it={position:"fixed",inset:"0",width:"100vw",height:"100%",zIndex:"9999",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},et={position:"relative",display:"inline-block",height:"5.5rem",overflow:"hidden"},rt={display:"flex",height:"100%",willChange:"transform",transition:"transform 0.3s ease"},at={display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:"5.5rem",fontWeight:"900",letterSpacing:"0.02em",color:"#FFFFFF"},ot=.4,A=.5,lt=.2;function ct(t,i){switch(t){case"circle":return`circle(${i*100}% at 50% 50%)`;case"square":return`inset(${(1-i)*50}% round ${10*i}%)`;case"triangle":{const o=i*100;return`polygon(50% ${50-o}%, ${50-o}% ${50+o}%, ${50+o}% ${50+o}%)`}}}const yt=t=>t.reduce((i,o)=>i+o,0),ht=(t={})=>{const{background:i=st,texts:o=[],shape:l=nt,textStyle:a={}}=t,s=t.physics??tt,n=t.physics??R;return{out:(e,c)=>{const y=e.style.opacity;return{physics:n,from:1,to:0,prepare:r=>{$(r,c),r.style.opacity="1"},tick:r=>{const d=Math.max(0,r-ot);e.style.opacity=String(d)},onEnd:()=>{e.style.opacity=y}}},in:e=>{let c=null,y=null,r=null;const d=document.body.style.overflow,h=document.getElementById(v);let u=[];const g=()=>{c=document.createElement("div"),c.id=v,Object.assign(c.style,it,{background:i}),document.body.appendChild(c),y=document.createElement("div"),Object.assign(y.style,et),c.appendChild(y),r=document.createElement("div"),Object.assign(r.style,rt),y.appendChild(r),o.forEach(p=>{const w=document.createElement("div");w.textContent=p,Object.assign(w.style,at,a),r.appendChild(w)}),u=Array.from(r.children).map(p=>p.getBoundingClientRect().width)};return{physics:s,from:0,to:1,prepare:()=>{document.body.style.overflow="hidden",e.style.opacity="1",h==null||h.remove(),g(),c&&y&&(c.style.clipPath="none",y.style.transform="scale(1)")},tick:p=>{if(!(!c||!y||!r)){if(p<=A&&o.length>0){const w=p/A,f=Math.min(Math.floor(w*o.length),o.length-1),b=u[f]??0,m=yt(u.slice(0,f));y.style.width=`${b}px`,r.style.transform=`translateX(-${m}px)`}if(p>A){const f=1-Math.max(0,Math.min(1,(p-A)/lt));c.style.clipPath=ct(l,f),y.style.transform=`scale(${f})`}}},onEnd:()=>{c==null||c.remove(),c=y=r=null,document.body.style.overflow=d}}}}},pt={inertia:{acceleration:50,resistance:1.5}},dt={inertia:{acceleration:50,resistance:1}},C=.05;function S(t){const i=x(document.body,t.positionedParent),o=t.scroll.y,l=window.innerHeight-i.top;return{top:o,left:0,width:i.width,height:l}}const ut=(t={})=>{const{direction:i="enter"}=t,o=t.physics??(i==="enter"?pt:dt);let{promise:l,resolve:a}=E();return i==="enter"?{in:(s,n)=>{const e=S(n),c=e.left+e.width/2,y=e.top+e.height/2;return{physics:o,prepare:()=>{s.style.opacity="0",s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.transformOrigin=`${c}px ${y}px`},wait:async()=>{if(l){await l;const r=E();l=r.promise,a=r.resolve}},css:r=>({transform:`scale(${1-C+r*C})`,opacity:r}),onEnd:()=>{s.style.opacity="1",s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain="",s.style.transformOrigin=""}}},out:(s,n)=>{const e=S(n),c=e.left+e.width/2,y=e.top+e.height/2+n.scrollOffset.y;return{physics:o,prepare:r=>{$(r,n),r.style.zIndex="-1",r.style.willChange="transform, opacity",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.pointerEvents="none",r.style.transformOrigin=`${c}px ${y}px`},css:r=>({transform:`scale(${1+(1-r)*C})`,opacity:r}),onEnd:()=>{a&&a()}}}}:{in:(s,n)=>{const e=S(n),c=e.left+e.width/2,y=e.top+e.height/2;return{physics:o,prepare:()=>{s.style.opacity="0",s.style.willChange="transform, opacity",s.style.backfaceVisibility="hidden",s.style.contain="layout paint",s.style.transformOrigin=`${c}px ${y}px`},wait:async()=>{if(l){await l;const r=E();l=r.promise,a=r.resolve}},css:r=>({transform:`scale(${1+C-r*C})`,opacity:r}),onEnd:()=>{s.style.opacity="1",s.style.willChange="auto",s.style.backfaceVisibility="",s.style.contain="",s.style.transformOrigin=""}}},out:(s,n)=>{const e=S(n),c=e.left+e.width/2,y=e.top+e.height/2+n.scrollOffset.y;return{physics:o,prepare:r=>{$(r,n),r.style.zIndex="100",r.style.willChange="transform, opacity",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.pointerEvents="none",r.style.transformOrigin=`${c}px ${y}px`},css:r=>({transform:`scale(${1-(1-r)*C})`,opacity:r}),onEnd:()=>{a&&a()}}}}},gt={inertia:{acceleration:20,resistance:1.5}},ft={inertia:{acceleration:20,resistance:1}},wt=(t={})=>{const{opacity:i=!1,direction:o="enter"}=t,l=t.physics??(o==="enter"?gt:ft);return o==="enter"?{in:a=>({physics:l,prepare:()=>{a.style.willChange=i?"transform, opacity":"transform",a.style.backfaceVisibility="hidden",a.style.contain="layout paint"},css:s=>{const n={transform:`translate3d(${(1-s)*100}%, 0, 0)`};return i&&(n.opacity=s),n},onEnd:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain=""}}),out:(a,s)=>({physics:l,prepare:n=>{$(n,s),n.style.zIndex="-1",n.style.willChange=i?"transform, opacity":"transform",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.pointerEvents="none"},css:n=>{const e={transform:`translate3d(${-(1-n)*20}%, 0, 0)`};return i&&(e.opacity=n),e}})}:{in:a=>({physics:l,prepare:()=>{a.style.willChange=i?"transform, opacity":"transform",a.style.backfaceVisibility="hidden",a.style.contain="layout paint"},css:s=>{const n={transform:`translate3d(${-(1-s)*20}%, 0, 0)`};return i&&(n.opacity=s),n},onEnd:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain=""}}),out:(a,s)=>({physics:l,prepare:n=>{$(n,s),n.style.zIndex="100",n.style.willChange=i?"transform, opacity":"transform",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.pointerEvents="none"},css:n=>{const e={transform:`translate3d(${(1-n)*100}%, 0, 0)`};return i&&(e.opacity=n),e}})}},$t={spring:{stiffness:180,damping:20,doubleSpring:!0}},bt={spring:{stiffness:170,damping:20,doubleSpring:!0}},xt=0,Et=(t={})=>{const{transitionDelay:i=xt}=t,o=t.physics??bt,l=t.physics??$t;let{promise:a,resolve:s}=E();return{in:n=>({physics:o,prepare:()=>{n.style.opacity="0",n.style.willChange="opacity"},wait:async()=>{if(a){await a;const e=E();a=e.promise,s=e.resolve,await V(i)}},css:e=>({opacity:e}),onEnd:()=>{n.style.willChange="auto",n.style.opacity="1"}}),out:(n,e)=>({physics:l,css:c=>({opacity:c}),prepare:()=>{$(n,e),n.style.willChange="opacity"},onEnd:()=>{s&&s(),n.style.willChange="auto"}})}},mt={scaleDown:{stiffness:20,damping:7},translate:{stiffness:15,damping:7},scaleUp:{stiffness:20,damping:7}},O={scaleDown:0,translate:.2,scaleUp:.8},Ct=.8,Ot="white",At=t=>{var a;const i=mt,o=Ct,l=((a=t==null?void 0:t.border)==null?void 0:a.color)??Ot;return{out:async(s,n)=>{const e=_(n),c=x(document.body,n.positionedParent),y=Tt(l,{...e,top:c.top}),r={scale:1,translateY:-e.top},d=()=>{s.style.transform=`translateY(${r.translateY}px) scale(${r.scale})`;const h=(e.width-e.width*r.scale)/2,u=(e.height-e.height*r.scale)/2;St(y,h,u)};return{springs:[{physics:(t==null?void 0:t.physics)??{spring:i.scaleDown},offset:O.scaleDown,tick:h=>{const u=1-h;r.scale=1-(1-o)*u,d()}},{physics:(t==null?void 0:t.physics)??{spring:i.translate},offset:O.translate,tick:h=>{const u=1-h;r.translateY=-e.top-e.height*u,d()}},{physics:(t==null?void 0:t.physics)??{spring:i.scaleUp},offset:O.scaleUp,tick:h=>{const u=1-h;r.scale=o+(1-o)*u,d()}}],schedule:"stagger",prepare:()=>{$(s),I(s,e),Y(s,e),Pt(s,e);for(const h of y)n.positionedParent.appendChild(h)},onEnd:()=>{s.style.clipPath="",s.style.transformOrigin="",setTimeout(()=>{for(const h of y)n.positionedParent.removeChild(h)},1e3)}}},in:async(s,n)=>{const e=_(n),c={scale:o,translateY:-e.top+e.height},y=()=>{s.style.transform=`translateY(${c.translateY}px) scale(${c.scale})`};return{springs:[{physics:(t==null?void 0:t.physics)??{spring:i.scaleDown},offset:O.scaleDown,tick:r=>{c.scale=1-(1-o)*r,y()}},{physics:(t==null?void 0:t.physics)??{spring:i.translate},offset:O.translate,tick:r=>{c.translateY=-e.top+e.height*(1-r),y()}},{physics:(t==null?void 0:t.physics)??{spring:i.scaleUp},offset:O.scaleUp,tick:r=>{c.scale=o+(1-o)*r,y()}}],schedule:"stagger",prepare:()=>{I(s,e),Y(s,e),s.style.transform=`translateY(${-e.top+e.height}px) scale(${o})`},onEnd:()=>{s.style.clipPath="",s.style.transformOrigin="",s.style.transform=""}}}}};function St(t,i,o){const l=i*.7,a=o*.7;t.topLeft.style.transform=`translate(${l}px, ${a}px)`,t.topRight.style.transform=`translate(${-l}px, ${a}px)`,t.bottomLeft.style.transform=`translate(${l}px, ${-a}px)`,t.bottomRight.style.transform=`translate(${-l}px, ${-a}px)`}function Tt(t="white",i){const a=document.createElement("div");a.style.position="fixed",a.style.pointerEvents="none",a.style.zIndex="9999",a.style.top=`${i.top-1}px`,a.style.left=`${i.left-1}px`,a.style.width="15px",a.style.height="15px";const s=document.createElement("div");s.style.position="absolute",s.style.width="15px",s.style.height="1px",s.style.backgroundColor=t,s.style.top="0",s.style.left="0";const n=document.createElement("div");n.style.position="absolute",n.style.width="1px",n.style.height="15px",n.style.backgroundColor=t,n.style.top="0",n.style.left="0",a.appendChild(s),a.appendChild(n);const e=document.createElement("div");e.style.position="fixed",e.style.pointerEvents="none",e.style.zIndex="9999",e.style.top=`${i.top-1}px`,e.style.left=`${i.left+i.width-15+1}px`,e.style.width="15px",e.style.height="15px";const c=document.createElement("div");c.style.position="absolute",c.style.width="15px",c.style.height="1px",c.style.backgroundColor=t,c.style.top="0",c.style.right="0";const y=document.createElement("div");y.style.position="absolute",y.style.width="1px",y.style.height="15px",y.style.backgroundColor=t,y.style.top="0",y.style.right="0",e.appendChild(c),e.appendChild(y);const r=document.createElement("div");r.style.position="fixed",r.style.pointerEvents="none",r.style.zIndex="9999",r.style.top=`${i.top+i.height-15+1}px`,r.style.left=`${i.left-1}px`,r.style.width="15px",r.style.height="15px";const d=document.createElement("div");d.style.position="absolute",d.style.width="15px",d.style.height="1px",d.style.backgroundColor=t,d.style.bottom="0",d.style.left="0";const h=document.createElement("div");h.style.position="absolute",h.style.width="1px",h.style.height="15px",h.style.backgroundColor=t,h.style.bottom="0",h.style.left="0",r.appendChild(d),r.appendChild(h);const u=document.createElement("div");u.style.position="fixed",u.style.pointerEvents="none",u.style.zIndex="9999",u.style.top=`${i.top+i.height-15+1}px`,u.style.left=`${i.left+i.width-15+1}px`,u.style.width="15px",u.style.height="15px";const g=document.createElement("div");g.style.position="absolute",g.style.width="15px",g.style.height="1px",g.style.backgroundColor=t,g.style.bottom="0",g.style.right="0";const p=document.createElement("div");return p.style.position="absolute",p.style.width="1px",p.style.height="15px",p.style.backgroundColor=t,p.style.bottom="0",p.style.right="0",u.appendChild(g),u.appendChild(p),{topLeft:a,topRight:e,bottomLeft:r,bottomRight:u,*[Symbol.iterator](){yield a,yield e,yield r,yield u}}}function _(t){const i=x(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:i.width,height:window.innerHeight-i.top}}function I(t,i){const o=i.left+i.width/2,l=i.top+i.height/2;t.style.transformOrigin=`${o}px ${l}px`}function Y(t,i){t.style.clipPath=`polygon(
31
+ ${i.left}px ${i.top}px,
32
+ ${i.left+i.width}px ${i.top}px,
33
+ ${i.left+i.width}px ${i.top+i.height}px,
34
+ ${i.left}px ${i.top+i.height}px
35
+ )`}function Pt(t,i){t.style.transform=`translateY(${-i.top}px)`}const kt={spring:{stiffness:300,damping:30}};function Lt(t,i){return t.querySelector(`[data-hero-key="${i}"]`)}const vt=(t={})=>{const i=t.physics??kt,o=t.timeout??300,l=t.maxDistance??700;let a=null,s=null;return{in:async(n,e)=>{const c=n,y=Array.from(c.querySelectorAll("[data-hero-key]"));if(y.length===0)return{physics:i,tick:()=>{}};if(!await new Promise(h=>{a?h(!0):(s=h,setTimeout(()=>{s=null,h(!1)},o))})||!a)return a=null,{physics:i,tick:()=>{}};const d=y.map(h=>{const u=h.getAttribute("data-hero-key");if(!u)return null;const g=Lt(a,u);if(!g)return null;const p=h,w=x(a,g),f=x(c,p),b=w.left-f.left-e.scrollOffset.x,m=w.top-f.top-e.scrollOffset.y,H=w.width/f.width,X=w.height/f.height,z=p.style.transform,M=p.style.position,W=p.style.transformOrigin,B=p.style.zIndex,q=p.style.willChange;return{toEl:p,dx:b,dy:m,dw:H,dh:X,originalTransform:z,originalPosition:M,originalTransformOrigin:W,originalZIndex:B,originalWillChange:q}}).filter(h=>h!==null&&Math.abs(h.dy)<=l);return a=null,d.length===0?{physics:i,tick:()=>{}}:{springs:d.map(({toEl:h,dx:u,dy:g,dw:p,dh:w})=>({physics:i,tick:f=>{h.style.transform=`translate(${(1-f)*u}px, ${(1-f)*g}px) scale(${f+(1-f)*p}, ${f+(1-f)*w})`}})),schedule:"parallel",prepare:()=>{d.forEach(({toEl:h})=>{h.style.position="relative",h.style.transformOrigin="top left",h.style.zIndex="1000",h.style.willChange="transform"})},onEnd:()=>{d.forEach(({toEl:h,originalTransform:u,originalPosition:g,originalTransformOrigin:p,originalZIndex:w,originalWillChange:f})=>{h.style.transform=u,h.style.position=g,h.style.transformOrigin=p,h.style.zIndex=w,h.style.willChange=f})}}},out:async n=>({physics:i,onStart:()=>{a=n,s&&(s(!0),s=null)},tick:()=>{},prepare:e=>{$(e),e.style.opacity="0"}})}},_t={spring:{stiffness:140,damping:19,doubleSpring:.8}};function It({detailRect:t,galleryRect:i,pageRect:o,scrollOffset:l}){const a=i.left-t.left+(i.width-t.width)/2-l.x,s=i.top-t.top+(i.height-t.height)/2-l.y,n=i.width/t.width,e=i.height/t.height,c=Math.max(n,e),y=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,d=(o.height-(t.top+t.height))/o.height*100,h=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:g=>{const p=1-g;return{clipPath:`inset(${y*p}% ${r*p}% ${d*p}% ${h*p}%)`,transform:`translate(${a*p}px, ${s*p}px) scale(${1+(c-1)*p})`}}}}function Yt({detailRect:t,galleryRect:i,pageRect:o,scrollOffset:l}){const a=i.left-t.left+(i.width-t.width)/2+l.x,s=i.top-t.top+(i.height-t.height)/2+l.y,n=i.width/t.width,e=i.height/t.height,c=Math.min(n,e),y=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,d=(o.height-(t.top+t.height))/o.height*100,h=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:g=>{const p=1-g;return{clipPath:`inset(${y*p}% ${r*p}% ${d*p}% ${h*p}%)`,transform:`translate(${a*p-l.x}px, ${s*p-l.y}px) scale(${1+(c-1)*p})`}}}}function Ft(t,i,o){const l=t.querySelector("[data-instagram-detail-key]"),a=i.querySelector("[data-instagram-detail-key]");if(t.querySelectorAll("[data-instagram-detail-key]").length>1||i.querySelectorAll("[data-instagram-detail-key]").length>1)return null;let s=null,n=null,e=!1;if(!l&&a){n=a;const r=n.getAttribute("data-instagram-detail-key");if(!r)return null;s=t.querySelector(`[data-instagram-gallery-key="${r}"]`),s&&(e=!0)}else if(l&&!a){n=l;const r=n.getAttribute("data-instagram-detail-key");if(!r)return null;s=i.querySelector(`[data-instagram-gallery-key="${r}"]`),s&&(e=!1)}if(!s||!n)return null;const c=x(e?t:i,s),y=x(e?i:t,n);if(e){const r=It({detailRect:y,galleryRect:c,pageRect:i.getBoundingClientRect(),scrollOffset:o});return i.style.transformOrigin=r.transformOrigin,{isEnterMode:!0,inAnimation:r.animate}}else{const r=Yt({detailRect:y,galleryRect:c,pageRect:t.getBoundingClientRect(),scrollOffset:o});return t.style.transformOrigin=r.transformOrigin,{isEnterMode:!1,outAnimation:r.animate}}}const Dt=(t={})=>{const i=t.physics??_t,o=t.timeout??300;let l=null,a=null,s=null,n=null;return{in:async(e,{scrollOffset:c})=>{const y=e;return!await new Promise(d=>{l?d(!0):(a=d,setTimeout(()=>{a=null,d(!1)},o))})||!l?(n==null||n(),n=null,l=null,{physics:i,css:()=>({})}):(s=Ft(l,y,c),n==null||n(),n=null,s?(l=null,{physics:i,css:d=>s!=null&&s.inAnimation?s.inAnimation(d):{}}):(l=null,{physics:i,css:()=>({})}))},out:async(e,c)=>{const y=new Promise(r=>{n=r});return{physics:i,prepare:r=>{s!=null&&s.isEnterMode?$(r):($(r,c),r.style.zIndex="-1")},wait:async()=>{l=e,a&&(a(!0),a=null),await y},css:r=>s!=null&&s.outAnimation?s.outAnimation(r):{}}}}},Ut={spring:{stiffness:50,damping:30}};function Vt(t){const i=x(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:i.width,height:window.innerHeight-i.top}}const Ht=(t={})=>{const i=t.physics??Ut,o=t.initialRotation??45,l=t.initialScale??.01,a=t.rotationTriggerPoint??.8;return{out:async(s,n)=>{const e=s.style.opacity;return{physics:{spring:{stiffness:80,damping:25}},from:1,to:0,prepare:()=>{$(s,n),s.style.opacity="1"},tick:c=>{s.style.opacity=String(c)},onEnd:()=>{s.style.opacity=e}}},in:async(s,n)=>{const e=Vt(n),c=s.style.transform,y=s.style.transformOrigin,r=s.style.position,d=s.style.zIndex;return{physics:i,from:0,to:1,prepare:()=>{const h=Math.min(e.width,e.height)*.4;s.style.setProperty("--max-border-radius",`${h}px`),s.style.setProperty("--border-radius-scale","1"),s.style.willChange="transform",s.style.backfaceVisibility="hidden";const u=e.left+e.width/2,g=e.top+e.height/2;s.style.transformOrigin=`${u}px ${g}px`,s.style.position="fixed",s.style.top=`${e.top}px`,s.style.left=`${e.left}px`,s.style.width=`${e.width}px`,s.style.height=`${e.height}px`,s.style.zIndex="1000",s.style.overflow="hidden",s.style.transform=`rotate(${o}deg) scale(${l}) translateZ(0)`,s.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",s.style.opacity="1"},tick:h=>{let u;if(h<=.05)u=l;else if(h<=a){const f=(h-.05)/(a-.05),b=Math.pow(f,9);u=l+(.8-l)*b}else{const f=(h-a)/(1-a);u=.8+.2*(1-Math.pow(1-f,3))}let g;const p=.7;if(h<=p)g=o;else{const f=(h-p)/(1-p),b=1-Math.pow(1-f,2);g=o*(1-b)}let w;if(h<=p)w=1;else{const f=(h-p)/(1-p);w=1-Math.pow(f,.5)}s.style.transform=`rotate(${g.toFixed(2)}deg) scale(${u.toFixed(4)}) translateZ(0)`,s.style.setProperty("--border-radius-scale",w.toFixed(4))},onEnd:()=>{s.style.willChange="",s.style.backfaceVisibility="",s.style.removeProperty("--max-border-radius"),s.style.removeProperty("--border-radius-scale"),s.style.transform=c,s.style.transformOrigin=y,s.style.position=r,s.style.zIndex=d,s.style.top="",s.style.left="",s.style.width="",s.style.height="",s.style.overflow="",s.style.borderRadius=""}}}}},Xt={spring:{stiffness:140,damping:19,doubleSpring:.7}};function zt({detailRect:t,galleryRect:i,pageRect:o,scrollOffset:l}){const a=i.left-t.left+(i.width-t.width)/2-l.x,s=i.top-t.top+(i.height-t.height)/2-l.y,n=i.width/t.width,e=i.height/t.height,c=Math.max(n,e),y=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,d=(o.height-(t.top+t.height))/o.height*100,h=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:g=>{const p=1-g;return{clipPath:`inset(${y*p}% ${r*p}% ${d*p}% ${h*p}%)`,transform:`translate(${a*p}px, ${s*p}px) scale(${1+(c-1)*p})`}}}}function Mt({galleryRect:t,detailRect:i,scrollOffset:o}){const l=i.left-t.left+(i.width-t.width)/2+o.x,a=i.top-t.top+(i.height-t.height)/2+o.y,s=i.width/t.width,n=i.height/t.height,e=Math.max(s,n);return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:y=>{const r=1-y;return{transform:`translate(${l*r-o.x}px, ${a*r-o.y}px) scale(${1+(e-1)*r})`,opacity:`${1-r}`}}}}function Wt({galleryRect:t,detailRect:i,scrollOffset:o}){const l=i.left-t.left+(i.width-t.width)/2-o.x,a=i.top-t.top+(i.height-t.height)/2-o.y,s=i.width/t.width,n=i.height/t.height,e=Math.max(s,n);return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:y=>{const r=1-y,d=y;return{transform:`translate(${l*r}px, ${a*r}px) scale(${1+(e-1)*r})`,opacity:`${d}`}}}}function Bt({detailRect:t,galleryRect:i,pageRect:o,scrollOffset:l}){const a=i.left-t.left+(i.width-t.width)/2+l.x,s=i.top-t.top+(i.height-t.height)/2+l.y,n=i.width/t.width,e=i.height/t.height,c=Math.min(n,e),y=t.top/o.height*100,r=(o.width-(t.left+t.width))/o.width*100,d=(o.height-(t.top+t.height))/o.height*100,h=t.left/o.width*100;return{transformOrigin:`${t.left+t.width/2}px ${t.top+t.height/2}px`,animate:g=>{const p=1-g;return{clipPath:`inset(${y*p}% ${r*p}% ${d*p}% ${h*p}%)`,transform:`translate(${a*p-l.x}px, ${s*p-l.y}px) scale(${1+(c-1)*p})`}}}}function qt(t,i,o){const l=t.querySelector("[data-pinterest-detail-key]"),a=i.querySelector("[data-pinterest-detail-key]");if(t.querySelectorAll("[data-pinterest-detail-key]").length>1||i.querySelectorAll("[data-pinterest-detail-key]").length>1)return null;let s=null,n=null,e=!1;if(!l&&a){n=a;const r=n.getAttribute("data-pinterest-detail-key");if(!r)return null;s=t.querySelector(`[data-pinterest-gallery-key="${r}"]`),s&&(e=!0)}else if(l&&!a){n=l;const r=n.getAttribute("data-pinterest-detail-key");if(!r)return null;s=i.querySelector(`[data-pinterest-gallery-key="${r}"]`),s&&(e=!1)}if(!s||!n)return null;const c=x(e?t:i,s),y=x(e?i:t,n);if(e){const r=zt({detailRect:y,galleryRect:c,pageRect:i.getBoundingClientRect(),scrollOffset:o}),d=Mt({galleryRect:c,detailRect:y,scrollOffset:o});return i.style.transformOrigin=r.transformOrigin,t.style.transformOrigin=d.transformOrigin,{inAnimation:r.animate,outAnimation:d.animate}}else{const r=Wt({galleryRect:c,detailRect:y,scrollOffset:o}),d=Bt({detailRect:y,galleryRect:c,pageRect:t.getBoundingClientRect(),scrollOffset:o});return i.style.transformOrigin=r.transformOrigin,t.style.transformOrigin=d.transformOrigin,{inAnimation:r.animate,outAnimation:d.animate}}}const jt=(t={})=>{const i=t.physics??Xt,o=t.timeout??300;let l=null,a=null,s=null,n=null;return{in:async(e,{scrollOffset:c})=>{const y=e;return!await new Promise(d=>{l?d(!0):(a=d,setTimeout(()=>{a=null,d(!1)},o))})||!l?(n==null||n(),n=null,l=null,{physics:i,css:()=>({})}):(s=qt(l,y,c),n==null||n(),n=null,s?(l=null,{physics:i,css:d=>s?s.inAnimation(d):{}}):(l=null,{physics:i,css:()=>({})}))},out:async e=>{const c=new Promise(y=>{n=y});return{physics:i,prepare:y=>{$(y),y.style.zIndex="-1"},wait:async()=>{l=e,a&&(a(!0),a=null),await c},css:y=>s?s.outAnimation(y):{}}}}},Nt={spring:{stiffness:100,damping:30}},Gt=(t={})=>{const i=t.physics??Nt;return{in:o=>({physics:i,prepare:()=>{o.style.opacity="0",o.style.transform="rotate(-180deg)",o.style.transformOrigin="center center",o.style.willChange="transform, opacity"},css:l=>({transform:`rotate(${(l-1)*180}deg)`,opacity:l>.5?1:0}),onEnd:()=>{o.style.willChange="auto",o.style.transform="",o.style.transformOrigin="",o.style.opacity=""}}),out:(o,l)=>({physics:i,prepare:()=>{$(o,l),o.style.transformOrigin="center center",o.style.willChange="transform, opacity"},css:a=>({transform:`rotate(${(1-a)*180}deg)`,opacity:a>.5?1:0}),onEnd:()=>{o.style.willChange="auto"}})}},Zt={spring:{stiffness:5,damping:4}},Jt=(t={})=>{const i=t.direction??"up",o=t.physics??Zt,l=i==="up";let a=null,s=null,n=null;const e=()=>{if(a===null||s===null)return null;const c=Math.min(a,s),y=window.innerHeight;return Math.max(c,y)};return{in:c=>(s=c.offsetHeight,a!==null&&(n=e()),{physics:o,prepare:()=>{c.style.willChange="transform",c.style.backfaceVisibility="hidden",c.style.contain="layout paint"},tick:y=>{n===null&&(n=e());const r=n??window.innerHeight,d=l?(1-y)*r:(1-y)*-r;c.style.transform=`translate3d(0, ${d}px, 0)`},onEnd:()=>{c.style.willChange="auto",c.style.backfaceVisibility="",c.style.contain=""}}),out:(c,y)=>({physics:o,onStart:()=>{a=c.offsetHeight,s!==null&&(n=e())},tick:r=>{n===null&&(n=e());const d=n??window.innerHeight,h=l?(1-r)*-d:(1-r)*d;c.style.transform=`translate3d(0, ${h}px, 0)`},prepare:r=>{$(r,y),r.style.zIndex=l?"-1":"1",r.style.willChange="transform",r.style.backfaceVisibility="hidden",r.style.contain="layout paint",r.style.pointerEvents="none"}})}},Kt={inertia:{acceleration:20,resistance:1.5}},Qt={inertia:{acceleration:20,resistance:1}};function T(t){const i=x(document.body,t.positionedParent),o=t.scroll.y,l=window.innerHeight-i.top;return{top:o,left:0,width:i.width,height:l}}const Rt=(t={})=>{const{direction:i="enter"}=t,o=t.physics??(i==="enter"?Kt:Qt);return i==="enter"?{in:(l,a)=>{const n=T(a).height;return{physics:o,prepare:()=>{l.style.willChange="transform",l.style.backfaceVisibility="hidden",l.style.contain="layout paint"},css:e=>({transform:`translate3d(0, ${(1-e)*n}px, 0)`}),onEnd:()=>{l.style.willChange="auto",l.style.backfaceVisibility="",l.style.contain=""}}},out:(l,a)=>{const s=T(a),n=s.left+s.width/2,e=s.top+s.height/2+a.scrollOffset.y;return{physics:o,prepare:c=>{$(c,a),c.style.zIndex="-1",c.style.willChange="transform, opacity",c.style.backfaceVisibility="hidden",c.style.contain="layout paint",c.style.pointerEvents="none",c.style.transformOrigin=`${n}px ${e}px`},css:c=>({transform:`scale(${.8+c*.2})`,opacity:c})}}}:{in:(l,a)=>{const s=T(a),n=s.left+s.width/2,e=s.top+s.height/2;return{physics:o,prepare:()=>{l.style.willChange="transform, opacity",l.style.backfaceVisibility="hidden",l.style.contain="layout paint",l.style.transformOrigin=`${n}px ${e}px`},css:c=>({transform:`scale(${.8+c*.2})`,opacity:c}),onEnd:()=>{l.style.willChange="auto",l.style.backfaceVisibility="",l.style.contain="",l.style.transformOrigin=""}}},out:(l,a)=>{const n=T(a).height;return{physics:o,prepare:e=>{$(e,a),e.style.zIndex="100",e.style.willChange="transform",e.style.backfaceVisibility="hidden",e.style.contain="layout paint",e.style.pointerEvents="none"},css:e=>({transform:`translate3d(0, ${(1-e)*n}px, 0)`})}}}},ts={spring:{stiffness:140,damping:19,doubleSpring:.8}},ss=(t={})=>{const i=t.direction??"left",o=t.physics??ts,l=i==="left";return{in:a=>({physics:o,prepare:()=>{a.style.willChange="transform",a.style.backfaceVisibility="hidden",a.style.contain="layout paint"},css:s=>({transform:`translate3d(${l?(1-s)*100:(1-s)*-100}%, 0, 0)`}),onEnd:()=>{a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain=""}}),out:(a,s)=>({physics:o,css:n=>({transform:`translate3d(${l?(1-n)*-100:(1-n)*100}%, 0, 0)`}),prepare:n=>{$(n,s),n.style.willChange="transform",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.pointerEvents="none"}})}},P=6,F=0,D=1,ns={inertia:{acceleration:50,resistance:1.5}},is=(t={})=>{const i=t.direction??"left",o=t.physics??ns,l=i==="left";let{promise:a,resolve:s}=E();return{in:n=>({physics:o,prepare:()=>{n.style.opacity="0",n.style.willChange="transform, opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint"},wait:async()=>{if(a){await a;const e=E();a=e.promise,s=e.resolve}},css:e=>{const c=l?(1-e)*P:(1-e)*-P,y=D+e*(1-D);return{transform:`translate3d(${c}px, 0, 0)`,opacity:y}},onEnd:()=>{n.style.opacity="1",n.style.willChange="auto",n.style.backfaceVisibility="",n.style.contain=""}}),out:(n,e)=>({physics:o,prepare:()=>{$(n,e),n.style.willChange="transform, opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.pointerEvents="none"},css:c=>{const y=l?(1-c)*-P:(1-c)*P,r=F+c*(1-F);return{transform:`translate3d(${y}px, 0, 0)`,opacity:r}},onEnd:()=>{s&&s(),n.style.willChange="auto",n.style.backfaceVisibility="",n.style.contain=""}})}},es={spring:{stiffness:17,damping:6}},L=20,k=800,rs=(t={})=>{const i=t.physics??es;let o,l=null;return{in:a=>({physics:i,prepare:()=>{a.style.willChange="transform",a.style.backfaceVisibility="hidden",a.style.contain="layout paint",a.style.transform=`perspective(${k}px) rotateY(${L}deg) translate3d(-100%, 0, 0)`},wait:async()=>{o&&await o},css:s=>{const n=(1-s)*L,e=-(1-s)*100;return{transform:`perspective(${k}px) rotateY(${n}deg) translate3d(${e}%, 0, 0)`}},onEnd:()=>{a.style.transform="",a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain=""}}),out:(a,s)=>(o=new Promise(n=>{l=n}),{physics:i,prepare:n=>{$(n,s),n.style.willChange="transform",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.pointerEvents="none",n.style.transform=`perspective(${k}px) rotateY(0deg) translate3d(0%, 0, 0)`},css:n=>{const e=1-n,c=e*L,y=e*100;return{transform:`perspective(${k}px) rotateY(${-c}deg) translate3d(${y}%, 0, 0)`}},onEnd:()=>{l&&l(),a.style.transform=""}})}},as={inertia:{acceleration:50,resistance:1.5}},U=.05;function os(t){const i=x(document.body,t.positionedParent),o=t.scroll.y,l=window.innerHeight-i.top;return{top:o,left:0,width:i.width,height:l}}const ls=(t={})=>{const i=t.physics??as;let{promise:o,resolve:l}=E();return{in:(a,s)=>{const n=os(s),e=n.left+n.width/2,c=n.top+n.height/2;return{physics:i,prepare:()=>{a.style.opacity="0",a.style.willChange="transform, opacity",a.style.backfaceVisibility="hidden",a.style.contain="layout paint",a.style.transformOrigin=`${e}px ${c}px`},wait:async()=>{if(o){await o;const y=E();o=y.promise,l=y.resolve}},css:y=>({transform:`scale(${1-U+y*U})`,opacity:y}),onEnd:()=>{a.style.opacity="1",a.style.willChange="auto",a.style.backfaceVisibility="",a.style.contain="",a.style.transformOrigin=""}}},out:(a,s)=>({physics:i,prepare:n=>{$(n,s),n.style.willChange="opacity",n.style.backfaceVisibility="hidden",n.style.contain="layout paint",n.style.pointerEvents="none"},css:n=>({opacity:n}),onEnd:()=>{l&&l()}})}};exports.blind=Q;exports.curtainReveal=ht;exports.depth=ut;exports.drill=wt;exports.fade=Et;exports.film=At;exports.hero=vt;exports.instagram=Dt;exports.jaemin=Ht;exports.pinterest=jt;exports.rotate=Gt;exports.scroll=Jt;exports.sheet=Rt;exports.slide=ss;exports.snap=is;exports.strip=rs;exports.swap=ls;
@@ -12,6 +12,7 @@ export * from './rotate';
12
12
  export * from './scroll';
13
13
  export * from './sheet';
14
14
  export * from './slide';
15
+ export * from './snap';
15
16
  export * from './strip';
16
17
  export * from './swap';
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}