@vanelsas/baredom 2.8.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +1 -1
  3. package/custom-elements.json +467 -0
  4. package/dist/baredom.d.ts +25 -0
  5. package/dist/base.js +541 -452
  6. package/dist/integrity.json +103 -97
  7. package/dist/x-alert.js +16 -17
  8. package/dist/x-avatar-group.js +9 -9
  9. package/dist/x-avatar.js +14 -15
  10. package/dist/x-badge.js +9 -9
  11. package/dist/x-bento-grid.js +5 -5
  12. package/dist/x-bento-item.js +4 -4
  13. package/dist/x-breadcrumbs.js +13 -13
  14. package/dist/x-button.js +1 -16
  15. package/dist/x-cancel-dialogue.js +13 -13
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +31 -31
  18. package/dist/x-chart.js +47 -47
  19. package/dist/x-checkbox.js +1 -11
  20. package/dist/x-chip.js +1 -1
  21. package/dist/x-collapse.js +10 -10
  22. package/dist/x-color-picker.js +45 -44
  23. package/dist/x-combobox.js +26 -26
  24. package/dist/x-command-palette.js +24 -24
  25. package/dist/x-confetti.d.ts +50 -0
  26. package/dist/x-confetti.js +25 -0
  27. package/dist/x-container.js +5 -4
  28. package/dist/x-context-menu.js +20 -20
  29. package/dist/x-copy.js +20 -20
  30. package/dist/x-currency-field.js +23 -23
  31. package/dist/x-date-picker.js +40 -40
  32. package/dist/x-divider.js +9 -9
  33. package/dist/x-drawer.js +9 -9
  34. package/dist/x-dropdown.js +11 -11
  35. package/dist/x-fieldset.js +5 -5
  36. package/dist/x-file-download.js +7 -7
  37. package/dist/x-file-upload.js +22 -22
  38. package/dist/x-form-field.js +15 -15
  39. package/dist/x-form.js +9 -9
  40. package/dist/x-gaussian-blur.js +12 -12
  41. package/dist/x-grid.js +7 -6
  42. package/dist/x-i18n-provider.js +7 -7
  43. package/dist/x-i18n.js +4 -4
  44. package/dist/x-icon.js +6 -6
  45. package/dist/x-image.js +16 -17
  46. package/dist/x-kbd.d.ts +17 -0
  47. package/dist/x-kbd.js +17 -0
  48. package/dist/x-kinetic-canvas.js +25 -25
  49. package/dist/x-kinetic-font.js +27 -27
  50. package/dist/x-kinetic-typography.js +33 -33
  51. package/dist/x-liquid-dock.js +38 -39
  52. package/dist/x-liquid-fill.js +44 -44
  53. package/dist/x-liquid-glass.js +47 -47
  54. package/dist/x-menu-item.js +8 -8
  55. package/dist/x-menu.js +10 -9
  56. package/dist/x-metaball-cursor.js +26 -27
  57. package/dist/x-modal.js +10 -10
  58. package/dist/x-morph-stack.js +36 -37
  59. package/dist/x-multi-combobox.js +36 -36
  60. package/dist/x-navbar.js +12 -12
  61. package/dist/x-neural-glow.js +32 -32
  62. package/dist/x-notification-center.js +9 -9
  63. package/dist/x-organic-divider.js +17 -17
  64. package/dist/x-organic-progress.js +37 -37
  65. package/dist/x-organic-shape.js +13 -13
  66. package/dist/x-otp-input.d.ts +55 -0
  67. package/dist/x-otp-input.js +23 -0
  68. package/dist/x-pagination.js +15 -15
  69. package/dist/x-particle-button.js +51 -51
  70. package/dist/x-popover.js +25 -26
  71. package/dist/x-progress-circle.js +8 -8
  72. package/dist/x-progress.js +10 -10
  73. package/dist/x-proximity-list.d.ts +43 -0
  74. package/dist/x-proximity-list.js +21 -0
  75. package/dist/x-radio.js +11 -11
  76. package/dist/x-ripple-effect.js +10 -10
  77. package/dist/x-scroll-parallax.js +18 -18
  78. package/dist/x-scroll-stack.js +17 -17
  79. package/dist/x-scroll-story.js +34 -34
  80. package/dist/x-scroll-timeline.js +45 -45
  81. package/dist/x-scroll.js +38 -38
  82. package/dist/x-search-field.js +1 -15
  83. package/dist/x-select.js +1 -11
  84. package/dist/x-sidebar.js +15 -15
  85. package/dist/x-skeleton-group.js +12 -12
  86. package/dist/x-skeleton.js +1 -1
  87. package/dist/x-slider.js +15 -15
  88. package/dist/x-soft-body.js +22 -22
  89. package/dist/x-spacer.js +4 -4
  90. package/dist/x-spinner.js +4 -4
  91. package/dist/x-splash.js +12 -12
  92. package/dist/x-spotlight-card.d.ts +19 -0
  93. package/dist/x-spotlight-card.js +13 -0
  94. package/dist/x-stat.js +10 -10
  95. package/dist/x-stepper.js +14 -14
  96. package/dist/x-switch.js +10 -10
  97. package/dist/x-tab.js +7 -7
  98. package/dist/x-table-cell.js +18 -18
  99. package/dist/x-table-row.js +8 -8
  100. package/dist/x-table.js +12 -12
  101. package/dist/x-tabs.js +11 -11
  102. package/dist/x-text-area.js +19 -19
  103. package/dist/x-theme.js +25 -25
  104. package/dist/x-timeline-item.js +20 -21
  105. package/dist/x-timeline.js +8 -8
  106. package/dist/x-toast.js +21 -22
  107. package/dist/x-toaster.js +8 -8
  108. package/dist/x-tooltip.js +12 -12
  109. package/dist/x-trace-history.d.ts +242 -0
  110. package/dist/x-trace-history.js +118 -0
  111. package/dist/x-typography.js +9 -9
  112. package/dist/x-welcome-tour.js +60 -59
  113. package/package.json +32 -2
