@ssgoi/core 2.5.3 → 2.5.5

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.
@@ -0,0 +1 @@
1
+ "use strict";function b(i,a){function o(d){let l=0,y=0;const t=d.offsetWidth,g=d.offsetHeight;let s=d;for(;s;)l+=s.offsetTop,y+=s.offsetLeft,s=s.offsetParent;return l-=window.scrollY,y-=window.scrollX,{top:l,left:y,width:t,height:g}}const e=o(i),n=o(a);return new DOMRect(n.left-e.left,n.top-e.top,n.width,n.height)}const x=(i,a)=>{var o;i.style.position="absolute",i.style.width="100%",i.style.top=`${-1*(((o=a==null?void 0:a.scrollOffset)==null?void 0:o.y)??0)}px`,i.style.left="0"};function M(i,a="viewport"){if(a==="positioned-parent"){const o=i.positionedParent.getBoundingClientRect();return{top:o.top,left:o.left,width:o.width,height:o.height}}else{const o=b(document.body,i.positionedParent);return{top:i.scroll.y,left:0,width:o.width,height:window.innerHeight-o.top}}}const F=(i={})=>R(i),R=(i={})=>{var l,y;const a={stiffness:((l=i.spring)==null?void 0:l.stiffness)??50,damping:((y=i.spring)==null?void 0:y.damping)??30},o=i.initialRotation??45,e=i.initialScale??.01,n=i.rotationTriggerPoint??.8,d=i.containerMode??"viewport";return{out:async(t,g)=>{const s=t.style.opacity;return{spring:{stiffness:80,damping:25},from:1,to:0,prepare:()=>{x(t,g),t.style.opacity="1"},tick:w=>{t.style.opacity=String(w)},onEnd:()=>{t.style.opacity=s}}},in:async(t,g)=>{const s=M(g,d),w=t.style.transform,$=t.style.transformOrigin,O=t.style.position,v=t.style.zIndex;return{spring:a,from:0,to:1,prepare:()=>{const r=Math.min(s.width,s.height)*.4;if(t.style.setProperty("--max-border-radius",`${r}px`),t.style.setProperty("--border-radius-scale","1"),t.style.willChange="transform",t.style.backfaceVisibility="hidden",d==="positioned-parent")t.style.transformOrigin="50% 50%",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.width=`${s.width}px`,t.style.height=`${s.height}px`;else{const f=s.left+s.width/2,h=s.top+s.height/2;t.style.transformOrigin=`${f}px ${h}px`,t.style.position="fixed",t.style.top=`${s.top}px`,t.style.left=`${s.left}px`,t.style.width=`${s.width}px`,t.style.height=`${s.height}px`}t.style.zIndex="1000",t.style.overflow="hidden",t.style.transform=`rotate(${o}deg) scale(${e}) translateZ(0)`,t.style.borderRadius="calc(var(--max-border-radius) * var(--border-radius-scale))",t.style.opacity="1"},tick:r=>{let f;if(r<=.05)f=e;else if(r<=n){const c=(r-.05)/(n-.05),u=Math.pow(c,9);f=e+(.8-e)*u}else{const c=(r-n)/(1-n);f=.8+.2*(1-Math.pow(1-c,3))}let h;const p=.7;if(r<=p)h=o;else{const c=(r-p)/(1-p),u=1-Math.pow(1-c,2);h=o*(1-u)}let P;if(r<=p)P=1;else{const c=(r-p)/(1-p);P=1-Math.pow(c,.5)}t.style.transform=`rotate(${h.toFixed(2)}deg) scale(${f.toFixed(4)}) translateZ(0)`,t.style.setProperty("--border-radius-scale",P.toFixed(4))},onEnd:()=>{t.style.willChange="",t.style.backfaceVisibility="",t.style.removeProperty("--max-border-radius"),t.style.removeProperty("--border-radius-scale"),t.style.transform=w,t.style.transformOrigin=$,t.style.position=O,t.style.zIndex=v,t.style.top="",t.style.left="",t.style.width="",t.style.height="",t.style.overflow="",t.style.borderRadius=""}}}}};exports.getRect=b;exports.jaemin=F;exports.jaeminInternal=R;exports.prepareOutgoing=x;
@@ -15,10 +15,11 @@ function R(i, a) {
15
15
  n.height
16
16
  );
17
17
  }
