@vanelsas/baredom 1.3.0 → 1.4.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 (83) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +6 -4
  3. package/dist/base.js +397 -373
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +47 -47
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +8 -8
  17. package/dist/x-collapse.js +10 -10
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +19 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +41 -41
  24. package/dist/x-divider.js +13 -13
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +9 -9
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +15 -15
  30. package/dist/x-form.js +10 -10
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +29 -0
  34. package/dist/x-kinetic-typography.js +39 -61
  35. package/dist/x-liquid-dock.js +40 -0
  36. package/dist/x-liquid-fill.js +45 -0
  37. package/dist/x-liquid-glass.js +48 -0
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +28 -27
  41. package/dist/x-modal.js +12 -12
  42. package/dist/x-morph-stack.js +41 -0
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +34 -34
  45. package/dist/x-notification-center.js +9 -10
  46. package/dist/x-organic-divider.js +19 -19
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +14 -14
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +10 -10
  53. package/dist/x-radio.js +11 -11
  54. package/dist/x-ripple-effect.js +12 -13
  55. package/dist/x-scroll-parallax.js +19 -19
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +36 -36
  58. package/dist/x-scroll-timeline.js +50 -50
  59. package/dist/x-scroll.js +41 -41
  60. package/dist/x-search-field.js +14 -14
  61. package/dist/x-select.js +9 -9
  62. package/dist/x-sidebar.js +16 -16
  63. package/dist/x-skeleton.js +6 -6
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +22 -0
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +5 -5
  68. package/dist/x-splash.js +13 -13
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +10 -10
  72. package/dist/x-tab.js +7 -7
  73. package/dist/x-table-cell.js +22 -22
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +16 -16
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-timeline-item.js +24 -24
  79. package/dist/x-timeline.js +9 -9
  80. package/dist/x-toast.js +24 -24
  81. package/dist/x-toaster.js +8 -8
  82. package/dist/x-typography.js +10 -10
  83. package/package.json +25 -1