@@ -1,35 +1,35 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var B8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Hi.i(0,$APP.Ii.i(1,a))):.5},C8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Hi.i(.1,$APP.Ii.i(.9,a))):.5},D8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Hi.i(1,$APP.Ii.i(1E3,a))):50},xba=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,f=-1;;){if(d>=c)return e>=0?e:f;var h=$APP.wc(a,d),l=$APP.J(h);h=$APP.C(l,
3
- $APP.Bj);l=$APP.C(l,$APP.Rl);e=h<=b&&l>b?d:e;f=h<=b?d:f;d+=1}},F8=function(a){var b=$APP.k(a,"__xScrollStoryRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("slot"),m=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:300ms;--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100dvh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
- d.setAttribute("part","container");d.setAttribute("role","region");e.setAttribute("part","media");h.setAttribute("name","media");var q=document.createElement("div");q.setAttribute("part","indicator");e.appendChild(q);e.appendChild(h);f.setAttribute("part","steps");f.appendChild(l);d.appendChild(e);d.appendChild(f);m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);a.__xScrollStoryRefs=new $APP.N(null,
5
- 6,[$APP.Uh,b,$APP.Vh,d,E8,e,$APP.Rn,f,$APP.tk,l,$APP.Oj,m],null);return $APP.k(a,"__xScrollStoryRefs")},I8=function(a){a=$APP.Lf([$APP.Ch,$APP.gl,$APP.An,$APP.lj,$APP.ym,$APP.Zj,$APP.mk,$APP.yn,G8],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);
6
- var b=$APP.J(a);a=$APP.C(b,$APP.mk);var c=$APP.C(b,$APP.yn),d=$APP.C(b,G8),e=$APP.C(b,$APP.Ch),f=$APP.C(b,$APP.gl),h=$APP.C(b,$APP.An),l=$APP.C(b,$APP.lj),m=$APP.C(b,$APP.ym);b=$APP.C(b,$APP.Zj);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.Zc(yba,m)?m:"left";return $APP.Lf([$APP.yl,$APP.Jj,$APP.ln,H8,$APP.X,$APP.Sj,$APP.Y,$APP.hl,$APP.Vj],[m,c!=null,B8(l),C8(d),$APP.n(e)?e:"",b!=null,a!=null,D8(f),h!=null])},J8=function(a){a=F8(a);a=$APP.J(a);return $APP.C(a,$APP.tk).assignedElements()},
7
- K8=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},L8=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.M(a,"")?a:null},M8=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},zba=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.M(d,c)){d>=0&&d<b.length&&b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?a.setAttribute("data-active-index",
8
- ""+$APP.Q.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?L8(b[d]):null;b=c>=0&&c<b.length?L8(b[c]):null;$APP.P(a,"x-scroll-story-step-change",$APP.Xi(new $APP.N(null,4,[$APP.qj,c,$APP.Lm,b,$APP.kl,d,$APP.so,e],null)));a=$APP.J($APP.k(a,"__xScrollStoryRefs"));a=$APP.C(a,$APP.Oj);M8(a,"Step "+$APP.Q.g(c+1)+" active")}},Aba=function(a,b,c,d){var e=b.length;var f=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(f)?$APP.B.i(f.length,e):f)){for(var h=
9
- Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(f)?l<f.length:f)?f[l]:!1,l+=1;else break;f=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.wc(c,h);l=$APP.J(l);var m=$APP.C(l,$APP.Bj),q=$APP.C(l,$APP.Rl),r=f[h];l=m<=d&&q>d;var v=L8(b[h]),x=m;m=q-m;m=m<=0?0:$APP.Hi.i(0,$APP.Ii.i(1,(d-x)/m));$APP.p(r)&&l?(f[h]=!0,$APP.P(a,"x-scroll-story-step-enter",$APP.Xi(new $APP.N(null,3,[$APP.qj,h,$APP.Lm,v,$APP.vn,m],null)))):$APP.n($APP.n(r)?!l:r)&&(f[h]=!1,$APP.P(a,"x-scroll-story-step-leave",
10
- $APP.Xi(new $APP.N(null,3,[$APP.qj,h,$APP.Lm,v,$APP.vn,m],null))))}h+=1}else break},N8=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:I8(a)}();if(!$APP.n($APP.Y.g(b))){var c=J8(a),d=c.length,e=window.innerHeight,f=e*$APP.ln.g(b),h=function(){for(var m=0,q=$APP.pe;;){if(m>=d)return q;var r=c[m].getBoundingClientRect();m+=1;q=$APP.ud.i(q,new $APP.N(null,2,[$APP.Bj,r.top,$APP.Rl,r.top+r.height],null))}}();b=xba(h,f);var l=$APP.J($APP.k(a,"__xScrollStoryRefs"));
11
- l=$APP.C(l,$APP.Rn).getBoundingClientRect();e=$APP.Hi.i(0,$APP.Ii.i(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");zba(a,c,b);Aba(a,c,h,f);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,f=b>=0&&b<d?L8(c[b]):null,$APP.P(a,"x-scroll-story-progress",$APP.Xi(new $APP.N(null,3,[$APP.vn,e,$APP.Al,b,$APP.Ym,f],null)))}a.__xScrollStoryRAF=null},O8=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?
12
- $APP.p($APP.k(a,"__xScrollStoryAutoplayPaused")):l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.Vj.g(e);return $APP.n(l)?$APP.p($APP.Y.g(e)):l}return e}())){var f=$APP.k(a,"__xScrollStoryAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(f>0){var h=window.scrollY;window.scrollBy(0,$APP.hl.g(e)*f);$APP.n(function(){var l=$APP.Jj.g(e);return $APP.n(l)?window.scrollY-h<.5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,
13
- c),a.__xScrollStoryAutoplayLast=null)}return $APP.fa(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},P8=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,
14
- "__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?L8(d[c]):null;return $APP.P(a,"x-scroll-story-autoplay-pause",$APP.Xi(new $APP.N(null,3,[$APP.vn,b,$APP.Al,c,$APP.Ym,d],null)))},Q8=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.fa(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(O8(a)));var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");
15
- return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?L8(d[c]):null;return $APP.P(a,"x-scroll-story-autoplay-resume",$APP.Xi(new $APP.N(null,3,[$APP.vn,b,$APP.Al,c,$APP.Ym,d],null)))}return null},R8=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",
16
- $APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},S8=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==null){var b=$APP.k(a,
17
- "__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Vj.g(b);return $APP.n(l)?(l=$APP.p($APP.Y.g(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!K8():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return P8(a)},d=function(){return Q8(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?Q8(a):null},f=function(l){return $APP.B.i(l.code,"Space")?(l.preventDefault(),P8(a)):
18
- null},h=function(l){return $APP.B.i(l.code,"Space")?Q8(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.fa(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});$APP.fa(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(O8(a)))}}return null},T8=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.Y.g(a):a},
19
- Bba=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.p(T8(a))&&!K8():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.fa(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return N8(a)})):null},U8=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},V8=function(a){a=$APP.k(a,
20
- "__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},Cba=function(a,b){b=b[0].isIntersecting;var c=$APP.J($APP.k(a,"__xScrollStoryRefs"));c=$APP.C(c,$APP.Oj);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(T8(a)))return null;U8(a);N8(a);M8(c,"Story section entered viewport");$APP.P(a,"x-scroll-story-enter",$APP.Xi(new $APP.N(null,1,[$APP.vn,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?
21
- d:0}()],null)));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Vj.g(b):b)?S8(a):null}V8(a);R8(a);if($APP.n(T8(a)))return null;M8(c,"Story section left viewport");return $APP.P(a,"x-scroll-story-leave",$APP.Xi(new $APP.N(null,1,[$APP.vn,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null)))},Dba=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,N8(a)):null}function c(){a.__xScrollStoryStepStates=
22
- null;return $APP.n($APP.k(a,"__xScrollStoryVisible"))?N8(a):null}var d=F8(a);d=$APP.J(d);$APP.C(d,$APP.tk).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.fa(a,"__xScrollStoryHandlers",{scroll:function(){return Bba(a)},slot:c,resize:b,scrollAttached:!1})},W8=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){V8(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.tk.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,
23
- "resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},Eba=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return Cba(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},X8=function(a){a=J8(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},Y8=function(a){var b=I8(a);
24
- if($APP.M($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.J(b),d=$APP.C(c,$APP.yl),e=$APP.C(c,H8);b=$APP.C(c,$APP.Y);var f=$APP.C(c,$APP.X),h=F8(a),l=$APP.J(h);h=$APP.C(l,$APP.Vh);l=$APP.C(l,E8);a.setAttribute("data-layout",d);$APP.B.i(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.Q.g(e*100)+"%)";$APP.t(f)?h.setAttribute("aria-label",f):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(X8(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=
25
- null,V8(a),R8(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&(U8(a),N8(a));c=$APP.Vj.g(c);b=$APP.n(c)?(b=$APP.p(b))?$APP.k(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?S8(a):R8(a)}},Fba=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.Q.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return B8(this.getAttribute("threshold"))},
26
- set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.Q.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return C8(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.Q.g(b)):this.removeAttribute("split")},enumerable:!0,configurable:!0});$APP.dh(a,"disabled","disabled");Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},
27
- set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.k(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});$APP.dh(a,"autoplay","autoplay");Object.defineProperty(a,
28
- "autoplaySpeed",{get:function(){return D8(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.Q.g(b)):this.removeAttribute("autoplay-speed")},enumerable:!0,configurable:!0});$APP.dh(a,"autoplayLoop","autoplay-loop");$APP.dh(a,"autoplayIndicator","autoplay-indicator");return Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.E($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},Gba=function(a){F8(a);
29
- W8(a);Dba(a);Eba(a);Y8(a);return null},Hba=function(a){R8(a);X8(a);if($APP.n($APP.k(a,"__xScrollStoryVisible"))){var b=$APP.k(a,"__xScrollStoryLastProg");$APP.P(a,"x-scroll-story-leave",$APP.Xi(new $APP.N(null,1,[$APP.vn,$APP.n(b)?b:0],null)))}W8(a);b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),a.__xScrollStoryIO=null);a.__xScrollStoryVisible=!1;a.__xScrollStoryActiveIndex=-1;a.__xScrollStoryLastProg=null;return a.__xScrollStoryStepStates=null},Iba=function(a,b,c,d){$APP.M(c,d)&&Y8(a);
30
- return null},Z8=function(){return $APP.Yg("x-scroll-story",new $APP.N(null,5,[$APP.Pg,Jba,$APP.Qg,Gba,$APP.Rg,Hba,$APP.Sg,Iba,$APP.Wg,Fba],null))},E8=new $APP.F(null,"media","media",-1066138403),G8=new $APP.F(null,"split-raw","split-raw",-455766786),H8=new $APP.F(null,"split","split",-599435118);var Jba="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
31
- $APP.Lf([$APP.Fm,$APP.Zi,$APP.Vl,$APP.al,$APP.yl,$APP.Al,$APP.ln,$APP.Zn,H8,$APP.X,$APP.Pl,$APP.vn],[new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,
32
- [$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null)]);
33
- $APP.Yd(["x-scroll-story-step-change",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.kl,$APP.V,$APP.so,$APP.U],null),$APP.Fn,!1],null),"x-scroll-story-step-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-step-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-progress",new $APP.N(null,2,[$APP.Z,
34
- new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-story-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-autoplay-pause",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-story-autoplay-resume",new $APP.N(null,
35
- 2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null)]);var yba=new $APP.O(null,new $APP.N(null,3,["right",null,"top",null,"left",null],null),null);$APP.ca("baredom.exports.x_scroll_story.init",Z8);export const init=Z8;
2
+ var B8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Gl.j(0,$APP.Hl.j(1,a))):.5},C8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Gl.j(.1,$APP.Hl.j(.9,a))):.5},D8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Gl.j(1,$APP.Hl.j(1E3,a))):50},Vka=function(a,b){var c=$APP.y(a);if(c===0)return-1;for(var d=0,e=-1,f=-1;;){if(d>=c)return e>=0?e:f;var h=$APP.tc(a,d),l=$APP.G(h);h=$APP.C(l,
3
+ $APP.Am);l=$APP.C(l,$APP.No);e=h<=b&&l>b?d:e;f=h<=b?d:f;d+=1}},F8=function(a){var b=$APP.k(a,"__xScrollStoryRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("slot"),m=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:300ms;--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100dvh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
+ d.setAttribute("part","container");d.setAttribute("role","region");e.setAttribute("part","media");h.setAttribute("name","media");var q=document.createElement("div");q.setAttribute("part","indicator");e.appendChild(q);e.appendChild(h);f.setAttribute("part","steps");f.appendChild(l);d.appendChild(e);d.appendChild(f);m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);a.__xScrollStoryRefs=new $APP.O(null,
5
+ 6,[$APP.jj,b,$APP.kj,d,E8,e,$APP.Oq,f,$APP.un,l,$APP.Om,m],null);return $APP.k(a,"__xScrollStoryRefs")},I8=function(a){a=$APP.Wf([$APP.ui,$APP.Zn,$APP.vq,$APP.om,$APP.Dp,$APP.Zm,$APP.nn,$APP.tq,G8],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);
6
+ var b=$APP.G(a);a=$APP.C(b,$APP.nn);var c=$APP.C(b,$APP.tq),d=$APP.C(b,G8),e=$APP.C(b,$APP.ui),f=$APP.C(b,$APP.Zn),h=$APP.C(b,$APP.vq),l=$APP.C(b,$APP.om),m=$APP.C(b,$APP.Dp);b=$APP.C(b,$APP.Zm);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.$c(Wka,m)?m:"left";return $APP.Wf([$APP.to,$APP.Jm,$APP.iq,H8,$APP.Z,$APP.Tm,$APP.Bi,$APP.$n,$APP.Wm],[m,c!=null,B8(l),C8(d),$APP.n(e)?e:"",b!=null,a!=null,D8(f),h!=null])},J8=function(a){a=F8(a);a=$APP.G(a);return $APP.C(a,$APP.un).assignedElements()},
7
+ K8=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},L8=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.I(a,"")?a:null},M8=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},Xka=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.I(d,c)){d>=0&&d<b.length&&b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?$APP.S(a,"data-active-index",
8
+ ""+$APP.V.i(c)):$APP.T(a,"data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?L8(b[d]):null;b=c>=0&&c<b.length?L8(b[c]):null;$APP.Nh(a,"x-scroll-story-step-change",$APP.$l(new $APP.O(null,4,[$APP.sm,c,$APP.Pp,b,$APP.eo,d,$APP.pr,e],null)));a=$APP.G($APP.k(a,"__xScrollStoryRefs"));a=$APP.C(a,$APP.Om);M8(a,"Step "+$APP.V.i(c+1)+" active")}},Yka=function(a,b,c,d){var e=b.length;var f=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(f)?$APP.A.j(f.length,e):f)){for(var h=Array(e),
9
+ l=0;;)if(l<e)h[l]=$APP.n($APP.n(f)?l<f.length:f)?f[l]:!1,l+=1;else break;f=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.y(c)){l=$APP.tc(c,h);l=$APP.G(l);var m=$APP.C(l,$APP.Am),q=$APP.C(l,$APP.No),r=f[h];l=m<=d&&q>d;var v=L8(b[h]),x=m;m=q-m;m=m<=0?0:$APP.Gl.j(0,$APP.Hl.j(1,(d-x)/m));$APP.p(r)&&l?(f[h]=!0,$APP.Nh(a,"x-scroll-story-step-enter",$APP.$l(new $APP.O(null,3,[$APP.sm,h,$APP.Pp,v,$APP.qq,m],null)))):$APP.n($APP.n(r)?!l:r)&&(f[h]=!1,$APP.Nh(a,"x-scroll-story-step-leave",$APP.$l(new $APP.O(null,
10
+ 3,[$APP.sm,h,$APP.Pp,v,$APP.qq,m],null))))}h+=1}else break},N8=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:I8(a)}();if(!$APP.n($APP.Bi.i(b))){var c=J8(a),d=c.length,e=window.innerHeight,f=e*$APP.iq.i(b),h=function(){for(var m=0,q=$APP.ye;;){if(m>=d)return q;var r=c[m].getBoundingClientRect();m+=1;q=$APP.wd.j(q,new $APP.O(null,2,[$APP.Am,r.top,$APP.No,r.top+r.height],null))}}();b=Vka(h,f);var l=$APP.G($APP.k(a,"__xScrollStoryRefs"));l=$APP.C(l,$APP.Oq).getBoundingClientRect();
11
+ e=$APP.Gl.j(0,$APP.Hl.j(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");Xka(a,c,b);Yka(a,c,h,f);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,f=b>=0&&b<d?L8(c[b]):null,$APP.Nh(a,"x-scroll-story-progress",$APP.$l(new $APP.O(null,3,[$APP.qq,e,$APP.vo,b,$APP.Wp,f],null)))}a.__xScrollStoryRAF=null},O8=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?$APP.p($APP.k(a,"__xScrollStoryAutoplayPaused")):
12
+ l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.Wm.i(e);return $APP.n(l)?$APP.p($APP.Bi.i(e)):l}return e}())){var f=$APP.k(a,"__xScrollStoryAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(f>0){var h=window.scrollY;window.scrollBy(0,$APP.$n.i(e)*f);$APP.n(function(){var l=$APP.Jm.i(e);return $APP.n(l)?window.scrollY-h<.5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.ja(a,
13
+ "__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},P8=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);$APP.S(a,"data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;
14
+ d=c>=0&&c<d.length?L8(d[c]):null;return $APP.Nh(a,"x-scroll-story-autoplay-pause",$APP.$l(new $APP.O(null,3,[$APP.qq,b,$APP.vo,c,$APP.Wp,d],null)))},Q8=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;$APP.T(a,"data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(O8(a)));var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");
15
+ return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?L8(d[c]):null;return $APP.Nh(a,"x-scroll-story-autoplay-resume",$APP.$l(new $APP.O(null,3,[$APP.qq,b,$APP.vo,c,$APP.Wp,d],null)))}return null},R8=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),
16
+ a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);$APP.T(a,"data-autoplay-paused");$APP.T(a,"tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},S8=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==null){var b=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Wm.i(b);return $APP.n(l)?(l=
17
+ $APP.p($APP.Bi.i(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!K8():l):l:l}return b}())){$APP.S(a,"tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return P8(a)},d=function(){return Q8(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?Q8(a):null},f=function(l){return $APP.A.j(l.code,"Space")?(l.preventDefault(),P8(a)):null},h=function(l){return $APP.A.j(l.code,"Space")?Q8(a):null};a.addEventListener("pointerdown",c);
18
+ a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.ja(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(O8(a)))}}return null},T8=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.Bi.i(a):a},Zka=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),
19
+ $APP.n(b)?$APP.p(T8(a))&&!K8():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.ja(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return N8(a)})):null},U8=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},V8=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",
20
+ $APP.k(a,"scroll")),a.scrollAttached=!1)},$ka=function(a,b){b=b[0].isIntersecting;var c=$APP.G($APP.k(a,"__xScrollStoryRefs"));c=$APP.C(c,$APP.Om);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(T8(a)))return null;U8(a);N8(a);M8(c,"Story section entered viewport");$APP.Nh(a,"x-scroll-story-enter",$APP.$l(new $APP.O(null,1,[$APP.qq,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null)));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Wm.i(b):b)?S8(a):null}V8(a);
21
+ R8(a);if($APP.n(T8(a)))return null;M8(c,"Story section left viewport");return $APP.Nh(a,"x-scroll-story-leave",$APP.$l(new $APP.O(null,1,[$APP.qq,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null)))},ala=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,N8(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.k(a,"__xScrollStoryVisible"))?N8(a):null}var d=F8(a);d=$APP.G(d);$APP.C(d,$APP.un).addEventListener("slotchange",
22
+ c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStoryHandlers",{scroll:function(){return Zka(a)},slot:c,resize:b,scrollAttached:!1})},W8=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){V8(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.un.i(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=
23
+ null);a.__xScrollStoryHandlers=null},bla=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return $ka(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},X8=function(a){a=J8(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},Y8=function(a){var b=I8(a);if($APP.I($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.G(b),d=$APP.C(c,$APP.to),e=$APP.C(c,H8);b=$APP.C(c,$APP.Bi);var f=$APP.C(c,$APP.Z),h=F8(a),
24
+ l=$APP.G(h);h=$APP.C(l,$APP.kj);l=$APP.C(l,E8);$APP.S(a,"data-layout",d);$APP.A.j(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.V.i(e*100)+"%)";$APP.t(f)?h.setAttribute("aria-label",f):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(X8(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,V8(a),R8(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&(U8(a),N8(a));c=$APP.Wm.i(c);b=$APP.n(c)?(b=$APP.p(b))?$APP.k(a,"__xScrollStoryVisible"):
25
+ b:c;$APP.n(b)?S8(a):R8(a)}},cla=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.V.i(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return B8(this.getAttribute("threshold"))},set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.V.i(b)):this.removeAttribute("threshold")},
26
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return C8(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.V.i(b)):this.removeAttribute("split")},enumerable:!0,configurable:!0});$APP.Sh(a,"disabled","disabled");Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},
27
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.k(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});$APP.Sh(a,"autoplay","autoplay");Object.defineProperty(a,"autoplaySpeed",{get:function(){return D8(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?
28
+ this.setAttribute("autoplay-speed",""+$APP.V.i(b)):this.removeAttribute("autoplay-speed")},enumerable:!0,configurable:!0});$APP.Sh(a,"autoplayLoop","autoplay-loop");$APP.Sh(a,"autoplayIndicator","autoplay-indicator");return Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.D($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},dla=function(a){F8(a);W8(a);ala(a);bla(a);Y8(a);return null},ela=function(a){R8(a);X8(a);if($APP.n($APP.k(a,"__xScrollStoryVisible"))){var b=
29
+ $APP.k(a,"__xScrollStoryLastProg");$APP.Nh(a,"x-scroll-story-leave",$APP.$l(new $APP.O(null,1,[$APP.qq,$APP.n(b)?b:0],null)))}W8(a);b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),a.__xScrollStoryIO=null);a.__xScrollStoryVisible=!1;a.__xScrollStoryActiveIndex=-1;a.__xScrollStoryLastProg=null;return a.__xScrollStoryStepStates=null},fla=function(a,b,c,d){$APP.I(c,d)&&Y8(a);return null},Z8=function(){return $APP.Ah("x-scroll-story",new $APP.O(null,5,[$APP.qh,gla,$APP.oh,dla,$APP.lh,ela,$APP.kh,
30
+ fla,$APP.ph,cla],null))},E8=new $APP.F(null,"media","media",-1066138403),G8=new $APP.F(null,"split-raw","split-raw",-455766786),H8=new $APP.F(null,"split","split",-599435118);var gla="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
31
+ $APP.Wf([$APP.Kp,$APP.bm,$APP.Yo,$APP.ck,$APP.to,$APP.vo,$APP.iq,$APP.Wq,H8,$APP.Z,$APP.Lo,$APP.qq],[new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,1,[$APP.Q,$APP.Y],null),new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,1,[$APP.Q,$APP.X],null),new $APP.O(null,2,[$APP.Q,$APP.Y,$APP.Ao,!0],null),new $APP.O(null,1,[$APP.Q,$APP.Y],null),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.Ao,!0],null),new $APP.O(null,1,[$APP.Q,$APP.Y],null),new $APP.O(null,
32
+ 1,[$APP.Q,$APP.X],null),new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,2,[$APP.Q,$APP.Y,$APP.Ao,!0],null)]);
33
+ $APP.ce(["x-scroll-story-step-change",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.sm,$APP.Y,$APP.Pp,$APP.X,$APP.eo,$APP.Y,$APP.pr,$APP.X],null),$APP.Aq,!1],null),"x-scroll-story-step-enter",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.Pp,$APP.X,$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-story-step-leave",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.Pp,$APP.X,$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-story-progress",new $APP.O(null,2,[$APP.U,
34
+ new $APP.O(null,3,[$APP.qq,$APP.Y,$APP.vo,$APP.Y,$APP.Wp,$APP.X],null),$APP.Aq,!1],null),"x-scroll-story-enter",new $APP.O(null,2,[$APP.U,new $APP.O(null,1,[$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-story-leave",new $APP.O(null,2,[$APP.U,new $APP.O(null,1,[$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-story-autoplay-pause",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.qq,$APP.Y,$APP.vo,$APP.Y,$APP.Wp,$APP.X],null),$APP.Aq,!1],null),"x-scroll-story-autoplay-resume",new $APP.O(null,
35
+ 2,[$APP.U,new $APP.O(null,3,[$APP.qq,$APP.Y,$APP.vo,$APP.Y,$APP.Wp,$APP.X],null),$APP.Aq,!1],null)]);var Wka=new $APP.pg(null,new $APP.O(null,3,["right",null,"top",null,"left",null],null),null);$APP.ha("baredom.exports.x_scroll_story.init",Z8);export const init=Z8;
@@ -1,46 +1,46 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var aB=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Hi.i(0,$APP.Ii.i(1,a))):.5},bB=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Hi.i(1,$APP.Ii.i(1E3,a))):50},cB=function(a,b){switch(a){case "alternating":return $APP.od(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},dB=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,f=-1;;){if(d>=c)return e>=0?
3
- e:f;var h=$APP.wc(a,d),l=$APP.J(h);h=$APP.C(l,$APP.Bj);l=$APP.C(l,$APP.Rl);e=h<=b&&l>b?d:e;f=h<=b?d:f;d+=1}},eB=function(a,b,c){return b<=0?0:$APP.Hi.i(0,$APP.Ii.i(1,(c-a)/b))},gB=function(a,b,c){var d=$APP.z(a);if(d===0)return"";if($APP.B.i(d,1))return a=$APP.u(a),a=$APP.J(a),a=$APP.C(a,$APP.bn),"M "+$APP.Q.g(c)+" "+$APP.Q.g(a);var e=$APP.u(a),f=$APP.bn.g(e);e=0;for(f=new $APP.De(null,1,5,$APP.Ee,["M "+$APP.Q.g(c)+" "+$APP.Q.g(f)],null);;){if(e>=d-1)return $APP.nh(" ",f);var h=$APP.wc(a,e),l=$APP.wc(a,
4
- e+1),m=$APP.bn.g(h),q=$APP.bn.g(l);h=fB.g(h);var r=fB.g(l);l=$APP.B.i(h,"left")?-b:b;r=$APP.B.i(r,"left")?-b:b;h=m+(q-m)*.33;r=c+r;m+=(q-m)*.66;var v=c;e+=1;f=$APP.ud.i(f,"C "+$APP.Q.g(c+l)+" "+$APP.Q.g(h)+" "+$APP.Q.g(r)+" "+$APP.Q.g(m)+" "+$APP.Q.g(v)+" "+$APP.Q.g(q))}},oB=function(a){var b=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),
5
- h=document.createElement("div"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),m=document.createElementNS("http://www.w3.org/2000/svg","path"),q=document.createElementNS("http://www.w3.org/2000/svg","path"),r=document.createElement("div"),v=document.createElement("slot"),x=document.createElement("div"),y=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-timeline-track-color:rgba(0,0,0,0.12);--x-scroll-timeline-track-fill-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-track-width:3px;--x-scroll-timeline-marker-size:14px;--x-scroll-timeline-marker-color:rgba(0,0,0,0.15);--x-scroll-timeline-marker-active-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-marker-border-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-entry-gap:2rem;--x-scroll-timeline-date-color:rgba(0,0,0,0.5);--x-scroll-timeline-date-font-size:0.8125rem;--x-scroll-timeline-transition-duration:300ms;--x-scroll-timeline-curve-amplitude:60;--x-scroll-timeline-disabled-opacity:0.55;}@media (prefers-color-scheme:dark){:host{--x-scroll-timeline-track-color:rgba(255,255,255,0.12);--x-scroll-timeline-marker-color:rgba(255,255,255,0.18);--x-scroll-timeline-date-color:rgba(255,255,255,0.5);}}[part\x3dcontainer]{position:relative;padding:0;}[part\x3dtrack]{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:var(--x-scroll-timeline-track-width);pointer-events:none;z-index:1;}:host([data-layout\x3dleft]) [part\x3dtrack]{left:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}:host([data-layout\x3dright]) [part\x3dtrack]{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}[part\x3dtrack-line]{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--x-scroll-timeline-track-color);border-radius:999px;}[part\x3dtrack-fill]{position:absolute;top:0;left:0;right:0;height:0%;background:var(--x-scroll-timeline-track-fill-color);border-radius:999px;transition:height 60ms linear;}[part\x3dtrack-svg]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}:host([data-track\x3dcurved]) [part\x3dtrack-line],:host([data-track\x3dcurved]) [part\x3dtrack-fill]{display:none;}:host([data-track\x3dcurved]) [part\x3dtrack-svg]{display:block;}[part\x3dtrack-path]{fill:none;stroke:var(--x-scroll-timeline-track-color);stroke-width:3px;stroke-linecap:round;}[part\x3dtrack-fill-path]{fill:none;stroke:var(--x-scroll-timeline-track-fill-color);stroke-width:3px;stroke-linecap:round;transition:stroke-dashoffset 60ms linear;}[part\x3dentries]{position:relative;z-index:2;}::slotted(*){display:block;margin-bottom:var(--x-scroll-timeline-entry-gap);opacity:0.4;transition:opacity var(--x-scroll-timeline-transition-duration) ease;}::slotted(:last-child){margin-bottom:0;}::slotted([data-active]){opacity:1;}:host([data-layout\x3dalternating]) ::slotted(*){width:calc(50% - var(--x-scroll-timeline-marker-size));}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dleft]){margin-left:0;margin-right:auto;text-align:right;padding-right:1.5rem;}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dright]){margin-left:auto;margin-right:0;text-align:left;padding-left:1.5rem;}:host([data-layout\x3dleft]) ::slotted(*){margin-left:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;}:host([data-layout\x3dright]) ::slotted(*){margin-right:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;text-align:right;}.tl-marker{position:absolute;z-index:3;width:var(--x-scroll-timeline-marker-size);height:var(--x-scroll-timeline-marker-size);border-radius:50%;background:var(--x-scroll-timeline-marker-color);border:2px solid transparent;transform:translate(-50%,-50%);transition:background var(--x-scroll-timeline-transition-duration) ease,border-color var(--x-scroll-timeline-transition-duration) ease,box-shadow var(--x-scroll-timeline-transition-duration) ease;}.tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);box-shadow:0 0 0 3px rgba(59,130,246,0.25);}:host([data-marker\x3dring]) .tl-marker{background:transparent;border:2px solid var(--x-scroll-timeline-marker-color);}:host([data-marker\x3dring]) .tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);}:host([data-marker\x3dnone]) .tl-marker{display:none;}.tl-marker{left:50%;}:host([data-layout\x3dleft]) .tl-marker{left:calc(var(--x-scroll-timeline-marker-size) / 2);}:host([data-layout\x3dright]) .tl-marker{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:translate(50%,-50%);}.tl-date{position:absolute;z-index:3;font-size:var(--x-scroll-timeline-date-font-size);color:var(--x-scroll-timeline-date-color);white-space:nowrap;transform:translateY(-50%);transition:color var(--x-scroll-timeline-transition-duration) ease;}.tl-date[data-active]{color:var(--x-scroll-timeline-marker-active-color);font-weight:600;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dleft]{left:calc(50% + var(--x-scroll-timeline-marker-size));padding-left:0.5rem;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dright]{right:calc(50% + var(--x-scroll-timeline-marker-size));padding-right:0.5rem;text-align:right;}:host([data-layout\x3dleft]) .tl-date{left:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);}:host([data-layout\x3dright]) .tl-date{right:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);text-align:right;}:host([disabled]){opacity:var(--x-scroll-timeline-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;z-index:4;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (pointer:coarse){:host{--x-scroll-timeline-marker-size:44px;}}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}.tl-marker{transition:none !important;}.tl-date{transition:none !important;}[part\x3dtrack-fill]{transition:none !important;}[part\x3dtrack-fill-path]{transition:none !important;}}";
6
- d.setAttribute("part","container");d.setAttribute("role","feed");e.setAttribute("part","track");f.setAttribute("part","track-line");h.setAttribute("part","track-fill");l.setAttribute("part","track-svg");l.setAttribute("aria-hidden","true");l.setAttribute("focusable","false");m.setAttribute("part","track-path");q.setAttribute("part","track-fill-path");q.setAttribute("pathLength","1");l.appendChild(m);l.appendChild(q);e.appendChild(f);e.appendChild(h);r.setAttribute("part","entries");r.appendChild(v);
7
- x.setAttribute("part","indicator");d.appendChild(e);d.appendChild(r);d.appendChild(l);d.appendChild(x);y.setAttribute("part","live");y.setAttribute("aria-live","polite");y.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(y);b=$APP.Lf([$APP.tk,hB,iB,jB,kB,lB,$APP.Uh,$APP.Vh,mB,$APP.Oj,nB,$APP.lk],[v,l,q,r,m,f,b,d,x,y,h,e]);a.__xScrollTimelineRefs=b;return $APP.k(a,"__xScrollTimelineRefs")},wB=function(a){a=$APP.Lf([$APP.Ch,pB,$APP.gl,$APP.An,$APP.lj,$APP.ym,$APP.Zj,
8
- qB,$APP.mk,$APP.yn,rB],[a.getAttribute("label"),a.getAttribute("marker"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,a.getAttribute("track"),$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,$APP.n(a.hasAttribute("no-progress"))?"":null]);var b=$APP.J(a);a=$APP.C(b,$APP.mk);var c=$APP.C(b,$APP.yn),d=$APP.C(b,rB),e=$APP.C(b,
9
- $APP.Ch),f=$APP.C(b,pB),h=$APP.C(b,$APP.gl),l=$APP.C(b,$APP.An),m=$APP.C(b,$APP.lj),q=$APP.C(b,$APP.ym),r=$APP.C(b,$APP.Zj);b=$APP.C(b,qB);q=typeof q==="string"?q.trim().toLowerCase():null;q=$APP.Zc(sB,q)?q:"alternating";f=typeof f==="string"?f.trim().toLowerCase():null;f=$APP.Zc(tB,f)?f:"dot";m=aB(m);e=$APP.n(e)?e:"";h=bB(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.Zc(uB,b)?b:"straight";return $APP.Lf([$APP.yl,$APP.Zl,$APP.Jj,vB,$APP.ln,$APP.X,$APP.Sj,$APP.Y,$APP.hl,$APP.lk,$APP.Vj],
10
- [q,f,c!=null,d!=null,m,e,r!=null,a!=null,h,b,l!=null])},xB=function(a){a=oB(a);a=$APP.J(a);return $APP.C(a,$APP.tk).assignedElements()},yB=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},zB=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.M(a,"")?a:null},AB=function(a,b){a=$APP.J($APP.k(a,"__xScrollTimelineRefs"));var c=$APP.C(a,$APP.Oj);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},BB=function(a,b){for(var c=a.length,
11
- d=0;;)if(d<c){var e=a[d];e.setAttribute("data-side",cB(b,d));e.setAttribute("data-index",""+$APP.Q.g(d));d+=1}else break},CB=function(a){a=xB(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.removeAttribute("data-active");d.removeAttribute("data-side");d.removeAttribute("data-index");c+=1}else break},DB=function(a,b){var c=$APP.J($APP.k(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.Vh);var d=$APP.k(a,"__xScrollTimelineMarkerEls");d=$APP.n(d)?d:[];b=b.length;for(var e=d.length,f=0;;)if(f<e)d[f].remove(),
12
- f+=1;else break;d=Array(b);for(e=0;;)if(e<b)f=document.createElement("div"),f.classList.add("tl-marker"),c.appendChild(f),d[e]=f,e+=1;else break;a.__xScrollTimelineMarkerEls=d},EB=function(a,b){var c=$APP.J($APP.k(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.Vh);var d=$APP.k(a,"__xScrollTimelineDateEls");var e=$APP.n(d)?d:[];d=b.length;for(var f=e.length,h=0;;)if(h<f){var l=e[h];$APP.n(l)&&l.remove();h+=1}else break;e=Array(d);for(f=0;;)if(f<d)h=b[f].getAttribute("data-date"),typeof h==="string"&&
13
- $APP.M(h,"")?(l=document.createElement("span"),l.classList.add("tl-date"),l.textContent=h,c.appendChild(l),e[f]=l):e[f]=null,f+=1;else break;a.__xScrollTimelineDateEls=e},FB=function(a,b,c){a=$APP.J($APP.k(a,"__xScrollTimelineRefs"));a=$APP.C(a,nB);$APP.n(c)?a.style.height="0%":a.style.height=""+$APP.Q.g(b*100)+"%"},GB=function(a,b){var c=$APP.J($APP.k(a,"__xScrollTimelineRefs")),d=$APP.C(c,$APP.Vh),e=$APP.C(c,hB),f=$APP.C(c,kB);c=$APP.C(c,iB);var h=function(){var G=$APP.k(a,"__xScrollTimelineModel");
14
- return $APP.n(G)?G:wB(a)}(),l=$APP.yl.g(h);h=d.getBoundingClientRect();var m=h.top;d=h.height;var q=h.width,r=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-curve-amplitude");h=function(){var G=parseFloat(r);return $APP.n(isNaN(G))?60:G}();var v=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),x=function(){var G=parseFloat(v);return $APP.n(isNaN(G))?7:G/2}(),y=function(){switch(l){case "left":return x;case "right":return q-x;default:return q*.5}}(),
15
- A=b.length;if(A>0){var D=function(){for(var G=0,I=$APP.pe;;){if(G>=A)return I;var H=b[G].getBoundingClientRect(),K=G+1;I=$APP.ud.i(I,new $APP.N(null,2,[$APP.bn,H.top+H.height/2-m,fB,cB(l,G)],null));G=K}}();h=gB(D,h,y);e.setAttribute("viewBox","0 0 "+$APP.Q.g(q)+" "+$APP.Q.g(d));f.setAttribute("d",h);c.setAttribute("d",h);c.setAttribute("stroke-dasharray","1");c.setAttribute("stroke-dashoffset","1")}},HB=function(a,b,c){a=$APP.J($APP.k(a,"__xScrollTimelineRefs"));a=$APP.C(a,iB);$APP.n(c)?a.setAttribute("stroke-dashoffset",
16
- "1"):a.setAttribute("stroke-dashoffset",""+$APP.Q.g(1-b))},IB=function(a,b,c){var d=$APP.k(a,"__xScrollTimelineActiveIndex");d=$APP.n(d)?d:-1;if($APP.M(d,c)){d>=0&&d<b.length&&b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");var e=$APP.k(a,"__xScrollTimelineMarkerEls"),f=$APP.k(a,"__xScrollTimelineDateEls");$APP.n(e)&&(d>=0&&d<e.length&&e[d].removeAttribute("data-active"),c>=0&&c<e.length&&e[c].setAttribute("data-active",""));$APP.n(f)&&(d>=0&&d<f.length&&
17
- (e=f[d],$APP.n(e)&&e.removeAttribute("data-active")),c>=0&&c<f.length&&(f=f[c],$APP.n(f)&&f.setAttribute("data-active","")));c>=0?a.setAttribute("data-active-index",""+$APP.Q.g(c)):a.removeAttribute("data-active-index");a.__xScrollTimelineActiveIndex=c;f=d>=0&&d<b.length?zB(b[d]):null;b=c>=0&&c<b.length?zB(b[c]):null;$APP.P(a,"x-scroll-timeline-entry-change",{index:c,id:b,previousIndex:d,previousId:f});AB(a,"Entry "+$APP.Q.g(c+1)+" active")}},JB=function(a,b,c,d){var e=b.length;var f=$APP.k(a,"__xScrollTimelineEntryStates");
18
- if(!$APP.n($APP.n(f)?$APP.B.i(f.length,e):f)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(f)?l<f.length:f)?f[l]:!1,l+=1;else break;f=a.__xScrollTimelineEntryStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.wc(c,h);l=$APP.J(l);var m=$APP.C(l,$APP.Bj),q=$APP.C(l,$APP.Rl),r=f[h];l=m<=d&&q>d;var v=zB(b[h]);m=eB(m,q-m,d);$APP.p(r)&&l?(f[h]=!0,$APP.P(a,"x-scroll-timeline-entry-enter",{index:h,id:v,progress:m})):$APP.n($APP.n(r)?!l:r)&&(f[h]=!1,$APP.P(a,"x-scroll-timeline-entry-leave",{index:h,id:v,
19
- progress:m}))}h+=1}else break},KB=function(a){var b=function(){var r=$APP.k(a,"__xScrollTimelineModel");return $APP.n(r)?r:wB(a)}();if(!$APP.n($APP.Y.g(b))){var c=xB(a),d=c.length,e=window.innerHeight,f=e*$APP.ln.g(b),h=function(){for(var r=0,v=$APP.pe;;){if(r>=d)return v;var x=c[r].getBoundingClientRect();r+=1;v=$APP.ud.i(v,new $APP.N(null,2,[$APP.Bj,x.top,$APP.Rl,x.top+x.height],null))}}(),l=dB(h,f),m=$APP.J($APP.k(a,"__xScrollTimelineRefs"));m=$APP.C(m,$APP.Vh).getBoundingClientRect();e=$APP.Hi.i(0,
20
- $APP.Ii.i(1,(e-m.top)/(e+m.height)));m=$APP.k(a,"__xScrollTimelineLastProg");var q=d<2||l<0?0:function(){var r=function(){var D=$APP.wc(h,0);return($APP.Bj.g(D)+$APP.Rl.g(D))/2}(),v=function(){var D=$APP.wc(h,d-1);return($APP.Bj.g(D)+$APP.Rl.g(D))/2}()-r,x=$APP.wc(h,l),y=($APP.Bj.g(x)+$APP.Rl.g(x))/2;x=eB($APP.Bj.g(x),$APP.Rl.g(x)-$APP.Bj.g(x),f);var A=l<d-1?function(){var D=$APP.wc(h,l+1);return($APP.Bj.g(D)+$APP.Rl.g(D))/2}():y;return v<=0?1:$APP.Hi.i(0,$APP.Ii.i(1,(y+x*(A-y)-r)/v))}();IB(a,c,l);
21
- JB(a,c,h,f);$APP.B.i($APP.lk.g(b),"curved")?HB(a,q,vB.g(b)):FB(a,q,vB.g(b));if(m==null||Math.abs(e-m)>.001)a.__xScrollTimelineLastProg=e,b=l>=0&&l<d?zB(c[l]):null,$APP.P(a,"x-scroll-timeline-progress",{progress:e,activeIndex:l,activeId:b})}a.__xScrollTimelineRAF=null},LB=function(a){return function d(c){if($APP.n(function(){var h=a.isConnected;return $APP.n(h)?(h=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(h)?$APP.p($APP.k(a,"__xScrollTimelineAutoplayPaused")):h):h}())){var e=$APP.k(a,"__xScrollTimelineModel");
22
- if($APP.n(function(){if($APP.n(e)){var h=$APP.Vj.g(e);return $APP.n(h)?$APP.p($APP.Y.g(e)):h}return e}())){var f=$APP.k(a,"__xScrollTimelineAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;a.__xScrollTimelineAutoplayLast=c;f>0&&(window.scrollBy(0,$APP.hl.g(e)*f),$APP.n($APP.Jj.g(e))&&(f=window.scrollY,c=window.innerHeight,f+c>=document.documentElement.scrollHeight-1&&(f=a.getBoundingClientRect().top+f,window.scrollTo(0,$APP.Hi.i(0,f-c)),a.__xScrollTimelineAutoplayLast=null)));return $APP.fa(a,"__xScrollTimelineAutoplayRAF",
23
- requestAnimationFrame(d))}}return null}},MB=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused")))return null;a.__xScrollTimelineAutoplayPaused=!0;var b=$APP.k(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=xB(a);d=
24
- c>=0&&c<d.length?zB(d[c]):null;return $APP.P(a,"x-scroll-timeline-autoplay-pause",{progress:b,activeIndex:c,activeId:d})},NB=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))){a.__xScrollTimelineAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollTimelineAutoplayLast=null;$APP.fa(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(LB(a)));var b=function(){var e=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollTimelineActiveIndex");
25
- return $APP.n(e)?e:-1}(),d=xB(a);d=c>=0&&c<d.length?zB(d[c]):null;return $APP.P(a,"x-scroll-timeline-autoplay-resume",{progress:b,activeIndex:c,activeId:d})}return null},OB=function(a){var b=$APP.k(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);b=$APP.k(a,"__xScrollTimelineAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",
26
- $APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollTimelineAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null},PB=function(a){if($APP.k(a,"__xScrollTimelineAutoplayRAF")==null){var b=$APP.k(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Vj.g(b);return $APP.n(l)?(l=$APP.p($APP.Y.g(b)))?
27
- (l=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(l)?!yB():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null;var c=function(){return MB(a)},d=function(){return NB(a)},e=function(){return $APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))?NB(a):null},f=function(l){return $APP.B.i(l.code,"Space")?(l.preventDefault(),MB(a)):null},h=function(l){return $APP.B.i(l.code,"Space")?NB(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",
28
- d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.fa(a,"__xScrollTimelineAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});$APP.fa(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(LB(a)))}}return null},QB=function(a){a=$APP.k(a,"__xScrollTimelineModel");return $APP.n(a)?$APP.Y.g(a):a},RB=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(b)?
29
- $APP.p(QB(a))&&!yB():b):b}())?$APP.n($APP.k(a,"__xScrollTimelineRAF"))?null:$APP.fa(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return KB(a)})):null},SB=function(a){a=$APP.k(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},TB=function(a){a=$APP.k(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",
30
- $APP.k(a,"scroll")),a.scrollAttached=!1)},UB=function(a,b){b=b[0].isIntersecting;a.__xScrollTimelineVisible=b;if($APP.n(b)){if($APP.n(QB(a)))return null;SB(a);KB(a);AB(a,"Timeline entered viewport");$APP.P(a,"x-scroll-timeline-enter",{progress:function(){var c=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()});b=$APP.k(a,"__xScrollTimelineModel");return $APP.n($APP.n(b)?$APP.Vj.g(b):b)?PB(a):null}TB(a);OB(a);if($APP.n(QB(a)))return null;AB(a,"Timeline left viewport");return $APP.P(a,
31
- "x-scroll-timeline-leave",{progress:function(){var c=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()})},VB=function(a){var b=function(){var d=$APP.k(a,"__xScrollTimelineModel");return $APP.n(d)?d:wB(a)}(),c=xB(a);BB(c,$APP.yl.g(b));DB(a,c);EB(a,c);return requestAnimationFrame(function(){var d=xB(a),e=$APP.k(a,"__xScrollTimelineMarkerEls"),f=$APP.k(a,"__xScrollTimelineDateEls"),h=$APP.J($APP.k(a,"__xScrollTimelineRefs"));h=$APP.C(h,$APP.Vh).getBoundingClientRect().top;var l=$APP.k(a,
32
- "__xScrollTimelineModel");l=$APP.n(l)?l:wB(a);l=$APP.yl.g(l);for(var m=d.length,q=0;;)if(q<m){var r=d[q].getBoundingClientRect();r=r.top+r.height/2-h;var v=cB(l,q),x=$APP.n(e)?e[q]:e;$APP.n(x)&&(x.style.top=""+$APP.Q.g(r)+"px");x=$APP.n(f)?f[q]:f;$APP.n(x)&&(x.style.top=""+$APP.Q.g(r)+"px",x.setAttribute("data-side",v));q+=1}else break;$APP.B.i($APP.lk.g(b),"curved")&&GB(a,d);return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?KB(a):null})},WB=function(a){function b(){return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?
33
- (a.__xScrollTimelineEntryStates=null,VB(a)):null}function c(){a.__xScrollTimelineEntryStates=null;return VB(a)}var d=oB(a);d=$APP.J(d);$APP.C(d,$APP.tk).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.fa(a,"__xScrollTimelineHandlers",{scroll:function(){return RB(a)},slot:c,resize:b,scrollAttached:!1})},XB=function(a){var b=$APP.k(a,"__xScrollTimelineHandlers");if($APP.n(b)){TB(a);var c=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(c)){c=$APP.tk.g(c);var d=$APP.k(b,"slot");
34
- $APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollTimelineRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineRAF=null);a.__xScrollTimelineHandlers=null},YB=function(a){var b=$APP.k(a,"__xScrollTimelineIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return UB(a,c)},{threshold:[0]});b.observe(a);a.__xScrollTimelineIO=b},ZB=function(a){var b=wB(a);if($APP.M($APP.k(a,"__xScrollTimelineModel"),
35
- b)){b=$APP.J(b);var c=$APP.C(b,$APP.yl),d=$APP.C(b,$APP.lk),e=$APP.C(b,$APP.Y),f=$APP.C(b,$APP.X),h=$APP.C(b,$APP.Zl),l=oB(a);l=$APP.J(l);l=$APP.C(l,$APP.Vh);var m=$APP.k(a,"__xScrollTimelineModel");a.setAttribute("data-layout",c);a.setAttribute("data-track",d);a.setAttribute("data-marker",h);$APP.t(f)?l.setAttribute("aria-label",f):l.removeAttribute("aria-label");a.__xScrollTimelineModel=b;$APP.n(e)?(CB(a),a.__xScrollTimelineActiveIndex=-1,a.__xScrollTimelineEntryStates=null,TB(a),OB(a)):$APP.n(m)&&
36
- ($APP.M($APP.yl.g(m),c)||$APP.M($APP.lk.g(m),d)||$APP.M($APP.Zl.g(m),h)||$APP.M($APP.Y.g(m),e)?VB(a):($APP.M($APP.ln.g(m),$APP.ln.g(b))||$APP.M(vB.g(m),vB.g(b)))&&$APP.n($APP.k(a,"__xScrollTimelineVisible"))&&KB(a));$APP.n(e)||(b=$APP.Vj.g(b),$APP.n($APP.n(b)?$APP.k(a,"__xScrollTimelineVisible"):b)?PB(a):OB(a))}},$B=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",
37
- ""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},aC=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return d.g?d.g(e):d.call(null,e)},set:function(e){return e!=null?this.setAttribute(c,""+$APP.Q.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},bC=function(a,b,c,d){return Object.defineProperty(a,b,{get:function(){var e=$APP.k(this,c);return e!=null?e:d},enumerable:!0,configurable:!0})},cC=function(a){$APP.eh(a,"layout",
38
- "layout","alternating");$APP.eh(a,"track","track","straight");$APP.eh(a,"marker","marker","dot");$B(a);aC(a,"threshold","threshold",aB);$APP.dh(a,"noProgress","no-progress");$APP.dh(a,"disabled","disabled");$APP.dh(a,"autoplay","autoplay");aC(a,"autoplaySpeed","autoplay-speed",bB);$APP.dh(a,"autoplayLoop","autoplay-loop");$APP.dh(a,"autoplayIndicator","autoplay-indicator");bC(a,"activeIndex","__xScrollTimelineActiveIndex",-1);bC(a,"progress","__xScrollTimelineLastProg",0);return bC(a,"autoplayPaused",
39
- "__xScrollTimelineAutoplayPaused",!1)},dC=function(a){oB(a);XB(a);WB(a);YB(a);ZB(a);return null},eC=function(a){OB(a);CB(a);if($APP.n($APP.k(a,"__xScrollTimelineVisible"))){var b=$APP.k(a,"__xScrollTimelineLastProg");$APP.P(a,"x-scroll-timeline-leave",{progress:$APP.n(b)?b:0})}XB(a);b=$APP.k(a,"__xScrollTimelineIO");$APP.n(b)&&(b.disconnect(),a.__xScrollTimelineIO=null);a.__xScrollTimelineVisible=!1;a.__xScrollTimelineActiveIndex=-1;a.__xScrollTimelineLastProg=null;return a.__xScrollTimelineEntryStates=
40
- null},fC=function(a,b,c,d){$APP.M(c,d)&&ZB(a);return null},hC=function(){return $APP.Yg("x-scroll-timeline",new $APP.N(null,5,[$APP.Pg,gC,$APP.Qg,dC,$APP.Rg,eC,$APP.Sg,fC,$APP.Wg,cC],null))},nB=new $APP.F(null,"track-fill","track-fill",1852369499),jB=new $APP.F(null,"entries","entries",-86943161),pB=new $APP.F(null,"marker-raw","marker-raw",2140891555),mB=new $APP.F(null,"indicator","indicator",1928219637),vB=new $APP.F(null,"no-progress?","no-progress?",-1599319890),qB=new $APP.F(null,"track-raw",
41
- "track-raw",751958776),kB=new $APP.F(null,"track-path","track-path",-1838135442),iB=new $APP.F(null,"fill-path","fill-path",-792439899),rB=new $APP.F(null,"no-progress-attr","no-progress-attr",115951679),hB=new $APP.F(null,"track-svg","track-svg",-556455964),fB=new $APP.F(null,"side","side",389652279),lB=new $APP.F(null,"track-line","track-line",1370628624);var gC="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
42
- $APP.Lf([$APP.Fm,$APP.Zi,$APP.Vl,$APP.al,$APP.yl,$APP.Al,$APP.Zl,$APP.ln,$APP.Zn,$APP.X,$APP.Pl,$APP.vn,new $APP.F(null,"noProgress","noProgress",-2114530658),$APP.lk],[new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,
43
- 2,[$APP.R,$APP.T,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null)]);
44
- $APP.Yd(["x-scroll-timeline-entry-change",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.kl,$APP.V,$APP.so,$APP.U],null),$APP.Fn,!1],null),"x-scroll-timeline-entry-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-entry-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-progress",new $APP.N(null,
45
- 2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-timeline-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-timeline-autoplay-resume",
46
- new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null)]);var sB=new $APP.O(null,new $APP.N(null,3,["right",null,"left",null,"alternating",null],null),null),uB=new $APP.O(null,new $APP.N(null,2,["curved",null,"straight",null],null),null),tB=new $APP.O(null,new $APP.N(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.ca("baredom.exports.x_scroll_timeline.init",hC);export const init=hC;
2
+ var aE=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Gl.j(0,$APP.Hl.j(1,a))):.5},bE=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Gl.j(1,$APP.Hl.j(1E3,a))):50},cE=function(a,b){switch(a){case "alternating":return $APP.qd(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},dE=function(a,b,c){return b<=0?0:$APP.Gl.j(0,$APP.Hl.j(1,(c-a)/b))},eE=function(a,b,c){function d(q){return($APP.Am.i(q)+
3
+ $APP.No.i(q))/2}var e=$APP.y(a);if(e<2||b<0)return 0;var f=d($APP.tc(a,0)),h=d($APP.tc(a,e-1))-f,l=$APP.tc(a,b),m=d(l);c=dE($APP.Am.i(l),$APP.No.i(l)-$APP.Am.i(l),c);a=b<e-1?d($APP.tc(a,b+1)):m;return h<=0?1:$APP.Gl.j(0,$APP.Hl.j(1,(m+c*(a-m)-f)/h))},gE=function(a,b,c){var d=$APP.y(a);if(d===0)return"";if($APP.A.j(d,1))return a=$APP.u(a),a=$APP.G(a),a=$APP.C(a,$APP.$p),"M "+$APP.V.i(c)+" "+$APP.V.i(a);var e=$APP.u(a),f=$APP.$p.i(e);e=0;for(f=new $APP.M(null,1,5,$APP.N,["M "+$APP.V.i(c)+" "+$APP.V.i(f)],
4
+ null);;){if(e>=d-1)return $APP.ci(" ",f);var h=$APP.tc(a,e),l=$APP.tc(a,e+1),m=$APP.$p.i(h),q=$APP.$p.i(l);h=fE.i(h);var r=fE.i(l);l=$APP.A.j(h,"left")?-b:b;r=$APP.A.j(r,"left")?-b:b;h=m+(q-m)*.33;r=c+r;m+=(q-m)*.66;var v=c;e+=1;f=$APP.wd.j(f,"C "+$APP.V.i(c+l)+" "+$APP.V.i(h)+" "+$APP.V.i(r)+" "+$APP.V.i(m)+" "+$APP.V.i(v)+" "+$APP.V.i(q))}},oE=function(a){var b=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");
5
+ var e=document.createElement("div");var f=document.createElement("div"),h=document.createElement("div");e.setAttribute("part","track");f.setAttribute("part","track-line");h.setAttribute("part","track-fill");e.appendChild(f);e.appendChild(h);e=new $APP.O(null,3,[$APP.mn,e,hE,f,iE,h],null);f=document.createElementNS("http://www.w3.org/2000/svg","svg");h=document.createElementNS("http://www.w3.org/2000/svg","path");var l=document.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("part",
6
+ "track-svg");f.setAttribute("aria-hidden","true");f.setAttribute("focusable","false");h.setAttribute("part","track-path");l.setAttribute("part","track-fill-path");l.setAttribute("pathLength","1");f.appendChild(h);f.appendChild(l);f=new $APP.O(null,3,[jE,f,kE,h,lE,l],null);h=document.createElement("div");l=document.createElement("slot");h.setAttribute("part","entries");h.appendChild(l);h=new $APP.O(null,2,[mE,h,$APP.un,l],null);l=document.createElement("div");l.setAttribute("part","indicator");var m=
7
+ document.createElement("div");m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-timeline-track-color:rgba(0,0,0,0.12);--x-scroll-timeline-track-fill-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-track-width:3px;--x-scroll-timeline-marker-size:14px;--x-scroll-timeline-marker-color:rgba(0,0,0,0.15);--x-scroll-timeline-marker-active-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-marker-border-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-entry-gap:2rem;--x-scroll-timeline-date-color:rgba(0,0,0,0.5);--x-scroll-timeline-date-font-size:0.8125rem;--x-scroll-timeline-transition-duration:300ms;--x-scroll-timeline-curve-amplitude:60;--x-scroll-timeline-disabled-opacity:0.55;}@media (prefers-color-scheme:dark){:host{--x-scroll-timeline-track-color:rgba(255,255,255,0.12);--x-scroll-timeline-marker-color:rgba(255,255,255,0.18);--x-scroll-timeline-date-color:rgba(255,255,255,0.5);}}[part\x3dcontainer]{position:relative;padding:0;}[part\x3dtrack]{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:var(--x-scroll-timeline-track-width);pointer-events:none;z-index:1;}:host([data-layout\x3dleft]) [part\x3dtrack]{left:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}:host([data-layout\x3dright]) [part\x3dtrack]{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}[part\x3dtrack-line]{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--x-scroll-timeline-track-color);border-radius:999px;}[part\x3dtrack-fill]{position:absolute;top:0;left:0;right:0;height:0%;background:var(--x-scroll-timeline-track-fill-color);border-radius:999px;transition:height 60ms linear;}[part\x3dtrack-svg]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}:host([data-track\x3dcurved]) [part\x3dtrack-line],:host([data-track\x3dcurved]) [part\x3dtrack-fill]{display:none;}:host([data-track\x3dcurved]) [part\x3dtrack-svg]{display:block;}[part\x3dtrack-path]{fill:none;stroke:var(--x-scroll-timeline-track-color);stroke-width:3px;stroke-linecap:round;}[part\x3dtrack-fill-path]{fill:none;stroke:var(--x-scroll-timeline-track-fill-color);stroke-width:3px;stroke-linecap:round;transition:stroke-dashoffset 60ms linear;}[part\x3dentries]{position:relative;z-index:2;}::slotted(*){display:block;margin-bottom:var(--x-scroll-timeline-entry-gap);opacity:0.4;transition:opacity var(--x-scroll-timeline-transition-duration) ease;}::slotted(:last-child){margin-bottom:0;}::slotted([data-active]){opacity:1;}:host([data-layout\x3dalternating]) ::slotted(*){width:calc(50% - var(--x-scroll-timeline-marker-size));}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dleft]){margin-left:0;margin-right:auto;text-align:right;padding-right:1.5rem;}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dright]){margin-left:auto;margin-right:0;text-align:left;padding-left:1.5rem;}:host([data-layout\x3dleft]) ::slotted(*){margin-left:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;}:host([data-layout\x3dright]) ::slotted(*){margin-right:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;text-align:right;}.tl-marker{position:absolute;z-index:3;width:var(--x-scroll-timeline-marker-size);height:var(--x-scroll-timeline-marker-size);border-radius:50%;background:var(--x-scroll-timeline-marker-color);border:2px solid transparent;transform:translate(-50%,-50%);transition:background var(--x-scroll-timeline-transition-duration) ease,border-color var(--x-scroll-timeline-transition-duration) ease,box-shadow var(--x-scroll-timeline-transition-duration) ease;}.tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);box-shadow:0 0 0 3px rgba(59,130,246,0.25);}:host([data-marker\x3dring]) .tl-marker{background:transparent;border:2px solid var(--x-scroll-timeline-marker-color);}:host([data-marker\x3dring]) .tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);}:host([data-marker\x3dnone]) .tl-marker{display:none;}.tl-marker{left:50%;}:host([data-layout\x3dleft]) .tl-marker{left:calc(var(--x-scroll-timeline-marker-size) / 2);}:host([data-layout\x3dright]) .tl-marker{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:translate(50%,-50%);}.tl-date{position:absolute;z-index:3;font-size:var(--x-scroll-timeline-date-font-size);color:var(--x-scroll-timeline-date-color);white-space:nowrap;transform:translateY(-50%);transition:color var(--x-scroll-timeline-transition-duration) ease;}.tl-date[data-active]{color:var(--x-scroll-timeline-marker-active-color);font-weight:600;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dleft]{left:calc(50% + var(--x-scroll-timeline-marker-size));padding-left:0.5rem;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dright]{right:calc(50% + var(--x-scroll-timeline-marker-size));padding-right:0.5rem;text-align:right;}:host([data-layout\x3dleft]) .tl-date{left:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);}:host([data-layout\x3dright]) .tl-date{right:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);text-align:right;}:host([disabled]){opacity:var(--x-scroll-timeline-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;z-index:4;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (pointer:coarse){:host{--x-scroll-timeline-marker-size:44px;}}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}.tl-marker{transition:none !important;}.tl-date{transition:none !important;}[part\x3dtrack-fill]{transition:none !important;}[part\x3dtrack-fill-path]{transition:none !important;}}";
8
+ d.setAttribute("part","container");d.setAttribute("role","feed");d.appendChild($APP.mn.i(e));d.appendChild(mE.i(h));d.appendChild(jE.i(f));d.appendChild(l);b.appendChild(c);b.appendChild(d);b.appendChild(m);b=$APP.Wf([$APP.un,jE,lE,mE,kE,hE,$APP.jj,$APP.kj,nE,$APP.Om,iE,$APP.mn],[$APP.un.i(h),jE.i(f),lE.i(f),mE.i(h),kE.i(f),hE.i(e),b,d,l,m,iE.i(e),$APP.mn.i(e)]);a.__xScrollTimelineRefs=b;return $APP.k(a,"__xScrollTimelineRefs")},wE=function(a){a=$APP.Wf([$APP.ui,pE,$APP.Zn,$APP.vq,$APP.om,$APP.Dp,
9
+ $APP.Zm,qE,$APP.nn,$APP.tq,rE],[a.getAttribute("label"),a.getAttribute("marker"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,a.getAttribute("track"),$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,$APP.n(a.hasAttribute("no-progress"))?"":null]);var b=$APP.G(a);a=$APP.C(b,$APP.nn);var c=$APP.C(b,$APP.tq),d=$APP.C(b,rE),
10
+ e=$APP.C(b,$APP.ui),f=$APP.C(b,pE),h=$APP.C(b,$APP.Zn),l=$APP.C(b,$APP.vq),m=$APP.C(b,$APP.om),q=$APP.C(b,$APP.Dp),r=$APP.C(b,$APP.Zm);b=$APP.C(b,qE);q=typeof q==="string"?q.trim().toLowerCase():null;q=$APP.$c(sE,q)?q:"alternating";f=typeof f==="string"?f.trim().toLowerCase():null;f=$APP.$c(tE,f)?f:"dot";m=aE(m);e=$APP.n(e)?e:"";h=bE(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.$c(uE,b)?b:"straight";return $APP.Wf([$APP.to,$APP.bp,$APP.Jm,vE,$APP.iq,$APP.Z,$APP.Tm,$APP.Bi,$APP.$n,$APP.mn,
11
+ $APP.Wm],[q,f,c!=null,d!=null,m,e,r!=null,a!=null,h,b,l!=null])},xE=function(a){a=oE(a);a=$APP.G(a);return $APP.C(a,$APP.un).assignedElements()},yE=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},zE=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.I(a,"")?a:null},AE=function(a,b){a=$APP.G($APP.k(a,"__xScrollTimelineRefs"));var c=$APP.C(a,$APP.Om);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},BE=function(a,b){for(var c=
12
+ a.length,d=0;;)if(d<c){var e=a[d];e.setAttribute("data-side",cE(b,d));e.setAttribute("data-index",""+$APP.V.i(d));d+=1}else break},CE=function(a){a=xE(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.removeAttribute("data-active");d.removeAttribute("data-side");d.removeAttribute("data-index");c+=1}else break},DE=function(a,b){var c=$APP.G($APP.k(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.kj);var d=$APP.k(a,"__xScrollTimelineMarkerEls");d=$APP.n(d)?d:[];b=b.length;for(var e=d.length,f=0;;)if(f<e)d[f].remove(),
13
+ f+=1;else break;d=Array(b);for(e=0;;)if(e<b)f=document.createElement("div"),f.classList.add("tl-marker"),c.appendChild(f),d[e]=f,e+=1;else break;a.__xScrollTimelineMarkerEls=d},EE=function(a,b){var c=$APP.G($APP.k(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.kj);var d=$APP.k(a,"__xScrollTimelineDateEls");var e=$APP.n(d)?d:[];d=b.length;for(var f=e.length,h=0;;)if(h<f){var l=e[h];$APP.n(l)&&l.remove();h+=1}else break;e=Array(d);for(f=0;;)if(f<d)h=b[f].getAttribute("data-date"),typeof h==="string"&&
14
+ $APP.I(h,"")?(l=document.createElement("span"),l.classList.add("tl-date"),l.textContent=h,c.appendChild(l),e[f]=l):e[f]=null,f+=1;else break;a.__xScrollTimelineDateEls=e},FE=function(a,b){var c=$APP.G($APP.k(a,"__xScrollTimelineRefs")),d=$APP.C(c,$APP.kj),e=$APP.C(c,jE),f=$APP.C(c,kE);c=$APP.C(c,lE);var h=function(){var H=$APP.k(a,"__xScrollTimelineModel");return $APP.n(H)?H:wE(a)}(),l=$APP.to.i(h);h=d.getBoundingClientRect();var m=h.top;d=h.height;var q=h.width,r=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-curve-amplitude");
15
+ h=function(){var H=parseFloat(r);return $APP.n(isNaN(H))?60:H}();var v=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),x=function(){var H=parseFloat(v);return $APP.n(isNaN(H))?7:H/2}(),z=function(){switch(l){case "left":return x;case "right":return q-x;default:return q*.5}}(),B=b.length;if(B>0){var E=function(){for(var H=0,K=$APP.ye;;){if(H>=B)return K;var J=b[H].getBoundingClientRect(),P=H+1;K=$APP.wd.j(K,new $APP.O(null,2,[$APP.$p,J.top+J.height/2-m,fE,cE(l,H)],null));
16
+ H=P}}();h=gE(E,h,z);e.setAttribute("viewBox","0 0 "+$APP.V.i(q)+" "+$APP.V.i(d));f.setAttribute("d",h);c.setAttribute("d",h);c.setAttribute("stroke-dasharray","1");c.setAttribute("stroke-dashoffset","1")}},GE=function(a,b,c){$APP.n(a)&&(b>=0&&b<a.length&&(b=a[b],$APP.n(b)&&b.removeAttribute("data-active")),c>=0&&c<a.length&&(a=a[c],$APP.n(a)&&a.setAttribute("data-active","")))},HE=function(a){var b=$APP.k(a,"__xScrollTimelineModel");b=$APP.n(b)?b:wE(a);if(!$APP.n($APP.Bi.i(b))){var c=xE(a),d=c.length,
17
+ e=window.innerHeight,f=e*$APP.iq.i(b),h;a:{var l=c.length,m=0;for(h=$APP.ye;;){if(m>=l)break a;var q=c[m].getBoundingClientRect();m+=1;h=$APP.wd.j(h,new $APP.O(null,2,[$APP.Am,q.top,$APP.No,q.top+q.height],null))}h=void 0}a:if(l=h,m=$APP.y(l),m===0)l=-1;else{q=0;for(var r=-1,v=-1;;){if(q>=m){l=r>=0?r:v;break a}var x=$APP.tc(l,q),z=$APP.G(x);x=$APP.C(z,$APP.Am);z=$APP.C(z,$APP.No);r=x<=f&&z>f?q:r;v=x<=f?q:v;q+=1}l=void 0}m=$APP.G($APP.k(a,"__xScrollTimelineRefs"));m=$APP.C(m,$APP.kj).getBoundingClientRect();
18
+ e=$APP.Gl.j(0,$APP.Hl.j(1,(e-m.top)/(e+m.height)));m=eE(h,l,f);d=l>=0&&l<d?zE(c[l]):null;q=l;r=$APP.k(a,"__xScrollTimelineActiveIndex");r=$APP.n(r)?r:-1;$APP.I(r,q)&&(GE(c,r,q),GE($APP.k(a,"__xScrollTimelineMarkerEls"),r,q),GE($APP.k(a,"__xScrollTimelineDateEls"),r,q),q>=0?$APP.S(a,"data-active-index",""+$APP.V.i(q)):$APP.T(a,"data-active-index"),a.__xScrollTimelineActiveIndex=q,$APP.Nh(a,"x-scroll-timeline-entry-change",{index:q,id:q>=0&&q<c.length?zE(c[q]):null,previousIndex:r,previousId:r>=0&&
19
+ r<c.length?zE(c[r]):null}),AE(a,"Entry "+$APP.V.i(q+1)+" active"));q=c.length;r=$APP.k(a,"__xScrollTimelineEntryStates");if(!$APP.n($APP.n(r)?$APP.A.j(r.length,q):r)){v=Array(q);for(x=0;;)if(x<q)v[x]=$APP.n($APP.n(r)?x<r.length:r)?r[x]:!1,x+=1;else break;r=a.__xScrollTimelineEntryStates=v}for(v=0;;)if(v<q){if(v<$APP.y(h)){x=$APP.tc(h,v);x=$APP.G(x);var B=$APP.C(x,$APP.Am),E=$APP.C(x,$APP.No),H=r[v];x=B<=f&&E>f;z=zE(c[v]);B=dE(B,E-B,f);$APP.p(H)&&x?(r[v]=!0,$APP.Nh(a,"x-scroll-timeline-entry-enter",
20
+ {index:v,id:z,progress:B})):$APP.n($APP.n(H)?!x:H)&&(r[v]=!1,$APP.Nh(a,"x-scroll-timeline-entry-leave",{index:v,id:z,progress:B}))}v+=1}else break;b=$APP.G(b);c=$APP.C(b,$APP.mn);b=$APP.C(b,vE);$APP.A.j(c,"curved")?(c=$APP.G($APP.k(a,"__xScrollTimelineRefs")),c=$APP.C(c,lE),$APP.n(b)?c.setAttribute("stroke-dashoffset","1"):c.setAttribute("stroke-dashoffset",""+$APP.V.i(1-m))):(c=$APP.G($APP.k(a,"__xScrollTimelineRefs")),c=$APP.C(c,iE),$APP.n(b)?c.style.height="0%":c.style.height=""+$APP.V.i(m*100)+
21
+ "%");b=$APP.k(a,"__xScrollTimelineLastProg");if(b==null||Math.abs(e-b)>.001)a.__xScrollTimelineLastProg=e,$APP.Nh(a,"x-scroll-timeline-progress",{progress:e,activeIndex:l,activeId:d})}a.__xScrollTimelineRAF=null},IE=function(a){return function d(c){if($APP.n(function(){var h=a.isConnected;return $APP.n(h)?(h=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(h)?$APP.p($APP.k(a,"__xScrollTimelineAutoplayPaused")):h):h}())){var e=$APP.k(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(e)){var h=
22
+ $APP.Wm.i(e);return $APP.n(h)?$APP.p($APP.Bi.i(e)):h}return e}())){var f=$APP.k(a,"__xScrollTimelineAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;a.__xScrollTimelineAutoplayLast=c;f>0&&(window.scrollBy(0,$APP.$n.i(e)*f),$APP.n($APP.Jm.i(e))&&(f=window.scrollY,c=window.innerHeight,f+c>=document.documentElement.scrollHeight-1&&(f=a.getBoundingClientRect().top+f,window.scrollTo(0,$APP.Gl.j(0,f-c)),a.__xScrollTimelineAutoplayLast=null)));return $APP.ja(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},
23
+ JE=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused")))return null;a.__xScrollTimelineAutoplayPaused=!0;var b=$APP.k(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);$APP.S(a,"data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=xE(a);d=c>=0&&c<d.length?zE(d[c]):null;return $APP.Nh(a,
24
+ "x-scroll-timeline-autoplay-pause",{progress:b,activeIndex:c,activeId:d})},KE=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))){a.__xScrollTimelineAutoplayPaused=!1;$APP.T(a,"data-autoplay-paused");a.__xScrollTimelineAutoplayLast=null;$APP.ja(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(IE(a)));var b=function(){var e=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=xE(a);
25
+ d=c>=0&&c<d.length?zE(d[c]):null;return $APP.Nh(a,"x-scroll-timeline-autoplay-resume",{progress:b,activeIndex:c,activeId:d})}return null},LE=function(a){var b=$APP.k(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);b=$APP.k(a,"__xScrollTimelineAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),
26
+ a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollTimelineAutoplayHandlers=null);$APP.T(a,"data-autoplay-paused");$APP.T(a,"tabindex");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null},ME=function(a){if($APP.k(a,"__xScrollTimelineAutoplayRAF")==null){var b=$APP.k(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Wm.i(b);return $APP.n(l)?(l=$APP.p($APP.Bi.i(b)))?(l=$APP.k(a,"__xScrollTimelineVisible"),
27
+ $APP.n(l)?!yE():l):l:l}return b}())){$APP.S(a,"tabindex","0");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null;var c=function(){return JE(a)},d=function(){return KE(a)},e=function(){return $APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))?KE(a):null},f=function(l){return $APP.A.j(l.code,"Space")?(l.preventDefault(),JE(a)):null},h=function(l){return $APP.A.j(l.code,"Space")?KE(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",
28
+ e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.ja(a,"__xScrollTimelineAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});$APP.ja(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(IE(a)))}}return null},NE=function(a){a=$APP.k(a,"__xScrollTimelineModel");return $APP.n(a)?$APP.Bi.i(a):a},OE=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(b)?$APP.p(NE(a))&&!yE():b):b}())?$APP.n($APP.k(a,
29
+ "__xScrollTimelineRAF"))?null:$APP.ja(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return HE(a)})):null},PE=function(a){a=$APP.k(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},QE=function(a){a=$APP.k(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},RE=
30
+ function(a,b){b=b[0].isIntersecting;a.__xScrollTimelineVisible=b;if($APP.n(b)){if($APP.n(NE(a)))return null;PE(a);HE(a);AE(a,"Timeline entered viewport");$APP.Nh(a,"x-scroll-timeline-enter",{progress:function(){var c=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()});b=$APP.k(a,"__xScrollTimelineModel");return $APP.n($APP.n(b)?$APP.Wm.i(b):b)?ME(a):null}QE(a);LE(a);if($APP.n(NE(a)))return null;AE(a,"Timeline left viewport");return $APP.Nh(a,"x-scroll-timeline-leave",{progress:function(){var c=
31
+ $APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()})},SE=function(a){var b=function(){var d=$APP.k(a,"__xScrollTimelineModel");return $APP.n(d)?d:wE(a)}(),c=xE(a);BE(c,$APP.to.i(b));DE(a,c);EE(a,c);return requestAnimationFrame(function(){var d=xE(a),e=$APP.k(a,"__xScrollTimelineMarkerEls"),f=$APP.k(a,"__xScrollTimelineDateEls"),h=$APP.G($APP.k(a,"__xScrollTimelineRefs"));h=$APP.C(h,$APP.kj).getBoundingClientRect().top;var l=$APP.k(a,"__xScrollTimelineModel");l=$APP.n(l)?l:wE(a);l=$APP.to.i(l);
32
+ for(var m=d.length,q=0;;)if(q<m){var r=d[q].getBoundingClientRect();r=r.top+r.height/2-h;var v=cE(l,q),x=$APP.n(e)?e[q]:e;$APP.n(x)&&(x.style.top=""+$APP.V.i(r)+"px");x=$APP.n(f)?f[q]:f;$APP.n(x)&&(x.style.top=""+$APP.V.i(r)+"px",x.setAttribute("data-side",v));q+=1}else break;$APP.A.j($APP.mn.i(b),"curved")&&FE(a,d);return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?HE(a):null})},TE=function(a){function b(){return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?(a.__xScrollTimelineEntryStates=null,
33
+ SE(a)):null}function c(){a.__xScrollTimelineEntryStates=null;return SE(a)}var d=oE(a);d=$APP.G(d);$APP.C(d,$APP.un).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollTimelineHandlers",{scroll:function(){return OE(a)},slot:c,resize:b,scrollAttached:!1})},UE=function(a){var b=$APP.k(a,"__xScrollTimelineHandlers");if($APP.n(b)){QE(a);var c=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(c)){c=$APP.un.i(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",
34
+ d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollTimelineRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineRAF=null);a.__xScrollTimelineHandlers=null},VE=function(a){var b=$APP.k(a,"__xScrollTimelineIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return RE(a,c)},{threshold:[0]});b.observe(a);a.__xScrollTimelineIO=b},WE=function(a){var b=wE(a);if($APP.I($APP.k(a,"__xScrollTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Bi),
35
+ d=oE(a);d=$APP.G(d);d=$APP.C(d,$APP.kj);var e=$APP.k(a,"__xScrollTimelineModel"),f=$APP.G(b),h=$APP.C(f,$APP.to),l=$APP.C(f,$APP.mn);f=$APP.C(f,$APP.bp);$APP.S(a,"data-layout",h);$APP.S(a,"data-track",l);$APP.S(a,"data-marker",f);h=$APP.G(b);h=$APP.C(h,$APP.Z);$APP.t(h)?d.setAttribute("aria-label",h):d.removeAttribute("aria-label");a.__xScrollTimelineModel=b;$APP.n(c)?(CE(a),a.__xScrollTimelineActiveIndex=-1,a.__xScrollTimelineEntryStates=null,QE(a),LE(a)):$APP.n(e)&&($APP.I($APP.to.i(e),$APP.to.i(b))||
36
+ $APP.I($APP.mn.i(e),$APP.mn.i(b))||$APP.I($APP.bp.i(e),$APP.bp.i(b))||$APP.I($APP.Bi.i(e),$APP.Bi.i(b))?SE(a):($APP.I($APP.iq.i(e),$APP.iq.i(b))||$APP.I(vE.i(e),vE.i(b)))&&$APP.n($APP.k(a,"__xScrollTimelineVisible"))&&HE(a));c=$APP.G(b);b=$APP.C(c,$APP.Wm);c=$APP.C(c,$APP.Bi);$APP.n(c)||($APP.n($APP.n(b)?$APP.k(a,"__xScrollTimelineVisible"):b)?ME(a):LE(a))}},XE=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
37
+ $APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},YE=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return d.i?d.i(e):d.call(null,e)},set:function(e){return e!=null?this.setAttribute(c,""+$APP.V.i(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},ZE=function(a,b,c,d){return Object.defineProperty(a,b,{get:function(){var e=$APP.k(this,c);return e!=null?e:d},enumerable:!0,configurable:!0})},
38
+ $E=function(a){$APP.Th(a,"layout","layout","alternating");$APP.Th(a,"track","track","straight");$APP.Th(a,"marker","marker","dot");XE(a);YE(a,"threshold","threshold",aE);$APP.Sh(a,"noProgress","no-progress");$APP.Sh(a,"disabled","disabled");$APP.Sh(a,"autoplay","autoplay");YE(a,"autoplaySpeed","autoplay-speed",bE);$APP.Sh(a,"autoplayLoop","autoplay-loop");$APP.Sh(a,"autoplayIndicator","autoplay-indicator");ZE(a,"activeIndex","__xScrollTimelineActiveIndex",-1);ZE(a,"progress","__xScrollTimelineLastProg",
39
+ 0);return ZE(a,"autoplayPaused","__xScrollTimelineAutoplayPaused",!1)},aF=function(a){oE(a);UE(a);TE(a);VE(a);WE(a);return null},bF=function(a){LE(a);CE(a);if($APP.n($APP.k(a,"__xScrollTimelineVisible"))){var b=$APP.k(a,"__xScrollTimelineLastProg");$APP.Nh(a,"x-scroll-timeline-leave",{progress:$APP.n(b)?b:0})}UE(a);b=$APP.k(a,"__xScrollTimelineIO");$APP.n(b)&&(b.disconnect(),a.__xScrollTimelineIO=null);a.__xScrollTimelineVisible=!1;a.__xScrollTimelineActiveIndex=-1;a.__xScrollTimelineLastProg=null;
40
+ return a.__xScrollTimelineEntryStates=null},cF=function(a,b,c,d){$APP.I(c,d)&&WE(a);return null},eF=function(){return $APP.Ah("x-scroll-timeline",new $APP.O(null,5,[$APP.qh,dF,$APP.oh,aF,$APP.lh,bF,$APP.kh,cF,$APP.ph,$E],null))},iE=new $APP.F(null,"track-fill","track-fill",1852369499),mE=new $APP.F(null,"entries","entries",-86943161),pE=new $APP.F(null,"marker-raw","marker-raw",2140891555),nE=new $APP.F(null,"indicator","indicator",1928219637),vE=new $APP.F(null,"no-progress?","no-progress?",-1599319890),
41
+ qE=new $APP.F(null,"track-raw","track-raw",751958776),kE=new $APP.F(null,"track-path","track-path",-1838135442),lE=new $APP.F(null,"fill-path","fill-path",-792439899),rE=new $APP.F(null,"no-progress-attr","no-progress-attr",115951679),jE=new $APP.F(null,"track-svg","track-svg",-556455964),fE=new $APP.F(null,"side","side",389652279),hE=new $APP.F(null,"track-line","track-line",1370628624);var dF="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
42
+ $APP.Wf([$APP.Kp,$APP.bm,$APP.Yo,$APP.ck,$APP.to,$APP.vo,$APP.bp,$APP.iq,$APP.Wq,$APP.Z,$APP.Lo,$APP.qq,new $APP.F(null,"noProgress","noProgress",-2114530658),$APP.mn],[new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,1,[$APP.Q,$APP.Y],null),new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,1,[$APP.Q,$APP.X],null),new $APP.O(null,2,[$APP.Q,$APP.Y,$APP.Ao,!0],null),new $APP.O(null,1,[$APP.Q,$APP.X],null),new $APP.O(null,1,[$APP.Q,$APP.Y],null),
43
+ new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.Ao,!0],null),new $APP.O(null,1,[$APP.Q,$APP.X],null),new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,2,[$APP.Q,$APP.Y,$APP.Ao,!0],null),new $APP.O(null,1,[$APP.Q,$APP.Xh],null),new $APP.O(null,1,[$APP.Q,$APP.X],null)]);
44
+ $APP.ce(["x-scroll-timeline-entry-change",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.sm,$APP.Y,$APP.Pp,$APP.X,$APP.eo,$APP.Y,$APP.pr,$APP.X],null),$APP.Aq,!1],null),"x-scroll-timeline-entry-enter",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.Pp,$APP.X,$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-timeline-entry-leave",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.Pp,$APP.X,$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-timeline-progress",new $APP.O(null,
45
+ 2,[$APP.U,new $APP.O(null,3,[$APP.qq,$APP.Y,$APP.vo,$APP.Y,$APP.Wp,$APP.X],null),$APP.Aq,!1],null),"x-scroll-timeline-enter",new $APP.O(null,2,[$APP.U,new $APP.O(null,1,[$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-timeline-leave",new $APP.O(null,2,[$APP.U,new $APP.O(null,1,[$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.qq,$APP.Y,$APP.vo,$APP.Y,$APP.Wp,$APP.X],null),$APP.Aq,!1],null),"x-scroll-timeline-autoplay-resume",
46
+ new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.qq,$APP.Y,$APP.vo,$APP.Y,$APP.Wp,$APP.X],null),$APP.Aq,!1],null)]);var sE=new $APP.pg(null,new $APP.O(null,3,["right",null,"left",null,"alternating",null],null),null),uE=new $APP.pg(null,new $APP.O(null,2,["curved",null,"straight",null],null),null),tE=new $APP.pg(null,new $APP.O(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.ha("baredom.exports.x_scroll_timeline.init",eF);export const init=eF;