18
- const v = (i, a) => {
19
- i.style.position = "absolute", i.style.width = "100%", i.style.top = `${-1 * ((a == null ? void 0 : a.scroll.y) ?? 0)}px`, i.style.left = "0";
18
+ const O = (i, a) => {
19
+ var o;
20
+ i.style.position = "absolute", i.style.width = "100%", i.style.top = `${-1 * (((o = a == null ? void 0 : a.scrollOffset) == null ? void 0 : o.y) ?? 0)}px`, i.style.left = "0";
20
21
  };
21
- function M(i, a = "viewport") {
22
+ function v(i, a = "viewport") {
22
23
  if (a === "positioned-parent") {
23
24
  const o = i.positionedParent.getBoundingClientRect();
24
25
  return {
@@ -37,7 +38,7 @@ function M(i, a = "viewport") {
37
38
  };
38
39
  }
39
40
  }
40
- const F = (i = {}) => O(i), O = (i = {}) => {
41
+ const F = (i = {}) => M(i), M = (i = {}) => {
41
42
  var l, y;
42
43
  const a = {
43
44
  // Much slower animation - 4x duration by reducing stiffness further
@@ -55,7 +56,7 @@ const F = (i = {}) => O(i), O = (i = {}) => {
55
56
  from: 1,
56
57
  to: 0,
57
58
  prepare: () => {
58
- v(t, g), t.style.opacity = "1";
59
+ O(t, g), t.style.opacity = "1";
59
60
  },
60
61
  tick: (w) => {
61
62
  t.style.opacity = String(w);
@@ -66,7 +67,7 @@ const F = (i = {}) => O(i), O = (i = {}) => {
66
67
  };
67
68
  },
68
69
  in: async (t, g) => {
69
- const s = M(g, d), w = t.style.transform, b = t.style.transformOrigin, x = t.style.position, $ = t.style.zIndex;
70
+ const s = v(g, d), w = t.style.transform, b = t.style.transformOrigin, x = t.style.position, $ = t.style.zIndex;
70
71
  return {
71
72
  spring: a,
72
73
  from: 0,
@@ -79,38 +80,38 @@ const F = (i = {}) => O(i), O = (i = {}) => {
79
80
  ), t.style.setProperty("--border-radius-scale", "1"), t.style.willChange = "transform", t.style.backfaceVisibility = "hidden", d === "positioned-parent")
80
81
  t.style.transformOrigin = "50% 50%", t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", t.style.width = `${s.width}px`, t.style.height = `${s.height}px`;
81
82
  else {
82
- const p = s.left + s.width / 2, h = s.top + s.height / 2;
83
- t.style.transformOrigin = `${p}px ${h}px`, t.style.position = "fixed", t.style.top = `${s.top}px`, t.style.left = `${s.left}px`, t.style.width = `${s.width}px`, t.style.height = `${s.height}px`;
83
+ const f = s.left + s.width / 2, h = s.top + s.height / 2;
84
+ t.style.transformOrigin = `${f}px ${h}px`, t.style.position = "fixed", t.style.top = `${s.top}px`, t.style.left = `${s.left}px`, t.style.width = `${s.width}px`, t.style.height = `${s.height}px`;
84
85
  }
85
86
  t.style.zIndex = "1000", t.style.overflow = "hidden", t.style.transform = `rotate(${o}deg) scale(${e}) translateZ(0)`, t.style.borderRadius = "calc(var(--max-border-radius) * var(--border-radius-scale))", t.style.opacity = "1";
86
87
  },
87
88
  tick: (r) => {
88
- let p;
89
+ let f;
89
90
  if (r <= 0.05)
90
- p = e;
91
+ f = e;
91
92
  else if (r <= n) {
92
93
  const c = (r - 0.05) / (n - 0.05), u = Math.pow(c, 9);
93
- p = e + (0.8 - e) * u;
94
+ f = e + (0.8 - e) * u;
94
95
  } else {
95
96
  const c = (r - n) / (1 - n);
96
- p = 0.8 + 0.2 * (1 - Math.pow(1 - c, 3));
97
+ f = 0.8 + 0.2 * (1 - Math.pow(1 - c, 3));
97
98
  }
98
99
  let h;
99
- const f = 0.7;
100
- if (r <= f)
100
+ const p = 0.7;
101
+ if (r <= p)
101
102
  h = o;
102
103
  else {
103
- const c = (r - f) / (1 - f), u = 1 - Math.pow(1 - c, 2);
104
+ const c = (r - p) / (1 - p), u = 1 - Math.pow(1 - c, 2);
104
105
  h = o * (1 - u);
105
106
  }
106
107
  let P;
107
- if (r <= f)
108
+ if (r <= p)
108
109
  P = 1;
109
110
  else {
110
- const c = (r - f) / (1 - f);
111
+ const c = (r - p) / (1 - p);
111
112
  P = 1 - Math.pow(c, 0.5);
112
113
  }
113
- t.style.transform = `rotate(${h.toFixed(2)}deg) scale(${p.toFixed(4)}) translateZ(0)`, t.style.setProperty(
114
+ t.style.transform = `rotate(${h.toFixed(2)}deg) scale(${f.toFixed(4)}) translateZ(0)`, t.style.setProperty(
114
115
  "--border-radius-scale",
115
116
  P.toFixed(4)
116
117
  );
@@ -125,6 +126,6 @@ const F = (i = {}) => O(i), O = (i = {}) => {
125
126
  export {
126
127
  F as a,
127
128
  R as g,
128
- O as j,
129
- v as p
129
+ M as j,
130
+ O as p
130
131
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={stiffness:170,damping:26},n={stiffness:120,damping:14},t={stiffness:180,damping:12},e={stiffness:210,damping:20},f={stiffness:280,damping:60},i={stiffness:280,damping:120},o={default:s,gentle:n,wobbly:t,stiff:e,slow:f,molasses:i};exports.config=o;exports.defaultSpring=s;exports.gentle=n;exports.molasses=i;exports.slow=f;exports.stiff=e;exports.wobbly=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={stiffness:170,damping:26},n={stiffness:120,damping:14},t={stiffness:180,damping:12},e={stiffness:210,damping:20},f={stiffness:280,damping:60},i={stiffness:150,damping:60},o={default:s,gentle:n,wobbly:t,stiff:e,slow:f,molasses:i};exports.config=o;exports.defaultSpring=s;exports.gentle=n;exports.molasses=i;exports.slow=f;exports.stiff=e;exports.wobbly=t;
@@ -14,8 +14,8 @@ const s = {
14
14
  stiffness: 280,
15
15
  damping: 60
16
16
  }, e = {
17
- stiffness: 280,
18
- damping: 120
17
+ stiffness: 150,
18
+ damping: 60
19
19
  }, o = {
20
20
  default: s,
21
21
  gentle: n,
@@ -1 +1 @@
1
- {"version":3,"file":"create-transition-callback.d.ts","sourceRoot":"","sources":["../../src/lib/transition/create-transition-callback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAEnB,MAAM,UAAU,CAAC;AAIlB,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EAExB,MAAM,uBAAuB,CAAC;AAE/B,wBAAgB,wBAAwB,CAAC,eAAe,GAAG,MAAM,EAC/D,aAAa,EAAE,MAAM,UAAU,CAAC,SAAS,EAAE,eAAe,CAAC,EAC3D,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CACT,OAAO,EAAE,eAAe,CAAC,eAAe,CAAC,KACtC,kBAAkB,CAAC,eAAe,CAAC,CAAC;CAC1C,GACA,kBAAkB,CAuRpB"}
1
+ {"version":3,"file":"create-transition-callback.d.ts","sourceRoot":"","sources":["../../src/lib/transition/create-transition-callback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAEnB,MAAM,UAAU,CAAC;AAIlB,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EAExB,MAAM,uBAAuB,CAAC;AAE/B,wBAAgB,wBAAwB,CAAC,eAAe,GAAG,MAAM,EAC/D,aAAa,EAAE,MAAM,UAAU,CAAC,SAAS,EAAE,eAAe,CAAC,EAC3D,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CACT,OAAO,EAAE,eAAe,CAAC,eAAe,CAAC,KACtC,kBAAkB,CAAC,eAAe,CAAC,CAAC;CAC1C,GACA,kBAAkB,CA0RpB"}
@@ -4,4 +4,5 @@ export { getPositionedParent } from './get-positioned-parent';
4
4
  export { parseCallerLocation } from './parse-caller-location';
5
5
  export { sleep } from './sleep';
6
6
  export { getRect } from './get-rect';
7
+ export { round, floor, ceil, toFixed } from './number';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Rounds a number to a specified number of decimal places
3
+ * @param num - The number to round
4
+ * @param decimals - Number of decimal places (default: 0)
5
+ * @returns The rounded number
6
+ *
7
+ * @example
8
+ * round(3.14159, 2) // 3.14
9
+ * round(3.14159, 0) // 3
10
+ * round(3.6) // 4
11
+ */
12
+ export declare function round(num: number, decimals?: number): number;
13
+ /**
14
+ * Floors a number to a specified number of decimal places
15
+ * @param num - The number to floor
16
+ * @param decimals - Number of decimal places (default: 0)
17
+ * @returns The floored number
18
+ *
19
+ * @example
20
+ * floor(3.99, 1) // 3.9
21
+ * floor(3.99) // 3
22
+ */
23
+ export declare function floor(num: number, decimals?: number): number;
24
+ /**
25
+ * Ceils a number to a specified number of decimal places
26
+ * @param num - The number to ceil
27
+ * @param decimals - Number of decimal places (default: 0)
28
+ * @returns The ceiled number
29
+ *
30
+ * @example
31
+ * ceil(3.01, 1) // 3.1
32
+ * ceil(3.01) // 4
33
+ */
34
+ export declare function ceil(num: number, decimals?: number): number;
35
+ /**
36
+ * Formats a number to a fixed number of decimal places
37
+ * @param num - The number to format
38
+ * @param decimals - Number of decimal places (default: 0)
39
+ * @returns The formatted number as a string
40
+ *
41
+ * @example
42
+ * toFixed(3.14159, 2) // "3.14"
43
+ * toFixed(3, 2) // "3.00"
44
+ */
45
+ export declare function toFixed(num: number, decimals?: number): string;
46
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/lib/utils/number.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM,CAG/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM,CAG/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM,CAG9D;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM,CAEjE"}
@@ -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;AAG9D,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,eAsElD,CAAC"}
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;AAa9D,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,eAuHlD,CAAC"}
@@ -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;AAQ9D,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,eAuDhD,CAAC"}
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;AAQ9D,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,eA6DhD,CAAC"}
@@ -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,eAqKhD,CAAC"}
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,eA2KhD,CAAC"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../jaemin-DL1-g_B5.cjs"),M=t=>new Promise(e=>setTimeout(e,t)),q={stiffness:80,damping:25},N={stiffness:75,damping:25},G=300,V=10,j="horizontal",K="#000000",Z=(t={})=>{const{inSpring:e=N,outSpring:s=q,transitionDelay:d=G,blindCount:r=V,direction:i=j,staggerDelay:o=100,blindColor:n=K}=t;let a,c=null;const l=(p,g,u="left")=>{window.getComputedStyle(p).position==="static"&&(p.style.position="relative");const h=document.createElement("div");h.className="blind-container",h.style.cssText=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../jaemin-BG8HRXG1.cjs"),Y=t=>new Promise(n=>setTimeout(n,t));function V(t,n=0){const i=Math.pow(10,n);return Math.round(t*i)/i}const q={stiffness:80,damping:25},G={stiffness:75,damping:25},j=300,K=10,Z="horizontal",J="#000000",Q=(t={})=>{const{inSpring:n=G,outSpring:i=q,transitionDelay:d=j,blindCount:r=K,direction:s=Z,staggerDelay:c=100,blindColor:e=J}=t;let a,l=null;const o=(p,g,u="left")=>{window.getComputedStyle(p).position==="static"&&(p.style.position="relative");const h=document.createElement("div");h.className="blind-container",h.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 f=[];for(let $=0;$<r;$++){const x=document.createElement("div");if(i==="horizontal"){const m=100/r,T=`calc(${m}% + 1px)`;x.style.cssText=`
10
+ `;const f=[];for(let $=0;$<r;$++){const w=document.createElement("div");if(s==="horizontal"){const x=100/r,S=`calc(${x}% + 1px)`;w.style.cssText=`
11
11
  position: absolute;
12
- top: ${m*$}%;
12
+ top: ${x*$}%;
13
13
  left: 0;
14
14
  width: 100%;
15
- height: ${T};
16
- background: ${n};
15
+ height: ${S};
16
+ background: ${e};
17
17
  transform: scaleX(${g==="hidden"?0:1});
18
18
  transform-origin: ${u} center;
19
19
  will-change: transform;
20
- `}else{const m=100/r,T=`calc(${m}% + 1px)`;x.style.cssText=`
20
+ `}else{const x=100/r,S=`calc(${x}% + 1px)`;w.style.cssText=`
21
21
  position: absolute;
22
22
  top: 0;
23
- left: ${m*$}%;
24
- width: ${T};
23
+ left: ${x*$}%;
24
+ width: ${S};
25
25
  height: 100%;
26
- background: ${n};
26
+ background: ${e};
27
27
  transform: scaleY(${g==="hidden"?0:1});
28
28
  transform-origin: ${u==="left"?"top":"bottom"} center;
29
29
  will-change: transform;
30
- `}f.push(x),h.appendChild(x)}return p.appendChild(h),{container:h,blinds:f}};return{out:()=>{let p=null;return a=new Promise(u=>{c=u}),{springs:Array.from({length:r},(u,y)=>({from:0,to:1,spring:s,offset:y*o,tick:h=>{if(!p)return;const f=p.blinds[y];f&&(i==="horizontal"?f.style.transform=`scaleX(${h})`:f.style.transform=`scaleY(${h})`)}})),schedule:"chain",prepare:u=>{w.prepareOutgoing(u),u.style.zIndex="1000",p=l(u,"hidden","left")},onStart:()=>{},onEnd:()=>{c&&c()}}},in:()=>{let p=null;return{springs:Array.from({length:r},(u,y)=>({from:1,to:0,spring:e,offset:y*o,tick:h=>{if(!p)return;const f=p.blinds[y];f&&(i==="horizontal"?f.style.transform=`scaleX(${h})`:f.style.transform=`scaleY(${h})`)}})),schedule:"chain",prepare:u=>{u.style.position="relative",u.style.zIndex="0",p=l(u,"closed","right")},onStart:()=>{},wait:async()=>{a&&await a,await M(d)},onEnd:()=>{p&&p.container&&p.container.remove()}}}}},J=(t={})=>{var r,i;const{opacity:e=!1,direction:s="enter"}=t,d={stiffness:((r=t.spring)==null?void 0:r.stiffness)??150,damping:((i=t.spring)==null?void 0:i.damping)??20};return s==="enter"?{in:o=>({spring:d,tick:n=>{o.style.transform=`translateX(${(1-n)*100}%)`,e&&(o.style.opacity=n.toString())}}),out:(o,n)=>({spring:d,prepare:a=>{w.prepareOutgoing(a,n),a.style.zIndex="-1"},tick:a=>{o.style.transform=`translateX(${-(1-a)*20}%)`,e&&(o.style.opacity=a.toString())}})}:{in:o=>({spring:{stiffness:100,damping:20},tick:n=>{o.style.transform=`translateX(${-(1-n)*20}%)`,e&&(o.style.opacity=n.toString())}}),out:(o,n)=>({spring:{stiffness:100,damping:20},prepare:a=>{w.prepareOutgoing(a,n),a.style.zIndex="100"},tick:a=>{o.style.transform=`translateX(${(1-a)*100}%)`,e&&(o.style.opacity=a.toString())}})}},Q=t=>new Promise(e=>setTimeout(e,t)),R={stiffness:65,damping:16},tt={stiffness:65,damping:14},et=0,nt=(t={})=>{const{inSpring:e=tt,outSpring:s=R,transitionDelay:d=et}=t;let r,i=null;return{in:o=>({spring:e,prepare:n=>{n.style.opacity="0",n.style.willChange="opacity"},wait:async()=>{r&&(await r,await Q(d))},tick:n=>{o.style.opacity=n.toString()}}),out:(o,n)=>(r=new Promise(a=>{i=a}),{spring:s,tick:a=>{o.style.opacity=a.toString()},prepare:()=>{w.prepareOutgoing(o,n),o.style.willChange="opacity"},onEnd:()=>{i&&i()}})}},it={stiffness:5,damping:3.5},st=.8,rt="white",b={start:0,end:.45},E={start:.85,end:1},A={start:.2,end:.9},lt=t=>{var r;const e=(t==null?void 0:t.spring)??it,s=(t==null?void 0:t.scale)??st,d=((r=t==null?void 0:t.border)==null?void 0:r.color)??rt;return{out:async(i,o)=>{const n=P(o),a=w.getRect(document.body,o.positionedParent),c=ot(d,{...n,top:a.top});let l=1,p=-n.top;return{spring:e,prepare:()=>{w.prepareOutgoing(i),_(i,n),I(i,n),dt(i,n);for(const g of c)o.positionedParent.appendChild(g)},onEnd:()=>{i.style.clipPath="",i.style.transformOrigin="",setTimeout(()=>{for(const g of c)o.positionedParent.removeChild(g)},1e3)},tick:g=>{const u=1-g;if(b.start<=u&&u<=b.end){const f=L(u,b.start,b.end);l=1-(1-s)*f}if(E.start<=u&&u<=E.end){const f=L(u,E.start,E.end);l=s+(1-s)*f}if(A.start<=u&&u<=A.end){const f=L(u,A.start,A.end);p=-n.top-n.height*f}i.style.transform=`translateY(${p}px) scale(${l})`;const y=(n.width-n.width*l)/2,h=(n.height-n.height*l)/2;at(c,y,h)}}},in:async(i,o)=>{const n=P(o);let a=s,c=-n.top+n.height;return{spring:e,prepare:()=>{_(i,n),I(i,n),i.style.transform=`translateY(${-n.top+n.height}px) scale(${s})`},onEnd:()=>{i.style.clipPath="",i.style.transformOrigin="",i.style.transform=""},tick:l=>{if(b.start<=l&&l<=b.end){const p=L(l,b.start,b.end);a=1-(1-s)*p}if(E.start<=l&&l<=E.end){const p=L(l,E.start,E.end);a=s+(1-s)*p}if(A.start<=l&&l<=A.end){const p=L(l,A.start,A.end);c=-n.top+n.height*(1-p)}i.style.transform=`translateY(${c}px) scale(${a})`}}}}};function at(t,e,s){const d=e*.7,r=s*.7;t.topLeft.style.transform=`translate(${d}px, ${r}px)`,t.topRight.style.transform=`translate(${-d}px, ${r}px)`,t.bottomLeft.style.transform=`translate(${d}px, ${-r}px)`,t.bottomRight.style.transform=`translate(${-d}px, ${-r}px)`}function ot(t="white",e){const r=document.createElement("div");r.style.position="fixed",r.style.pointerEvents="none",r.style.zIndex="9999",r.style.top=`${e.top-1}px`,r.style.left=`${e.left-1}px`,r.style.width="15px",r.style.height="15px";const i=document.createElement("div");i.style.position="absolute",i.style.width="15px",i.style.height="1px",i.style.backgroundColor=t,i.style.top="0",i.style.left="0";const o=document.createElement("div");o.style.position="absolute",o.style.width="1px",o.style.height="15px",o.style.backgroundColor=t,o.style.top="0",o.style.left="0",r.appendChild(i),r.appendChild(o);const n=document.createElement("div");n.style.position="fixed",n.style.pointerEvents="none",n.style.zIndex="9999",n.style.top=`${e.top-1}px`,n.style.left=`${e.left+e.width-15+1}px`,n.style.width="15px",n.style.height="15px";const a=document.createElement("div");a.style.position="absolute",a.style.width="15px",a.style.height="1px",a.style.backgroundColor=t,a.style.top="0",a.style.right="0";const c=document.createElement("div");c.style.position="absolute",c.style.width="1px",c.style.height="15px",c.style.backgroundColor=t,c.style.top="0",c.style.right="0",n.appendChild(a),n.appendChild(c);const l=document.createElement("div");l.style.position="fixed",l.style.pointerEvents="none",l.style.zIndex="9999",l.style.top=`${e.top+e.height-15+1}px`,l.style.left=`${e.left-1}px`,l.style.width="15px",l.style.height="15px";const p=document.createElement("div");p.style.position="absolute",p.style.width="15px",p.style.height="1px",p.style.backgroundColor=t,p.style.bottom="0",p.style.left="0";const g=document.createElement("div");g.style.position="absolute",g.style.width="1px",g.style.height="15px",g.style.backgroundColor=t,g.style.bottom="0",g.style.left="0",l.appendChild(p),l.appendChild(g);const u=document.createElement("div");u.style.position="fixed",u.style.pointerEvents="none",u.style.zIndex="9999",u.style.top=`${e.top+e.height-15+1}px`,u.style.left=`${e.left+e.width-15+1}px`,u.style.width="15px",u.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.right="0";const h=document.createElement("div");return h.style.position="absolute",h.style.width="1px",h.style.height="15px",h.style.backgroundColor=t,h.style.bottom="0",h.style.right="0",u.appendChild(y),u.appendChild(h),{topLeft:r,topRight:n,bottomLeft:l,bottomRight:u,*[Symbol.iterator](){yield r,yield n,yield l,yield u}}}function P(t){const e=w.getRect(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:e.width,height:window.innerHeight-e.top}}function _(t,e){const s=e.left+e.width/2,d=e.top+e.height/2;t.style.transformOrigin=`${s}px ${d}px`}function I(t,e){t.style.clipPath=`polygon(
31
- ${e.left}px ${e.top}px,
32
- ${e.left+e.width}px ${e.top}px,
33
- ${e.left+e.width}px ${e.top+e.height}px,
34
- ${e.left}px ${e.top+e.height}px
35
- )`}function dt(t,e){t.style.transform=`translateY(${-e.top}px)`}function L(t,e,s){return t<=e?0:t>=s?1:(t-e)/(s-e)}function ct(t,e){return t.querySelector(`[data-hero-key="${e}"]`)}const ht=(t={})=>{var o,n;const e={stiffness:((o=t.spring)==null?void 0:o.stiffness)??300,damping:((n=t.spring)==null?void 0:n.damping)??30},s=t.timeout??300,d=t.maxDistance??700;let r=null,i=null;return{in:async(a,c)=>{const l=a,p=Array.from(l.querySelectorAll("[data-hero-key]"));if(p.length===0)return{spring:e,tick:()=>{}};if(!await new Promise(y=>{r?y(!0):(i=y,setTimeout(()=>{i=null,y(!1)},s))})||!r)return r=null,{spring:e,tick:()=>{}};const u=p.map(y=>{const h=y.getAttribute("data-hero-key");if(!h)return null;const f=ct(r,h);if(!f)return null;const $=y,x=w.getRect(r,f),m=w.getRect(l,$),T=x.left-m.left-c.scrollOffset.x,Y=x.top-m.top-c.scrollOffset.y,U=x.width/m.width,X=x.height/m.height,W=$.style.transform,z=$.style.position,B=$.style.transformOrigin,H=$.style.zIndex;return{toEl:$,dx:T,dy:Y,dw:U,dh:X,originalTransform:W,originalPosition:z,originalTransformOrigin:B,originalZIndex:H}}).filter(y=>y!==null&&Math.abs(y.dy)<=d);return r=null,u.length===0?{spring:e,tick:()=>{}}:{spring:e,prepare:()=>{u.forEach(({toEl:y})=>{y.style.position="relative",y.style.transformOrigin="top left",y.style.zIndex="1000"})},tick:y=>{u.forEach(({toEl:h,dx:f,dy:$,dw:x,dh:m})=>{h.style.transform=`translate(${(1-y)*f}px,${(1-y)*$}px) scale(${y+(1-y)*x}, ${y+(1-y)*m})`})},onEnd:()=>{u.forEach(({toEl:y,originalTransform:h,originalPosition:f,originalTransformOrigin:$,originalZIndex:x})=>{y.style.transform=h,y.style.position=f,y.style.transformOrigin=$,y.style.zIndex=x})}}},out:async a=>({onStart:()=>{r=a,i&&(i(!0),i=null)},prepare:c=>{w.prepareOutgoing(c),c.style.opacity="0"}})}};function pt({detailRect:t,galleryRect:e,pageRect:s,scrollOffset:d},r){const i=e.left-t.left+(e.width-t.width)/2-d.x,o=e.top-t.top+(e.height-t.height)/2-d.y,n=e.width/t.width,a=e.height/t.height,c=Math.max(n,a),l=t.top/s.height*100,p=(s.width-(t.left+t.width))/s.width*100,g=(s.height-(t.top+t.height))/s.height*100,u=t.left/s.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=l*h,$=p*h,x=g*h,m=u*h;r.style.clipPath=`inset(${f}% ${$}% ${x}% ${m}%)`,r.style.transform=`translate(${i*h}px, ${o*h}px) scale(${1+(c-1)*h})`}}function ut({detailRect:t,galleryRect:e,pageRect:s,scrollOffset:d},r){const i=e.left-t.left+(e.width-t.width)/2+d.x,o=e.top-t.top+(e.height-t.height)/2+d.y,n=e.width/t.width,a=e.height/t.height,c=Math.min(n,a),l=t.top/s.height*100,p=(s.width-(t.left+t.width))/s.width*100,g=(s.height-(t.top+t.height))/s.height*100,u=t.left/s.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=l*h,$=p*h,x=g*h,m=u*h;r.style.clipPath=`inset(${f}% ${$}% ${x}% ${m}%)`,r.style.transform=`translate(${i*h-d.x}px, ${o*h-d.y}px) scale(${1+(c-1)*h})`}}function yt(t,e,s){const d=t.querySelector("[data-instagram-detail-key]"),r=e.querySelector("[data-instagram-detail-key]");if(t.querySelectorAll("[data-instagram-detail-key]").length>1||e.querySelectorAll("[data-instagram-detail-key]").length>1)return null;let i=null,o=null,n=!1;if(!d&&r){o=r;const l=o.getAttribute("data-instagram-detail-key");if(!l)return null;i=t.querySelector(`[data-instagram-gallery-key="${l}"]`),i&&(n=!0)}else if(d&&!r){o=d;const l=o.getAttribute("data-instagram-detail-key");if(!l)return null;i=e.querySelector(`[data-instagram-gallery-key="${l}"]`),i&&(n=!1)}if(!i||!o)return null;const a=w.getRect(n?t:e,i),c=w.getRect(n?e:t,o);return n?{isEnterMode:!0,inAnimation:pt({detailRect:c,galleryRect:a,pageRect:e.getBoundingClientRect(),scrollOffset:s},e)}:{isEnterMode:!1,outAnimation:ut({detailRect:c,galleryRect:a,pageRect:t.getBoundingClientRect(),scrollOffset:s},t)}}const gt=(t={})=>{var o,n;const e={stiffness:((o=t.spring)==null?void 0:o.stiffness)??150,damping:((n=t.spring)==null?void 0:n.damping)??20},s=t.timeout??300;let d=null,r=null,i=null;return{in:async(a,{scrollOffset:c})=>{const l=a;return!await new Promise(g=>{d?g(!0):(r=g,setTimeout(()=>{r=null,g(!1)},s))})||!d?(d=null,{spring:e,tick:()=>{}}):(i=yt(d,l,c),i?(d=null,{spring:e,tick:g=>{i!=null&&i.inAnimation&&i.inAnimation(g)}}):{spring:e,tick:()=>{}})},out:async(a,c)=>({spring:e,onStart:()=>{d=a,r&&(r(!0),r=null)},prepare:l=>{w.prepareOutgoing(l,c),i!=null&&i.isEnterMode||(l.style.zIndex="-1")},tick:l=>{i!=null&&i.outAnimation&&i.outAnimation(l)}})}};function ft({detailRect:t,galleryRect:e,pageRect:s,scrollOffset:d},r){const i=e.left-t.left+(e.width-t.width)/2-d.x,o=e.top-t.top+(e.height-t.height)/2-d.y,n=e.width/t.width,a=e.height/t.height,c=Math.max(n,a),l=t.top/s.height*100,p=(s.width-(t.left+t.width))/s.width*100,g=(s.height-(t.top+t.height))/s.height*100,u=t.left/s.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=l*h,$=p*h,x=g*h,m=u*h;r.style.clipPath=`inset(${f}% ${$}% ${x}% ${m}%)`,r.style.transform=`translate(${i*h}px, ${o*h}px) scale(${1+(c-1)*h})`}}function $t({galleryRect:t,detailRect:e,scrollOffset:s},d){const r=e.left-t.left+(e.width-t.width)/2+s.x,i=e.top-t.top+(e.height-t.height)/2+s.y,o=e.width/t.width,n=e.height/t.height,a=Math.max(o,n);return c=>{d.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`;const l=1-c;d.style.transform=`translate(${r*l-s.x}px, ${i*l-s.y}px) scale(${1+(a-1)*l})`,d.style.opacity=`${1-l}`}}function xt({galleryRect:t,detailRect:e,scrollOffset:s},d){const r=e.left-t.left+(e.width-t.width)/2-s.x,i=e.top-t.top+(e.height-t.height)/2-s.y,o=e.width/t.width,n=e.height/t.height,a=Math.max(o,n);return c=>{const l=1-c,p=c;d.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,d.style.transform=`translate(${r*l}px, ${i*l}px) scale(${1+(a-1)*l})`,d.style.opacity=`${p}`}}function mt({detailRect:t,galleryRect:e,pageRect:s,scrollOffset:d},r){const i=e.left-t.left+(e.width-t.width)/2+d.x,o=e.top-t.top+(e.height-t.height)/2+d.y,n=e.width/t.width,a=e.height/t.height,c=Math.min(n,a),l=t.top/s.height*100,p=(s.width-(t.left+t.width))/s.width*100,g=(s.height-(t.top+t.height))/s.height*100,u=t.left/s.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=l*h,$=p*h,x=g*h,m=u*h;r.style.clipPath=`inset(${f}% ${$}% ${x}% ${m}%)`,r.style.transform=`translate(${i*h-d.x}px, ${o*h-d.y}px) scale(${1+(c-1)*h})`}}function wt(t,e,s){const d=t.querySelector("[data-pinterest-detail-key]"),r=e.querySelector("[data-pinterest-detail-key]");if(t.querySelectorAll("[data-pinterest-detail-key]").length>1||e.querySelectorAll("[data-pinterest-detail-key]").length>1)return null;let i=null,o=null,n=!1;if(!d&&r){o=r;const l=o.getAttribute("data-pinterest-detail-key");if(!l)return null;i=t.querySelector(`[data-pinterest-gallery-key="${l}"]`),i&&(n=!0)}else if(d&&!r){o=d;const l=o.getAttribute("data-pinterest-detail-key");if(!l)return null;i=e.querySelector(`[data-pinterest-gallery-key="${l}"]`),i&&(n=!1)}if(!i||!o)return null;const a=w.getRect(n?t:e,i),c=w.getRect(n?e:t,o);return n?{inAnimation:ft({detailRect:c,galleryRect:a,pageRect:e.getBoundingClientRect(),scrollOffset:s},e),outAnimation:$t({galleryRect:a,detailRect:c,scrollOffset:s},t)}:{inAnimation:xt({galleryRect:a,detailRect:c,scrollOffset:s},e),outAnimation:mt({detailRect:c,galleryRect:a,pageRect:t.getBoundingClientRect(),scrollOffset:s},t)}}const bt=(t={})=>{var o,n;const e={stiffness:((o=t.spring)==null?void 0:o.stiffness)??30,damping:((n=t.spring)==null?void 0:n.damping)??10},s=t.timeout??300;let d=null,r=null,i=null;return{in:async(a,{scrollOffset:c})=>{const l=a;return!await new Promise(g=>{d?g(!0):(r=g,setTimeout(()=>{r=null,g(!1)},s))})||!d?(d=null,{spring:e,tick:()=>{}}):(i=wt(d,l,c),i?(d=null,{spring:e,tick:g=>{i&&i.inAnimation(g)}}):{spring:e,tick:()=>{}})},out:async a=>({spring:e,onStart:()=>{d=a,r&&(r(!0),r=null)},prepare:c=>{w.prepareOutgoing(c),c.style.zIndex="-1"},tick:c=>{i&&i.outAnimation(c)}})}},D={stiffness:5,damping:4},Et=(t={})=>{var a,c;const e=t.direction??"up",s={stiffness:((a=t.spring)==null?void 0:a.stiffness)??D.stiffness,damping:((c=t.spring)==null?void 0:c.damping)??D.damping},d=e==="up";let r=null,i=null,o=null;const n=()=>{if(r===null||i===null)return null;const l=Math.min(r,i),p=window.innerHeight;return Math.max(l,p)};return{in:l=>(i=l.offsetHeight,r!==null&&(o=n()),{spring:s,tick:p=>{if(o===null&&(o=n(),o===null))return;const g=d?(1-p)*o:(1-p)*-o;l.style.transform=`translateY(${g}px)`}}),out:l=>({spring:s,onStart:()=>{r=l.offsetHeight,i!==null&&(o=n())},tick:p=>{if(o===null&&(o=n(),o===null))return;const g=d?(1-p)*-o:(1-p)*o;l.style.transform=`translateY(${g}px)`},prepare:p=>{w.prepareOutgoing(p),p.style.zIndex=d?"-1":"1"}})}},O={stiffness:15,damping:7},At=(t={})=>{var r,i;const e=t.direction??"left",s={stiffness:((r=t.spring)==null?void 0:r.stiffness)??O.stiffness,damping:((i=t.spring)==null?void 0:i.damping)??O.damping},d=e==="left";return{in:o=>({spring:s,tick:n=>{const a=d?(1-n)*100:(1-n)*-100;o.style.transform=`translateX(${a}%)`}}),out:(o,n)=>({spring:s,tick:a=>{const c=d?(1-a)*-100:(1-a)*100;o.style.transform=`translateX(${c}%)`},prepare:a=>{w.prepareOutgoing(a,n),a.style.zIndex=d?"-1":"1"}})}},v={stiffness:17,damping:6},k=20,C=800,Lt=()=>{let t,e=null;return{in:s=>({spring:v,prepare:d=>{d.style.transform=`perspective(${C}px) rotateY(${k}deg) translateX(-100%)`},wait:async()=>{t&&await t},tick:d=>{const r=(1-d)*k,i=-(1-d)*100;s.style.transform=`perspective(${C}px) rotateY(${r}deg) translateX(${i}%)`},onEnd:()=>{s.style.transform=""}}),out:(s,d)=>(t=new Promise(r=>{e=r}),{spring:v,prepare:r=>{w.prepareOutgoing(r,d)},tick:r=>{const i=1-r,o=i*k,n=i*100;s.style.transform=`perspective(${C}px) rotateY(${-o}deg) translateX(${n}%)`},onEnd:()=>{e&&e(),s.style.transform=""}})}},Tt={stiffness:1,damping:1},St={stiffness:20,damping:25},kt="#000000",Ct="circle",F="CURTAIN_REVEAL_OVERLAY_ID",Pt={position:"fixed",inset:"0",width:"100vw",height:"100%",zIndex:"9999",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},_t={position:"relative",display:"inline-block",height:"5.5rem",overflow:"hidden"},It={display:"flex",height:"100%",willChange:"transform",transition:"transform 0.3s ease"},Dt={display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:"5.5rem",fontWeight:"900",letterSpacing:"0.02em",color:"#FFFFFF"},Ot=.4,S=.5,vt=.2;function Ft(t,e){switch(t){case"circle":return`circle(${e*100}% at 50% 50%)`;case"square":return`inset(${(1-e)*50}% round ${10*e}%)`;case"triangle":{const s=e*100;return`polygon(50% ${50-s}%, ${50-s}% ${50+s}%, ${50+s}% ${50+s}%)`}}}const Yt=t=>t.reduce((e,s)=>e+s,0),Ut=(t={})=>{const{background:e=kt,texts:s=[],shape:d=Ct,inSpring:r=St,outSpring:i=Tt,textStyle:o={}}=t;return{out:(n,a)=>{const c=n.style.opacity;return{spring:i,from:1,to:0,prepare:l=>{w.prepareOutgoing(l,a),l.style.opacity="1"},tick:l=>{const p=Math.max(0,l-Ot);n.style.opacity=String(p)},onEnd:()=>{n.style.opacity=c}}},in:n=>{let a=null,c=null,l=null;const p=document.body.style.overflow,g=document.getElementById(F);let u=[];const y=()=>{a=document.createElement("div"),a.id=F,Object.assign(a.style,Pt,{background:e}),document.body.appendChild(a),c=document.createElement("div"),Object.assign(c.style,_t),a.appendChild(c),l=document.createElement("div"),Object.assign(l.style,It),c.appendChild(l),s.forEach(h=>{const f=document.createElement("div");f.textContent=h,Object.assign(f.style,Dt,o),l.appendChild(f)}),u=Array.from(l.children).map(h=>h.getBoundingClientRect().width)};return{spring:r,from:0,to:1,prepare:()=>{document.body.style.overflow="hidden",n.style.opacity="1",g==null||g.remove(),y(),a&&c&&(a.style.clipPath="none",c.style.transform="scale(1)")},tick:h=>{if(!(!a||!c||!l)){if(h<=S&&s.length>0){const f=h/S,$=Math.min(Math.floor(f*s.length),s.length-1),x=u[$]??0,m=Yt(u.slice(0,$));c.style.width=`${x}px`,l.style.transform=`translateX(-${m}px)`}if(h>S){const $=1-Math.max(0,Math.min(1,(h-S)/vt));a.style.clipPath=Ft(d,$),c.style.transform=`scale(${$})`}}},onEnd:()=>{a==null||a.remove(),a=c=l=null,document.body.style.overflow=p}}}}};exports.jaemin=w.jaemin;exports.blind=Z;exports.curtainReveal=Ut;exports.drill=J;exports.fade=nt;exports.film=lt;exports.hero=ht;exports.instagram=gt;exports.pinterest=bt;exports.scroll=Et;exports.slide=At;exports.strip=Lt;
30
+ `}f.push(w),h.appendChild(w)}return p.appendChild(h),{container:h,blinds:f}};return{out:()=>{let p=null;return a=new Promise(u=>{l=u}),{springs:Array.from({length:r},(u,y)=>({from:0,to:1,spring:i,offset:y*c,tick:h=>{if(!p)return;const f=p.blinds[y];f&&(s==="horizontal"?f.style.transform=`scaleX(${h})`:f.style.transform=`scaleY(${h})`)}})),schedule:"chain",prepare:u=>{b.prepareOutgoing(u),u.style.zIndex="1000",p=o(u,"hidden","left")},onStart:()=>{},onEnd:()=>{l&&l()}}},in:()=>{let p=null;return{springs:Array.from({length:r},(u,y)=>({from:1,to:0,spring:n,offset:y*c,tick:h=>{if(!p)return;const f=p.blinds[y];f&&(s==="horizontal"?f.style.transform=`scaleX(${h})`:f.style.transform=`scaleY(${h})`)}})),schedule:"chain",prepare:u=>{u.style.position="relative",u.style.zIndex="0",p=o(u,"closed","right")},onStart:()=>{},wait:async()=>{a&&await a,await Y(d)},onEnd:()=>{p&&p.container&&p.container.remove()}}}}},R={stiffness:150,damping:20},tt={stiffness:100,damping:20},nt=(t={})=>{var s,c;const{opacity:n=!1,direction:i="enter"}=t,d=i==="enter"?R:tt,r={stiffness:((s=t.spring)==null?void 0:s.stiffness)??d.stiffness,damping:((c=t.spring)==null?void 0:c.damping)??d.damping};return i==="enter"?{in:e=>({spring:r,prepare:()=>{e.style.willChange=n?"transform, opacity":"transform",e.style.backfaceVisibility="hidden",e.style.perspective="1000px",e.style.transformStyle="preserve-3d",e.style.contain="layout paint"},tick:a=>{e.style.transform=`translate3d(${(1-a)*100}%, 0, 0)`,n&&(e.style.opacity=a.toString())},onEnd:()=>{e.style.willChange="auto",e.style.backfaceVisibility="",e.style.perspective="",e.style.transformStyle="",e.style.contain=""}}),out:(e,a)=>({spring:r,prepare:l=>{b.prepareOutgoing(l,a),l.style.zIndex="-1",l.style.willChange=n?"transform, opacity":"transform",l.style.backfaceVisibility="hidden",l.style.perspective="1000px",l.style.transformStyle="preserve-3d",l.style.contain="layout paint",l.style.pointerEvents="none"},tick:l=>{e.style.transform=`translate3d(${-(1-l)*20}%, 0, 0)`,n&&(e.style.opacity=l.toString())}})}:{in:e=>({spring:r,prepare:()=>{e.style.willChange=n?"transform, opacity":"transform",e.style.backfaceVisibility="hidden",e.style.perspective="1000px",e.style.transformStyle="preserve-3d",e.style.contain="layout paint"},tick:a=>{e.style.transform=`translate3d(${-(1-a)*20}%, 0, 0)`,n&&(e.style.opacity=a.toString())},onEnd:()=>{e.style.willChange="auto",e.style.backfaceVisibility="",e.style.perspective="",e.style.transformStyle="",e.style.contain=""}}),out:(e,a)=>({spring:r,prepare:l=>{b.prepareOutgoing(l,a),l.style.zIndex="100",l.style.willChange=n?"transform, opacity":"transform",l.style.backfaceVisibility="hidden",l.style.perspective="1000px",l.style.transformStyle="preserve-3d",l.style.contain="layout paint",l.style.pointerEvents="none"},tick:l=>{e.style.transform=`translate3d(${(1-l)*100}%, 0, 0)`,n&&(e.style.opacity=l.toString())}})}},et={stiffness:65,damping:16},it={stiffness:65,damping:14},st=0,rt=(t={})=>{const{inSpring:n=it,outSpring:i=et,transitionDelay:d=st}=t;let r,s=null;return{in:c=>({spring:n,prepare:e=>{e.style.opacity="0",e.style.willChange="opacity"},wait:async()=>{r&&(await r,await Y(d))},tick:e=>{const a=V(e,2);c.style.opacity=a.toString()},onEnd:()=>{c.style.willChange="auto"}}),out:(c,e)=>(r=new Promise(a=>{s=a}),{spring:i,tick:a=>{c.style.opacity=a.toString()},prepare:()=>{b.prepareOutgoing(c,e),c.style.willChange="opacity"},onEnd:()=>{s&&s(),c.style.willChange="auto"}})}},lt={stiffness:5,damping:3.5},at=.8,ot="white",m={start:0,end:.45},E={start:.85,end:1},A={start:.2,end:.9},ct=t=>{var r;const n=(t==null?void 0:t.spring)??lt,i=(t==null?void 0:t.scale)??at,d=((r=t==null?void 0:t.border)==null?void 0:r.color)??ot;return{out:async(s,c)=>{const e=v(c),a=b.getRect(document.body,c.positionedParent),l=ht(d,{...e,top:a.top});let o=1,p=-e.top;return{spring:n,prepare:()=>{b.prepareOutgoing(s),P(s,e),_(s,e),pt(s,e);for(const g of l)c.positionedParent.appendChild(g)},onEnd:()=>{s.style.clipPath="",s.style.transformOrigin="",setTimeout(()=>{for(const g of l)c.positionedParent.removeChild(g)},1e3)},tick:g=>{const u=1-g;if(m.start<=u&&u<=m.end){const f=L(u,m.start,m.end);o=1-(1-i)*f}if(E.start<=u&&u<=E.end){const f=L(u,E.start,E.end);o=i+(1-i)*f}if(A.start<=u&&u<=A.end){const f=L(u,A.start,A.end);p=-e.top-e.height*f}s.style.transform=`translateY(${p}px) scale(${o})`;const y=(e.width-e.width*o)/2,h=(e.height-e.height*o)/2;dt(l,y,h)}}},in:async(s,c)=>{const e=v(c);let a=i,l=-e.top+e.height;return{spring:n,prepare:()=>{P(s,e),_(s,e),s.style.transform=`translateY(${-e.top+e.height}px) scale(${i})`},onEnd:()=>{s.style.clipPath="",s.style.transformOrigin="",s.style.transform=""},tick:o=>{if(m.start<=o&&o<=m.end){const p=L(o,m.start,m.end);a=1-(1-i)*p}if(E.start<=o&&o<=E.end){const p=L(o,E.start,E.end);a=i+(1-i)*p}if(A.start<=o&&o<=A.end){const p=L(o,A.start,A.end);l=-e.top+e.height*(1-p)}s.style.transform=`translateY(${l}px) scale(${a})`}}}}};function dt(t,n,i){const d=n*.7,r=i*.7;t.topLeft.style.transform=`translate(${d}px, ${r}px)`,t.topRight.style.transform=`translate(${-d}px, ${r}px)`,t.bottomLeft.style.transform=`translate(${d}px, ${-r}px)`,t.bottomRight.style.transform=`translate(${-d}px, ${-r}px)`}function ht(t="white",n){const r=document.createElement("div");r.style.position="fixed",r.style.pointerEvents="none",r.style.zIndex="9999",r.style.top=`${n.top-1}px`,r.style.left=`${n.left-1}px`,r.style.width="15px",r.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 c=document.createElement("div");c.style.position="absolute",c.style.width="1px",c.style.height="15px",c.style.backgroundColor=t,c.style.top="0",c.style.left="0",r.appendChild(s),r.appendChild(c);const e=document.createElement("div");e.style.position="fixed",e.style.pointerEvents="none",e.style.zIndex="9999",e.style.top=`${n.top-1}px`,e.style.left=`${n.left+n.width-15+1}px`,e.style.width="15px",e.style.height="15px";const a=document.createElement("div");a.style.position="absolute",a.style.width="15px",a.style.height="1px",a.style.backgroundColor=t,a.style.top="0",a.style.right="0";const l=document.createElement("div");l.style.position="absolute",l.style.width="1px",l.style.height="15px",l.style.backgroundColor=t,l.style.top="0",l.style.right="0",e.appendChild(a),e.appendChild(l);const o=document.createElement("div");o.style.position="fixed",o.style.pointerEvents="none",o.style.zIndex="9999",o.style.top=`${n.top+n.height-15+1}px`,o.style.left=`${n.left-1}px`,o.style.width="15px",o.style.height="15px";const p=document.createElement("div");p.style.position="absolute",p.style.width="15px",p.style.height="1px",p.style.backgroundColor=t,p.style.bottom="0",p.style.left="0";const g=document.createElement("div");g.style.position="absolute",g.style.width="1px",g.style.height="15px",g.style.backgroundColor=t,g.style.bottom="0",g.style.left="0",o.appendChild(p),o.appendChild(g);const u=document.createElement("div");u.style.position="fixed",u.style.pointerEvents="none",u.style.zIndex="9999",u.style.top=`${n.top+n.height-15+1}px`,u.style.left=`${n.left+n.width-15+1}px`,u.style.width="15px",u.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.right="0";const h=document.createElement("div");return h.style.position="absolute",h.style.width="1px",h.style.height="15px",h.style.backgroundColor=t,h.style.bottom="0",h.style.right="0",u.appendChild(y),u.appendChild(h),{topLeft:r,topRight:e,bottomLeft:o,bottomRight:u,*[Symbol.iterator](){yield r,yield e,yield o,yield u}}}function v(t){const n=b.getRect(document.body,t.positionedParent);return{top:t.scroll.y,left:0,width:n.width,height:window.innerHeight-n.top}}function P(t,n){const i=n.left+n.width/2,d=n.top+n.height/2;t.style.transformOrigin=`${i}px ${d}px`}function _(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 pt(t,n){t.style.transform=`translateY(${-n.top}px)`}function L(t,n,i){return t<=n?0:t>=i?1:(t-n)/(i-n)}function yt(t,n){return t.querySelector(`[data-hero-key="${n}"]`)}const ut=(t={})=>{var c,e;const n={stiffness:((c=t.spring)==null?void 0:c.stiffness)??300,damping:((e=t.spring)==null?void 0:e.damping)??30},i=t.timeout??300,d=t.maxDistance??700;let r=null,s=null;return{in:async(a,l)=>{const o=a,p=Array.from(o.querySelectorAll("[data-hero-key]"));if(p.length===0)return{spring:n,tick:()=>{}};if(!await new Promise(y=>{r?y(!0):(s=y,setTimeout(()=>{s=null,y(!1)},i))})||!r)return r=null,{spring:n,tick:()=>{}};const u=p.map(y=>{const h=y.getAttribute("data-hero-key");if(!h)return null;const f=yt(r,h);if(!f)return null;const $=y,w=b.getRect(r,f),x=b.getRect(o,$),S=w.left-x.left-l.scrollOffset.x,U=w.top-x.top-l.scrollOffset.y,W=w.width/x.width,X=w.height/x.height,z=$.style.transform,B=$.style.position,M=$.style.transformOrigin,H=$.style.zIndex,N=$.style.willChange;return{toEl:$,dx:S,dy:U,dw:W,dh:X,originalTransform:z,originalPosition:B,originalTransformOrigin:M,originalZIndex:H,originalWillChange:N}}).filter(y=>y!==null&&Math.abs(y.dy)<=d);return r=null,u.length===0?{spring:n,tick:()=>{}}:{spring:n,prepare:()=>{u.forEach(({toEl:y})=>{y.style.position="relative",y.style.transformOrigin="top left",y.style.zIndex="1000",y.style.willChange="transform"})},tick:y=>{u.forEach(({toEl:h,dx:f,dy:$,dw:w,dh:x})=>{h.style.transform=`translate(${(1-y)*f}px,${(1-y)*$}px) scale(${y+(1-y)*w}, ${y+(1-y)*x})`})},onEnd:()=>{u.forEach(({toEl:y,originalTransform:h,originalPosition:f,originalTransformOrigin:$,originalZIndex:w,originalWillChange:x})=>{y.style.transform=h,y.style.position=f,y.style.transformOrigin=$,y.style.zIndex=w,y.style.willChange=x})}}},out:async a=>({onStart:()=>{r=a,s&&(s(!0),s=null)},prepare:l=>{b.prepareOutgoing(l),l.style.opacity="0"}})}};function gt({detailRect:t,galleryRect:n,pageRect:i,scrollOffset:d},r){const s=n.left-t.left+(n.width-t.width)/2-d.x,c=n.top-t.top+(n.height-t.height)/2-d.y,e=n.width/t.width,a=n.height/t.height,l=Math.max(e,a),o=t.top/i.height*100,p=(i.width-(t.left+t.width))/i.width*100,g=(i.height-(t.top+t.height))/i.height*100,u=t.left/i.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=o*h,$=p*h,w=g*h,x=u*h;r.style.clipPath=`inset(${f}% ${$}% ${w}% ${x}%)`,r.style.transform=`translate(${s*h}px, ${c*h}px) scale(${1+(l-1)*h})`}}function ft({detailRect:t,galleryRect:n,pageRect:i,scrollOffset:d},r){const s=n.left-t.left+(n.width-t.width)/2+d.x,c=n.top-t.top+(n.height-t.height)/2+d.y,e=n.width/t.width,a=n.height/t.height,l=Math.min(e,a),o=t.top/i.height*100,p=(i.width-(t.left+t.width))/i.width*100,g=(i.height-(t.top+t.height))/i.height*100,u=t.left/i.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=o*h,$=p*h,w=g*h,x=u*h;r.style.clipPath=`inset(${f}% ${$}% ${w}% ${x}%)`,r.style.transform=`translate(${s*h-d.x}px, ${c*h-d.y}px) scale(${1+(l-1)*h})`}}function $t(t,n,i){const d=t.querySelector("[data-instagram-detail-key]"),r=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 s=null,c=null,e=!1;if(!d&&r){c=r;const o=c.getAttribute("data-instagram-detail-key");if(!o)return null;s=t.querySelector(`[data-instagram-gallery-key="${o}"]`),s&&(e=!0)}else if(d&&!r){c=d;const o=c.getAttribute("data-instagram-detail-key");if(!o)return null;s=n.querySelector(`[data-instagram-gallery-key="${o}"]`),s&&(e=!1)}if(!s||!c)return null;const a=b.getRect(e?t:n,s),l=b.getRect(e?n:t,c);return e?{isEnterMode:!0,inAnimation:gt({detailRect:l,galleryRect:a,pageRect:n.getBoundingClientRect(),scrollOffset:i},n)}:{isEnterMode:!1,outAnimation:ft({detailRect:l,galleryRect:a,pageRect:t.getBoundingClientRect(),scrollOffset:i},t)}}const xt=(t={})=>{var c,e;const n={stiffness:((c=t.spring)==null?void 0:c.stiffness)??150,damping:((e=t.spring)==null?void 0:e.damping)??20},i=t.timeout??300;let d=null,r=null,s=null;return{in:async(a,{scrollOffset:l})=>{const o=a;return!await new Promise(g=>{d?g(!0):(r=g,setTimeout(()=>{r=null,g(!1)},i))})||!d?(d=null,{spring:n,tick:()=>{}}):(s=$t(d,o,l),s?(d=null,{spring:n,tick:g=>{s!=null&&s.inAnimation&&s.inAnimation(g)}}):{spring:n,tick:()=>{}})},out:async a=>({spring:n,onStart:()=>{d=a,r&&(r(!0),r=null)},prepare:l=>{b.prepareOutgoing(l),s!=null&&s.isEnterMode||(l.style.zIndex="-1")},tick:l=>{s!=null&&s.outAnimation&&s.outAnimation(l)}})}};function wt({detailRect:t,galleryRect:n,pageRect:i,scrollOffset:d},r){const s=n.left-t.left+(n.width-t.width)/2-d.x,c=n.top-t.top+(n.height-t.height)/2-d.y,e=n.width/t.width,a=n.height/t.height,l=Math.max(e,a),o=t.top/i.height*100,p=(i.width-(t.left+t.width))/i.width*100,g=(i.height-(t.top+t.height))/i.height*100,u=t.left/i.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=o*h,$=p*h,w=g*h,x=u*h;r.style.clipPath=`inset(${f}% ${$}% ${w}% ${x}%)`,r.style.transform=`translate(${s*h}px, ${c*h}px) scale(${1+(l-1)*h})`}}function bt({galleryRect:t,detailRect:n,scrollOffset:i},d){const r=n.left-t.left+(n.width-t.width)/2+i.x,s=n.top-t.top+(n.height-t.height)/2+i.y,c=n.width/t.width,e=n.height/t.height,a=Math.max(c,e);return l=>{d.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`;const o=1-l;d.style.transform=`translate(${r*o-i.x}px, ${s*o-i.y}px) scale(${1+(a-1)*o})`,d.style.opacity=`${1-o}`}}function mt({galleryRect:t,detailRect:n,scrollOffset:i},d){const r=n.left-t.left+(n.width-t.width)/2-i.x,s=n.top-t.top+(n.height-t.height)/2-i.y,c=n.width/t.width,e=n.height/t.height,a=Math.max(c,e);return l=>{const o=1-l,p=l;d.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,d.style.transform=`translate(${r*o}px, ${s*o}px) scale(${1+(a-1)*o})`,d.style.opacity=`${p}`}}function Et({detailRect:t,galleryRect:n,pageRect:i,scrollOffset:d},r){const s=n.left-t.left+(n.width-t.width)/2+d.x,c=n.top-t.top+(n.height-t.height)/2+d.y,e=n.width/t.width,a=n.height/t.height,l=Math.min(e,a),o=t.top/i.height*100,p=(i.width-(t.left+t.width))/i.width*100,g=(i.height-(t.top+t.height))/i.height*100,u=t.left/i.width*100;return r.style.transformOrigin=`${t.left+t.width/2}px ${t.top+t.height/2}px`,y=>{const h=1-y,f=o*h,$=p*h,w=g*h,x=u*h;r.style.clipPath=`inset(${f}% ${$}% ${w}% ${x}%)`,r.style.transform=`translate(${s*h-d.x}px, ${c*h-d.y}px) scale(${1+(l-1)*h})`}}function At(t,n,i){const d=t.querySelector("[data-pinterest-detail-key]"),r=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 s=null,c=null,e=!1;if(!d&&r){c=r;const o=c.getAttribute("data-pinterest-detail-key");if(!o)return null;s=t.querySelector(`[data-pinterest-gallery-key="${o}"]`),s&&(e=!0)}else if(d&&!r){c=d;const o=c.getAttribute("data-pinterest-detail-key");if(!o)return null;s=n.querySelector(`[data-pinterest-gallery-key="${o}"]`),s&&(e=!1)}if(!s||!c)return null;const a=b.getRect(e?t:n,s),l=b.getRect(e?n:t,c);return e?{inAnimation:wt({detailRect:l,galleryRect:a,pageRect:n.getBoundingClientRect(),scrollOffset:i},n),outAnimation:bt({galleryRect:a,detailRect:l,scrollOffset:i},t)}:{inAnimation:mt({galleryRect:a,detailRect:l,scrollOffset:i},n),outAnimation:Et({detailRect:l,galleryRect:a,pageRect:t.getBoundingClientRect(),scrollOffset:i},t)}}const Lt=(t={})=>{var c,e;const n={stiffness:((c=t.spring)==null?void 0:c.stiffness)??30,damping:((e=t.spring)==null?void 0:e.damping)??10},i=t.timeout??300;let d=null,r=null,s=null;return{in:async(a,{scrollOffset:l})=>{const o=a;return!await new Promise(g=>{d?g(!0):(r=g,setTimeout(()=>{r=null,g(!1)},i))})||!d?(d=null,{spring:n,tick:()=>{}}):(s=At(d,o,l),s?(d=null,{spring:n,tick:g=>{s&&s.inAnimation(g)}}):{spring:n,tick:()=>{}})},out:async a=>({spring:n,onStart:()=>{d=a,r&&(r(!0),r=null)},prepare:l=>{b.prepareOutgoing(l),l.style.zIndex="-1"},tick:l=>{s&&s.outAnimation(l)}})}},I={stiffness:5,damping:4},St=(t={})=>{var a,l;const n=t.direction??"up",i={stiffness:((a=t.spring)==null?void 0:a.stiffness)??I.stiffness,damping:((l=t.spring)==null?void 0:l.damping)??I.damping},d=n==="up";let r=null,s=null,c=null;const e=()=>{if(r===null||s===null)return null;const o=Math.min(r,s),p=window.innerHeight;return Math.max(o,p)};return{in:o=>(s=o.offsetHeight,r!==null&&(c=e()),{spring:i,prepare:()=>{o.style.willChange="transform"},tick:p=>{if(c===null&&(c=e(),c===null))return;const g=d?(1-p)*c:(1-p)*-c;o.style.transform=`translateY(${g}px)`},onEnd:()=>{o.style.willChange="auto"}}),out:o=>({spring:i,onStart:()=>{r=o.offsetHeight,s!==null&&(c=e())},tick:p=>{if(c===null&&(c=e(),c===null))return;const g=d?(1-p)*-c:(1-p)*c;o.style.transform=`translateY(${g}px)`},prepare:p=>{b.prepareOutgoing(p),p.style.zIndex=d?"-1":"1",p.style.willChange="transform"}})}},D={stiffness:15,damping:7},Ct=(t={})=>{var r,s;const n=t.direction??"left",i={stiffness:((r=t.spring)==null?void 0:r.stiffness)??D.stiffness,damping:((s=t.spring)==null?void 0:s.damping)??D.damping},d=n==="left";return{in:c=>({spring:i,prepare:()=>{c.style.willChange="transform"},tick:e=>{const a=d?(1-e)*100:(1-e)*-100;c.style.transform=`translateX(${a}%)`},onEnd:()=>{c.style.willChange="auto"}}),out:(c,e)=>({spring:i,tick:a=>{const l=d?(1-a)*-100:(1-a)*100;c.style.transform=`translateX(${l}%)`},prepare:a=>{b.prepareOutgoing(a,e),a.style.zIndex=d?"-1":"1",a.style.willChange="transform"}})}},O={stiffness:17,damping:6},T=20,k=800,Tt=()=>{let t,n=null;return{in:i=>({spring:O,prepare:d=>{d.style.willChange="transform",d.style.transform=`perspective(${k}px) rotateY(${T}deg) translateX(-100%)`},wait:async()=>{t&&await t},tick:d=>{const r=(1-d)*T,s=-(1-d)*100;i.style.transform=`perspective(${k}px) rotateY(${r}deg) translateX(${s}%)`},onEnd:()=>{i.style.transform="",i.style.willChange="auto"}}),out:(i,d)=>(t=new Promise(r=>{n=r}),{spring:O,prepare:r=>{b.prepareOutgoing(r,d),r.style.willChange="transform"},tick:r=>{const s=1-r,c=s*T,e=s*100;i.style.transform=`perspective(${k}px) rotateY(${-c}deg) translateX(${e}%)`},onEnd:()=>{n&&n(),i.style.transform=""}})}},kt={stiffness:1,damping:1},vt={stiffness:20,damping:25},Pt="#000000",_t="circle",F="CURTAIN_REVEAL_OVERLAY_ID",It={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"},Ot={display:"flex",height:"100%",willChange:"transform",transition:"transform 0.3s ease"},Ft={display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:"5.5rem",fontWeight:"900",letterSpacing:"0.02em",color:"#FFFFFF"},Yt=.4,C=.5,Ut=.2;function Wt(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 i=n*100;return`polygon(50% ${50-i}%, ${50-i}% ${50+i}%, ${50+i}% ${50+i}%)`}}}const Xt=t=>t.reduce((n,i)=>n+i,0),zt=(t={})=>{const{background:n=Pt,texts:i=[],shape:d=_t,inSpring:r=vt,outSpring:s=kt,textStyle:c={}}=t;return{out:(e,a)=>{const l=e.style.opacity;return{spring:s,from:1,to:0,prepare:o=>{b.prepareOutgoing(o,a),o.style.opacity="1"},tick:o=>{const p=Math.max(0,o-Yt);e.style.opacity=String(p)},onEnd:()=>{e.style.opacity=l}}},in:e=>{let a=null,l=null,o=null;const p=document.body.style.overflow,g=document.getElementById(F);let u=[];const y=()=>{a=document.createElement("div"),a.id=F,Object.assign(a.style,It,{background:n}),document.body.appendChild(a),l=document.createElement("div"),Object.assign(l.style,Dt),a.appendChild(l),o=document.createElement("div"),Object.assign(o.style,Ot),l.appendChild(o),i.forEach(h=>{const f=document.createElement("div");f.textContent=h,Object.assign(f.style,Ft,c),o.appendChild(f)}),u=Array.from(o.children).map(h=>h.getBoundingClientRect().width)};return{spring:r,from:0,to:1,prepare:()=>{document.body.style.overflow="hidden",e.style.opacity="1",g==null||g.remove(),y(),a&&l&&(a.style.clipPath="none",l.style.transform="scale(1)")},tick:h=>{if(!(!a||!l||!o)){if(h<=C&&i.length>0){const f=h/C,$=Math.min(Math.floor(f*i.length),i.length-1),w=u[$]??0,x=Xt(u.slice(0,$));l.style.width=`${w}px`,o.style.transform=`translateX(-${x}px)`}if(h>C){const $=1-Math.max(0,Math.min(1,(h-C)/Ut));a.style.clipPath=Wt(d,$),l.style.transform=`scale(${$})`}}},onEnd:()=>{a==null||a.remove(),a=l=o=null,document.body.style.overflow=p}}}}};exports.jaemin=b.jaemin;exports.blind=Q;exports.curtainReveal=zt;exports.drill=nt;exports.fade=rt;exports.film=ct;exports.hero=ut;exports.instagram=xt;exports.pinterest=Lt;exports.scroll=St;exports.slide=Ct;exports.strip=Tt;