svg-scroll-draw 2.19.0 → 2.20.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 (74) hide show
  1. package/README.md +6 -6
  2. package/dist/angular/index.cjs +2 -2
  3. package/dist/angular/index.d.mts +3 -3
  4. package/dist/angular/index.d.ts +3 -3
  5. package/dist/angular/index.mjs +1 -1
  6. package/dist/astro/index.cjs +2 -2
  7. package/dist/astro/index.d.mts +3 -3
  8. package/dist/astro/index.d.ts +3 -3
  9. package/dist/astro/index.mjs +1 -1
  10. package/dist/cdn/svg-scroll-draw.dev.global.js +28 -6
  11. package/dist/cdn/svg-scroll-draw.global.js +2 -2
  12. package/dist/{chunk-JPK2NJWO.mjs → chunk-6SSA5V7J.mjs} +1 -1
  13. package/dist/chunk-LQBXJRFY.mjs +3 -0
  14. package/dist/{chunk-PKHX3HSS.mjs → chunk-VVFGB4RT.mjs} +1 -1
  15. package/dist/{engine-C9LKls__.d.ts → engine-DQyBzZDl.d.ts} +1 -1
  16. package/dist/{engine-CvzRSkuk.d.mts → engine-P8u6OK4m.d.mts} +1 -1
  17. package/dist/group/index.cjs +3 -3
  18. package/dist/group/index.d.mts +3 -3
  19. package/dist/group/index.d.ts +3 -3
  20. package/dist/group/index.mjs +1 -1
  21. package/dist/horizontal/index.d.mts +1 -1
  22. package/dist/horizontal/index.d.ts +1 -1
  23. package/dist/{index-Zxa5HIes.d.mts → index-CMqK0GCT.d.mts} +2 -2
  24. package/dist/{index-BlIjovDN.d.mts → index-CdaBYn3A.d.mts} +1 -1
  25. package/dist/{index-DZjvLJcU.d.ts → index-D3o4vT3e.d.ts} +1 -1
  26. package/dist/{index-G3VfLIN8.d.ts → index-DPqPEnO-.d.ts} +2 -2
  27. package/dist/index.cjs +4 -4
  28. package/dist/index.d.mts +6 -6
  29. package/dist/index.d.ts +6 -6
  30. package/dist/index.mjs +1 -1
  31. package/dist/nuxt/index.cjs +2 -2
  32. package/dist/nuxt/index.d.mts +3 -3
  33. package/dist/nuxt/index.d.ts +3 -3
  34. package/dist/nuxt/index.mjs +1 -1
  35. package/dist/pin/index.cjs +1 -1
  36. package/dist/pin/index.d.mts +8 -2
  37. package/dist/pin/index.d.ts +8 -2
  38. package/dist/pin/index.mjs +1 -1
  39. package/dist/progress/index.d.mts +1 -1
  40. package/dist/progress/index.d.ts +1 -1
  41. package/dist/react/index.cjs +2 -2
  42. package/dist/react/index.d.mts +7 -8
  43. package/dist/react/index.d.ts +7 -8
  44. package/dist/react/index.mjs +1 -1
  45. package/dist/reveal/index.d.mts +1 -1
  46. package/dist/reveal/index.d.ts +1 -1
  47. package/dist/{scroll-draw-B4CadBz0.d.mts → scroll-draw-Dej-GIRP.d.mts} +1 -1
  48. package/dist/{scroll-draw-Cs6Z5ype.d.ts → scroll-draw-DsBMkwrX.d.ts} +1 -1
  49. package/dist/snap/index.d.mts +1 -1
  50. package/dist/snap/index.d.ts +1 -1
  51. package/dist/solid/index.cjs +3 -3
  52. package/dist/solid/index.d.mts +3 -3
  53. package/dist/solid/index.d.ts +3 -3
  54. package/dist/solid/index.mjs +1 -1
  55. package/dist/svelte/index.cjs +2 -2
  56. package/dist/svelte/index.d.mts +3 -3
  57. package/dist/svelte/index.d.ts +3 -3
  58. package/dist/svelte/index.mjs +1 -1
  59. package/dist/text/index.d.mts +1 -1
  60. package/dist/text/index.d.ts +1 -1
  61. package/dist/timeline/index.d.mts +1 -1
  62. package/dist/timeline/index.d.ts +1 -1
  63. package/dist/{types-B0YM4nQP.d.mts → types-MswK0erX.d.mts} +6 -0
  64. package/dist/{types-B0YM4nQP.d.ts → types-MswK0erX.d.ts} +6 -0
  65. package/dist/video/index.d.mts +1 -1
  66. package/dist/video/index.d.ts +1 -1
  67. package/dist/vue/index.cjs +2 -2
  68. package/dist/vue/index.d.mts +3 -3
  69. package/dist/vue/index.d.ts +3 -3
  70. package/dist/vue/index.mjs +1 -1
  71. package/dist/web-component/index.cjs +3 -3
  72. package/dist/web-component/index.mjs +1 -1
  73. package/package.json +3 -3
  74. package/dist/chunk-WHFRS7IP.mjs +0 -3
