@vanelsas/baredom 2.6.0 → 2.8.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 (109) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +12 -41
  3. package/custom-elements.json +344 -5
  4. package/dist/baredom.d.ts +4 -0
  5. package/dist/base.js +451 -421
  6. package/dist/integrity.json +97 -93
  7. package/dist/x-alert.js +17 -19
  8. package/dist/x-avatar-group.js +9 -11
  9. package/dist/x-avatar.js +15 -15
  10. package/dist/x-badge.js +9 -11
  11. package/dist/x-bento-grid.js +5 -5
  12. package/dist/x-bento-item.js +4 -4
  13. package/dist/x-breadcrumbs.js +13 -14
  14. package/dist/x-button.js +16 -16
  15. package/dist/x-cancel-dialogue.js +13 -17
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +33 -34
  18. package/dist/x-chart.d.ts +26 -0
  19. package/dist/x-chart.js +47 -48
  20. package/dist/x-checkbox.js +11 -11
  21. package/dist/x-chip.js +1 -9
  22. package/dist/x-collapse.js +10 -12
  23. package/dist/x-color-picker.js +44 -45
  24. package/dist/x-combobox.js +26 -27
  25. package/dist/x-command-palette.js +26 -27
  26. package/dist/x-container.js +5 -6
  27. package/dist/x-context-menu.d.ts +31 -2
  28. package/dist/x-context-menu.js +20 -18
  29. package/dist/x-copy.js +20 -23
  30. package/dist/x-currency-field.js +23 -25
  31. package/dist/x-date-picker.d.ts +27 -0
  32. package/dist/x-date-picker.js +42 -42
  33. package/dist/x-divider.js +9 -10
  34. package/dist/x-drawer.js +10 -12
  35. package/dist/x-dropdown.js +11 -11
  36. package/dist/x-fieldset.js +5 -6
  37. package/dist/x-file-download.js +7 -8
  38. package/dist/x-file-upload.js +22 -25
  39. package/dist/x-form-field.js +15 -17
  40. package/dist/x-form.js +9 -10
  41. package/dist/x-gaussian-blur.js +13 -19
  42. package/dist/x-grid.js +6 -6
  43. package/dist/x-i18n-provider.d.ts +43 -0
  44. package/dist/x-i18n-provider.js +8 -0
  45. package/dist/x-i18n.d.ts +14 -0
  46. package/dist/x-i18n.js +5 -0
  47. package/dist/x-icon.js +6 -7
  48. package/dist/x-image.js +18 -19
  49. package/dist/x-kinetic-canvas.d.ts +18 -0
  50. package/dist/x-kinetic-canvas.js +26 -0
  51. package/dist/x-kinetic-font.js +27 -29
  52. package/dist/x-kinetic-typography.js +33 -39
  53. package/dist/x-liquid-dock.js +39 -39
  54. package/dist/x-liquid-fill.js +45 -45
  55. package/dist/x-liquid-glass.js +47 -47
  56. package/dist/x-menu-item.js +8 -10
  57. package/dist/x-menu.js +10 -11
  58. package/dist/x-metaball-cursor.js +27 -27
  59. package/dist/x-modal.js +11 -13
  60. package/dist/x-morph-stack.js +37 -39
  61. package/dist/x-multi-combobox.d.ts +50 -0
  62. package/dist/x-multi-combobox.js +37 -0
  63. package/dist/x-navbar.js +12 -13
  64. package/dist/x-neural-glow.js +33 -34
  65. package/dist/x-notification-center.js +9 -10
  66. package/dist/x-organic-divider.js +17 -19
  67. package/dist/x-organic-progress.js +38 -39
  68. package/dist/x-organic-shape.js +13 -14
  69. package/dist/x-pagination.js +15 -17
  70. package/dist/x-particle-button.js +51 -52
  71. package/dist/x-popover.js +26 -25
  72. package/dist/x-progress-circle.js +9 -11
  73. package/dist/x-progress.js +10 -11
  74. package/dist/x-radio.js +11 -12
  75. package/dist/x-ripple-effect.js +11 -12
  76. package/dist/x-scroll-parallax.js +18 -19
  77. package/dist/x-scroll-stack.js +17 -18
  78. package/dist/x-scroll-story.js +34 -36
  79. package/dist/x-scroll-timeline.js +45 -47
  80. package/dist/x-scroll.js +40 -42
  81. package/dist/x-search-field.js +15 -17
  82. package/dist/x-select.js +11 -11
  83. package/dist/x-sidebar.js +17 -17
  84. package/dist/x-skeleton-group.js +12 -14
  85. package/dist/x-skeleton.js +1 -1
  86. package/dist/x-slider.js +15 -18
  87. package/dist/x-soft-body.js +22 -22
  88. package/dist/x-spacer.js +4 -5
  89. package/dist/x-spinner.js +4 -6
  90. package/dist/x-splash.js +12 -13
  91. package/dist/x-stat.js +10 -12
  92. package/dist/x-stepper.js +14 -15
  93. package/dist/x-switch.js +10 -11
  94. package/dist/x-tab.js +7 -8
  95. package/dist/x-table-cell.js +20 -24
  96. package/dist/x-table-row.js +8 -10
  97. package/dist/x-table.js +12 -16
  98. package/dist/x-tabs.js +11 -11
  99. package/dist/x-text-area.js +19 -21
  100. package/dist/x-theme.d.ts +1 -1
  101. package/dist/x-theme.js +25 -25
  102. package/dist/x-timeline-item.js +21 -23
  103. package/dist/x-timeline.js +8 -9
  104. package/dist/x-toast.js +22 -24
  105. package/dist/x-toaster.js +8 -8
  106. package/dist/x-tooltip.js +12 -13
  107. package/dist/x-typography.js +9 -11
  108. package/dist/x-welcome-tour.js +60 -65
  109. package/package.json +201 -181