@@ -1,51 +1,51 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Qr=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.Fg.h(0,$APP.Gg.h(1,a))):.5},Rr=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.Fg.h(1,$APP.Gg.h(1E3,a))):50},Sr=function(a,b){switch(a){case "alternating":return $APP.Vc(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},Tr=function(a,b){var c=$APP.B(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.fc(a,d),k=$APP.N(h);h=$APP.I(k,$APP.uh);k=$APP.I(k,$APP.oj);e=h<=b&&k>b?d:e;g=h<=b?d:g;d+=1}},Ur=function(a,b,c){return b<=0?0:$APP.Fg.h(0,$APP.Gg.h(1,(c-a)/b))},Wr=function(a,b,c){var d=$APP.B(a);if(d===0)return"";if($APP.C.h(d,1))return a=$APP.w(a),a=$APP.N(a),a=$APP.I(a,$APP.Yj),"M "+$APP.T.g(c)+" "+$APP.T.g(a);var e=$APP.w(a),g=$APP.Yj.g(e);e=0;for(g=new $APP.Q(null,1,5,$APP.fe,["M "+$APP.T.g(c)+" "+$APP.T.g(g)],null);;){if(e>=d-1)return $APP.xg(g);var h=$APP.fc(a,e),k=$APP.fc(a,
4
- e+1),m=$APP.Yj.g(h),p=$APP.Yj.g(k);h=Vr.g(h);var q=Vr.g(k);k=$APP.C.h(h,"left")?-b:b;q=$APP.C.h(q,"left")?-b:b;h=m+(p-m)*.33;q=c+q;m+=(p-m)*.66;var v=c;e+=1;g=$APP.ad.h(g,"C "+$APP.T.g(c+k)+" "+$APP.T.g(h)+" "+$APP.T.g(q)+" "+$APP.T.g(m)+" "+$APP.T.g(v)+" "+$APP.T.g(p))}},ds=function(a){var b=$APP.l(a,"__xScrollTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),
5
- h=document.createElement("div"),k=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:#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:#3b82f6;--x-scroll-timeline-marker-border-color:#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 (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");k.setAttribute("part","track-svg");k.setAttribute("aria-hidden","true");k.setAttribute("focusable","false");m.setAttribute("part","track-path");p.setAttribute("part","track-fill-path");p.setAttribute("pathLength","1");k.appendChild(m);k.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(k);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.mf([$APP.fi,Xr,Yr,Zr,$r,as,$APP.Jh,$APP.yi,bs,$APP.Hh,cs,$APP.ai],[v,k,p,q,m,g,b,d,x,y,h,e]);a.__xScrollTimelineRefs=b;return $APP.l(a,"__xScrollTimelineRefs")},ls=function(a){a=$APP.mf([$APP.sh,es,$APP.Ii,$APP.ok,$APP.eh,$APP.Fj,$APP.Sh,
8
- fs,$APP.bi,$APP.nk,gs],[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.N(a);a=$APP.I(b,$APP.bi);var c=$APP.I(b,$APP.nk),d=$APP.I(b,gs),e=$APP.I(b,
9
- $APP.sh),g=$APP.I(b,es),h=$APP.I(b,$APP.Ii),k=$APP.I(b,$APP.ok),m=$APP.I(b,$APP.eh),p=$APP.I(b,$APP.Fj),q=$APP.I(b,$APP.Sh);b=$APP.I(b,fs);p=typeof p==="string"?p.trim().toLowerCase():null;p=$APP.K(hs,p)?p:"alternating";g=typeof g==="string"?g.trim().toLowerCase():null;g=$APP.K(is,g)?g:"dot";m=Qr(m);e=$APP.n(e)?e:"";h=Rr(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.K(js,b)?b:"straight";return $APP.mf([$APP.Wi,$APP.uj,$APP.Dh,ks,$APP.fk,$APP.U,$APP.Lh,$APP.X,$APP.Ji,$APP.ai,$APP.Oh],
10
- [p,g,c!=null,d!=null,m,e,q!=null,a!=null,h,b,k!=null])},ms=function(a){a=ds(a);a=$APP.N(a);return $APP.I(a,$APP.fi).assignedElements()},ns=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},os=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.O(a,"")?a:null},ps=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Sg(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},qs=function(a,b){a=$APP.N($APP.l(a,"__xScrollTimelineRefs"));var c=
11
- $APP.I(a,$APP.Hh);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},rs=function(a,b){for(var c=a.length,d=0;;)if(d<c){var e=a[d];e.setAttribute("data-side",Sr(b,d));e.setAttribute("data-index",""+$APP.T.g(d));d+=1}else break},ss=function(a){a=ms(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},ts=function(a,b){var c=$APP.N($APP.l(a,"__xScrollTimelineRefs"));c=$APP.I(c,
12
- $APP.yi);var d=$APP.l(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},us=function(a,b){var c=$APP.N($APP.l(a,"__xScrollTimelineRefs"));c=$APP.I(c,$APP.yi);var d=$APP.l(a,"__xScrollTimelineDateEls");var e=$APP.n(d)?d:[];d=b.length;for(var g=e.length,h=0;;)if(h<g){var k=
13
- e[h];$APP.n(k)&&k.remove();h+=1}else break;e=Array(d);for(g=0;;)if(g<d)h=b[g].getAttribute("data-date"),typeof h==="string"&&$APP.O(h,"")?(k=document.createElement("span"),k.classList.add("tl-date"),k.textContent=h,c.appendChild(k),e[g]=k):e[g]=null,g+=1;else break;a.__xScrollTimelineDateEls=e},vs=function(a,b,c){a=$APP.N($APP.l(a,"__xScrollTimelineRefs"));a=$APP.I(a,cs);$APP.n(c)?a.style.height="0%":a.style.height=""+$APP.T.g(b*100)+"%"},ws=function(a,b){var c=$APP.N($APP.l(a,"__xScrollTimelineRefs")),
14
- d=$APP.I(c,$APP.yi),e=$APP.I(c,Xr),g=$APP.I(c,$r);c=$APP.I(c,Yr);var h=function(){var G=$APP.l(a,"__xScrollTimelineModel");return $APP.n(G)?G:ls(a)}(),k=$APP.Wi.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 G=parseFloat(q);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))?
15
- 7:G/2}(),y=function(){switch(k){case "left":return x;case "right":return p-x;default:return p*.5}}(),A=b.length;if(A>0){var D=function(){for(var G=0,H=$APP.Td;;){if(G>=A)return H;var F=b[G].getBoundingClientRect(),P=G+1;H=$APP.ad.h(H,new $APP.R(null,2,[$APP.Yj,F.top+F.height/2-m,Vr,Sr(k,G)],null));G=P}}();h=Wr(D,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
- xs=function(a,b,c){a=$APP.N($APP.l(a,"__xScrollTimelineRefs"));a=$APP.I(a,Yr);$APP.n(c)?a.setAttribute("stroke-dashoffset","1"):a.setAttribute("stroke-dashoffset",""+$APP.T.g(1-b))},ys=function(a,b,c){var d=$APP.l(a,"__xScrollTimelineActiveIndex");d=$APP.n(d)?d:-1;if($APP.O(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.l(a,"__xScrollTimelineMarkerEls"),g=$APP.l(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?os(b[d]):null;b=c>=0&&c<b.length?os(b[c]):null;ps(a,"x-scroll-timeline-entry-change",new $APP.R(null,4,[$APP.ih,
18
- c,$APP.Oj,b,$APP.Oi,d,$APP.Wk,g],null));qs(a,"Entry "+$APP.T.g(c+1)+" active")}},zs=function(a,b,c,d){var e=b.length;var g=$APP.l(a,"__xScrollTimelineEntryStates");if(!$APP.n($APP.n(g)?$APP.C.h(g.length,e):g)){for(var h=Array(e),k=0;;)if(k<e)h[k]=$APP.n($APP.n(g)?k<g.length:g)?g[k]:!1,k+=1;else break;g=a.__xScrollTimelineEntryStates=h}for(h=0;;)if(h<e){if(h<$APP.B(c)){k=$APP.fc(c,h);k=$APP.N(k);var m=$APP.I(k,$APP.uh),p=$APP.I(k,$APP.oj),q=g[h];k=m<=d&&p>d;var v=os(b[h]);m=Ur(m,p-m,d);$APP.r(q)&&
19
- k?(g[h]=!0,ps(a,"x-scroll-timeline-entry-enter",new $APP.R(null,3,[$APP.ih,h,$APP.Oj,v,$APP.mk,m],null))):$APP.n($APP.n(q)?!k:q)&&(g[h]=!1,ps(a,"x-scroll-timeline-entry-leave",new $APP.R(null,3,[$APP.ih,h,$APP.Oj,v,$APP.mk,m],null)))}h+=1}else break},As=function(a){var b=function(){var q=$APP.l(a,"__xScrollTimelineModel");return $APP.n(q)?q:ls(a)}();if(!$APP.n($APP.X.g(b))){var c=ms(a),d=c.length,e=window.innerHeight,g=e*$APP.fk.g(b),h=function(){for(var q=0,v=$APP.Td;;){if(q>=d)return v;var x=c[q].getBoundingClientRect();
20
- q+=1;v=$APP.ad.h(v,new $APP.R(null,2,[$APP.uh,x.top,$APP.oj,x.top+x.height],null))}}(),k=Tr(h,g),m=$APP.N($APP.l(a,"__xScrollTimelineRefs"));m=$APP.I(m,$APP.yi).getBoundingClientRect();e=$APP.Fg.h(0,$APP.Gg.h(1,(e-m.top)/(e+m.height)));m=$APP.l(a,"__xScrollTimelineLastProg");var p=d<2||k<0?0:function(){var q=function(){var D=$APP.fc(h,0);return($APP.uh.g(D)+$APP.oj.g(D))/2}(),v=function(){var D=$APP.fc(h,d-1);return($APP.uh.g(D)+$APP.oj.g(D))/2}()-q,x=$APP.fc(h,k),y=($APP.uh.g(x)+$APP.oj.g(x))/2;
21
- x=Ur($APP.uh.g(x),$APP.oj.g(x)-$APP.uh.g(x),g);var A=k<d-1?function(){var D=$APP.fc(h,k+1);return($APP.uh.g(D)+$APP.oj.g(D))/2}():y;return v<=0?1:$APP.Fg.h(0,$APP.Gg.h(1,(y+x*(A-y)-q)/v))}();ys(a,c,k);zs(a,c,h,g);$APP.C.h($APP.ai.g(b),"curved")?xs(a,p,ks.g(b)):vs(a,p,ks.g(b));if(m==null||Math.abs(e-m)>.001)a.__xScrollTimelineLastProg=e,b=k>=0&&k<d?os(c[k]):null,ps(a,"x-scroll-timeline-progress",new $APP.R(null,3,[$APP.mk,e,$APP.ej,k,$APP.Vj,b],null))}a.__xScrollTimelineRAF=null},Bs=function(a){return function d(c){if($APP.n(function(){var k=
22
- a.isConnected;return $APP.n(k)?(k=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(k)?$APP.r($APP.l(a,"__xScrollTimelineAutoplayPaused")):k):k}())){var e=$APP.l(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(e)){var k=$APP.Oh.g(e);return $APP.n(k)?$APP.r($APP.X.g(e)):k}return e}())){var g=$APP.l(a,"__xScrollTimelineAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollTimelineAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Ji.g(e)*g);$APP.n(function(){var k=$APP.Dh.g(e);return $APP.n(k)?
23
- window.scrollY-h<.5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,$APP.Fg.h(0,c-window.innerHeight)),a.__xScrollTimelineAutoplayLast=null)}return $APP.ma(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},Cs=function(a){if($APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused")))return null;a.__xScrollTimelineAutoplayPaused=!0;var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);a.setAttribute("data-autoplay-paused",
24
- "");b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?os(d[c]):null;return ps(a,"x-scroll-timeline-autoplay-pause",new $APP.R(null,3,[$APP.mk,b,$APP.ej,c,$APP.Vj,d],null))},Ds=function(a){if($APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused"))){a.__xScrollTimelineAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollTimelineAutoplayLast=
25
- null;$APP.ma(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(Bs(a)));var b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?os(d[c]):null;return ps(a,"x-scroll-timeline-autoplay-resume",new $APP.R(null,3,[$APP.mk,b,$APP.ej,c,$APP.Vj,d],null))}return null},Es=function(a){var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),
26
- a.__xScrollTimelineAutoplayRAF=null);b=$APP.l(a,"__xScrollTimelineAutoplayHandlers");$APP.n(b)&&(a.removeEventListener("mousedown",$APP.l(b,"mousedown")),a.removeEventListener("mouseup",$APP.l(b,"mouseup")),a.removeEventListener("mouseleave",$APP.l(b,"mouseleave")),a.removeEventListener("touchstart",$APP.l(b,"touchstart")),a.removeEventListener("touchend",$APP.l(b,"touchend")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),a.__xScrollTimelineAutoplayHandlers=
27
- null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null},Fs=function(a){if($APP.l(a,"__xScrollTimelineAutoplayRAF")==null){var b=$APP.l(a,"__xScrollTimelineModel");if($APP.n(function(){if($APP.n(b)){var p=$APP.Oh.g(b);return $APP.n(p)?(p=$APP.r($APP.X.g(b)))?(p=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(p)?!ns():p):p:p}return b}())){a.setAttribute("tabindex","0");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=
28
- null;var c=function(){return Cs(a)},d=function(){return Ds(a)},e=function(){return $APP.n($APP.l(a,"__xScrollTimelineAutoplayPaused"))?Ds(a):null},g=function(){return Cs(a)},h=function(){return Ds(a)},k=function(p){return $APP.C.h(p.code,"Space")?(p.preventDefault(),Cs(a)):null},m=function(p){return $APP.C.h(p.code,"Space")?Ds(a):null};a.addEventListener("mousedown",c);a.addEventListener("mouseup",d);a.addEventListener("mouseleave",e);a.addEventListener("touchstart",g,{passive:!0});a.addEventListener("touchend",
29
- h,{passive:!0});a.addEventListener("keydown",k);a.addEventListener("keyup",m);$APP.ma(a,"__xScrollTimelineAutoplayHandlers",{mousedown:c,mouseup:d,mouseleave:e,touchstart:g,touchend:h,keydown:k,keyup:m});$APP.ma(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(Bs(a)))}}return null},Gs=function(a){a=$APP.l(a,"__xScrollTimelineModel");return $APP.n(a)?$APP.X.g(a):a},Hs=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.l(a,"__xScrollTimelineVisible"),$APP.n(b)?$APP.r(Gs(a))&&
30
- !ns():b):b}())?$APP.n($APP.l(a,"__xScrollTimelineRAF"))?null:$APP.ma(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return As(a)})):null},Is=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.r($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},Js=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.n($APP.n(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),
31
- a.scrollAttached=!1)},Ks=function(a,b){b=b[0].isIntersecting;a.__xScrollTimelineVisible=b;if($APP.n(b)){if($APP.n(Gs(a)))return null;Is(a);As(a);qs(a,"Timeline entered viewport");ps(a,"x-scroll-timeline-enter",new $APP.R(null,1,[$APP.mk,function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()],null));b=$APP.l(a,"__xScrollTimelineModel");return $APP.n($APP.n(b)?$APP.Oh.g(b):b)?Fs(a):null}Js(a);Es(a);if($APP.n(Gs(a)))return null;qs(a,"Timeline left viewport");return ps(a,"x-scroll-timeline-leave",
32
- new $APP.R(null,1,[$APP.mk,function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.n(c)?c:0}()],null))},Ls=function(a){var b=function(){var d=$APP.l(a,"__xScrollTimelineModel");return $APP.n(d)?d:ls(a)}(),c=ms(a);rs(c,$APP.Wi.g(b));ts(a,c);us(a,c);return requestAnimationFrame(function(){var d=ms(a),e=$APP.l(a,"__xScrollTimelineMarkerEls"),g=$APP.l(a,"__xScrollTimelineDateEls"),h=$APP.N($APP.l(a,"__xScrollTimelineRefs"));h=$APP.I(h,$APP.yi).getBoundingClientRect().top;var k=$APP.l(a,"__xScrollTimelineModel");
33
- k=$APP.n(k)?k:ls(a);k=$APP.Wi.g(k);for(var m=d.length,p=0;;)if(p<m){var q=d[p].getBoundingClientRect();q=q.top+q.height/2-h;var v=Sr(k,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.C.h($APP.ai.g(b),"curved")&&ws(a,d);return $APP.n($APP.l(a,"__xScrollTimelineVisible"))?As(a):null})},Ms=function(a){function b(){return $APP.n($APP.l(a,"__xScrollTimelineVisible"))?(a.__xScrollTimelineEntryStates=
34
- null,Ls(a)):null}function c(){a.__xScrollTimelineEntryStates=null;return Ls(a)}var d=ds(a);d=$APP.N(d);$APP.I(d,$APP.fi).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ma(a,"__xScrollTimelineHandlers",{scroll:function(){return Hs(a)},slot:c,resize:b,scrollAttached:!1})},Ns=function(a){var b=$APP.l(a,"__xScrollTimelineHandlers");if($APP.n(b)){Js(a);var c=$APP.l(a,"__xScrollTimelineRefs");if($APP.n(c)){c=$APP.fi.g(c);var d=$APP.l(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",
35
- d)}b=$APP.l(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollTimelineRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineRAF=null);a.__xScrollTimelineHandlers=null},Os=function(a){var b=$APP.l(a,"__xScrollTimelineIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return Ks(a,c)},{threshold:[0]});b.observe(a);a.__xScrollTimelineIO=b},Ps=function(a){var b=ls(a);if($APP.O($APP.l(a,"__xScrollTimelineModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.Wi),
36
- d=$APP.I(b,$APP.ai),e=$APP.I(b,$APP.X),g=$APP.I(b,$APP.U),h=$APP.I(b,$APP.uj),k=ds(a);k=$APP.N(k);k=$APP.I(k,$APP.yi);var m=$APP.l(a,"__xScrollTimelineModel");a.setAttribute("data-layout",c);a.setAttribute("data-track",d);a.setAttribute("data-marker",h);$APP.u(g)?k.setAttribute("aria-label",g):k.removeAttribute("aria-label");a.__xScrollTimelineModel=b;$APP.n(e)?(ss(a),a.__xScrollTimelineActiveIndex=-1,a.__xScrollTimelineEntryStates=null,Js(a),Es(a)):$APP.n(m)&&($APP.O($APP.Wi.g(m),c)||$APP.O($APP.ai.g(m),
37
- d)||$APP.O($APP.uj.g(m),h)||$APP.O($APP.X.g(m),e)?Ls(a):($APP.O($APP.fk.g(m),$APP.fk.g(b))||$APP.O(ks.g(m),ks.g(b)))&&$APP.n($APP.l(a,"__xScrollTimelineVisible"))&&As(a));$APP.n(e)||(b=$APP.Oh.g(b),$APP.n($APP.n(b)?$APP.l(a,"__xScrollTimelineVisible"):b)?Fs(a):Es(a))}},Qs=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"alternating"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.T.g(b)):this.removeAttribute("layout")},
38
- enumerable:!0,configurable:!0});Object.defineProperty(a,"track",{get:function(){var b=this.getAttribute("track");return $APP.n(b)?b:"straight"},set:function(b){return $APP.n(b)?this.setAttribute("track",""+$APP.T.g(b)):this.removeAttribute("track")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return Qr(this.getAttribute("threshold"))},set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,
39
- configurable:!0});Object.defineProperty(a,"noProgress",{get:function(){return this.hasAttribute("no-progress")},set:function(b){return $APP.n(b)?this.setAttribute("no-progress",""):this.removeAttribute("no-progress")},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")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",
40
- {get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"marker",{get:function(){var b=this.getAttribute("marker");return $APP.n(b)?b:"dot"},set:function(b){return $APP.n(b)?this.setAttribute("marker",""+$APP.T.g(b)):this.removeAttribute("marker")},enumerable:!0,configurable:!0});Object.defineProperty(a,
41
- "activeIndex",{get:function(){var b=$APP.l(this,"__xScrollTimelineActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollTimelineLastProg");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});
42
- Object.defineProperty(a,"autoplaySpeed",{get:function(){return Rr(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},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,
43
- "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,configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.J($APP.l(this,"__xScrollTimelineAutoplayPaused"))},enumerable:!0,configurable:!0})},Ss=function(){var a=class extends HTMLElement{};a.observedAttributes=Rs;a.prototype.connectedCallback=function(){ds(this);
44
- Ns(this);Ms(this);Os(this);Ps(this);return null};a.prototype.disconnectedCallback=function(){Es(this);ss(this);if($APP.n($APP.l(this,"__xScrollTimelineVisible"))){var b=$APP.l(this,"__xScrollTimelineLastProg");ps(this,"x-scroll-timeline-leave",new $APP.R(null,1,[$APP.mk,$APP.n(b)?b:0],null))}Ns(this);b=$APP.l(this,"__xScrollTimelineIO");$APP.n(b)&&(b.disconnect(),this.__xScrollTimelineIO=null);this.__xScrollTimelineVisible=!1;this.__xScrollTimelineActiveIndex=-1;return this.__xScrollTimelineEntryStates=
45
- this.__xScrollTimelineLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Ps(this);return null};Qs(a.prototype);return a},Ts=function(){$APP.n(customElements.get("x-scroll-timeline"))||customElements.define("x-scroll-timeline",Ss());return null},cs=new $APP.M(null,"track-fill","track-fill",1852369499),Zr=new $APP.M(null,"entries","entries",-86943161),es=new $APP.M(null,"marker-raw","marker-raw",2140891555),bs=new $APP.M(null,"indicator","indicator",1928219637),ks=new $APP.M(null,
46
- "no-progress?","no-progress?",-1599319890),fs=new $APP.M(null,"track-raw","track-raw",751958776),$r=new $APP.M(null,"track-path","track-path",-1838135442),Yr=new $APP.M(null,"fill-path","fill-path",-792439899),gs=new $APP.M(null,"no-progress-attr","no-progress-attr",115951679),Xr=new $APP.M(null,"track-svg","track-svg",-556455964),Vr=new $APP.M(null,"side","side",389652279),as=new $APP.M(null,"track-line","track-line",1370628624);var Rs="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
47
- $APP.mf([$APP.Kj,$APP.Ug,$APP.sj,$APP.Di,$APP.Wi,$APP.ej,$APP.uj,$APP.fk,$APP.Gk,$APP.U,$APP.mj,$APP.mk,new $APP.M(null,"noProgress","noProgress",-2114530658),$APP.ai],[new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.gj,!0],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),
48
- new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.gj,!0],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.gj,!0],null),new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null)]);
49
- $APP.Ed(["x-scroll-timeline-entry-change",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.ih,$APP.W,$APP.Oj,$APP.Y,$APP.Oi,$APP.W,$APP.Wk,$APP.Y],null),$APP.rk,!1],null),"x-scroll-timeline-entry-enter",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.ih,$APP.W,$APP.Oj,$APP.Y,$APP.mk,$APP.W],null),$APP.rk,!1],null),"x-scroll-timeline-entry-leave",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.ih,$APP.W,$APP.Oj,$APP.Y,$APP.mk,$APP.W],null),$APP.rk,!1],null),"x-scroll-timeline-progress",new $APP.R(null,
50
- 2,[$APP.V,new $APP.R(null,3,[$APP.mk,$APP.W,$APP.ej,$APP.W,$APP.Vj,$APP.Y],null),$APP.rk,!1],null),"x-scroll-timeline-enter",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.mk,$APP.W],null),$APP.rk,!1],null),"x-scroll-timeline-leave",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.mk,$APP.W],null),$APP.rk,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.mk,$APP.W,$APP.ej,$APP.W,$APP.Vj,$APP.Y],null),$APP.rk,!1],null),"x-scroll-timeline-autoplay-resume",
51
- new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.mk,$APP.W,$APP.ej,$APP.W,$APP.Vj,$APP.Y],null),$APP.rk,!1],null)]);var hs=new $APP.S(null,new $APP.R(null,3,["right",null,"left",null,"alternating",null],null),null),js=new $APP.S(null,new $APP.R(null,2,["curved",null,"straight",null],null),null),is=new $APP.S(null,new $APP.R(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.ja("baredom.exports.x_scroll_timeline.init",Ts);export const init=Ts;
2
+ var Ru=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.r(isNaN(a))?.5:$APP.Yg.i(0,$APP.Zg.i(1,a))):.5},Su=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.r(isNaN(a))?50:$APP.Yg.i(1,$APP.Zg.i(1E3,a))):50},Tu=function(a,b){switch(a){case "alternating":return $APP.hd(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},Uu=function(a,b){var c=$APP.B(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.rc(a,d),k=$APP.N(h);h=$APP.G(k,$APP.Qh);k=$APP.G(k,$APP.Qj);e=h<=b&&k>b?d:e;g=h<=b?d:g;d+=1}},Vu=function(a,b,c){return b<=0?0:$APP.Yg.i(0,$APP.Zg.i(1,(c-a)/b))},Xu=function(a,b,c){var d=$APP.B(a);if(d===0)return"";if($APP.D.i(d,1))return a=$APP.v(a),a=$APP.N(a),a=$APP.G(a,$APP.Nk),"M "+$APP.S.g(c)+" "+$APP.S.g(a);var e=$APP.v(a),g=$APP.Nk.g(e);e=0;for(g=new $APP.ve(null,1,5,$APP.we,["M "+$APP.S.g(c)+" "+$APP.S.g(g)],null);;){if(e>=d-1)return $APP.Jg(g);var h=$APP.rc(a,e),k=$APP.rc(a,
4
+ e+1),m=$APP.Nk.g(h),p=$APP.Nk.g(k);h=Wu.g(h);var q=Wu.g(k);k=$APP.D.i(h,"left")?-b:b;q=$APP.D.i(q,"left")?-b:b;h=m+(p-m)*.33;q=c+q;m+=(p-m)*.66;var w=c;e+=1;g=$APP.od.i(g,"C "+$APP.S.g(c+k)+" "+$APP.S.g(h)+" "+$APP.S.g(q)+" "+$APP.S.g(m)+" "+$APP.S.g(w)+" "+$APP.S.g(p))}},ev=function(a){var b=$APP.l(a,"__xScrollTimelineRefs");if($APP.r(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"),k=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"),w=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:#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:#3b82f6;--x-scroll-timeline-marker-border-color:#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 (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");k.setAttribute("part","track-svg");k.setAttribute("aria-hidden","true");k.setAttribute("focusable","false");m.setAttribute("part","track-path");p.setAttribute("part","track-fill-path");p.setAttribute("pathLength","1");k.appendChild(m);k.appendChild(p);e.appendChild(g);e.appendChild(h);q.setAttribute("part","entries");q.appendChild(w);
7
+ x.setAttribute("part","indicator");d.appendChild(e);d.appendChild(q);d.appendChild(k);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.Q([$APP.Fi,Yu,Zu,$u,av,bv,$APP.bi,$APP.Zi,cv,$APP.$h,dv,$APP.zi],[w,k,p,q,m,g,b,d,x,y,h,e]);a.__xScrollTimelineRefs=b;return $APP.l(a,"__xScrollTimelineRefs")},mv=function(a){a=$APP.Q([$APP.Oh,fv,$APP.lj,$APP.gl,$APP.Ah,$APP.sk,$APP.ki,
8
+ gv,$APP.Ai,$APP.fl,hv],[a.getAttribute("label"),a.getAttribute("marker"),a.getAttribute("autoplay-speed"),$APP.r(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.r(a.hasAttribute("autoplay-indicator"))?"":null,a.getAttribute("track"),$APP.r(a.hasAttribute("disabled"))?"":null,$APP.r(a.hasAttribute("autoplay-loop"))?"":null,$APP.r(a.hasAttribute("no-progress"))?"":null]);var b=$APP.N(a);a=$APP.G(b,$APP.Ai);var c=$APP.G(b,$APP.fl),d=$APP.G(b,hv),e=$APP.G(b,
9
+ $APP.Oh),g=$APP.G(b,fv),h=$APP.G(b,$APP.lj),k=$APP.G(b,$APP.gl),m=$APP.G(b,$APP.Ah),p=$APP.G(b,$APP.sk),q=$APP.G(b,$APP.ki);b=$APP.G(b,gv);p=typeof p==="string"?p.trim().toLowerCase():null;p=$APP.J(iv,p)?p:"alternating";g=typeof g==="string"?g.trim().toLowerCase():null;g=$APP.J(jv,g)?g:"dot";m=Ru(m);e=$APP.r(e)?e:"";h=Su(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.J(kv,b)?b:"straight";return $APP.Q([$APP.Aj,$APP.Xj,$APP.Wh,lv,$APP.Wk,$APP.T,$APP.di,$APP.W,$APP.mj,$APP.zi,$APP.gi],
10
+ [p,g,c!=null,d!=null,m,e,q!=null,a!=null,h,b,k!=null])},nv=function(a){a=ev(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},ov=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},pv=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.O(a,"")?a:null},qv=function(a,b,c){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},rv=function(a,b){a=$APP.N($APP.l(a,"__xScrollTimelineRefs"));var c=
11
+ $APP.G(a,$APP.$h);c.textContent=b;setTimeout(function(){return c.textContent=""},1E3)},sv=function(a,b){for(var c=a.length,d=0;;)if(d<c){var e=a[d];e.setAttribute("data-side",Tu(b,d));e.setAttribute("data-index",""+$APP.S.g(d));d+=1}else break},tv=function(a){a=nv(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},uv=function(a,b){var c=$APP.N($APP.l(a,"__xScrollTimelineRefs"));c=$APP.G(c,
12
+ $APP.Zi);var d=$APP.l(a,"__xScrollTimelineMarkerEls");d=$APP.r(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},vv=function(a,b){var c=$APP.N($APP.l(a,"__xScrollTimelineRefs"));c=$APP.G(c,$APP.Zi);var d=$APP.l(a,"__xScrollTimelineDateEls");var e=$APP.r(d)?d:[];d=b.length;for(var g=e.length,h=0;;)if(h<g){var k=
13
+ e[h];$APP.r(k)&&k.remove();h+=1}else break;e=Array(d);for(g=0;;)if(g<d)h=b[g].getAttribute("data-date"),typeof h==="string"&&$APP.O(h,"")?(k=document.createElement("span"),k.classList.add("tl-date"),k.textContent=h,c.appendChild(k),e[g]=k):e[g]=null,g+=1;else break;a.__xScrollTimelineDateEls=e},wv=function(a,b,c){a=$APP.N($APP.l(a,"__xScrollTimelineRefs"));a=$APP.G(a,dv);$APP.r(c)?a.style.height="0%":a.style.height=""+$APP.S.g(b*100)+"%"},xv=function(a,b){var c=$APP.N($APP.l(a,"__xScrollTimelineRefs")),
14
+ d=$APP.G(c,$APP.Zi),e=$APP.G(c,Yu),g=$APP.G(c,av);c=$APP.G(c,Zu);var h=function(){var E=$APP.l(a,"__xScrollTimelineModel");return $APP.r(E)?E:mv(a)}(),k=$APP.Aj.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.r(isNaN(E))?60:E}();var w=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),x=function(){var E=parseFloat(w);return $APP.r(isNaN(E))?
15
+ 7:E/2}(),y=function(){switch(k){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.ie;;){if(E>=A)return H;var F=b[E].getBoundingClientRect(),K=E+1;H=$APP.od.i(H,new $APP.P(null,2,[$APP.Nk,F.top+F.height/2-m,Wu,Tu(k,E)],null));E=K}}();h=Xu(C,h,y);e.setAttribute("viewBox","0 0 "+$APP.S.g(p)+" "+$APP.S.g(d));g.setAttribute("d",h);c.setAttribute("d",h);c.setAttribute("stroke-dasharray","1");c.setAttribute("stroke-dashoffset","1")}},
16
+ yv=function(a,b,c){a=$APP.N($APP.l(a,"__xScrollTimelineRefs"));a=$APP.G(a,Zu);$APP.r(c)?a.setAttribute("stroke-dashoffset","1"):a.setAttribute("stroke-dashoffset",""+$APP.S.g(1-b))},zv=function(a,b,c){var d=$APP.l(a,"__xScrollTimelineActiveIndex");d=$APP.r(d)?d:-1;if($APP.O(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.l(a,"__xScrollTimelineMarkerEls"),g=$APP.l(a,"__xScrollTimelineDateEls");$APP.r(e)&&(d>=0&&d<e.length&&
17
+ e[d].removeAttribute("data-active"),c>=0&&c<e.length&&e[c].setAttribute("data-active",""));$APP.r(g)&&(d>=0&&d<g.length&&(e=g[d],$APP.r(e)&&e.removeAttribute("data-active")),c>=0&&c<g.length&&(g=g[c],$APP.r(g)&&g.setAttribute("data-active","")));c>=0?a.setAttribute("data-active-index",""+$APP.S.g(c)):a.removeAttribute("data-active-index");a.__xScrollTimelineActiveIndex=c;g=d>=0&&d<b.length?pv(b[d]):null;b=c>=0&&c<b.length?pv(b[c]):null;qv(a,"x-scroll-timeline-entry-change",new $APP.P(null,4,[$APP.Eh,
18
+ c,$APP.Dk,b,$APP.rj,d,$APP.Ul,g],null));rv(a,"Entry "+$APP.S.g(c+1)+" active")}},Av=function(a,b,c,d){var e=b.length;var g=$APP.l(a,"__xScrollTimelineEntryStates");if(!$APP.r($APP.r(g)?$APP.D.i(g.length,e):g)){for(var h=Array(e),k=0;;)if(k<e)h[k]=$APP.r($APP.r(g)?k<g.length:g)?g[k]:!1,k+=1;else break;g=a.__xScrollTimelineEntryStates=h}for(h=0;;)if(h<e){if(h<$APP.B(c)){k=$APP.rc(c,h);k=$APP.N(k);var m=$APP.G(k,$APP.Qh),p=$APP.G(k,$APP.Qj),q=g[h];k=m<=d&&p>d;var w=pv(b[h]);m=Vu(m,p-m,d);$APP.t(q)&&
19
+ k?(g[h]=!0,qv(a,"x-scroll-timeline-entry-enter",new $APP.P(null,3,[$APP.Eh,h,$APP.Dk,w,$APP.dl,m],null))):$APP.r($APP.r(q)?!k:q)&&(g[h]=!1,qv(a,"x-scroll-timeline-entry-leave",new $APP.P(null,3,[$APP.Eh,h,$APP.Dk,w,$APP.dl,m],null)))}h+=1}else break},Bv=function(a){var b=function(){var q=$APP.l(a,"__xScrollTimelineModel");return $APP.r(q)?q:mv(a)}();if(!$APP.r($APP.W.g(b))){var c=nv(a),d=c.length,e=window.innerHeight,g=e*$APP.Wk.g(b),h=function(){for(var q=0,w=$APP.ie;;){if(q>=d)return w;var x=c[q].getBoundingClientRect();
20
+ q+=1;w=$APP.od.i(w,new $APP.P(null,2,[$APP.Qh,x.top,$APP.Qj,x.top+x.height],null))}}(),k=Uu(h,g),m=$APP.N($APP.l(a,"__xScrollTimelineRefs"));m=$APP.G(m,$APP.Zi).getBoundingClientRect();e=$APP.Yg.i(0,$APP.Zg.i(1,(e-m.top)/(e+m.height)));m=$APP.l(a,"__xScrollTimelineLastProg");var p=d<2||k<0?0:function(){var q=function(){var C=$APP.rc(h,0);return($APP.Qh.g(C)+$APP.Qj.g(C))/2}(),w=function(){var C=$APP.rc(h,d-1);return($APP.Qh.g(C)+$APP.Qj.g(C))/2}()-q,x=$APP.rc(h,k),y=($APP.Qh.g(x)+$APP.Qj.g(x))/2;
21
+ x=Vu($APP.Qh.g(x),$APP.Qj.g(x)-$APP.Qh.g(x),g);var A=k<d-1?function(){var C=$APP.rc(h,k+1);return($APP.Qh.g(C)+$APP.Qj.g(C))/2}():y;return w<=0?1:$APP.Yg.i(0,$APP.Zg.i(1,(y+x*(A-y)-q)/w))}();zv(a,c,k);Av(a,c,h,g);$APP.D.i($APP.zi.g(b),"curved")?yv(a,p,lv.g(b)):wv(a,p,lv.g(b));if(m==null||Math.abs(e-m)>.001)a.__xScrollTimelineLastProg=e,b=k>=0&&k<d?pv(c[k]):null,qv(a,"x-scroll-timeline-progress",new $APP.P(null,3,[$APP.dl,e,$APP.Cj,k,$APP.Kk,b],null))}a.__xScrollTimelineRAF=null},Cv=function(a){return function d(c){if($APP.r(function(){var k=
22
+ a.isConnected;return $APP.r(k)?(k=$APP.l(a,"__xScrollTimelineVisible"),$APP.r(k)?$APP.t($APP.l(a,"__xScrollTimelineAutoplayPaused")):k):k}())){var e=$APP.l(a,"__xScrollTimelineModel");if($APP.r(function(){if($APP.r(e)){var k=$APP.gi.g(e);return $APP.r(k)?$APP.t($APP.W.g(e)):k}return e}())){var g=$APP.l(a,"__xScrollTimelineAutoplayLast");g=$APP.r(g)?(c-g)/1E3:0;a.__xScrollTimelineAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.mj.g(e)*g);$APP.r(function(){var k=$APP.Wh.g(e);return $APP.r(k)?
23
+ window.scrollY-h<.5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,$APP.Yg.i(0,c-window.innerHeight)),a.__xScrollTimelineAutoplayLast=null)}return $APP.n(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},Dv=function(a){if($APP.r($APP.l(a,"__xScrollTimelineAutoplayPaused")))return null;a.__xScrollTimelineAutoplayPaused=!0;var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineAutoplayRAF=null);a.setAttribute("data-autoplay-paused",
24
+ "");b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.r(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.r(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?pv(d[c]):null;return qv(a,"x-scroll-timeline-autoplay-pause",new $APP.P(null,3,[$APP.dl,b,$APP.Cj,c,$APP.Kk,d],null))},Ev=function(a){if($APP.r($APP.l(a,"__xScrollTimelineAutoplayPaused"))){a.__xScrollTimelineAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollTimelineAutoplayLast=
25
+ null;$APP.n(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(Cv(a)));var b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.r(e)?e:0}(),c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.r(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?pv(d[c]):null;return qv(a,"x-scroll-timeline-autoplay-resume",new $APP.P(null,3,[$APP.dl,b,$APP.Cj,c,$APP.Kk,d],null))}return null},Fv=function(a){var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.r(b)&&(cancelAnimationFrame(b),
26
+ a.__xScrollTimelineAutoplayRAF=null);b=$APP.l(a,"__xScrollTimelineAutoplayHandlers");$APP.r(b)&&(a.removeEventListener("mousedown",$APP.l(b,"mousedown")),a.removeEventListener("mouseup",$APP.l(b,"mouseup")),a.removeEventListener("mouseleave",$APP.l(b,"mouseleave")),a.removeEventListener("touchstart",$APP.l(b,"touchstart")),a.removeEventListener("touchend",$APP.l(b,"touchend")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),a.__xScrollTimelineAutoplayHandlers=
27
+ null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=null},Gv=function(a){if($APP.l(a,"__xScrollTimelineAutoplayRAF")==null){var b=$APP.l(a,"__xScrollTimelineModel");if($APP.r(function(){if($APP.r(b)){var p=$APP.gi.g(b);return $APP.r(p)?(p=$APP.t($APP.W.g(b)))?(p=$APP.l(a,"__xScrollTimelineVisible"),$APP.r(p)?!ov():p):p:p}return b}())){a.setAttribute("tabindex","0");a.__xScrollTimelineAutoplayPaused=!1;a.__xScrollTimelineAutoplayLast=
28
+ null;var c=function(){return Dv(a)},d=function(){return Ev(a)},e=function(){return $APP.r($APP.l(a,"__xScrollTimelineAutoplayPaused"))?Ev(a):null},g=function(){return Dv(a)},h=function(){return Ev(a)},k=function(p){return $APP.D.i(p.code,"Space")?(p.preventDefault(),Dv(a)):null},m=function(p){return $APP.D.i(p.code,"Space")?Ev(a):null};a.addEventListener("mousedown",c);a.addEventListener("mouseup",d);a.addEventListener("mouseleave",e);a.addEventListener("touchstart",g,{passive:!0});a.addEventListener("touchend",
29
+ h,{passive:!0});a.addEventListener("keydown",k);a.addEventListener("keyup",m);$APP.n(a,"__xScrollTimelineAutoplayHandlers",{mousedown:c,mouseup:d,mouseleave:e,touchstart:g,touchend:h,keydown:k,keyup:m});$APP.n(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(Cv(a)))}}return null},Hv=function(a){a=$APP.l(a,"__xScrollTimelineModel");return $APP.r(a)?$APP.W.g(a):a},Iv=function(a){return $APP.r(function(){var b=a.isConnected;return $APP.r(b)?(b=$APP.l(a,"__xScrollTimelineVisible"),$APP.r(b)?$APP.t(Hv(a))&&
30
+ !ov():b):b}())?$APP.r($APP.l(a,"__xScrollTimelineRAF"))?null:$APP.n(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return Bv(a)})):null},Jv=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.r($APP.r(a)?$APP.t($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},Kv=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.r($APP.r(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),
31
+ a.scrollAttached=!1)},Lv=function(a,b){b=b[0].isIntersecting;a.__xScrollTimelineVisible=b;if($APP.r(b)){if($APP.r(Hv(a)))return null;Jv(a);Bv(a);rv(a,"Timeline entered viewport");qv(a,"x-scroll-timeline-enter",new $APP.P(null,1,[$APP.dl,function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.r(c)?c:0}()],null));b=$APP.l(a,"__xScrollTimelineModel");return $APP.r($APP.r(b)?$APP.gi.g(b):b)?Gv(a):null}Kv(a);Fv(a);if($APP.r(Hv(a)))return null;rv(a,"Timeline left viewport");return qv(a,"x-scroll-timeline-leave",
32
+ new $APP.P(null,1,[$APP.dl,function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.r(c)?c:0}()],null))},Mv=function(a){var b=function(){var d=$APP.l(a,"__xScrollTimelineModel");return $APP.r(d)?d:mv(a)}(),c=nv(a);sv(c,$APP.Aj.g(b));uv(a,c);vv(a,c);return requestAnimationFrame(function(){var d=nv(a),e=$APP.l(a,"__xScrollTimelineMarkerEls"),g=$APP.l(a,"__xScrollTimelineDateEls"),h=$APP.N($APP.l(a,"__xScrollTimelineRefs"));h=$APP.G(h,$APP.Zi).getBoundingClientRect().top;var k=$APP.l(a,"__xScrollTimelineModel");
33
+ k=$APP.r(k)?k:mv(a);k=$APP.Aj.g(k);for(var m=d.length,p=0;;)if(p<m){var q=d[p].getBoundingClientRect();q=q.top+q.height/2-h;var w=Tu(k,p),x=$APP.r(e)?e[p]:e;$APP.r(x)&&(x.style.top=""+$APP.S.g(q)+"px");x=$APP.r(g)?g[p]:g;$APP.r(x)&&(x.style.top=""+$APP.S.g(q)+"px",x.setAttribute("data-side",w));p+=1}else break;$APP.D.i($APP.zi.g(b),"curved")&&xv(a,d);return $APP.r($APP.l(a,"__xScrollTimelineVisible"))?Bv(a):null})},Nv=function(a){function b(){return $APP.r($APP.l(a,"__xScrollTimelineVisible"))?(a.__xScrollTimelineEntryStates=
34
+ null,Mv(a)):null}function c(){a.__xScrollTimelineEntryStates=null;return Mv(a)}var d=ev(a);d=$APP.N(d);$APP.G(d,$APP.Fi).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.n(a,"__xScrollTimelineHandlers",{scroll:function(){return Iv(a)},slot:c,resize:b,scrollAttached:!1})},Ov=function(a){var b=$APP.l(a,"__xScrollTimelineHandlers");if($APP.r(b)){Kv(a);var c=$APP.l(a,"__xScrollTimelineRefs");if($APP.r(c)){c=$APP.Fi.g(c);var d=$APP.l(b,"slot");$APP.r(d)&&c.removeEventListener("slotchange",
35
+ d)}b=$APP.l(b,"resize");$APP.r(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollTimelineRAF");$APP.r(b)&&(cancelAnimationFrame(b),a.__xScrollTimelineRAF=null);a.__xScrollTimelineHandlers=null},Pv=function(a){var b=$APP.l(a,"__xScrollTimelineIO");$APP.r(b)&&b.disconnect();b=new IntersectionObserver(function(c){return Lv(a,c)},{threshold:[0]});b.observe(a);a.__xScrollTimelineIO=b},Qv=function(a){var b=mv(a);if($APP.O($APP.l(a,"__xScrollTimelineModel"),b)){b=$APP.N(b);var c=$APP.G(b,$APP.Aj),
36
+ d=$APP.G(b,$APP.zi),e=$APP.G(b,$APP.W),g=$APP.G(b,$APP.T),h=$APP.G(b,$APP.Xj),k=ev(a);k=$APP.N(k);k=$APP.G(k,$APP.Zi);var m=$APP.l(a,"__xScrollTimelineModel");a.setAttribute("data-layout",c);a.setAttribute("data-track",d);a.setAttribute("data-marker",h);$APP.u(g)?k.setAttribute("aria-label",g):k.removeAttribute("aria-label");a.__xScrollTimelineModel=b;$APP.r(e)?(tv(a),a.__xScrollTimelineActiveIndex=-1,a.__xScrollTimelineEntryStates=null,Kv(a),Fv(a)):$APP.r(m)&&($APP.O($APP.Aj.g(m),c)||$APP.O($APP.zi.g(m),
37
+ d)||$APP.O($APP.Xj.g(m),h)||$APP.O($APP.W.g(m),e)?Mv(a):($APP.O($APP.Wk.g(m),$APP.Wk.g(b))||$APP.O(lv.g(m),lv.g(b)))&&$APP.r($APP.l(a,"__xScrollTimelineVisible"))&&Bv(a));$APP.r(e)||(b=$APP.gi.g(b),$APP.r($APP.r(b)?$APP.l(a,"__xScrollTimelineVisible"):b)?Gv(a):Fv(a))}},Rv=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.r(b)?b:"alternating"},set:function(b){return $APP.r(b)?this.setAttribute("layout",""+$APP.S.g(b)):this.removeAttribute("layout")},
38
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"track",{get:function(){var b=this.getAttribute("track");return $APP.r(b)?b:"straight"},set:function(b){return $APP.r(b)?this.setAttribute("track",""+$APP.S.g(b)):this.removeAttribute("track")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return Ru(this.getAttribute("threshold"))},set:function(b){return b!=null?this.setAttribute("threshold",""+$APP.S.g(b)):this.removeAttribute("threshold")},enumerable:!0,
39
+ configurable:!0});Object.defineProperty(a,"noProgress",{get:function(){return this.hasAttribute("no-progress")},set:function(b){return $APP.r(b)?this.setAttribute("no-progress",""):this.removeAttribute("no-progress")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",
40
+ {get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"marker",{get:function(){var b=this.getAttribute("marker");return $APP.r(b)?b:"dot"},set:function(b){return $APP.r(b)?this.setAttribute("marker",""+$APP.S.g(b)):this.removeAttribute("marker")},enumerable:!0,configurable:!0});Object.defineProperty(a,
41
+ "activeIndex",{get:function(){var b=$APP.l(this,"__xScrollTimelineActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollTimelineLastProg");return $APP.r(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplay",{get:function(){return this.hasAttribute("autoplay")},set:function(b){return $APP.r(b)?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")},enumerable:!0,configurable:!0});
42
+ Object.defineProperty(a,"autoplaySpeed",{get:function(){return Su(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.S.g(b)):this.removeAttribute("autoplay-speed")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayLoop",{get:function(){return this.hasAttribute("autoplay-loop")},set:function(b){return $APP.r(b)?this.setAttribute("autoplay-loop",""):this.removeAttribute("autoplay-loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,
43
+ "autoplayIndicator",{get:function(){return this.hasAttribute("autoplay-indicator")},set:function(b){return $APP.r(b)?this.setAttribute("autoplay-indicator",""):this.removeAttribute("autoplay-indicator")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.I($APP.l(this,"__xScrollTimelineAutoplayPaused"))},enumerable:!0,configurable:!0})},Tv=function(){var a=class extends HTMLElement{};a.observedAttributes=Sv;a.prototype.connectedCallback=function(){ev(this);
44
+ Ov(this);Nv(this);Pv(this);Qv(this);return null};a.prototype.disconnectedCallback=function(){Fv(this);tv(this);if($APP.r($APP.l(this,"__xScrollTimelineVisible"))){var b=$APP.l(this,"__xScrollTimelineLastProg");qv(this,"x-scroll-timeline-leave",new $APP.P(null,1,[$APP.dl,$APP.r(b)?b:0],null))}Ov(this);b=$APP.l(this,"__xScrollTimelineIO");$APP.r(b)&&(b.disconnect(),this.__xScrollTimelineIO=null);this.__xScrollTimelineVisible=!1;this.__xScrollTimelineActiveIndex=-1;return this.__xScrollTimelineEntryStates=
45
+ this.__xScrollTimelineLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Qv(this);return null};Rv(a.prototype);return a},Uv=function(){$APP.r(customElements.get("x-scroll-timeline"))||customElements.define("x-scroll-timeline",Tv());return null},dv=new $APP.M(null,"track-fill","track-fill",1852369499),$u=new $APP.M(null,"entries","entries",-86943161),fv=new $APP.M(null,"marker-raw","marker-raw",2140891555),cv=new $APP.M(null,"indicator","indicator",1928219637),lv=new $APP.M(null,
46
+ "no-progress?","no-progress?",-1599319890),gv=new $APP.M(null,"track-raw","track-raw",751958776),av=new $APP.M(null,"track-path","track-path",-1838135442),Zu=new $APP.M(null,"fill-path","fill-path",-792439899),hv=new $APP.M(null,"no-progress-attr","no-progress-attr",115951679),Yu=new $APP.M(null,"track-svg","track-svg",-556455964),Wu=new $APP.M(null,"side","side",389652279),bv=new $APP.M(null,"track-line","track-line",1370628624);var Sv="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
47
+ $APP.Q([$APP.zk,$APP.ph,$APP.Uj,$APP.gj,$APP.Aj,$APP.Cj,$APP.Xj,$APP.Wk,$APP.Bl,$APP.T,$APP.Nj,$APP.dl,new $APP.M(null,"noProgress","noProgress",-2114530658),$APP.zi],[new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Fj,!0],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),
48
+ new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Fj,!0],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Fj,!0],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null)]);
49
+ $APP.Sd(["x-scroll-timeline-entry-change",new $APP.P(null,2,[$APP.U,new $APP.P(null,4,[$APP.Eh,$APP.V,$APP.Dk,$APP.Y,$APP.rj,$APP.V,$APP.Ul,$APP.Y],null),$APP.kl,!1],null),"x-scroll-timeline-entry-enter",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.Eh,$APP.V,$APP.Dk,$APP.Y,$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-timeline-entry-leave",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.Eh,$APP.V,$APP.Dk,$APP.Y,$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-timeline-progress",new $APP.P(null,
50
+ 2,[$APP.U,new $APP.P(null,3,[$APP.dl,$APP.V,$APP.Cj,$APP.V,$APP.Kk,$APP.Y],null),$APP.kl,!1],null),"x-scroll-timeline-enter",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-timeline-leave",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.dl,$APP.V],null),$APP.kl,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.dl,$APP.V,$APP.Cj,$APP.V,$APP.Kk,$APP.Y],null),$APP.kl,!1],null),"x-scroll-timeline-autoplay-resume",
51
+ new $APP.P(null,2,[$APP.U,new $APP.P(null,3,[$APP.dl,$APP.V,$APP.Cj,$APP.V,$APP.Kk,$APP.Y],null),$APP.kl,!1],null)]);var iv=new $APP.R(null,new $APP.P(null,3,["right",null,"left",null,"alternating",null],null),null),kv=new $APP.R(null,new $APP.P(null,2,["curved",null,"straight",null],null),null),jv=new $APP.R(null,new $APP.P(null,3,["ring",null,"none",null,"dot",null],null),null);$APP.ka("baredom.exports.x_scroll_timeline.init",Uv);export const init=Uv;
package/dist/x-scroll.js CHANGED
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var OT=function(a){return a==null?!0:$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},PT=function(a,b){if(typeof a==="string"){a=parseInt(a.trim(),10);var c=isNaN(a);return $APP.n($APP.n(c)?c:a<0)?b:a}return b},QT=function(a,b){return $APP.n(a)?b>=3:a},RT=function(a,b,c,d){a+=b;return $APP.n(QT(d,c))?c<=0?0:$APP.Vc($APP.Vc(a,c)+c,c):c<=0?0:$APP.Fg.h(0,$APP.Gg.h(a,c-1))},UT=function(a,b){var c=$APP.N(a);a=$APP.I(c,ST);c=$APP.I(c,TT);return $APP.n(QT(c,b))?b>0:a>0},VT=function(a,b){var c=$APP.N(a);
3
- a=$APP.I(c,ST);c=$APP.I(c,TT);return $APP.n(QT(c,b))?b>0:a<b-1},XT=function(a){var b=$APP.l(a,"__xScrollRefs");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("slot"),h=document.createElement("button"),k=document.createElement("button"),m=document.createElement("div"),p=document.createElement("div");c.textContent=":host{display:block;position:relative;overflow:hidden;color-scheme:light dark;--x-scroll-gap:0px;--x-scroll-padding:0px;--x-scroll-border-radius:0px;--x-scroll-bg:transparent;--x-scroll-control-size:36px;--x-scroll-control-bg:rgba(255,255,255,0.9);--x-scroll-control-color:rgba(0,0,0,0.7);--x-scroll-control-hover-bg:rgba(255,255,255,1);--x-scroll-control-border-radius:50%;--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.15);--x-scroll-indicator-size:8px;--x-scroll-indicator-gap:6px;--x-scroll-indicator-color:rgba(0,0,0,0.25);--x-scroll-indicator-active-color:rgba(0,0,0,0.7);--x-scroll-transition-duration:300ms;--x-scroll-slide-size:100%;--x-scroll-disabled-opacity:0.55;--x-scroll-focus-ring:rgba(0,102,204,0.6);}@media (prefers-color-scheme:dark){:host{--x-scroll-control-bg:rgba(40,40,40,0.9);--x-scroll-control-color:rgba(255,255,255,0.8);--x-scroll-control-hover-bg:rgba(50,50,50,1);--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.4);--x-scroll-indicator-color:rgba(255,255,255,0.3);--x-scroll-indicator-active-color:rgba(255,255,255,0.8);--x-scroll-focus-ring:rgba(100,180,255,0.7);}}[part\x3dviewport]{position:relative;overflow:hidden;width:100%;height:100%;border-radius:var(--x-scroll-border-radius);background:var(--x-scroll-bg);padding:var(--x-scroll-padding);}[part\x3dtrack]{display:flex;position:relative;will-change:transform;transition:transform var(--x-scroll-transition-duration) cubic-bezier(0.25,0.1,0.25,1);touch-action:none;user-select:none;}:host([data-mode\x3dhorizontal]) [part\x3dtrack]{flex-direction:row;}:host([data-mode\x3dvertical]) [part\x3dtrack]{flex-direction:column;}::slotted(*){flex:0 0 var(--x-scroll-slide-size);min-width:0;min-height:0;box-sizing:border-box;}[part\x3dprev],[part\x3dnext]{position:absolute;top:50%;z-index:2;appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-control-size);height:var(--x-scroll-control-size);border-radius:var(--x-scroll-control-border-radius);background:var(--x-scroll-control-bg);color:var(--x-scroll-control-color);box-shadow:var(--x-scroll-control-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:calc(var(--x-scroll-control-size) * 0.5);line-height:1;transform:translateY(-50%);transition:background 120ms ease,opacity 120ms ease;}[part\x3dprev]{left:8px;}[part\x3dnext]{right:8px;}:host([data-mode\x3dvertical]) [part\x3dprev],:host([data-mode\x3dvertical]) [part\x3dnext]{top:auto;left:50%;transform:translateX(-50%);}:host([data-mode\x3dvertical]) [part\x3dprev]{top:8px;}:host([data-mode\x3dvertical]) [part\x3dnext]{bottom:8px;top:auto;}[part\x3dprev]:hover,[part\x3dnext]:hover{background:var(--x-scroll-control-hover-bg);}[part\x3dprev]:focus,[part\x3dnext]:focus{outline:none;}[part\x3dprev]:focus-visible,[part\x3dnext]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dprev]:disabled,[part\x3dnext]:disabled{opacity:0.3;cursor:default;pointer-events:none;}[data-hide-controls] [part\x3dprev],[data-hide-controls] [part\x3dnext]{display:none;}[part\x3dindicators]{display:flex;justify-content:center;gap:var(--x-scroll-indicator-gap);position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;}:host([data-mode\x3dvertical]) [part\x3dindicators]{flex-direction:column;bottom:auto;left:auto;right:12px;top:50%;transform:translateY(-50%);}[part\x3dindicator]{appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-indicator-size);height:var(--x-scroll-indicator-size);border-radius:50%;background:var(--x-scroll-indicator-color);cursor:pointer;transition:background 120ms ease;}[part\x3dindicator]:focus{outline:none;}[part\x3dindicator]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dindicator][aria-selected\x3dtrue]{background:var(--x-scroll-indicator-active-color);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}:host([disabled]){opacity:var(--x-scroll-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none !important;}}";
2
+ var yY=function(a){return a==null?!0:$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},zY=function(a,b){if(typeof a==="string"){a=parseInt(a.trim(),10);var c=isNaN(a);return $APP.r($APP.r(c)?c:a<0)?b:a}return b},AY=function(a,b){return $APP.r(a)?b>=3:a},BY=function(a,b,c,d){a+=b;return $APP.r(AY(d,c))?c<=0?0:$APP.hd($APP.hd(a,c)+c,c):c<=0?0:$APP.Yg.i(0,$APP.Zg.i(a,c-1))},DY=function(a,b){var c=$APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,CY);return $APP.r(AY(c,b))?b>0:a>0},EY=function(a,b){var c=
3
+ $APP.N(a);a=$APP.G(c,$APP.uj);c=$APP.G(c,CY);return $APP.r(AY(c,b))?b>0:a<b-1},GY=function(a){var b=$APP.l(a,"__xScrollRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("button"),m=document.createElement("div"),p=document.createElement("div");c.textContent=":host{display:block;position:relative;overflow:hidden;color-scheme:light dark;--x-scroll-gap:0px;--x-scroll-padding:0px;--x-scroll-border-radius:0px;--x-scroll-bg:transparent;--x-scroll-control-size:36px;--x-scroll-control-bg:rgba(255,255,255,0.9);--x-scroll-control-color:rgba(0,0,0,0.7);--x-scroll-control-hover-bg:rgba(255,255,255,1);--x-scroll-control-border-radius:50%;--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.15);--x-scroll-indicator-size:8px;--x-scroll-indicator-gap:6px;--x-scroll-indicator-color:rgba(0,0,0,0.25);--x-scroll-indicator-active-color:rgba(0,0,0,0.7);--x-scroll-transition-duration:300ms;--x-scroll-slide-size:100%;--x-scroll-disabled-opacity:0.55;--x-scroll-focus-ring:rgba(0,102,204,0.6);}@media (prefers-color-scheme:dark){:host{--x-scroll-control-bg:rgba(40,40,40,0.9);--x-scroll-control-color:rgba(255,255,255,0.8);--x-scroll-control-hover-bg:rgba(50,50,50,1);--x-scroll-control-shadow:0 2px 8px rgba(0,0,0,.4);--x-scroll-indicator-color:rgba(255,255,255,0.3);--x-scroll-indicator-active-color:rgba(255,255,255,0.8);--x-scroll-focus-ring:rgba(100,180,255,0.7);}}[part\x3dviewport]{position:relative;overflow:hidden;width:100%;height:100%;border-radius:var(--x-scroll-border-radius);background:var(--x-scroll-bg);padding:var(--x-scroll-padding);}[part\x3dtrack]{display:flex;position:relative;will-change:transform;transition:transform var(--x-scroll-transition-duration) cubic-bezier(0.25,0.1,0.25,1);touch-action:none;user-select:none;}:host([data-mode\x3dhorizontal]) [part\x3dtrack]{flex-direction:row;}:host([data-mode\x3dvertical]) [part\x3dtrack]{flex-direction:column;}::slotted(*){flex:0 0 var(--x-scroll-slide-size);min-width:0;min-height:0;box-sizing:border-box;}[part\x3dprev],[part\x3dnext]{position:absolute;top:50%;z-index:2;appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-control-size);height:var(--x-scroll-control-size);border-radius:var(--x-scroll-control-border-radius);background:var(--x-scroll-control-bg);color:var(--x-scroll-control-color);box-shadow:var(--x-scroll-control-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:calc(var(--x-scroll-control-size) * 0.5);line-height:1;transform:translateY(-50%);transition:background 120ms ease,opacity 120ms ease;}[part\x3dprev]{left:8px;}[part\x3dnext]{right:8px;}:host([data-mode\x3dvertical]) [part\x3dprev],:host([data-mode\x3dvertical]) [part\x3dnext]{top:auto;left:50%;transform:translateX(-50%);}:host([data-mode\x3dvertical]) [part\x3dprev]{top:8px;}:host([data-mode\x3dvertical]) [part\x3dnext]{bottom:8px;top:auto;}[part\x3dprev]:hover,[part\x3dnext]:hover{background:var(--x-scroll-control-hover-bg);}[part\x3dprev]:focus,[part\x3dnext]:focus{outline:none;}[part\x3dprev]:focus-visible,[part\x3dnext]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dprev]:disabled,[part\x3dnext]:disabled{opacity:0.3;cursor:default;pointer-events:none;}[data-hide-controls] [part\x3dprev],[data-hide-controls] [part\x3dnext]{display:none;}[part\x3dindicators]{display:flex;justify-content:center;gap:var(--x-scroll-indicator-gap);position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;}:host([data-mode\x3dvertical]) [part\x3dindicators]{flex-direction:column;bottom:auto;left:auto;right:12px;top:50%;transform:translateY(-50%);}[part\x3dindicator]{appearance:none;border:0;margin:0;padding:0;width:var(--x-scroll-indicator-size);height:var(--x-scroll-indicator-size);border-radius:50%;background:var(--x-scroll-indicator-color);cursor:pointer;transition:background 120ms ease;}[part\x3dindicator]:focus{outline:none;}[part\x3dindicator]:focus-visible{outline:2px solid var(--x-scroll-focus-ring);outline-offset:2px;}[part\x3dindicator][aria-selected\x3dtrue]{background:var(--x-scroll-indicator-active-color);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}:host([disabled]){opacity:var(--x-scroll-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none !important;}}";
4
4
  d.setAttribute("part","viewport");d.setAttribute("role","region");d.setAttribute("aria-roledescription","carousel");e.setAttribute("part","track");e.appendChild(g);d.appendChild(e);h.setAttribute("part","prev");h.setAttribute("type","button");h.setAttribute("aria-label","Previous slide");h.textContent="‹";k.setAttribute("part","next");k.setAttribute("type","button");k.setAttribute("aria-label","Next slide");k.textContent="›";m.setAttribute("part","indicators");m.setAttribute("role","tablist");m.setAttribute("aria-label",
5
- "Slide indicators");p.setAttribute("part","live");p.setAttribute("aria-live","polite");p.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(h);b.appendChild(k);b.appendChild(m);b.appendChild(p);a.__xScrollRefs=new $APP.R(null,8,[$APP.Jh,b,$APP.hi,d,$APP.ai,e,$APP.fi,g,$APP.ci,h,$APP.ah,k,WT,m,$APP.Hh,p],null);return $APP.l(a,"__xScrollRefs")},mU=function(a){a=$APP.mf([YT,$APP.sh,ZT,$APP.Mj,$T,aU,bU,cU,$APP.bi,dU,eU],[a.getAttribute("show-controls"),a.getAttribute("label"),
6
- $APP.n(a.hasAttribute("auto-play"))?"":null,a.getAttribute("mode"),$APP.n(a.hasAttribute("loop"))?"":null,a.getAttribute("gap"),$APP.n(a.hasAttribute("show-indicators"))?"":null,a.getAttribute("interval"),$APP.n(a.hasAttribute("disabled"))?"":null,a.getAttribute("snap"),a.getAttribute("active-index")]);var b=$APP.N(a),c=$APP.I(b,dU);a=$APP.I(b,cU);var d=$APP.I(b,$APP.bi),e=$APP.I(b,eU),g=$APP.I(b,YT),h=$APP.I(b,$APP.sh),k=$APP.I(b,ZT),m=$APP.I(b,$APP.Mj),p=$APP.I(b,$T),q=$APP.I(b,aU);b=$APP.I(b,bU);
7
- e=PT(e,0);g=OT(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.K(fU,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.K(gU,m)?m:"horizontal";return $APP.mf([ST,hU,iU,$APP.ri,jU,kU,$APP.U,$APP.Li,TT,lU,$APP.X],[e,g,c,m,b!=null,k!=null,$APP.n(h)?h:"",PT(q,0),p!=null,$APP.Fg.h(500,PT(a,5E3)),d!=null])},nU=function(a){a=XT(a);a=$APP.N(a);return $APP.I(a,$APP.fi).assignedElements()},oU=function(){return $APP.J(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
- pU=function(a){return $APP.C.h("horizontal",$APP.ri.g(a))},qU=function(a,b){a=nU(a);return a.length>0?(a=a[0].getBoundingClientRect(),pU(b)?a.width:a.height):0},rU=function(a,b){return a.style.transform=b},sU=function(a,b){a=a.getBoundingClientRect();return $APP.C.h("horizontal",$APP.ri.g(b))?a.width:a.height},tU=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},uU=function(a,b,c,d,e){a=$APP.Wc(a)*(b+c)-d;return $APP.n(e)?"translateX("+$APP.T.g(-a)+"px)":
9
- "translateY("+$APP.T.g(-a)+"px)"},vU=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.Wc(b);a[d].style.order=""+$APP.T.g($APP.Vc(d-c+e+b,b)-e);d+=1}else break},wU=function(a,b){var c=XT(a);c=$APP.N(c);var d=$APP.I(c,$APP.hi);c=$APP.I(c,$APP.ai);var e=nU(a),g=e.length,h=qU(a,b),k=$APP.Li.g(b),m=ST.g(b),p=QT(TT.g(b),g);d=sU(d,b);d=tU(iU.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.T.g(k)+"px";if($APP.n(p))return vU(e,g,m),rU(c,uU(g,h,k,d,pU(b)));for(a=0;;)if(a<g)e[a].style.order="",
10
- a+=1;else break;a=m*(h+k)-d;return rU(c,pU(b)?"translateX("+$APP.T.g(-a)+"px)":"translateY("+$APP.T.g(-a)+"px)")}return null},xU=function(a,b,c){var d=XT(a);d=$APP.N(d);var e=$APP.I(d,$APP.hi),g=$APP.I(d,$APP.ai),h=nU(a),k=h.length,m=qU(a,b),p=$APP.Li.g(b),q=pU(b);a=sU(e,b);var v=tU(iU.g(b),a,m);c=-($APP.Wc(k)*(m+p)-v+c*(m+p));rU(g,q?"translateX("+$APP.T.g(c)+"px)":"translateY("+$APP.T.g(c)+"px)");oU()?(vU(h,k,ST.g(b)),rU(g,uU(k,m,p,v,q))):g.addEventListener("transitionend",function A(y){return $APP.C.h(y.target,
11
- g)?(g.removeEventListener("transitionend",A),g.style.transition="none",vU(h,k,ST.g(b)),rU(g,uU(k,m,p,v,q)),g.offsetHeight,g.style.transition=""):null})},yU=function(a,b,c,d){a=XT(a);var e=$APP.N(a),g=$APP.I(e,WT);g.innerHTML="";for(var h=0;;)if(h<b){var k=document.createElement("button");k.setAttribute("part","indicator");k.setAttribute("type","button");k.setAttribute("role","tab");k.setAttribute("aria-label","Slide "+$APP.T.g(h+1));k.setAttribute("aria-selected",""+$APP.T.g($APP.C.h(h,c)));k.addEventListener("click",
12
- function(m){return function(){return d.g?d.g(m):d.call(null,m)}}(h,k,b,a,e,g,g));g.appendChild(k);h+=1}else break},zU=function(a,b){a=XT(a);a=$APP.N(a);a=$APP.I(a,WT).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.T.g($APP.C.h(d,b))),d+=1;else break},AU=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.Sg(c),bubbles:!0,composed:!0,cancelable:$APP.J(d)});return a.dispatchEvent(b)},BU=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");$APP.n(b)&&(clearInterval(b),
13
- a.__xScrollAutoplayTid=null);return null},EU=function(a){BU(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.n(c)?c:mU(a)}();$APP.n(function(){var c=kU.g(b);return $APP.n(c)?$APP.r($APP.X.g(b)):c}())&&$APP.ma(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.n(a.isConnected)){var c=nU(a).length;if(c>0){var d=ST.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:mU(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.n(g)?g:mU(a)}();c=RT(d,1,c,TT.g(e));
14
- return $APP.O(d,c)?CU?CU(a,c,1):DU.call(null,a,c,1):null}}return null},lU.g(b)));return null},FU=function(a){BU(a);return EU(a)},DU=function(a){switch(arguments.length){case 2:return CU(arguments[0],arguments[1],null);case 3:return CU(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},CU=function(a,b,c){var d=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:mU(a)}(),e=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?
15
- v:nU(a).length}(),g=ST.g(d);if(e>0&&$APP.r($APP.X.g(d))){var h=QT(TT.g(d),e),k=$APP.n(h)?e<=0?0:$APP.Vc($APP.Vc(b,e)+e,e):e<=0?0:$APP.Fg.h(0,$APP.Gg.h(b,e-1));b=k-g;if($APP.O(k,g)){c=$APP.n(c)?c:b>0?1:-1;var m=e>0&&(c>0&&k<g||c<0&&k>g),p=c>0?"forward":"backward";if($APP.n(function(){var v=!m;return v?v:AU(a,"x-scroll-loop",new $APP.R(null,1,[$APP.ni,p],null),!0)}())){AU(a,"x-scroll-start",new $APP.R(null,2,[$APP.ni,p,$APP.ej,g],null),!1);d=$APP.Eg.m(d,ST,k);a.__xScrollModel=d;a.setAttribute("active-index",
16
- ""+$APP.T.g(k));$APP.n(h)?xU(a,d,c):wU(a,d);zU(a,k);h=XT(a);b=$APP.N(h);h=$APP.I(b,$APP.ci);c=$APP.I(b,$APP.ah);b=$APP.I(b,$APP.Hh);h.disabled=!UT(d,e);c.disabled=!VT(d,e);b.textContent="Slide "+$APP.T.g(k+1)+" of "+$APP.T.g(e);AU(a,"x-scroll-change",new $APP.R(null,2,[$APP.ej,k,$APP.Oi,g],null),!1);if(oU())AU(a,"x-scroll-end",new $APP.R(null,1,[$APP.ej,k],null),!1);else{e=XT(a);e=$APP.N(e);var q=$APP.I(e,$APP.ai);q.addEventListener("transitionend",function y(x){return $APP.C.h(x.target,q)?(q.removeEventListener("transitionend",
17
- y),AU(a,"x-scroll-end",new $APP.R(null,1,[$APP.ej,k],null),!1)):null})}return FU(a)}}}return null},GU=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:mU(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:nU(a).length}();b=RT(ST.g(b),1,c,TT.g(b));return CU(a,b,1)},HU=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.n(d)?d:mU(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.n(d)?d:nU(a).length}();
18
- b=RT(ST.g(b),-1,c,TT.g(b));return CU(a,b,-1)},KU=function(a,b){function c(k){return IU.h?IU.h(a,k):IU.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.n(k)?k:mU(a)}();if($APP.n($APP.X.g(d)))return null;var e=XT(a);e=$APP.N(e);e=$APP.I(e,$APP.ai);var g=pU(d);e.style.transition="none";BU(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",p);return JU.h?JU.h(a,m):JU.call(null,a,m)};window.addEventListener("pointermove",
19
- c);window.addEventListener("pointerup",h);return $APP.ma(a,"__xScrollDragState",function(){var m={};m.startX=b.clientX;m.startTime=Date.now();m.startY=b.clientY;m.upH=h;m.moveH=c;m.isDragging=!1;m.lastY=b.clientY;m.lastTime=Date.now();m.horiz=g;m.lastX=b.clientX;return m}())},IU=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.n(c)){b.preventDefault();var d=$APP.l(c,"horiz"),e=($APP.n(d)?b.clientX:b.clientY)-($APP.n(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));$APP.r($APP.l(c,"isDragging"))&&
20
- Math.abs(e)>3&&(c.isDragging=!0);if($APP.n($APP.l(c,"isDragging"))){c.lastX=b.clientX;c.lastY=b.clientY;$APP.ma(c,"lastTime",Date.now());b=XT(a);b=$APP.N(b);var g=$APP.I(b,$APP.hi);b=$APP.I(b,$APP.ai);var h=function(){var v=$APP.l(a,"__xScrollModel");return $APP.n(v)?v:mU(a)}(),k=qU(a,h),m=$APP.Li.g(h);c=function(){var v=$APP.l(a,"__xScrollChildCount");return $APP.n(v)?v:nU(a).length}();var p=ST.g(h),q=QT(TT.g(h),c);g=sU(g,h);g=tU(iU.g(h),g,k);k=($APP.n(q)?$APP.Wc(c)*(k+m):p*(k+m))-g;e=($APP.r(q)&&
21
- (e<0&&$APP.C.h(p,c-1)||e>0&&$APP.C.h(p,0))?e*.3:e)-k;return rU(b,$APP.n(d)?"translateX("+$APP.T.g(e)+"px)":"translateY("+$APP.T.g(e)+"px)")}}return null},JU=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.n(c)){a.__xScrollDragState=null;var d=XT(a);d=$APP.N(d);$APP.I(d,$APP.ai).style.transition="";if($APP.n($APP.l(c,"isDragging"))){d=$APP.l(c,"horiz");b=($APP.n(d)?b.clientX:b.clientY)-($APP.n(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));c=Date.now()-$APP.l(c,"lastTime");d=c>0?Math.abs(b)/
22
- c:0;c=function(){var k=$APP.l(a,"__xScrollModel");return $APP.n(k)?k:mU(a)}();var e=XT(a);e=$APP.N(e);$APP.I(e,$APP.hi);var g=qU(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.n(k)?k:nU(a).length}();e=ST.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:RT(e,d,h,TT.g(c));$APP.C.h(d,e)?wU(a,c):CU(a,d,b<0?1:-1);return FU(a)}}return null},LU=function(a,b){var c=function(){var e=$APP.l(a,"__xScrollModel");return $APP.n(e)?e:mU(a)}();if($APP.n($APP.X.g(c)))return null;var d=
23
- b.key;(c=pU(c))&&$APP.C.h(d,"ArrowLeft")?(HU(a),d=!0):c&&$APP.C.h(d,"ArrowRight")?(GU(a),d=!0):!c&&$APP.C.h(d,"ArrowUp")?(HU(a),d=!0):!c&&$APP.C.h(d,"ArrowDown")?(GU(a),d=!0):$APP.C.h(d,"Home")?(CU(a,0,null),d=!0):d=$APP.C.h(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.n(e)?e:nU(a).length;CU(a,e-1,null);return!0}();return d?b.preventDefault():null},MU=function(a){var b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:mU(a)}(),c=nU(a).length;a.__xScrollChildCount=
24
- c;if(c>0&&ST.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.T.g(d));$APP.ma(a,"__xScrollModel",$APP.Eg.m(b,ST,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.n(h)?h:mU(a)}();d=XT(a);var e=$APP.N(d);d=$APP.I(e,$APP.ci);var g=$APP.I(e,$APP.ah);e=$APP.I(e,$APP.Hh);$APP.n(jU.g(b))&&yU(a,c,ST.g(b),function(h){return CU(a,h,null)});d.disabled=!UT(b,c);g.disabled=!VT(b,c);c>0&&(e.textContent="Slide "+$APP.T.g(ST.g(b)+1)+" of "+$APP.T.g(c));return wU(a,b)},NU=function(a){function b(){return FU(a)}
25
- function c(){return BU(a)}function d(){return FU(a)}function e(){return BU(a)}function g(){return $APP.n(document.hidden)?BU(a):FU(a)}function h(){return MU(a)}function k(D){return KU(a,D)}function m(D){return LU(a,D)}function p(){return GU(a)}function q(){return HU(a)}var v=XT(a),x=$APP.N(v);v=$APP.I(x,$APP.ci);var y=$APP.I(x,$APP.ah),A=$APP.I(x,$APP.fi);x=$APP.I(x,$APP.hi);v.addEventListener("click",q);y.addEventListener("click",p);a.addEventListener("keydown",m);x.addEventListener("pointerdown",
26
- k);A.addEventListener("slotchange",h);document.addEventListener("visibilitychange",g);a.addEventListener("mouseenter",e);a.addEventListener("mouseleave",d);a.addEventListener("focusin",c);a.addEventListener("focusout",b);$APP.ma(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:q,pdown:k,focusout:b})},OU=function(a){BU(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,"__xScrollRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.ci.g(c),e=$APP.ah.g(c),g=$APP.fi.g(c);c=$APP.hi.g(c);
27
- var h=$APP.l(b,"prev");$APP.n(h)&&d.removeEventListener("click",h);d=$APP.l(b,"next");$APP.n(d)&&e.removeEventListener("click",d);e=$APP.l(b,"keydown");$APP.n(e)&&a.removeEventListener("keydown",e);e=$APP.l(b,"pdown");$APP.n(e)&&c.removeEventListener("pointerdown",e);c=$APP.l(a,"__xScrollDragState");$APP.n(c)&&(e=$APP.l(c,"moveH"),$APP.n(e)&&window.removeEventListener("pointermove",e),c=$APP.l(c,"upH"),$APP.n(c)&&window.removeEventListener("pointerup",c),a.__xScrollDragState=null);c=$APP.l(b,"slot");
28
- $APP.n(c)&&g.removeEventListener("slotchange",c);g=$APP.l(b,"vis");$APP.n(g)&&document.removeEventListener("visibilitychange",g);g=$APP.l(b,"enter");$APP.n(g)&&a.removeEventListener("mouseenter",g);g=$APP.l(b,"leave");$APP.n(g)&&a.removeEventListener("mouseleave",g);g=$APP.l(b,"focusin");$APP.n(g)&&a.removeEventListener("focusin",g);b=$APP.l(b,"focusout");$APP.n(b)&&a.removeEventListener("focusout",b)}a.__xScrollHandlers=null},PU=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.n(b)&&b.disconnect();
29
- b=XT(a);b=$APP.N(b);b=$APP.I(b,$APP.hi);var c=new ResizeObserver(function(){if($APP.n(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.n(d)?d:mU(a);return wU(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},QU=function(a,b){b=$APP.N(b);var c=$APP.I(b,$APP.ri),d=$APP.I(b,hU),e=$APP.I(b,jU),g=$APP.I(b,$APP.X),h=$APP.I(b,$APP.U),k=$APP.I(b,ST),m=XT(a);m=$APP.N(m);var p=$APP.I(m,$APP.hi),q=$APP.I(m,$APP.ci),v=$APP.I(m,$APP.ah);m=$APP.I(m,$APP.Hh);var x=function(){var y=$APP.l(a,"__xScrollChildCount");
30
- return $APP.n(y)?y:nU(a).length}();a.setAttribute("data-mode",c);$APP.n(d)?a.removeAttribute("data-hide-controls"):a.setAttribute("data-hide-controls","");$APP.u(h)?p.setAttribute("aria-label",h):p.removeAttribute("aria-label");q.disabled=!UT(b,x);v.disabled=!VT(b,x);a.tabIndex=$APP.n(g)?-1:0;$APP.n(e)&&yU(a,x,k,function(y){return CU(a,y,null)});$APP.n(e)||(c=XT(a),c=$APP.N(c),$APP.I(c,WT).innerHTML="");x>0&&(m.textContent="Slide "+$APP.T.g(k+1)+" of "+$APP.T.g(x));wU(a,b);a.__xScrollModel=b},RU=
31
- function(a){var b=mU(a);$APP.O($APP.l(a,"__xScrollModel"),b)&&QU(a,b)},SU=function(a){Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?b:"horizontal"},set:function(b){return $APP.n(b)?this.setAttribute("mode",""+$APP.T.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"snap",{get:function(){var b=this.getAttribute("snap");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("snap",""+
32
- $APP.T.g(b)):this.removeAttribute("snap")},enumerable:!0,configurable:!0});Object.defineProperty(a,"loop",{get:function(){return this.hasAttribute("loop")},set:function(b){return $APP.n(b)?this.setAttribute("loop",""):this.removeAttribute("loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoPlay",{get:function(){return this.hasAttribute("auto-play")},set:function(b){return $APP.n(b)?this.setAttribute("auto-play",""):this.removeAttribute("auto-play")},enumerable:!0,configurable:!0});
33
- Object.defineProperty(a,"interval",{get:function(){var b=this.getAttribute("interval");return $APP.Fg.h(500,PT(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return OT(this.getAttribute("show-controls"))},set:function(b){return $APP.n(b)?this.removeAttribute("show-controls"):this.setAttribute("show-controls","false")},enumerable:!0,configurable:!0});
34
- Object.defineProperty(a,"showIndicators",{get:function(){return this.hasAttribute("show-indicators")},set:function(b){return $APP.n(b)?this.setAttribute("show-indicators",""):this.removeAttribute("show-indicators")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return PT(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):this.setAttribute("active-index",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});
35
- Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return PT(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.T.g(b|0))},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")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=
36
- this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},UU=function(){var a=class extends HTMLElement{};a.observedAttributes=TU;a.prototype.connectedCallback=function(){XT(this);OU(this);NU(this);PU(this);RU(this);EU(this);return null};a.prototype.disconnectedCallback=function(){OU(this);var c=$APP.l(this,"__xScrollResizeObs");$APP.n(c)&&(c.disconnect(),
37
- this.__xScrollResizeObs=null);c=nU(this);for(var d=c.length,e=0;;)if(e<d)c[e].style.order="",e+=1;else break;return null};a.prototype.attributeChangedCallback=function(c,d,e){$APP.O(d,e)&&(RU(this),d=this.isConnected,c=$APP.n(d)?$APP.C.h(c,"auto-play")||$APP.C.h(c,"interval")||$APP.C.h(c,"disabled"):d,$APP.n(c)&&FU(this));return null};var b=a.prototype;SU(b);b.goTo=function(c){return CU(this,c,null)};b.next=function(){return GU(this)};b.prev=function(){return HU(this)};return a},VU=function(){$APP.n(customElements.get("x-scroll"))||
38
- customElements.define("x-scroll",UU());return null},iU=new $APP.M(null,"snap","snap",-51714904),cU=new $APP.M(null,"interval-raw","interval-raw",443967609),dU=new $APP.M(null,"snap-raw","snap-raw",828444409),aU=new $APP.M(null,"gap-raw","gap-raw",1566843410),kU=new $APP.M(null,"auto-play?","auto-play?",385278451),hU=new $APP.M(null,"show-controls?","show-controls?",1318868354),bU=new $APP.M(null,"show-indicators-attr","show-indicators-attr",1148535895),YT=new $APP.M(null,"show-controls-attr","show-controls-attr",
39
- -894641087),ST=new $APP.M(null,"active-index","active-index",864399296),$T=new $APP.M(null,"loop-attr","loop-attr",-132212822),lU=new $APP.M(null,"interval","interval",1708495417),eU=new $APP.M(null,"active-index-raw","active-index-raw",1461571359),TT=new $APP.M(null,"loop?","loop?",457687798),ZT=new $APP.M(null,"auto-play-attr","auto-play-attr",329299716),jU=new $APP.M(null,"show-indicators?","show-indicators?",-370587412),WT=new $APP.M(null,"indicators","indicators",1312373003);var TU="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
- $APP.mf([$APP.Di,new $APP.M(null,"showIndicators","showIndicators",1780978055),iU,$APP.ej,$APP.ri,new $APP.M(null,"showControls","showControls",1591218925),$APP.Ek,$APP.U,$APP.Li,new $APP.M(null,"autoPlay","autoPlay",-561263241),lU],[new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,
41
- $APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.Ni],null),new $APP.R(null,1,[$APP.Z,$APP.W],null)]);
42
- $APP.Ed(["x-scroll-change",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.ej,$APP.W,$APP.Oi,$APP.W],null),$APP.rk,!1],null),"x-scroll-start",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.ni,$APP.Y,$APP.ej,$APP.W],null),$APP.rk,!1],null),"x-scroll-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.ej,$APP.W],null),$APP.rk,!1],null),"x-scroll-loop",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.ni,$APP.Y],null),$APP.rk,!0],null)]);
43
- var gU=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),fU=new $APP.S(null,new $APP.R(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_scroll.init",VU);export const init=VU;
5
+ "Slide indicators");p.setAttribute("part","live");p.setAttribute("aria-live","polite");p.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(h);b.appendChild(k);b.appendChild(m);b.appendChild(p);a.__xScrollRefs=new $APP.P(null,8,[$APP.bi,b,$APP.Hi,d,$APP.zi,e,$APP.Fi,g,$APP.Ci,h,$APP.wh,k,FY,m,$APP.$h,p],null);return $APP.l(a,"__xScrollRefs")},UY=function(a){a=$APP.Q([HY,$APP.Oh,IY,$APP.Bk,JY,$APP.pi,KY,LY,$APP.Ai,MY,$APP.uk],[a.getAttribute("show-controls"),a.getAttribute("label"),
6
+ $APP.r(a.hasAttribute("auto-play"))?"":null,a.getAttribute("mode"),$APP.r(a.hasAttribute("loop"))?"":null,a.getAttribute("gap"),$APP.r(a.hasAttribute("show-indicators"))?"":null,a.getAttribute("interval"),$APP.r(a.hasAttribute("disabled"))?"":null,a.getAttribute("snap"),a.getAttribute("active-index")]);var b=$APP.N(a),c=$APP.G(b,MY);a=$APP.G(b,LY);var d=$APP.G(b,$APP.Ai),e=$APP.G(b,$APP.uk),g=$APP.G(b,HY),h=$APP.G(b,$APP.Oh),k=$APP.G(b,IY),m=$APP.G(b,$APP.Bk),p=$APP.G(b,JY),q=$APP.G(b,$APP.pi);b=
7
+ $APP.G(b,KY);e=zY(e,0);g=yY(g);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(NY,c)?c:"none";m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.J(OY,m)?m:"horizontal";return $APP.Q([$APP.uj,PY,QY,$APP.Ri,RY,SY,$APP.T,$APP.oj,CY,TY,$APP.W],[e,g,c,m,b!=null,k!=null,$APP.r(h)?h:"",zY(q,0),p!=null,$APP.Yg.i(500,zY(a,5E3)),d!=null])},VY=function(a){a=GY(a);a=$APP.N(a);return $APP.G(a,$APP.Fi).assignedElements()},WY=function(){return $APP.I(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
8
+ XY=function(a){return $APP.D.i("horizontal",$APP.Ri.g(a))},YY=function(a,b){a=VY(a);return a.length>0?(a=a[0].getBoundingClientRect(),XY(b)?a.width:a.height):0},ZY=function(a,b){return a.style.transform=b},$Y=function(a,b){a=a.getBoundingClientRect();return $APP.D.i("horizontal",$APP.Ri.g(b))?a.width:a.height},aZ=function(a,b,c){switch(a){case "center":return(b-c)/2;case "end":return b-c;default:return 0}},bZ=function(a,b,c,d,e){a=$APP.id(a)*(b+c)-d;return $APP.r(e)?"translateX("+$APP.S.g(-a)+"px)":
9
+ "translateY("+$APP.S.g(-a)+"px)"},cZ=function(a,b,c){for(var d=0;;)if(d<b){var e=$APP.id(b);a[d].style.order=""+$APP.S.g($APP.hd(d-c+e+b,b)-e);d+=1}else break},dZ=function(a,b){var c=GY(a);c=$APP.N(c);var d=$APP.G(c,$APP.Hi);c=$APP.G(c,$APP.zi);var e=VY(a),g=e.length,h=YY(a,b),k=$APP.oj.g(b),m=$APP.uj.g(b),p=AY(CY.g(b),g);d=$Y(d,b);d=aZ(QY.g(b),d,h);a.__xScrollChildCount=g;if(g>0){c.style.gap=""+$APP.S.g(k)+"px";if($APP.r(p))return cZ(e,g,m),ZY(c,bZ(g,h,k,d,XY(b)));for(a=0;;)if(a<g)e[a].style.order=
10
+ "",a+=1;else break;a=m*(h+k)-d;return ZY(c,XY(b)?"translateX("+$APP.S.g(-a)+"px)":"translateY("+$APP.S.g(-a)+"px)")}return null},eZ=function(a,b,c){var d=GY(a);d=$APP.N(d);var e=$APP.G(d,$APP.Hi),g=$APP.G(d,$APP.zi),h=VY(a),k=h.length,m=YY(a,b),p=$APP.oj.g(b),q=XY(b);a=$Y(e,b);var w=aZ(QY.g(b),a,m);c=-($APP.id(k)*(m+p)-w+c*(m+p));ZY(g,q?"translateX("+$APP.S.g(c)+"px)":"translateY("+$APP.S.g(c)+"px)");WY()?(cZ(h,k,$APP.uj.g(b)),ZY(g,bZ(k,m,p,w,q))):g.addEventListener("transitionend",function A(y){return $APP.D.i(y.target,
11
+ g)?(g.removeEventListener("transitionend",A),g.style.transition="none",cZ(h,k,$APP.uj.g(b)),ZY(g,bZ(k,m,p,w,q)),g.offsetHeight,g.style.transition=""):null})},fZ=function(a,b,c,d){a=GY(a);var e=$APP.N(a),g=$APP.G(e,FY);g.innerHTML="";for(var h=0;;)if(h<b){var k=document.createElement("button");k.setAttribute("part","indicator");k.setAttribute("type","button");k.setAttribute("role","tab");k.setAttribute("aria-label","Slide "+$APP.S.g(h+1));k.setAttribute("aria-selected",""+$APP.S.g($APP.D.i(h,c)));
12
+ k.addEventListener("click",function(m){return function(){return d.g?d.g(m):d.call(null,m)}}(h,k,b,a,e,g,g));g.appendChild(k);h+=1}else break},gZ=function(a,b){a=GY(a);a=$APP.N(a);a=$APP.G(a,FY).children;for(var c=a.length,d=0;;)if(d<c)a[d].setAttribute("aria-selected",""+$APP.S.g($APP.D.i(d,b))),d+=1;else break},hZ=function(a,b,c,d){b=new CustomEvent(b,{detail:$APP.nh(c),bubbles:!0,composed:!0,cancelable:$APP.I(d)});return a.dispatchEvent(b)},iZ=function(a){var b=$APP.l(a,"__xScrollAutoplayTid");
13
+ $APP.r(b)&&(clearInterval(b),a.__xScrollAutoplayTid=null);return null},lZ=function(a){iZ(a);var b=function(){var c=$APP.l(a,"__xScrollModel");return $APP.r(c)?c:UY(a)}();$APP.r(function(){var c=SY.g(b);return $APP.r(c)?$APP.t($APP.W.g(b)):c}())&&$APP.n(a,"__xScrollAutoplayTid",setInterval(function(){if($APP.r(a.isConnected)){var c=VY(a).length;if(c>0){var d=$APP.uj.g(function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?g:UY(a)}()),e=function(){var g=$APP.l(a,"__xScrollModel");return $APP.r(g)?
14
+ g:UY(a)}();c=BY(d,1,c,CY.g(e));return $APP.O(d,c)?jZ?jZ(a,c,1):kZ.call(null,a,c,1):null}}return null},TY.g(b)));return null},mZ=function(a){iZ(a);return lZ(a)},kZ=function(a){switch(arguments.length){case 2:return jZ(arguments[0],arguments[1],null);case 3:return jZ(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}},jZ=function(a,b,c){var d=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:UY(a)}(),e=function(){var w=$APP.l(a,
15
+ "__xScrollChildCount");return $APP.r(w)?w:VY(a).length}(),g=$APP.uj.g(d);if(e>0&&$APP.t($APP.W.g(d))){var h=AY(CY.g(d),e),k=$APP.r(h)?e<=0?0:$APP.hd($APP.hd(b,e)+e,e):e<=0?0:$APP.Yg.i(0,$APP.Zg.i(b,e-1));b=k-g;if($APP.O(k,g)){c=$APP.r(c)?c:b>0?1:-1;var m=e>0&&(c>0&&k<g||c<0&&k>g),p=c>0?"forward":"backward";if($APP.r(function(){var w=!m;return w?w:hZ(a,"x-scroll-loop",new $APP.P(null,1,[$APP.Ni,p],null),!0)}())){hZ(a,"x-scroll-start",new $APP.P(null,2,[$APP.Ni,p,$APP.Cj,g],null),!1);d=$APP.Wg.o(d,
16
+ $APP.uj,k);a.__xScrollModel=d;a.setAttribute("active-index",""+$APP.S.g(k));$APP.r(h)?eZ(a,d,c):dZ(a,d);gZ(a,k);h=GY(a);b=$APP.N(h);h=$APP.G(b,$APP.Ci);c=$APP.G(b,$APP.wh);b=$APP.G(b,$APP.$h);h.disabled=!DY(d,e);c.disabled=!EY(d,e);b.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(e);hZ(a,"x-scroll-change",new $APP.P(null,2,[$APP.Cj,k,$APP.rj,g],null),!1);if(WY())hZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1);else{e=GY(a);e=$APP.N(e);var q=$APP.G(e,$APP.zi);q.addEventListener("transitionend",
17
+ function y(x){return $APP.D.i(x.target,q)?(q.removeEventListener("transitionend",y),hZ(a,"x-scroll-end",new $APP.P(null,1,[$APP.Cj,k],null),!1)):null})}return mZ(a)}}}return null},nZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:UY(a)}(),c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:VY(a).length}();b=BY($APP.uj.g(b),1,c,CY.g(b));return jZ(a,b,1)},oZ=function(a){var b=function(){var d=$APP.l(a,"__xScrollModel");return $APP.r(d)?d:UY(a)}(),
18
+ c=function(){var d=$APP.l(a,"__xScrollChildCount");return $APP.r(d)?d:VY(a).length}();b=BY($APP.uj.g(b),-1,c,CY.g(b));return jZ(a,b,-1)},rZ=function(a,b){function c(k){return pZ.i?pZ.i(a,k):pZ.call(null,a,k)}var d=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:UY(a)}();if($APP.r($APP.W.g(d)))return null;var e=GY(a);e=$APP.N(e);e=$APP.G(e,$APP.zi);var g=XY(d);e.style.transition="none";iZ(a);var h=function p(m){window.removeEventListener("pointermove",c);window.removeEventListener("pointerup",
19
+ p);return qZ.i?qZ.i(a,m):qZ.call(null,a,m)};window.addEventListener("pointermove",c);window.addEventListener("pointerup",h);return $APP.n(a,"__xScrollDragState",function(){var m={};m.startX=b.clientX;m.startTime=Date.now();m.startY=b.clientY;m.upH=h;m.moveH=c;m.isDragging=!1;m.lastY=b.clientY;m.lastTime=Date.now();m.horiz=g;m.lastX=b.clientX;return m}())},pZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){b.preventDefault();var d=$APP.l(c,"horiz"),e=($APP.r(d)?b.clientX:b.clientY)-
20
+ ($APP.r(d)?$APP.l(c,"startX"):$APP.l(c,"startY"));$APP.t($APP.l(c,"isDragging"))&&Math.abs(e)>3&&(c.isDragging=!0);if($APP.r($APP.l(c,"isDragging"))){c.lastX=b.clientX;c.lastY=b.clientY;$APP.n(c,"lastTime",Date.now());b=GY(a);b=$APP.N(b);var g=$APP.G(b,$APP.Hi);b=$APP.G(b,$APP.zi);var h=function(){var w=$APP.l(a,"__xScrollModel");return $APP.r(w)?w:UY(a)}(),k=YY(a,h),m=$APP.oj.g(h);c=function(){var w=$APP.l(a,"__xScrollChildCount");return $APP.r(w)?w:VY(a).length}();var p=$APP.uj.g(h),q=AY(CY.g(h),
21
+ c);g=$Y(g,h);g=aZ(QY.g(h),g,k);k=($APP.r(q)?$APP.id(c)*(k+m):p*(k+m))-g;e=($APP.t(q)&&(e<0&&$APP.D.i(p,c-1)||e>0&&$APP.D.i(p,0))?e*.3:e)-k;return ZY(b,$APP.r(d)?"translateX("+$APP.S.g(e)+"px)":"translateY("+$APP.S.g(e)+"px)")}}return null},qZ=function(a,b){var c=$APP.l(a,"__xScrollDragState");if($APP.r(c)){a.__xScrollDragState=null;var d=GY(a);d=$APP.N(d);$APP.G(d,$APP.zi).style.transition="";if($APP.r($APP.l(c,"isDragging"))){d=$APP.l(c,"horiz");b=($APP.r(d)?b.clientX:b.clientY)-($APP.r(d)?$APP.l(c,
22
+ "startX"):$APP.l(c,"startY"));c=Date.now()-$APP.l(c,"lastTime");d=c>0?Math.abs(b)/c:0;c=function(){var k=$APP.l(a,"__xScrollModel");return $APP.r(k)?k:UY(a)}();var e=GY(a);e=$APP.N(e);$APP.G(e,$APP.Hi);var g=YY(a,c),h=function(){var k=$APP.l(a,"__xScrollChildCount");return $APP.r(k)?k:VY(a).length}();e=$APP.uj.g(c);d=d>.5?b<0?1:-1:Math.abs(b)>.5*g?b<0?1:-1:0;d=d===0?e:BY(e,d,h,CY.g(c));$APP.D.i(d,e)?dZ(a,c):jZ(a,d,b<0?1:-1);return mZ(a)}}return null},sZ=function(a,b){var c=function(){var e=$APP.l(a,
23
+ "__xScrollModel");return $APP.r(e)?e:UY(a)}();if($APP.r($APP.W.g(c)))return null;var d=b.key;(c=XY(c))&&$APP.D.i(d,"ArrowLeft")?(oZ(a),d=!0):c&&$APP.D.i(d,"ArrowRight")?(nZ(a),d=!0):!c&&$APP.D.i(d,"ArrowUp")?(oZ(a),d=!0):!c&&$APP.D.i(d,"ArrowDown")?(nZ(a),d=!0):$APP.D.i(d,"Home")?(jZ(a,0,null),d=!0):d=$APP.D.i(d,"End")&&function(){var e=$APP.l(a,"__xScrollChildCount");e=$APP.r(e)?e:VY(a).length;jZ(a,e-1,null);return!0}();return d?b.preventDefault():null},tZ=function(a){var b=function(){var h=$APP.l(a,
24
+ "__xScrollModel");return $APP.r(h)?h:UY(a)}(),c=VY(a).length;a.__xScrollChildCount=c;if(c>0&&$APP.uj.g(b)>=c){var d=c-1;a.setAttribute("active-index",""+$APP.S.g(d));$APP.n(a,"__xScrollModel",$APP.Wg.o(b,$APP.uj,d))}b=function(){var h=$APP.l(a,"__xScrollModel");return $APP.r(h)?h:UY(a)}();d=GY(a);var e=$APP.N(d);d=$APP.G(e,$APP.Ci);var g=$APP.G(e,$APP.wh);e=$APP.G(e,$APP.$h);$APP.r(RY.g(b))&&fZ(a,c,$APP.uj.g(b),function(h){return jZ(a,h,null)});d.disabled=!DY(b,c);g.disabled=!EY(b,c);c>0&&(e.textContent=
25
+ "Slide "+$APP.S.g($APP.uj.g(b)+1)+" of "+$APP.S.g(c));return dZ(a,b)},uZ=function(a){function b(){return mZ(a)}function c(){return iZ(a)}function d(){return mZ(a)}function e(){return iZ(a)}function g(){return $APP.r(document.hidden)?iZ(a):mZ(a)}function h(){return tZ(a)}function k(C){return rZ(a,C)}function m(C){return sZ(a,C)}function p(){return nZ(a)}function q(){return oZ(a)}var w=GY(a),x=$APP.N(w);w=$APP.G(x,$APP.Ci);var y=$APP.G(x,$APP.wh),A=$APP.G(x,$APP.Fi);x=$APP.G(x,$APP.Hi);w.addEventListener("click",
26
+ q);y.addEventListener("click",p);a.addEventListener("keydown",m);x.addEventListener("pointerdown",k);A.addEventListener("slotchange",h);document.addEventListener("visibilitychange",g);a.addEventListener("mouseenter",e);a.addEventListener("mouseleave",d);a.addEventListener("focusin",c);a.addEventListener("focusout",b);$APP.n(a,"__xScrollHandlers",{slot:h,focusin:c,keydown:m,vis:g,enter:e,next:p,leave:d,prev:q,pdown:k,focusout:b})},vZ=function(a){iZ(a);var b=$APP.l(a,"__xScrollHandlers"),c=$APP.l(a,
27
+ "__xScrollRefs");if($APP.r($APP.r(b)?c:b)){var d=$APP.Ci.g(c),e=$APP.wh.g(c),g=$APP.Fi.g(c);c=$APP.Hi.g(c);var h=$APP.l(b,"prev");$APP.r(h)&&d.removeEventListener("click",h);d=$APP.l(b,"next");$APP.r(d)&&e.removeEventListener("click",d);e=$APP.l(b,"keydown");$APP.r(e)&&a.removeEventListener("keydown",e);e=$APP.l(b,"pdown");$APP.r(e)&&c.removeEventListener("pointerdown",e);c=$APP.l(a,"__xScrollDragState");$APP.r(c)&&(e=$APP.l(c,"moveH"),$APP.r(e)&&window.removeEventListener("pointermove",e),c=$APP.l(c,
28
+ "upH"),$APP.r(c)&&window.removeEventListener("pointerup",c),a.__xScrollDragState=null);c=$APP.l(b,"slot");$APP.r(c)&&g.removeEventListener("slotchange",c);g=$APP.l(b,"vis");$APP.r(g)&&document.removeEventListener("visibilitychange",g);g=$APP.l(b,"enter");$APP.r(g)&&a.removeEventListener("mouseenter",g);g=$APP.l(b,"leave");$APP.r(g)&&a.removeEventListener("mouseleave",g);g=$APP.l(b,"focusin");$APP.r(g)&&a.removeEventListener("focusin",g);b=$APP.l(b,"focusout");$APP.r(b)&&a.removeEventListener("focusout",
29
+ b)}a.__xScrollHandlers=null},wZ=function(a){var b=$APP.l(a,"__xScrollResizeObs");$APP.r(b)&&b.disconnect();b=GY(a);b=$APP.N(b);b=$APP.G(b,$APP.Hi);var c=new ResizeObserver(function(){if($APP.r(a.isConnected)){var d=$APP.l(a,"__xScrollModel");d=$APP.r(d)?d:UY(a);return dZ(a,d)}return null});c.observe(b);a.__xScrollResizeObs=c},xZ=function(a,b){b=$APP.N(b);var c=$APP.G(b,$APP.Ri),d=$APP.G(b,PY),e=$APP.G(b,RY),g=$APP.G(b,$APP.W),h=$APP.G(b,$APP.T),k=$APP.G(b,$APP.uj),m=GY(a);m=$APP.N(m);var p=$APP.G(m,
30
+ $APP.Hi),q=$APP.G(m,$APP.Ci),w=$APP.G(m,$APP.wh);m=$APP.G(m,$APP.$h);var x=function(){var y=$APP.l(a,"__xScrollChildCount");return $APP.r(y)?y:VY(a).length}();a.setAttribute("data-mode",c);$APP.r(d)?a.removeAttribute("data-hide-controls"):a.setAttribute("data-hide-controls","");$APP.u(h)?p.setAttribute("aria-label",h):p.removeAttribute("aria-label");q.disabled=!DY(b,x);w.disabled=!EY(b,x);a.tabIndex=$APP.r(g)?-1:0;$APP.r(e)&&fZ(a,x,k,function(y){return jZ(a,y,null)});$APP.r(e)||(c=GY(a),c=$APP.N(c),
31
+ $APP.G(c,FY).innerHTML="");x>0&&(m.textContent="Slide "+$APP.S.g(k+1)+" of "+$APP.S.g(x));dZ(a,b);a.__xScrollModel=b},yZ=function(a){var b=UY(a);$APP.O($APP.l(a,"__xScrollModel"),b)&&xZ(a,b)},zZ=function(a){Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.r(b)?b:"horizontal"},set:function(b){return $APP.r(b)?this.setAttribute("mode",""+$APP.S.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"snap",{get:function(){var b=
32
+ this.getAttribute("snap");return $APP.r(b)?b:"none"},set:function(b){return $APP.r(b)?this.setAttribute("snap",""+$APP.S.g(b)):this.removeAttribute("snap")},enumerable:!0,configurable:!0});Object.defineProperty(a,"loop",{get:function(){return this.hasAttribute("loop")},set:function(b){return $APP.r(b)?this.setAttribute("loop",""):this.removeAttribute("loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoPlay",{get:function(){return this.hasAttribute("auto-play")},set:function(b){return $APP.r(b)?
33
+ this.setAttribute("auto-play",""):this.removeAttribute("auto-play")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interval",{get:function(){var b=this.getAttribute("interval");return $APP.Yg.i(500,zY(b,5E3))},set:function(b){return b==null?this.removeAttribute("interval"):this.setAttribute("interval",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showControls",{get:function(){return yY(this.getAttribute("show-controls"))},set:function(b){return $APP.r(b)?this.removeAttribute("show-controls"):
34
+ this.setAttribute("show-controls","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showIndicators",{get:function(){return this.hasAttribute("show-indicators")},set:function(b){return $APP.r(b)?this.setAttribute("show-indicators",""):this.removeAttribute("show-indicators")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=this.getAttribute("active-index");return zY(b,0)},set:function(b){return b==null?this.removeAttribute("active-index"):
35
+ this.setAttribute("active-index",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"gap",{get:function(){var b=this.getAttribute("gap");return zY(b,0)},set:function(b){return b==null?this.removeAttribute("gap"):this.setAttribute("gap",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.r(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,
36
+ configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.r(b)?b:""},set:function(b){return $APP.r($APP.r(b)?$APP.O(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},BZ=function(){var a=class extends HTMLElement{};a.observedAttributes=AZ;a.prototype.connectedCallback=function(){GY(this);vZ(this);uZ(this);wZ(this);yZ(this);lZ(this);return null};a.prototype.disconnectedCallback=function(){vZ(this);
37
+ var c=$APP.l(this,"__xScrollResizeObs");$APP.r(c)&&(c.disconnect(),this.__xScrollResizeObs=null);c=VY(this);for(var d=c.length,e=0;;)if(e<d)c[e].style.order="",e+=1;else break;return null};a.prototype.attributeChangedCallback=function(c,d,e){$APP.O(d,e)&&(yZ(this),d=this.isConnected,c=$APP.r(d)?$APP.D.i(c,"auto-play")||$APP.D.i(c,"interval")||$APP.D.i(c,"disabled"):d,$APP.r(c)&&mZ(this));return null};var b=a.prototype;zZ(b);b.goTo=function(c){return jZ(this,c,null)};b.next=function(){return nZ(this)};
38
+ b.prev=function(){return oZ(this)};return a},CZ=function(){$APP.r(customElements.get("x-scroll"))||customElements.define("x-scroll",BZ());return null},QY=new $APP.M(null,"snap","snap",-51714904),LY=new $APP.M(null,"interval-raw","interval-raw",443967609),MY=new $APP.M(null,"snap-raw","snap-raw",828444409),SY=new $APP.M(null,"auto-play?","auto-play?",385278451),PY=new $APP.M(null,"show-controls?","show-controls?",1318868354),KY=new $APP.M(null,"show-indicators-attr","show-indicators-attr",1148535895),
39
+ HY=new $APP.M(null,"show-controls-attr","show-controls-attr",-894641087),JY=new $APP.M(null,"loop-attr","loop-attr",-132212822),TY=new $APP.M(null,"interval","interval",1708495417),CY=new $APP.M(null,"loop?","loop?",457687798),IY=new $APP.M(null,"auto-play-attr","auto-play-attr",329299716),RY=new $APP.M(null,"show-indicators?","show-indicators?",-370587412),FY=new $APP.M(null,"indicators","indicators",1312373003);var AZ="mode snap loop auto-play interval show-controls show-indicators active-index gap disabled label".split(" ");
40
+ $APP.Q([$APP.gj,new $APP.M(null,"showIndicators","showIndicators",1780978055),QY,$APP.Cj,$APP.Ri,new $APP.M(null,"showControls","showControls",1591218925),$APP.zl,$APP.T,$APP.oj,new $APP.M(null,"autoPlay","autoPlay",-561263241),TY],[new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,
41
+ $APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.Y],null),new $APP.P(null,1,[$APP.Z,$APP.V],null),new $APP.P(null,1,[$APP.Z,$APP.qj],null),new $APP.P(null,1,[$APP.Z,$APP.V],null)]);
42
+ $APP.Sd(["x-scroll-change",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Cj,$APP.V,$APP.rj,$APP.V],null),$APP.kl,!1],null),"x-scroll-start",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.Ni,$APP.Y,$APP.Cj,$APP.V],null),$APP.kl,!1],null),"x-scroll-end",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Cj,$APP.V],null),$APP.kl,!1],null),"x-scroll-loop",new $APP.P(null,2,[$APP.U,new $APP.P(null,1,[$APP.Ni,$APP.Y],null),$APP.kl,!0],null)]);
43
+ var OY=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),NY=new $APP.R(null,new $APP.P(null,4,["none",null,"center",null,"start",null,"end",null],null),null);$APP.ka("baredom.exports.x_scroll.init",CZ);export const init=CZ;