@vanelsas/baredom 3.0.0 → 3.2.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 (136) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/custom-elements.json +3673 -2681
  3. package/dist/baredom.d.ts +91 -86
  4. package/dist/base.js +595 -541
  5. package/dist/integrity.json +108 -103
  6. package/dist/x-alert.js +17 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +14 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.d.ts +55 -0
  15. package/dist/x-calendar.js +40 -0
  16. package/dist/x-cancel-dialogue.js +14 -13
  17. package/dist/x-card.d.ts +1 -1
  18. package/dist/x-card.js +7 -7
  19. package/dist/x-carousel.d.ts +3 -0
  20. package/dist/x-carousel.js +35 -33
  21. package/dist/x-chart.js +47 -47
  22. package/dist/x-checkbox.js +1 -1
  23. package/dist/x-chip.js +1 -1
  24. package/dist/x-code.d.ts +48 -0
  25. package/dist/x-code.js +28 -0
  26. package/dist/x-collapse.d.ts +1 -0
  27. package/dist/x-collapse.js +11 -10
  28. package/dist/x-color-picker.js +46 -45
  29. package/dist/x-combobox.d.ts +2 -0
  30. package/dist/x-combobox.js +30 -26
  31. package/dist/x-command-palette.d.ts +3 -0
  32. package/dist/x-command-palette.js +28 -26
  33. package/dist/x-confetti.js +24 -24
  34. package/dist/x-container.js +5 -6
  35. package/dist/x-context-menu.d.ts +4 -0
  36. package/dist/x-context-menu.js +20 -20
  37. package/dist/x-copy.js +1 -21
  38. package/dist/x-currency-field.d.ts +2 -0
  39. package/dist/x-currency-field.js +24 -23
  40. package/dist/x-date-picker.d.ts +3 -0
  41. package/dist/x-date-picker.js +39 -42
  42. package/dist/x-divider.js +10 -9
  43. package/dist/x-drawer.js +11 -10
  44. package/dist/x-dropdown.d.ts +3 -0
  45. package/dist/x-dropdown.js +12 -11
  46. package/dist/x-fieldset.js +6 -5
  47. package/dist/x-file-download.js +7 -7
  48. package/dist/x-file-upload.d.ts +2 -0
  49. package/dist/x-file-upload.js +23 -22
  50. package/dist/x-form-field.js +15 -15
  51. package/dist/x-form.d.ts +4 -0
  52. package/dist/x-form.js +10 -9
  53. package/dist/x-gaussian-blur.js +13 -12
  54. package/dist/x-grid.js +6 -7
  55. package/dist/x-i18n-provider.js +7 -7
  56. package/dist/x-i18n.js +4 -4
  57. package/dist/x-icon.js +7 -7
  58. package/dist/x-image.js +17 -17
  59. package/dist/x-kbd.js +16 -16
  60. package/dist/x-kinetic-canvas.js +26 -25
  61. package/dist/x-kinetic-font.js +27 -27
  62. package/dist/x-kinetic-typography.js +35 -33
  63. package/dist/x-liquid-dock.js +34 -38
  64. package/dist/x-liquid-fill.js +42 -45
  65. package/dist/x-liquid-glass.js +41 -47
  66. package/dist/x-menu-item.js +8 -8
  67. package/dist/x-menu.js +10 -11
  68. package/dist/x-metaball-cursor.js +23 -26
  69. package/dist/x-modal.js +12 -11
  70. package/dist/x-morph-stack.d.ts +4 -0
  71. package/dist/x-morph-stack.js +37 -37
  72. package/dist/x-multi-combobox.js +36 -36
  73. package/dist/x-navbar.js +15 -12
  74. package/dist/x-neural-glow.js +30 -33
  75. package/dist/x-notification-center.d.ts +2 -0
  76. package/dist/x-notification-center.js +9 -9
  77. package/dist/x-organic-divider.js +18 -17
  78. package/dist/x-organic-progress.js +35 -37
  79. package/dist/x-organic-shape.js +14 -13
  80. package/dist/x-otp-input.js +22 -22
  81. package/dist/x-pagination.js +14 -15
  82. package/dist/x-particle-button.js +51 -51
  83. package/dist/x-popover.d.ts +3 -0
  84. package/dist/x-popover.js +27 -25
  85. package/dist/x-progress-circle.d.ts +3 -0
  86. package/dist/x-progress-circle.js +9 -9
  87. package/dist/x-progress.js +8 -10
  88. package/dist/x-proximity-list.js +20 -20
  89. package/dist/x-radio.js +11 -11
  90. package/dist/x-range-slider.d.ts +51 -0
  91. package/dist/x-range-slider.js +29 -0
  92. package/dist/x-rating.d.ts +49 -0
  93. package/dist/x-rating.js +24 -0
  94. package/dist/x-ripple-effect.js +10 -11
  95. package/dist/x-scroll-parallax.js +17 -18
  96. package/dist/x-scroll-stack.js +16 -17
  97. package/dist/x-scroll-story.js +33 -34
  98. package/dist/x-scroll-timeline.js +46 -45
  99. package/dist/x-scroll.d.ts +3 -0
  100. package/dist/x-scroll.js +38 -40
  101. package/dist/x-search-field.d.ts +2 -0
  102. package/dist/x-search-field.js +1 -1
  103. package/dist/x-select.js +1 -1
  104. package/dist/x-sidebar.js +18 -17
  105. package/dist/x-skeleton-group.js +12 -12
  106. package/dist/x-skeleton.js +1 -1
  107. package/dist/x-slider.js +16 -15
  108. package/dist/x-soft-body.js +20 -22
  109. package/dist/x-spacer.js +4 -4
  110. package/dist/x-spinner.js +4 -4
  111. package/dist/x-splash.js +12 -13
  112. package/dist/x-split-pane.d.ts +44 -0
  113. package/dist/x-split-pane.js +16 -0
  114. package/dist/x-spotlight-card.js +12 -12
  115. package/dist/x-stat.js +10 -10
  116. package/dist/x-stepper.js +13 -14
  117. package/dist/x-switch.js +11 -10
  118. package/dist/x-tab.js +7 -7
  119. package/dist/x-table-cell.js +21 -20
  120. package/dist/x-table-row.js +8 -8
  121. package/dist/x-table.d.ts +32 -32
  122. package/dist/x-table.js +13 -12
  123. package/dist/x-tabs.js +11 -11
  124. package/dist/x-text-area.js +19 -19
  125. package/dist/x-theme.js +25 -25
  126. package/dist/x-timeline-item.js +20 -20
  127. package/dist/x-timeline.js +8 -8
  128. package/dist/x-toast.d.ts +1 -0
  129. package/dist/x-toast.js +22 -22
  130. package/dist/x-toaster.js +7 -8
  131. package/dist/x-tooltip.d.ts +2 -0
  132. package/dist/x-tooltip.js +12 -12
  133. package/dist/x-trace-history.js +127 -117
  134. package/dist/x-typography.js +9 -9
  135. package/dist/x-welcome-tour.js +63 -61
  136. package/package.json +29 -2