@@ -1 +1 @@
1
- import {a,b}from'../chunk-XSVTHCLO.mjs';import {a as a$3}from'../chunk-7SBTYJGH.mjs';import {a as a$4}from'../chunk-I45LCJUP.mjs';import {a as a$2}from'../chunk-KHQ7OGQK.mjs';import {a as a$1}from'../chunk-BFX2CSQ3.mjs';import {b as b$1}from'../chunk-WHFRS7IP.mjs';import'../chunk-OJFWQ6CU.mjs';import'../chunk-YWKPTYSG.mjs';import'../chunk-YZV4Z3EQ.mjs';import'../chunk-A4JCC3QQ.mjs';import'../chunk-DM6EDKWH.mjs';import'../chunk-4DOJSIEQ.mjs';import'../chunk-BCV4RAIX.mjs';import'../chunk-LFSU6LR3.mjs';import {createEffect,onCleanup,untrack}from'solid-js';function o(e,f){let l,t,c,r;return createEffect(()=>{r=typeof e=="function"?e():e;let n=a(r);!l||n===c||(c=n,untrack(()=>{t?.destroy(),t=f(l,b(r,()=>r));}));}),onCleanup(()=>{t?.destroy(),t=c=void 0;}),{ref:n=>{l=n;},getInstance:()=>t}}function D(e={}){return o(e,b$1).ref}function V(e={}){return o(e,b$1)}function C(e){return o(e,a$1).ref}function H(e){return o(e,a$1)}function L(e){return o(e,a$2).ref}function g(e){return o(e,a$2)}function I(e={}){return o(e,a$3).ref}function k(e={}){return o(e,a$3)}function v(e={}){return o(e,a$4).ref}function j(e={}){return o(e,a$4)}export{H as createScrollAnimate,g as createScrollCounter,V as createScrollDraw,j as createScrollText,k as createScrollVideo,C as useScrollAnimate,L as useScrollCounter,D as useScrollDraw,v as useScrollText,I as useScrollVideo};
1
+ import {a,b}from'../chunk-XSVTHCLO.mjs';import {a as a$3}from'../chunk-7SBTYJGH.mjs';import {a as a$4}from'../chunk-I45LCJUP.mjs';import {a as a$2}from'../chunk-KHQ7OGQK.mjs';import {a as a$1}from'../chunk-BFX2CSQ3.mjs';import {b as b$1}from'../chunk-LQBXJRFY.mjs';import'../chunk-OJFWQ6CU.mjs';import'../chunk-YWKPTYSG.mjs';import'../chunk-YZV4Z3EQ.mjs';import'../chunk-A4JCC3QQ.mjs';import'../chunk-DM6EDKWH.mjs';import'../chunk-4DOJSIEQ.mjs';import'../chunk-BCV4RAIX.mjs';import'../chunk-LFSU6LR3.mjs';import {createEffect,onCleanup,untrack}from'solid-js';function o(e,f){let l,t,c,r;return createEffect(()=>{r=typeof e=="function"?e():e;let n=a(r);!l||n===c||(c=n,untrack(()=>{t?.destroy(),t=f(l,b(r,()=>r));}));}),onCleanup(()=>{t?.destroy(),t=c=void 0;}),{ref:n=>{l=n;},getInstance:()=>t}}function D(e={}){return o(e,b$1).ref}function V(e={}){return o(e,b$1)}function C(e){return o(e,a$1).ref}function H(e){return o(e,a$1)}function L(e){return o(e,a$2).ref}function g(e){return o(e,a$2)}function I(e={}){return o(e,a$3).ref}function k(e={}){return o(e,a$3)}function v(e={}){return o(e,a$4).ref}function j(e={}){return o(e,a$4)}export{H as createScrollAnimate,g as createScrollCounter,V as createScrollDraw,j as createScrollText,k as createScrollVideo,C as useScrollAnimate,L as useScrollCounter,D as useScrollDraw,v as useScrollText,I as useScrollVideo};
@@ -1,3 +1,3 @@
1
- 'use strict';function Jt({bounces:e=3,decay:r=.5}={}){let n=Math.max(1,Math.round(e)),t=Math.max(.01,Math.min(.99,r)),i=Math.sqrt(t),o=0,l=[];for(let g=0;g<n;g++){let T=Math.pow(i,g);l.push(T),o+=T;}let u=[0],m=0;for(let g=0;g<n;g++)m+=l[g]/o,u.push(m);return g=>{if(g<=0)return 0;if(g>=1)return 1;for(let T=0;T<n;T++)if(g<=u[T+1]){let q=(g-u[T])/(u[T+1]-u[T]);if(T===0)return q*(2-q);let A=1-Math.pow(t,T);return A+(1-A)*(2*q-1)*(2*q-1)}return 1}}function er({amplitude:e=1,period:r=.4}={}){let n=Math.max(1,e),t=Math.max(.1,r),i=n<=1?t/4:t/(2*Math.PI)*Math.asin(1/n);return o=>o<=0?0:o>=1?1:n*Math.pow(2,-10*o)*Math.sin((o-i)*(2*Math.PI)/t)+1}var ie={linear:e=>e,"ease-in":e=>e*e,"ease-out":e=>e*(2-e),"ease-in-out":e=>e<.5?2*e*e:-1+(4-2*e)*e,spring:e=>1-Math.cos(e*Math.PI*2.5)*Math.pow(1-e,2.2),bounce:Jt(),elastic:er()};function Lt(e,r,n){return Math.min(n,Math.max(r,e))}function he(e="top bottom"){let r=e.trim();if(/^\d+(\.\d+)?%$/.test(r))return {element:"top",viewport:r};let[n="top",t="bottom"]=r.split(/\s+/).filter(Boolean);return {element:n,viewport:t}}function $t(e,r,n,t){switch(t){case "top":return e+n;case "center":return e+n+r/2;case "bottom":return e+n+r;default:return e+n}}function Ct(e,r){if(/^\d+(\.\d+)?%$/.test(e))return r*(parseFloat(e)/100);switch(e){case "top":return 0;case "center":return r/2;case "bottom":return r;default:return r}}function Z(e,r,n,t){return n===r?0:Lt((e-r)/(n-r)*t,0,1)}function Le(e,r,n,t,i){let o=$t(e.top,e.height,r,t.element)-Ct(t.viewport,n),l=$t(e.top,e.height,r,i.element)-Ct(i.viewport,n);return {tStart:o,tEnd:l}}function tt(e,r,n){let t=e.getBoundingClientRect(),i=n==="x"?t.width:t.height;return r?{top:n==="x"?t.left-r.getBoundingClientRect().left+r.scrollLeft:t.top-r.getBoundingClientRect().top+r.scrollTop,height:i,scroll:0}:{top:n==="x"?t.left:t.top,height:i,scroll:n==="x"?window.scrollX:window.scrollY}}function qe(e){let r=e.tagName.toLowerCase();if(r==="rect"){let n=parseFloat(e.getAttribute("width")??"0"),t=parseFloat(e.getAttribute("height")??"0");return 2*(n+t)}if(r==="circle"){let n=parseFloat(e.getAttribute("r")??"0");return 2*Math.PI*n}return e.getTotalLength()}function Pt(e){let r=/^#([a-f\d])([a-f\d])([a-f\d])$/i.exec(e);if(r)return [parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16)];let n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(n)return [parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)];let t=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i.exec(e);return t?[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]:null}function We(e,r,n){let t=Pt(e),i=Pt(r);return !t||!i?e:`rgb(${Math.round(t[0]+(i[0]-t[0])*n)},${Math.round(t[1]+(i[1]-t[1])*n)},${Math.round(t[2]+(i[2]-t[2])*n)})`}var kt={sketch:{easing:"ease-in",stagger:.1,speed:.9,fade:false},reveal:{easing:"ease-out",fade:true,speed:1.2,once:true},typewriter:{easing:"linear",stagger:.05,speed:1.5},cinematic:{easing:"ease-in-out",fade:true,speed:.75},spring:{easing:"spring",speed:1.1}};var Ge=typeof __SVG_SCROLL_DRAW_DEV__<"u"?__SVG_SCROLL_DRAW_DEV__:typeof process<"u"&&typeof process.env<"u"&&process.env.NODE_ENV!=="production";function be(e,...r){Ge&&console.warn(`[svg-scroll-draw] ${e}`,...r);}var tr="cubic-bezier(0.333333, 0, 0.666667, 0.333333)",rr="cubic-bezier(0.333333, 0.666667, 0.666667, 1)",It=33;function nr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timing-function: linear(0, 1)")}function or(e){let r=[];for(let n=0;n<It;n++){let t=n/(It-1);r.push(String(Math.round(e(t)*1e5)/1e5));}return `linear(${r.join(",")})`}function rt(e){switch(e){case "linear":return "linear";case "ease-in":return tr;case "ease-out":return rr;case "ease-in-out":return nr()?or(ie["ease-in-out"]):null;default:return null}}var Ot=Symbol.for("svg-scroll-draw.registry");function Dt(){let e=globalThis;return e[Ot]||(e[Ot]=new Map)}function Ie(e,r){Dt().set(e,r);}function Oe(e){Dt().delete(e);}var je,nt=new Set,ot=new WeakMap,Ue=new Map,Ft=e=>{let r=e.getBoundingClientRect();return r.width+" "+r.height};function sr(e){let r=new Set;for(let n of e)for(;n&&n!==document.body;n=n.parentElement)for(let t=n;t;t=t.previousElementSibling)r.add(t);return r}function Fe(e,r){if(typeof ResizeObserver>"u"||typeof document>"u")return ()=>{};let n=()=>r();je??(je=new ResizeObserver(i=>{let o=false;for(let{target:l}of i)ot.get(l)!==Ft(l)&&(o=true),ot.set(l,"");o&&nt.forEach(l=>l());})),nt.add(n);let t=sr(e);return [document.body,document.documentElement].forEach(i=>i&&t.add(i)),t.forEach(i=>{ot.has(i)||ot.set(i,Ft(i)),Ue.set(i,(Ue.get(i)??0)+1),je.observe(i);}),()=>{nt.delete(n)&&(t.forEach(i=>{let o=(Ue.get(i)??1)-1;if(o)return void Ue.set(i,o);Ue.delete(i),je?.unobserve(i);}),nt.size||(je?.disconnect(),je=void 0));}}var ir=0;function ar(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")&&CSS.supports("view-timeline-name: --x")}function Rt(e,r){let n="";try{n=getComputedStyle(e).getPropertyValue(r).trim();}catch{}return n||(e.getAttribute(r)??"").trim()}var Ht=new Set(["","none","transparent","rgba(0, 0, 0, 0)"]);function lr(e){if(!Ge)return;let r=Rt(e,"stroke");if(!r||r==="none"){be("Element has no stroke \u2014 path will not be visible.",e);return}let n=(e.getAttribute("fill")??"").trim();n&&!Ht.has(n)&&!Ht.has(Rt(e,"fill"))&&be("Element has a fill \u2014 it may obscure the stroke animation.",e);}function cr(e,r,n){let t=document.createElement("div");t.setAttribute("data-svg-scroll-draw-debug",""),t.style.cssText="position:fixed;pointer-events:none;z-index:9999;font-family:monospace;font-size:11px;top:0;left:0;right:0;bottom:0;";function i(){let o=n==="x"?window.scrollX:window.scrollY,l=e-o,u=r-o,m=n==="x";t.innerHTML=`
1
+ 'use strict';function or({bounces:e=3,decay:r=.5}={}){let n=Math.max(1,Math.round(e)),t=Math.max(.01,Math.min(.99,r)),i=Math.sqrt(t),s=0,l=[];for(let d=0;d<n;d++){let T=Math.pow(i,d);l.push(T),s+=T;}let u=[0],m=0;for(let d=0;d<n;d++)m+=l[d]/s,u.push(m);return d=>{if(d<=0)return 0;if(d>=1)return 1;for(let T=0;T<n;T++)if(d<=u[T+1]){let R=(d-u[T])/(u[T+1]-u[T]);if(T===0)return R*(2-R);let A=1-Math.pow(t,T);return A+(1-A)*(2*R-1)*(2*R-1)}return 1}}function sr({amplitude:e=1,period:r=.4}={}){let n=Math.max(1,e),t=Math.max(.1,r),i=n<=1?t/4:t/(2*Math.PI)*Math.asin(1/n);return s=>s<=0?0:s>=1?1:n*Math.pow(2,-10*s)*Math.sin((s-i)*(2*Math.PI)/t)+1}var ce={linear:e=>e,"ease-in":e=>e*e,"ease-out":e=>e*(2-e),"ease-in-out":e=>e<.5?2*e*e:-1+(4-2*e)*e,spring:e=>1-Math.cos(e*Math.PI*2.5)*Math.pow(1-e,2.2),bounce:or(),elastic:sr()};function kt(e,r,n){return Math.min(n,Math.max(r,e))}function be(e="top bottom"){let r=e.trim();if(/^\d+(\.\d+)?%$/.test(r))return {element:"top",viewport:r};let[n="top",t="bottom"]=r.split(/\s+/).filter(Boolean);return {element:n,viewport:t}}function It(e,r,n,t){switch(t){case "top":return e+n;case "center":return e+n+r/2;case "bottom":return e+n+r;default:return e+n}}function Ot(e,r){if(/^\d+(\.\d+)?%$/.test(e))return r*(parseFloat(e)/100);switch(e){case "top":return 0;case "center":return r/2;case "bottom":return r;default:return r}}function te(e,r,n,t){return n===r?0:kt((e-r)/(n-r)*t,0,1)}function Ce(e,r,n,t,i){let s=It(e.top,e.height,r,t.element)-Ot(t.viewport,n),l=It(e.top,e.height,r,i.element)-Ot(i.viewport,n);return {tStart:s,tEnd:l}}function ot(e,r,n){let t=e.getBoundingClientRect(),i=n==="x"?t.width:t.height;return r?{top:n==="x"?t.left-r.getBoundingClientRect().left+r.scrollLeft:t.top-r.getBoundingClientRect().top+r.scrollTop,height:i,scroll:0}:{top:n==="x"?t.left:t.top,height:i,scroll:n==="x"?window.scrollX:window.scrollY}}function Ge(e){let r=e.tagName.toLowerCase();if(r==="rect"){let n=parseFloat(e.getAttribute("width")??"0"),t=parseFloat(e.getAttribute("height")??"0");return 2*(n+t)}if(r==="circle"){let n=parseFloat(e.getAttribute("r")??"0");return 2*Math.PI*n}return e.getTotalLength()}function Dt(e){let r=/^#([a-f\d])([a-f\d])([a-f\d])$/i.exec(e);if(r)return [parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16)];let n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(n)return [parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)];let t=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i.exec(e);return t?[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]:null}function je(e,r,n){let t=Dt(e),i=Dt(r);return !t||!i?e:`rgb(${Math.round(t[0]+(i[0]-t[0])*n)},${Math.round(t[1]+(i[1]-t[1])*n)},${Math.round(t[2]+(i[2]-t[2])*n)})`}var Ft={sketch:{easing:"ease-in",stagger:.1,speed:.9,fade:false},reveal:{easing:"ease-out",fade:true,speed:1.2,once:true},typewriter:{easing:"linear",stagger:.05,speed:1.5},cinematic:{easing:"ease-in-out",fade:true,speed:.75},spring:{easing:"spring",speed:1.1}};var Ye=typeof __SVG_SCROLL_DRAW_DEV__<"u"?__SVG_SCROLL_DRAW_DEV__:typeof process<"u"&&typeof process.env<"u"&&process.env.NODE_ENV!=="production";function we(e,...r){Ye&&console.warn(`[svg-scroll-draw] ${e}`,...r);}var ir="cubic-bezier(0.333333, 0, 0.666667, 0.333333)",ar="cubic-bezier(0.333333, 0.666667, 0.666667, 1)",Rt=33;function lr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timing-function: linear(0, 1)")}function cr(e){let r=[];for(let n=0;n<Rt;n++){let t=n/(Rt-1);r.push(String(Math.round(e(t)*1e5)/1e5));}return `linear(${r.join(",")})`}function st(e){switch(e){case "linear":return "linear";case "ease-in":return ir;case "ease-out":return ar;case "ease-in-out":return lr()?cr(ce["ease-in-out"]):null;default:return null}}var Ht=Symbol.for("svg-scroll-draw.registry");function Nt(){let e=globalThis;return e[Ht]||(e[Ht]=new Map)}function Ie(e,r){Nt().set(e,r);}function Oe(e){Nt().delete(e);}var Xe,it=new Set,at=new WeakMap,Ke=new Map,Vt=e=>{let r=e.getBoundingClientRect();return r.width+" "+r.height};function ur(e){let r=new Set;for(let n of e)for(;n&&n!==document.body;n=n.parentElement)for(let t=n;t;t=t.previousElementSibling)r.add(t);return r}function Fe(e,r){if(typeof ResizeObserver>"u"||typeof document>"u")return ()=>{};let n=()=>r();Xe??(Xe=new ResizeObserver(i=>{let s=false;for(let{target:l}of i)at.get(l)!==Vt(l)&&(s=true),at.set(l,"");s&&it.forEach(l=>l());})),it.add(n);let t=ur(e);return [document.body,document.documentElement].forEach(i=>i&&t.add(i)),t.forEach(i=>{at.has(i)||at.set(i,Vt(i)),Ke.set(i,(Ke.get(i)??0)+1),Xe.observe(i);}),()=>{it.delete(n)&&(t.forEach(i=>{let s=(Ke.get(i)??1)-1;if(s)return void Ke.set(i,s);Ke.delete(i),Xe?.unobserve(i);}),it.size||(Xe?.disconnect(),Xe=void 0));}}var mr=0;function fr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")&&CSS.supports("view-timeline-name: --x")}function zt(e,r){let n="";try{n=getComputedStyle(e).getPropertyValue(r).trim();}catch{}return n||(e.getAttribute(r)??"").trim()}var _t=new Set(["","none","transparent","rgba(0, 0, 0, 0)"]);function pr(e){if(!Ye)return;let r=zt(e,"stroke");if(!r||r==="none"){we("Element has no stroke \u2014 path will not be visible.",e);return}let n=(e.getAttribute("fill")??"").trim();n&&!_t.has(n)&&!_t.has(zt(e,"fill"))&&we("Element has a fill \u2014 it may obscure the stroke animation.",e);}function dr(e,r,n){let t=document.createElement("div");t.setAttribute("data-svg-scroll-draw-debug",""),t.style.cssText="position:fixed;pointer-events:none;z-index:9999;font-family:monospace;font-size:11px;top:0;left:0;right:0;bottom:0;";function i(){let s=n==="x"?window.scrollX:window.scrollY,l=e-s,u=r-s,m=n==="x";t.innerHTML=`
2
2
  <div style="position:absolute;${m?`left:${l}px;top:0;bottom:0;border-left:2px dashed #22c55e;`:`top:${l}px;left:0;right:0;border-top:2px dashed #22c55e;`}padding:2px 6px;color:#22c55e;background:rgba(0,0,0,.6)">\u25B6 start</div>
3
- <div style="position:absolute;${m?`left:${u}px;top:0;bottom:0;border-left:2px dashed #ef4444;`:`top:${u}px;left:0;right:0;border-top:2px dashed #ef4444;`}padding:2px 6px;color:#ef4444;background:rgba(0,0,0,.6)">\u25A0 end</div>`;}return document.body.appendChild(t),window.addEventListener("scroll",i,{passive:true}),i(),{el:t,destroy(){window.removeEventListener("scroll",i),t.remove();}}}var Nt=/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,Vt=/[MmLlHhVvCcSsQqTtAaZz]/g;function ur(e,r,n){if(!Ge)return;let t=(e.match(Vt)??[]).join("").toUpperCase(),i=(r.match(Vt)??[]).join("").toUpperCase(),o=(e.match(Nt)??[]).length,l=(r.match(Nt)??[]).length;if(t!==i){be(`morphTo: command sequence differs (${t||"\u2205"} \u2192 ${i||"\u2205"}). Interpolation is coordinate-for-coordinate, so the result will not reach the target shape. Redraw both paths with the same commands.`,n);return}o!==l&&be(`morphTo: coordinate count differs (${o} \u2192 ${l}). Extra coordinates are ignored and missing ones hold their start value, so the result will not reach the target shape.`,n);}function ut(e,r,n){let t=(r.match(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g)??[]).map(Number),i=0;return e.replace(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,o=>{let l=parseFloat(o),u=t[i++]??l;return String(+(l+(u-l)*n).toFixed(4))})}function mt(e,r={}){if(typeof window>"u")return {destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};let{preset:n,...t}=r,i=n?{...kt[n],...t}:t,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,{selector:l="path, polyline, line, polygon, rect, circle",speed:u=1,fade:m=false,easing:g="linear",trigger:T={},stagger:q=0,direction:A="forward",once:J=false,debug:$e=false,axis:j="y",scrollContainer:ae,autoReverse:ee=false,delay:U=0,strokeColor:F,strokeWidth:C,fillOpacity:k,waypoints:b,velocityScale:P=false,threshold:x=0,rootMargin:M="0px",repeat:E=0,repeatDelay:te=0,morphTo:L,clip:re,autoplay:we=false,duration:ge=1e3,native:ye=true,onProgress:N,onStart:$,onComplete:f,onEnter:p,onLeave:I,onEnterBack:W,onLeaveBack:Ee}=i,w=re===true?"left":typeof re=="string"?re:false,V=typeof g=="function"?g:ie[g]??ie.linear,le=he(T.start??"top bottom"),Re=he(T.end??"bottom top"),Se=typeof ae=="string"?document.querySelector(ae):ae??null,Te=Array.isArray(F)?F[0]:null,ce=Array.isArray(F)?F[1]:typeof F=="string"?F:null,Y=Array.isArray(C)?C[0]:null,ne=Array.isArray(C)?C[1]:typeof C=="number"?C:null,oe=Array.isArray(k)?k[0]:null,X=Array.isArray(k)?k[1]:typeof k=="number"?k:null;function He(s){let c=s*100;switch(w){case "right":return `inset(0 0 0 ${100-c}%)`;case "top":return `inset(0 0 ${100-c}% 0)`;case "bottom":return `inset(${100-c}% 0 0 0)`;case "center":return `circle(${s*150}% at 50% 50%)`;default:return `inset(0 ${100-c}% 0 0)`}}let B=w?[]:Array.from(e.querySelectorAll(l)),O=[],ue=[],me=0,Ce=0,a=false,d=false,z=0,fe=false,R=-1,se=[],Pe=-1,K=false,H=0,xe=0,Me,st=null;function wt(){st?.destroy(),st=null;}let Ve=new Set,vt=NaN,ze=true,Xe=-1,Et=performance.now(),_e=NaN;function it(){return Se?j==="x"?Se.scrollLeft:Se.scrollTop:j==="x"?window.scrollX:window.scrollY}function St(){return Se?j==="x"?Se.clientWidth:Se.clientHeight:j==="x"?window.innerWidth:window.innerHeight}function Tt(){let s=tt(e,Se,j);return Le(s,s.scroll,St(),le,Re)}function xt(){(({tStart:me,tEnd:Ce}=Tt())),$e&&Ge&&(wt(),st=cr(me,Ce,j));}function at(s,c=Tt){Ie(e,{type:"draw",getProgress:()=>s.getProgress(),getTrigger:c});let v=s.destroy;return s.destroy=()=>{v.call(s),Oe(e);},s}function Yt(s,c){if(e.style.setProperty("--scroll-draw-progress",String(s)),w){let v=c==="reverse"?1-s:s;e.style.clipPath=He(v);return}B.forEach((v,pe)=>{v.style.strokeDashoffset=c==="reverse"?`${O[pe]*s}`:`${O[pe]*(1-s)}`,m&&(v.style.opacity=c==="reverse"?`${1-s}`:`${s}`),Te&&ce?v.style.stroke=We(Te,ce,s):ce&&(v.style.stroke=ce),Y!==null&&ne!==null?v.style.strokeWidth=`${Y+(ne-Y)*s}`:ne!==null&&(v.style.strokeWidth=`${ne}`),oe!==null&&X!==null?v.style.fillOpacity=`${oe+(X-oe)*s}`:X!==null&&(v.style.fillOpacity=`${X}`),L&&v.tagName.toLowerCase()==="path"&&ue[pe]&&v.setAttribute("d",ut(ue[pe],L,s));});}function Ke(){if(e.style.setProperty("--scroll-draw-progress","0"),w){e.style.clipPath=He(0);return}B.forEach((s,c)=>{s.style.strokeDasharray=`${O[c]}`,s.style.strokeDashoffset=A==="reverse"?"0":`${O[c]}`,m?s.style.opacity=A==="reverse"?"1":"0":s.style.opacity="",Te&&(s.style.stroke=Te),Y!==null&&(s.style.strokeWidth=`${Y}`),oe!==null&&(s.style.fillOpacity=`${oe}`),L&&s.tagName.toLowerCase()==="path"&&ue[c]&&s.setAttribute("d",ue[c]);});}if(B.forEach(s=>{lr(s);let c=qe(s);O.push(c);let v=s.tagName.toLowerCase()==="path";v?ue.push(s.getAttribute("d")??""):ue.push(""),L&&(v?ur(ue[ue.length-1],L,s):be(`morphTo only applies to <path> elements \u2014 ignored on <${s.tagName}>.`,s)),o?(s.style.strokeDasharray=`${c}`,s.style.strokeDashoffset=A==="reverse"?`${c}`:"0",m&&(s.style.opacity="1"),ce&&(s.style.stroke=ce),ne!==null&&(s.style.strokeWidth=`${ne}`),X!==null&&(s.style.fillOpacity=`${X}`),L&&s.tagName.toLowerCase()==="path"&&s.setAttribute("d",L)):(s.style.strokeDasharray=`${c}`,s.style.strokeDashoffset=A==="reverse"?"0":`${c}`,m?s.style.opacity=A==="reverse"?"1":"0":s.style.opacity="",Te&&(s.style.stroke=Te),Y!==null&&(s.style.strokeWidth=`${Y}`),oe!==null&&(s.style.fillOpacity=`${oe}`));}),w){if(o)return e.style.clipPath=He(1),f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};e.style.clipPath=He(0);}else if(o)return f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};let Mt=typeof g=="string"?rt(g):null;function Xt(){return !(ye===false||!ar()||!B.length||!Mt||w||j!=="y"||Se||u!==1||q!==0||J||ee||P!==false||L||b||E||U>0||N||$||f||p||I||W||Ee||F!=null||C!=null||k!=null||(T.start??"top bottom").trim()!=="top bottom"||(T.end??"bottom top").trim()!=="bottom top")}function Kt(){let s=++ir,c=`svg-scroll-draw-${s}`,v=`svg-scroll-draw-host-${s}`,pe=`--svg-scroll-draw-${s}`,Ne=A==="reverse"?"0":"var(--ssd-len)",De=A==="reverse"?"var(--ssd-len)":"0",ke=`stroke-dashoffset:${Ne};`,S=`stroke-dashoffset:${De};`;m&&(ke+=`opacity:${A==="reverse"?1:0};`,S+=`opacity:${A==="reverse"?0:1};`);let D=document.createElement("style");D.setAttribute("data-svg-scroll-draw",""),D.textContent=`@keyframes ${c}{from{${ke}}to{${S}}}.${v}{view-timeline-name:${pe};view-timeline-axis:block;}.${c}{animation-name:${c};animation-duration:auto;animation-timing-function:${Mt};animation-fill-mode:both;animation-timeline:${pe};animation-range:cover 0% cover 100%;}`,document.head.appendChild(D),e.classList.add(v);function de(y,Q){y.style.setProperty("--ssd-len",String(O[Q])),y.style.strokeDasharray=`${O[Q]}`,y.style.strokeDashoffset="",y.style.opacity="",y.style.animationPlayState="",y.classList.add(c);}B.forEach(de);let h=false,_=-1;function G(){if(_>=0)return _;let y=e.getBoundingClientRect(),{tStart:Q,tEnd:Ae}=Le({top:y.top,height:y.height},it(),St(),le,Re);return V(Z(it(),Q,Ae,u))}return {destroy(){e.classList.remove(v),B.forEach(y=>{y.classList.remove(c),y.style.removeProperty("--ssd-len"),y.style.animationPlayState="";}),D.remove();},replay(){h=false,_=-1,B.forEach(de);},pause(){h=true,B.forEach(y=>{y.style.animationPlayState="paused";});},resume(){h&&(h=false,B.forEach(y=>{y.style.animationPlayState="running";}));},seek(y){let Q=Math.min(1,Math.max(0,y));_=Q,h=true,B.forEach((Ae,ve)=>{Ae.classList.remove(c),Ae.style.strokeDashoffset=A==="reverse"?`${O[ve]*Q}`:`${O[ve]*(1-Q)}`,m&&(Ae.style.opacity=A==="reverse"?`${1-Q}`:`${Q}`);});},getProgress(){return G()},refresh(){B.forEach((y,Q)=>{O[Q]=qe(y),y.style.setProperty("--ssd-len",String(O[Q])),y.style.strokeDasharray=`${O[Q]}`;});}}}if(Xt())return at(Kt());function Qt(){let s=Math.max(1,ge),c=0,v=0,pe=false;function Ne(h){let _=true;if(w){let G=Math.min(1,Math.max(0,h/s)),y=V(G);H=y,e.style.setProperty("--scroll-draw-progress",String(y)),e.style.clipPath=He(A==="reverse"?1-y:y),N?.(y),G<1&&(_=false);}else B.forEach((G,y)=>{let Q=y*q*s,Ae=Math.min(1,Math.max(0,(h-Q)/s)),ve=V(Ae);G.style.strokeDashoffset=A==="reverse"?`${O[y]*ve}`:`${O[y]*(1-ve)}`,m&&(G.style.opacity=A==="reverse"?`${1-ve}`:`${ve}`),Te&&ce?G.style.stroke=We(Te,ce,ve):ce&&(G.style.stroke=ce),Y!==null&&ne!==null?G.style.strokeWidth=`${Y+(ne-Y)*ve}`:ne!==null&&(G.style.strokeWidth=`${ne}`),oe!==null&&X!==null?G.style.fillOpacity=`${oe+(X-oe)*ve}`:X!==null&&(G.style.fillOpacity=`${X}`),L&&G.tagName.toLowerCase()==="path"&&ue[y]&&G.setAttribute("d",ut(ue[y],L,ve)),y===0&&(H=ve,N?.(ve),e.style.setProperty("--scroll-draw-progress",String(ve))),Ae<1&&(_=false);});if(b){let G=Math.min(1,Math.max(0,h/s)),y=V(G);for(let Q in b){let Ae=parseFloat(Q);y>=Ae&&!Ve.has(Ae)&&(Ve.add(Ae),b[Q]?.());}}return _}function De(h){if(K)return;let _=h-c;d||(d=true,$?.());let G=Ne(_);if(G&&!a){a=true,Ne(s*(1+Math.max(0,B.length-1)*q)),f?.(),xe<(E==="infinite"?1/0:E??0)&&(xe++,Me=setTimeout(()=>{c=performance.now(),d=false,a=false,Ve.clear(),Ke(),z=requestAnimationFrame(De);},te));return}G||(z=requestAnimationFrame(De));}function ke(){cancelAnimationFrame(z),clearTimeout(Me),c=performance.now(),v=0,K=false,d=false,a=false,xe=0,pe=true,H=0,Ve.clear(),Ke(),z=requestAnimationFrame(De);}let S=new IntersectionObserver(h=>{h.forEach(_=>{_.isIntersecting&&!(J&&a)?ke():!_.isIntersecting&&!J&&!a&&(cancelAnimationFrame(z),clearTimeout(Me),pe=false);});},{root:Se??null,threshold:x,rootMargin:M}),D;function de(){clearTimeout(D),D=setTimeout(()=>{B.forEach((h,_)=>{O[_]=qe(h),h.style.strokeDasharray=`${O[_]}`;});},150);}return window.addEventListener("resize",de),window.addEventListener("orientationchange",de),U>0?setTimeout(()=>S.observe(e),U):S.observe(e),{destroy(){cancelAnimationFrame(z),clearTimeout(Me),S.disconnect(),window.removeEventListener("resize",de),window.removeEventListener("orientationchange",de),clearTimeout(D);},replay(){xe=0,ke();},pause(){K||!pe||(K=true,v=performance.now()-c,cancelAnimationFrame(z));},resume(){K&&(K=false,pe=true,c=performance.now()-v,z=requestAnimationFrame(De));},seek(h){let _=Math.min(1,Math.max(0,h));H=_,K=true,v=_*s,c=performance.now()-v,cancelAnimationFrame(z),Ne(v);},getProgress(){return H},refresh(){clearTimeout(D),B.forEach((h,_)=>{O[_]=qe(h),h.style.strokeDasharray=`${O[_]}`;});}}}if(we)return at(Qt());xt();function Qe(){if(!fe||K)return;let s=performance.now(),c=it();if(!ze&&P===false&&c===vt){z=requestAnimationFrame(Qe);return}ze=false,vt=c;let v=u;if(P!==false){let S=s-Et,D=S>0?Math.abs(c-(Xe<0?c:Xe))/S:0;v=u*Math.max(.2,1+D*(typeof P=="number"?P:1)*.04);}Xe=c,Et=s;let pe=ee?Pe===-1||c>=Pe?"forward":"reverse":A;Pe=c;let Ne=Ce-me,De=true,ke=Ne===0?0:(c-me)/Ne;if(isNaN(_e)||(_e<=0&&ke>0?p?.():_e>0&&ke<=0&&Ee?.(),_e<1&&ke>=1?I?.():_e>=1&&ke<1&&W?.()),_e=ke,w){let S=V(Z(c,me,Ce,v));J&&!ee&&(R=Math.max(R,S),S=R),H=S,e.style.setProperty("--scroll-draw-progress",String(S));let D=pe==="reverse"?1-S:S;e.style.clipPath=He(D),N?.(S),!d&&Z(c,me,Ce,v)>0&&(d=true,$?.()),S>=1&&!a?(a=true,f?.(),xe<(E==="infinite"?1/0:E??0)&&(xe++,Me=setTimeout(()=>{R=-1,d=false,a=false,e.style.clipPath=He(0);},te))):S<1&&!J&&(a=false),z=requestAnimationFrame(Qe);return}if(B.forEach((S,D)=>{let de=D*q*Ne,h=V(Z(c,me+de,Ce+de,v));J&&!ee&&(h=se[D]=Math.max(se[D]??R,h)),S.style.strokeDashoffset=pe==="reverse"?`${O[D]*h}`:`${O[D]*(1-h)}`,m&&(S.style.opacity=pe==="reverse"?`${1-h}`:`${h}`),Te&&ce?S.style.stroke=We(Te,ce,h):ce&&(S.style.stroke=ce),Y!==null&&ne!==null?S.style.strokeWidth=`${Y+(ne-Y)*h}`:ne!==null&&(S.style.strokeWidth=`${ne}`),oe!==null&&X!==null?S.style.fillOpacity=`${oe+(X-oe)*h}`:X!==null&&(S.style.fillOpacity=`${X}`),L&&S.tagName.toLowerCase()==="path"&&ue[D]&&S.setAttribute("d",ut(ue[D],L,h)),D===0&&(H=h,N?.(h),e.style.setProperty("--scroll-draw-progress",String(h))),h<1&&(De=false);}),b){let S=V(Z(c,me,Ce,v));for(let D in b){let de=parseFloat(D);S>=de&&!Ve.has(de)&&(Ve.add(de),b[D]?.());}}!d&&Z(c,me,Ce,v)>0&&(d=true,$?.()),De&&!a?(a=true,f?.(),xe<(E==="infinite"?1/0:E??0)&&(xe++,Me=setTimeout(()=>{R=-1,se=[],d=false,a=false,Ve.clear(),Ke(),ze=true;},te))):!De&&!J&&(a=false),z=requestAnimationFrame(Qe);}let lt=false;function Ze(){lt||(lt=true,z=requestAnimationFrame(function(){Qe();}));}function Je(){lt=false,cancelAnimationFrame(z);}let ct=new IntersectionObserver(s=>{s.forEach(c=>{fe=c.isIntersecting,fe&&!K?(ze=true,Ze()):Je();});},{root:Se??null,threshold:x,rootMargin:M});function At(){B.forEach((s,c)=>{O[c]=qe(s),s.style.strokeDasharray=`${O[c]}`;}),xt(),ze=true;}let et;function Be(){clearTimeout(et),et=setTimeout(At,150);}window.addEventListener("resize",Be),window.addEventListener("orientationchange",Be);let Zt=Fe([e],Be);return U>0?setTimeout(()=>ct.observe(e),U):ct.observe(e),at({destroy(){cancelAnimationFrame(z),clearTimeout(Me),Je(),ct.disconnect(),Zt(),window.removeEventListener("resize",Be),window.removeEventListener("orientationchange",Be),clearTimeout(et),wt();},replay(){R=-1,se=[],Pe=-1,Xe=-1,d=false,a=false,xe=0,K=false,H=0,Ve.clear(),clearTimeout(Me),Ke(),ze=true,fe&&Ze();},pause(){K=true,Je();},resume(){K&&(K=false,ze=true,fe&&Ze());},seek(s){let c=Math.min(1,Math.max(0,s));H=c,R=c,se=[],K=true,Je(),Yt(c,A),ze=true;},getProgress(){return H},refresh(){clearTimeout(et),At(),fe&&!K&&Ze();}},()=>({tStart:me,tEnd:Ce}))}var zt=new WeakMap,mr=0;function ft(e){return JSON.stringify(e,(r,n)=>{if(typeof n=="function")return "\u0192";if(typeof Element<"u"&&n instanceof Element){let t=zt.get(n);return t===void 0&&zt.set(n,t=++mr),`el#${t}`}return n})}function pt(e,r){let n={...e};for(let t of Object.keys(n))typeof n[t]=="function"&&(n[t]=(...i)=>r()[t]?.(...i));return n}function fr(e){return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")}function _t(e){let r=[],n=/([\w]+)\(([^)]*)\)/g,t;for(;(t=n.exec(e))!==null;){let i=[],o=[],l=t[2].trim();if(l)for(let u of l.split(/[\s,]+/)){let m=u.match(/^([-+]?[\d.eE]+)(.*)$/);i.push(m?parseFloat(m[1]):0),o.push(m?m[2]:"");}r.push({fn:t[1],nums:i,units:o});}return r}function pr(e,r,n){let t=_t(e),i=_t(r);return t.length===0||t.length!==i.length?n<1?e:r:t.map((o,l)=>{let u=i[l];return o.fn!==u.fn||o.nums.length!==u.nums.length?n<1?`${o.fn}(${o.nums.map((m,g)=>`${m}${o.units[g]}`).join(", ")})`:`${u.fn}(${u.nums.map((m,g)=>`${m}${u.units[g]}`).join(", ")})`:`${o.fn}(${o.nums.map((m,g)=>`${m+(u.nums[g]-m)*n}${o.units[g]}`).join(", ")})`}).join(" ")}function qt(e,r,n){if(typeof e=="number"&&typeof r=="number")return String(e+(r-e)*n);let t=String(e),i=String(r);if(fr(t))return We(t,i,n);if(t.includes("("))return pr(t,i,n);let o=t.match(/^([-+]?[\d.]+)(.*)$/),l=i.match(/^([-+]?[\d.]+)(.*)$/);if(o&&l){let u=parseFloat(o[1]),m=parseFloat(l[1]);return `${u+(m-u)*n}${o[2]||l[2]}`}return n<1?t:i}function dr(e){return e.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}var gr=new Set(["opacity","transform","background-color","color","filter","scale","translate","rotate"]),yr=0,Wt="--scroll-draw-progress";function hr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")}function dt(e,r){let n={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};if(typeof window>"u")return n;let{props:t,trigger:i={},easing:o="ease-out",speed:l=1,once:u=false,axis:m="y",scrollContainer:g,native:T=true,velocityScale:q=false,respectReducedMotion:A=true,triggerElement:J,onProgress:$e,onComplete:j,onEnter:ae,onLeave:ee,onEnterBack:U,onLeaveBack:F}=r,C=A&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,k=typeof o=="function"?o:ie[o]??ie["ease-out"],b=he(i.start??"top bottom"),P=he(i.end??"bottom top"),x=J??e,M=typeof g=="string"?document.querySelector(g):g??null,E=Object.entries(t).map(([a,d])=>({prop:dr(a),from:Array.isArray(d)?d[0]:"",to:Array.isArray(d)?d[1]:d}));function te(){let a=window.getComputedStyle(e);for(let d of E)d.from===""&&(d.from=a.getPropertyValue(d.prop).trim()||"0");}function L(){for(let a of E)e.style.setProperty(a.prop,String(a.to));}let re=new Map;for(let a of [...E.map(d=>d.prop),Wt])re.set(a,e.style.getPropertyValue(a));function we(){for(let[a,d]of re)d?e.style.setProperty(a,d):e.style.removeProperty(a);}if(C)return L(),j?.(),{...n,destroy:we,getProgress:()=>1};te();let ge=typeof o=="string"?rt(o):null;function ye(){if(!T||!hr()||!ge||m!=="y"||M||x!==e||u||l!==1||$e||j||ae||ee||U||F||q!==false||(i.start??"top bottom").trim()!=="top bottom"||(i.end??"bottom top").trim()!=="bottom top")return false;for(let a of E)if(!gr.has(a.prop))return false;return true}function N(){let a=`ssd-a-${++yr}`,d=E.map(H=>`${H.prop}:${H.from}`).join(";"),z=E.map(H=>`${H.prop}:${H.to}`).join(";"),fe=document.createElement("style");fe.setAttribute("data-ssd-animate",""),fe.textContent=`@keyframes ${a}{from{${d}}to{${z}}}.${a}{animation-name:${a};animation-duration:auto;animation-timing-function:${ge};animation-fill-mode:both;animation-timeline:view();animation-range:cover 0% cover 100%;}`,document.head.appendChild(fe),e.classList.add(a);let R=()=>m==="x"?window.scrollX:window.scrollY,se=()=>m==="x"?window.innerWidth:window.innerHeight,Pe=()=>{let H=e.getBoundingClientRect();return Le({top:H.top,height:H.height},R(),se(),b,P)};Ie(e,{type:"animate",getProgress:()=>K.getProgress(),getTrigger:Pe});let K={refresh(){},destroy(){e.classList.remove(a),fe.remove(),e.style.animationPlayState="",we(),Oe(e);},replay(){e.classList.remove(a),e.offsetWidth,e.classList.add(a);},pause(){e.style.animationPlayState="paused";},resume(){e.style.animationPlayState="";},seek(H){let xe=Math.min(1,Math.max(0,H));e.classList.remove(a);for(let Me of E)e.style.setProperty(Me.prop,qt(Me.from,Me.to,xe));},getProgress(){let{tStart:H,tEnd:xe}=Pe();return k(Z(R(),H,xe,l))}};return K}if(ye())return N();let $=0,f=0,p=0,I=false,W=false,Ee=-1,w=0,V=false,le=NaN,Re=-1,Se=0,Te=()=>M?m==="x"?M.scrollLeft:M.scrollTop:m==="x"?window.scrollX:window.scrollY,ce=()=>M?m==="x"?M.clientWidth:M.clientHeight:m==="x"?window.innerWidth:window.innerHeight,Y=x===e?E:[],ne=false;function oe(){let a=e.style,d=Y.map(se=>a.getPropertyValue(se.prop)),z=a.transition;Y.length&&(a.transition="none"),Y.forEach(se=>a.setProperty(se.prop,re.get(se.prop)??""));let fe=tt(x,M,m);Y.forEach((se,Pe)=>a.setProperty(se.prop,d[Pe])),Y.length&&(e.offsetWidth,a.transition=z);let R=Le(fe,fe.scroll,ce(),b,P);ne&&Math.abs(R.tStart-$)<1&&Math.abs(R.tEnd-f)<1||(ne=true,$=R.tStart,f=R.tEnd);}function X(a){e.style.setProperty(Wt,String(a));for(let d of E)e.style.setProperty(d.prop,qt(d.from,d.to,a));$e?.(a);}function He(a){if(isNaN(le)){le=a;return}le<=0&&a>0?ae?.():le>0&&a<=0&&F?.(),le<1&&a>=1?ee?.():le>=1&&a<1&&U?.(),le=a;}function B(){if(!I||W)return;let a=performance.now(),d=Te(),z=l;if(q!==false){let se=a-Se,Pe=se>0?Math.abs(d-(Re<0?d:Re))/se:0;z=l*Math.max(.2,1+Pe*(typeof q=="number"?q:1)*.04);}Re=d,Se=a;let fe=f===$?0:(d-$)/(f-$);He(fe);let R=k(Z(d,$,f,z));u&&(Ee=Math.max(Ee,R),R=Ee),w=R,X(R),R>=1&&!V?(V=true,j?.()):R<1&&!u&&(V=false),p=requestAnimationFrame(B);}oe(),f===$&&be("scrollAnimate: the trigger window has zero length (start and end resolve to the same scroll position), so this element will never animate. If the target is inside a position:sticky stage, measure the trigger from the container that holds the scroll room via `triggerElement`.",e);{let a=k(Z(Te(),$,f,l));u&&a>0&&(Ee=a),w=a,X(a);}let O=new IntersectionObserver(a=>{a.forEach(d=>{I=d.isIntersecting,I&&!W?p=requestAnimationFrame(B):cancelAnimationFrame(p);});},{root:M??null}),ue;function me(){clearTimeout(ue),ue=setTimeout(oe,150);}window.addEventListener("resize",me),window.addEventListener("orientationchange",me);let Ce=Fe([x],me);return O.observe(e),Ie(e,{type:"animate",getProgress:()=>w,getTrigger:()=>({tStart:$,tEnd:f})}),{destroy(){cancelAnimationFrame(p),O.disconnect(),window.removeEventListener("resize",me),window.removeEventListener("orientationchange",me),Ce(),clearTimeout(ue),we(),Oe(e);},replay(){Ee=-1,V=false,w=0,W=false,X(0);},pause(){W=true,cancelAnimationFrame(p);},resume(){W&&(W=false,I&&(p=requestAnimationFrame(B)));},seek(a){let d=Math.min(1,Math.max(0,a));w=d,Ee=d,W=true,cancelAnimationFrame(p),X(d);},getProgress(){return w},refresh(){oe();}}}var gt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function yt(e,r){if(typeof window>"u")return gt;let n=typeof e=="string"?document.querySelector(e):e;if(!n)return be("scrollCounter: element not found:",e),gt;let t=n,{from:i=0,to:o,format:l,easing:u="ease-out",trigger:m={},once:g=true,decimals:T,onComplete:q}=r,A=T!==void 0?f=>f.toFixed(T):l??(f=>String(Math.round(f))),J=typeof u=="function"?u:ie[u]??ie["ease-out"],$e=he(m.start??"top 80%"),j=he(m.end??"top 20%");if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return t.textContent=A(o),q?.(),gt;let ee=0,U=0,F=false,C=0,k=false,b=false,P=-1,x=0,M=false,E=()=>window.scrollY,te=()=>window.innerHeight;function L(){let f=t.getBoundingClientRect(),p=Le({top:f.top,height:f.height},E(),te(),$e,j);F&&Math.abs(p.tStart-ee)<1&&Math.abs(p.tEnd-U)<1||(F=true,ee=p.tStart,U=p.tEnd);}function re(f){t.textContent=A(i+(o-i)*f),t.style.setProperty("--scroll-draw-progress",String(f));}function we(){if(!k||b)return;let f=J(Z(E(),ee,U,1));g&&(P=Math.max(P,f),f=P),x=f,re(f),f>=1&&!M?(M=true,q?.()):f<1&&!g&&(M=false),C=requestAnimationFrame(we);}L();{let f=J(Z(E(),ee,U,1));g&&f>0&&(P=f),x=f,re(f);}let ge=new IntersectionObserver(f=>{f.forEach(p=>{k=p.isIntersecting,k&&!b?C=requestAnimationFrame(we):cancelAnimationFrame(C);});}),ye;function N(){clearTimeout(ye),ye=setTimeout(L,150);}window.addEventListener("resize",N),window.addEventListener("orientationchange",N);let $=Fe([t],N);return ge.observe(t),Ie(t,{type:"counter",getProgress:()=>x,getTrigger:()=>({tStart:ee,tEnd:U})}),{destroy(){cancelAnimationFrame(C),ge.disconnect(),window.removeEventListener("resize",N),window.removeEventListener("orientationchange",N),$(),clearTimeout(ye),Oe(t);},replay(){P=-1,M=false,x=0,b=false,re(0);},pause(){b=true,cancelAnimationFrame(C);},resume(){b&&(b=false,k&&(C=requestAnimationFrame(we)));},seek(f){let p=Math.min(1,Math.max(0,f));x=p,P=p,b=true,cancelAnimationFrame(C),re(p);},getProgress(){return x}}}var Bt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function ht(e,r={}){if(typeof window>"u")return Bt;let n=typeof e=="string"?document.querySelector(e):e;if(!n||n.tagName.toLowerCase()!=="video")return be("scrollVideo: <video> element not found:",e),Bt;let t=n,{trigger:i={},easing:o="linear",once:l=false,axis:u="y",preload:m="auto",triggerElement:g,onReady:T,onComplete:q,onProgress:A}=r,J=g??t,$e=window.matchMedia("(prefers-reduced-motion: reduce)").matches,j=typeof o=="function"?o:ie[o]??ie.linear,ae=he(i.start??"top top"),ee=he(i.end??"bottom top");t.pause(),t.hasAttribute("preload")||(t.preload=m);let U=r.from??0,F=r.to,C=0,k=0,b=0,P=false,x=false,M=-1,E=0,te=false,L=false,re=()=>u==="x"?window.scrollX:window.scrollY,we=()=>u==="x"?window.innerWidth:window.innerHeight;function ge(){let w=J.getBoundingClientRect(),V=u==="x"?w.left:w.top,le=u==="x"?w.width:w.height,Re=Le({top:V,height:le},re(),we(),ae,ee);C=Re.tStart,k=Re.tEnd,L&&k===C&&be("scrollVideo: zero-length trigger window, so it never scrubs. In a sticky stage, set triggerElement.",t);}let ye=NaN;function N(w){if(!L)return;let V=F??t.duration??0,le=U+(V-U)*w;le!==ye&&(ye=le,t.currentTime=le),t.style.setProperty("--scroll-draw-progress",String(w)),A?.(w);}function $(){if(!P||x||!L||$e)return;let w=j(Z(re(),C,k,1));l&&(M=Math.max(M,w),w=M),E=w,N(w),w>=1&&!te?(te=true,q?.()):w<1&&!l&&(te=false),b=requestAnimationFrame($);}function f(){if(L=true,F===void 0&&(F=t.duration),$e){N(1),T?.();return}ge(),T?.(),P&&!x&&(b=requestAnimationFrame($));}t.readyState>=1?f():t.addEventListener("loadedmetadata",f,{once:true}),L||ge();let p=new IntersectionObserver(w=>{w.forEach(V=>{P=V.isIntersecting,P&&!x&&L?b=requestAnimationFrame($):cancelAnimationFrame(b);});}),I;function W(){clearTimeout(I),I=setTimeout(ge,150);}window.addEventListener("resize",W),window.addEventListener("orientationchange",W);let Ee=Fe([J],W);return p.observe(t),Ie(t,{type:"video",getProgress:()=>E,getTrigger:()=>({tStart:C,tEnd:k})}),{destroy(){cancelAnimationFrame(b),p.disconnect(),t.removeEventListener("loadedmetadata",f),window.removeEventListener("resize",W),window.removeEventListener("orientationchange",W),Ee(),clearTimeout(I),Oe(t);},replay(){M=-1,te=false,E=0,x=false,ye=NaN,N(0);},pause(){x=true,cancelAnimationFrame(b);},resume(){x&&(x=false,P&&L&&(b=requestAnimationFrame($)));},seek(w){let V=Math.min(1,Math.max(0,w));E=V,M=V,x=true,cancelAnimationFrame(b),ye=NaN,N(V);},getProgress(){return E}}}function Ut(e){let r=e.textContent??"";return e.textContent="",r.split(/(\s+)/).filter(Boolean).map(n=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),/^\s+$/.test(n)?(t.textContent=n,t.style.whiteSpace="pre"):(t.textContent=n,t.style.display="inline-block"),e.appendChild(t),/^\s+$/.test(n)?null:t}).filter(n=>n!==null)}function br(e){let r=e.textContent??"";return e.textContent="",r.split("").map(n=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),t.textContent=n,n===" "?t.style.whiteSpace="pre":t.style.display="inline-block",e.appendChild(t),n===" "?null:t}).filter(n=>n!==null)}function Gt(e){let r=Ut(e),n=new Map;for(let o of r){let l=o.offsetTop;n.has(l)||n.set(l,[]),n.get(l).push(o);}let t=[],i=Array.from(n.keys()).sort((o,l)=>o-l);for(let o of i){let l=n.get(o),u=document.createElement("span");u.setAttribute("aria-hidden","true"),u.style.display="inline-block",l.forEach((m,g)=>{let T=m.nextElementSibling;u.appendChild(m),g<l.length-1&&T&&T.style.whiteSpace==="pre"&&u.appendChild(T);}),t.push(u);}return e.textContent="",t.forEach((o,l)=>{e.appendChild(o),l<t.length-1&&e.appendChild(document.createTextNode(" "));}),t}function wr(e,r,n,t){if(n<=1||t===0)return e;let i=(n-1)*t,o=r*t,l=o+(1-i);return l<=o?e>=o?1:0:Math.min(1,Math.max(0,(e-o)/(l-o)))}function vr(e,r){let n=[];if(r?.y!==void 0&&n.push(`translateY(${r.y*(1-e)}px)`),r?.x!==void 0&&n.push(`translateX(${r.x*(1-e)}px)`),r?.rotate!==void 0&&n.push(`rotate(${r.rotate*(1-e)}deg)`),r?.scale!==void 0){let t=r.scale+(1-r.scale)*e;n.push(`scale(${t})`);}return n.join(" ")||""}var jt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function bt(e,r={}){if(typeof window>"u")return jt;let n=typeof e=="string"?document.querySelector(e):e;if(!n)return be("scrollText: element not found:",e),jt;let t=n,{split:i="words",stagger:o=.04,easing:l="ease-out",from:u={opacity:0,y:24},trigger:m={},once:g=true,onComplete:T}=r,q=window.matchMedia("(prefers-reduced-motion: reduce)").matches,A=typeof l=="function"?l:ie[l]??ie["ease-out"],J=he(m.start??"top 85%"),$e=he(m.end??"top 40%"),j=t.innerHTML;t.setAttribute("aria-label",t.textContent??"");let ae;i==="chars"?ae=br(t):i==="lines"?ae=Gt(t):ae=Ut(t);let ee=ae.length;function U(p,I){u?.opacity!==void 0&&(p.style.opacity=String(u.opacity+(1-u.opacity)*I));let W=vr(I,u);W&&(p.style.transform=W);}function F(p){t.style.setProperty("--scroll-draw-progress",String(p)),ae.forEach((I,W)=>{let Ee=A(wr(p,W,ee,o));U(I,Ee);});}if(q)return F(1),T?.(),{destroy(){t.innerHTML=j,t.removeAttribute("aria-label");},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};F(0);let C=0,k=0,b=0,P=false,x=false,M=-1,E=0,te=false,L=()=>window.scrollY,re=()=>window.innerHeight;function we(){let p=t.getBoundingClientRect(),I=Le({top:p.top,height:p.height},L(),re(),J,$e);C=I.tStart,k=I.tEnd;}function ge(){if(!P||x)return;let p=Z(L(),C,k,1);g&&(M=Math.max(M,p),p=M),E=p,F(p),p>=1&&!te?(te=true,T?.()):p<1&&!g&&(te=false),b=requestAnimationFrame(ge);}we();let ye=new IntersectionObserver(p=>{p.forEach(I=>{P=I.isIntersecting,P&&!x?b=requestAnimationFrame(ge):cancelAnimationFrame(b);});}),N;function $(){clearTimeout(N),N=setTimeout(()=>{if(i==="lines"){let p=E;t.innerHTML=j,t.setAttribute("aria-label",t.textContent??""),ae=Gt(t),F(p);}we();},150);}window.addEventListener("resize",$),window.addEventListener("orientationchange",$);let f=Fe([t],$);return ye.observe(t),Ie(t,{type:"text",getProgress:()=>E,getTrigger:()=>({tStart:C,tEnd:k})}),{destroy(){cancelAnimationFrame(b),ye.disconnect(),window.removeEventListener("resize",$),window.removeEventListener("orientationchange",$),f(),clearTimeout(N),t.innerHTML=j,t.removeAttribute("aria-label"),Oe(t);},replay(){M=-1,te=false,E=0,x=false,F(0);},pause(){x=true,cancelAnimationFrame(b);},resume(){x&&(x=false,P&&(b=requestAnimationFrame(ge)));},seek(p){let I=Math.min(1,Math.max(0,p));E=I,M=I,x=true,cancelAnimationFrame(b),F(I);},getProgress(){return E}}}function Ye(e,r,n){let t=r,i=ft(r),o=n(e,pt(r,()=>t));return {update(l){t=l;let u=ft(l);u!==i&&(i=u,o.destroy(),o=n(e,pt(l,()=>t)));},destroy(){o.destroy();}}}function An(e,r={}){return Ye(e,r,mt)}function Ln(e={}){let r=null;function n(t){return r=mt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function $n(e,r){return Ye(e,r,dt)}function Cn(e){let r=null;function n(t){return r=dt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function Pn(e,r){return Ye(e,r,yt)}function kn(e){let r=null;function n(t){return r=yt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function In(e,r={}){return Ye(e,r,ht)}function On(e={}){let r=null;function n(t){return r=ht(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function Dn(e,r={}){return Ye(e,r,bt)}function Fn(e={}){let r=null;function n(t){return r=bt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}exports.createScrollAnimate=Cn;exports.createScrollCounter=kn;exports.createScrollDraw=Ln;exports.createScrollText=Fn;exports.createScrollVideo=On;exports.scrollAnimate=$n;exports.scrollCounterAction=Pn;exports.scrollDraw=An;exports.scrollTextAction=Dn;exports.scrollVideoAction=In;
3
+ <div style="position:absolute;${m?`left:${u}px;top:0;bottom:0;border-left:2px dashed #ef4444;`:`top:${u}px;left:0;right:0;border-top:2px dashed #ef4444;`}padding:2px 6px;color:#ef4444;background:rgba(0,0,0,.6)">\u25A0 end</div>`;}return document.body.appendChild(t),window.addEventListener("scroll",i,{passive:true}),i(),{el:t,destroy(){window.removeEventListener("scroll",i),t.remove();}}}var Wt=/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,qt=/[MmLlHhVvCcSsQqTtAaZz]/g;function gr(e,r,n){if(!Ye)return;let t=(e.match(qt)??[]).join("").toUpperCase(),i=(r.match(qt)??[]).join("").toUpperCase(),s=(e.match(Wt)??[]).length,l=(r.match(Wt)??[]).length;if(t!==i){we(`morphTo: command sequence differs (${t||"\u2205"} \u2192 ${i||"\u2205"}). Interpolation is coordinate-for-coordinate, so the result will not reach the target shape. Redraw both paths with the same commands.`,n);return}s!==l&&we(`morphTo: coordinate count differs (${s} \u2192 ${l}). Extra coordinates are ignored and missing ones hold their start value, so the result will not reach the target shape.`,n);}function ft(e,r,n){let t=(r.match(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g)??[]).map(Number),i=0;return e.replace(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,s=>{let l=parseFloat(s),u=t[i++]??l;return String(+(l+(u-l)*n).toFixed(4))})}function pt(e,r={}){if(typeof window>"u")return {destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};let{preset:n,...t}=r,i=n?{...Ft[n],...t}:t,s=window.matchMedia("(prefers-reduced-motion: reduce)").matches,{selector:l="path, polyline, line, polygon, rect, circle",speed:u=1,fade:m=false,easing:d="linear",trigger:T={},stagger:R=0,direction:A="forward",once:re=false,debug:Pe=false,axis:G="y",scrollContainer:ue,autoReverse:ne=false,delay:Y=0,strokeColor:H,strokeWidth:P,fillOpacity:I,waypoints:w,velocityScale:k=false,threshold:x=0,rootMargin:M="0px",repeat:E=0,repeatDelay:oe=0,morphTo:L,clip:se,autoplay:ve=false,duration:ge=1e3,native:ye=true,onProgress:N,onStart:C,onComplete:f,onEnter:p,onLeave:O,onEnterBack:q,onLeaveBack:Me}=i,v=se===true?"left":typeof se=="string"?se:false,V=typeof d=="function"?d:ce[d]??ce.linear,me=be(T.start??"top bottom"),Re=be(T.end??"bottom top"),Ee=typeof ue=="string"?document.querySelector(ue):ue??null,Ae=Array.isArray(H)?H[0]:null,fe=Array.isArray(H)?H[1]:typeof H=="string"?H:null,X=Array.isArray(P)?P[0]:null,ie=Array.isArray(P)?P[1]:typeof P=="number"?P:null,ae=Array.isArray(I)?I[0]:null,K=Array.isArray(I)?I[1]:typeof I=="number"?I:null;function He(o){let a=o*100;switch(v){case "right":return `inset(0 0 0 ${100-a}%)`;case "top":return `inset(0 0 ${100-a}% 0)`;case "bottom":return `inset(${100-a}% 0 0 0)`;case "center":return `circle(${o*150}% at 50% 50%)`;default:return `inset(0 ${100-a}% 0 0)`}}let z=v?[]:Array.from(e.querySelectorAll(l)),D=[],pe=[],J=0,Se=0,c=R,h=0,_=false,B=false,$=0,ee=false,he=-1,Ne=[],le=-1,j=false,Te=0,Ve=0,ze,lt=null;function Et(){lt?.destroy(),lt=null;}let _e=new Set,St=NaN,We=true,Ze=-1,Tt=performance.now(),qe=NaN;function Je(){return Ee?G==="x"?Ee.scrollLeft:Ee.scrollTop:G==="x"?window.scrollX:window.scrollY}function xt(){return Ee?G==="x"?Ee.clientWidth:Ee.clientHeight:G==="x"?window.innerWidth:window.innerHeight}function Mt(){let o=ot(e,Ee,G);return Ce(o,o.scroll,xt(),me,Re)}function Zt(){let o=Se-J,a=z.length-1,y=Ee??document.documentElement,Q=G==="x"?"Width":"Height";if(c=R,R>0&&a>0&&o>0){let Le=y[`scroll${Q}`]-y[`client${Q}`]-1-J-o/u;Le>=0&&(c=Math.min(R,Le/(a*o)));}h=Se+a*c*o;}function At(){(({tStart:J,tEnd:Se}=Mt())),Zt(),Pe&&Ye&&(Et(),lt=dr(J,Se,G));}function ct(o,a=Mt){Ie(e,{type:"draw",getProgress:()=>o.getProgress(),getTrigger:a});let y=o.destroy;return o.destroy=()=>{y.call(o),Oe(e);},o}function Jt(o,a){if(e.style.setProperty("--scroll-draw-progress",String(o)),v){let y=a==="reverse"?1-o:o;e.style.clipPath=He(y);return}z.forEach((y,Q)=>{y.style.strokeDashoffset=a==="reverse"?`${D[Q]*o}`:`${D[Q]*(1-o)}`,m&&(y.style.opacity=a==="reverse"?`${1-o}`:`${o}`),Ae&&fe?y.style.stroke=je(Ae,fe,o):fe&&(y.style.stroke=fe),X!==null&&ie!==null?y.style.strokeWidth=`${X+(ie-X)*o}`:ie!==null&&(y.style.strokeWidth=`${ie}`),ae!==null&&K!==null?y.style.fillOpacity=`${ae+(K-ae)*o}`:K!==null&&(y.style.fillOpacity=`${K}`),L&&y.tagName.toLowerCase()==="path"&&pe[Q]&&y.setAttribute("d",ft(pe[Q],L,o));});}function et(){if(e.style.setProperty("--scroll-draw-progress","0"),v){e.style.clipPath=He(0);return}z.forEach((o,a)=>{o.style.strokeDasharray=`${D[a]}`,o.style.strokeDashoffset=A==="reverse"?"0":`${D[a]}`,m?o.style.opacity=A==="reverse"?"1":"0":o.style.opacity="",Ae&&(o.style.stroke=Ae),X!==null&&(o.style.strokeWidth=`${X}`),ae!==null&&(o.style.fillOpacity=`${ae}`),L&&o.tagName.toLowerCase()==="path"&&pe[a]&&o.setAttribute("d",pe[a]);});}if(z.forEach(o=>{pr(o);let a=Ge(o);D.push(a);let y=o.tagName.toLowerCase()==="path";y?pe.push(o.getAttribute("d")??""):pe.push(""),L&&(y?gr(pe[pe.length-1],L,o):we(`morphTo only applies to <path> elements \u2014 ignored on <${o.tagName}>.`,o)),s?(o.style.strokeDasharray=`${a}`,o.style.strokeDashoffset=A==="reverse"?`${a}`:"0",m&&(o.style.opacity="1"),fe&&(o.style.stroke=fe),ie!==null&&(o.style.strokeWidth=`${ie}`),K!==null&&(o.style.fillOpacity=`${K}`),L&&o.tagName.toLowerCase()==="path"&&o.setAttribute("d",L)):(o.style.strokeDasharray=`${a}`,o.style.strokeDashoffset=A==="reverse"?"0":`${a}`,m?o.style.opacity=A==="reverse"?"1":"0":o.style.opacity="",Ae&&(o.style.stroke=Ae),X!==null&&(o.style.strokeWidth=`${X}`),ae!==null&&(o.style.fillOpacity=`${ae}`));}),v){if(s)return e.style.clipPath=He(1),f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};e.style.clipPath=He(0);}else if(s)return f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};let Lt=typeof d=="string"?st(d):null;function er(){return !(ye===false||!fr()||!z.length||!Lt||v||G!=="y"||Ee||u!==1||R!==0||re||ne||k!==false||L||w||E||Y>0||N||C||f||p||O||q||Me||H!=null||P!=null||I!=null||(T.start??"top bottom").trim()!=="top bottom"||(T.end??"bottom top").trim()!=="bottom top")}function tr(){let o=++mr,a=`svg-scroll-draw-${o}`,y=`svg-scroll-draw-host-${o}`,Q=`--svg-scroll-draw-${o}`,Le=A==="reverse"?"0":"var(--ssd-len)",De=A==="reverse"?"var(--ssd-len)":"0",ke=`stroke-dashoffset:${Le};`,S=`stroke-dashoffset:${De};`;m&&(ke+=`opacity:${A==="reverse"?1:0};`,S+=`opacity:${A==="reverse"?0:1};`);let F=document.createElement("style");F.setAttribute("data-svg-scroll-draw",""),F.textContent=`@keyframes ${a}{from{${ke}}to{${S}}}.${y}{view-timeline-name:${Q};view-timeline-axis:block;}.${a}{animation-name:${a};animation-duration:auto;animation-timing-function:${Lt};animation-fill-mode:both;animation-timeline:${Q};animation-range:cover 0% cover 100%;}`,document.head.appendChild(F),e.classList.add(y);function de(g,Z){g.style.setProperty("--ssd-len",String(D[Z])),g.style.strokeDasharray=`${D[Z]}`,g.style.strokeDashoffset="",g.style.opacity="",g.style.animationPlayState="",g.classList.add(a);}z.forEach(de);let b=false,W=-1;function U(){if(W>=0)return W;let g=e.getBoundingClientRect(),{tStart:Z,tEnd:$e}=Ce({top:g.top,height:g.height},Je(),xt(),me,Re);return V(te(Je(),Z,$e,u))}return {destroy(){e.classList.remove(y),z.forEach(g=>{g.classList.remove(a),g.style.removeProperty("--ssd-len"),g.style.animationPlayState="";}),F.remove();},replay(){b=false,W=-1,z.forEach(de);},pause(){b=true,z.forEach(g=>{g.style.animationPlayState="paused";});},resume(){b&&(b=false,z.forEach(g=>{g.style.animationPlayState="running";}));},seek(g){let Z=Math.min(1,Math.max(0,g));W=Z,b=true,z.forEach(($e,xe)=>{$e.classList.remove(a),$e.style.strokeDashoffset=A==="reverse"?`${D[xe]*Z}`:`${D[xe]*(1-Z)}`,m&&($e.style.opacity=A==="reverse"?`${1-Z}`:`${Z}`);});},getProgress(){return U()},refresh(){z.forEach((g,Z)=>{D[Z]=Ge(g),g.style.setProperty("--ssd-len",String(D[Z])),g.style.strokeDasharray=`${D[Z]}`;});}}}if(er())return ct(tr());function rr(){let o=Math.max(1,ge),a=0,y=0,Q=false;function Le(b){let W=true;if(v){let U=Math.min(1,Math.max(0,b/o)),g=V(U);Te=g,e.style.setProperty("--scroll-draw-progress",String(g)),e.style.clipPath=He(A==="reverse"?1-g:g),N?.(g),U<1&&(W=false);}else z.forEach((U,g)=>{let Z=g*R*o,$e=Math.min(1,Math.max(0,(b-Z)/o)),xe=V($e);U.style.strokeDashoffset=A==="reverse"?`${D[g]*xe}`:`${D[g]*(1-xe)}`,m&&(U.style.opacity=A==="reverse"?`${1-xe}`:`${xe}`),Ae&&fe?U.style.stroke=je(Ae,fe,xe):fe&&(U.style.stroke=fe),X!==null&&ie!==null?U.style.strokeWidth=`${X+(ie-X)*xe}`:ie!==null&&(U.style.strokeWidth=`${ie}`),ae!==null&&K!==null?U.style.fillOpacity=`${ae+(K-ae)*xe}`:K!==null&&(U.style.fillOpacity=`${K}`),L&&U.tagName.toLowerCase()==="path"&&pe[g]&&U.setAttribute("d",ft(pe[g],L,xe)),g===0&&(Te=xe,N?.(xe),e.style.setProperty("--scroll-draw-progress",String(xe))),$e<1&&(W=false);});if(w){let U=Math.min(1,Math.max(0,b/o)),g=V(U);for(let Z in w){let $e=parseFloat(Z);g>=$e&&!_e.has($e)&&(_e.add($e),w[Z]?.());}}return W}function De(b){if(j)return;let W=b-a;B||(B=true,C?.());let U=Le(W);if(U&&!_){_=true,Le(o*(1+Math.max(0,z.length-1)*R)),f?.(),Ve<(E==="infinite"?1/0:E??0)&&(Ve++,ze=setTimeout(()=>{a=performance.now(),B=false,_=false,_e.clear(),et(),$=requestAnimationFrame(De);},oe));return}U||($=requestAnimationFrame(De));}function ke(){cancelAnimationFrame($),clearTimeout(ze),a=performance.now(),y=0,j=false,B=false,_=false,Ve=0,Q=true,Te=0,_e.clear(),et(),$=requestAnimationFrame(De);}let S=new IntersectionObserver(b=>{b.forEach(W=>{W.isIntersecting&&!(re&&_)?ke():!W.isIntersecting&&!re&&!_&&(cancelAnimationFrame($),clearTimeout(ze),Q=false);});},{root:Ee??null,threshold:x,rootMargin:M}),F;function de(){clearTimeout(F),F=setTimeout(()=>{z.forEach((b,W)=>{D[W]=Ge(b),b.style.strokeDasharray=`${D[W]}`;});},150);}return window.addEventListener("resize",de),window.addEventListener("orientationchange",de),Y>0?setTimeout(()=>S.observe(e),Y):S.observe(e),{destroy(){cancelAnimationFrame($),clearTimeout(ze),S.disconnect(),window.removeEventListener("resize",de),window.removeEventListener("orientationchange",de),clearTimeout(F);},replay(){Ve=0,ke();},pause(){j||!Q||(j=true,y=performance.now()-a,cancelAnimationFrame($));},resume(){j&&(j=false,Q=true,a=performance.now()-y,$=requestAnimationFrame(De));},seek(b){let W=Math.min(1,Math.max(0,b));Te=W,j=true,y=W*o,a=performance.now()-y,cancelAnimationFrame($),Le(y);},getProgress(){return Te},refresh(){clearTimeout(F),z.forEach((b,W)=>{D[W]=Ge(b),b.style.strokeDasharray=`${D[W]}`;});}}}if(ve)return ct(rr());At();function $t(){if(j||!Be)return;let o=performance.now(),a=Je();if(!We&&k===false&&a===St){ut(a);return}We=false,St=a;let y=u;if(k!==false){let S=o-Tt,F=S>0?Math.abs(a-(Ze<0?a:Ze))/S:0;y=u*Math.max(.2,1+F*(typeof k=="number"?k:1)*.04);}Ze=a,Tt=o;let Q=ne?le===-1||a>=le?"forward":"reverse":A;le=a;let Le=Se-J,De=true,ke=Le===0?0:(a-J)/Le;if(isNaN(qe)||(qe<=0&&ke>0?p?.():qe>0&&ke<=0&&Me?.(),qe<1&&ke>=1?O?.():qe>=1&&ke<1&&q?.()),qe=ke,v){let S=V(te(a,J,Se,y));re&&!ne&&(he=Math.max(he,S),S=he),Te=S,e.style.setProperty("--scroll-draw-progress",String(S));let F=Q==="reverse"?1-S:S;e.style.clipPath=He(F),N?.(S),!B&&te(a,J,Se,y)>0&&(B=true,C?.()),S>=1&&!_?(_=true,f?.(),Ve<(E==="infinite"?1/0:E??0)&&(Ve++,ze=setTimeout(()=>{he=-1,B=false,_=false,e.style.clipPath=He(0);},oe))):S<1&&!re&&(_=false),ut(a);return}if(z.forEach((S,F)=>{let de=F*c*Le,b=V(te(a,J+de,Se+de,y));re&&!ne&&(b=Ne[F]=Math.max(Ne[F]??he,b)),S.style.strokeDashoffset=Q==="reverse"?`${D[F]*b}`:`${D[F]*(1-b)}`,m&&(S.style.opacity=Q==="reverse"?`${1-b}`:`${b}`),Ae&&fe?S.style.stroke=je(Ae,fe,b):fe&&(S.style.stroke=fe),X!==null&&ie!==null?S.style.strokeWidth=`${X+(ie-X)*b}`:ie!==null&&(S.style.strokeWidth=`${ie}`),ae!==null&&K!==null?S.style.fillOpacity=`${ae+(K-ae)*b}`:K!==null&&(S.style.fillOpacity=`${K}`),L&&S.tagName.toLowerCase()==="path"&&pe[F]&&S.setAttribute("d",ft(pe[F],L,b)),F===0&&(Te=b,N?.(b),e.style.setProperty("--scroll-draw-progress",String(b))),b<1&&(De=false);}),w){let S=V(te(a,J,Se,y));for(let F in w){let de=parseFloat(F);S>=de&&!_e.has(de)&&(_e.add(de),w[F]?.());}}!B&&te(a,J,Se,y)>0&&(B=true,C?.()),De&&!_?(_=true,f?.(),Ve<(E==="infinite"?1/0:E??0)&&(Ve++,ze=setTimeout(()=>{he=-1,Ne=[],B=false,_=false,_e.clear(),et(),We=true;},oe))):!De&&!re&&(_=false),ut(a);}function Ct(o){return o>=Se&&o<h}function ut(o){ee||Ct(o)?$=requestAnimationFrame($t):Be=false;}let Be=false;function tt(){Be||(Be=true,$=requestAnimationFrame(function(){$t();}));}function rt(){Be=false,cancelAnimationFrame($);}let mt=new IntersectionObserver(o=>{o.forEach(a=>{ee=a.isIntersecting,ee&&!j?(We=true,tt()):Be&&!j&&Ct(Je())||rt();});},{root:Ee??null,threshold:x,rootMargin:M});function Pt(){z.forEach((o,a)=>{D[a]=Ge(o),o.style.strokeDasharray=`${D[a]}`;}),At(),We=true;}let nt;function Ue(){clearTimeout(nt),nt=setTimeout(Pt,150);}window.addEventListener("resize",Ue),window.addEventListener("orientationchange",Ue);let nr=Fe([e],Ue);return Y>0?setTimeout(()=>mt.observe(e),Y):mt.observe(e),ct({destroy(){cancelAnimationFrame($),clearTimeout(ze),rt(),mt.disconnect(),nr(),window.removeEventListener("resize",Ue),window.removeEventListener("orientationchange",Ue),clearTimeout(nt),Et();},replay(){he=-1,Ne=[],le=-1,Ze=-1,B=false,_=false,Ve=0,j=false,Te=0,_e.clear(),clearTimeout(ze),et(),We=true,ee&&tt();},pause(){j=true,rt();},resume(){j&&(j=false,We=true,ee&&tt());},seek(o){let a=Math.min(1,Math.max(0,o));Te=a,he=a,Ne=[],j=true,rt(),Jt(a,A),We=true;},getProgress(){return Te},refresh(){clearTimeout(nt),Pt(),ee&&!j&&tt();}},()=>({tStart:J,tEnd:Se}))}var Bt=new WeakMap,yr=0;function dt(e){return JSON.stringify(e,(r,n)=>{if(typeof n=="function")return "\u0192";if(typeof Element<"u"&&n instanceof Element){let t=Bt.get(n);return t===void 0&&Bt.set(n,t=++yr),`el#${t}`}return n})}function gt(e,r){let n={...e};for(let t of Object.keys(n))typeof n[t]=="function"&&(n[t]=(...i)=>r()[t]?.(...i));return n}function hr(e){return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")}function Gt(e){let r=[],n=/([\w]+)\(([^)]*)\)/g,t;for(;(t=n.exec(e))!==null;){let i=[],s=[],l=t[2].trim();if(l)for(let u of l.split(/[\s,]+/)){let m=u.match(/^([-+]?[\d.eE]+)(.*)$/);i.push(m?parseFloat(m[1]):0),s.push(m?m[2]:"");}r.push({fn:t[1],nums:i,units:s});}return r}function br(e,r,n){let t=Gt(e),i=Gt(r);return t.length===0||t.length!==i.length?n<1?e:r:t.map((s,l)=>{let u=i[l];return s.fn!==u.fn||s.nums.length!==u.nums.length?n<1?`${s.fn}(${s.nums.map((m,d)=>`${m}${s.units[d]}`).join(", ")})`:`${u.fn}(${u.nums.map((m,d)=>`${m}${u.units[d]}`).join(", ")})`:`${s.fn}(${s.nums.map((m,d)=>`${m+(u.nums[d]-m)*n}${s.units[d]}`).join(", ")})`}).join(" ")}function jt(e,r,n){if(typeof e=="number"&&typeof r=="number")return String(e+(r-e)*n);let t=String(e),i=String(r);if(hr(t))return je(t,i,n);if(t.includes("("))return br(t,i,n);let s=t.match(/^([-+]?[\d.]+)(.*)$/),l=i.match(/^([-+]?[\d.]+)(.*)$/);if(s&&l){let u=parseFloat(s[1]),m=parseFloat(l[1]);return `${u+(m-u)*n}${s[2]||l[2]}`}return n<1?t:i}function wr(e){return e.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}var vr=new Set(["opacity","transform","background-color","color","filter","scale","translate","rotate"]),Er=0,Ut="--scroll-draw-progress";function Sr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")}function yt(e,r){let n={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};if(typeof window>"u")return n;let{props:t,trigger:i={},easing:s="ease-out",speed:l=1,once:u=false,axis:m="y",scrollContainer:d,native:T=true,velocityScale:R=false,respectReducedMotion:A=true,triggerElement:re,onProgress:Pe,onComplete:G,onEnter:ue,onLeave:ne,onEnterBack:Y,onLeaveBack:H}=r,P=A&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,I=typeof s=="function"?s:ce[s]??ce["ease-out"],w=be(i.start??"top bottom"),k=be(i.end??"bottom top"),x=re??e,M=typeof d=="string"?document.querySelector(d):d??null,E=Object.entries(t).map(([c,h])=>({prop:wr(c),from:Array.isArray(h)?h[0]:"",to:Array.isArray(h)?h[1]:h}));function oe(){let c=window.getComputedStyle(e);for(let h of E)h.from===""&&(h.from=c.getPropertyValue(h.prop).trim()||"0");}function L(){for(let c of E)e.style.setProperty(c.prop,String(c.to));}let se=new Map;for(let c of [...E.map(h=>h.prop),Ut])se.set(c,e.style.getPropertyValue(c));function ve(){for(let[c,h]of se)h?e.style.setProperty(c,h):e.style.removeProperty(c);}if(P)return L(),G?.(),{...n,destroy:ve,getProgress:()=>1};oe();let ge=typeof s=="string"?st(s):null;function ye(){if(!T||!Sr()||!ge||m!=="y"||M||x!==e||u||l!==1||Pe||G||ue||ne||Y||H||R!==false||(i.start??"top bottom").trim()!=="top bottom"||(i.end??"bottom top").trim()!=="bottom top")return false;for(let c of E)if(!vr.has(c.prop))return false;return true}function N(){let c=`ssd-a-${++Er}`,h=E.map(le=>`${le.prop}:${le.from}`).join(";"),_=E.map(le=>`${le.prop}:${le.to}`).join(";"),B=document.createElement("style");B.setAttribute("data-ssd-animate",""),B.textContent=`@keyframes ${c}{from{${h}}to{${_}}}.${c}{animation-name:${c};animation-duration:auto;animation-timing-function:${ge};animation-fill-mode:both;animation-timeline:view();animation-range:cover 0% cover 100%;}`,document.head.appendChild(B),e.classList.add(c);let $=()=>m==="x"?window.scrollX:window.scrollY,ee=()=>m==="x"?window.innerWidth:window.innerHeight,he=()=>{let le=e.getBoundingClientRect();return Ce({top:le.top,height:le.height},$(),ee(),w,k)};Ie(e,{type:"animate",getProgress:()=>Ne.getProgress(),getTrigger:he});let Ne={refresh(){},destroy(){e.classList.remove(c),B.remove(),e.style.animationPlayState="",ve(),Oe(e);},replay(){e.classList.remove(c),e.offsetWidth,e.classList.add(c);},pause(){e.style.animationPlayState="paused";},resume(){e.style.animationPlayState="";},seek(le){let j=Math.min(1,Math.max(0,le));e.classList.remove(c);for(let Te of E)e.style.setProperty(Te.prop,jt(Te.from,Te.to,j));},getProgress(){let{tStart:le,tEnd:j}=he();return I(te($(),le,j,l))}};return Ne}if(ye())return N();let C=0,f=0,p=0,O=false,q=false,Me=-1,v=0,V=false,me=NaN,Re=-1,Ee=0,Ae=()=>M?m==="x"?M.scrollLeft:M.scrollTop:m==="x"?window.scrollX:window.scrollY,fe=()=>M?m==="x"?M.clientWidth:M.clientHeight:m==="x"?window.innerWidth:window.innerHeight,X=x===e?E:[],ie=false;function ae(){let c=e.style,h=X.map(ee=>c.getPropertyValue(ee.prop)),_=c.transition;X.length&&(c.transition="none"),X.forEach(ee=>c.setProperty(ee.prop,se.get(ee.prop)??""));let B=ot(x,M,m);X.forEach((ee,he)=>c.setProperty(ee.prop,h[he])),X.length&&(e.offsetWidth,c.transition=_);let $=Ce(B,B.scroll,fe(),w,k);ie&&Math.abs($.tStart-C)<1&&Math.abs($.tEnd-f)<1||(ie=true,C=$.tStart,f=$.tEnd);}function K(c){e.style.setProperty(Ut,String(c));for(let h of E)e.style.setProperty(h.prop,jt(h.from,h.to,c));Pe?.(c);}function He(c){if(isNaN(me)){me=c;return}me<=0&&c>0?ue?.():me>0&&c<=0&&H?.(),me<1&&c>=1?ne?.():me>=1&&c<1&&Y?.(),me=c;}function z(){if(!O||q)return;let c=performance.now(),h=Ae(),_=l;if(R!==false){let ee=c-Ee,he=ee>0?Math.abs(h-(Re<0?h:Re))/ee:0;_=l*Math.max(.2,1+he*(typeof R=="number"?R:1)*.04);}Re=h,Ee=c;let B=f===C?0:(h-C)/(f-C);He(B);let $=I(te(h,C,f,_));u&&(Me=Math.max(Me,$),$=Me),v=$,K($),$>=1&&!V?(V=true,G?.()):$<1&&!u&&(V=false),p=requestAnimationFrame(z);}ae(),f===C&&we("scrollAnimate: the trigger window has zero length (start and end resolve to the same scroll position), so this element will never animate. If the target is inside a position:sticky stage, measure the trigger from the container that holds the scroll room via `triggerElement`.",e);{let c=I(te(Ae(),C,f,l));u&&c>0&&(Me=c),v=c,K(c);}let D=new IntersectionObserver(c=>{c.forEach(h=>{O=h.isIntersecting,O&&!q?p=requestAnimationFrame(z):cancelAnimationFrame(p);});},{root:M??null}),pe;function J(){clearTimeout(pe),pe=setTimeout(ae,150);}window.addEventListener("resize",J),window.addEventListener("orientationchange",J);let Se=Fe([x],J);return D.observe(e),Ie(e,{type:"animate",getProgress:()=>v,getTrigger:()=>({tStart:C,tEnd:f})}),{destroy(){cancelAnimationFrame(p),D.disconnect(),window.removeEventListener("resize",J),window.removeEventListener("orientationchange",J),Se(),clearTimeout(pe),ve(),Oe(e);},replay(){Me=-1,V=false,v=0,q=false,K(0);},pause(){q=true,cancelAnimationFrame(p);},resume(){q&&(q=false,O&&(p=requestAnimationFrame(z)));},seek(c){let h=Math.min(1,Math.max(0,c));v=h,Me=h,q=true,cancelAnimationFrame(p),K(h);},getProgress(){return v},refresh(){ae();}}}var ht={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function bt(e,r){if(typeof window>"u")return ht;let n=typeof e=="string"?document.querySelector(e):e;if(!n)return we("scrollCounter: element not found:",e),ht;let t=n,{from:i=0,to:s,format:l,easing:u="ease-out",trigger:m={},once:d=true,decimals:T,onComplete:R}=r,A=T!==void 0?f=>f.toFixed(T):l??(f=>String(Math.round(f))),re=typeof u=="function"?u:ce[u]??ce["ease-out"],Pe=be(m.start??"top 80%"),G=be(m.end??"top 20%");if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return t.textContent=A(s),R?.(),ht;let ne=0,Y=0,H=false,P=0,I=false,w=false,k=-1,x=0,M=false,E=()=>window.scrollY,oe=()=>window.innerHeight;function L(){let f=t.getBoundingClientRect(),p=Ce({top:f.top,height:f.height},E(),oe(),Pe,G);H&&Math.abs(p.tStart-ne)<1&&Math.abs(p.tEnd-Y)<1||(H=true,ne=p.tStart,Y=p.tEnd);}function se(f){t.textContent=A(i+(s-i)*f),t.style.setProperty("--scroll-draw-progress",String(f));}function ve(){if(!I||w)return;let f=re(te(E(),ne,Y,1));d&&(k=Math.max(k,f),f=k),x=f,se(f),f>=1&&!M?(M=true,R?.()):f<1&&!d&&(M=false),P=requestAnimationFrame(ve);}L();{let f=re(te(E(),ne,Y,1));d&&f>0&&(k=f),x=f,se(f);}let ge=new IntersectionObserver(f=>{f.forEach(p=>{I=p.isIntersecting,I&&!w?P=requestAnimationFrame(ve):cancelAnimationFrame(P);});}),ye;function N(){clearTimeout(ye),ye=setTimeout(L,150);}window.addEventListener("resize",N),window.addEventListener("orientationchange",N);let C=Fe([t],N);return ge.observe(t),Ie(t,{type:"counter",getProgress:()=>x,getTrigger:()=>({tStart:ne,tEnd:Y})}),{destroy(){cancelAnimationFrame(P),ge.disconnect(),window.removeEventListener("resize",N),window.removeEventListener("orientationchange",N),C(),clearTimeout(ye),Oe(t);},replay(){k=-1,M=false,x=0,w=false,se(0);},pause(){w=true,cancelAnimationFrame(P);},resume(){w&&(w=false,I&&(P=requestAnimationFrame(ve)));},seek(f){let p=Math.min(1,Math.max(0,f));x=p,k=p,w=true,cancelAnimationFrame(P),se(p);},getProgress(){return x}}}var Yt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function wt(e,r={}){if(typeof window>"u")return Yt;let n=typeof e=="string"?document.querySelector(e):e;if(!n||n.tagName.toLowerCase()!=="video")return we("scrollVideo: <video> element not found:",e),Yt;let t=n,{trigger:i={},easing:s="linear",once:l=false,axis:u="y",preload:m="auto",triggerElement:d,onReady:T,onComplete:R,onProgress:A}=r,re=d??t,Pe=window.matchMedia("(prefers-reduced-motion: reduce)").matches,G=typeof s=="function"?s:ce[s]??ce.linear,ue=be(i.start??"top top"),ne=be(i.end??"bottom top");t.pause(),t.hasAttribute("preload")||(t.preload=m);let Y=r.from??0,H=r.to,P=0,I=0,w=0,k=false,x=false,M=-1,E=0,oe=false,L=false,se=()=>u==="x"?window.scrollX:window.scrollY,ve=()=>u==="x"?window.innerWidth:window.innerHeight;function ge(){let v=re.getBoundingClientRect(),V=u==="x"?v.left:v.top,me=u==="x"?v.width:v.height,Re=Ce({top:V,height:me},se(),ve(),ue,ne);P=Re.tStart,I=Re.tEnd,L&&I===P&&we("scrollVideo: zero-length trigger window, so it never scrubs. In a sticky stage, set triggerElement.",t);}let ye=NaN;function N(v){if(!L)return;let V=H??t.duration??0,me=Y+(V-Y)*v;me!==ye&&(ye=me,t.currentTime=me),t.style.setProperty("--scroll-draw-progress",String(v)),A?.(v);}function C(){if(!k||x||!L||Pe)return;let v=G(te(se(),P,I,1));l&&(M=Math.max(M,v),v=M),E=v,N(v),v>=1&&!oe?(oe=true,R?.()):v<1&&!l&&(oe=false),w=requestAnimationFrame(C);}function f(){if(L=true,H===void 0&&(H=t.duration),Pe){N(1),T?.();return}ge(),T?.(),k&&!x&&(w=requestAnimationFrame(C));}t.readyState>=1?f():t.addEventListener("loadedmetadata",f,{once:true}),L||ge();let p=new IntersectionObserver(v=>{v.forEach(V=>{k=V.isIntersecting,k&&!x&&L?w=requestAnimationFrame(C):cancelAnimationFrame(w);});}),O;function q(){clearTimeout(O),O=setTimeout(ge,150);}window.addEventListener("resize",q),window.addEventListener("orientationchange",q);let Me=Fe([re],q);return p.observe(t),Ie(t,{type:"video",getProgress:()=>E,getTrigger:()=>({tStart:P,tEnd:I})}),{destroy(){cancelAnimationFrame(w),p.disconnect(),t.removeEventListener("loadedmetadata",f),window.removeEventListener("resize",q),window.removeEventListener("orientationchange",q),Me(),clearTimeout(O),Oe(t);},replay(){M=-1,oe=false,E=0,x=false,ye=NaN,N(0);},pause(){x=true,cancelAnimationFrame(w);},resume(){x&&(x=false,k&&L&&(w=requestAnimationFrame(C)));},seek(v){let V=Math.min(1,Math.max(0,v));E=V,M=V,x=true,cancelAnimationFrame(w),ye=NaN,N(V);},getProgress(){return E}}}function Qt(e){let r=e.textContent??"";return e.textContent="",r.split(/(\s+)/).filter(Boolean).map(n=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),/^\s+$/.test(n)?(t.textContent=n,t.style.whiteSpace="pre"):(t.textContent=n,t.style.display="inline-block"),e.appendChild(t),/^\s+$/.test(n)?null:t}).filter(n=>n!==null)}function Tr(e){let r=e.textContent??"";return e.textContent="",r.split("").map(n=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),t.textContent=n,n===" "?t.style.whiteSpace="pre":t.style.display="inline-block",e.appendChild(t),n===" "?null:t}).filter(n=>n!==null)}function Xt(e){let r=Qt(e),n=new Map;for(let s of r){let l=s.offsetTop;n.has(l)||n.set(l,[]),n.get(l).push(s);}let t=[],i=Array.from(n.keys()).sort((s,l)=>s-l);for(let s of i){let l=n.get(s),u=document.createElement("span");u.setAttribute("aria-hidden","true"),u.style.display="inline-block",l.forEach((m,d)=>{let T=m.nextElementSibling;u.appendChild(m),d<l.length-1&&T&&T.style.whiteSpace==="pre"&&u.appendChild(T);}),t.push(u);}return e.textContent="",t.forEach((s,l)=>{e.appendChild(s),l<t.length-1&&e.appendChild(document.createTextNode(" "));}),t}function xr(e,r,n,t){if(n<=1||t===0)return e;let i=(n-1)*t,s=r*t,l=s+(1-i);return l<=s?e>=s?1:0:Math.min(1,Math.max(0,(e-s)/(l-s)))}function Mr(e,r){let n=[];if(r?.y!==void 0&&n.push(`translateY(${r.y*(1-e)}px)`),r?.x!==void 0&&n.push(`translateX(${r.x*(1-e)}px)`),r?.rotate!==void 0&&n.push(`rotate(${r.rotate*(1-e)}deg)`),r?.scale!==void 0){let t=r.scale+(1-r.scale)*e;n.push(`scale(${t})`);}return n.join(" ")||""}var Kt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function vt(e,r={}){if(typeof window>"u")return Kt;let n=typeof e=="string"?document.querySelector(e):e;if(!n)return we("scrollText: element not found:",e),Kt;let t=n,{split:i="words",stagger:s=.04,easing:l="ease-out",from:u={opacity:0,y:24},trigger:m={},once:d=true,onComplete:T}=r,R=window.matchMedia("(prefers-reduced-motion: reduce)").matches,A=typeof l=="function"?l:ce[l]??ce["ease-out"],re=be(m.start??"top 85%"),Pe=be(m.end??"top 40%"),G=t.innerHTML;t.setAttribute("aria-label",t.textContent??"");let ue;i==="chars"?ue=Tr(t):i==="lines"?ue=Xt(t):ue=Qt(t);let ne=ue.length;function Y(p,O){u?.opacity!==void 0&&(p.style.opacity=String(u.opacity+(1-u.opacity)*O));let q=Mr(O,u);q&&(p.style.transform=q);}function H(p){t.style.setProperty("--scroll-draw-progress",String(p)),ue.forEach((O,q)=>{let Me=A(xr(p,q,ne,s));Y(O,Me);});}if(R)return H(1),T?.(),{destroy(){t.innerHTML=G,t.removeAttribute("aria-label");},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};H(0);let P=0,I=0,w=0,k=false,x=false,M=-1,E=0,oe=false,L=()=>window.scrollY,se=()=>window.innerHeight;function ve(){let p=t.getBoundingClientRect(),O=Ce({top:p.top,height:p.height},L(),se(),re,Pe);P=O.tStart,I=O.tEnd;}function ge(){if(!k||x)return;let p=te(L(),P,I,1);d&&(M=Math.max(M,p),p=M),E=p,H(p),p>=1&&!oe?(oe=true,T?.()):p<1&&!d&&(oe=false),w=requestAnimationFrame(ge);}ve();let ye=new IntersectionObserver(p=>{p.forEach(O=>{k=O.isIntersecting,k&&!x?w=requestAnimationFrame(ge):cancelAnimationFrame(w);});}),N;function C(){clearTimeout(N),N=setTimeout(()=>{if(i==="lines"){let p=E;t.innerHTML=G,t.setAttribute("aria-label",t.textContent??""),ue=Xt(t),H(p);}ve();},150);}window.addEventListener("resize",C),window.addEventListener("orientationchange",C);let f=Fe([t],C);return ye.observe(t),Ie(t,{type:"text",getProgress:()=>E,getTrigger:()=>({tStart:P,tEnd:I})}),{destroy(){cancelAnimationFrame(w),ye.disconnect(),window.removeEventListener("resize",C),window.removeEventListener("orientationchange",C),f(),clearTimeout(N),t.innerHTML=G,t.removeAttribute("aria-label"),Oe(t);},replay(){M=-1,oe=false,E=0,x=false,H(0);},pause(){x=true,cancelAnimationFrame(w);},resume(){x&&(x=false,k&&(w=requestAnimationFrame(ge)));},seek(p){let O=Math.min(1,Math.max(0,p));E=O,M=O,x=true,cancelAnimationFrame(w),H(O);},getProgress(){return E}}}function Qe(e,r,n){let t=r,i=dt(r),s=n(e,gt(r,()=>t));return {update(l){t=l;let u=dt(l);u!==i&&(i=u,s.destroy(),s=n(e,gt(l,()=>t)));},destroy(){s.destroy();}}}function kn(e,r={}){return Qe(e,r,pt)}function In(e={}){let r=null;function n(t){return r=pt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function On(e,r){return Qe(e,r,yt)}function Dn(e){let r=null;function n(t){return r=yt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function Fn(e,r){return Qe(e,r,bt)}function Rn(e){let r=null;function n(t){return r=bt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function Hn(e,r={}){return Qe(e,r,wt)}function Nn(e={}){let r=null;function n(t){return r=wt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}function Vn(e,r={}){return Qe(e,r,vt)}function zn(e={}){let r=null;function n(t){return r=vt(t,e),{destroy(){r?.destroy(),r=null;}}}return {action:n,getInstance:()=>r}}exports.createScrollAnimate=Dn;exports.createScrollCounter=Rn;exports.createScrollDraw=In;exports.createScrollText=zn;exports.createScrollVideo=Nn;exports.scrollAnimate=On;exports.scrollCounterAction=Fn;exports.scrollDraw=kn;exports.scrollTextAction=Vn;exports.scrollVideoAction=Hn;
@@ -1,6 +1,6 @@
1
- import { S as ScrollDrawInstance, a as ScrollDrawOptions } from '../types-B0YM4nQP.mjs';
2
- import { S as ScrollAnimateOptions } from '../engine-CvzRSkuk.mjs';
3
- import { S as ScrollCounterOptions } from '../index-BlIjovDN.mjs';
1
+ import { S as ScrollDrawInstance, a as ScrollDrawOptions } from '../types-MswK0erX.mjs';
2
+ import { S as ScrollAnimateOptions } from '../engine-P8u6OK4m.mjs';
3
+ import { S as ScrollCounterOptions } from '../index-CdaBYn3A.mjs';
4
4
  import { ScrollVideoOptions } from '../video/index.mjs';
5
5
  import { ScrollTextOptions } from '../text/index.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
- import { S as ScrollDrawInstance, a as ScrollDrawOptions } from '../types-B0YM4nQP.js';
2
- import { S as ScrollAnimateOptions } from '../engine-C9LKls__.js';
3
- import { S as ScrollCounterOptions } from '../index-DZjvLJcU.js';
1
+ import { S as ScrollDrawInstance, a as ScrollDrawOptions } from '../types-MswK0erX.js';
2
+ import { S as ScrollAnimateOptions } from '../engine-DQyBzZDl.js';
3
+ import { S as ScrollCounterOptions } from '../index-D3o4vT3e.js';
4
4
  import { ScrollVideoOptions } from '../video/index.js';
5
5
  import { ScrollTextOptions } from '../text/index.js';
6
6
 
@@ -1 +1 @@
1
- import {a as a$4,b as b$1}from'../chunk-XSVTHCLO.mjs';import {a as a$3}from'../chunk-7SBTYJGH.mjs';import {a as a$2}from'../chunk-I45LCJUP.mjs';import {a as a$1}from'../chunk-KHQ7OGQK.mjs';import {a}from'../chunk-BFX2CSQ3.mjs';import {b}from'../chunk-WHFRS7IP.mjs';import'../chunk-OJFWQ6CU.mjs';import'../chunk-YWKPTYSG.mjs';import'../chunk-YZV4Z3EQ.mjs';import'../chunk-A4JCC3QQ.mjs';import'../chunk-DM6EDKWH.mjs';import'../chunk-4DOJSIEQ.mjs';import'../chunk-BCV4RAIX.mjs';import'../chunk-LFSU6LR3.mjs';function r(n,t,o){let e=t,f=a$4(t),l=o(n,b$1(t,()=>e));return {update(c){e=c;let d=a$4(c);d!==f&&(f=d,l.destroy(),l=o(n,b$1(c,()=>e)));},destroy(){l.destroy();}}}function D(n,t={}){return r(n,t,b)}function I(n={}){let t=null;function o(e){return t=b(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function A(n,t){return r(n,t,a)}function H(n){let t=null;function o(e){return t=a(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function L(n,t){return r(n,t,a$1)}function M(n){let t=null;function o(e){return t=a$1(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function V(n,t={}){return r(n,t,a$3)}function g(n={}){let t=null;function o(e){return t=a$3(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function C(n,t={}){return r(n,t,a$2)}function v(n={}){let t=null;function o(e){return t=a$2(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}export{H as createScrollAnimate,M as createScrollCounter,I as createScrollDraw,v as createScrollText,g as createScrollVideo,A as scrollAnimate,L as scrollCounterAction,D as scrollDraw,C as scrollTextAction,V as scrollVideoAction};
1
+ import {a as a$4,b as b$1}from'../chunk-XSVTHCLO.mjs';import {a as a$3}from'../chunk-7SBTYJGH.mjs';import {a as a$2}from'../chunk-I45LCJUP.mjs';import {a as a$1}from'../chunk-KHQ7OGQK.mjs';import {a}from'../chunk-BFX2CSQ3.mjs';import {b}from'../chunk-LQBXJRFY.mjs';import'../chunk-OJFWQ6CU.mjs';import'../chunk-YWKPTYSG.mjs';import'../chunk-YZV4Z3EQ.mjs';import'../chunk-A4JCC3QQ.mjs';import'../chunk-DM6EDKWH.mjs';import'../chunk-4DOJSIEQ.mjs';import'../chunk-BCV4RAIX.mjs';import'../chunk-LFSU6LR3.mjs';function r(n,t,o){let e=t,f=a$4(t),l=o(n,b$1(t,()=>e));return {update(c){e=c;let d=a$4(c);d!==f&&(f=d,l.destroy(),l=o(n,b$1(c,()=>e)));},destroy(){l.destroy();}}}function D(n,t={}){return r(n,t,b)}function I(n={}){let t=null;function o(e){return t=b(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function A(n,t){return r(n,t,a)}function H(n){let t=null;function o(e){return t=a(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function L(n,t){return r(n,t,a$1)}function M(n){let t=null;function o(e){return t=a$1(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function V(n,t={}){return r(n,t,a$3)}function g(n={}){let t=null;function o(e){return t=a$3(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}function C(n,t={}){return r(n,t,a$2)}function v(n={}){let t=null;function o(e){return t=a$2(e,n),{destroy(){t?.destroy(),t=null;}}}return {action:o,getInstance:()=>t}}export{H as createScrollAnimate,M as createScrollCounter,I as createScrollDraw,v as createScrollText,g as createScrollVideo,A as scrollAnimate,L as scrollCounterAction,D as scrollDraw,C as scrollTextAction,V as scrollVideoAction};
@@ -1,4 +1,4 @@
1
- import { E as EasingName, T as TriggerConfig, S as ScrollDrawInstance } from '../types-B0YM4nQP.mjs';
1
+ import { E as EasingName, T as TriggerConfig, S as ScrollDrawInstance } from '../types-MswK0erX.mjs';
2
2
 
3
3
  interface ScrollTextOptions {
4
4
  split?: 'chars' | 'words' | 'lines';
@@ -1,4 +1,4 @@
1
- import { E as EasingName, T as TriggerConfig, S as ScrollDrawInstance } from '../types-B0YM4nQP.js';
1
+ import { E as EasingName, T as TriggerConfig, S as ScrollDrawInstance } from '../types-MswK0erX.js';
2
2
 
3
3
  interface ScrollTextOptions {
4
4
  split?: 'chars' | 'words' | 'lines';
@@ -1,4 +1,4 @@
1
- import { E as EasingName, S as ScrollDrawInstance } from '../types-B0YM4nQP.mjs';
1
+ import { E as EasingName, S as ScrollDrawInstance } from '../types-MswK0erX.mjs';
2
2
 
3
3
  interface TimelineTrack {
4
4
  /** CSS selector for paths within the container to animate on this track. */
@@ -1,4 +1,4 @@
1
- import { E as EasingName, S as ScrollDrawInstance } from '../types-B0YM4nQP.js';
1
+ import { E as EasingName, S as ScrollDrawInstance } from '../types-MswK0erX.js';
2
2
 
3
3
  interface TimelineTrack {
4
4
  /** CSS selector for paths within the container to animate on this track. */
@@ -20,6 +20,12 @@ interface ScrollDrawOptions {
20
20
  fade?: boolean;
21
21
  easing?: EasingName | ((t: number) => number);
22
22
  trigger?: TriggerConfig;
23
+ /**
24
+ * Each path starts this fraction of the scroll range after the previous one,
25
+ * and ends that much later too, so the last finishes after `trigger.end`.
26
+ * Where the page ends first, the stagger is tightened so the last path
27
+ * finishes at the bottom; a page with room keeps it as written.
28
+ */
23
29
  stagger?: number;
24
30
  direction?: 'forward' | 'reverse';
25
31
  once?: boolean;
@@ -20,6 +20,12 @@ interface ScrollDrawOptions {
20
20
  fade?: boolean;
21
21
  easing?: EasingName | ((t: number) => number);
22
22
  trigger?: TriggerConfig;
23
+ /**
24
+ * Each path starts this fraction of the scroll range after the previous one,
25
+ * and ends that much later too, so the last finishes after `trigger.end`.
26
+ * Where the page ends first, the stagger is tightened so the last path
27
+ * finishes at the bottom; a page with room keeps it as written.
28
+ */
23
29
  stagger?: number;
24
30
  direction?: 'forward' | 'reverse';
25
31
  once?: boolean;
@@ -1,4 +1,4 @@
1
- import { T as TriggerConfig, E as EasingName, S as ScrollDrawInstance } from '../types-B0YM4nQP.mjs';
1
+ import { T as TriggerConfig, E as EasingName, S as ScrollDrawInstance } from '../types-MswK0erX.mjs';
2
2
 
3
3
  interface ScrollVideoOptions {
4
4
  trigger?: TriggerConfig;
@@ -1,4 +1,4 @@
1
- import { T as TriggerConfig, E as EasingName, S as ScrollDrawInstance } from '../types-B0YM4nQP.js';
1
+ import { T as TriggerConfig, E as EasingName, S as ScrollDrawInstance } from '../types-MswK0erX.js';
2
2
 
3
3
  interface ScrollVideoOptions {
4
4
  trigger?: TriggerConfig;
@@ -1,3 +1,3 @@
1
- 'use strict';var vue=require('vue');function sr({bounces:e=3,decay:n=.5}={}){let r=Math.max(1,Math.round(e)),t=Math.max(.01,Math.min(.99,n)),o=Math.sqrt(t),s=0,l=[];for(let g=0;g<r;g++){let T=Math.pow(o,g);l.push(T),s+=T;}let u=[0],m=0;for(let g=0;g<r;g++)m+=l[g]/s,u.push(m);return g=>{if(g<=0)return 0;if(g>=1)return 1;for(let T=0;T<r;T++)if(g<=u[T+1]){let q=(g-u[T])/(u[T+1]-u[T]);if(T===0)return q*(2-q);let A=1-Math.pow(t,T);return A+(1-A)*(2*q-1)*(2*q-1)}return 1}}function ir({amplitude:e=1,period:n=.4}={}){let r=Math.max(1,e),t=Math.max(.1,n),o=r<=1?t/4:t/(2*Math.PI)*Math.asin(1/r);return s=>s<=0?0:s>=1?1:r*Math.pow(2,-10*s)*Math.sin((s-o)*(2*Math.PI)/t)+1}var ie={linear:e=>e,"ease-in":e=>e*e,"ease-out":e=>e*(2-e),"ease-in-out":e=>e<.5?2*e*e:-1+(4-2*e)*e,spring:e=>1-Math.cos(e*Math.PI*2.5)*Math.pow(1-e,2.2),bounce:sr(),elastic:ir()};function $t(e,n,r){return Math.min(r,Math.max(n,e))}function he(e="top bottom"){let n=e.trim();if(/^\d+(\.\d+)?%$/.test(n))return {element:"top",viewport:n};let[r="top",t="bottom"]=n.split(/\s+/).filter(Boolean);return {element:r,viewport:t}}function Pt(e,n,r,t){switch(t){case "top":return e+r;case "center":return e+r+n/2;case "bottom":return e+r+n;default:return e+r}}function Ot(e,n){if(/^\d+(\.\d+)?%$/.test(e))return n*(parseFloat(e)/100);switch(e){case "top":return 0;case "center":return n/2;case "bottom":return n;default:return n}}function Z(e,n,r,t){return r===n?0:$t((e-n)/(r-n)*t,0,1)}function Le(e,n,r,t,o){let s=Pt(e.top,e.height,n,t.element)-Ot(t.viewport,r),l=Pt(e.top,e.height,n,o.element)-Ot(o.viewport,r);return {tStart:s,tEnd:l}}function st(e,n,r){let t=e.getBoundingClientRect(),o=r==="x"?t.width:t.height;return n?{top:r==="x"?t.left-n.getBoundingClientRect().left+n.scrollLeft:t.top-n.getBoundingClientRect().top+n.scrollTop,height:o,scroll:0}:{top:r==="x"?t.left:t.top,height:o,scroll:r==="x"?window.scrollX:window.scrollY}}function We(e){let n=e.tagName.toLowerCase();if(n==="rect"){let r=parseFloat(e.getAttribute("width")??"0"),t=parseFloat(e.getAttribute("height")??"0");return 2*(r+t)}if(n==="circle"){let r=parseFloat(e.getAttribute("r")??"0");return 2*Math.PI*r}return e.getTotalLength()}function kt(e){let n=/^#([a-f\d])([a-f\d])([a-f\d])$/i.exec(e);if(n)return [parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)];let r=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(r)return [parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)];let t=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i.exec(e);return t?[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]:null}function Ge(e,n,r){let t=kt(e),o=kt(n);return !t||!o?e:`rgb(${Math.round(t[0]+(o[0]-t[0])*r)},${Math.round(t[1]+(o[1]-t[1])*r)},${Math.round(t[2]+(o[2]-t[2])*r)})`}var Rt={sketch:{easing:"ease-in",stagger:.1,speed:.9,fade:false},reveal:{easing:"ease-out",fade:true,speed:1.2,once:true},typewriter:{easing:"linear",stagger:.05,speed:1.5},cinematic:{easing:"ease-in-out",fade:true,speed:.75},spring:{easing:"spring",speed:1.1}};var Ue=typeof __SVG_SCROLL_DRAW_DEV__<"u"?__SVG_SCROLL_DRAW_DEV__:typeof process<"u"&&typeof process.env<"u"&&process.env.NODE_ENV!=="production";function be(e,...n){Ue&&console.warn(`[svg-scroll-draw] ${e}`,...n);}var ar="cubic-bezier(0.333333, 0, 0.666667, 0.333333)",lr="cubic-bezier(0.333333, 0.666667, 0.666667, 1)",It=33;function cr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timing-function: linear(0, 1)")}function ur(e){let n=[];for(let r=0;r<It;r++){let t=r/(It-1);n.push(String(Math.round(e(t)*1e5)/1e5));}return `linear(${n.join(",")})`}function it(e){switch(e){case "linear":return "linear";case "ease-in":return ar;case "ease-out":return lr;case "ease-in-out":return cr()?ur(ie["ease-in-out"]):null;default:return null}}var Ft=Symbol.for("svg-scroll-draw.registry");function Dt(){let e=globalThis;return e[Ft]||(e[Ft]=new Map)}function ke(e,n){Dt().set(e,n);}function Re(e){Dt().delete(e);}var Ye,at=new Set,lt=new WeakMap,Xe=new Map,Nt=e=>{let n=e.getBoundingClientRect();return n.width+" "+n.height};function mr(e){let n=new Set;for(let r of e)for(;r&&r!==document.body;r=r.parentElement)for(let t=r;t;t=t.previousElementSibling)n.add(t);return n}function Fe(e,n){if(typeof ResizeObserver>"u"||typeof document>"u")return ()=>{};let r=()=>n();Ye??(Ye=new ResizeObserver(o=>{let s=false;for(let{target:l}of o)lt.get(l)!==Nt(l)&&(s=true),lt.set(l,"");s&&at.forEach(l=>l());})),at.add(r);let t=mr(e);return [document.body,document.documentElement].forEach(o=>o&&t.add(o)),t.forEach(o=>{lt.has(o)||lt.set(o,Nt(o)),Xe.set(o,(Xe.get(o)??0)+1),Ye.observe(o);}),()=>{at.delete(r)&&(t.forEach(o=>{let s=(Xe.get(o)??1)-1;if(s)return void Xe.set(o,s);Xe.delete(o),Ye?.unobserve(o);}),at.size||(Ye?.disconnect(),Ye=void 0));}}var fr=0;function pr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")&&CSS.supports("view-timeline-name: --x")}function Ht(e,n){let r="";try{r=getComputedStyle(e).getPropertyValue(n).trim();}catch{}return r||(e.getAttribute(n)??"").trim()}var Vt=new Set(["","none","transparent","rgba(0, 0, 0, 0)"]);function dr(e){if(!Ue)return;let n=Ht(e,"stroke");if(!n||n==="none"){be("Element has no stroke \u2014 path will not be visible.",e);return}let r=(e.getAttribute("fill")??"").trim();r&&!Vt.has(r)&&!Vt.has(Ht(e,"fill"))&&be("Element has a fill \u2014 it may obscure the stroke animation.",e);}function gr(e,n,r){let t=document.createElement("div");t.setAttribute("data-svg-scroll-draw-debug",""),t.style.cssText="position:fixed;pointer-events:none;z-index:9999;font-family:monospace;font-size:11px;top:0;left:0;right:0;bottom:0;";function o(){let s=r==="x"?window.scrollX:window.scrollY,l=e-s,u=n-s,m=r==="x";t.innerHTML=`
1
+ 'use strict';var vue=require('vue');function mn({bounces:e=3,decay:r=.5}={}){let n=Math.max(1,Math.round(e)),t=Math.max(.01,Math.min(.99,r)),s=Math.sqrt(t),i=0,l=[];for(let d=0;d<n;d++){let T=Math.pow(s,d);l.push(T),i+=T;}let u=[0],m=0;for(let d=0;d<n;d++)m+=l[d]/i,u.push(m);return d=>{if(d<=0)return 0;if(d>=1)return 1;for(let T=0;T<n;T++)if(d<=u[T+1]){let D=(d-u[T])/(u[T+1]-u[T]);if(T===0)return D*(2-D);let A=1-Math.pow(t,T);return A+(1-A)*(2*D-1)*(2*D-1)}return 1}}function fn({amplitude:e=1,period:r=.4}={}){let n=Math.max(1,e),t=Math.max(.1,r),s=n<=1?t/4:t/(2*Math.PI)*Math.asin(1/n);return i=>i<=0?0:i>=1?1:n*Math.pow(2,-10*i)*Math.sin((i-s)*(2*Math.PI)/t)+1}var ce={linear:e=>e,"ease-in":e=>e*e,"ease-out":e=>e*(2-e),"ease-in-out":e=>e<.5?2*e*e:-1+(4-2*e)*e,spring:e=>1-Math.cos(e*Math.PI*2.5)*Math.pow(1-e,2.2),bounce:mn(),elastic:fn()};function Rt(e,r,n){return Math.min(n,Math.max(r,e))}function be(e="top bottom"){let r=e.trim();if(/^\d+(\.\d+)?%$/.test(r))return {element:"top",viewport:r};let[n="top",t="bottom"]=r.split(/\s+/).filter(Boolean);return {element:n,viewport:t}}function It(e,r,n,t){switch(t){case "top":return e+n;case "center":return e+n+r/2;case "bottom":return e+n+r;default:return e+n}}function Ft(e,r){if(/^\d+(\.\d+)?%$/.test(e))return r*(parseFloat(e)/100);switch(e){case "top":return 0;case "center":return r/2;case "bottom":return r;default:return r}}function te(e,r,n,t){return n===r?0:Rt((e-r)/(n-r)*t,0,1)}function $e(e,r,n,t,s){let i=It(e.top,e.height,r,t.element)-Ft(t.viewport,n),l=It(e.top,e.height,r,s.element)-Ft(s.viewport,n);return {tStart:i,tEnd:l}}function lt(e,r,n){let t=e.getBoundingClientRect(),s=n==="x"?t.width:t.height;return r?{top:n==="x"?t.left-r.getBoundingClientRect().left+r.scrollLeft:t.top-r.getBoundingClientRect().top+r.scrollTop,height:s,scroll:0}:{top:n==="x"?t.left:t.top,height:s,scroll:n==="x"?window.scrollX:window.scrollY}}function Ue(e){let r=e.tagName.toLowerCase();if(r==="rect"){let n=parseFloat(e.getAttribute("width")??"0"),t=parseFloat(e.getAttribute("height")??"0");return 2*(n+t)}if(r==="circle"){let n=parseFloat(e.getAttribute("r")??"0");return 2*Math.PI*n}return e.getTotalLength()}function Dt(e){let r=/^#([a-f\d])([a-f\d])([a-f\d])$/i.exec(e);if(r)return [parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16)];let n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(n)return [parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)];let t=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i.exec(e);return t?[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]:null}function Ye(e,r,n){let t=Dt(e),s=Dt(r);return !t||!s?e:`rgb(${Math.round(t[0]+(s[0]-t[0])*n)},${Math.round(t[1]+(s[1]-t[1])*n)},${Math.round(t[2]+(s[2]-t[2])*n)})`}var Nt={sketch:{easing:"ease-in",stagger:.1,speed:.9,fade:false},reveal:{easing:"ease-out",fade:true,speed:1.2,once:true},typewriter:{easing:"linear",stagger:.05,speed:1.5},cinematic:{easing:"ease-in-out",fade:true,speed:.75},spring:{easing:"spring",speed:1.1}};var Ke=typeof __SVG_SCROLL_DRAW_DEV__<"u"?__SVG_SCROLL_DRAW_DEV__:typeof process<"u"&&typeof process.env<"u"&&process.env.NODE_ENV!=="production";function we(e,...r){Ke&&console.warn(`[svg-scroll-draw] ${e}`,...r);}var pn="cubic-bezier(0.333333, 0, 0.666667, 0.333333)",dn="cubic-bezier(0.333333, 0.666667, 0.666667, 1)",Ht=33;function gn(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timing-function: linear(0, 1)")}function yn(e){let r=[];for(let n=0;n<Ht;n++){let t=n/(Ht-1);r.push(String(Math.round(e(t)*1e5)/1e5));}return `linear(${r.join(",")})`}function ct(e){switch(e){case "linear":return "linear";case "ease-in":return pn;case "ease-out":return dn;case "ease-in-out":return gn()?yn(ce["ease-in-out"]):null;default:return null}}var Vt=Symbol.for("svg-scroll-draw.registry");function zt(){let e=globalThis;return e[Vt]||(e[Vt]=new Map)}function ke(e,r){zt().set(e,r);}function Re(e){zt().delete(e);}var Qe,ut=new Set,mt=new WeakMap,Ze=new Map,_t=e=>{let r=e.getBoundingClientRect();return r.width+" "+r.height};function hn(e){let r=new Set;for(let n of e)for(;n&&n!==document.body;n=n.parentElement)for(let t=n;t;t=t.previousElementSibling)r.add(t);return r}function Fe(e,r){if(typeof ResizeObserver>"u"||typeof document>"u")return ()=>{};let n=()=>r();Qe??(Qe=new ResizeObserver(s=>{let i=false;for(let{target:l}of s)mt.get(l)!==_t(l)&&(i=true),mt.set(l,"");i&&ut.forEach(l=>l());})),ut.add(n);let t=hn(e);return [document.body,document.documentElement].forEach(s=>s&&t.add(s)),t.forEach(s=>{mt.has(s)||mt.set(s,_t(s)),Ze.set(s,(Ze.get(s)??0)+1),Qe.observe(s);}),()=>{ut.delete(n)&&(t.forEach(s=>{let i=(Ze.get(s)??1)-1;if(i)return void Ze.set(s,i);Ze.delete(s),Qe?.unobserve(s);}),ut.size||(Qe?.disconnect(),Qe=void 0));}}var bn=0;function wn(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")&&CSS.supports("view-timeline-name: --x")}function Bt(e,r){let n="";try{n=getComputedStyle(e).getPropertyValue(r).trim();}catch{}return n||(e.getAttribute(r)??"").trim()}var Wt=new Set(["","none","transparent","rgba(0, 0, 0, 0)"]);function vn(e){if(!Ke)return;let r=Bt(e,"stroke");if(!r||r==="none"){we("Element has no stroke \u2014 path will not be visible.",e);return}let n=(e.getAttribute("fill")??"").trim();n&&!Wt.has(n)&&!Wt.has(Bt(e,"fill"))&&we("Element has a fill \u2014 it may obscure the stroke animation.",e);}function En(e,r,n){let t=document.createElement("div");t.setAttribute("data-svg-scroll-draw-debug",""),t.style.cssText="position:fixed;pointer-events:none;z-index:9999;font-family:monospace;font-size:11px;top:0;left:0;right:0;bottom:0;";function s(){let i=n==="x"?window.scrollX:window.scrollY,l=e-i,u=r-i,m=n==="x";t.innerHTML=`
2
2
  <div style="position:absolute;${m?`left:${l}px;top:0;bottom:0;border-left:2px dashed #22c55e;`:`top:${l}px;left:0;right:0;border-top:2px dashed #22c55e;`}padding:2px 6px;color:#22c55e;background:rgba(0,0,0,.6)">\u25B6 start</div>
3
- <div style="position:absolute;${m?`left:${u}px;top:0;bottom:0;border-left:2px dashed #ef4444;`:`top:${u}px;left:0;right:0;border-top:2px dashed #ef4444;`}padding:2px 6px;color:#ef4444;background:rgba(0,0,0,.6)">\u25A0 end</div>`;}return document.body.appendChild(t),window.addEventListener("scroll",o,{passive:true}),o(),{el:t,destroy(){window.removeEventListener("scroll",o),t.remove();}}}var zt=/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,_t=/[MmLlHhVvCcSsQqTtAaZz]/g;function yr(e,n,r){if(!Ue)return;let t=(e.match(_t)??[]).join("").toUpperCase(),o=(n.match(_t)??[]).join("").toUpperCase(),s=(e.match(zt)??[]).length,l=(n.match(zt)??[]).length;if(t!==o){be(`morphTo: command sequence differs (${t||"\u2205"} \u2192 ${o||"\u2205"}). Interpolation is coordinate-for-coordinate, so the result will not reach the target shape. Redraw both paths with the same commands.`,r);return}s!==l&&be(`morphTo: coordinate count differs (${s} \u2192 ${l}). Extra coordinates are ignored and missing ones hold their start value, so the result will not reach the target shape.`,r);}function dt(e,n,r){let t=(n.match(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g)??[]).map(Number),o=0;return e.replace(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,s=>{let l=parseFloat(s),u=t[o++]??l;return String(+(l+(u-l)*r).toFixed(4))})}function gt(e,n={}){if(typeof window>"u")return {destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};let{preset:r,...t}=n,o=r?{...Rt[r],...t}:t,s=window.matchMedia("(prefers-reduced-motion: reduce)").matches,{selector:l="path, polyline, line, polygon, rect, circle",speed:u=1,fade:m=false,easing:g="linear",trigger:T={},stagger:q=0,direction:A="forward",once:J=false,debug:Ce=false,axis:j="y",scrollContainer:ae,autoReverse:ee=false,delay:U=0,strokeColor:F,strokeWidth:$,fillOpacity:O,waypoints:b,velocityScale:P=false,threshold:x=0,rootMargin:M="0px",repeat:E=0,repeatDelay:te=0,morphTo:L,clip:re,autoplay:we=false,duration:ge=1e3,native:ye=true,onProgress:H,onStart:C,onComplete:f,onEnter:p,onLeave:k,onEnterBack:B,onLeaveBack:Ee}=o,w=re===true?"left":typeof re=="string"?re:false,V=typeof g=="function"?g:ie[g]??ie.linear,le=he(T.start??"top bottom"),He=he(T.end??"bottom top"),Se=typeof ae=="string"?document.querySelector(ae):ae??null,Te=Array.isArray(F)?F[0]:null,ce=Array.isArray(F)?F[1]:typeof F=="string"?F:null,Y=Array.isArray($)?$[0]:null,ne=Array.isArray($)?$[1]:typeof $=="number"?$:null,oe=Array.isArray(O)?O[0]:null,X=Array.isArray(O)?O[1]:typeof O=="number"?O:null;function Ve(i){let c=i*100;switch(w){case "right":return `inset(0 0 0 ${100-c}%)`;case "top":return `inset(0 0 ${100-c}% 0)`;case "bottom":return `inset(${100-c}% 0 0 0)`;case "center":return `circle(${i*150}% at 50% 50%)`;default:return `inset(0 ${100-c}% 0 0)`}}let W=w?[]:Array.from(e.querySelectorAll(l)),R=[],ue=[],me=0,$e=0,a=false,d=false,z=0,fe=false,D=-1,se=[],Pe=-1,K=false,N=0,xe=0,Me,ct=null;function Et(){ct?.destroy(),ct=null;}let _e=new Set,St=NaN,qe=true,Je=-1,Tt=performance.now(),Be=NaN;function ut(){return Se?j==="x"?Se.scrollLeft:Se.scrollTop:j==="x"?window.scrollX:window.scrollY}function xt(){return Se?j==="x"?Se.clientWidth:Se.clientHeight:j==="x"?window.innerWidth:window.innerHeight}function Mt(){let i=st(e,Se,j);return Le(i,i.scroll,xt(),le,He)}function At(){(({tStart:me,tEnd:$e}=Mt())),Ce&&Ue&&(Et(),ct=gr(me,$e,j));}function mt(i,c=Mt){ke(e,{type:"draw",getProgress:()=>i.getProgress(),getTrigger:c});let v=i.destroy;return i.destroy=()=>{v.call(i),Re(e);},i}function er(i,c){if(e.style.setProperty("--scroll-draw-progress",String(i)),w){let v=c==="reverse"?1-i:i;e.style.clipPath=Ve(v);return}W.forEach((v,pe)=>{v.style.strokeDashoffset=c==="reverse"?`${R[pe]*i}`:`${R[pe]*(1-i)}`,m&&(v.style.opacity=c==="reverse"?`${1-i}`:`${i}`),Te&&ce?v.style.stroke=Ge(Te,ce,i):ce&&(v.style.stroke=ce),Y!==null&&ne!==null?v.style.strokeWidth=`${Y+(ne-Y)*i}`:ne!==null&&(v.style.strokeWidth=`${ne}`),oe!==null&&X!==null?v.style.fillOpacity=`${oe+(X-oe)*i}`:X!==null&&(v.style.fillOpacity=`${X}`),L&&v.tagName.toLowerCase()==="path"&&ue[pe]&&v.setAttribute("d",dt(ue[pe],L,i));});}function et(){if(e.style.setProperty("--scroll-draw-progress","0"),w){e.style.clipPath=Ve(0);return}W.forEach((i,c)=>{i.style.strokeDasharray=`${R[c]}`,i.style.strokeDashoffset=A==="reverse"?"0":`${R[c]}`,m?i.style.opacity=A==="reverse"?"1":"0":i.style.opacity="",Te&&(i.style.stroke=Te),Y!==null&&(i.style.strokeWidth=`${Y}`),oe!==null&&(i.style.fillOpacity=`${oe}`),L&&i.tagName.toLowerCase()==="path"&&ue[c]&&i.setAttribute("d",ue[c]);});}if(W.forEach(i=>{dr(i);let c=We(i);R.push(c);let v=i.tagName.toLowerCase()==="path";v?ue.push(i.getAttribute("d")??""):ue.push(""),L&&(v?yr(ue[ue.length-1],L,i):be(`morphTo only applies to <path> elements \u2014 ignored on <${i.tagName}>.`,i)),s?(i.style.strokeDasharray=`${c}`,i.style.strokeDashoffset=A==="reverse"?`${c}`:"0",m&&(i.style.opacity="1"),ce&&(i.style.stroke=ce),ne!==null&&(i.style.strokeWidth=`${ne}`),X!==null&&(i.style.fillOpacity=`${X}`),L&&i.tagName.toLowerCase()==="path"&&i.setAttribute("d",L)):(i.style.strokeDasharray=`${c}`,i.style.strokeDashoffset=A==="reverse"?"0":`${c}`,m?i.style.opacity=A==="reverse"?"1":"0":i.style.opacity="",Te&&(i.style.stroke=Te),Y!==null&&(i.style.strokeWidth=`${Y}`),oe!==null&&(i.style.fillOpacity=`${oe}`));}),w){if(s)return e.style.clipPath=Ve(1),f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};e.style.clipPath=Ve(0);}else if(s)return f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};let Lt=typeof g=="string"?it(g):null;function tr(){return !(ye===false||!pr()||!W.length||!Lt||w||j!=="y"||Se||u!==1||q!==0||J||ee||P!==false||L||b||E||U>0||H||C||f||p||k||B||Ee||F!=null||$!=null||O!=null||(T.start??"top bottom").trim()!=="top bottom"||(T.end??"bottom top").trim()!=="bottom top")}function rr(){let i=++fr,c=`svg-scroll-draw-${i}`,v=`svg-scroll-draw-host-${i}`,pe=`--svg-scroll-draw-${i}`,ze=A==="reverse"?"0":"var(--ssd-len)",Ie=A==="reverse"?"var(--ssd-len)":"0",Oe=`stroke-dashoffset:${ze};`,S=`stroke-dashoffset:${Ie};`;m&&(Oe+=`opacity:${A==="reverse"?1:0};`,S+=`opacity:${A==="reverse"?0:1};`);let I=document.createElement("style");I.setAttribute("data-svg-scroll-draw",""),I.textContent=`@keyframes ${c}{from{${Oe}}to{${S}}}.${v}{view-timeline-name:${pe};view-timeline-axis:block;}.${c}{animation-name:${c};animation-duration:auto;animation-timing-function:${Lt};animation-fill-mode:both;animation-timeline:${pe};animation-range:cover 0% cover 100%;}`,document.head.appendChild(I),e.classList.add(v);function de(y,Q){y.style.setProperty("--ssd-len",String(R[Q])),y.style.strokeDasharray=`${R[Q]}`,y.style.strokeDashoffset="",y.style.opacity="",y.style.animationPlayState="",y.classList.add(c);}W.forEach(de);let h=false,_=-1;function G(){if(_>=0)return _;let y=e.getBoundingClientRect(),{tStart:Q,tEnd:Ae}=Le({top:y.top,height:y.height},ut(),xt(),le,He);return V(Z(ut(),Q,Ae,u))}return {destroy(){e.classList.remove(v),W.forEach(y=>{y.classList.remove(c),y.style.removeProperty("--ssd-len"),y.style.animationPlayState="";}),I.remove();},replay(){h=false,_=-1,W.forEach(de);},pause(){h=true,W.forEach(y=>{y.style.animationPlayState="paused";});},resume(){h&&(h=false,W.forEach(y=>{y.style.animationPlayState="running";}));},seek(y){let Q=Math.min(1,Math.max(0,y));_=Q,h=true,W.forEach((Ae,ve)=>{Ae.classList.remove(c),Ae.style.strokeDashoffset=A==="reverse"?`${R[ve]*Q}`:`${R[ve]*(1-Q)}`,m&&(Ae.style.opacity=A==="reverse"?`${1-Q}`:`${Q}`);});},getProgress(){return G()},refresh(){W.forEach((y,Q)=>{R[Q]=We(y),y.style.setProperty("--ssd-len",String(R[Q])),y.style.strokeDasharray=`${R[Q]}`;});}}}if(tr())return mt(rr());function nr(){let i=Math.max(1,ge),c=0,v=0,pe=false;function ze(h){let _=true;if(w){let G=Math.min(1,Math.max(0,h/i)),y=V(G);N=y,e.style.setProperty("--scroll-draw-progress",String(y)),e.style.clipPath=Ve(A==="reverse"?1-y:y),H?.(y),G<1&&(_=false);}else W.forEach((G,y)=>{let Q=y*q*i,Ae=Math.min(1,Math.max(0,(h-Q)/i)),ve=V(Ae);G.style.strokeDashoffset=A==="reverse"?`${R[y]*ve}`:`${R[y]*(1-ve)}`,m&&(G.style.opacity=A==="reverse"?`${1-ve}`:`${ve}`),Te&&ce?G.style.stroke=Ge(Te,ce,ve):ce&&(G.style.stroke=ce),Y!==null&&ne!==null?G.style.strokeWidth=`${Y+(ne-Y)*ve}`:ne!==null&&(G.style.strokeWidth=`${ne}`),oe!==null&&X!==null?G.style.fillOpacity=`${oe+(X-oe)*ve}`:X!==null&&(G.style.fillOpacity=`${X}`),L&&G.tagName.toLowerCase()==="path"&&ue[y]&&G.setAttribute("d",dt(ue[y],L,ve)),y===0&&(N=ve,H?.(ve),e.style.setProperty("--scroll-draw-progress",String(ve))),Ae<1&&(_=false);});if(b){let G=Math.min(1,Math.max(0,h/i)),y=V(G);for(let Q in b){let Ae=parseFloat(Q);y>=Ae&&!_e.has(Ae)&&(_e.add(Ae),b[Q]?.());}}return _}function Ie(h){if(K)return;let _=h-c;d||(d=true,C?.());let G=ze(_);if(G&&!a){a=true,ze(i*(1+Math.max(0,W.length-1)*q)),f?.(),xe<(E==="infinite"?1/0:E??0)&&(xe++,Me=setTimeout(()=>{c=performance.now(),d=false,a=false,_e.clear(),et(),z=requestAnimationFrame(Ie);},te));return}G||(z=requestAnimationFrame(Ie));}function Oe(){cancelAnimationFrame(z),clearTimeout(Me),c=performance.now(),v=0,K=false,d=false,a=false,xe=0,pe=true,N=0,_e.clear(),et(),z=requestAnimationFrame(Ie);}let S=new IntersectionObserver(h=>{h.forEach(_=>{_.isIntersecting&&!(J&&a)?Oe():!_.isIntersecting&&!J&&!a&&(cancelAnimationFrame(z),clearTimeout(Me),pe=false);});},{root:Se??null,threshold:x,rootMargin:M}),I;function de(){clearTimeout(I),I=setTimeout(()=>{W.forEach((h,_)=>{R[_]=We(h),h.style.strokeDasharray=`${R[_]}`;});},150);}return window.addEventListener("resize",de),window.addEventListener("orientationchange",de),U>0?setTimeout(()=>S.observe(e),U):S.observe(e),{destroy(){cancelAnimationFrame(z),clearTimeout(Me),S.disconnect(),window.removeEventListener("resize",de),window.removeEventListener("orientationchange",de),clearTimeout(I);},replay(){xe=0,Oe();},pause(){K||!pe||(K=true,v=performance.now()-c,cancelAnimationFrame(z));},resume(){K&&(K=false,pe=true,c=performance.now()-v,z=requestAnimationFrame(Ie));},seek(h){let _=Math.min(1,Math.max(0,h));N=_,K=true,v=_*i,c=performance.now()-v,cancelAnimationFrame(z),ze(v);},getProgress(){return N},refresh(){clearTimeout(I),W.forEach((h,_)=>{R[_]=We(h),h.style.strokeDasharray=`${R[_]}`;});}}}if(we)return mt(nr());At();function tt(){if(!fe||K)return;let i=performance.now(),c=ut();if(!qe&&P===false&&c===St){z=requestAnimationFrame(tt);return}qe=false,St=c;let v=u;if(P!==false){let S=i-Tt,I=S>0?Math.abs(c-(Je<0?c:Je))/S:0;v=u*Math.max(.2,1+I*(typeof P=="number"?P:1)*.04);}Je=c,Tt=i;let pe=ee?Pe===-1||c>=Pe?"forward":"reverse":A;Pe=c;let ze=$e-me,Ie=true,Oe=ze===0?0:(c-me)/ze;if(isNaN(Be)||(Be<=0&&Oe>0?p?.():Be>0&&Oe<=0&&Ee?.(),Be<1&&Oe>=1?k?.():Be>=1&&Oe<1&&B?.()),Be=Oe,w){let S=V(Z(c,me,$e,v));J&&!ee&&(D=Math.max(D,S),S=D),N=S,e.style.setProperty("--scroll-draw-progress",String(S));let I=pe==="reverse"?1-S:S;e.style.clipPath=Ve(I),H?.(S),!d&&Z(c,me,$e,v)>0&&(d=true,C?.()),S>=1&&!a?(a=true,f?.(),xe<(E==="infinite"?1/0:E??0)&&(xe++,Me=setTimeout(()=>{D=-1,d=false,a=false,e.style.clipPath=Ve(0);},te))):S<1&&!J&&(a=false),z=requestAnimationFrame(tt);return}if(W.forEach((S,I)=>{let de=I*q*ze,h=V(Z(c,me+de,$e+de,v));J&&!ee&&(h=se[I]=Math.max(se[I]??D,h)),S.style.strokeDashoffset=pe==="reverse"?`${R[I]*h}`:`${R[I]*(1-h)}`,m&&(S.style.opacity=pe==="reverse"?`${1-h}`:`${h}`),Te&&ce?S.style.stroke=Ge(Te,ce,h):ce&&(S.style.stroke=ce),Y!==null&&ne!==null?S.style.strokeWidth=`${Y+(ne-Y)*h}`:ne!==null&&(S.style.strokeWidth=`${ne}`),oe!==null&&X!==null?S.style.fillOpacity=`${oe+(X-oe)*h}`:X!==null&&(S.style.fillOpacity=`${X}`),L&&S.tagName.toLowerCase()==="path"&&ue[I]&&S.setAttribute("d",dt(ue[I],L,h)),I===0&&(N=h,H?.(h),e.style.setProperty("--scroll-draw-progress",String(h))),h<1&&(Ie=false);}),b){let S=V(Z(c,me,$e,v));for(let I in b){let de=parseFloat(I);S>=de&&!_e.has(de)&&(_e.add(de),b[I]?.());}}!d&&Z(c,me,$e,v)>0&&(d=true,C?.()),Ie&&!a?(a=true,f?.(),xe<(E==="infinite"?1/0:E??0)&&(xe++,Me=setTimeout(()=>{D=-1,se=[],d=false,a=false,_e.clear(),et(),qe=true;},te))):!Ie&&!J&&(a=false),z=requestAnimationFrame(tt);}let ft=false;function rt(){ft||(ft=true,z=requestAnimationFrame(function(){tt();}));}function nt(){ft=false,cancelAnimationFrame(z);}let pt=new IntersectionObserver(i=>{i.forEach(c=>{fe=c.isIntersecting,fe&&!K?(qe=true,rt()):nt();});},{root:Se??null,threshold:x,rootMargin:M});function Ct(){W.forEach((i,c)=>{R[c]=We(i),i.style.strokeDasharray=`${R[c]}`;}),At(),qe=true;}let ot;function je(){clearTimeout(ot),ot=setTimeout(Ct,150);}window.addEventListener("resize",je),window.addEventListener("orientationchange",je);let or=Fe([e],je);return U>0?setTimeout(()=>pt.observe(e),U):pt.observe(e),mt({destroy(){cancelAnimationFrame(z),clearTimeout(Me),nt(),pt.disconnect(),or(),window.removeEventListener("resize",je),window.removeEventListener("orientationchange",je),clearTimeout(ot),Et();},replay(){D=-1,se=[],Pe=-1,Je=-1,d=false,a=false,xe=0,K=false,N=0,_e.clear(),clearTimeout(Me),et(),qe=true,fe&&rt();},pause(){K=true,nt();},resume(){K&&(K=false,qe=true,fe&&rt());},seek(i){let c=Math.min(1,Math.max(0,i));N=c,D=c,se=[],K=true,nt(),er(c,A),qe=true;},getProgress(){return N},refresh(){clearTimeout(ot),Ct(),fe&&!K&&rt();}},()=>({tStart:me,tEnd:$e}))}var qt=new WeakMap,hr=0;function Bt(e){return JSON.stringify(e,(n,r)=>{if(typeof r=="function")return "\u0192";if(typeof Element<"u"&&r instanceof Element){let t=qt.get(r);return t===void 0&&qt.set(r,t=++hr),`el#${t}`}return r})}function Wt(e,n){let r={...e};for(let t of Object.keys(r))typeof r[t]=="function"&&(r[t]=(...o)=>n()[t]?.(...o));return r}function br(e){return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")}function Gt(e){let n=[],r=/([\w]+)\(([^)]*)\)/g,t;for(;(t=r.exec(e))!==null;){let o=[],s=[],l=t[2].trim();if(l)for(let u of l.split(/[\s,]+/)){let m=u.match(/^([-+]?[\d.eE]+)(.*)$/);o.push(m?parseFloat(m[1]):0),s.push(m?m[2]:"");}n.push({fn:t[1],nums:o,units:s});}return n}function wr(e,n,r){let t=Gt(e),o=Gt(n);return t.length===0||t.length!==o.length?r<1?e:n:t.map((s,l)=>{let u=o[l];return s.fn!==u.fn||s.nums.length!==u.nums.length?r<1?`${s.fn}(${s.nums.map((m,g)=>`${m}${s.units[g]}`).join(", ")})`:`${u.fn}(${u.nums.map((m,g)=>`${m}${u.units[g]}`).join(", ")})`:`${s.fn}(${s.nums.map((m,g)=>`${m+(u.nums[g]-m)*r}${s.units[g]}`).join(", ")})`}).join(" ")}function jt(e,n,r){if(typeof e=="number"&&typeof n=="number")return String(e+(n-e)*r);let t=String(e),o=String(n);if(br(t))return Ge(t,o,r);if(t.includes("("))return wr(t,o,r);let s=t.match(/^([-+]?[\d.]+)(.*)$/),l=o.match(/^([-+]?[\d.]+)(.*)$/);if(s&&l){let u=parseFloat(s[1]),m=parseFloat(l[1]);return `${u+(m-u)*r}${s[2]||l[2]}`}return r<1?t:o}function vr(e){return e.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}var Er=new Set(["opacity","transform","background-color","color","filter","scale","translate","rotate"]),Sr=0,Ut="--scroll-draw-progress";function Tr(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")}function yt(e,n){let r={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};if(typeof window>"u")return r;let{props:t,trigger:o={},easing:s="ease-out",speed:l=1,once:u=false,axis:m="y",scrollContainer:g,native:T=true,velocityScale:q=false,respectReducedMotion:A=true,triggerElement:J,onProgress:Ce,onComplete:j,onEnter:ae,onLeave:ee,onEnterBack:U,onLeaveBack:F}=n,$=A&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,O=typeof s=="function"?s:ie[s]??ie["ease-out"],b=he(o.start??"top bottom"),P=he(o.end??"bottom top"),x=J??e,M=typeof g=="string"?document.querySelector(g):g??null,E=Object.entries(t).map(([a,d])=>({prop:vr(a),from:Array.isArray(d)?d[0]:"",to:Array.isArray(d)?d[1]:d}));function te(){let a=window.getComputedStyle(e);for(let d of E)d.from===""&&(d.from=a.getPropertyValue(d.prop).trim()||"0");}function L(){for(let a of E)e.style.setProperty(a.prop,String(a.to));}let re=new Map;for(let a of [...E.map(d=>d.prop),Ut])re.set(a,e.style.getPropertyValue(a));function we(){for(let[a,d]of re)d?e.style.setProperty(a,d):e.style.removeProperty(a);}if($)return L(),j?.(),{...r,destroy:we,getProgress:()=>1};te();let ge=typeof s=="string"?it(s):null;function ye(){if(!T||!Tr()||!ge||m!=="y"||M||x!==e||u||l!==1||Ce||j||ae||ee||U||F||q!==false||(o.start??"top bottom").trim()!=="top bottom"||(o.end??"bottom top").trim()!=="bottom top")return false;for(let a of E)if(!Er.has(a.prop))return false;return true}function H(){let a=`ssd-a-${++Sr}`,d=E.map(N=>`${N.prop}:${N.from}`).join(";"),z=E.map(N=>`${N.prop}:${N.to}`).join(";"),fe=document.createElement("style");fe.setAttribute("data-ssd-animate",""),fe.textContent=`@keyframes ${a}{from{${d}}to{${z}}}.${a}{animation-name:${a};animation-duration:auto;animation-timing-function:${ge};animation-fill-mode:both;animation-timeline:view();animation-range:cover 0% cover 100%;}`,document.head.appendChild(fe),e.classList.add(a);let D=()=>m==="x"?window.scrollX:window.scrollY,se=()=>m==="x"?window.innerWidth:window.innerHeight,Pe=()=>{let N=e.getBoundingClientRect();return Le({top:N.top,height:N.height},D(),se(),b,P)};ke(e,{type:"animate",getProgress:()=>K.getProgress(),getTrigger:Pe});let K={refresh(){},destroy(){e.classList.remove(a),fe.remove(),e.style.animationPlayState="",we(),Re(e);},replay(){e.classList.remove(a),e.offsetWidth,e.classList.add(a);},pause(){e.style.animationPlayState="paused";},resume(){e.style.animationPlayState="";},seek(N){let xe=Math.min(1,Math.max(0,N));e.classList.remove(a);for(let Me of E)e.style.setProperty(Me.prop,jt(Me.from,Me.to,xe));},getProgress(){let{tStart:N,tEnd:xe}=Pe();return O(Z(D(),N,xe,l))}};return K}if(ye())return H();let C=0,f=0,p=0,k=false,B=false,Ee=-1,w=0,V=false,le=NaN,He=-1,Se=0,Te=()=>M?m==="x"?M.scrollLeft:M.scrollTop:m==="x"?window.scrollX:window.scrollY,ce=()=>M?m==="x"?M.clientWidth:M.clientHeight:m==="x"?window.innerWidth:window.innerHeight,Y=x===e?E:[],ne=false;function oe(){let a=e.style,d=Y.map(se=>a.getPropertyValue(se.prop)),z=a.transition;Y.length&&(a.transition="none"),Y.forEach(se=>a.setProperty(se.prop,re.get(se.prop)??""));let fe=st(x,M,m);Y.forEach((se,Pe)=>a.setProperty(se.prop,d[Pe])),Y.length&&(e.offsetWidth,a.transition=z);let D=Le(fe,fe.scroll,ce(),b,P);ne&&Math.abs(D.tStart-C)<1&&Math.abs(D.tEnd-f)<1||(ne=true,C=D.tStart,f=D.tEnd);}function X(a){e.style.setProperty(Ut,String(a));for(let d of E)e.style.setProperty(d.prop,jt(d.from,d.to,a));Ce?.(a);}function Ve(a){if(isNaN(le)){le=a;return}le<=0&&a>0?ae?.():le>0&&a<=0&&F?.(),le<1&&a>=1?ee?.():le>=1&&a<1&&U?.(),le=a;}function W(){if(!k||B)return;let a=performance.now(),d=Te(),z=l;if(q!==false){let se=a-Se,Pe=se>0?Math.abs(d-(He<0?d:He))/se:0;z=l*Math.max(.2,1+Pe*(typeof q=="number"?q:1)*.04);}He=d,Se=a;let fe=f===C?0:(d-C)/(f-C);Ve(fe);let D=O(Z(d,C,f,z));u&&(Ee=Math.max(Ee,D),D=Ee),w=D,X(D),D>=1&&!V?(V=true,j?.()):D<1&&!u&&(V=false),p=requestAnimationFrame(W);}oe(),f===C&&be("scrollAnimate: the trigger window has zero length (start and end resolve to the same scroll position), so this element will never animate. If the target is inside a position:sticky stage, measure the trigger from the container that holds the scroll room via `triggerElement`.",e);{let a=O(Z(Te(),C,f,l));u&&a>0&&(Ee=a),w=a,X(a);}let R=new IntersectionObserver(a=>{a.forEach(d=>{k=d.isIntersecting,k&&!B?p=requestAnimationFrame(W):cancelAnimationFrame(p);});},{root:M??null}),ue;function me(){clearTimeout(ue),ue=setTimeout(oe,150);}window.addEventListener("resize",me),window.addEventListener("orientationchange",me);let $e=Fe([x],me);return R.observe(e),ke(e,{type:"animate",getProgress:()=>w,getTrigger:()=>({tStart:C,tEnd:f})}),{destroy(){cancelAnimationFrame(p),R.disconnect(),window.removeEventListener("resize",me),window.removeEventListener("orientationchange",me),$e(),clearTimeout(ue),we(),Re(e);},replay(){Ee=-1,V=false,w=0,B=false,X(0);},pause(){B=true,cancelAnimationFrame(p);},resume(){B&&(B=false,k&&(p=requestAnimationFrame(W)));},seek(a){let d=Math.min(1,Math.max(0,a));w=d,Ee=d,B=true,cancelAnimationFrame(p),X(d);},getProgress(){return w},refresh(){oe();}}}var ht={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function bt(e,n){if(typeof window>"u")return ht;let r=typeof e=="string"?document.querySelector(e):e;if(!r)return be("scrollCounter: element not found:",e),ht;let t=r,{from:o=0,to:s,format:l,easing:u="ease-out",trigger:m={},once:g=true,decimals:T,onComplete:q}=n,A=T!==void 0?f=>f.toFixed(T):l??(f=>String(Math.round(f))),J=typeof u=="function"?u:ie[u]??ie["ease-out"],Ce=he(m.start??"top 80%"),j=he(m.end??"top 20%");if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return t.textContent=A(s),q?.(),ht;let ee=0,U=0,F=false,$=0,O=false,b=false,P=-1,x=0,M=false,E=()=>window.scrollY,te=()=>window.innerHeight;function L(){let f=t.getBoundingClientRect(),p=Le({top:f.top,height:f.height},E(),te(),Ce,j);F&&Math.abs(p.tStart-ee)<1&&Math.abs(p.tEnd-U)<1||(F=true,ee=p.tStart,U=p.tEnd);}function re(f){t.textContent=A(o+(s-o)*f),t.style.setProperty("--scroll-draw-progress",String(f));}function we(){if(!O||b)return;let f=J(Z(E(),ee,U,1));g&&(P=Math.max(P,f),f=P),x=f,re(f),f>=1&&!M?(M=true,q?.()):f<1&&!g&&(M=false),$=requestAnimationFrame(we);}L();{let f=J(Z(E(),ee,U,1));g&&f>0&&(P=f),x=f,re(f);}let ge=new IntersectionObserver(f=>{f.forEach(p=>{O=p.isIntersecting,O&&!b?$=requestAnimationFrame(we):cancelAnimationFrame($);});}),ye;function H(){clearTimeout(ye),ye=setTimeout(L,150);}window.addEventListener("resize",H),window.addEventListener("orientationchange",H);let C=Fe([t],H);return ge.observe(t),ke(t,{type:"counter",getProgress:()=>x,getTrigger:()=>({tStart:ee,tEnd:U})}),{destroy(){cancelAnimationFrame($),ge.disconnect(),window.removeEventListener("resize",H),window.removeEventListener("orientationchange",H),C(),clearTimeout(ye),Re(t);},replay(){P=-1,M=false,x=0,b=false,re(0);},pause(){b=true,cancelAnimationFrame($);},resume(){b&&(b=false,O&&($=requestAnimationFrame(we)));},seek(f){let p=Math.min(1,Math.max(0,f));x=p,P=p,b=true,cancelAnimationFrame($),re(p);},getProgress(){return x}}}var Yt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function wt(e,n={}){if(typeof window>"u")return Yt;let r=typeof e=="string"?document.querySelector(e):e;if(!r||r.tagName.toLowerCase()!=="video")return be("scrollVideo: <video> element not found:",e),Yt;let t=r,{trigger:o={},easing:s="linear",once:l=false,axis:u="y",preload:m="auto",triggerElement:g,onReady:T,onComplete:q,onProgress:A}=n,J=g??t,Ce=window.matchMedia("(prefers-reduced-motion: reduce)").matches,j=typeof s=="function"?s:ie[s]??ie.linear,ae=he(o.start??"top top"),ee=he(o.end??"bottom top");t.pause(),t.hasAttribute("preload")||(t.preload=m);let U=n.from??0,F=n.to,$=0,O=0,b=0,P=false,x=false,M=-1,E=0,te=false,L=false,re=()=>u==="x"?window.scrollX:window.scrollY,we=()=>u==="x"?window.innerWidth:window.innerHeight;function ge(){let w=J.getBoundingClientRect(),V=u==="x"?w.left:w.top,le=u==="x"?w.width:w.height,He=Le({top:V,height:le},re(),we(),ae,ee);$=He.tStart,O=He.tEnd,L&&O===$&&be("scrollVideo: zero-length trigger window, so it never scrubs. In a sticky stage, set triggerElement.",t);}let ye=NaN;function H(w){if(!L)return;let V=F??t.duration??0,le=U+(V-U)*w;le!==ye&&(ye=le,t.currentTime=le),t.style.setProperty("--scroll-draw-progress",String(w)),A?.(w);}function C(){if(!P||x||!L||Ce)return;let w=j(Z(re(),$,O,1));l&&(M=Math.max(M,w),w=M),E=w,H(w),w>=1&&!te?(te=true,q?.()):w<1&&!l&&(te=false),b=requestAnimationFrame(C);}function f(){if(L=true,F===void 0&&(F=t.duration),Ce){H(1),T?.();return}ge(),T?.(),P&&!x&&(b=requestAnimationFrame(C));}t.readyState>=1?f():t.addEventListener("loadedmetadata",f,{once:true}),L||ge();let p=new IntersectionObserver(w=>{w.forEach(V=>{P=V.isIntersecting,P&&!x&&L?b=requestAnimationFrame(C):cancelAnimationFrame(b);});}),k;function B(){clearTimeout(k),k=setTimeout(ge,150);}window.addEventListener("resize",B),window.addEventListener("orientationchange",B);let Ee=Fe([J],B);return p.observe(t),ke(t,{type:"video",getProgress:()=>E,getTrigger:()=>({tStart:$,tEnd:O})}),{destroy(){cancelAnimationFrame(b),p.disconnect(),t.removeEventListener("loadedmetadata",f),window.removeEventListener("resize",B),window.removeEventListener("orientationchange",B),Ee(),clearTimeout(k),Re(t);},replay(){M=-1,te=false,E=0,x=false,ye=NaN,H(0);},pause(){x=true,cancelAnimationFrame(b);},resume(){x&&(x=false,P&&L&&(b=requestAnimationFrame(C)));},seek(w){let V=Math.min(1,Math.max(0,w));E=V,M=V,x=true,cancelAnimationFrame(b),ye=NaN,H(V);},getProgress(){return E}}}function Qt(e){let n=e.textContent??"";return e.textContent="",n.split(/(\s+)/).filter(Boolean).map(r=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),/^\s+$/.test(r)?(t.textContent=r,t.style.whiteSpace="pre"):(t.textContent=r,t.style.display="inline-block"),e.appendChild(t),/^\s+$/.test(r)?null:t}).filter(r=>r!==null)}function xr(e){let n=e.textContent??"";return e.textContent="",n.split("").map(r=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),t.textContent=r,r===" "?t.style.whiteSpace="pre":t.style.display="inline-block",e.appendChild(t),r===" "?null:t}).filter(r=>r!==null)}function Xt(e){let n=Qt(e),r=new Map;for(let s of n){let l=s.offsetTop;r.has(l)||r.set(l,[]),r.get(l).push(s);}let t=[],o=Array.from(r.keys()).sort((s,l)=>s-l);for(let s of o){let l=r.get(s),u=document.createElement("span");u.setAttribute("aria-hidden","true"),u.style.display="inline-block",l.forEach((m,g)=>{let T=m.nextElementSibling;u.appendChild(m),g<l.length-1&&T&&T.style.whiteSpace==="pre"&&u.appendChild(T);}),t.push(u);}return e.textContent="",t.forEach((s,l)=>{e.appendChild(s),l<t.length-1&&e.appendChild(document.createTextNode(" "));}),t}function Mr(e,n,r,t){if(r<=1||t===0)return e;let o=(r-1)*t,s=n*t,l=s+(1-o);return l<=s?e>=s?1:0:Math.min(1,Math.max(0,(e-s)/(l-s)))}function Ar(e,n){let r=[];if(n?.y!==void 0&&r.push(`translateY(${n.y*(1-e)}px)`),n?.x!==void 0&&r.push(`translateX(${n.x*(1-e)}px)`),n?.rotate!==void 0&&r.push(`rotate(${n.rotate*(1-e)}deg)`),n?.scale!==void 0){let t=n.scale+(1-n.scale)*e;r.push(`scale(${t})`);}return r.join(" ")||""}var Kt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function vt(e,n={}){if(typeof window>"u")return Kt;let r=typeof e=="string"?document.querySelector(e):e;if(!r)return be("scrollText: element not found:",e),Kt;let t=r,{split:o="words",stagger:s=.04,easing:l="ease-out",from:u={opacity:0,y:24},trigger:m={},once:g=true,onComplete:T}=n,q=window.matchMedia("(prefers-reduced-motion: reduce)").matches,A=typeof l=="function"?l:ie[l]??ie["ease-out"],J=he(m.start??"top 85%"),Ce=he(m.end??"top 40%"),j=t.innerHTML;t.setAttribute("aria-label",t.textContent??"");let ae;o==="chars"?ae=xr(t):o==="lines"?ae=Xt(t):ae=Qt(t);let ee=ae.length;function U(p,k){u?.opacity!==void 0&&(p.style.opacity=String(u.opacity+(1-u.opacity)*k));let B=Ar(k,u);B&&(p.style.transform=B);}function F(p){t.style.setProperty("--scroll-draw-progress",String(p)),ae.forEach((k,B)=>{let Ee=A(Mr(p,B,ee,s));U(k,Ee);});}if(q)return F(1),T?.(),{destroy(){t.innerHTML=j,t.removeAttribute("aria-label");},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};F(0);let $=0,O=0,b=0,P=false,x=false,M=-1,E=0,te=false,L=()=>window.scrollY,re=()=>window.innerHeight;function we(){let p=t.getBoundingClientRect(),k=Le({top:p.top,height:p.height},L(),re(),J,Ce);$=k.tStart,O=k.tEnd;}function ge(){if(!P||x)return;let p=Z(L(),$,O,1);g&&(M=Math.max(M,p),p=M),E=p,F(p),p>=1&&!te?(te=true,T?.()):p<1&&!g&&(te=false),b=requestAnimationFrame(ge);}we();let ye=new IntersectionObserver(p=>{p.forEach(k=>{P=k.isIntersecting,P&&!x?b=requestAnimationFrame(ge):cancelAnimationFrame(b);});}),H;function C(){clearTimeout(H),H=setTimeout(()=>{if(o==="lines"){let p=E;t.innerHTML=j,t.setAttribute("aria-label",t.textContent??""),ae=Xt(t),F(p);}we();},150);}window.addEventListener("resize",C),window.addEventListener("orientationchange",C);let f=Fe([t],C);return ye.observe(t),ke(t,{type:"text",getProgress:()=>E,getTrigger:()=>({tStart:$,tEnd:O})}),{destroy(){cancelAnimationFrame(b),ye.disconnect(),window.removeEventListener("resize",C),window.removeEventListener("orientationchange",C),f(),clearTimeout(H),t.innerHTML=j,t.removeAttribute("aria-label"),Re(t);},replay(){M=-1,te=false,E=0,x=false,F(0);},pause(){x=true,cancelAnimationFrame(b);},resume(){x&&(x=false,P&&(b=requestAnimationFrame(ge)));},seek(p){let k=Math.min(1,Math.max(0,p));E=k,M=k,x=true,cancelAnimationFrame(b),F(k);},getProgress(){return E}}}var Ze=e=>typeof e=="function"?e():vue.unref(e);function Ne(e,n,r){let t=null,o=n(),s=()=>{t?.destroy(),t=e.value?r(e.value,Wt(o,()=>o)):null;};vue.onMounted(s),vue.watch(()=>Bt(o=n()),s),vue.onUnmounted(()=>{t?.destroy(),t=null;});}function Hn(e={}){let n=vue.ref(null);return Ne(n,()=>Ze(e),gt),n}var Zt={preset:0,selector:0,speed:0,fade:1,easing:0,trigger:0,stagger:0,direction:0,once:1,debug:1,axis:0,scrollContainer:0,autoReverse:1,delay:0,strokeColor:0,strokeWidth:0,fillOpacity:0,clip:2,waypoints:0,velocityScale:3,threshold:0,rootMargin:0,repeat:0,repeatDelay:0,morphTo:0,onProgress:0,onStart:0,onComplete:0,onEnter:0,onLeave:0,onEnterBack:0,onLeaveBack:0,autoplay:1,duration:0,native:1},Or=[null,Boolean,[Boolean,String],[Boolean,Number]],Jt=e=>({type:e,default:void 0}),Vn=vue.defineComponent({name:"ScrollDraw",props:Object.fromEntries(Object.entries(Zt).map(([e,n])=>[e,n?Jt(Or[n]):null])),setup(e,{slots:n}){let r=vue.ref(null);return Ne(r,()=>{let t={};for(let o in Zt){let s=e[o];s!=null&&(t[o]=s);}return t},gt),()=>vue.h("div",{ref:r},n.default?.())}});function zn(e){let n=vue.ref(null);return Ne(n,()=>Ze(e),yt),n}var _n=vue.defineComponent({name:"ScrollAnimate",props:{options:{type:Object,required:true}},setup(e,{slots:n}){let r=vue.ref(null);return Ne(r,()=>e.options,yt),()=>vue.h("div",{ref:r},n.default?.())}});function qn(e){let n=vue.ref(null);return Ne(n,()=>Ze(e),bt),n}var Bn=vue.defineComponent({name:"ScrollCounter",props:{to:{type:Number,required:true},from:{type:Number},format:{type:Function},easing:{type:[String,Function]},trigger:{type:Object},once:Jt(Boolean),decimals:{type:Number},onComplete:{type:Function}},setup(e){let n=vue.ref(null);return Ne(n,()=>{let r={to:e.to};return e.from!=null&&(r.from=e.from),e.format!=null&&(r.format=e.format),e.easing!=null&&(r.easing=e.easing),e.trigger!=null&&(r.trigger=e.trigger),e.once!=null&&(r.once=e.once),e.decimals!=null&&(r.decimals=e.decimals),e.onComplete!=null&&(r.onComplete=e.onComplete),r},bt),()=>vue.h("span",{ref:n})}});function Wn(e={}){let n=vue.ref(null);return Ne(n,()=>Ze(e),wt),n}var Gn=vue.defineComponent({name:"ScrollVideo",props:{src:{type:String,required:true},options:{type:Object},muted:{type:Boolean,default:true},playsInline:{type:Boolean,default:true},class:{type:String}},setup(e){let n=vue.ref(null);return Ne(n,()=>e.options??{},wt),()=>vue.h("video",{ref:n,src:e.src,muted:e.muted,playsinline:e.playsInline,preload:"auto",class:e.class})}});function jn(e={}){let n=vue.ref(null);return Ne(n,()=>Ze(e),vt),n}var Un=vue.defineComponent({name:"ScrollText",props:{options:{type:Object},tag:{type:String,default:"p"}},setup(e,{slots:n}){let r=vue.ref(null);return Ne(r,()=>e.options??{},vt),()=>vue.h(e.tag,{ref:r},n.default?.())}});exports.ScrollAnimate=_n;exports.ScrollCounter=Bn;exports.ScrollDraw=Vn;exports.ScrollText=Un;exports.ScrollVideo=Gn;exports.useScrollAnimate=zn;exports.useScrollCounter=qn;exports.useScrollDraw=Hn;exports.useScrollText=jn;exports.useScrollVideo=Wn;
3
+ <div style="position:absolute;${m?`left:${u}px;top:0;bottom:0;border-left:2px dashed #ef4444;`:`top:${u}px;left:0;right:0;border-top:2px dashed #ef4444;`}padding:2px 6px;color:#ef4444;background:rgba(0,0,0,.6)">\u25A0 end</div>`;}return document.body.appendChild(t),window.addEventListener("scroll",s,{passive:true}),s(),{el:t,destroy(){window.removeEventListener("scroll",s),t.remove();}}}var qt=/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,Gt=/[MmLlHhVvCcSsQqTtAaZz]/g;function Sn(e,r,n){if(!Ke)return;let t=(e.match(Gt)??[]).join("").toUpperCase(),s=(r.match(Gt)??[]).join("").toUpperCase(),i=(e.match(qt)??[]).length,l=(r.match(qt)??[]).length;if(t!==s){we(`morphTo: command sequence differs (${t||"\u2205"} \u2192 ${s||"\u2205"}). Interpolation is coordinate-for-coordinate, so the result will not reach the target shape. Redraw both paths with the same commands.`,n);return}i!==l&&we(`morphTo: coordinate count differs (${i} \u2192 ${l}). Extra coordinates are ignored and missing ones hold their start value, so the result will not reach the target shape.`,n);}function yt(e,r,n){let t=(r.match(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g)??[]).map(Number),s=0;return e.replace(/[-+]?(?:\d*\.)?\d+(?:[eE][-+]?\d+)?/g,i=>{let l=parseFloat(i),u=t[s++]??l;return String(+(l+(u-l)*n).toFixed(4))})}function ht(e,r={}){if(typeof window>"u")return {destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};let{preset:n,...t}=r,s=n?{...Nt[n],...t}:t,i=window.matchMedia("(prefers-reduced-motion: reduce)").matches,{selector:l="path, polyline, line, polygon, rect, circle",speed:u=1,fade:m=false,easing:d="linear",trigger:T={},stagger:D=0,direction:A="forward",once:ne=false,debug:Pe=false,axis:G="y",scrollContainer:ue,autoReverse:re=false,delay:Y=0,strokeColor:N,strokeWidth:P,fillOpacity:k,waypoints:w,velocityScale:O=false,threshold:x=0,rootMargin:M="0px",repeat:E=0,repeatDelay:oe=0,morphTo:L,clip:se,autoplay:ve=false,duration:ge=1e3,native:ye=true,onProgress:H,onStart:$,onComplete:f,onEnter:p,onLeave:R,onEnterBack:W,onLeaveBack:Me}=s,v=se===true?"left":typeof se=="string"?se:false,V=typeof d=="function"?d:ce[d]??ce.linear,me=be(T.start??"top bottom"),He=be(T.end??"bottom top"),Ee=typeof ue=="string"?document.querySelector(ue):ue??null,Ae=Array.isArray(N)?N[0]:null,fe=Array.isArray(N)?N[1]:typeof N=="string"?N:null,X=Array.isArray(P)?P[0]:null,ie=Array.isArray(P)?P[1]:typeof P=="number"?P:null,ae=Array.isArray(k)?k[0]:null,K=Array.isArray(k)?k[1]:typeof k=="number"?k:null;function Ve(o){let a=o*100;switch(v){case "right":return `inset(0 0 0 ${100-a}%)`;case "top":return `inset(0 0 ${100-a}% 0)`;case "bottom":return `inset(${100-a}% 0 0 0)`;case "center":return `circle(${o*150}% at 50% 50%)`;default:return `inset(0 ${100-a}% 0 0)`}}let z=v?[]:Array.from(e.querySelectorAll(l)),I=[],pe=[],J=0,Se=0,c=D,h=0,_=false,q=false,C=0,ee=false,he=-1,ze=[],le=-1,j=false,Te=0,_e=0,Be,ft=null;function Tt(){ft?.destroy(),ft=null;}let We=new Set,xt=NaN,qe=true,nt=-1,Mt=performance.now(),Ge=NaN;function rt(){return Ee?G==="x"?Ee.scrollLeft:Ee.scrollTop:G==="x"?window.scrollX:window.scrollY}function At(){return Ee?G==="x"?Ee.clientWidth:Ee.clientHeight:G==="x"?window.innerWidth:window.innerHeight}function Lt(){let o=lt(e,Ee,G);return $e(o,o.scroll,At(),me,He)}function on(){let o=Se-J,a=z.length-1,y=Ee??document.documentElement,Q=G==="x"?"Width":"Height";if(c=D,D>0&&a>0&&o>0){let Le=y[`scroll${Q}`]-y[`client${Q}`]-1-J-o/u;Le>=0&&(c=Math.min(D,Le/(a*o)));}h=Se+a*c*o;}function Ct(){(({tStart:J,tEnd:Se}=Lt())),on(),Pe&&Ke&&(Tt(),ft=En(J,Se,G));}function pt(o,a=Lt){ke(e,{type:"draw",getProgress:()=>o.getProgress(),getTrigger:a});let y=o.destroy;return o.destroy=()=>{y.call(o),Re(e);},o}function sn(o,a){if(e.style.setProperty("--scroll-draw-progress",String(o)),v){let y=a==="reverse"?1-o:o;e.style.clipPath=Ve(y);return}z.forEach((y,Q)=>{y.style.strokeDashoffset=a==="reverse"?`${I[Q]*o}`:`${I[Q]*(1-o)}`,m&&(y.style.opacity=a==="reverse"?`${1-o}`:`${o}`),Ae&&fe?y.style.stroke=Ye(Ae,fe,o):fe&&(y.style.stroke=fe),X!==null&&ie!==null?y.style.strokeWidth=`${X+(ie-X)*o}`:ie!==null&&(y.style.strokeWidth=`${ie}`),ae!==null&&K!==null?y.style.fillOpacity=`${ae+(K-ae)*o}`:K!==null&&(y.style.fillOpacity=`${K}`),L&&y.tagName.toLowerCase()==="path"&&pe[Q]&&y.setAttribute("d",yt(pe[Q],L,o));});}function ot(){if(e.style.setProperty("--scroll-draw-progress","0"),v){e.style.clipPath=Ve(0);return}z.forEach((o,a)=>{o.style.strokeDasharray=`${I[a]}`,o.style.strokeDashoffset=A==="reverse"?"0":`${I[a]}`,m?o.style.opacity=A==="reverse"?"1":"0":o.style.opacity="",Ae&&(o.style.stroke=Ae),X!==null&&(o.style.strokeWidth=`${X}`),ae!==null&&(o.style.fillOpacity=`${ae}`),L&&o.tagName.toLowerCase()==="path"&&pe[a]&&o.setAttribute("d",pe[a]);});}if(z.forEach(o=>{vn(o);let a=Ue(o);I.push(a);let y=o.tagName.toLowerCase()==="path";y?pe.push(o.getAttribute("d")??""):pe.push(""),L&&(y?Sn(pe[pe.length-1],L,o):we(`morphTo only applies to <path> elements \u2014 ignored on <${o.tagName}>.`,o)),i?(o.style.strokeDasharray=`${a}`,o.style.strokeDashoffset=A==="reverse"?`${a}`:"0",m&&(o.style.opacity="1"),fe&&(o.style.stroke=fe),ie!==null&&(o.style.strokeWidth=`${ie}`),K!==null&&(o.style.fillOpacity=`${K}`),L&&o.tagName.toLowerCase()==="path"&&o.setAttribute("d",L)):(o.style.strokeDasharray=`${a}`,o.style.strokeDashoffset=A==="reverse"?"0":`${a}`,m?o.style.opacity=A==="reverse"?"1":"0":o.style.opacity="",Ae&&(o.style.stroke=Ae),X!==null&&(o.style.strokeWidth=`${X}`),ae!==null&&(o.style.fillOpacity=`${ae}`));}),v){if(i)return e.style.clipPath=Ve(1),f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};e.style.clipPath=Ve(0);}else if(i)return f?.(),{destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};let $t=typeof d=="string"?ct(d):null;function an(){return !(ye===false||!wn()||!z.length||!$t||v||G!=="y"||Ee||u!==1||D!==0||ne||re||O!==false||L||w||E||Y>0||H||$||f||p||R||W||Me||N!=null||P!=null||k!=null||(T.start??"top bottom").trim()!=="top bottom"||(T.end??"bottom top").trim()!=="bottom top")}function ln(){let o=++bn,a=`svg-scroll-draw-${o}`,y=`svg-scroll-draw-host-${o}`,Q=`--svg-scroll-draw-${o}`,Le=A==="reverse"?"0":"var(--ssd-len)",Ie=A==="reverse"?"var(--ssd-len)":"0",Oe=`stroke-dashoffset:${Le};`,S=`stroke-dashoffset:${Ie};`;m&&(Oe+=`opacity:${A==="reverse"?1:0};`,S+=`opacity:${A==="reverse"?0:1};`);let F=document.createElement("style");F.setAttribute("data-svg-scroll-draw",""),F.textContent=`@keyframes ${a}{from{${Oe}}to{${S}}}.${y}{view-timeline-name:${Q};view-timeline-axis:block;}.${a}{animation-name:${a};animation-duration:auto;animation-timing-function:${$t};animation-fill-mode:both;animation-timeline:${Q};animation-range:cover 0% cover 100%;}`,document.head.appendChild(F),e.classList.add(y);function de(g,Z){g.style.setProperty("--ssd-len",String(I[Z])),g.style.strokeDasharray=`${I[Z]}`,g.style.strokeDashoffset="",g.style.opacity="",g.style.animationPlayState="",g.classList.add(a);}z.forEach(de);let b=false,B=-1;function U(){if(B>=0)return B;let g=e.getBoundingClientRect(),{tStart:Z,tEnd:Ce}=$e({top:g.top,height:g.height},rt(),At(),me,He);return V(te(rt(),Z,Ce,u))}return {destroy(){e.classList.remove(y),z.forEach(g=>{g.classList.remove(a),g.style.removeProperty("--ssd-len"),g.style.animationPlayState="";}),F.remove();},replay(){b=false,B=-1,z.forEach(de);},pause(){b=true,z.forEach(g=>{g.style.animationPlayState="paused";});},resume(){b&&(b=false,z.forEach(g=>{g.style.animationPlayState="running";}));},seek(g){let Z=Math.min(1,Math.max(0,g));B=Z,b=true,z.forEach((Ce,xe)=>{Ce.classList.remove(a),Ce.style.strokeDashoffset=A==="reverse"?`${I[xe]*Z}`:`${I[xe]*(1-Z)}`,m&&(Ce.style.opacity=A==="reverse"?`${1-Z}`:`${Z}`);});},getProgress(){return U()},refresh(){z.forEach((g,Z)=>{I[Z]=Ue(g),g.style.setProperty("--ssd-len",String(I[Z])),g.style.strokeDasharray=`${I[Z]}`;});}}}if(an())return pt(ln());function cn(){let o=Math.max(1,ge),a=0,y=0,Q=false;function Le(b){let B=true;if(v){let U=Math.min(1,Math.max(0,b/o)),g=V(U);Te=g,e.style.setProperty("--scroll-draw-progress",String(g)),e.style.clipPath=Ve(A==="reverse"?1-g:g),H?.(g),U<1&&(B=false);}else z.forEach((U,g)=>{let Z=g*D*o,Ce=Math.min(1,Math.max(0,(b-Z)/o)),xe=V(Ce);U.style.strokeDashoffset=A==="reverse"?`${I[g]*xe}`:`${I[g]*(1-xe)}`,m&&(U.style.opacity=A==="reverse"?`${1-xe}`:`${xe}`),Ae&&fe?U.style.stroke=Ye(Ae,fe,xe):fe&&(U.style.stroke=fe),X!==null&&ie!==null?U.style.strokeWidth=`${X+(ie-X)*xe}`:ie!==null&&(U.style.strokeWidth=`${ie}`),ae!==null&&K!==null?U.style.fillOpacity=`${ae+(K-ae)*xe}`:K!==null&&(U.style.fillOpacity=`${K}`),L&&U.tagName.toLowerCase()==="path"&&pe[g]&&U.setAttribute("d",yt(pe[g],L,xe)),g===0&&(Te=xe,H?.(xe),e.style.setProperty("--scroll-draw-progress",String(xe))),Ce<1&&(B=false);});if(w){let U=Math.min(1,Math.max(0,b/o)),g=V(U);for(let Z in w){let Ce=parseFloat(Z);g>=Ce&&!We.has(Ce)&&(We.add(Ce),w[Z]?.());}}return B}function Ie(b){if(j)return;let B=b-a;q||(q=true,$?.());let U=Le(B);if(U&&!_){_=true,Le(o*(1+Math.max(0,z.length-1)*D)),f?.(),_e<(E==="infinite"?1/0:E??0)&&(_e++,Be=setTimeout(()=>{a=performance.now(),q=false,_=false,We.clear(),ot(),C=requestAnimationFrame(Ie);},oe));return}U||(C=requestAnimationFrame(Ie));}function Oe(){cancelAnimationFrame(C),clearTimeout(Be),a=performance.now(),y=0,j=false,q=false,_=false,_e=0,Q=true,Te=0,We.clear(),ot(),C=requestAnimationFrame(Ie);}let S=new IntersectionObserver(b=>{b.forEach(B=>{B.isIntersecting&&!(ne&&_)?Oe():!B.isIntersecting&&!ne&&!_&&(cancelAnimationFrame(C),clearTimeout(Be),Q=false);});},{root:Ee??null,threshold:x,rootMargin:M}),F;function de(){clearTimeout(F),F=setTimeout(()=>{z.forEach((b,B)=>{I[B]=Ue(b),b.style.strokeDasharray=`${I[B]}`;});},150);}return window.addEventListener("resize",de),window.addEventListener("orientationchange",de),Y>0?setTimeout(()=>S.observe(e),Y):S.observe(e),{destroy(){cancelAnimationFrame(C),clearTimeout(Be),S.disconnect(),window.removeEventListener("resize",de),window.removeEventListener("orientationchange",de),clearTimeout(F);},replay(){_e=0,Oe();},pause(){j||!Q||(j=true,y=performance.now()-a,cancelAnimationFrame(C));},resume(){j&&(j=false,Q=true,a=performance.now()-y,C=requestAnimationFrame(Ie));},seek(b){let B=Math.min(1,Math.max(0,b));Te=B,j=true,y=B*o,a=performance.now()-y,cancelAnimationFrame(C),Le(y);},getProgress(){return Te},refresh(){clearTimeout(F),z.forEach((b,B)=>{I[B]=Ue(b),b.style.strokeDasharray=`${I[B]}`;});}}}if(ve)return pt(cn());Ct();function Pt(){if(j||!je)return;let o=performance.now(),a=rt();if(!qe&&O===false&&a===xt){dt(a);return}qe=false,xt=a;let y=u;if(O!==false){let S=o-Mt,F=S>0?Math.abs(a-(nt<0?a:nt))/S:0;y=u*Math.max(.2,1+F*(typeof O=="number"?O:1)*.04);}nt=a,Mt=o;let Q=re?le===-1||a>=le?"forward":"reverse":A;le=a;let Le=Se-J,Ie=true,Oe=Le===0?0:(a-J)/Le;if(isNaN(Ge)||(Ge<=0&&Oe>0?p?.():Ge>0&&Oe<=0&&Me?.(),Ge<1&&Oe>=1?R?.():Ge>=1&&Oe<1&&W?.()),Ge=Oe,v){let S=V(te(a,J,Se,y));ne&&!re&&(he=Math.max(he,S),S=he),Te=S,e.style.setProperty("--scroll-draw-progress",String(S));let F=Q==="reverse"?1-S:S;e.style.clipPath=Ve(F),H?.(S),!q&&te(a,J,Se,y)>0&&(q=true,$?.()),S>=1&&!_?(_=true,f?.(),_e<(E==="infinite"?1/0:E??0)&&(_e++,Be=setTimeout(()=>{he=-1,q=false,_=false,e.style.clipPath=Ve(0);},oe))):S<1&&!ne&&(_=false),dt(a);return}if(z.forEach((S,F)=>{let de=F*c*Le,b=V(te(a,J+de,Se+de,y));ne&&!re&&(b=ze[F]=Math.max(ze[F]??he,b)),S.style.strokeDashoffset=Q==="reverse"?`${I[F]*b}`:`${I[F]*(1-b)}`,m&&(S.style.opacity=Q==="reverse"?`${1-b}`:`${b}`),Ae&&fe?S.style.stroke=Ye(Ae,fe,b):fe&&(S.style.stroke=fe),X!==null&&ie!==null?S.style.strokeWidth=`${X+(ie-X)*b}`:ie!==null&&(S.style.strokeWidth=`${ie}`),ae!==null&&K!==null?S.style.fillOpacity=`${ae+(K-ae)*b}`:K!==null&&(S.style.fillOpacity=`${K}`),L&&S.tagName.toLowerCase()==="path"&&pe[F]&&S.setAttribute("d",yt(pe[F],L,b)),F===0&&(Te=b,H?.(b),e.style.setProperty("--scroll-draw-progress",String(b))),b<1&&(Ie=false);}),w){let S=V(te(a,J,Se,y));for(let F in w){let de=parseFloat(F);S>=de&&!We.has(de)&&(We.add(de),w[F]?.());}}!q&&te(a,J,Se,y)>0&&(q=true,$?.()),Ie&&!_?(_=true,f?.(),_e<(E==="infinite"?1/0:E??0)&&(_e++,Be=setTimeout(()=>{he=-1,ze=[],q=false,_=false,We.clear(),ot(),qe=true;},oe))):!Ie&&!ne&&(_=false),dt(a);}function Ot(o){return o>=Se&&o<h}function dt(o){ee||Ot(o)?C=requestAnimationFrame(Pt):je=false;}let je=false;function st(){je||(je=true,C=requestAnimationFrame(function(){Pt();}));}function it(){je=false,cancelAnimationFrame(C);}let gt=new IntersectionObserver(o=>{o.forEach(a=>{ee=a.isIntersecting,ee&&!j?(qe=true,st()):je&&!j&&Ot(rt())||it();});},{root:Ee??null,threshold:x,rootMargin:M});function kt(){z.forEach((o,a)=>{I[a]=Ue(o),o.style.strokeDasharray=`${I[a]}`;}),Ct(),qe=true;}let at;function Xe(){clearTimeout(at),at=setTimeout(kt,150);}window.addEventListener("resize",Xe),window.addEventListener("orientationchange",Xe);let un=Fe([e],Xe);return Y>0?setTimeout(()=>gt.observe(e),Y):gt.observe(e),pt({destroy(){cancelAnimationFrame(C),clearTimeout(Be),it(),gt.disconnect(),un(),window.removeEventListener("resize",Xe),window.removeEventListener("orientationchange",Xe),clearTimeout(at),Tt();},replay(){he=-1,ze=[],le=-1,nt=-1,q=false,_=false,_e=0,j=false,Te=0,We.clear(),clearTimeout(Be),ot(),qe=true,ee&&st();},pause(){j=true,it();},resume(){j&&(j=false,qe=true,ee&&st());},seek(o){let a=Math.min(1,Math.max(0,o));Te=a,he=a,ze=[],j=true,it(),sn(a,A),qe=true;},getProgress(){return Te},refresh(){clearTimeout(at),kt(),ee&&!j&&st();}},()=>({tStart:J,tEnd:Se}))}var jt=new WeakMap,Tn=0;function Ut(e){return JSON.stringify(e,(r,n)=>{if(typeof n=="function")return "\u0192";if(typeof Element<"u"&&n instanceof Element){let t=jt.get(n);return t===void 0&&jt.set(n,t=++Tn),`el#${t}`}return n})}function Yt(e,r){let n={...e};for(let t of Object.keys(n))typeof n[t]=="function"&&(n[t]=(...s)=>r()[t]?.(...s));return n}function xn(e){return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")}function Xt(e){let r=[],n=/([\w]+)\(([^)]*)\)/g,t;for(;(t=n.exec(e))!==null;){let s=[],i=[],l=t[2].trim();if(l)for(let u of l.split(/[\s,]+/)){let m=u.match(/^([-+]?[\d.eE]+)(.*)$/);s.push(m?parseFloat(m[1]):0),i.push(m?m[2]:"");}r.push({fn:t[1],nums:s,units:i});}return r}function Mn(e,r,n){let t=Xt(e),s=Xt(r);return t.length===0||t.length!==s.length?n<1?e:r:t.map((i,l)=>{let u=s[l];return i.fn!==u.fn||i.nums.length!==u.nums.length?n<1?`${i.fn}(${i.nums.map((m,d)=>`${m}${i.units[d]}`).join(", ")})`:`${u.fn}(${u.nums.map((m,d)=>`${m}${u.units[d]}`).join(", ")})`:`${i.fn}(${i.nums.map((m,d)=>`${m+(u.nums[d]-m)*n}${i.units[d]}`).join(", ")})`}).join(" ")}function Kt(e,r,n){if(typeof e=="number"&&typeof r=="number")return String(e+(r-e)*n);let t=String(e),s=String(r);if(xn(t))return Ye(t,s,n);if(t.includes("("))return Mn(t,s,n);let i=t.match(/^([-+]?[\d.]+)(.*)$/),l=s.match(/^([-+]?[\d.]+)(.*)$/);if(i&&l){let u=parseFloat(i[1]),m=parseFloat(l[1]);return `${u+(m-u)*n}${i[2]||l[2]}`}return n<1?t:s}function An(e){return e.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}var Ln=new Set(["opacity","transform","background-color","color","filter","scale","translate","rotate"]),Cn=0,Qt="--scroll-draw-progress";function $n(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()")}function bt(e,r){let n={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};if(typeof window>"u")return n;let{props:t,trigger:s={},easing:i="ease-out",speed:l=1,once:u=false,axis:m="y",scrollContainer:d,native:T=true,velocityScale:D=false,respectReducedMotion:A=true,triggerElement:ne,onProgress:Pe,onComplete:G,onEnter:ue,onLeave:re,onEnterBack:Y,onLeaveBack:N}=r,P=A&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,k=typeof i=="function"?i:ce[i]??ce["ease-out"],w=be(s.start??"top bottom"),O=be(s.end??"bottom top"),x=ne??e,M=typeof d=="string"?document.querySelector(d):d??null,E=Object.entries(t).map(([c,h])=>({prop:An(c),from:Array.isArray(h)?h[0]:"",to:Array.isArray(h)?h[1]:h}));function oe(){let c=window.getComputedStyle(e);for(let h of E)h.from===""&&(h.from=c.getPropertyValue(h.prop).trim()||"0");}function L(){for(let c of E)e.style.setProperty(c.prop,String(c.to));}let se=new Map;for(let c of [...E.map(h=>h.prop),Qt])se.set(c,e.style.getPropertyValue(c));function ve(){for(let[c,h]of se)h?e.style.setProperty(c,h):e.style.removeProperty(c);}if(P)return L(),G?.(),{...n,destroy:ve,getProgress:()=>1};oe();let ge=typeof i=="string"?ct(i):null;function ye(){if(!T||!$n()||!ge||m!=="y"||M||x!==e||u||l!==1||Pe||G||ue||re||Y||N||D!==false||(s.start??"top bottom").trim()!=="top bottom"||(s.end??"bottom top").trim()!=="bottom top")return false;for(let c of E)if(!Ln.has(c.prop))return false;return true}function H(){let c=`ssd-a-${++Cn}`,h=E.map(le=>`${le.prop}:${le.from}`).join(";"),_=E.map(le=>`${le.prop}:${le.to}`).join(";"),q=document.createElement("style");q.setAttribute("data-ssd-animate",""),q.textContent=`@keyframes ${c}{from{${h}}to{${_}}}.${c}{animation-name:${c};animation-duration:auto;animation-timing-function:${ge};animation-fill-mode:both;animation-timeline:view();animation-range:cover 0% cover 100%;}`,document.head.appendChild(q),e.classList.add(c);let C=()=>m==="x"?window.scrollX:window.scrollY,ee=()=>m==="x"?window.innerWidth:window.innerHeight,he=()=>{let le=e.getBoundingClientRect();return $e({top:le.top,height:le.height},C(),ee(),w,O)};ke(e,{type:"animate",getProgress:()=>ze.getProgress(),getTrigger:he});let ze={refresh(){},destroy(){e.classList.remove(c),q.remove(),e.style.animationPlayState="",ve(),Re(e);},replay(){e.classList.remove(c),e.offsetWidth,e.classList.add(c);},pause(){e.style.animationPlayState="paused";},resume(){e.style.animationPlayState="";},seek(le){let j=Math.min(1,Math.max(0,le));e.classList.remove(c);for(let Te of E)e.style.setProperty(Te.prop,Kt(Te.from,Te.to,j));},getProgress(){let{tStart:le,tEnd:j}=he();return k(te(C(),le,j,l))}};return ze}if(ye())return H();let $=0,f=0,p=0,R=false,W=false,Me=-1,v=0,V=false,me=NaN,He=-1,Ee=0,Ae=()=>M?m==="x"?M.scrollLeft:M.scrollTop:m==="x"?window.scrollX:window.scrollY,fe=()=>M?m==="x"?M.clientWidth:M.clientHeight:m==="x"?window.innerWidth:window.innerHeight,X=x===e?E:[],ie=false;function ae(){let c=e.style,h=X.map(ee=>c.getPropertyValue(ee.prop)),_=c.transition;X.length&&(c.transition="none"),X.forEach(ee=>c.setProperty(ee.prop,se.get(ee.prop)??""));let q=lt(x,M,m);X.forEach((ee,he)=>c.setProperty(ee.prop,h[he])),X.length&&(e.offsetWidth,c.transition=_);let C=$e(q,q.scroll,fe(),w,O);ie&&Math.abs(C.tStart-$)<1&&Math.abs(C.tEnd-f)<1||(ie=true,$=C.tStart,f=C.tEnd);}function K(c){e.style.setProperty(Qt,String(c));for(let h of E)e.style.setProperty(h.prop,Kt(h.from,h.to,c));Pe?.(c);}function Ve(c){if(isNaN(me)){me=c;return}me<=0&&c>0?ue?.():me>0&&c<=0&&N?.(),me<1&&c>=1?re?.():me>=1&&c<1&&Y?.(),me=c;}function z(){if(!R||W)return;let c=performance.now(),h=Ae(),_=l;if(D!==false){let ee=c-Ee,he=ee>0?Math.abs(h-(He<0?h:He))/ee:0;_=l*Math.max(.2,1+he*(typeof D=="number"?D:1)*.04);}He=h,Ee=c;let q=f===$?0:(h-$)/(f-$);Ve(q);let C=k(te(h,$,f,_));u&&(Me=Math.max(Me,C),C=Me),v=C,K(C),C>=1&&!V?(V=true,G?.()):C<1&&!u&&(V=false),p=requestAnimationFrame(z);}ae(),f===$&&we("scrollAnimate: the trigger window has zero length (start and end resolve to the same scroll position), so this element will never animate. If the target is inside a position:sticky stage, measure the trigger from the container that holds the scroll room via `triggerElement`.",e);{let c=k(te(Ae(),$,f,l));u&&c>0&&(Me=c),v=c,K(c);}let I=new IntersectionObserver(c=>{c.forEach(h=>{R=h.isIntersecting,R&&!W?p=requestAnimationFrame(z):cancelAnimationFrame(p);});},{root:M??null}),pe;function J(){clearTimeout(pe),pe=setTimeout(ae,150);}window.addEventListener("resize",J),window.addEventListener("orientationchange",J);let Se=Fe([x],J);return I.observe(e),ke(e,{type:"animate",getProgress:()=>v,getTrigger:()=>({tStart:$,tEnd:f})}),{destroy(){cancelAnimationFrame(p),I.disconnect(),window.removeEventListener("resize",J),window.removeEventListener("orientationchange",J),Se(),clearTimeout(pe),ve(),Re(e);},replay(){Me=-1,V=false,v=0,W=false,K(0);},pause(){W=true,cancelAnimationFrame(p);},resume(){W&&(W=false,R&&(p=requestAnimationFrame(z)));},seek(c){let h=Math.min(1,Math.max(0,c));v=h,Me=h,W=true,cancelAnimationFrame(p),K(h);},getProgress(){return v},refresh(){ae();}}}var wt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function vt(e,r){if(typeof window>"u")return wt;let n=typeof e=="string"?document.querySelector(e):e;if(!n)return we("scrollCounter: element not found:",e),wt;let t=n,{from:s=0,to:i,format:l,easing:u="ease-out",trigger:m={},once:d=true,decimals:T,onComplete:D}=r,A=T!==void 0?f=>f.toFixed(T):l??(f=>String(Math.round(f))),ne=typeof u=="function"?u:ce[u]??ce["ease-out"],Pe=be(m.start??"top 80%"),G=be(m.end??"top 20%");if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return t.textContent=A(i),D?.(),wt;let re=0,Y=0,N=false,P=0,k=false,w=false,O=-1,x=0,M=false,E=()=>window.scrollY,oe=()=>window.innerHeight;function L(){let f=t.getBoundingClientRect(),p=$e({top:f.top,height:f.height},E(),oe(),Pe,G);N&&Math.abs(p.tStart-re)<1&&Math.abs(p.tEnd-Y)<1||(N=true,re=p.tStart,Y=p.tEnd);}function se(f){t.textContent=A(s+(i-s)*f),t.style.setProperty("--scroll-draw-progress",String(f));}function ve(){if(!k||w)return;let f=ne(te(E(),re,Y,1));d&&(O=Math.max(O,f),f=O),x=f,se(f),f>=1&&!M?(M=true,D?.()):f<1&&!d&&(M=false),P=requestAnimationFrame(ve);}L();{let f=ne(te(E(),re,Y,1));d&&f>0&&(O=f),x=f,se(f);}let ge=new IntersectionObserver(f=>{f.forEach(p=>{k=p.isIntersecting,k&&!w?P=requestAnimationFrame(ve):cancelAnimationFrame(P);});}),ye;function H(){clearTimeout(ye),ye=setTimeout(L,150);}window.addEventListener("resize",H),window.addEventListener("orientationchange",H);let $=Fe([t],H);return ge.observe(t),ke(t,{type:"counter",getProgress:()=>x,getTrigger:()=>({tStart:re,tEnd:Y})}),{destroy(){cancelAnimationFrame(P),ge.disconnect(),window.removeEventListener("resize",H),window.removeEventListener("orientationchange",H),$(),clearTimeout(ye),Re(t);},replay(){O=-1,M=false,x=0,w=false,se(0);},pause(){w=true,cancelAnimationFrame(P);},resume(){w&&(w=false,k&&(P=requestAnimationFrame(ve)));},seek(f){let p=Math.min(1,Math.max(0,f));x=p,O=p,w=true,cancelAnimationFrame(P),se(p);},getProgress(){return x}}}var Zt={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function Et(e,r={}){if(typeof window>"u")return Zt;let n=typeof e=="string"?document.querySelector(e):e;if(!n||n.tagName.toLowerCase()!=="video")return we("scrollVideo: <video> element not found:",e),Zt;let t=n,{trigger:s={},easing:i="linear",once:l=false,axis:u="y",preload:m="auto",triggerElement:d,onReady:T,onComplete:D,onProgress:A}=r,ne=d??t,Pe=window.matchMedia("(prefers-reduced-motion: reduce)").matches,G=typeof i=="function"?i:ce[i]??ce.linear,ue=be(s.start??"top top"),re=be(s.end??"bottom top");t.pause(),t.hasAttribute("preload")||(t.preload=m);let Y=r.from??0,N=r.to,P=0,k=0,w=0,O=false,x=false,M=-1,E=0,oe=false,L=false,se=()=>u==="x"?window.scrollX:window.scrollY,ve=()=>u==="x"?window.innerWidth:window.innerHeight;function ge(){let v=ne.getBoundingClientRect(),V=u==="x"?v.left:v.top,me=u==="x"?v.width:v.height,He=$e({top:V,height:me},se(),ve(),ue,re);P=He.tStart,k=He.tEnd,L&&k===P&&we("scrollVideo: zero-length trigger window, so it never scrubs. In a sticky stage, set triggerElement.",t);}let ye=NaN;function H(v){if(!L)return;let V=N??t.duration??0,me=Y+(V-Y)*v;me!==ye&&(ye=me,t.currentTime=me),t.style.setProperty("--scroll-draw-progress",String(v)),A?.(v);}function $(){if(!O||x||!L||Pe)return;let v=G(te(se(),P,k,1));l&&(M=Math.max(M,v),v=M),E=v,H(v),v>=1&&!oe?(oe=true,D?.()):v<1&&!l&&(oe=false),w=requestAnimationFrame($);}function f(){if(L=true,N===void 0&&(N=t.duration),Pe){H(1),T?.();return}ge(),T?.(),O&&!x&&(w=requestAnimationFrame($));}t.readyState>=1?f():t.addEventListener("loadedmetadata",f,{once:true}),L||ge();let p=new IntersectionObserver(v=>{v.forEach(V=>{O=V.isIntersecting,O&&!x&&L?w=requestAnimationFrame($):cancelAnimationFrame(w);});}),R;function W(){clearTimeout(R),R=setTimeout(ge,150);}window.addEventListener("resize",W),window.addEventListener("orientationchange",W);let Me=Fe([ne],W);return p.observe(t),ke(t,{type:"video",getProgress:()=>E,getTrigger:()=>({tStart:P,tEnd:k})}),{destroy(){cancelAnimationFrame(w),p.disconnect(),t.removeEventListener("loadedmetadata",f),window.removeEventListener("resize",W),window.removeEventListener("orientationchange",W),Me(),clearTimeout(R),Re(t);},replay(){M=-1,oe=false,E=0,x=false,ye=NaN,H(0);},pause(){x=true,cancelAnimationFrame(w);},resume(){x&&(x=false,O&&L&&(w=requestAnimationFrame($)));},seek(v){let V=Math.min(1,Math.max(0,v));E=V,M=V,x=true,cancelAnimationFrame(w),ye=NaN,H(V);},getProgress(){return E}}}function tn(e){let r=e.textContent??"";return e.textContent="",r.split(/(\s+)/).filter(Boolean).map(n=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),/^\s+$/.test(n)?(t.textContent=n,t.style.whiteSpace="pre"):(t.textContent=n,t.style.display="inline-block"),e.appendChild(t),/^\s+$/.test(n)?null:t}).filter(n=>n!==null)}function Pn(e){let r=e.textContent??"";return e.textContent="",r.split("").map(n=>{let t=document.createElement("span");return t.setAttribute("aria-hidden","true"),t.textContent=n,n===" "?t.style.whiteSpace="pre":t.style.display="inline-block",e.appendChild(t),n===" "?null:t}).filter(n=>n!==null)}function Jt(e){let r=tn(e),n=new Map;for(let i of r){let l=i.offsetTop;n.has(l)||n.set(l,[]),n.get(l).push(i);}let t=[],s=Array.from(n.keys()).sort((i,l)=>i-l);for(let i of s){let l=n.get(i),u=document.createElement("span");u.setAttribute("aria-hidden","true"),u.style.display="inline-block",l.forEach((m,d)=>{let T=m.nextElementSibling;u.appendChild(m),d<l.length-1&&T&&T.style.whiteSpace==="pre"&&u.appendChild(T);}),t.push(u);}return e.textContent="",t.forEach((i,l)=>{e.appendChild(i),l<t.length-1&&e.appendChild(document.createTextNode(" "));}),t}function On(e,r,n,t){if(n<=1||t===0)return e;let s=(n-1)*t,i=r*t,l=i+(1-s);return l<=i?e>=i?1:0:Math.min(1,Math.max(0,(e-i)/(l-i)))}function kn(e,r){let n=[];if(r?.y!==void 0&&n.push(`translateY(${r.y*(1-e)}px)`),r?.x!==void 0&&n.push(`translateX(${r.x*(1-e)}px)`),r?.rotate!==void 0&&n.push(`rotate(${r.rotate*(1-e)}deg)`),r?.scale!==void 0){let t=r.scale+(1-r.scale)*e;n.push(`scale(${t})`);}return n.join(" ")||""}var en={destroy:()=>{},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>0};function St(e,r={}){if(typeof window>"u")return en;let n=typeof e=="string"?document.querySelector(e):e;if(!n)return we("scrollText: element not found:",e),en;let t=n,{split:s="words",stagger:i=.04,easing:l="ease-out",from:u={opacity:0,y:24},trigger:m={},once:d=true,onComplete:T}=r,D=window.matchMedia("(prefers-reduced-motion: reduce)").matches,A=typeof l=="function"?l:ce[l]??ce["ease-out"],ne=be(m.start??"top 85%"),Pe=be(m.end??"top 40%"),G=t.innerHTML;t.setAttribute("aria-label",t.textContent??"");let ue;s==="chars"?ue=Pn(t):s==="lines"?ue=Jt(t):ue=tn(t);let re=ue.length;function Y(p,R){u?.opacity!==void 0&&(p.style.opacity=String(u.opacity+(1-u.opacity)*R));let W=kn(R,u);W&&(p.style.transform=W);}function N(p){t.style.setProperty("--scroll-draw-progress",String(p)),ue.forEach((R,W)=>{let Me=A(On(p,W,re,i));Y(R,Me);});}if(D)return N(1),T?.(),{destroy(){t.innerHTML=G,t.removeAttribute("aria-label");},replay:()=>{},pause:()=>{},resume:()=>{},seek:()=>{},getProgress:()=>1};N(0);let P=0,k=0,w=0,O=false,x=false,M=-1,E=0,oe=false,L=()=>window.scrollY,se=()=>window.innerHeight;function ve(){let p=t.getBoundingClientRect(),R=$e({top:p.top,height:p.height},L(),se(),ne,Pe);P=R.tStart,k=R.tEnd;}function ge(){if(!O||x)return;let p=te(L(),P,k,1);d&&(M=Math.max(M,p),p=M),E=p,N(p),p>=1&&!oe?(oe=true,T?.()):p<1&&!d&&(oe=false),w=requestAnimationFrame(ge);}ve();let ye=new IntersectionObserver(p=>{p.forEach(R=>{O=R.isIntersecting,O&&!x?w=requestAnimationFrame(ge):cancelAnimationFrame(w);});}),H;function $(){clearTimeout(H),H=setTimeout(()=>{if(s==="lines"){let p=E;t.innerHTML=G,t.setAttribute("aria-label",t.textContent??""),ue=Jt(t),N(p);}ve();},150);}window.addEventListener("resize",$),window.addEventListener("orientationchange",$);let f=Fe([t],$);return ye.observe(t),ke(t,{type:"text",getProgress:()=>E,getTrigger:()=>({tStart:P,tEnd:k})}),{destroy(){cancelAnimationFrame(w),ye.disconnect(),window.removeEventListener("resize",$),window.removeEventListener("orientationchange",$),f(),clearTimeout(H),t.innerHTML=G,t.removeAttribute("aria-label"),Re(t);},replay(){M=-1,oe=false,E=0,x=false,N(0);},pause(){x=true,cancelAnimationFrame(w);},resume(){x&&(x=false,O&&(w=requestAnimationFrame(ge)));},seek(p){let R=Math.min(1,Math.max(0,p));E=R,M=R,x=true,cancelAnimationFrame(w),N(R);},getProgress(){return E}}}var tt=e=>typeof e=="function"?e():vue.unref(e);function Ne(e,r,n){let t=null,s=r(),i=()=>{t?.destroy(),t=e.value?n(e.value,Yt(s,()=>s)):null;};vue.onMounted(i),vue.watch(()=>Ut(s=r()),i),vue.onUnmounted(()=>{t?.destroy(),t=null;});}function Wr(e={}){let r=vue.ref(null);return Ne(r,()=>tt(e),ht),r}var nn={preset:0,selector:0,speed:0,fade:1,easing:0,trigger:0,stagger:0,direction:0,once:1,debug:1,axis:0,scrollContainer:0,autoReverse:1,delay:0,strokeColor:0,strokeWidth:0,fillOpacity:0,clip:2,waypoints:0,velocityScale:3,threshold:0,rootMargin:0,repeat:0,repeatDelay:0,morphTo:0,onProgress:0,onStart:0,onComplete:0,onEnter:0,onLeave:0,onEnterBack:0,onLeaveBack:0,autoplay:1,duration:0,native:1},Nn=[null,Boolean,[Boolean,String],[Boolean,Number]],rn=e=>({type:e,default:void 0}),qr=vue.defineComponent({name:"ScrollDraw",props:Object.fromEntries(Object.entries(nn).map(([e,r])=>[e,r?rn(Nn[r]):null])),setup(e,{slots:r}){let n=vue.ref(null);return Ne(n,()=>{let t={};for(let s in nn){let i=e[s];i!=null&&(t[s]=i);}return t},ht),()=>vue.h("div",{ref:n},r.default?.())}});function Gr(e){let r=vue.ref(null);return Ne(r,()=>tt(e),bt),r}var jr=vue.defineComponent({name:"ScrollAnimate",props:{options:{type:Object,required:true}},setup(e,{slots:r}){let n=vue.ref(null);return Ne(n,()=>e.options,bt),()=>vue.h("div",{ref:n},r.default?.())}});function Ur(e){let r=vue.ref(null);return Ne(r,()=>tt(e),vt),r}var Yr=vue.defineComponent({name:"ScrollCounter",props:{to:{type:Number,required:true},from:{type:Number},format:{type:Function},easing:{type:[String,Function]},trigger:{type:Object},once:rn(Boolean),decimals:{type:Number},onComplete:{type:Function}},setup(e){let r=vue.ref(null);return Ne(r,()=>{let n={to:e.to};return e.from!=null&&(n.from=e.from),e.format!=null&&(n.format=e.format),e.easing!=null&&(n.easing=e.easing),e.trigger!=null&&(n.trigger=e.trigger),e.once!=null&&(n.once=e.once),e.decimals!=null&&(n.decimals=e.decimals),e.onComplete!=null&&(n.onComplete=e.onComplete),n},vt),()=>vue.h("span",{ref:r})}});function Xr(e={}){let r=vue.ref(null);return Ne(r,()=>tt(e),Et),r}var Kr=vue.defineComponent({name:"ScrollVideo",props:{src:{type:String,required:true},options:{type:Object},muted:{type:Boolean,default:true},playsInline:{type:Boolean,default:true},class:{type:String}},setup(e){let r=vue.ref(null);return Ne(r,()=>e.options??{},Et),()=>vue.h("video",{ref:r,src:e.src,muted:e.muted,playsinline:e.playsInline,preload:"auto",class:e.class})}});function Qr(e={}){let r=vue.ref(null);return Ne(r,()=>tt(e),St),r}var Zr=vue.defineComponent({name:"ScrollText",props:{options:{type:Object},tag:{type:String,default:"p"}},setup(e,{slots:r}){let n=vue.ref(null);return Ne(n,()=>e.options??{},St),()=>vue.h(e.tag,{ref:n},r.default?.())}});exports.ScrollAnimate=jr;exports.ScrollCounter=Yr;exports.ScrollDraw=qr;exports.ScrollText=Zr;exports.ScrollVideo=Kr;exports.useScrollAnimate=Gr;exports.useScrollCounter=Ur;exports.useScrollDraw=Wr;exports.useScrollText=Qr;exports.useScrollVideo=Xr;
@@ -1,8 +1,8 @@
1
1
  import * as vue from 'vue';
2
2
  import { Ref } from 'vue';
3
- import { a as ScrollDrawOptions } from '../types-B0YM4nQP.mjs';
4
- import { S as ScrollAnimateOptions } from '../engine-CvzRSkuk.mjs';
5
- import { S as ScrollCounterOptions } from '../index-BlIjovDN.mjs';
3
+ import { a as ScrollDrawOptions } from '../types-MswK0erX.mjs';
4
+ import { S as ScrollAnimateOptions } from '../engine-P8u6OK4m.mjs';
5
+ import { S as ScrollCounterOptions } from '../index-CdaBYn3A.mjs';
6
6
  import { ScrollVideoOptions } from '../video/index.mjs';
7
7
  import { ScrollTextOptions } from '../text/index.mjs';
8
8
 
@@ -1,8 +1,8 @@
1
1
  import * as vue from 'vue';
2
2
  import { Ref } from 'vue';
3
- import { a as ScrollDrawOptions } from '../types-B0YM4nQP.js';
4
- import { S as ScrollAnimateOptions } from '../engine-C9LKls__.js';
5
- import { S as ScrollCounterOptions } from '../index-DZjvLJcU.js';
3
+ import { a as ScrollDrawOptions } from '../types-MswK0erX.js';
4
+ import { S as ScrollAnimateOptions } from '../engine-DQyBzZDl.js';
5
+ import { S as ScrollCounterOptions } from '../index-D3o4vT3e.js';
6
6
  import { ScrollVideoOptions } from '../video/index.js';
7
7
  import { ScrollTextOptions } from '../text/index.js';
8
8
 
@@ -1 +1 @@
1
- export{d as ScrollAnimate,f as ScrollCounter,b as ScrollDraw,j as ScrollText,h as ScrollVideo,c as useScrollAnimate,e as useScrollCounter,a as useScrollDraw,i as useScrollText,g as useScrollVideo}from'../chunk-PKHX3HSS.mjs';import'../chunk-XSVTHCLO.mjs';import'../chunk-7SBTYJGH.mjs';import'../chunk-I45LCJUP.mjs';import'../chunk-KHQ7OGQK.mjs';import'../chunk-BFX2CSQ3.mjs';import'../chunk-WHFRS7IP.mjs';import'../chunk-OJFWQ6CU.mjs';import'../chunk-YWKPTYSG.mjs';import'../chunk-YZV4Z3EQ.mjs';import'../chunk-A4JCC3QQ.mjs';import'../chunk-DM6EDKWH.mjs';import'../chunk-4DOJSIEQ.mjs';import'../chunk-BCV4RAIX.mjs';import'../chunk-LFSU6LR3.mjs';
1
+ export{d as ScrollAnimate,f as ScrollCounter,b as ScrollDraw,j as ScrollText,h as ScrollVideo,c as useScrollAnimate,e as useScrollCounter,a as useScrollDraw,i as useScrollText,g as useScrollVideo}from'../chunk-VVFGB4RT.mjs';import'../chunk-XSVTHCLO.mjs';import'../chunk-7SBTYJGH.mjs';import'../chunk-I45LCJUP.mjs';import'../chunk-KHQ7OGQK.mjs';import'../chunk-BFX2CSQ3.mjs';import'../chunk-LQBXJRFY.mjs';import'../chunk-OJFWQ6CU.mjs';import'../chunk-YWKPTYSG.mjs';import'../chunk-YZV4Z3EQ.mjs';import'../chunk-A4JCC3QQ.mjs';import'../chunk-DM6EDKWH.mjs';import'../chunk-4DOJSIEQ.mjs';import'../chunk-BCV4RAIX.mjs';import'../chunk-LFSU6LR3.mjs';