@@ -1,37 +1,35 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var C5=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.oh.i(0,$APP.ph.i(1,a))):.5},D5=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.oh.i(.1,$APP.ph.i(.9,a))):.5},E5=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.oh.i(1,$APP.ph.i(1E3,a))):50},F5=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,g=-1;;){if(d>=c)return e>=0?e:g;var h=$APP.pc(a,d),l=$APP.M(h);h=$APP.D(l,
3
- $APP.si);l=$APP.D(l,$APP.Kk);e=h<=b&&l>b?d:e;g=h<=b?d:g;d+=1}},H5=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"),g=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 p=document.createElement("div");p.setAttribute("part","indicator");e.appendChild(p);e.appendChild(h);g.setAttribute("part","steps");g.appendChild(l);d.appendChild(e);d.appendChild(g);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.Q(null,
5
- 6,[$APP.Hi,b,$APP.Hj,d,G5,e,$APP.Fm,g,$APP.kj,l,$APP.Fi,m],null);return $APP.k(a,"__xScrollStoryRefs")},L5=function(a){a=$APP.zf([$APP.pi,$APP.Vj,$APP.hm,$APP.Wh,$APP.ml,$APP.Ri,$APP.ej,$APP.fm,I5],[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.M(a);a=$APP.D(b,$APP.ej);var c=$APP.D(b,$APP.fm),d=$APP.D(b,I5),e=$APP.D(b,$APP.pi),g=$APP.D(b,$APP.Vj),h=$APP.D(b,$APP.hm),l=$APP.D(b,$APP.Wh),m=$APP.D(b,$APP.ml);b=$APP.D(b,$APP.Ri);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.I(J5,m)?m:"left";return $APP.zf([$APP.qk,$APP.Ai,$APP.Ul,K5,$APP.U,$APP.Ki,$APP.X,$APP.Wj,$APP.Ni],[m,c!=null,C5(l),D5(d),$APP.n(e)?e:"",b!=null,a!=null,E5(g),h!=null])},M5=function(a){a=H5(a);a=$APP.M(a);return $APP.D(a,$APP.kj).assignedElements()},
7
- N5=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},O5=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.N(a,"")?a:null},P5=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},Q5=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},R5=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.N(d,c)){d>=0&&d<b.length&&
8
- b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?a.setAttribute("data-active-index",""+$APP.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?O5(b[d]):null;b=c>=0&&c<b.length?O5(b[c]):null;P5(a,"x-scroll-story-step-change",new $APP.Q(null,4,[$APP.ai,c,$APP.zl,b,$APP.ak,d,$APP.fn,e],null));a=$APP.M($APP.k(a,"__xScrollStoryRefs"));a=$APP.D(a,$APP.Fi);Q5(a,"Step "+$APP.T.g(c+1)+" active")}},S5=function(a,
9
- b,c,d){var e=b.length;var g=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(g)?$APP.B.i(g.length,e):g)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(g)?l<g.length:g)?g[l]:!1,l+=1;else break;g=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.pc(c,h);l=$APP.M(l);var m=$APP.D(l,$APP.si),p=$APP.D(l,$APP.Kk),q=g[h];l=m<=d&&p>d;var v=O5(b[h]),x=m;m=p-m;m=m<=0?0:$APP.oh.i(0,$APP.ph.i(1,(d-x)/m));$APP.r(q)&&l?(g[h]=!0,P5(a,"x-scroll-story-step-enter",new $APP.Q(null,3,[$APP.ai,
10
- h,$APP.zl,v,$APP.cm,m],null))):$APP.n($APP.n(q)?!l:q)&&(g[h]=!1,P5(a,"x-scroll-story-step-leave",new $APP.Q(null,3,[$APP.ai,h,$APP.zl,v,$APP.cm,m],null)))}h+=1}else break},T5=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:L5(a)}();if(!$APP.n($APP.X.g(b))){var c=M5(a),d=c.length,e=window.innerHeight,g=e*$APP.Ul.g(b),h=function(){for(var m=0,p=$APP.fe;;){if(m>=d)return p;var q=c[m].getBoundingClientRect();m+=1;p=$APP.ld.i(p,new $APP.Q(null,2,[$APP.si,q.top,$APP.Kk,
11
- q.top+q.height],null))}}();b=F5(h,g);var l=$APP.M($APP.k(a,"__xScrollStoryRefs"));l=$APP.D(l,$APP.Fm).getBoundingClientRect();e=$APP.oh.i(0,$APP.ph.i(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");R5(a,c,b);S5(a,c,h,g);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,g=b>=0&&b<d?O5(c[b]):null,P5(a,"x-scroll-story-progress",new $APP.Q(null,3,[$APP.cm,e,$APP.sk,b,$APP.Gl,g],null))}a.__xScrollStoryRAF=null},U5=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;
12
- return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?$APP.r($APP.k(a,"__xScrollStoryAutoplayPaused")):l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.Ni.g(e);return $APP.n(l)?$APP.r($APP.X.g(e)):l}return e}())){var g=$APP.k(a,"__xScrollStoryAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Wj.g(e)*g);$APP.n(function(){var l=$APP.Ai.g(e);return $APP.n(l)?window.scrollY-h<
13
- .5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},V5=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");
14
- return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?O5(d[c]):null;return P5(a,"x-scroll-story-autoplay-pause",new $APP.Q(null,3,[$APP.cm,b,$APP.sk,c,$APP.Gl,d],null))},W5=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(U5(a)));
15
- var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?O5(d[c]):null;return P5(a,"x-scroll-story-autoplay-resume",new $APP.Q(null,3,[$APP.cm,b,$APP.sk,c,$APP.Gl,d],null))}return null},X5=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&
16
- (a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},Y5=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==
17
- null){var b=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Ni.g(b);return $APP.n(l)?(l=$APP.r($APP.X.g(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!N5():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return V5(a)},d=function(){return W5(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?W5(a):null},g=function(l){return $APP.B.i(l.code,"Space")?(l.preventDefault(),
18
- V5(a)):null},h=function(l){return $APP.B.i(l.code,"Space")?W5(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",g);a.addEventListener("keyup",h);$APP.ja(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:g,keyup:h});$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(U5(a)))}}return null},Z5=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.X.g(a):
19
- a},$5=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.r(Z5(a))&&!N5():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.ja(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return T5(a)})):null},a6=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},b6=function(a){a=$APP.k(a,
20
- "__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},c6=function(a,b){b=b[0].isIntersecting;var c=$APP.M($APP.k(a,"__xScrollStoryRefs"));c=$APP.D(c,$APP.Fi);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(Z5(a)))return null;a6(a);T5(a);Q5(c,"Story section entered viewport");P5(a,"x-scroll-story-enter",new $APP.Q(null,1,[$APP.cm,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?
21
- d:0}()],null));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Ni.g(b):b)?Y5(a):null}b6(a);X5(a);if($APP.n(Z5(a)))return null;Q5(c,"Story section left viewport");return P5(a,"x-scroll-story-leave",new $APP.Q(null,1,[$APP.cm,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null))},d6=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,T5(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.k(a,
22
- "__xScrollStoryVisible"))?T5(a):null}var d=H5(a);d=$APP.M(d);$APP.D(d,$APP.kj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStoryHandlers",{scroll:function(){return $5(a)},slot:c,resize:b,scrollAttached:!1})},e6=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){b6(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.kj.g(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",
23
- b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},f6=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return c6(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},g6=function(a){a=M5(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},h6=function(a){var b=L5(a);if($APP.N($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.M(b),
24
- d=$APP.D(c,$APP.qk),e=$APP.D(c,K5);b=$APP.D(c,$APP.X);var g=$APP.D(c,$APP.U),h=H5(a),l=$APP.M(h);h=$APP.D(l,$APP.Hj);l=$APP.D(l,G5);a.setAttribute("data-layout",d);$APP.B.i(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.T.g(e*100)+"%)";$APP.t(g)?h.setAttribute("aria-label",g):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(g6(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,b6(a),X5(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&
25
- (a6(a),T5(a));c=$APP.Ni.g(c);b=$APP.n(c)?(b=$APP.r(b))?$APP.k(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?Y5(a):X5(a)}},i6=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.T.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return C5(this.getAttribute("threshold"))},set:function(b){return b!=
26
- null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return D5(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.T.g(b)):this.removeAttribute("split")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},
27
- enumerable:!0,configurable:!0});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.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.k(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=
28
- $APP.k(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplay",{get:function(){return this.hasAttribute("autoplay")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplaySpeed",{get:function(){return E5(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},
29
- enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayLoop",{get:function(){return this.hasAttribute("autoplay-loop")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay-loop",""):this.removeAttribute("autoplay-loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayIndicator",{get:function(){return this.hasAttribute("autoplay-indicator")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay-indicator",""):this.removeAttribute("autoplay-indicator")},enumerable:!0,
30
- configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.F($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},k6=function(){var a=class extends HTMLElement{};a.observedAttributes=j6;a.prototype.connectedCallback=function(){H5(this);e6(this);d6(this);f6(this);h6(this);return null};a.prototype.disconnectedCallback=function(){X5(this);g6(this);if($APP.n($APP.k(this,"__xScrollStoryVisible"))){var b=$APP.k(this,"__xScrollStoryLastProg");P5(this,
31
- "x-scroll-story-leave",new $APP.Q(null,1,[$APP.cm,$APP.n(b)?b:0],null))}e6(this);b=$APP.k(this,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStoryIO=null);this.__xScrollStoryVisible=!1;this.__xScrollStoryActiveIndex=-1;return this.__xScrollStoryStepStates=this.__xScrollStoryLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&h6(this);return null};i6(a.prototype);return a},l6=function(){$APP.n(customElements.get("x-scroll-story"))||customElements.define("x-scroll-story",
32
- k6());return null},G5=new $APP.K(null,"media","media",-1066138403),I5=new $APP.K(null,"split-raw","split-raw",-455766786),K5=new $APP.K(null,"split","split",-599435118);var j6="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
33
- $APP.zf([$APP.tl,$APP.Jh,$APP.Ok,$APP.Pj,$APP.qk,$APP.sk,$APP.Ul,$APP.Mm,K5,$APP.U,$APP.Hk,$APP.cm],[new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.wk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
34
- 1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wk,!0],null)]);
35
- $APP.Pd(["x-scroll-story-step-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.ai,$APP.W,$APP.zl,$APP.Y,$APP.ak,$APP.W,$APP.fn,$APP.Y],null),$APP.lm,!1],null),"x-scroll-story-step-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ai,$APP.W,$APP.zl,$APP.Y,$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-story-step-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ai,$APP.W,$APP.zl,$APP.Y,$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-story-progress",new $APP.Q(null,2,[$APP.V,
36
- new $APP.Q(null,3,[$APP.cm,$APP.W,$APP.sk,$APP.W,$APP.Gl,$APP.Y],null),$APP.lm,!1],null),"x-scroll-story-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-story-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-story-autoplay-pause",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.cm,$APP.W,$APP.sk,$APP.W,$APP.Gl,$APP.Y],null),$APP.lm,!1],null),"x-scroll-story-autoplay-resume",new $APP.Q(null,
37
- 2,[$APP.V,new $APP.Q(null,3,[$APP.cm,$APP.W,$APP.sk,$APP.W,$APP.Gl,$APP.Y],null),$APP.lm,!1],null)]);var J5=new $APP.S(null,new $APP.Q(null,3,["right",null,"top",null,"left",null],null),null);$APP.ha("baredom.exports.x_scroll_story.init",l6);export const init=l6;
2
+ var B8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Hi.i(0,$APP.Ii.i(1,a))):.5},C8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Hi.i(.1,$APP.Ii.i(.9,a))):.5},D8=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Hi.i(1,$APP.Ii.i(1E3,a))):50},xba=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,f=-1;;){if(d>=c)return e>=0?e:f;var h=$APP.wc(a,d),l=$APP.J(h);h=$APP.C(l,
3
+ $APP.Bj);l=$APP.C(l,$APP.Rl);e=h<=b&&l>b?d:e;f=h<=b?d:f;d+=1}},F8=function(a){var b=$APP.k(a,"__xScrollStoryRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("slot"),m=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:300ms;--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100dvh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
+ d.setAttribute("part","container");d.setAttribute("role","region");e.setAttribute("part","media");h.setAttribute("name","media");var q=document.createElement("div");q.setAttribute("part","indicator");e.appendChild(q);e.appendChild(h);f.setAttribute("part","steps");f.appendChild(l);d.appendChild(e);d.appendChild(f);m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);a.__xScrollStoryRefs=new $APP.N(null,
5
+ 6,[$APP.Uh,b,$APP.Vh,d,E8,e,$APP.Rn,f,$APP.tk,l,$APP.Oj,m],null);return $APP.k(a,"__xScrollStoryRefs")},I8=function(a){a=$APP.Lf([$APP.Ch,$APP.gl,$APP.An,$APP.lj,$APP.ym,$APP.Zj,$APP.mk,$APP.yn,G8],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);
6
+ var b=$APP.J(a);a=$APP.C(b,$APP.mk);var c=$APP.C(b,$APP.yn),d=$APP.C(b,G8),e=$APP.C(b,$APP.Ch),f=$APP.C(b,$APP.gl),h=$APP.C(b,$APP.An),l=$APP.C(b,$APP.lj),m=$APP.C(b,$APP.ym);b=$APP.C(b,$APP.Zj);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.Zc(yba,m)?m:"left";return $APP.Lf([$APP.yl,$APP.Jj,$APP.ln,H8,$APP.X,$APP.Sj,$APP.Y,$APP.hl,$APP.Vj],[m,c!=null,B8(l),C8(d),$APP.n(e)?e:"",b!=null,a!=null,D8(f),h!=null])},J8=function(a){a=F8(a);a=$APP.J(a);return $APP.C(a,$APP.tk).assignedElements()},
7
+ K8=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},L8=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.M(a,"")?a:null},M8=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},zba=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.M(d,c)){d>=0&&d<b.length&&b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?a.setAttribute("data-active-index",
8
+ ""+$APP.Q.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?L8(b[d]):null;b=c>=0&&c<b.length?L8(b[c]):null;$APP.P(a,"x-scroll-story-step-change",$APP.Xi(new $APP.N(null,4,[$APP.qj,c,$APP.Lm,b,$APP.kl,d,$APP.so,e],null)));a=$APP.J($APP.k(a,"__xScrollStoryRefs"));a=$APP.C(a,$APP.Oj);M8(a,"Step "+$APP.Q.g(c+1)+" active")}},Aba=function(a,b,c,d){var e=b.length;var f=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(f)?$APP.B.i(f.length,e):f)){for(var h=
9
+ Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(f)?l<f.length:f)?f[l]:!1,l+=1;else break;f=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.wc(c,h);l=$APP.J(l);var m=$APP.C(l,$APP.Bj),q=$APP.C(l,$APP.Rl),r=f[h];l=m<=d&&q>d;var v=L8(b[h]),x=m;m=q-m;m=m<=0?0:$APP.Hi.i(0,$APP.Ii.i(1,(d-x)/m));$APP.p(r)&&l?(f[h]=!0,$APP.P(a,"x-scroll-story-step-enter",$APP.Xi(new $APP.N(null,3,[$APP.qj,h,$APP.Lm,v,$APP.vn,m],null)))):$APP.n($APP.n(r)?!l:r)&&(f[h]=!1,$APP.P(a,"x-scroll-story-step-leave",
10
+ $APP.Xi(new $APP.N(null,3,[$APP.qj,h,$APP.Lm,v,$APP.vn,m],null))))}h+=1}else break},N8=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:I8(a)}();if(!$APP.n($APP.Y.g(b))){var c=J8(a),d=c.length,e=window.innerHeight,f=e*$APP.ln.g(b),h=function(){for(var m=0,q=$APP.pe;;){if(m>=d)return q;var r=c[m].getBoundingClientRect();m+=1;q=$APP.ud.i(q,new $APP.N(null,2,[$APP.Bj,r.top,$APP.Rl,r.top+r.height],null))}}();b=xba(h,f);var l=$APP.J($APP.k(a,"__xScrollStoryRefs"));
11
+ l=$APP.C(l,$APP.Rn).getBoundingClientRect();e=$APP.Hi.i(0,$APP.Ii.i(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");zba(a,c,b);Aba(a,c,h,f);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,f=b>=0&&b<d?L8(c[b]):null,$APP.P(a,"x-scroll-story-progress",$APP.Xi(new $APP.N(null,3,[$APP.vn,e,$APP.Al,b,$APP.Ym,f],null)))}a.__xScrollStoryRAF=null},O8=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?
12
+ $APP.p($APP.k(a,"__xScrollStoryAutoplayPaused")):l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.Vj.g(e);return $APP.n(l)?$APP.p($APP.Y.g(e)):l}return e}())){var f=$APP.k(a,"__xScrollStoryAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(f>0){var h=window.scrollY;window.scrollBy(0,$APP.hl.g(e)*f);$APP.n(function(){var l=$APP.Jj.g(e);return $APP.n(l)?window.scrollY-h<.5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,
13
+ c),a.__xScrollStoryAutoplayLast=null)}return $APP.fa(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},P8=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,
14
+ "__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?L8(d[c]):null;return $APP.P(a,"x-scroll-story-autoplay-pause",$APP.Xi(new $APP.N(null,3,[$APP.vn,b,$APP.Al,c,$APP.Ym,d],null)))},Q8=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.fa(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(O8(a)));var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");
15
+ return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?L8(d[c]):null;return $APP.P(a,"x-scroll-story-autoplay-resume",$APP.Xi(new $APP.N(null,3,[$APP.vn,b,$APP.Al,c,$APP.Ym,d],null)))}return null},R8=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",
16
+ $APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},S8=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==null){var b=$APP.k(a,
17
+ "__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Vj.g(b);return $APP.n(l)?(l=$APP.p($APP.Y.g(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!K8():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return P8(a)},d=function(){return Q8(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?Q8(a):null},f=function(l){return $APP.B.i(l.code,"Space")?(l.preventDefault(),P8(a)):
18
+ null},h=function(l){return $APP.B.i(l.code,"Space")?Q8(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.fa(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});$APP.fa(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(O8(a)))}}return null},T8=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.Y.g(a):a},
19
+ Bba=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.p(T8(a))&&!K8():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.fa(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return N8(a)})):null},U8=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},V8=function(a){a=$APP.k(a,
20
+ "__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},Cba=function(a,b){b=b[0].isIntersecting;var c=$APP.J($APP.k(a,"__xScrollStoryRefs"));c=$APP.C(c,$APP.Oj);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(T8(a)))return null;U8(a);N8(a);M8(c,"Story section entered viewport");$APP.P(a,"x-scroll-story-enter",$APP.Xi(new $APP.N(null,1,[$APP.vn,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?
21
+ d:0}()],null)));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Vj.g(b):b)?S8(a):null}V8(a);R8(a);if($APP.n(T8(a)))return null;M8(c,"Story section left viewport");return $APP.P(a,"x-scroll-story-leave",$APP.Xi(new $APP.N(null,1,[$APP.vn,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null)))},Dba=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,N8(a)):null}function c(){a.__xScrollStoryStepStates=
22
+ null;return $APP.n($APP.k(a,"__xScrollStoryVisible"))?N8(a):null}var d=F8(a);d=$APP.J(d);$APP.C(d,$APP.tk).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.fa(a,"__xScrollStoryHandlers",{scroll:function(){return Bba(a)},slot:c,resize:b,scrollAttached:!1})},W8=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){V8(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.tk.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,
23
+ "resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},Eba=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return Cba(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},X8=function(a){a=J8(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},Y8=function(a){var b=I8(a);
24
+ if($APP.M($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.J(b),d=$APP.C(c,$APP.yl),e=$APP.C(c,H8);b=$APP.C(c,$APP.Y);var f=$APP.C(c,$APP.X),h=F8(a),l=$APP.J(h);h=$APP.C(l,$APP.Vh);l=$APP.C(l,E8);a.setAttribute("data-layout",d);$APP.B.i(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.Q.g(e*100)+"%)";$APP.t(f)?h.setAttribute("aria-label",f):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(X8(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=
25
+ null,V8(a),R8(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&(U8(a),N8(a));c=$APP.Vj.g(c);b=$APP.n(c)?(b=$APP.p(b))?$APP.k(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?S8(a):R8(a)}},Fba=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.Q.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return B8(this.getAttribute("threshold"))},
26
+ set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.Q.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return C8(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.Q.g(b)):this.removeAttribute("split")},enumerable:!0,configurable:!0});$APP.dh(a,"disabled","disabled");Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},
27
+ set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.k(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});$APP.dh(a,"autoplay","autoplay");Object.defineProperty(a,
28
+ "autoplaySpeed",{get:function(){return D8(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.Q.g(b)):this.removeAttribute("autoplay-speed")},enumerable:!0,configurable:!0});$APP.dh(a,"autoplayLoop","autoplay-loop");$APP.dh(a,"autoplayIndicator","autoplay-indicator");return Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.E($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},Gba=function(a){F8(a);
29
+ W8(a);Dba(a);Eba(a);Y8(a);return null},Hba=function(a){R8(a);X8(a);if($APP.n($APP.k(a,"__xScrollStoryVisible"))){var b=$APP.k(a,"__xScrollStoryLastProg");$APP.P(a,"x-scroll-story-leave",$APP.Xi(new $APP.N(null,1,[$APP.vn,$APP.n(b)?b:0],null)))}W8(a);b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),a.__xScrollStoryIO=null);a.__xScrollStoryVisible=!1;a.__xScrollStoryActiveIndex=-1;a.__xScrollStoryLastProg=null;return a.__xScrollStoryStepStates=null},Iba=function(a,b,c,d){$APP.M(c,d)&&Y8(a);
30
+ return null},Z8=function(){return $APP.Yg("x-scroll-story",new $APP.N(null,5,[$APP.Pg,Jba,$APP.Qg,Gba,$APP.Rg,Hba,$APP.Sg,Iba,$APP.Wg,Fba],null))},E8=new $APP.F(null,"media","media",-1066138403),G8=new $APP.F(null,"split-raw","split-raw",-455766786),H8=new $APP.F(null,"split","split",-599435118);var Jba="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
31
+ $APP.Lf([$APP.Fm,$APP.Zi,$APP.Vl,$APP.al,$APP.yl,$APP.Al,$APP.ln,$APP.Zn,H8,$APP.X,$APP.Pl,$APP.vn],[new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,2,[$APP.R,$APP.T,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,
32
+ [$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null)]);
33
+ $APP.Yd(["x-scroll-story-step-change",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.kl,$APP.V,$APP.so,$APP.U],null),$APP.Fn,!1],null),"x-scroll-story-step-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-step-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-progress",new $APP.N(null,2,[$APP.Z,
34
+ new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-story-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-story-autoplay-pause",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-story-autoplay-resume",new $APP.N(null,
35
+ 2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null)]);var yba=new $APP.O(null,new $APP.N(null,3,["right",null,"top",null,"left",null],null),null);$APP.ca("baredom.exports.x_scroll_story.init",Z8);export const init=Z8;
@@ -1,48 +1,46 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var oy=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.oh.i(0,$APP.ph.i(1,a))):.5},py=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.oh.i(1,$APP.ph.i(1E3,a))):50},qy=function(a,b){switch(a){case "alternating":return $APP.fd(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},ry=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,g=-1;;){if(d>=c)return e>=0?
3
- e:g;var h=$APP.pc(a,d),l=$APP.M(h);h=$APP.D(l,$APP.si);l=$APP.D(l,$APP.Kk);e=h<=b&&l>b?d:e;g=h<=b?d:g;d+=1}},sy=function(a,b,c){return b<=0?0:$APP.oh.i(0,$APP.ph.i(1,(c-a)/b))},uy=function(a,b,c){var d=$APP.z(a);if(d===0)return"";if($APP.B.i(d,1))return a=$APP.u(a),a=$APP.M(a),a=$APP.D(a,$APP.Kl),"M "+$APP.T.g(c)+" "+$APP.T.g(a);var e=$APP.u(a),g=$APP.Kl.g(e);e=0;for(g=new $APP.O(null,1,5,$APP.P,["M "+$APP.T.g(c)+" "+$APP.T.g(g)],null);;){if(e>=d-1)return $APP.Gg(g);var h=$APP.pc(a,e),l=$APP.pc(a,
4
- e+1),m=$APP.Kl.g(h),p=$APP.Kl.g(l);h=ty.g(h);var q=ty.g(l);l=$APP.B.i(h,"left")?-b:b;q=$APP.B.i(q,"left")?-b:b;h=m+(p-m)*.33;q=c+q;m+=(p-m)*.66;var v=c;e+=1;g=$APP.ld.i(g,"C "+$APP.T.g(c+l)+" "+$APP.T.g(h)+" "+$APP.T.g(q)+" "+$APP.T.g(m)+" "+$APP.T.g(v)+" "+$APP.T.g(p))}},Cy=function(a){var b=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),
5
- h=document.createElement("div"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),m=document.createElementNS("http://www.w3.org/2000/svg","path"),p=document.createElementNS("http://www.w3.org/2000/svg","path"),q=document.createElement("div"),v=document.createElement("slot"),x=document.createElement("div"),y=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-timeline-track-color:rgba(0,0,0,0.12);--x-scroll-timeline-track-fill-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-track-width:3px;--x-scroll-timeline-marker-size:14px;--x-scroll-timeline-marker-color:rgba(0,0,0,0.15);--x-scroll-timeline-marker-active-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-marker-border-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-entry-gap:2rem;--x-scroll-timeline-date-color:rgba(0,0,0,0.5);--x-scroll-timeline-date-font-size:0.8125rem;--x-scroll-timeline-transition-duration:300ms;--x-scroll-timeline-curve-amplitude:60;--x-scroll-timeline-disabled-opacity:0.55;}@media (prefers-color-scheme:dark){:host{--x-scroll-timeline-track-color:rgba(255,255,255,0.12);--x-scroll-timeline-marker-color:rgba(255,255,255,0.18);--x-scroll-timeline-date-color:rgba(255,255,255,0.5);}}[part\x3dcontainer]{position:relative;padding:0;}[part\x3dtrack]{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:var(--x-scroll-timeline-track-width);pointer-events:none;z-index:1;}:host([data-layout\x3dleft]) [part\x3dtrack]{left:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}:host([data-layout\x3dright]) [part\x3dtrack]{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}[part\x3dtrack-line]{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--x-scroll-timeline-track-color);border-radius:999px;}[part\x3dtrack-fill]{position:absolute;top:0;left:0;right:0;height:0%;background:var(--x-scroll-timeline-track-fill-color);border-radius:999px;transition:height 60ms linear;}[part\x3dtrack-svg]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}:host([data-track\x3dcurved]) [part\x3dtrack-line],:host([data-track\x3dcurved]) [part\x3dtrack-fill]{display:none;}:host([data-track\x3dcurved]) [part\x3dtrack-svg]{display:block;}[part\x3dtrack-path]{fill:none;stroke:var(--x-scroll-timeline-track-color);stroke-width:3px;stroke-linecap:round;}[part\x3dtrack-fill-path]{fill:none;stroke:var(--x-scroll-timeline-track-fill-color);stroke-width:3px;stroke-linecap:round;transition:stroke-dashoffset 60ms linear;}[part\x3dentries]{position:relative;z-index:2;}::slotted(*){display:block;margin-bottom:var(--x-scroll-timeline-entry-gap);opacity:0.4;transition:opacity var(--x-scroll-timeline-transition-duration) ease;}::slotted(:last-child){margin-bottom:0;}::slotted([data-active]){opacity:1;}:host([data-layout\x3dalternating]) ::slotted(*){width:calc(50% - var(--x-scroll-timeline-marker-size));}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dleft]){margin-left:0;margin-right:auto;text-align:right;padding-right:1.5rem;}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dright]){margin-left:auto;margin-right:0;text-align:left;padding-left:1.5rem;}:host([data-layout\x3dleft]) ::slotted(*){margin-left:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;}:host([data-layout\x3dright]) ::slotted(*){margin-right:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;text-align:right;}.tl-marker{position:absolute;z-index:3;width:var(--x-scroll-timeline-marker-size);height:var(--x-scroll-timeline-marker-size);border-radius:50%;background:var(--x-scroll-timeline-marker-color);border:2px solid transparent;transform:translate(-50%,-50%);transition:background var(--x-scroll-timeline-transition-duration) ease,border-color var(--x-scroll-timeline-transition-duration) ease,box-shadow var(--x-scroll-timeline-transition-duration) ease;}.tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);box-shadow:0 0 0 3px rgba(59,130,246,0.25);}:host([data-marker\x3dring]) .tl-marker{background:transparent;border:2px solid var(--x-scroll-timeline-marker-color);}:host([data-marker\x3dring]) .tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);}:host([data-marker\x3dnone]) .tl-marker{display:none;}.tl-marker{left:50%;}:host([data-layout\x3dleft]) .tl-marker{left:calc(var(--x-scroll-timeline-marker-size) / 2);}:host([data-layout\x3dright]) .tl-marker{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:translate(50%,-50%);}.tl-date{position:absolute;z-index:3;font-size:var(--x-scroll-timeline-date-font-size);color:var(--x-scroll-timeline-date-color);white-space:nowrap;transform:translateY(-50%);transition:color var(--x-scroll-timeline-transition-duration) ease;}.tl-date[data-active]{color:var(--x-scroll-timeline-marker-active-color);font-weight:600;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dleft]{left:calc(50% + var(--x-scroll-timeline-marker-size));padding-left:0.5rem;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dright]{right:calc(50% + var(--x-scroll-timeline-marker-size));padding-right:0.5rem;text-align:right;}:host([data-layout\x3dleft]) .tl-date{left:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);}:host([data-layout\x3dright]) .tl-date{right:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);text-align:right;}:host([disabled]){opacity:var(--x-scroll-timeline-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;z-index:4;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (pointer:coarse){:host{--x-scroll-timeline-marker-size:44px;}}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}.tl-marker{transition:none !important;}.tl-date{transition:none !important;}[part\x3dtrack-fill]{transition:none !important;}[part\x3dtrack-fill-path]{transition:none !important;}}";
6
- d.setAttribute("part","container");d.setAttribute("role","feed");e.setAttribute("part","track");g.setAttribute("part","track-line");h.setAttribute("part","track-fill");l.setAttribute("part","track-svg");l.setAttribute("aria-hidden","true");l.setAttribute("focusable","false");m.setAttribute("part","track-path");p.setAttribute("part","track-fill-path");p.setAttribute("pathLength","1");l.appendChild(m);l.appendChild(p);e.appendChild(g);e.appendChild(h);q.setAttribute("part","entries");q.appendChild(v);
7
- x.setAttribute("part","indicator");d.appendChild(e);d.appendChild(q);d.appendChild(l);d.appendChild(x);y.setAttribute("part","live");y.setAttribute("aria-live","polite");y.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(y);b=$APP.zf([$APP.kj,vy,wy,xy,yy,zy,$APP.Hi,$APP.Hj,Ay,$APP.Fi,By,$APP.dj],[v,l,p,q,m,g,b,d,x,y,h,e]);a.__xScrollTimelineRefs=b;return $APP.k(a,"__xScrollTimelineRefs")},Ky=function(a){a=$APP.zf([$APP.pi,Dy,$APP.Vj,$APP.hm,$APP.Wh,$APP.ml,$APP.Ri,
8
- Ey,$APP.ej,$APP.fm,Fy],[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.M(a);a=$APP.D(b,$APP.ej);var c=$APP.D(b,$APP.fm),d=$APP.D(b,Fy),e=$APP.D(b,
9
- $APP.pi),g=$APP.D(b,Dy),h=$APP.D(b,$APP.Vj),l=$APP.D(b,$APP.hm),m=$APP.D(b,$APP.Wh),p=$APP.D(b,$APP.ml),q=$APP.D(b,$APP.Ri);b=$APP.D(b,Ey);p=typeof p==="string"?p.trim().toLowerCase():null;p=$APP.I(Gy,p)?p:"alternating";g=typeof g==="string"?g.trim().toLowerCase():null;g=$APP.I(Hy,g)?g:"dot";m=oy(m);e=$APP.n(e)?e:"";h=py(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.I(Iy,b)?b:"straight";return $APP.zf([$APP.qk,$APP.Rk,$APP.Ai,Jy,$APP.Ul,$APP.U,$APP.Ki,$APP.X,$APP.Wj,$APP.dj,$APP.Ni],
10
- [p,g,c!=null,d!=null,m,e,q!=null,a!=null,h,b,l!=null])},Ly=function(a){a=Cy(a);a=$APP.M(a);return $APP.D(a,$APP.kj).assignedElements()},My=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Ny=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.N(a,"")?a:null},Oy=function(a,b,c){b=new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},Py=function(a,b){a=$APP.M($APP.k(a,"__xScrollTimelineRefs"));var c=$APP.D(a,
11
- $APP.Fi);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},Qy=function(a,b){for(var c=a.length,d=0;;)if(d<c){var e=a[d];e.setAttribute("data-side",qy(b,d));e.setAttribute("data-index",""+$APP.T.g(d));d+=1}else break},Ry=function(a){a=Ly(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},Sy=function(a,b){var c=$APP.M($APP.k(a,"__xScrollTimelineRefs"));c=$APP.D(c,$APP.Hj);
12
- var d=$APP.k(a,"__xScrollTimelineMarkerEls");d=$APP.n(d)?d:[];b=b.length;for(var e=d.length,g=0;;)if(g<e)d[g].remove(),g+=1;else break;d=Array(b);for(e=0;;)if(e<b)g=document.createElement("div"),g.classList.add("tl-marker"),c.appendChild(g),d[e]=g,e+=1;else break;a.__xScrollTimelineMarkerEls=d},Ty=function(a,b){var c=$APP.M($APP.k(a,"__xScrollTimelineRefs"));c=$APP.D(c,$APP.Hj);var d=$APP.k(a,"__xScrollTimelineDateEls");var e=$APP.n(d)?d:[];d=b.length;for(var g=e.length,h=0;;)if(h<g){var l=e[h];$APP.n(l)&&
13
- l.remove();h+=1}else break;e=Array(d);for(g=0;;)if(g<d)h=b[g].getAttribute("data-date"),typeof h==="string"&&$APP.N(h,"")?(l=document.createElement("span"),l.classList.add("tl-date"),l.textContent=h,c.appendChild(l),e[g]=l):e[g]=null,g+=1;else break;a.__xScrollTimelineDateEls=e},Uy=function(a,b,c){a=$APP.M($APP.k(a,"__xScrollTimelineRefs"));a=$APP.D(a,By);$APP.n(c)?a.style.height="0%":a.style.height=""+$APP.T.g(b*100)+"%"},Vy=function(a,b){var c=$APP.M($APP.k(a,"__xScrollTimelineRefs")),d=$APP.D(c,
14
- $APP.Hj),e=$APP.D(c,vy),g=$APP.D(c,yy);c=$APP.D(c,wy);var h=function(){var E=$APP.k(a,"__xScrollTimelineModel");return $APP.n(E)?E:Ky(a)}(),l=$APP.qk.g(h);h=d.getBoundingClientRect();var m=h.top;d=h.height;var p=h.width,q=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-curve-amplitude");h=function(){var E=parseFloat(q);return $APP.n(isNaN(E))?60:E}();var v=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),x=function(){var E=parseFloat(v);return $APP.n(isNaN(E))?
15
- 7:E/2}(),y=function(){switch(l){case "left":return x;case "right":return p-x;default:return p*.5}}(),A=b.length;if(A>0){var C=function(){for(var E=0,H=$APP.fe;;){if(E>=A)return H;var G=b[E].getBoundingClientRect(),J=E+1;H=$APP.ld.i(H,new $APP.Q(null,2,[$APP.Kl,G.top+G.height/2-m,ty,qy(l,E)],null));E=J}}();h=uy(C,h,y);e.setAttribute("viewBox","0 0 "+$APP.T.g(p)+" "+$APP.T.g(d));g.setAttribute("d",h);c.setAttribute("d",h);c.setAttribute("stroke-dasharray","1");c.setAttribute("stroke-dashoffset","1")}},
16
- Wy=function(a,b,c){a=$APP.M($APP.k(a,"__xScrollTimelineRefs"));a=$APP.D(a,wy);$APP.n(c)?a.setAttribute("stroke-dashoffset","1"):a.setAttribute("stroke-dashoffset",""+$APP.T.g(1-b))},Xy=function(a,b,c){var d=$APP.k(a,"__xScrollTimelineActiveIndex");d=$APP.n(d)?d:-1;if($APP.N(d,c)){d>=0&&d<b.length&&b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");var e=$APP.k(a,"__xScrollTimelineMarkerEls"),g=$APP.k(a,"__xScrollTimelineDateEls");$APP.n(e)&&(d>=0&&d<e.length&&
17
- e[d].removeAttribute("data-active"),c>=0&&c<e.length&&e[c].setAttribute("data-active",""));$APP.n(g)&&(d>=0&&d<g.length&&(e=g[d],$APP.n(e)&&e.removeAttribute("data-active")),c>=0&&c<g.length&&(g=g[c],$APP.n(g)&&g.setAttribute("data-active","")));c>=0?a.setAttribute("data-active-index",""+$APP.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollTimelineActiveIndex=c;g=d>=0&&d<b.length?Ny(b[d]):null;b=c>=0&&c<b.length?Ny(b[c]):null;Oy(a,"x-scroll-timeline-entry-change",{index:c,id:b,previousIndex:d,
18
- previousId:g});Py(a,"Entry "+$APP.T.g(c+1)+" active")}},Yy=function(a,b,c,d){var e=b.length;var g=$APP.k(a,"__xScrollTimelineEntryStates");if(!$APP.n($APP.n(g)?$APP.B.i(g.length,e):g)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(g)?l<g.length:g)?g[l]:!1,l+=1;else break;g=a.__xScrollTimelineEntryStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.pc(c,h);l=$APP.M(l);var m=$APP.D(l,$APP.si),p=$APP.D(l,$APP.Kk),q=g[h];l=m<=d&&p>d;var v=Ny(b[h]);m=sy(m,p-m,d);$APP.r(q)&&l?(g[h]=!0,Oy(a,"x-scroll-timeline-entry-enter",
19
- {index:h,id:v,progress:m})):$APP.n($APP.n(q)?!l:q)&&(g[h]=!1,Oy(a,"x-scroll-timeline-entry-leave",{index:h,id:v,progress:m}))}h+=1}else break},Zy=function(a){var b=function(){var q=$APP.k(a,"__xScrollTimelineModel");return $APP.n(q)?q:Ky(a)}();if(!$APP.n($APP.X.g(b))){var c=Ly(a),d=c.length,e=window.innerHeight,g=e*$APP.Ul.g(b),h=function(){for(var q=0,v=$APP.fe;;){if(q>=d)return v;var x=c[q].getBoundingClientRect();q+=1;v=$APP.ld.i(v,new $APP.Q(null,2,[$APP.si,x.top,$APP.Kk,x.top+x.height],null))}}(),
20
- l=ry(h,g),m=$APP.M($APP.k(a,"__xScrollTimelineRefs"));m=$APP.D(m,$APP.Hj).getBoundingClientRect();e=$APP.oh.i(0,$APP.ph.i(1,(e-m.top)/(e+m.height)));m=$APP.k(a,"__xScrollTimelineLastProg");var p=d<2||l<0?0:function(){var q=function(){var C=$APP.pc(h,0);return($APP.si.g(C)+$APP.Kk.g(C))/2}(),v=function(){var C=$APP.pc(h,d-1);return($APP.si.g(C)+$APP.Kk.g(C))/2}()-q,x=$APP.pc(h,l),y=($APP.si.g(x)+$APP.Kk.g(x))/2;x=sy($APP.si.g(x),$APP.Kk.g(x)-$APP.si.g(x),g);var A=l<d-1?function(){var C=$APP.pc(h,l+
21
- 1);return($APP.si.g(C)+$APP.Kk.g(C))/2}():y;return v<=0?1:$APP.oh.i(0,$APP.ph.i(1,(y+x*(A-y)-q)/v))}();Xy(a,c,l);Yy(a,c,h,g);$APP.B.i($APP.dj.g(b),"curved")?Wy(a,p,Jy.g(b)):Uy(a,p,Jy.g(b));if(m==null||Math.abs(e-m)>.001)a.__xScrollTimelineLastProg=e,b=l>=0&&l<d?Ny(c[l]):null,Oy(a,"x-scroll-timeline-progress",{progress:e,activeIndex:l,activeId:b})}a.__xScrollTimelineRAF=null},$y=function(a){return function d(c){if($APP.n(function(){var h=a.isConnected;return $APP.n(h)?(h=$APP.k(a,"__xScrollTimelineVisible"),
22
- $APP.n(h)?$APP.r($APP.k(a,"__xScrollTimelineAutoplayPaused")):h):h}())){var e=$APP.k(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(e)){var h=$APP.Ni.g(e);return $APP.n(h)?$APP.r($APP.X.g(e)):h}return e}())){var g=$APP.k(a,"__xScrollTimelineAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollTimelineAutoplayLast=c;g>0&&(window.scrollBy(0,$APP.Wj.g(e)*g),$APP.n($APP.Ai.g(e))&&(g=window.scrollY,c=window.innerHeight,g+c>=document.documentElement.scrollHeight-1&&(g=a.getBoundingClientRect().top+
23
- g,window.scrollTo(0,$APP.oh.i(0,g-c)),a.__xScrollTimelineAutoplayLast=null)));return $APP.ja(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},az=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused")))return null;a.__xScrollTimelineAutoplayPaused=!0;var b=$APP.k(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollTimelineLastProg");
24
- return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=Ly(a);d=c>=0&&c<d.length?Ny(d[c]):null;return Oy(a,"x-scroll-timeline-autoplay-pause",{progress:b,activeIndex:c,activeId:d})},bz=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))){a.__xScrollTimelineAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollTimelineAutoplayLast=null;$APP.ja(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame($y(a)));var b=
25
- 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=Ly(a);d=c>=0&&c<d.length?Ny(d[c]):null;return Oy(a,"x-scroll-timeline-autoplay-resume",{progress:b,activeIndex:c,activeId:d})}return null},cz=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",
26
- $APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollTimelineAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null},dz=function(a){if($APP.k(a,"__xScrollTimelineAutoplayRAF")==null){var b=
27
- $APP.k(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Ni.g(b);return $APP.n(l)?(l=$APP.r($APP.X.g(b)))?(l=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(l)?!My():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null;var c=function(){return az(a)},d=function(){return bz(a)},e=function(){return $APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))?bz(a):null},g=function(l){return $APP.B.i(l.code,"Space")?(l.preventDefault(),
28
- az(a)):null},h=function(l){return $APP.B.i(l.code,"Space")?bz(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",g);a.addEventListener("keyup",h);$APP.ja(a,"__xScrollTimelineAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:g,keyup:h});$APP.ja(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame($y(a)))}}return null},ez=function(a){a=$APP.k(a,"__xScrollTimelineModel");return $APP.n(a)?
29
- $APP.X.g(a):a},fz=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(b)?$APP.r(ez(a))&&!My():b):b}())?$APP.n($APP.k(a,"__xScrollTimelineRAF"))?null:$APP.ja(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return Zy(a)})):null},gz=function(a){a=$APP.k(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=
30
- !0)},hz=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)},iz=function(a,b){b=b[0].isIntersecting;a.__xScrollTimelineVisible=b;if($APP.n(b)){if($APP.n(ez(a)))return null;gz(a);Zy(a);Py(a,"Timeline entered viewport");Oy(a,"x-scroll-timeline-enter",{progress:function(){var c=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()});b=$APP.k(a,"__xScrollTimelineModel");
31
- return $APP.n($APP.n(b)?$APP.Ni.g(b):b)?dz(a):null}hz(a);cz(a);if($APP.n(ez(a)))return null;Py(a,"Timeline left viewport");return Oy(a,"x-scroll-timeline-leave",{progress:function(){var c=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()})},jz=function(a){var b=function(){var d=$APP.k(a,"__xScrollTimelineModel");return $APP.n(d)?d:Ky(a)}(),c=Ly(a);Qy(c,$APP.qk.g(b));Sy(a,c);Ty(a,c);return requestAnimationFrame(function(){var d=Ly(a),e=$APP.k(a,"__xScrollTimelineMarkerEls"),g=$APP.k(a,
32
- "__xScrollTimelineDateEls"),h=$APP.M($APP.k(a,"__xScrollTimelineRefs"));h=$APP.D(h,$APP.Hj).getBoundingClientRect().top;var l=$APP.k(a,"__xScrollTimelineModel");l=$APP.n(l)?l:Ky(a);l=$APP.qk.g(l);for(var m=d.length,p=0;;)if(p<m){var q=d[p].getBoundingClientRect();q=q.top+q.height/2-h;var v=qy(l,p),x=$APP.n(e)?e[p]:e;$APP.n(x)&&(x.style.top=""+$APP.T.g(q)+"px");x=$APP.n(g)?g[p]:g;$APP.n(x)&&(x.style.top=""+$APP.T.g(q)+"px",x.setAttribute("data-side",v));p+=1}else break;$APP.B.i($APP.dj.g(b),"curved")&&
33
- Vy(a,d);return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?Zy(a):null})},kz=function(a){function b(){return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?(a.__xScrollTimelineEntryStates=null,jz(a)):null}function c(){a.__xScrollTimelineEntryStates=null;return jz(a)}var d=Cy(a);d=$APP.M(d);$APP.D(d,$APP.kj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollTimelineHandlers",{scroll:function(){return fz(a)},slot:c,resize:b,scrollAttached:!1})},lz=function(a){var b=
34
- $APP.k(a,"__xScrollTimelineHandlers");if($APP.n(b)){hz(a);var c=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(c)){c=$APP.kj.g(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,"__xScrollTimelineRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineRAF=null);a.__xScrollTimelineHandlers=null},mz=function(a){var b=$APP.k(a,"__xScrollTimelineIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return iz(a,
35
- c)},{threshold:[0]});b.observe(a);a.__xScrollTimelineIO=b},nz=function(a){var b=Ky(a);if($APP.N($APP.k(a,"__xScrollTimelineModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.qk),d=$APP.D(b,$APP.dj),e=$APP.D(b,$APP.X),g=$APP.D(b,$APP.U),h=$APP.D(b,$APP.Rk),l=Cy(a);l=$APP.M(l);l=$APP.D(l,$APP.Hj);var m=$APP.k(a,"__xScrollTimelineModel");a.setAttribute("data-layout",c);a.setAttribute("data-track",d);a.setAttribute("data-marker",h);$APP.t(g)?l.setAttribute("aria-label",g):l.removeAttribute("aria-label");a.__xScrollTimelineModel=
36
- b;$APP.n(e)?(Ry(a),a.__xScrollTimelineActiveIndex=-1,a.__xScrollTimelineEntryStates=null,hz(a),cz(a)):$APP.n(m)&&($APP.N($APP.qk.g(m),c)||$APP.N($APP.dj.g(m),d)||$APP.N($APP.Rk.g(m),h)||$APP.N($APP.X.g(m),e)?jz(a):($APP.N($APP.Ul.g(m),$APP.Ul.g(b))||$APP.N(Jy.g(m),Jy.g(b)))&&$APP.n($APP.k(a,"__xScrollTimelineVisible"))&&Zy(a));$APP.n(e)||(b=$APP.Ni.g(b),$APP.n($APP.n(b)?$APP.k(a,"__xScrollTimelineVisible"):b)?dz(a):cz(a))}},oz=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);
37
- return $APP.n(e)?e:d},set:function(e){return $APP.n(e)?this.setAttribute(c,""+$APP.T.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},pz=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.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},qz=function(a,b,c){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(c)},
38
- set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)},enumerable:!0,configurable:!0})},rz=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return d.g?d.g(e):d.call(null,e)},set:function(e){return e!=null?this.setAttribute(c,""+$APP.T.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},sz=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=$APP.k(this,c);return e!=null?e:d},enumerable:!0,configurable:!0})},
39
- tz=function(a){oz(a,"layout","layout","alternating");oz(a,"track","track","straight");oz(a,"marker","marker","dot");pz(a);rz(a,"threshold","threshold",oy);qz(a,"noProgress","no-progress");qz(a,"disabled","disabled");qz(a,"autoplay","autoplay");rz(a,"autoplaySpeed","autoplay-speed",py);qz(a,"autoplayLoop","autoplay-loop");qz(a,"autoplayIndicator","autoplay-indicator");sz(a,"activeIndex","__xScrollTimelineActiveIndex",-1);sz(a,"progress","__xScrollTimelineLastProg",0);sz(a,"autoplayPaused","__xScrollTimelineAutoplayPaused",
40
- !1)},vz=function(){var a=class extends HTMLElement{};a.observedAttributes=uz;a.prototype.connectedCallback=function(){Cy(this);lz(this);kz(this);mz(this);nz(this);return null};a.prototype.disconnectedCallback=function(){cz(this);Ry(this);if($APP.n($APP.k(this,"__xScrollTimelineVisible"))){var b=$APP.k(this,"__xScrollTimelineLastProg");Oy(this,"x-scroll-timeline-leave",{progress:$APP.n(b)?b:0})}lz(this);b=$APP.k(this,"__xScrollTimelineIO");$APP.n(b)&&(b.disconnect(),this.__xScrollTimelineIO=null);
41
- this.__xScrollTimelineVisible=!1;this.__xScrollTimelineActiveIndex=-1;return this.__xScrollTimelineEntryStates=this.__xScrollTimelineLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&nz(this);return null};tz(a.prototype);return a},wz=function(){$APP.n(customElements.get("x-scroll-timeline"))||customElements.define("x-scroll-timeline",vz());return null},By=new $APP.K(null,"track-fill","track-fill",1852369499),xy=new $APP.K(null,"entries","entries",-86943161),Dy=new $APP.K(null,
42
- "marker-raw","marker-raw",2140891555),Ay=new $APP.K(null,"indicator","indicator",1928219637),Jy=new $APP.K(null,"no-progress?","no-progress?",-1599319890),Ey=new $APP.K(null,"track-raw","track-raw",751958776),yy=new $APP.K(null,"track-path","track-path",-1838135442),wy=new $APP.K(null,"fill-path","fill-path",-792439899),Fy=new $APP.K(null,"no-progress-attr","no-progress-attr",115951679),vy=new $APP.K(null,"track-svg","track-svg",-556455964),ty=new $APP.K(null,"side","side",389652279),zy=new $APP.K(null,
43
- "track-line","track-line",1370628624);var uz="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
44
- $APP.zf([$APP.tl,$APP.Jh,$APP.Ok,$APP.Pj,$APP.qk,$APP.sk,$APP.Rk,$APP.Ul,$APP.Mm,$APP.U,$APP.Hk,$APP.cm,new $APP.K(null,"noProgress","noProgress",-2114530658),$APP.dj],[new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),
45
- new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.wk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);
46
- $APP.Pd(["x-scroll-timeline-entry-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.ai,$APP.W,$APP.zl,$APP.Y,$APP.ak,$APP.W,$APP.fn,$APP.Y],null),$APP.lm,!1],null),"x-scroll-timeline-entry-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ai,$APP.W,$APP.zl,$APP.Y,$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-timeline-entry-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ai,$APP.W,$APP.zl,$APP.Y,$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-timeline-progress",new $APP.Q(null,
47
- 2,[$APP.V,new $APP.Q(null,3,[$APP.cm,$APP.W,$APP.sk,$APP.W,$APP.Gl,$APP.Y],null),$APP.lm,!1],null),"x-scroll-timeline-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-timeline-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.cm,$APP.W],null),$APP.lm,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.cm,$APP.W,$APP.sk,$APP.W,$APP.Gl,$APP.Y],null),$APP.lm,!1],null),"x-scroll-timeline-autoplay-resume",
48
- new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.cm,$APP.W,$APP.sk,$APP.W,$APP.Gl,$APP.Y],null),$APP.lm,!1],null)]);var Gy=new $APP.S(null,new $APP.Q(null,3,["right",null,"left",null,"alternating",null],null),null),Iy=new $APP.S(null,new $APP.Q(null,2,["curved",null,"straight",null],null),null),Hy=new $APP.S(null,new $APP.Q(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.ha("baredom.exports.x_scroll_timeline.init",wz);export const init=wz;
2
+ var aB=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Hi.i(0,$APP.Ii.i(1,a))):.5},bB=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Hi.i(1,$APP.Ii.i(1E3,a))):50},cB=function(a,b){switch(a){case "alternating":return $APP.od(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},dB=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,f=-1;;){if(d>=c)return e>=0?
3
+ e:f;var h=$APP.wc(a,d),l=$APP.J(h);h=$APP.C(l,$APP.Bj);l=$APP.C(l,$APP.Rl);e=h<=b&&l>b?d:e;f=h<=b?d:f;d+=1}},eB=function(a,b,c){return b<=0?0:$APP.Hi.i(0,$APP.Ii.i(1,(c-a)/b))},gB=function(a,b,c){var d=$APP.z(a);if(d===0)return"";if($APP.B.i(d,1))return a=$APP.u(a),a=$APP.J(a),a=$APP.C(a,$APP.bn),"M "+$APP.Q.g(c)+" "+$APP.Q.g(a);var e=$APP.u(a),f=$APP.bn.g(e);e=0;for(f=new $APP.De(null,1,5,$APP.Ee,["M "+$APP.Q.g(c)+" "+$APP.Q.g(f)],null);;){if(e>=d-1)return $APP.nh(" ",f);var h=$APP.wc(a,e),l=$APP.wc(a,
4
+ e+1),m=$APP.bn.g(h),q=$APP.bn.g(l);h=fB.g(h);var r=fB.g(l);l=$APP.B.i(h,"left")?-b:b;r=$APP.B.i(r,"left")?-b:b;h=m+(q-m)*.33;r=c+r;m+=(q-m)*.66;var v=c;e+=1;f=$APP.ud.i(f,"C "+$APP.Q.g(c+l)+" "+$APP.Q.g(h)+" "+$APP.Q.g(r)+" "+$APP.Q.g(m)+" "+$APP.Q.g(v)+" "+$APP.Q.g(q))}},oB=function(a){var b=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),
5
+ h=document.createElement("div"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),m=document.createElementNS("http://www.w3.org/2000/svg","path"),q=document.createElementNS("http://www.w3.org/2000/svg","path"),r=document.createElement("div"),v=document.createElement("slot"),x=document.createElement("div"),y=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-timeline-track-color:rgba(0,0,0,0.12);--x-scroll-timeline-track-fill-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-track-width:3px;--x-scroll-timeline-marker-size:14px;--x-scroll-timeline-marker-color:rgba(0,0,0,0.15);--x-scroll-timeline-marker-active-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-marker-border-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-entry-gap:2rem;--x-scroll-timeline-date-color:rgba(0,0,0,0.5);--x-scroll-timeline-date-font-size:0.8125rem;--x-scroll-timeline-transition-duration:300ms;--x-scroll-timeline-curve-amplitude:60;--x-scroll-timeline-disabled-opacity:0.55;}@media (prefers-color-scheme:dark){:host{--x-scroll-timeline-track-color:rgba(255,255,255,0.12);--x-scroll-timeline-marker-color:rgba(255,255,255,0.18);--x-scroll-timeline-date-color:rgba(255,255,255,0.5);}}[part\x3dcontainer]{position:relative;padding:0;}[part\x3dtrack]{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:var(--x-scroll-timeline-track-width);pointer-events:none;z-index:1;}:host([data-layout\x3dleft]) [part\x3dtrack]{left:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}:host([data-layout\x3dright]) [part\x3dtrack]{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}[part\x3dtrack-line]{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--x-scroll-timeline-track-color);border-radius:999px;}[part\x3dtrack-fill]{position:absolute;top:0;left:0;right:0;height:0%;background:var(--x-scroll-timeline-track-fill-color);border-radius:999px;transition:height 60ms linear;}[part\x3dtrack-svg]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}:host([data-track\x3dcurved]) [part\x3dtrack-line],:host([data-track\x3dcurved]) [part\x3dtrack-fill]{display:none;}:host([data-track\x3dcurved]) [part\x3dtrack-svg]{display:block;}[part\x3dtrack-path]{fill:none;stroke:var(--x-scroll-timeline-track-color);stroke-width:3px;stroke-linecap:round;}[part\x3dtrack-fill-path]{fill:none;stroke:var(--x-scroll-timeline-track-fill-color);stroke-width:3px;stroke-linecap:round;transition:stroke-dashoffset 60ms linear;}[part\x3dentries]{position:relative;z-index:2;}::slotted(*){display:block;margin-bottom:var(--x-scroll-timeline-entry-gap);opacity:0.4;transition:opacity var(--x-scroll-timeline-transition-duration) ease;}::slotted(:last-child){margin-bottom:0;}::slotted([data-active]){opacity:1;}:host([data-layout\x3dalternating]) ::slotted(*){width:calc(50% - var(--x-scroll-timeline-marker-size));}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dleft]){margin-left:0;margin-right:auto;text-align:right;padding-right:1.5rem;}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dright]){margin-left:auto;margin-right:0;text-align:left;padding-left:1.5rem;}:host([data-layout\x3dleft]) ::slotted(*){margin-left:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;}:host([data-layout\x3dright]) ::slotted(*){margin-right:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;text-align:right;}.tl-marker{position:absolute;z-index:3;width:var(--x-scroll-timeline-marker-size);height:var(--x-scroll-timeline-marker-size);border-radius:50%;background:var(--x-scroll-timeline-marker-color);border:2px solid transparent;transform:translate(-50%,-50%);transition:background var(--x-scroll-timeline-transition-duration) ease,border-color var(--x-scroll-timeline-transition-duration) ease,box-shadow var(--x-scroll-timeline-transition-duration) ease;}.tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);box-shadow:0 0 0 3px rgba(59,130,246,0.25);}:host([data-marker\x3dring]) .tl-marker{background:transparent;border:2px solid var(--x-scroll-timeline-marker-color);}:host([data-marker\x3dring]) .tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);}:host([data-marker\x3dnone]) .tl-marker{display:none;}.tl-marker{left:50%;}:host([data-layout\x3dleft]) .tl-marker{left:calc(var(--x-scroll-timeline-marker-size) / 2);}:host([data-layout\x3dright]) .tl-marker{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:translate(50%,-50%);}.tl-date{position:absolute;z-index:3;font-size:var(--x-scroll-timeline-date-font-size);color:var(--x-scroll-timeline-date-color);white-space:nowrap;transform:translateY(-50%);transition:color var(--x-scroll-timeline-transition-duration) ease;}.tl-date[data-active]{color:var(--x-scroll-timeline-marker-active-color);font-weight:600;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dleft]{left:calc(50% + var(--x-scroll-timeline-marker-size));padding-left:0.5rem;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dright]{right:calc(50% + var(--x-scroll-timeline-marker-size));padding-right:0.5rem;text-align:right;}:host([data-layout\x3dleft]) .tl-date{left:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);}:host([data-layout\x3dright]) .tl-date{right:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);text-align:right;}:host([disabled]){opacity:var(--x-scroll-timeline-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;z-index:4;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (pointer:coarse){:host{--x-scroll-timeline-marker-size:44px;}}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}.tl-marker{transition:none !important;}.tl-date{transition:none !important;}[part\x3dtrack-fill]{transition:none !important;}[part\x3dtrack-fill-path]{transition:none !important;}}";
6
+ d.setAttribute("part","container");d.setAttribute("role","feed");e.setAttribute("part","track");f.setAttribute("part","track-line");h.setAttribute("part","track-fill");l.setAttribute("part","track-svg");l.setAttribute("aria-hidden","true");l.setAttribute("focusable","false");m.setAttribute("part","track-path");q.setAttribute("part","track-fill-path");q.setAttribute("pathLength","1");l.appendChild(m);l.appendChild(q);e.appendChild(f);e.appendChild(h);r.setAttribute("part","entries");r.appendChild(v);
7
+ x.setAttribute("part","indicator");d.appendChild(e);d.appendChild(r);d.appendChild(l);d.appendChild(x);y.setAttribute("part","live");y.setAttribute("aria-live","polite");y.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(y);b=$APP.Lf([$APP.tk,hB,iB,jB,kB,lB,$APP.Uh,$APP.Vh,mB,$APP.Oj,nB,$APP.lk],[v,l,q,r,m,f,b,d,x,y,h,e]);a.__xScrollTimelineRefs=b;return $APP.k(a,"__xScrollTimelineRefs")},wB=function(a){a=$APP.Lf([$APP.Ch,pB,$APP.gl,$APP.An,$APP.lj,$APP.ym,$APP.Zj,
8
+ qB,$APP.mk,$APP.yn,rB],[a.getAttribute("label"),a.getAttribute("marker"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,a.getAttribute("track"),$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,$APP.n(a.hasAttribute("no-progress"))?"":null]);var b=$APP.J(a);a=$APP.C(b,$APP.mk);var c=$APP.C(b,$APP.yn),d=$APP.C(b,rB),e=$APP.C(b,
9
+ $APP.Ch),f=$APP.C(b,pB),h=$APP.C(b,$APP.gl),l=$APP.C(b,$APP.An),m=$APP.C(b,$APP.lj),q=$APP.C(b,$APP.ym),r=$APP.C(b,$APP.Zj);b=$APP.C(b,qB);q=typeof q==="string"?q.trim().toLowerCase():null;q=$APP.Zc(sB,q)?q:"alternating";f=typeof f==="string"?f.trim().toLowerCase():null;f=$APP.Zc(tB,f)?f:"dot";m=aB(m);e=$APP.n(e)?e:"";h=bB(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.Zc(uB,b)?b:"straight";return $APP.Lf([$APP.yl,$APP.Zl,$APP.Jj,vB,$APP.ln,$APP.X,$APP.Sj,$APP.Y,$APP.hl,$APP.lk,$APP.Vj],
10
+ [q,f,c!=null,d!=null,m,e,r!=null,a!=null,h,b,l!=null])},xB=function(a){a=oB(a);a=$APP.J(a);return $APP.C(a,$APP.tk).assignedElements()},yB=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},zB=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.M(a,"")?a:null},AB=function(a,b){a=$APP.J($APP.k(a,"__xScrollTimelineRefs"));var c=$APP.C(a,$APP.Oj);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},BB=function(a,b){for(var c=a.length,
11
+ d=0;;)if(d<c){var e=a[d];e.setAttribute("data-side",cB(b,d));e.setAttribute("data-index",""+$APP.Q.g(d));d+=1}else break},CB=function(a){a=xB(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.removeAttribute("data-active");d.removeAttribute("data-side");d.removeAttribute("data-index");c+=1}else break},DB=function(a,b){var c=$APP.J($APP.k(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.Vh);var d=$APP.k(a,"__xScrollTimelineMarkerEls");d=$APP.n(d)?d:[];b=b.length;for(var e=d.length,f=0;;)if(f<e)d[f].remove(),
12
+ f+=1;else break;d=Array(b);for(e=0;;)if(e<b)f=document.createElement("div"),f.classList.add("tl-marker"),c.appendChild(f),d[e]=f,e+=1;else break;a.__xScrollTimelineMarkerEls=d},EB=function(a,b){var c=$APP.J($APP.k(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.Vh);var d=$APP.k(a,"__xScrollTimelineDateEls");var e=$APP.n(d)?d:[];d=b.length;for(var f=e.length,h=0;;)if(h<f){var l=e[h];$APP.n(l)&&l.remove();h+=1}else break;e=Array(d);for(f=0;;)if(f<d)h=b[f].getAttribute("data-date"),typeof h==="string"&&
13
+ $APP.M(h,"")?(l=document.createElement("span"),l.classList.add("tl-date"),l.textContent=h,c.appendChild(l),e[f]=l):e[f]=null,f+=1;else break;a.__xScrollTimelineDateEls=e},FB=function(a,b,c){a=$APP.J($APP.k(a,"__xScrollTimelineRefs"));a=$APP.C(a,nB);$APP.n(c)?a.style.height="0%":a.style.height=""+$APP.Q.g(b*100)+"%"},GB=function(a,b){var c=$APP.J($APP.k(a,"__xScrollTimelineRefs")),d=$APP.C(c,$APP.Vh),e=$APP.C(c,hB),f=$APP.C(c,kB);c=$APP.C(c,iB);var h=function(){var G=$APP.k(a,"__xScrollTimelineModel");
14
+ return $APP.n(G)?G:wB(a)}(),l=$APP.yl.g(h);h=d.getBoundingClientRect();var m=h.top;d=h.height;var q=h.width,r=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-curve-amplitude");h=function(){var G=parseFloat(r);return $APP.n(isNaN(G))?60:G}();var v=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),x=function(){var G=parseFloat(v);return $APP.n(isNaN(G))?7:G/2}(),y=function(){switch(l){case "left":return x;case "right":return q-x;default:return q*.5}}(),
15
+ A=b.length;if(A>0){var D=function(){for(var G=0,I=$APP.pe;;){if(G>=A)return I;var H=b[G].getBoundingClientRect(),K=G+1;I=$APP.ud.i(I,new $APP.N(null,2,[$APP.bn,H.top+H.height/2-m,fB,cB(l,G)],null));G=K}}();h=gB(D,h,y);e.setAttribute("viewBox","0 0 "+$APP.Q.g(q)+" "+$APP.Q.g(d));f.setAttribute("d",h);c.setAttribute("d",h);c.setAttribute("stroke-dasharray","1");c.setAttribute("stroke-dashoffset","1")}},HB=function(a,b,c){a=$APP.J($APP.k(a,"__xScrollTimelineRefs"));a=$APP.C(a,iB);$APP.n(c)?a.setAttribute("stroke-dashoffset",
16
+ "1"):a.setAttribute("stroke-dashoffset",""+$APP.Q.g(1-b))},IB=function(a,b,c){var d=$APP.k(a,"__xScrollTimelineActiveIndex");d=$APP.n(d)?d:-1;if($APP.M(d,c)){d>=0&&d<b.length&&b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");var e=$APP.k(a,"__xScrollTimelineMarkerEls"),f=$APP.k(a,"__xScrollTimelineDateEls");$APP.n(e)&&(d>=0&&d<e.length&&e[d].removeAttribute("data-active"),c>=0&&c<e.length&&e[c].setAttribute("data-active",""));$APP.n(f)&&(d>=0&&d<f.length&&
17
+ (e=f[d],$APP.n(e)&&e.removeAttribute("data-active")),c>=0&&c<f.length&&(f=f[c],$APP.n(f)&&f.setAttribute("data-active","")));c>=0?a.setAttribute("data-active-index",""+$APP.Q.g(c)):a.removeAttribute("data-active-index");a.__xScrollTimelineActiveIndex=c;f=d>=0&&d<b.length?zB(b[d]):null;b=c>=0&&c<b.length?zB(b[c]):null;$APP.P(a,"x-scroll-timeline-entry-change",{index:c,id:b,previousIndex:d,previousId:f});AB(a,"Entry "+$APP.Q.g(c+1)+" active")}},JB=function(a,b,c,d){var e=b.length;var f=$APP.k(a,"__xScrollTimelineEntryStates");
18
+ if(!$APP.n($APP.n(f)?$APP.B.i(f.length,e):f)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(f)?l<f.length:f)?f[l]:!1,l+=1;else break;f=a.__xScrollTimelineEntryStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.wc(c,h);l=$APP.J(l);var m=$APP.C(l,$APP.Bj),q=$APP.C(l,$APP.Rl),r=f[h];l=m<=d&&q>d;var v=zB(b[h]);m=eB(m,q-m,d);$APP.p(r)&&l?(f[h]=!0,$APP.P(a,"x-scroll-timeline-entry-enter",{index:h,id:v,progress:m})):$APP.n($APP.n(r)?!l:r)&&(f[h]=!1,$APP.P(a,"x-scroll-timeline-entry-leave",{index:h,id:v,
19
+ progress:m}))}h+=1}else break},KB=function(a){var b=function(){var r=$APP.k(a,"__xScrollTimelineModel");return $APP.n(r)?r:wB(a)}();if(!$APP.n($APP.Y.g(b))){var c=xB(a),d=c.length,e=window.innerHeight,f=e*$APP.ln.g(b),h=function(){for(var r=0,v=$APP.pe;;){if(r>=d)return v;var x=c[r].getBoundingClientRect();r+=1;v=$APP.ud.i(v,new $APP.N(null,2,[$APP.Bj,x.top,$APP.Rl,x.top+x.height],null))}}(),l=dB(h,f),m=$APP.J($APP.k(a,"__xScrollTimelineRefs"));m=$APP.C(m,$APP.Vh).getBoundingClientRect();e=$APP.Hi.i(0,
20
+ $APP.Ii.i(1,(e-m.top)/(e+m.height)));m=$APP.k(a,"__xScrollTimelineLastProg");var q=d<2||l<0?0:function(){var r=function(){var D=$APP.wc(h,0);return($APP.Bj.g(D)+$APP.Rl.g(D))/2}(),v=function(){var D=$APP.wc(h,d-1);return($APP.Bj.g(D)+$APP.Rl.g(D))/2}()-r,x=$APP.wc(h,l),y=($APP.Bj.g(x)+$APP.Rl.g(x))/2;x=eB($APP.Bj.g(x),$APP.Rl.g(x)-$APP.Bj.g(x),f);var A=l<d-1?function(){var D=$APP.wc(h,l+1);return($APP.Bj.g(D)+$APP.Rl.g(D))/2}():y;return v<=0?1:$APP.Hi.i(0,$APP.Ii.i(1,(y+x*(A-y)-r)/v))}();IB(a,c,l);
21
+ JB(a,c,h,f);$APP.B.i($APP.lk.g(b),"curved")?HB(a,q,vB.g(b)):FB(a,q,vB.g(b));if(m==null||Math.abs(e-m)>.001)a.__xScrollTimelineLastProg=e,b=l>=0&&l<d?zB(c[l]):null,$APP.P(a,"x-scroll-timeline-progress",{progress:e,activeIndex:l,activeId:b})}a.__xScrollTimelineRAF=null},LB=function(a){return function d(c){if($APP.n(function(){var h=a.isConnected;return $APP.n(h)?(h=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(h)?$APP.p($APP.k(a,"__xScrollTimelineAutoplayPaused")):h):h}())){var e=$APP.k(a,"__xScrollTimelineModel");
22
+ if($APP.n(function(){if($APP.n(e)){var h=$APP.Vj.g(e);return $APP.n(h)?$APP.p($APP.Y.g(e)):h}return e}())){var f=$APP.k(a,"__xScrollTimelineAutoplayLast");f=$APP.n(f)?(c-f)/1E3:0;a.__xScrollTimelineAutoplayLast=c;f>0&&(window.scrollBy(0,$APP.hl.g(e)*f),$APP.n($APP.Jj.g(e))&&(f=window.scrollY,c=window.innerHeight,f+c>=document.documentElement.scrollHeight-1&&(f=a.getBoundingClientRect().top+f,window.scrollTo(0,$APP.Hi.i(0,f-c)),a.__xScrollTimelineAutoplayLast=null)));return $APP.fa(a,"__xScrollTimelineAutoplayRAF",
23
+ requestAnimationFrame(d))}}return null}},MB=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused")))return null;a.__xScrollTimelineAutoplayPaused=!0;var b=$APP.k(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=xB(a);d=
24
+ c>=0&&c<d.length?zB(d[c]):null;return $APP.P(a,"x-scroll-timeline-autoplay-pause",{progress:b,activeIndex:c,activeId:d})},NB=function(a){if($APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))){a.__xScrollTimelineAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollTimelineAutoplayLast=null;$APP.fa(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(LB(a)));var b=function(){var e=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollTimelineActiveIndex");
25
+ return $APP.n(e)?e:-1}(),d=xB(a);d=c>=0&&c<d.length?zB(d[c]):null;return $APP.P(a,"x-scroll-timeline-autoplay-resume",{progress:b,activeIndex:c,activeId:d})}return null},OB=function(a){var b=$APP.k(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);b=$APP.k(a,"__xScrollTimelineAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",
26
+ $APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollTimelineAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null},PB=function(a){if($APP.k(a,"__xScrollTimelineAutoplayRAF")==null){var b=$APP.k(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Vj.g(b);return $APP.n(l)?(l=$APP.p($APP.Y.g(b)))?
27
+ (l=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(l)?!yB():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null;var c=function(){return MB(a)},d=function(){return NB(a)},e=function(){return $APP.n($APP.k(a,"__xScrollTimelineAutoplayPaused"))?NB(a):null},f=function(l){return $APP.B.i(l.code,"Space")?(l.preventDefault(),MB(a)):null},h=function(l){return $APP.B.i(l.code,"Space")?NB(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",
28
+ d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.fa(a,"__xScrollTimelineAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});$APP.fa(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(LB(a)))}}return null},QB=function(a){a=$APP.k(a,"__xScrollTimelineModel");return $APP.n(a)?$APP.Y.g(a):a},RB=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollTimelineVisible"),$APP.n(b)?
29
+ $APP.p(QB(a))&&!yB():b):b}())?$APP.n($APP.k(a,"__xScrollTimelineRAF"))?null:$APP.fa(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return KB(a)})):null},SB=function(a){a=$APP.k(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.p($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},TB=function(a){a=$APP.k(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",
30
+ $APP.k(a,"scroll")),a.scrollAttached=!1)},UB=function(a,b){b=b[0].isIntersecting;a.__xScrollTimelineVisible=b;if($APP.n(b)){if($APP.n(QB(a)))return null;SB(a);KB(a);AB(a,"Timeline entered viewport");$APP.P(a,"x-scroll-timeline-enter",{progress:function(){var c=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()});b=$APP.k(a,"__xScrollTimelineModel");return $APP.n($APP.n(b)?$APP.Vj.g(b):b)?PB(a):null}TB(a);OB(a);if($APP.n(QB(a)))return null;AB(a,"Timeline left viewport");return $APP.P(a,
31
+ "x-scroll-timeline-leave",{progress:function(){var c=$APP.k(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()})},VB=function(a){var b=function(){var d=$APP.k(a,"__xScrollTimelineModel");return $APP.n(d)?d:wB(a)}(),c=xB(a);BB(c,$APP.yl.g(b));DB(a,c);EB(a,c);return requestAnimationFrame(function(){var d=xB(a),e=$APP.k(a,"__xScrollTimelineMarkerEls"),f=$APP.k(a,"__xScrollTimelineDateEls"),h=$APP.J($APP.k(a,"__xScrollTimelineRefs"));h=$APP.C(h,$APP.Vh).getBoundingClientRect().top;var l=$APP.k(a,
32
+ "__xScrollTimelineModel");l=$APP.n(l)?l:wB(a);l=$APP.yl.g(l);for(var m=d.length,q=0;;)if(q<m){var r=d[q].getBoundingClientRect();r=r.top+r.height/2-h;var v=cB(l,q),x=$APP.n(e)?e[q]:e;$APP.n(x)&&(x.style.top=""+$APP.Q.g(r)+"px");x=$APP.n(f)?f[q]:f;$APP.n(x)&&(x.style.top=""+$APP.Q.g(r)+"px",x.setAttribute("data-side",v));q+=1}else break;$APP.B.i($APP.lk.g(b),"curved")&&GB(a,d);return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?KB(a):null})},WB=function(a){function b(){return $APP.n($APP.k(a,"__xScrollTimelineVisible"))?
33
+ (a.__xScrollTimelineEntryStates=null,VB(a)):null}function c(){a.__xScrollTimelineEntryStates=null;return VB(a)}var d=oB(a);d=$APP.J(d);$APP.C(d,$APP.tk).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.fa(a,"__xScrollTimelineHandlers",{scroll:function(){return RB(a)},slot:c,resize:b,scrollAttached:!1})},XB=function(a){var b=$APP.k(a,"__xScrollTimelineHandlers");if($APP.n(b)){TB(a);var c=$APP.k(a,"__xScrollTimelineRefs");if($APP.n(c)){c=$APP.tk.g(c);var d=$APP.k(b,"slot");
34
+ $APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollTimelineRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineRAF=null);a.__xScrollTimelineHandlers=null},YB=function(a){var b=$APP.k(a,"__xScrollTimelineIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return UB(a,c)},{threshold:[0]});b.observe(a);a.__xScrollTimelineIO=b},ZB=function(a){var b=wB(a);if($APP.M($APP.k(a,"__xScrollTimelineModel"),
35
+ b)){b=$APP.J(b);var c=$APP.C(b,$APP.yl),d=$APP.C(b,$APP.lk),e=$APP.C(b,$APP.Y),f=$APP.C(b,$APP.X),h=$APP.C(b,$APP.Zl),l=oB(a);l=$APP.J(l);l=$APP.C(l,$APP.Vh);var m=$APP.k(a,"__xScrollTimelineModel");a.setAttribute("data-layout",c);a.setAttribute("data-track",d);a.setAttribute("data-marker",h);$APP.t(f)?l.setAttribute("aria-label",f):l.removeAttribute("aria-label");a.__xScrollTimelineModel=b;$APP.n(e)?(CB(a),a.__xScrollTimelineActiveIndex=-1,a.__xScrollTimelineEntryStates=null,TB(a),OB(a)):$APP.n(m)&&
36
+ ($APP.M($APP.yl.g(m),c)||$APP.M($APP.lk.g(m),d)||$APP.M($APP.Zl.g(m),h)||$APP.M($APP.Y.g(m),e)?VB(a):($APP.M($APP.ln.g(m),$APP.ln.g(b))||$APP.M(vB.g(m),vB.g(b)))&&$APP.n($APP.k(a,"__xScrollTimelineVisible"))&&KB(a));$APP.n(e)||(b=$APP.Vj.g(b),$APP.n($APP.n(b)?$APP.k(a,"__xScrollTimelineVisible"):b)?PB(a):OB(a))}},$B=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",
37
+ ""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},aC=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return d.g?d.g(e):d.call(null,e)},set:function(e){return e!=null?this.setAttribute(c,""+$APP.Q.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},bC=function(a,b,c,d){return Object.defineProperty(a,b,{get:function(){var e=$APP.k(this,c);return e!=null?e:d},enumerable:!0,configurable:!0})},cC=function(a){$APP.eh(a,"layout",
38
+ "layout","alternating");$APP.eh(a,"track","track","straight");$APP.eh(a,"marker","marker","dot");$B(a);aC(a,"threshold","threshold",aB);$APP.dh(a,"noProgress","no-progress");$APP.dh(a,"disabled","disabled");$APP.dh(a,"autoplay","autoplay");aC(a,"autoplaySpeed","autoplay-speed",bB);$APP.dh(a,"autoplayLoop","autoplay-loop");$APP.dh(a,"autoplayIndicator","autoplay-indicator");bC(a,"activeIndex","__xScrollTimelineActiveIndex",-1);bC(a,"progress","__xScrollTimelineLastProg",0);return bC(a,"autoplayPaused",
39
+ "__xScrollTimelineAutoplayPaused",!1)},dC=function(a){oB(a);XB(a);WB(a);YB(a);ZB(a);return null},eC=function(a){OB(a);CB(a);if($APP.n($APP.k(a,"__xScrollTimelineVisible"))){var b=$APP.k(a,"__xScrollTimelineLastProg");$APP.P(a,"x-scroll-timeline-leave",{progress:$APP.n(b)?b:0})}XB(a);b=$APP.k(a,"__xScrollTimelineIO");$APP.n(b)&&(b.disconnect(),a.__xScrollTimelineIO=null);a.__xScrollTimelineVisible=!1;a.__xScrollTimelineActiveIndex=-1;a.__xScrollTimelineLastProg=null;return a.__xScrollTimelineEntryStates=
40
+ null},fC=function(a,b,c,d){$APP.M(c,d)&&ZB(a);return null},hC=function(){return $APP.Yg("x-scroll-timeline",new $APP.N(null,5,[$APP.Pg,gC,$APP.Qg,dC,$APP.Rg,eC,$APP.Sg,fC,$APP.Wg,cC],null))},nB=new $APP.F(null,"track-fill","track-fill",1852369499),jB=new $APP.F(null,"entries","entries",-86943161),pB=new $APP.F(null,"marker-raw","marker-raw",2140891555),mB=new $APP.F(null,"indicator","indicator",1928219637),vB=new $APP.F(null,"no-progress?","no-progress?",-1599319890),qB=new $APP.F(null,"track-raw",
41
+ "track-raw",751958776),kB=new $APP.F(null,"track-path","track-path",-1838135442),iB=new $APP.F(null,"fill-path","fill-path",-792439899),rB=new $APP.F(null,"no-progress-attr","no-progress-attr",115951679),hB=new $APP.F(null,"track-svg","track-svg",-556455964),fB=new $APP.F(null,"side","side",389652279),lB=new $APP.F(null,"track-line","track-line",1370628624);var gC="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
42
+ $APP.Lf([$APP.Fm,$APP.Zi,$APP.Vl,$APP.al,$APP.yl,$APP.Al,$APP.Zl,$APP.ln,$APP.Zn,$APP.X,$APP.Pl,$APP.vn,new $APP.F(null,"noProgress","noProgress",-2114530658),$APP.lk],[new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.V],null),new $APP.N(null,
43
+ 2,[$APP.R,$APP.T,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.U],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,2,[$APP.R,$APP.V,$APP.El,!0],null),new $APP.N(null,1,[$APP.R,$APP.T],null),new $APP.N(null,1,[$APP.R,$APP.U],null)]);
44
+ $APP.Yd(["x-scroll-timeline-entry-change",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.kl,$APP.V,$APP.so,$APP.U],null),$APP.Fn,!1],null),"x-scroll-timeline-entry-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-entry-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Lm,$APP.U,$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-progress",new $APP.N(null,
45
+ 2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-timeline-enter",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-leave",new $APP.N(null,2,[$APP.Z,new $APP.N(null,1,[$APP.vn,$APP.V],null),$APP.Fn,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null),"x-scroll-timeline-autoplay-resume",
46
+ new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.vn,$APP.V,$APP.Al,$APP.V,$APP.Ym,$APP.U],null),$APP.Fn,!1],null)]);var sB=new $APP.O(null,new $APP.N(null,3,["right",null,"left",null,"alternating",null],null),null),uB=new $APP.O(null,new $APP.N(null,2,["curved",null,"straight",null],null),null),tB=new $APP.O(null,new $APP.N(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.ca("baredom.exports.x_scroll_timeline.init",hC);export const init=hC;