@@ -1,35 +1,34 @@
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.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;
2
+ var x8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.uo.j(0,$APP.co.j(1,a))):.5},y8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.uo.j(.1,$APP.co.j(.9,a))):.5},z8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.uo.j(1,$APP.co.j(1E3,a))):50},msa=function(a,b){var c=$APP.w(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.xc(a,d),k=$APP.G(h);h=$APP.C(k,
3
+ $APP.pp);k=$APP.C(k,$APP.Qr);e=h<=b&&k>b?d:e;f=h<=b?d:f;d+=1}},B8=function(a){var b=$APP.l(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"),k=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
+ $APP.T(d,"part","container");$APP.T(d,"role","region");$APP.T(e,"part","media");$APP.T(h,"name","media");var q=document.createElement("div");$APP.T(q,"part","indicator");e.appendChild(q);e.appendChild(h);$APP.T(f,"part","steps");f.appendChild(k);d.appendChild(e);d.appendChild(f);$APP.T(m,"part","live");$APP.T(m,"aria-live","polite");$APP.T(m,"aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);$APP.Q(a,"__xScrollStoryRefs",new $APP.M(null,6,[$APP.Ak,b,$APP.Bk,d,A8,e,$APP.Nt,f,
5
+ $APP.Vm,k,$APP.Ep,m],null));return $APP.l(a,"__xScrollStoryRefs")},E8=function(a){a=$APP.Eg([$APP.yj,$APP.$q,$APP.tt,$APP.cp,$APP.Bs,$APP.Sp,$APP.mq,$APP.rt,C8],[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")]);var b=$APP.G(a);
6
+ a=$APP.C(b,$APP.mq);var c=$APP.C(b,$APP.rt),d=$APP.C(b,C8),e=$APP.C(b,$APP.yj),f=$APP.C(b,$APP.$q),h=$APP.C(b,$APP.tt),k=$APP.C(b,$APP.cp),m=$APP.C(b,$APP.Bs);b=$APP.C(b,$APP.Sp);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.cd(nsa,m)?m:"left";return $APP.Eg([$APP.vr,$APP.zp,$APP.ft,D8,$APP.Rj,$APP.Mp,$APP.Sj,$APP.ar,$APP.Pp],[m,c!=null,x8(k),y8(d),$APP.n(e)?e:"",b!=null,a!=null,z8(f),h!=null])},F8=function(a){a=B8(a);a=$APP.G(a);return $APP.C(a,$APP.Vm).assignedElements()},G8=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
7
+ H8=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.I(a,"")?a:null},I8=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},osa=function(a,b,c){var d=$APP.l(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.I(d,c)){d>=0&&d<b.length&&$APP.U(b[d],"data-active");c>=0&&c<b.length&&$APP.T(b[c],"data-active","");c>=0?$APP.T(a,"data-active-index",""+$APP.P.i(c)):$APP.U(a,"data-active-index");$APP.Q(a,"__xScrollStoryActiveIndex",c);var e=d>=0&&d<b.length?
8
+ H8(b[d]):null;b=c>=0&&c<b.length?H8(b[c]):null;$APP.dj(a,"x-scroll-story-step-change",$APP.bm(new $APP.M(null,4,[$APP.hp,c,$APP.Ms,b,$APP.er,d,$APP.tu,e],null)));a=$APP.G($APP.l(a,"__xScrollStoryRefs"));a=$APP.C(a,$APP.Ep);I8(a,"Step "+$APP.P.i(c+1)+" active")}},psa=function(a,b,c,d){var e=b.length;var f=$APP.l(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(f)?$APP.z.j(f.length,e):f)){for(var h=Array(e),k=0;;)if(k<e)h[k]=$APP.n($APP.n(f)?k<f.length:f)?f[k]:!1,k+=1;else break;$APP.Q(a,"__xScrollStoryStepStates",
9
+ h);f=h}for(h=0;;)if(h<e){if(h<$APP.w(c)){k=$APP.xc(c,h);k=$APP.G(k);var m=$APP.C(k,$APP.pp),q=$APP.C(k,$APP.Qr),u=f[h];k=m<=d&&q>d;var x=H8(b[h]),y=m;m=q-m;m=m<=0?0:$APP.uo.j(0,$APP.co.j(1,(d-y)/m));$APP.p(u)&&k?(f[h]=!0,$APP.dj(a,"x-scroll-story-step-enter",$APP.bm(new $APP.M(null,3,[$APP.hp,h,$APP.Ms,x,$APP.ot,m],null)))):$APP.n($APP.n(u)?!k:u)&&(f[h]=!1,$APP.dj(a,"x-scroll-story-step-leave",$APP.bm(new $APP.M(null,3,[$APP.hp,h,$APP.Ms,x,$APP.ot,m],null))))}h+=1}else break},J8=function(a){var b=
10
+ function(){var m=$APP.l(a,"__xScrollStoryModel");return $APP.n(m)?m:E8(a)}();if(!$APP.n($APP.Sj.i(b))){var c=F8(a),d=c.length,e=window.innerHeight,f=e*$APP.ft.i(b),h=function(){for(var m=0,q=$APP.Ee;;){if(m>=d)return q;var u=c[m].getBoundingClientRect();m+=1;q=$APP.Ad.j(q,new $APP.M(null,2,[$APP.pp,u.top,$APP.Qr,u.top+u.height],null))}}();b=msa(h,f);var k=$APP.G($APP.l(a,"__xScrollStoryRefs"));k=$APP.C(k,$APP.Nt).getBoundingClientRect();e=$APP.uo.j(0,$APP.co.j(1,(e-k.top)/(e+k.height)));k=$APP.l(a,
11
+ "__xScrollStoryLastProg");osa(a,c,b);psa(a,c,h,f);if(k==null||Math.abs(e-k)>.001)$APP.Q(a,"__xScrollStoryLastProg",e),f=b>=0&&b<d?H8(c[b]):null,$APP.dj(a,"x-scroll-story-progress",$APP.bm(new $APP.M(null,3,[$APP.ot,e,$APP.xr,b,$APP.Ss,f],null)))}return $APP.Yi(a,"__xScrollStoryRAF",null)},K8=function(a){return function d(c){if($APP.n(function(){var k=a.isConnected;return $APP.n(k)?(k=$APP.l(a,"__xScrollStoryVisible"),$APP.n(k)?$APP.p($APP.l(a,"__xScrollStoryAutoplayPaused")):k):k}())){var e=$APP.l(a,
12
+ "__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var k=$APP.Pp.i(e);return $APP.n(k)?$APP.p($APP.Sj.i(e)):k}return e}())){var f=$APP.l(a,"__xScrollStoryAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;$APP.Q(a,"__xScrollStoryAutoplayLast",c);if(f>0){var h=window.scrollY;window.scrollBy(0,$APP.ar.i(e)*f);$APP.n(function(){var k=$APP.zp.i(e);return $APP.n(k)?window.scrollY-h<.5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),$APP.Q(a,"__xScrollStoryAutoplayLast",null))}return $APP.Q(a,
13
+ "__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},L8=function(a){if($APP.n($APP.l(a,"__xScrollStoryAutoplayPaused")))return null;$APP.Q(a,"__xScrollStoryAutoplayPaused",!0);var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Q(a,"__xScrollStoryAutoplayRAF",null));$APP.T(a,"data-autoplay-paused","");b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollStoryActiveIndex");return $APP.n(e)?
14
+ e:-1}(),d=a.children;d=c>=0&&c<d.length?H8(d[c]):null;return $APP.dj(a,"x-scroll-story-autoplay-pause",$APP.bm(new $APP.M(null,3,[$APP.ot,b,$APP.xr,c,$APP.Ss,d],null)))},M8=function(a){if($APP.n($APP.l(a,"__xScrollStoryAutoplayPaused"))){$APP.Q(a,"__xScrollStoryAutoplayPaused",!1);$APP.U(a,"data-autoplay-paused");$APP.Q(a,"__xScrollStoryAutoplayLast",null);$APP.Q(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(K8(a)));var b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(e)?
15
+ e:0}(),c=function(){var e=$APP.l(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?H8(d[c]):null;return $APP.dj(a,"x-scroll-story-autoplay-resume",$APP.bm(new $APP.M(null,3,[$APP.ot,b,$APP.xr,c,$APP.Ss,d],null)))}return null},N8=function(a){var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Q(a,"__xScrollStoryAutoplayRAF",null));b=$APP.l(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",$APP.l(b,
16
+ "pointerdown")),a.removeEventListener("pointerup",$APP.l(b,"pointerup")),a.removeEventListener("pointerleave",$APP.l(b,"pointerleave")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),$APP.Q(a,"__xScrollStoryAutoplayHandlers",null));$APP.U(a,"data-autoplay-paused");$APP.U(a,"tabindex");$APP.Q(a,"__xScrollStoryAutoplayPaused",!1);return $APP.Q(a,"__xScrollStoryAutoplayLast",null)},O8=function(a){if($APP.l(a,"__xScrollStoryAutoplayRAF")!=null)return null;
17
+ var b=$APP.l(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var k=$APP.Pp.i(b);return $APP.n(k)?(k=$APP.p($APP.Sj.i(b)))?(k=$APP.l(a,"__xScrollStoryVisible"),$APP.n(k)?!G8():k):k:k}return b}())){$APP.T(a,"tabindex","0");$APP.Q(a,"__xScrollStoryAutoplayPaused",!1);$APP.Q(a,"__xScrollStoryAutoplayLast",null);var c=function(){return L8(a)},d=function(){return M8(a)},e=function(){return $APP.n($APP.l(a,"__xScrollStoryAutoplayPaused"))?M8(a):null},f=function(k){return $APP.z.j(k.code,"Space")?
18
+ (k.preventDefault(),L8(a)):null},h=function(k){return $APP.z.j(k.code,"Space")?M8(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.Q(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});return $APP.Q(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(K8(a)))}return null},P8=function(a){a=$APP.l(a,"__xScrollStoryModel");return $APP.n(a)?
19
+ $APP.Sj.i(a):a},qsa=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.p(P8(a))&&!G8():b):b}())?$APP.n($APP.l(a,"__xScrollStoryRAF"))?null:$APP.Yi(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return J8(a)})):null},Q8=function(a){a=$APP.l(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.p($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},R8=function(a){a=
20
+ $APP.l(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},rsa=function(a,b){b=b[0].isIntersecting;var c=$APP.G($APP.l(a,"__xScrollStoryRefs"));c=$APP.C(c,$APP.Ep);$APP.Q(a,"__xScrollStoryVisible",b);if($APP.n(b)){if($APP.n(P8(a)))return null;Q8(a);J8(a);I8(c,"Story section entered viewport");$APP.dj(a,"x-scroll-story-enter",$APP.bm(new $APP.M(null,1,[$APP.ot,function(){var d=$APP.l(a,"__xScrollStoryLastProg");
21
+ return $APP.n(d)?d:0}()],null)));b=$APP.l(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Pp.i(b):b)?O8(a):null}R8(a);N8(a);if($APP.n(P8(a)))return null;I8(c,"Story section left viewport");return $APP.dj(a,"x-scroll-story-leave",$APP.bm(new $APP.M(null,1,[$APP.ot,function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null)))},ssa=function(a){function b(){return $APP.n($APP.l(a,"__xScrollStoryVisible"))?($APP.Q(a,"__xScrollStoryStepStates",null),J8(a)):null}function c(){$APP.Q(a,
22
+ "__xScrollStoryStepStates",null);return $APP.n($APP.l(a,"__xScrollStoryVisible"))?J8(a):null}var d=B8(a);d=$APP.G(d);$APP.C(d,$APP.Vm).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.Q(a,"__xScrollStoryHandlers",{scroll:function(){return qsa(a)},slot:c,resize:b,scrollAttached:!1})},S8=function(a){var b=$APP.l(a,"__xScrollStoryHandlers");if($APP.n(b)){R8(a);var c=$APP.l(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.Vm.i(c);var d=$APP.l(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",
23
+ d)}b=$APP.l(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Yi(a,"__xScrollStoryRAF",null));$APP.Q(a,"__xScrollStoryHandlers",null)},tsa=function(a){var b=$APP.l(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return rsa(a,c)},{threshold:[0]});b.observe(a);$APP.Q(a,"__xScrollStoryIO",b)},T8=function(a){a=F8(a);for(var b=a.length,c=0;;)if(c<b)$APP.U(a[c],"data-active"),c+=1;
24
+ else break},U8=function(a){var b=E8(a);if($APP.I($APP.l(a,"__xScrollStoryModel"),b)){var c=$APP.G(b),d=$APP.C(c,$APP.vr),e=$APP.C(c,D8);b=$APP.C(c,$APP.Sj);var f=$APP.C(c,$APP.Rj),h=B8(a),k=$APP.G(h);h=$APP.C(k,$APP.Bk);k=$APP.C(k,A8);$APP.T(a,"data-layout",d);$APP.z.j(d,"top")?k.style.width="":k.style.width="var(--x-scroll-story-media-width,"+$APP.P.i(e*100)+"%)";$APP.r(f)?$APP.T(h,"aria-label",f):$APP.U(h,"aria-label");$APP.Q(a,"__xScrollStoryModel",c);$APP.n(b)?(T8(a),$APP.Q(a,"__xScrollStoryActiveIndex",
25
+ -1),$APP.Q(a,"__xScrollStoryStepStates",null),R8(a),N8(a)):$APP.n($APP.l(a,"__xScrollStoryVisible"))&&(Q8(a),J8(a));c=$APP.Pp.i(c);b=$APP.n(c)?(b=$APP.p(b))?$APP.l(a,"__xScrollStoryVisible"):b:c;a=$APP.n(b)?O8(a):N8(a)}else a=null;return a},usa=function(a){$APP.lj(a,"layout","layout","left");$APP.oj(a,"threshold","threshold",x8);$APP.oj(a,"split","split",y8);$APP.ij(a,"disabled","disabled");$APP.ij(a,"autoplay","autoplay");$APP.oj(a,"autoplaySpeed","autoplay-speed",z8);$APP.ij(a,"autoplayLoop","autoplay-loop");
26
+ $APP.ij(a,"autoplayIndicator","autoplay-indicator");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)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.l(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=
27
+ $APP.l(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});return Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.D($APP.l(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},vsa=function(a){B8(a);S8(a);ssa(a);tsa(a);return U8(a)},wsa=function(a){N8(a);T8(a);if($APP.n($APP.l(a,"__xScrollStoryVisible"))){var b=$APP.l(a,"__xScrollStoryLastProg");$APP.dj(a,"x-scroll-story-leave",$APP.bm(new $APP.M(null,1,[$APP.ot,$APP.n(b)?b:0],
28
+ null)))}S8(a);b=$APP.l(a,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),$APP.Q(a,"__xScrollStoryIO",null));$APP.Q(a,"__xScrollStoryVisible",!1);$APP.Q(a,"__xScrollStoryActiveIndex",-1);$APP.Q(a,"__xScrollStoryLastProg",null);return $APP.Q(a,"__xScrollStoryStepStates",null)},xsa=function(a,b,c,d){return $APP.I(c,d)?U8(a):null},V8=function(){return $APP.xi("x-scroll-story",new $APP.M(null,5,[$APP.hi,ysa,$APP.fi,vsa,$APP.ci,wsa,$APP.bi,xsa,$APP.gi,usa],null))},A8=new $APP.F(null,"media","media",-1066138403),
29
+ C8=new $APP.F(null,"split-raw","split-raw",-455766786),D8=new $APP.F(null,"split","split",-599435118);var ysa="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
30
+ $APP.Eg([$APP.Is,$APP.No,$APP.Vr,$APP.um,$APP.vr,$APP.xr,$APP.ft,$APP.Wt,D8,$APP.Rj,$APP.Or,$APP.ot],[new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,1,[$APP.O,$APP.Z],null),new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,1,[$APP.O,$APP.X],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.Cr,!0],null),new $APP.M(null,1,[$APP.O,$APP.Z],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.Cr,!0],null),new $APP.M(null,1,[$APP.O,$APP.Z],null),new $APP.M(null,
31
+ 1,[$APP.O,$APP.X],null),new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.Cr,!0],null)]);
32
+ $APP.he(["x-scroll-story-step-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.hp,$APP.Z,$APP.Ms,$APP.X,$APP.er,$APP.Z,$APP.tu,$APP.X],null),$APP.yt,!1],null),"x-scroll-story-step-enter",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.hp,$APP.Z,$APP.Ms,$APP.X,$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-story-step-leave",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.hp,$APP.Z,$APP.Ms,$APP.X,$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-story-progress",new $APP.M(null,2,[$APP.V,
33
+ new $APP.M(null,3,[$APP.ot,$APP.Z,$APP.xr,$APP.Z,$APP.Ss,$APP.X],null),$APP.yt,!1],null),"x-scroll-story-enter",new $APP.M(null,2,[$APP.V,new $APP.M(null,1,[$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-story-leave",new $APP.M(null,2,[$APP.V,new $APP.M(null,1,[$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-story-autoplay-pause",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.ot,$APP.Z,$APP.xr,$APP.Z,$APP.Ss,$APP.X],null),$APP.yt,!1],null),"x-scroll-story-autoplay-resume",new $APP.M(null,
34
+ 2,[$APP.V,new $APP.M(null,3,[$APP.ot,$APP.Z,$APP.xr,$APP.Z,$APP.Ss,$APP.X],null),$APP.yt,!1],null)]);var nsa=new $APP.ah(null,new $APP.M(null,3,["right",null,"top",null,"left",null],null),null);$APP.fa("baredom.exports.x_scroll_story.init",V8);export const init=V8;
@@ -1,46 +1,47 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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;
2
+ var xH=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.uo.j(0,$APP.co.j(1,a))):.5},yH=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.uo.j(1,$APP.co.j(1E3,a))):50},zH=function(a,b){switch(a){case "alternating":return $APP.sd(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},AH=function(a,b,c){return b<=0?0:$APP.uo.j(0,$APP.co.j(1,(c-a)/b))},maa=function(a,b,c){function d(q){return($APP.pp.i(q)+
3
+ $APP.Qr.i(q))/2}var e=$APP.w(a);if(e<2||b<0)return 0;var f=d($APP.xc(a,0)),h=d($APP.xc(a,e-1))-f,k=$APP.xc(a,b),m=d(k);c=AH($APP.pp.i(k),$APP.Qr.i(k)-$APP.pp.i(k),c);a=b<e-1?d($APP.xc(a,b+1)):m;return h<=0?1:$APP.uo.j(0,$APP.co.j(1,(m+c*(a-m)-f)/h))},naa=function(a,b,c){var d=$APP.w(a);if(d===0)return"";if($APP.z.j(d,1))return a=$APP.t(a),a=$APP.G(a),a=$APP.C(a,$APP.Ws),"M "+$APP.P.i(c)+" "+$APP.P.i(a);var e=$APP.t(a),f=$APP.Ws.i(e);e=0;for(f=new $APP.J(null,1,5,$APP.K,["M "+$APP.P.i(c)+" "+$APP.P.i(f)],
4
+ null);;){if(e>=d-1)return $APP.Bi(" ",f);var h=$APP.xc(a,e),k=$APP.xc(a,e+1),m=$APP.Ws.i(h),q=$APP.Ws.i(k);h=BH.i(h);var u=BH.i(k);k=$APP.z.j(h,"left")?-b:b;u=$APP.z.j(u,"left")?-b:b;h=m+(q-m)*.33;u=c+u;m+=(q-m)*.66;var x=c;e+=1;f=$APP.Ad.j(f,"C "+$APP.P.i(c+k)+" "+$APP.P.i(h)+" "+$APP.P.i(u)+" "+$APP.P.i(m)+" "+$APP.P.i(x)+" "+$APP.P.i(q))}},HH=function(a){var b=$APP.l(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");$APP.T(e,"part","track");$APP.T(f,"part","track-line");$APP.T(h,"part","track-fill");e.appendChild(f);e.appendChild(h);e=new $APP.M(null,3,[$APP.lq,e,CH,f,$APP.Tp,h],null);f=document.createElementNS("http://www.w3.org/2000/svg","svg");h=document.createElementNS("http://www.w3.org/2000/svg","path");var k=document.createElementNS("http://www.w3.org/2000/svg","path");$APP.T(f,"part","track-svg");$APP.T(f,
6
+ "aria-hidden","true");$APP.T(f,"focusable","false");$APP.T(h,"part","track-path");$APP.T(k,"part","track-fill-path");$APP.T(k,"pathLength","1");f.appendChild(h);f.appendChild(k);f=new $APP.M(null,3,[DH,f,EH,h,FH,k],null);h=document.createElement("div");k=document.createElement("slot");$APP.T(h,"part","entries");h.appendChild(k);h=new $APP.M(null,2,[GH,h,$APP.Vm,k],null);k=document.createElement("div");$APP.T(k,"part","indicator");var m=document.createElement("div");$APP.T(m,"part","live");$APP.T(m,
7
+ "aria-live","polite");$APP.T(m,"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
+ $APP.T(d,"part","container");$APP.T(d,"role","feed");d.appendChild($APP.lq.i(e));d.appendChild(GH.i(h));d.appendChild(DH.i(f));d.appendChild(k);b.appendChild(c);b.appendChild(d);b.appendChild(m);$APP.Q(a,"__xScrollTimelineRefs",$APP.Eg([$APP.Vm,DH,FH,GH,EH,CH,$APP.Ak,$APP.Bk,oaa,$APP.Ep,$APP.Tp,$APP.lq],[$APP.Vm.i(h),DH.i(f),FH.i(f),GH.i(h),EH.i(f),CH.i(e),b,d,k,m,$APP.Tp.i(e),$APP.lq.i(e)]));return $APP.l(a,"__xScrollTimelineRefs")},MH=function(a){a=$APP.Eg([$APP.yj,IH,$APP.$q,$APP.tt,$APP.cp,$APP.Bs,
9
+ $APP.Sp,JH,$APP.mq,$APP.rt,KH],[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.mq);var c=$APP.C(b,$APP.rt),d=$APP.C(b,KH),
10
+ e=$APP.C(b,$APP.yj),f=$APP.C(b,IH),h=$APP.C(b,$APP.$q),k=$APP.C(b,$APP.tt),m=$APP.C(b,$APP.cp),q=$APP.C(b,$APP.Bs),u=$APP.C(b,$APP.Sp);b=$APP.C(b,JH);q=typeof q==="string"?q.trim().toLowerCase():null;q=$APP.cd(paa,q)?q:"alternating";f=typeof f==="string"?f.trim().toLowerCase():null;f=$APP.cd(qaa,f)?f:"dot";m=xH(m);e=$APP.n(e)?e:"";h=yH(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.cd(raa,b)?b:"straight";return $APP.Eg([$APP.vr,$APP.Zr,$APP.zp,LH,$APP.ft,$APP.Rj,$APP.Mp,$APP.Sj,$APP.ar,
11
+ $APP.lq,$APP.Pp],[q,f,c!=null,d!=null,m,e,u!=null,a!=null,h,b,k!=null])},NH=function(a){a=HH(a);a=$APP.G(a);return $APP.C(a,$APP.Vm).assignedElements()},OH=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},PH=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.I(a,"")?a:null},QH=function(a,b){a=$APP.G($APP.l(a,"__xScrollTimelineRefs"));var c=$APP.C(a,$APP.Ep);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},saa=function(a,b){for(var c=
12
+ a.length,d=0;;)if(d<c){var e=a[d];$APP.T(e,"data-side",zH(b,d));$APP.T(e,"data-index",""+$APP.P.i(d));d+=1}else break},RH=function(a){a=NH(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.U(d,"data-active");$APP.U(d,"data-side");$APP.U(d,"data-index");c+=1}else break},taa=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.Bk);var d=$APP.l(a,"__xScrollTimelineMarkerEls");d=$APP.n(d)?d:[];b=b.length;for(var e=d.length,f=0;;)if(f<e)d[f].remove(),f+=1;else break;d=Array(b);
13
+ 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;$APP.Q(a,"__xScrollTimelineMarkerEls",d)},uaa=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.Bk);var d=$APP.l(a,"__xScrollTimelineDateEls");var e=$APP.n(d)?d:[];d=b.length;for(var f=e.length,h=0;;)if(h<f){var k=e[h];$APP.n(k)&&k.remove();h+=1}else break;e=Array(d);for(f=0;;)if(f<d)h=b[f].getAttribute("data-date"),typeof h==="string"&&$APP.I(h,"")?(k=
14
+ document.createElement("span"),k.classList.add("tl-date"),k.textContent=h,c.appendChild(k),e[f]=k):e[f]=null,f+=1;else break;$APP.Q(a,"__xScrollTimelineDateEls",e)},vaa=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),d=$APP.C(c,$APP.Bk),e=$APP.C(c,DH),f=$APP.C(c,EH);c=$APP.C(c,FH);var h=function(){var N=$APP.l(a,"__xScrollTimelineModel");return $APP.n(N)?N:MH(a)}(),k=$APP.vr.i(h);h=d.getBoundingClientRect();var m=h.top;d=h.height;var q=h.width,u=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-curve-amplitude");
15
+ h=function(){var N=parseFloat(u);return $APP.n(isNaN(N))?60:N}();var x=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),y=function(){var N=parseFloat(x);return $APP.n(isNaN(N))?7:N/2}(),A=function(){switch(k){case "left":return y;case "right":return q-y;default:return q*.5}}(),E=b.length;if(E>0){var H=function(){for(var N=0,S=$APP.Ee;;){if(N>=E)return S;var R=b[N].getBoundingClientRect(),Y=N+1;S=$APP.Ad.j(S,new $APP.M(null,2,[$APP.Ws,R.top+R.height/2-m,BH,zH(k,N)],null));
16
+ N=Y}}();h=naa(H,h,A);$APP.T(e,"viewBox","0 0 "+$APP.P.i(q)+" "+$APP.P.i(d));$APP.T(f,"d",h);$APP.T(c,"d",h);$APP.T(c,"stroke-dasharray","1");$APP.T(c,"stroke-dashoffset","1")}},SH=function(a,b,c){$APP.n(a)&&(b>=0&&b<a.length&&(b=a[b],$APP.n(b)&&$APP.U(b,"data-active")),c>=0&&c<a.length&&(a=a[c],$APP.n(a)&&$APP.T(a,"data-active","")))},TH=function(a){var b=$APP.l(a,"__xScrollTimelineModel");b=$APP.n(b)?b:MH(a);if(!$APP.n($APP.Sj.i(b))){var c=NH(a),d=c.length,e=window.innerHeight,f=e*$APP.ft.i(b),h;
17
+ a:{var k=c.length,m=0;for(h=$APP.Ee;;){if(m>=k)break a;var q=c[m].getBoundingClientRect();m+=1;h=$APP.Ad.j(h,new $APP.M(null,2,[$APP.pp,q.top,$APP.Qr,q.top+q.height],null))}h=void 0}a:if(k=h,m=$APP.w(k),m===0)k=-1;else{q=0;for(var u=-1,x=-1;;){if(q>=m){k=u>=0?u:x;break a}var y=$APP.xc(k,q),A=$APP.G(y);y=$APP.C(A,$APP.pp);A=$APP.C(A,$APP.Qr);u=y<=f&&A>f?q:u;x=y<=f?q:x;q+=1}k=void 0}m=$APP.G($APP.l(a,"__xScrollTimelineRefs"));m=$APP.C(m,$APP.Bk).getBoundingClientRect();e=$APP.uo.j(0,$APP.co.j(1,(e-
18
+ m.top)/(e+m.height)));m=maa(h,k,f);d=k>=0&&k<d?PH(c[k]):null;q=k;u=$APP.l(a,"__xScrollTimelineActiveIndex");u=$APP.n(u)?u:-1;$APP.I(u,q)&&(SH(c,u,q),SH($APP.l(a,"__xScrollTimelineMarkerEls"),u,q),SH($APP.l(a,"__xScrollTimelineDateEls"),u,q),q>=0?$APP.T(a,"data-active-index",""+$APP.P.i(q)):$APP.U(a,"data-active-index"),$APP.Q(a,"__xScrollTimelineActiveIndex",q),$APP.dj(a,"x-scroll-timeline-entry-change",{index:q,id:q>=0&&q<c.length?PH(c[q]):null,previousIndex:u,previousId:u>=0&&u<c.length?PH(c[u]):
19
+ null}),QH(a,"Entry "+$APP.P.i(q+1)+" active"));q=c.length;u=$APP.l(a,"__xScrollTimelineEntryStates");if(!$APP.n($APP.n(u)?$APP.z.j(u.length,q):u)){x=Array(q);for(y=0;;)if(y<q)x[y]=$APP.n($APP.n(u)?y<u.length:u)?u[y]:!1,y+=1;else break;$APP.Q(a,"__xScrollTimelineEntryStates",x);u=x}for(x=0;;)if(x<q){if(x<$APP.w(h)){y=$APP.xc(h,x);y=$APP.G(y);var E=$APP.C(y,$APP.pp),H=$APP.C(y,$APP.Qr),N=u[x];y=E<=f&&H>f;A=PH(c[x]);E=AH(E,H-E,f);$APP.p(N)&&y?(u[x]=!0,$APP.dj(a,"x-scroll-timeline-entry-enter",{index:x,
20
+ id:A,progress:E})):$APP.n($APP.n(N)?!y:N)&&(u[x]=!1,$APP.dj(a,"x-scroll-timeline-entry-leave",{index:x,id:A,progress:E}))}x+=1}else break;b=$APP.G(b);c=$APP.C(b,$APP.lq);b=$APP.C(b,LH);$APP.z.j(c,"curved")?(c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),c=$APP.C(c,FH),$APP.n(b)?$APP.T(c,"stroke-dashoffset","1"):$APP.T(c,"stroke-dashoffset",""+$APP.P.i(1-m))):(c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),c=$APP.C(c,$APP.Tp),$APP.n(b)?c.style.height="0%":c.style.height=""+$APP.P.i(m*100)+"%");b=k;c=$APP.l(a,
21
+ "__xScrollTimelineLastProg");if(c==null||Math.abs(e-c)>.001)$APP.Q(a,"__xScrollTimelineLastProg",e),$APP.dj(a,"x-scroll-timeline-progress",{progress:e,activeIndex:b,activeId:d})}return $APP.Yi(a,"__xScrollTimelineRAF",null)},UH=function(a){return function d(c){if($APP.n(function(){var h=a.isConnected;return $APP.n(h)?(h=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(h)?$APP.p($APP.l(a,"__xScrollTimelineAutoplayPaused")):h):h}())){var e=$APP.l(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(e)){var h=
22
+ $APP.Pp.i(e);return $APP.n(h)?$APP.p($APP.Sj.i(e)):h}return e}())){var f=$APP.l(a,"__xScrollTimelineAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;$APP.Q(a,"__xScrollTimelineAutoplayLast",c);f>0&&(window.scrollBy(0,$APP.ar.i(e)*f),$APP.n($APP.zp.i(e))&&(f=window.scrollY,c=window.innerHeight,f+c>=document.documentElement.scrollHeight-1&&(f=a.getBoundingClientRect().top+f,window.scrollTo(0,$APP.uo.j(0,f-c)),$APP.Q(a,"__xScrollTimelineAutoplayLast",null))));return $APP.Q(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},
23
+ VH=function(a){if($APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused")))return null;$APP.Q(a,"__xScrollTimelineAutoplayPaused",!0);var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Q(a,"__xScrollTimelineAutoplayRAF",null));$APP.T(a,"data-autoplay-paused","");b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=NH(a);d=c>=0&&c<d.length?PH(d[c]):
24
+ null;return $APP.dj(a,"x-scroll-timeline-autoplay-pause",{progress:b,activeIndex:c,activeId:d})},WH=function(a){if($APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused"))){$APP.Q(a,"__xScrollTimelineAutoplayPaused",!1);$APP.U(a,"data-autoplay-paused");$APP.Q(a,"__xScrollTimelineAutoplayLast",null);$APP.Q(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(UH(a)));var b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");
25
+ return $APP.n(e)?e:-1}(),d=NH(a);d=c>=0&&c<d.length?PH(d[c]):null;return $APP.dj(a,"x-scroll-timeline-autoplay-resume",{progress:b,activeIndex:c,activeId:d})}return null},XH=function(a){var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Q(a,"__xScrollTimelineAutoplayRAF",null));b=$APP.l(a,"__xScrollTimelineAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",$APP.l(b,"pointerdown")),a.removeEventListener("pointerup",$APP.l(b,"pointerup")),a.removeEventListener("pointerleave",
26
+ $APP.l(b,"pointerleave")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),$APP.Q(a,"__xScrollTimelineAutoplayHandlers",null));$APP.U(a,"data-autoplay-paused");$APP.U(a,"tabindex");$APP.Q(a,"__xScrollTimelineAutoplayPaused",!1);return $APP.Q(a,"__xScrollTimelineAutoplayLast",null)},YH=function(a){if($APP.l(a,"__xScrollTimelineAutoplayRAF")!=null)return null;var b=$APP.l(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(b)){var k=$APP.Pp.i(b);
27
+ return $APP.n(k)?(k=$APP.p($APP.Sj.i(b)))?(k=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(k)?!OH():k):k:k}return b}())){$APP.T(a,"tabindex","0");$APP.Q(a,"__xScrollTimelineAutoplayPaused",!1);$APP.Q(a,"__xScrollTimelineAutoplayLast",null);var c=function(){return VH(a)},d=function(){return WH(a)},e=function(){return $APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused"))?WH(a):null},f=function(k){return $APP.z.j(k.code,"Space")?(k.preventDefault(),VH(a)):null},h=function(k){return $APP.z.j(k.code,"Space")?
28
+ WH(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.Q(a,"__xScrollTimelineAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});return $APP.Q(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(UH(a)))}return null},ZH=function(a){a=$APP.l(a,"__xScrollTimelineModel");return $APP.n(a)?$APP.Sj.i(a):a},waa=function(a){return $APP.n(function(){var b=
29
+ a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(b)?$APP.p(ZH(a))&&!OH():b):b}())?$APP.n($APP.l(a,"__xScrollTimelineRAF"))?null:$APP.Yi(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return TH(a)})):null},xaa=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.p($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},$H=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");
30
+ $APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},yaa=function(a,b){b=b[0].isIntersecting;$APP.Q(a,"__xScrollTimelineVisible",b);if($APP.n(b)){if($APP.n(ZH(a)))return null;xaa(a);TH(a);QH(a,"Timeline entered viewport");$APP.dj(a,"x-scroll-timeline-enter",{progress:function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()});b=$APP.l(a,"__xScrollTimelineModel");return $APP.n($APP.n(b)?$APP.Pp.i(b):b)?YH(a):
31
+ null}$H(a);XH(a);if($APP.n(ZH(a)))return null;QH(a,"Timeline left viewport");return $APP.dj(a,"x-scroll-timeline-leave",{progress:function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()})},aI=function(a){var b=function(){var d=$APP.l(a,"__xScrollTimelineModel");return $APP.n(d)?d:MH(a)}(),c=NH(a);saa(c,$APP.vr.i(b));taa(a,c);uaa(a,c);return requestAnimationFrame(function(){if($APP.n(a.isConnected)){var d=NH(a),e=$APP.l(a,"__xScrollTimelineMarkerEls"),f=$APP.l(a,"__xScrollTimelineDateEls"),
32
+ h=$APP.G($APP.l(a,"__xScrollTimelineRefs"));h=$APP.C(h,$APP.Bk).getBoundingClientRect().top;var k=$APP.l(a,"__xScrollTimelineModel");k=$APP.n(k)?k:MH(a);k=$APP.vr.i(k);for(var m=d.length,q=0;;)if(q<m){var u=d[q].getBoundingClientRect();u=u.top+u.height/2-h;var x=zH(k,q),y=$APP.n(e)?e[q]:e;$APP.n(y)&&(y.style.top=""+$APP.P.i(u)+"px");y=$APP.n(f)?f[q]:f;$APP.n(y)&&(y.style.top=""+$APP.P.i(u)+"px",$APP.T(y,"data-side",x));q+=1}else break;$APP.z.j($APP.lq.i(b),"curved")&&vaa(a,d);return $APP.n($APP.l(a,
33
+ "__xScrollTimelineVisible"))?TH(a):null}return null})},zaa=function(a){function b(){return $APP.n($APP.l(a,"__xScrollTimelineVisible"))?($APP.Q(a,"__xScrollTimelineEntryStates",null),aI(a)):null}function c(){$APP.Q(a,"__xScrollTimelineEntryStates",null);return aI(a)}var d=HH(a);d=$APP.G(d);$APP.C(d,$APP.Vm).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.Q(a,"__xScrollTimelineHandlers",{scroll:function(){return waa(a)},slot:c,resize:b,scrollAttached:!1})},bI=function(a){var b=
34
+ $APP.l(a,"__xScrollTimelineHandlers");if($APP.n(b)){$H(a);var c=$APP.l(a,"__xScrollTimelineRefs");if($APP.n(c)){c=$APP.Vm.i(c);var d=$APP.l(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollTimelineRAF");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Yi(a,"__xScrollTimelineRAF",null));$APP.Q(a,"__xScrollTimelineHandlers",null)},Aaa=function(a){var b=$APP.l(a,"__xScrollTimelineIO");$APP.n(b)&&b.disconnect();
35
+ b=new IntersectionObserver(function(c){return yaa(a,c)},{threshold:[0]});b.observe(a);$APP.Q(a,"__xScrollTimelineIO",b)},cI=function(a){var b=MH(a);if($APP.I($APP.l(a,"__xScrollTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Sj),d=HH(a);d=$APP.G(d);d=$APP.C(d,$APP.Bk);var e=$APP.l(a,"__xScrollTimelineModel"),f=$APP.G(b),h=$APP.C(f,$APP.vr),k=$APP.C(f,$APP.lq);f=$APP.C(f,$APP.Zr);$APP.T(a,"data-layout",h);$APP.T(a,"data-track",k);$APP.T(a,"data-marker",f);h=$APP.G(b);h=$APP.C(h,$APP.Rj);$APP.r(h)?
36
+ $APP.T(d,"aria-label",h):$APP.U(d,"aria-label");$APP.Q(a,"__xScrollTimelineModel",b);$APP.n(c)?(RH(a),$APP.Q(a,"__xScrollTimelineActiveIndex",-1),$APP.Q(a,"__xScrollTimelineEntryStates",null),$H(a),XH(a)):$APP.n(e)&&($APP.I($APP.vr.i(e),$APP.vr.i(b))||$APP.I($APP.lq.i(e),$APP.lq.i(b))||$APP.I($APP.Zr.i(e),$APP.Zr.i(b))||$APP.I($APP.Sj.i(e),$APP.Sj.i(b))?aI(a):($APP.I($APP.ft.i(e),$APP.ft.i(b))||$APP.I(LH.i(e),LH.i(b)))&&$APP.n($APP.l(a,"__xScrollTimelineVisible"))&&TH(a));c=$APP.G(b);b=$APP.C(c,$APP.Pp);
37
+ c=$APP.C(c,$APP.Sj);a=$APP.n(c)?null:$APP.n($APP.n(b)?$APP.l(a,"__xScrollTimelineVisible"):b)?YH(a):XH(a)}else a=null;return a},Baa=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.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0})},dI=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return d.i?d.i(e):
38
+ d.call(null,e)},set:function(e){return e!=null?$APP.T(this,c,""+$APP.P.i(e)):$APP.U(this,c)},enumerable:!0,configurable:!0})},eI=function(a,b,c,d){return Object.defineProperty(a,b,{get:function(){var e=$APP.l(this,c);return e!=null?e:d},enumerable:!0,configurable:!0})},Caa=function(a){$APP.lj(a,"layout","layout","alternating");$APP.lj(a,"track","track","straight");$APP.lj(a,"marker","marker","dot");Baa(a);dI(a,"threshold","threshold",xH);$APP.ij(a,"noProgress","no-progress");$APP.ij(a,"disabled",
39
+ "disabled");$APP.ij(a,"autoplay","autoplay");dI(a,"autoplaySpeed","autoplay-speed",yH);$APP.ij(a,"autoplayLoop","autoplay-loop");$APP.ij(a,"autoplayIndicator","autoplay-indicator");eI(a,"activeIndex","__xScrollTimelineActiveIndex",-1);eI(a,"progress","__xScrollTimelineLastProg",0);return eI(a,"autoplayPaused","__xScrollTimelineAutoplayPaused",!1)},Daa=function(a){HH(a);bI(a);zaa(a);Aaa(a);return cI(a)},Eaa=function(a){XH(a);RH(a);if($APP.n($APP.l(a,"__xScrollTimelineVisible"))){var b=$APP.l(a,"__xScrollTimelineLastProg");
40
+ $APP.dj(a,"x-scroll-timeline-leave",{progress:$APP.n(b)?b:0})}bI(a);b=$APP.l(a,"__xScrollTimelineIO");$APP.n(b)&&(b.disconnect(),$APP.Q(a,"__xScrollTimelineIO",null));$APP.Q(a,"__xScrollTimelineVisible",!1);$APP.Q(a,"__xScrollTimelineActiveIndex",-1);$APP.Q(a,"__xScrollTimelineLastProg",null);return $APP.Q(a,"__xScrollTimelineEntryStates",null)},Faa=function(a,b,c,d){return $APP.I(c,d)?cI(a):null},fI=function(){return $APP.xi("x-scroll-timeline",new $APP.M(null,5,[$APP.hi,Gaa,$APP.fi,Daa,$APP.ci,
41
+ Eaa,$APP.bi,Faa,$APP.gi,Caa],null))},GH=new $APP.F(null,"entries","entries",-86943161),IH=new $APP.F(null,"marker-raw","marker-raw",2140891555),oaa=new $APP.F(null,"indicator","indicator",1928219637),LH=new $APP.F(null,"no-progress?","no-progress?",-1599319890),JH=new $APP.F(null,"track-raw","track-raw",751958776),EH=new $APP.F(null,"track-path","track-path",-1838135442),FH=new $APP.F(null,"fill-path","fill-path",-792439899),KH=new $APP.F(null,"no-progress-attr","no-progress-attr",115951679),DH=new $APP.F(null,
42
+ "track-svg","track-svg",-556455964),BH=new $APP.F(null,"side","side",389652279),CH=new $APP.F(null,"track-line","track-line",1370628624);var Gaa="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
43
+ $APP.Eg([$APP.Is,$APP.No,$APP.Vr,$APP.um,$APP.vr,$APP.xr,$APP.Zr,$APP.ft,$APP.Wt,$APP.Rj,$APP.Or,$APP.ot,new $APP.F(null,"noProgress","noProgress",-2114530658),$APP.lq],[new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,1,[$APP.O,$APP.Z],null),new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,1,[$APP.O,$APP.X],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.pj,!0],null),new $APP.M(null,1,[$APP.O,$APP.X],null),new $APP.M(null,1,[$APP.O,$APP.Z],null),
44
+ new $APP.M(null,2,[$APP.O,$APP.qj,$APP.pj,!0],null),new $APP.M(null,1,[$APP.O,$APP.X],null),new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.pj,!0],null),new $APP.M(null,1,[$APP.O,$APP.qj],null),new $APP.M(null,1,[$APP.O,$APP.X],null)]);
45
+ $APP.he(["x-scroll-timeline-entry-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.hp,$APP.Z,$APP.Ms,$APP.X,$APP.er,$APP.Z,$APP.tu,$APP.X],null),$APP.yt,!1],null),"x-scroll-timeline-entry-enter",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.hp,$APP.Z,$APP.Ms,$APP.X,$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-timeline-entry-leave",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.hp,$APP.Z,$APP.Ms,$APP.X,$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-timeline-progress",new $APP.M(null,
46
+ 2,[$APP.V,new $APP.M(null,3,[$APP.ot,$APP.Z,$APP.xr,$APP.Z,$APP.Ss,$APP.X],null),$APP.yt,!1],null),"x-scroll-timeline-enter",new $APP.M(null,2,[$APP.V,new $APP.M(null,1,[$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-timeline-leave",new $APP.M(null,2,[$APP.V,new $APP.M(null,1,[$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.ot,$APP.Z,$APP.xr,$APP.Z,$APP.Ss,$APP.X],null),$APP.yt,!1],null),"x-scroll-timeline-autoplay-resume",
47
+ new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.ot,$APP.Z,$APP.xr,$APP.Z,$APP.Ss,$APP.X],null),$APP.yt,!1],null)]);var paa=new $APP.ah(null,new $APP.M(null,3,["right",null,"left",null,"alternating",null],null),null),raa=new $APP.ah(null,new $APP.M(null,2,["curved",null,"straight",null],null),null),qaa=new $APP.ah(null,new $APP.M(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.fa("baredom.exports.x_scroll_timeline.init",fI);export const init=fI;
@@ -21,6 +21,9 @@ export interface XScroll extends HTMLElement {
21
21
  gap: number;
22
22
  autoPlay: boolean;
23
23
  interval: number;
24
+ goTo(index: number): void;
25
+ next(): void;
26
+ prev(): void;
24
27
 
25
28
  addEventListener<K extends keyof XScrollEventMap>(
26
29
  type: K,