@vanelsas/baredom 2.2.0 → 2.3.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 (92) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +402 -393
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +14 -14
  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 +15 -15
  12. package/dist/x-cancel-dialogue.js +16 -16
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +29 -29
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +41 -41
  20. package/dist/x-combobox.js +28 -0
  21. package/dist/x-command-palette.js +25 -25
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -18
  24. package/dist/x-copy.js +22 -22
  25. package/dist/x-currency-field.js +21 -21
  26. package/dist/x-date-picker.js +37 -37
  27. package/dist/x-divider.js +8 -8
  28. package/dist/x-drawer.js +11 -11
  29. package/dist/x-dropdown.js +9 -9
  30. package/dist/x-fieldset.js +5 -5
  31. package/dist/x-file-download.js +7 -7
  32. package/dist/x-form-field.js +15 -15
  33. package/dist/x-form.js +9 -9
  34. package/dist/x-gaussian-blur.js +18 -18
  35. package/dist/x-grid.js +6 -6
  36. package/dist/x-icon.js +7 -7
  37. package/dist/x-image.js +18 -18
  38. package/dist/x-kinetic-font.js +28 -28
  39. package/dist/x-kinetic-typography.js +37 -37
  40. package/dist/x-liquid-dock.js +35 -35
  41. package/dist/x-liquid-fill.js +40 -40
  42. package/dist/x-liquid-glass.js +36 -36
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +25 -25
  46. package/dist/x-modal.js +12 -12
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +12 -12
  49. package/dist/x-neural-glow.js +31 -31
  50. package/dist/x-notification-center.js +10 -10
  51. package/dist/x-organic-divider.js +15 -15
  52. package/dist/x-organic-progress.js +35 -35
  53. package/dist/x-organic-shape.js +12 -12
  54. package/dist/x-pagination.js +16 -16
  55. package/dist/x-particle-button.js +47 -47
  56. package/dist/x-popover.js +14 -14
  57. package/dist/x-progress-circle.js +7 -7
  58. package/dist/x-progress.js +7 -7
  59. package/dist/x-radio.js +11 -11
  60. package/dist/x-ripple-effect.js +11 -11
  61. package/dist/x-scroll-parallax.js +17 -17
  62. package/dist/x-scroll-stack.js +18 -18
  63. package/dist/x-scroll-story.js +34 -34
  64. package/dist/x-scroll-timeline.js +45 -45
  65. package/dist/x-scroll.js +40 -40
  66. package/dist/x-search-field.js +14 -14
  67. package/dist/x-select.js +9 -9
  68. package/dist/x-sidebar.js +16 -16
  69. package/dist/x-skeleton-group.js +15 -0
  70. package/dist/x-skeleton.js +1 -6
  71. package/dist/x-slider.js +16 -16
  72. package/dist/x-soft-body.js +20 -20
  73. package/dist/x-spacer.js +5 -5
  74. package/dist/x-spinner.js +5 -5
  75. package/dist/x-splash.js +13 -13
  76. package/dist/x-stat.js +9 -9
  77. package/dist/x-stepper.js +15 -16
  78. package/dist/x-switch.js +10 -10
  79. package/dist/x-tab.js +7 -7
  80. package/dist/x-table-cell.js +19 -19
  81. package/dist/x-table-row.js +10 -10
  82. package/dist/x-table.js +13 -13
  83. package/dist/x-tabs.js +11 -11
  84. package/dist/x-text-area.js +17 -17
  85. package/dist/x-theme.js +25 -25
  86. package/dist/x-timeline-item.js +20 -20
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +21 -21
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +14 -0
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +13 -1
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var VO=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},WO=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},XO=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},YO=function(a){var b=$APP.k(a,
2
+ var lQ=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?25:Math.min(100,Math.max(1,a))}return 25},mQ=function(a){if(typeof a==="string"){a=parseInt(a.trim(),10);var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?800:Math.min(5E3,Math.max(100,a))}return 800},nQ=function(a){if(typeof a==="string"){a=parseFloat(a.trim());var b=isNaN(a);return $APP.n($APP.n(b)?b:!(a>0))?.04:Math.min(.2,Math.max(.005,a))}return.04},oQ=function(a){var b=$APP.k(a,
3
3
  "__xRippleRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:inline-block;position:relative;}:host([disabled]){cursor:default;}[part\x3dcontainer]{display:block;width:100%;height:100%;}";d.setAttribute("part","container");d.appendChild(e);g.setAttribute("part","filters");g.style.position="absolute";
4
- g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.R(null,3,[$APP.li,b,$APP.ij,d,$APP.Nj,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},aP=function(a){a=new $APP.R(null,4,[$APP.gk,a.getAttribute("intensity"),$APP.yi,a.getAttribute("duration"),ZO,a.getAttribute("frequency"),$APP.gl,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.gk);var c=$APP.D(b,$APP.yi),
5
- d=$APP.D(b,ZO);b=$APP.D(b,$APP.gl);return new $APP.R(null,4,[$APP.Xj,VO(a),$APP.Bk,WO(c),$O,XO(d),$APP.W,$APP.F(b)],null)},dP=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
- e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.R(null,3,[$APP.Fk,d,bP,e,cP,g],null)},
7
- eP=function(a,b){var c=aP(a);if(!$APP.n($APP.W.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.Xj),e=$APP.D(c,$APP.Bk),g=$APP.D(c,$O);c=YO(a);c=$APP.M(c);var h=$APP.D(c,$APP.ij),l=$APP.D(c,$APP.Nj),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=dP(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.Fk),q=$APP.D(m,bP),v=$APP.D(m,cP),x=b.clientX,y=b.clientY,A=performance.now(),B=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
- "url(#"+$APP.T.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.T.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var G=performance.now()-A;G=Math.min(1,G/e);var I=1-G;I=1-I*I*I;var Q=g*(1-I*.7);v.setAttribute("scale",
9
- ""+$APP.T.g(d*(1-I)));q.setAttribute("baseFrequency",""+$APP.T.g(Q));if(G>=1)return l.removeChild(p),l.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));G=requestAnimationFrame(H);return B.push(G)});B.push(b)}},fP=function(a){function b(c){c.button===0&&eP(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},gP=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,
10
- d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.M(b);b=$APP.D(c,$APP.Nj);for(c=$APP.D(c,$APP.ij);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},hP=function(a){Object.defineProperty(a,"intensity",{get:function(){return VO(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
- this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return WO(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return XO(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
- ""+$APP.T.g(b))},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})},jP=function(){var a=class extends HTMLElement{};a.observedAttributes=iP;a.prototype.connectedCallback=function(){YO(this);gP(this);fP(this);return null};a.prototype.disconnectedCallback=function(){gP(this);return null};a.prototype.attributeChangedCallback=
13
- function(){return null};hP(a.prototype);return a},kP=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",jP());return null},bP=new $APP.K(null,"turb","turb",-804768361),ZO=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),cP=new $APP.K(null,"disp","disp",-2047544334),$O=new $APP.K(null,"frequency","frequency",-1408891382);var iP=["intensity","duration","frequency","disabled"];$APP.Pd(["x-ripple-effect-start",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,2,[$APP.dl,$APP.V,$APP.cl,$APP.V],null),$APP.Dl,!1],null),"x-ripple-effect-end",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,2,[$APP.dl,$APP.V,$APP.cl,$APP.V],null),$APP.Dl,!1],null)]);$APP.fa("baredom.exports.x_ripple_effect.init",kP);export const init=kP;
4
+ g.style.width="0";g.style.height="0";g.style.overflow="hidden";b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xRippleRefs=new $APP.Q(null,3,[$APP.yi,b,$APP.xj,d,$APP.bk,g],null);a.__xRippleCounter=0;a.__xRippleFrames=[];return $APP.k(a,"__xRippleRefs")},rQ=function(a){a=new $APP.Q(null,4,[$APP.tk,a.getAttribute("intensity"),$APP.Mi,a.getAttribute("duration"),pQ,a.getAttribute("frequency"),$APP.ul,a.hasAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.tk);var c=$APP.D(b,$APP.Mi),
5
+ d=$APP.D(b,pQ);b=$APP.D(b,$APP.ul);return new $APP.Q(null,4,[$APP.lk,lQ(a),$APP.Ok,mQ(c),qQ,nQ(d),$APP.X,$APP.F(b)],null)},uQ=function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence"),g=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");d.setAttribute("id",b);d.setAttribute("x","-10%");d.setAttribute("y","-10%");d.setAttribute("width","120%");d.setAttribute("height","120%");
6
+ e.setAttribute("type","turbulence");e.setAttribute("baseFrequency",""+$APP.T.g(c));e.setAttribute("numOctaves","3");e.setAttribute("seed",""+$APP.T.g(Math.floor(Math.random()*1E3)));e.setAttribute("result","turbulence");g.setAttribute("in","SourceGraphic");g.setAttribute("in2","turbulence");g.setAttribute("scale","0");g.setAttribute("xChannelSelector","R");g.setAttribute("yChannelSelector","G");d.appendChild(e);d.appendChild(g);a.appendChild(d);return new $APP.Q(null,3,[$APP.Sk,d,sQ,e,tQ,g],null)},
7
+ vQ=function(a,b){var c=rQ(a);if(!$APP.n($APP.X.g(c))){c=$APP.M(c);var d=$APP.D(c,$APP.lk),e=$APP.D(c,$APP.Ok),g=$APP.D(c,qQ);c=oQ(a);c=$APP.M(c);var h=$APP.D(c,$APP.xj),l=$APP.D(c,$APP.bk),m=$APP.k(a,"__xRippleCounter");c="xr-"+$APP.T.g(m);a.__xRippleCounter=m+1;m=uQ(l,c,g);m=$APP.M(m);var p=$APP.D(m,$APP.Sk),q=$APP.D(m,sQ),v=$APP.D(m,tQ),x=b.clientX,y=b.clientY,A=performance.now(),B=$APP.k(a,"__xRippleFrames");b=$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches);h.style.filter=
8
+ "url(#"+$APP.T.g(c)+")";a.dispatchEvent(new CustomEvent("x-ripple-effect-start",{detail:{x,y},bubbles:!0,composed:!0}));b?(v.setAttribute("scale",""+$APP.T.g(d/2)),b=requestAnimationFrame(function(){v.setAttribute("scale","0");l.removeChild(p);h.style.filter="";return a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}))})):b=requestAnimationFrame(function H(){var G=performance.now()-A;G=Math.min(1,G/e);var J=1-G;J=1-J*J*J;var R=g*(1-J*.7);v.setAttribute("scale",
9
+ ""+$APP.T.g(d*(1-J)));q.setAttribute("baseFrequency",""+$APP.T.g(R));if(G>=1)return l.removeChild(p),l.childNodes.length===0&&(h.style.filter=""),a.dispatchEvent(new CustomEvent("x-ripple-effect-end",{detail:{x,y},bubbles:!0,composed:!0}));G=requestAnimationFrame(H);return B.push(G)});B.push(b)}},wQ=function(a){function b(c){c.button===0&&vQ(a,c);return null}a.addEventListener("pointerdown",b);a.__xRippleHandler=b},xQ=function(a){var b=$APP.k(a,"__xRippleFrames");if($APP.n(b)){for(var c=b.length,
10
+ d=0;;)if(d<c)cancelAnimationFrame(b[d]),d+=1;else break;b.length=0}b=$APP.k(a,"__xRippleRefs");if($APP.n(b)){c=$APP.M(b);b=$APP.D(c,$APP.bk);for(c=$APP.D(c,$APP.xj);;)if(d=b.firstChild,$APP.n(d))b.removeChild(d);else break;c.style.filter=""}b=$APP.k(a,"__xRippleHandler");$APP.n(b)&&(a.removeEventListener("pointerdown",b),a.__xRippleHandler=null)},yQ=function(a){Object.defineProperty(a,"intensity",{get:function(){return lQ(this.getAttribute("intensity"))},set:function(b){return b==null?this.removeAttribute("intensity"):
11
+ this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"duration",{get:function(){return mQ(this.getAttribute("duration"))},set:function(b){return b==null?this.removeAttribute("duration"):this.setAttribute("duration",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frequency",{get:function(){return nQ(this.getAttribute("frequency"))},set:function(b){return b==null?this.removeAttribute("frequency"):this.setAttribute("frequency",
12
+ ""+$APP.T.g(b))},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})},AQ=function(){var a=class extends HTMLElement{};a.observedAttributes=zQ;a.prototype.connectedCallback=function(){oQ(this);xQ(this);wQ(this);return null};a.prototype.disconnectedCallback=function(){xQ(this);return null};a.prototype.attributeChangedCallback=
13
+ function(){return null};yQ(a.prototype);return a},BQ=function(){$APP.n(customElements.get("x-ripple-effect"))||customElements.define("x-ripple-effect",AQ());return null},sQ=new $APP.K(null,"turb","turb",-804768361),pQ=new $APP.K(null,"frequency-raw","frequency-raw",-1367383022),tQ=new $APP.K(null,"disp","disp",-2047544334),qQ=new $APP.K(null,"frequency","frequency",-1408891382);var zQ=["intensity","duration","frequency","disabled"];$APP.Qd(["x-ripple-effect-start",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.rl,$APP.W,$APP.ql,$APP.W],null),$APP.Rl,!1],null),"x-ripple-effect-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.rl,$APP.W,$APP.ql,$APP.W],null),$APP.Rl,!1],null)]);$APP.ha("baredom.exports.x_ripple_effect.init",BQ);export const init=BQ;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var jV=function(a){return new $APP.R(null,1,[$APP.ul,a],null)},kV=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
- d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.R(null,4,[$APP.li,b,$APP.Pi,d,$APP.Ni,e,$APP.ji,g],null);return $APP.k(a,"__xScrollParallaxRefs")},rV=function(a){a=new $APP.R(null,5,[$APP.Ci,a.getAttribute("direction"),lV,a.getAttribute("source"),mV,a.getAttribute("easing"),$APP.Ii,
4
- $APP.n(a.hasAttribute("disabled"))?"":null,$APP.Yh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Ci),d=$APP.D(b,lV),e=$APP.D(b,mV);a=$APP.D(b,$APP.Ii);b=$APP.D(b,$APP.Yh);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.J(nV,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.J(oV,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.J(pV,e)?e:"none";return new $APP.R(null,5,[$APP.Vi,c,$APP.Nk,d,qV,e,$APP.W,a!=null,$APP.U,$APP.n(b)?
5
- b:""],null)},sV=function(a){a=kV(a);a=$APP.M(a);return $APP.D(a,$APP.Ni).assignedElements()},tV=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.R(null,4,[$APP.hj,b,$APP.ai,c,$APP.Zh,$APP.C.i("fade",a.getAttribute("data-opacity")),$APP.Ei,$APP.C.i("grow",a.getAttribute("data-scale"))],null)},uV=function(a){var b=
6
- $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=sV(a);b=$APP.Ue.m($APP.ee,$APP.$d.g(tV),$APP.tc(b));return a.__xScrollParallaxChildCache=b},vV=function(a){a.__xScrollParallaxChildCache=null},wV=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},xV=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
- a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},yV=function(a,b,c){b=new CustomEvent(b,{detail:$APP.ph(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},zV=function(a){var b=function(){var H=$APP.k(a,"__xScrollParallaxModel");return $APP.n(H)?H:rV(a)}();if(!$APP.n($APP.W.g(b))){var c=a.getBoundingClientRect();b=$APP.C.i("vertical",$APP.Vi.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.$g.i(0,$APP.ah.i(1,(d-c.top)/(d+
8
- c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=sV(a);for(var h=uV(a),l=wV(a),m=xV(a),p=d.length,q=0;;)if(q<p){if(q<$APP.z(h)){var v=d[q],x=$APP.oc(h,q),y=$APP.M(x),A=$APP.D(y,$APP.hj),B=$APP.D(y,$APP.ai);x=$APP.D(y,$APP.Zh);y=$APP.D(y,$APP.Ei);A=(g-.5)*e*(A-1)+B;var E=b?"translateY("+$APP.T.g(A)+"px)":"translateX("+$APP.T.g(A)+"px)";A=$APP.n(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.T.g(E)+" scale("+$APP.T.g(H)+")"}():E;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+
9
- $APP.T.g(g<l?g/l:g>1-l?(1-g)/l:1))}q+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,yV(a,"x-scroll-parallax-progress",jV(g))}a.__xScrollParallaxRAF=null},AV=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.k(a,"__xScrollParallaxRAF"))?null:$APP.ia(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return zV(a)})):
10
- null},BV=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},CV=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},DV=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},EV=function(a,b){b=b[0].isIntersecting;
11
- var c=$APP.M($APP.k(a,"__xScrollParallaxRefs"));c=$APP.D(c,$APP.ji);a.__xScrollParallaxVisible=b;if($APP.n(b))return BV(a),zV(a),DV(c,"Parallax section entered viewport"),yV(a,"x-scroll-parallax-enter",jV(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()));CV(a);DV(c,"Parallax section left viewport");return yV(a,"x-scroll-parallax-leave",jV(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()))},FV=function(a){function b(){return $APP.n($APP.k(a,
12
- "__xScrollParallaxVisible"))?(vV(a),zV(a)):null}function c(){vV(a);return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?zV(a):null}var d=kV(a);d=$APP.M(d);$APP.D(d,$APP.Ni).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ia(a,"__xScrollParallaxHandlers",{scroll:function(){return AV(a)},slot:c,resize:b,scrollAttached:!1})},GV=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){CV(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.Ni.g(c);var d=
13
- $APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollParallaxRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},HV=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return EV(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},IV=function(a){var b=rV(a);if($APP.N($APP.k(a,
14
- "__xScrollParallaxModel"),b)){var c=$APP.M(b),d=$APP.D(c,$APP.Vi);b=$APP.D(c,$APP.W);var e=$APP.D(c,$APP.U),g=kV(a);g=$APP.M(g);g=$APP.D(g,$APP.Pi);a.setAttribute("data-direction",d);$APP.t(e)?g.setAttribute("aria-label",e):g.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.k(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.r(b):c)&&zV(a)}},JV=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.n(b)?b:"vertical"},set:function(b){return $APP.n(b)?
2
+ var AW=function(a){return new $APP.Q(null,1,[$APP.Il,a],null)},BW=function(a){var b=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot"),g=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-parallax-perspective:none;--x-scroll-parallax-overflow:hidden;--x-scroll-parallax-smooth-duration:80ms;--x-scroll-parallax-fade-range:20%;--x-scroll-parallax-scale-min:0.85;--x-scroll-parallax-disabled-opacity:0.55;}[part\x3dviewport]{position:relative;width:100%;height:100%;overflow:var(--x-scroll-parallax-overflow);perspective:var(--x-scroll-parallax-perspective);}::slotted(*){will-change:transform;}:host([disabled]){opacity:var(--x-scroll-parallax-disabled-opacity);}:host([easing\x3dsmooth]) ::slotted(*){transition:transform var(--x-scroll-parallax-smooth-duration) ease-out,opacity var(--x-scroll-parallax-smooth-duration) ease-out;}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}@media (prefers-reduced-motion:reduce){::slotted(*){transform:none !important;opacity:1 !important;}}";
3
+ d.setAttribute("part","viewport");d.setAttribute("role","region");d.appendChild(e);g.setAttribute("part","live");g.setAttribute("aria-live","polite");g.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(g);a.__xScrollParallaxRefs=new $APP.Q(null,4,[$APP.yi,b,$APP.dj,d,$APP.bj,e,$APP.wi,g],null);return $APP.k(a,"__xScrollParallaxRefs")},IW=function(a){a=new $APP.Q(null,5,[$APP.Qi,a.getAttribute("direction"),CW,a.getAttribute("source"),DW,a.getAttribute("easing"),$APP.Wi,
4
+ $APP.n(a.hasAttribute("disabled"))?"":null,$APP.ki,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Qi),d=$APP.D(b,CW),e=$APP.D(b,DW);a=$APP.D(b,$APP.Wi);b=$APP.D(b,$APP.ki);c=typeof c==="string"?c.trim().toLowerCase():null;c=$APP.I(EW,c)?c:"vertical";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.I(FW,d)?d:"document";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(GW,e)?e:"none";return new $APP.Q(null,5,[$APP.jj,c,$APP.$k,d,HW,e,$APP.X,a!=null,$APP.U,$APP.n(b)?
5
+ b:""],null)},JW=function(a){a=BW(a);a=$APP.M(a);return $APP.D(a,$APP.bj).assignedElements()},KW=function(a){var b=a.getAttribute("data-speed");typeof b==="string"?(b=parseFloat(b.trim()),b=$APP.n(isNaN(b))?1:b):b=1;var c=a.getAttribute("data-offset");typeof c==="string"?(c=parseFloat(c.trim()),c=$APP.n(isNaN(c))?0:c):c=0;return new $APP.Q(null,4,[$APP.wj,b,$APP.ni,c,$APP.li,$APP.C.i("fade",a.getAttribute("data-opacity")),$APP.Si,$APP.C.i("grow",a.getAttribute("data-scale"))],null)},LW=function(a){var b=
6
+ $APP.k(a,"__xScrollParallaxChildCache");if($APP.n(b))return b;b=JW(a);b=$APP.We.m($APP.fe,$APP.ae.g(KW),$APP.uc(b));return a.__xScrollParallaxChildCache=b},MW=function(a){a.__xScrollParallaxChildCache=null},NW=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-fade-range");a=typeof a==="string"?a.trim():null;return $APP.n($APP.n(a)?a.endsWith("%"):a)?(a=parseFloat(a.slice(0,-1)),$APP.n(isNaN(a))?.2:a/100):.2},OW=function(a){a=window.getComputedStyle(a).getPropertyValue("--x-scroll-parallax-scale-min");
7
+ a=typeof a==="string"?parseFloat(a.trim()):null;var b=a==null;return $APP.n(b?b:isNaN(a))?.85:a},PW=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Dh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},QW=function(a){var b=function(){var H=$APP.k(a,"__xScrollParallaxModel");return $APP.n(H)?H:IW(a)}();if(!$APP.n($APP.X.g(b))){var c=a.getBoundingClientRect();b=$APP.C.i("vertical",$APP.jj.g(b));var d=window.innerHeight,e=b?d:window.innerWidth,g=$APP.nh.i(0,$APP.oh.i(1,(d-c.top)/(d+
8
+ c.height)));c=$APP.k(a,"__xScrollParallaxLastProg");d=JW(a);for(var h=LW(a),l=NW(a),m=OW(a),p=d.length,q=0;;)if(q<p){if(q<$APP.z(h)){var v=d[q],x=$APP.pc(h,q),y=$APP.M(x),A=$APP.D(y,$APP.wj),B=$APP.D(y,$APP.ni);x=$APP.D(y,$APP.li);y=$APP.D(y,$APP.Si);A=(g-.5)*e*(A-1)+B;var E=b?"translateY("+$APP.T.g(A)+"px)":"translateX("+$APP.T.g(A)+"px)";A=$APP.n(y)?function(){var H=m+(1-m)*(1-Math.abs(g-.5)*2);return""+$APP.T.g(E)+" scale("+$APP.T.g(H)+")"}():E;v.style.transform=A;$APP.n(x)&&(v.style.opacity=""+
9
+ $APP.T.g(g<l?g/l:g>1-l?(1-g)/l:1))}q+=1}else break;if(c==null||Math.abs(g-c)>.001)a.__xScrollParallaxLastProg=g,PW(a,"x-scroll-parallax-progress",AW(g))}a.__xScrollParallaxRAF=null},RW=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollParallaxVisible"),$APP.n(b)?!$APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches):b):b}())?$APP.n($APP.k(a,"__xScrollParallaxRAF"))?null:$APP.ja(a,"__xScrollParallaxRAF",requestAnimationFrame(function(){return QW(a)})):
10
+ null},SW=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},TW=function(a){a=$APP.k(a,"__xScrollParallaxHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},UW=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},1E3)},VW=function(a,b){b=b[0].isIntersecting;
11
+ var c=$APP.M($APP.k(a,"__xScrollParallaxRefs"));c=$APP.D(c,$APP.wi);a.__xScrollParallaxVisible=b;if($APP.n(b))return SW(a),QW(a),UW(c,"Parallax section entered viewport"),PW(a,"x-scroll-parallax-enter",AW(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()));TW(a);UW(c,"Parallax section left viewport");return PW(a,"x-scroll-parallax-leave",AW(function(){var d=$APP.k(a,"__xScrollParallaxLastProg");return $APP.n(d)?d:0}()))},WW=function(a){function b(){return $APP.n($APP.k(a,
12
+ "__xScrollParallaxVisible"))?(MW(a),QW(a)):null}function c(){MW(a);return $APP.n($APP.k(a,"__xScrollParallaxVisible"))?QW(a):null}var d=BW(a);d=$APP.M(d);$APP.D(d,$APP.bj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollParallaxHandlers",{scroll:function(){return RW(a)},slot:c,resize:b,scrollAttached:!1})},XW=function(a){var b=$APP.k(a,"__xScrollParallaxHandlers");if($APP.n(b)){TW(a);var c=$APP.k(a,"__xScrollParallaxRefs");if($APP.n(c)){c=$APP.bj.g(c);var d=
13
+ $APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",b)}b=$APP.k(a,"__xScrollParallaxRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollParallaxRAF=null);a.__xScrollParallaxHandlers=null},YW=function(a){var b=$APP.k(a,"__xScrollParallaxIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return VW(a,c)},{threshold:[0]});b.observe(a);a.__xScrollParallaxIO=b},ZW=function(a){var b=IW(a);if($APP.N($APP.k(a,
14
+ "__xScrollParallaxModel"),b)){var c=$APP.M(b),d=$APP.D(c,$APP.jj);b=$APP.D(c,$APP.X);var e=$APP.D(c,$APP.U),g=BW(a);g=$APP.M(g);g=$APP.D(g,$APP.dj);a.setAttribute("data-direction",d);$APP.t(e)?g.setAttribute("aria-label",e):g.removeAttribute("aria-label");a.__xScrollParallaxModel=c;c=$APP.k(a,"__xScrollParallaxVisible");$APP.n($APP.n(c)?$APP.r(b):c)&&QW(a)}},$W=function(a){Object.defineProperty(a,"direction",{get:function(){var b=this.getAttribute("direction");return $APP.n(b)?b:"vertical"},set:function(b){return $APP.n(b)?
15
15
  this.setAttribute("direction",""+$APP.T.g(b)):this.removeAttribute("direction")},enumerable:!0,configurable:!0});Object.defineProperty(a,"source",{get:function(){var b=this.getAttribute("source");return $APP.n(b)?b:"document"},set:function(b){return $APP.n(b)?this.setAttribute("source",""+$APP.T.g(b)):this.removeAttribute("source")},enumerable:!0,configurable:!0});Object.defineProperty(a,"easing",{get:function(){var b=this.getAttribute("easing");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?
16
16
  this.setAttribute("easing",""+$APP.T.g(b)):this.removeAttribute("easing")},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=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",
17
- ""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},LV=function(){var a=class extends HTMLElement{};a.observedAttributes=KV;a.prototype.connectedCallback=function(){kV(this);GV(this);FV(this);HV(this);IV(this);return null};a.prototype.disconnectedCallback=function(){for(var b=sV(this),c=b.length,d=0;;)if(d<c){var e=b[d];
18
- e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(this,"__xScrollParallaxVisible"))&&(b=$APP.k(this,"__xScrollParallaxLastProg"),yV(this,"x-scroll-parallax-leave",jV($APP.n(b)?b:0)));GV(this);b=$APP.k(this,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);vV(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&IV(this);return null};JV(a.prototype);return a},
19
- MV=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",LV());return null},lV=new $APP.K(null,"source-raw","source-raw",396083546),mV=new $APP.K(null,"easing-raw","easing-raw",440485546),qV=new $APP.K(null,"easing","easing",735372043);var KV=["direction","source","easing","disabled","label"];$APP.Pd(["x-scroll-parallax-enter",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,1,[$APP.ul,$APP.V],null),$APP.Dl,!1],null),"x-scroll-parallax-leave",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,1,[$APP.ul,$APP.V],null),$APP.Dl,!1],null),"x-scroll-parallax-progress",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,1,[$APP.ul,$APP.V],null),$APP.Dl,!1],null)]);
20
- var nV=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),oV=new $APP.S(null,new $APP.R(null,1,["document",null],null),null),pV=new $APP.S(null,new $APP.R(null,2,["none",null,"smooth",null],null),null);$APP.fa("baredom.exports.x_scroll_parallax.init",MV);export const init=MV;
17
+ ""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollParallaxLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},bX=function(){var a=class extends HTMLElement{};a.observedAttributes=aX;a.prototype.connectedCallback=function(){BW(this);XW(this);WW(this);YW(this);ZW(this);return null};a.prototype.disconnectedCallback=function(){for(var b=JW(this),c=b.length,d=0;;)if(d<c){var e=b[d];
18
+ e.style.transform="";e.style.opacity="";d+=1}else break;$APP.n($APP.k(this,"__xScrollParallaxVisible"))&&(b=$APP.k(this,"__xScrollParallaxLastProg"),PW(this,"x-scroll-parallax-leave",AW($APP.n(b)?b:0)));XW(this);b=$APP.k(this,"__xScrollParallaxIO");$APP.n(b)&&(b.disconnect(),this.__xScrollParallaxIO=null);MW(this);this.__xScrollParallaxVisible=!1;return this.__xScrollParallaxLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&ZW(this);return null};$W(a.prototype);return a},
19
+ cX=function(){$APP.n(customElements.get("x-scroll-parallax"))||customElements.define("x-scroll-parallax",bX());return null},CW=new $APP.K(null,"source-raw","source-raw",396083546),DW=new $APP.K(null,"easing-raw","easing-raw",440485546),HW=new $APP.K(null,"easing","easing",735372043);var aX=["direction","source","easing","disabled","label"];$APP.Qd(["x-scroll-parallax-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-scroll-parallax-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-scroll-parallax-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Il,$APP.W],null),$APP.Rl,!1],null)]);
20
+ var EW=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),FW=new $APP.S(null,new $APP.Q(null,1,["document",null],null),null),GW=new $APP.S(null,new $APP.Q(null,2,["none",null,"smooth",null],null),null);$APP.ha("baredom.exports.x_scroll_parallax.init",cX);export const init=cX;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var pB=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:b):b},rB=function(a){return typeof a==="string"&&$APP.J(qB,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},sB=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},tB=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},uB=function(a){var b=$APP.k(a,"__xScrollStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),
2
+ var vC=function(a,b){return typeof a==="string"?(a=parseFloat(a.trim()),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:b):b},xC=function(a){return typeof a==="string"&&$APP.I(wC,a.trim().toLowerCase())?a.trim().toLowerCase():"center"},yC=function(a,b,c){b*=c;c=b+c-b;return Math.max(0,Math.min(1,c<=0?0:(a-b)/c))},zC=function(a,b,c){b*=c;return b<=0?0:Math.max(0,Math.min(1,a/b))},AC=function(a){var b=$APP.k(a,"__xScrollStackRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),
3
3
  d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-stack-peek:6px;--x-scroll-stack-rotation:3deg;--x-scroll-stack-gap:1rem;}[part\x3dcontainer]{position:sticky;top:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:var(--x-scroll-stack-padding-top,2rem);gap:var(--x-scroll-stack-gap);}::slotted(*){flex-shrink:0;will-change:transform;transition:transform 60ms linear;}:host([disabled]){opacity:0.55;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
- d.setAttribute("part","container");d.setAttribute("role","region");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xScrollStackRefs=new $APP.R(null,3,[$APP.li,b,$APP.ij,d,$APP.Ni,e],null);return $APP.k(a,"__xScrollStackRefs")},yB=function(a){a=new $APP.R(null,5,[$APP.wl,a.getAttribute("peek"),vB,a.getAttribute("rotation"),wB,a.getAttribute("scroll-distance"),$APP.Ai,a.getAttribute("align"),$APP.Ii,$APP.n(a.hasAttribute("disabled"))?"":null],null);var b=$APP.M(a);a=$APP.D(b,$APP.wl);var c=$APP.D(b,
5
- vB),d=$APP.D(b,wB),e=$APP.D(b,$APP.Ai);b=$APP.D(b,$APP.Ii);return new $APP.R(null,5,[$APP.Fi,pB(a,6),$APP.tl,pB(c,3),xB,pB(d,150),$APP.Yi,rB(e),$APP.W,b!=null],null)},zB=function(a){a=uB(a);a=$APP.M(a);return $APP.D(a,$APP.Ni).assignedElements()},AB=function(a,b,c){b=new CustomEvent(b,{detail:$APP.ph(c),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},BB=function(a){var b=$APP.k(a,"__xScrollStackModel");b=$APP.n(b)?b:yB(a);var c=zB(a).length;b=window.innerHeight+c*xB.g(b);a.style.height=
6
- ""+$APP.T.g(b)+"px"},HB=function(a){var b=function(){var la=$APP.k(a,"__xScrollStackModel");return $APP.n(la)?la:yB(a)}(),c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=zB(a),e=d.length,g=$APP.k(a,"__xScrollStackNaturalOffsets"),h=$APP.k(a,"__xScrollStackChildHeights");if($APP.n(function(){var la=e>0;return la?$APP.n(g)?$APP.n(h)?$APP.C.i(g.length,e)&&$APP.C.i(h.length,e):h:g:la}())){var l=xB.g(b),m=$APP.Fi.g(b),p=$APP.tl.g(b),q=$APP.Yi.g(b),v=g[0],x=$APP.n(a.hasAttribute("align"))?function(){var la=
7
- (e-1)*m+h[e-1],za=$APP.M($APP.k(a,"__xScrollStackRefs"));za=$APP.D(za,$APP.ij).clientHeight;a:switch(q){case "top":la=32;break a;case "bottom":la=za-la-32;break a;default:la=(za-la)/2}return la-v}():0;b=tB(c,e,l);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,l)))),A=function(){var la=$APP.k(a,"__xScrollStackStackedCount");return $APP.n(la)?la:0}(),B=0;;)if(B<e){var E=d[B],H=sB(c,B,l),G=new $APP.R(null,3,[CB,B*m,DB,p*Math.sin(B*2.3),EB,2*Math.cos(B*3.7)],null),I=g[B];I=v+CB.g(G)-I;I=H*I+
8
- H*x;var Q=H*DB.g(G);G=H*EB.g(G);var Z=H>0?""+$APP.T.g(B):"";E.style.transform=H===0?"":"translate("+$APP.T.g(G.toFixed(2))+"px,"+$APP.T.g(I.toFixed(2))+"px) rotate("+$APP.T.g(Q.toFixed(3))+"deg)";E.style.zIndex=Z;B+=1}else break;$APP.N(y,A)&&(a.__xScrollStackStackedCount=y,AB(a,"x-scroll-stack-change",new $APP.R(null,3,[FB,y,GB,e,$APP.ul,b],null)));c=$APP.k(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,AB(a,"x-scroll-stack-progress",new $APP.R(null,3,[$APP.ul,
9
- b,FB,y,GB,e],null))}a.__xScrollStackRAF=null},IB=function(a){a=$APP.k(a,"__xScrollStackModel");return $APP.n(a)?$APP.W.g(a):a},JB=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStackVisible"),$APP.n(b)?$APP.r(IB(a)):b):b}())?$APP.n($APP.k(a,"__xScrollStackRAF"))?null:$APP.ia(a,"__xScrollStackRAF",requestAnimationFrame(function(){return HB(a)})):null},KB=function(a){a=$APP.k(a,"__xScrollStackHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):
10
- a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},LB=function(a){a=$APP.k(a,"__xScrollStackHandlers");if($APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a))window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1;else return null},MB=function(a){var b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);return $APP.ia(a,"__xScrollStackCacheRAF",requestAnimationFrame(function(){a.__xScrollStackCacheRAF=
11
- null;if($APP.n(a.isConnected)){var c=zB(a),d=c.length;if(d>0){var e=$APP.M($APP.k(a,"__xScrollStackRefs")),g=$APP.D(e,$APP.ij);e=Array(d);for(var h=Array(d),l=0;;)if(l<d){var m=c[l];m.style.transform="";m.style.zIndex="";l+=1}else break;g.offsetHeight;g=g.getBoundingClientRect();for(l=0;;)if(l<d)m=c[l].getBoundingClientRect(),e[l]=m.top-g.top,h[l]=m.height,l+=1;else break;a.__xScrollStackNaturalOffsets=e;a.__xScrollStackChildHeights=h}return HB(a)}return null}))},NB=function(a){var b=$APP.k(a,"__xScrollStackIO");
12
- $APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.n(c)?$APP.n(IB(a))?c=null:(KB(a),c=MB(a)):c=LB(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},OB=function(a){a=zB(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.style.transform="";d.style.zIndex="";c+=1}else break},PB=function(a){function b(){BB(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?MB(a):null}function c(){BB(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?
13
- MB(a):null}var d=uB(a);d=$APP.M(d);$APP.D(d,$APP.Ni).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ia(a,"__xScrollStackHandlers",{scroll:function(){return JB(a)},slot:c,resize:b,scrollAttached:!1})},QB=function(a){var b=$APP.k(a,"__xScrollStackHandlers");if($APP.n(b)){LB(a);var c=$APP.k(a,"__xScrollStackRefs");if($APP.n(c)){c=$APP.Ni.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
14
- b)}b=$APP.k(a,"__xScrollStackRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=null);b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},RB=function(a){var b=yB(a);if($APP.N($APP.k(a,"__xScrollStackModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.W);a.__xScrollStackModel=b;$APP.n(c)?(OB(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,LB(a)):$APP.n($APP.k(a,"__xScrollStackVisible"))&&(KB(a),MB(a))}},
15
- SB=function(a){Object.defineProperty(a,"peek",{get:function(){return pB(this.getAttribute("peek"),6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.T.g(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return pB(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.T.g(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",
16
- {get:function(){return pB(this.getAttribute("scroll-distance"),150)},set:function(b){return b!=null?this.setAttribute("scroll-distance",""+$APP.T.g(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return rB(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
17
- set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"stackedCount",{get:function(){var b=$APP.k(this,"__xScrollStackStackedCount");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollStackLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"refresh",{value:function(){BB(this);return $APP.n($APP.k(this,
18
- "__xScrollStackVisible"))?MB(this):null},enumerable:!0,configurable:!0})},UB=function(){var a=class extends HTMLElement{};a.observedAttributes=TB;a.prototype.connectedCallback=function(){uB(this);QB(this);PB(this);NB(this);RB(this);BB(this);return null};a.prototype.disconnectedCallback=function(){OB(this);QB(this);var b=$APP.k(this,"__xScrollStackIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStackIO=null);this.__xScrollStackVisible=!1;this.__xScrollStackStackedCount=0;return this.__xScrollStackChildHeights=
19
- this.__xScrollStackNaturalOffsets=this.__xScrollStackLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(RB(this),BB(this),$APP.n($APP.k(this,"__xScrollStackVisible"))&&MB(this));return null};SB(a.prototype);return a},VB=function(){$APP.n(customElements.get("x-scroll-stack"))||customElements.define("x-scroll-stack",UB());return null},DB=new $APP.K(null,"stack-rot","stack-rot",-949440704),GB=new $APP.K(null,"totalCount","totalCount",2101470328),wB=new $APP.K(null,"scroll-distance-raw",
20
- "scroll-distance-raw",1537519796),EB=new $APP.K(null,"stack-x","stack-x",-1557848736),CB=new $APP.K(null,"stack-y","stack-y",146748620),vB=new $APP.K(null,"rotation-raw","rotation-raw",318004495),FB=new $APP.K(null,"stackedCount","stackedCount",137366007),xB=new $APP.K(null,"scroll-distance","scroll-distance",-544947824);var TB=["peek","rotation","scroll-distance","align","disabled"];$APP.Pd(["x-scroll-stack-change",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,3,[FB,$APP.V,GB,$APP.V,$APP.ul,$APP.V],null),$APP.Dl,!1],null),"x-scroll-stack-progress",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,3,[$APP.ul,$APP.V,FB,$APP.V,GB,$APP.V],null),$APP.Dl,!1],null)]);var qB=new $APP.S(null,new $APP.R(null,3,["top",null,"center",null,"bottom",null],null),null);$APP.fa("baredom.exports.x_scroll_stack.init",VB);export const init=VB;
4
+ d.setAttribute("part","container");d.setAttribute("role","region");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xScrollStackRefs=new $APP.Q(null,3,[$APP.yi,b,$APP.xj,d,$APP.bj,e],null);return $APP.k(a,"__xScrollStackRefs")},EC=function(a){a=new $APP.Q(null,5,[$APP.Kl,a.getAttribute("peek"),BC,a.getAttribute("rotation"),CC,a.getAttribute("scroll-distance"),$APP.Oi,a.getAttribute("align"),$APP.Wi,$APP.n(a.hasAttribute("disabled"))?"":null],null);var b=$APP.M(a);a=$APP.D(b,$APP.Kl);var c=$APP.D(b,
5
+ BC),d=$APP.D(b,CC),e=$APP.D(b,$APP.Oi);b=$APP.D(b,$APP.Wi);return new $APP.Q(null,5,[$APP.Ti,vC(a,6),$APP.Hl,vC(c,3),DC,vC(d,150),$APP.lj,xC(e),$APP.X,b!=null],null)},FC=function(a){a=AC(a);a=$APP.M(a);return $APP.D(a,$APP.bj).assignedElements()},GC=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Dh(c),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},HC=function(a){var b=$APP.k(a,"__xScrollStackModel");b=$APP.n(b)?b:EC(a);var c=FC(a).length;b=window.innerHeight+c*DC.g(b);a.style.height=
6
+ ""+$APP.T.g(b)+"px"},NC=function(a){var b=function(){var oa=$APP.k(a,"__xScrollStackModel");return $APP.n(oa)?oa:EC(a)}(),c=a.getBoundingClientRect();c=Math.max(0,-c.top);var d=FC(a),e=d.length,g=$APP.k(a,"__xScrollStackNaturalOffsets"),h=$APP.k(a,"__xScrollStackChildHeights");if($APP.n(function(){var oa=e>0;return oa?$APP.n(g)?$APP.n(h)?$APP.C.i(g.length,e)&&$APP.C.i(h.length,e):h:g:oa}())){var l=DC.g(b),m=$APP.Ti.g(b),p=$APP.Hl.g(b),q=$APP.lj.g(b),v=g[0],x=$APP.n(a.hasAttribute("align"))?function(){var oa=
7
+ (e-1)*m+h[e-1],Aa=$APP.M($APP.k(a,"__xScrollStackRefs"));Aa=$APP.D(Aa,$APP.xj).clientHeight;a:switch(q){case "top":oa=32;break a;case "bottom":oa=Aa-oa-32;break a;default:oa=(Aa-oa)/2}return oa-v}():0;b=zC(c,e,l);for(var y=Math.max(0,Math.min(e,Math.floor(c/Math.max(1,l)))),A=function(){var oa=$APP.k(a,"__xScrollStackStackedCount");return $APP.n(oa)?oa:0}(),B=0;;)if(B<e){var E=d[B],H=yC(c,B,l),G=new $APP.Q(null,3,[IC,B*m,JC,p*Math.sin(B*2.3),KC,2*Math.cos(B*3.7)],null),J=g[B];J=v+IC.g(G)-J;J=H*J+
8
+ H*x;var R=H*JC.g(G);G=H*KC.g(G);var aa=H>0?""+$APP.T.g(B):"";E.style.transform=H===0?"":"translate("+$APP.T.g(G.toFixed(2))+"px,"+$APP.T.g(J.toFixed(2))+"px) rotate("+$APP.T.g(R.toFixed(3))+"deg)";E.style.zIndex=aa;B+=1}else break;$APP.N(y,A)&&(a.__xScrollStackStackedCount=y,GC(a,"x-scroll-stack-change",new $APP.Q(null,3,[LC,y,MC,e,$APP.Il,b],null)));c=$APP.k(a,"__xScrollStackLastProg");if(c==null||Math.abs(b-c)>.001)a.__xScrollStackLastProg=b,GC(a,"x-scroll-stack-progress",new $APP.Q(null,3,[$APP.Il,
9
+ b,LC,y,MC,e],null))}a.__xScrollStackRAF=null},OC=function(a){a=$APP.k(a,"__xScrollStackModel");return $APP.n(a)?$APP.X.g(a):a},PC=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStackVisible"),$APP.n(b)?$APP.r(OC(a)):b):b}())?$APP.n($APP.k(a,"__xScrollStackRAF"))?null:$APP.ja(a,"__xScrollStackRAF",requestAnimationFrame(function(){return NC(a)})):null},QC=function(a){a=$APP.k(a,"__xScrollStackHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):
10
+ a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},RC=function(a){a=$APP.k(a,"__xScrollStackHandlers");if($APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a))window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1;else return null},SC=function(a){var b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);return $APP.ja(a,"__xScrollStackCacheRAF",requestAnimationFrame(function(){a.__xScrollStackCacheRAF=
11
+ null;if($APP.n(a.isConnected)){var c=FC(a),d=c.length;if(d>0){var e=$APP.M($APP.k(a,"__xScrollStackRefs")),g=$APP.D(e,$APP.xj);e=Array(d);for(var h=Array(d),l=0;;)if(l<d){var m=c[l];m.style.transform="";m.style.zIndex="";l+=1}else break;g.offsetHeight;g=g.getBoundingClientRect();for(l=0;;)if(l<d)m=c[l].getBoundingClientRect(),e[l]=m.top-g.top,h[l]=m.height,l+=1;else break;a.__xScrollStackNaturalOffsets=e;a.__xScrollStackChildHeights=h}return NC(a)}return null}))},TC=function(a){var b=$APP.k(a,"__xScrollStackIO");
12
+ $APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xScrollStackVisible=c;$APP.n(c)?$APP.n(OC(a))?c=null:(QC(a),c=SC(a)):c=RC(a);return c},{threshold:[0]});b.observe(a);a.__xScrollStackIO=b},UC=function(a){a=FC(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];d.style.transform="";d.style.zIndex="";c+=1}else break},VC=function(a){function b(){HC(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?SC(a):null}function c(){HC(a);return $APP.n($APP.k(a,"__xScrollStackVisible"))?
13
+ SC(a):null}var d=AC(a);d=$APP.M(d);$APP.D(d,$APP.bj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStackHandlers",{scroll:function(){return PC(a)},slot:c,resize:b,scrollAttached:!1})},WC=function(a){var b=$APP.k(a,"__xScrollStackHandlers");if($APP.n(b)){RC(a);var c=$APP.k(a,"__xScrollStackRefs");if($APP.n(c)){c=$APP.bj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
14
+ b)}b=$APP.k(a,"__xScrollStackRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackRAF=null);b=$APP.k(a,"__xScrollStackCacheRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStackCacheRAF=null);a.__xScrollStackHandlers=null},XC=function(a){var b=EC(a);if($APP.N($APP.k(a,"__xScrollStackModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.X);a.__xScrollStackModel=b;$APP.n(c)?(UC(a),a.__xScrollStackStackedCount=0,a.__xScrollStackLastProg=null,RC(a)):$APP.n($APP.k(a,"__xScrollStackVisible"))&&(QC(a),SC(a))}},
15
+ YC=function(a){Object.defineProperty(a,"peek",{get:function(){return vC(this.getAttribute("peek"),6)},set:function(b){return b!=null?this.setAttribute("peek",""+$APP.T.g(b)):this.removeAttribute("peek")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rotation",{get:function(){return vC(this.getAttribute("rotation"),3)},set:function(b){return b!=null?this.setAttribute("rotation",""+$APP.T.g(b)):this.removeAttribute("rotation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scrollDistance",
16
+ {get:function(){return vC(this.getAttribute("scroll-distance"),150)},set:function(b){return b!=null?this.setAttribute("scroll-distance",""+$APP.T.g(b)):this.removeAttribute("scroll-distance")},enumerable:!0,configurable:!0});Object.defineProperty(a,"align",{get:function(){return xC(this.getAttribute("align"))},set:function(b){return b!=null?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
17
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"stackedCount",{get:function(){var b=$APP.k(this,"__xScrollStackStackedCount");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.k(this,"__xScrollStackLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"refresh",{value:function(){HC(this);return $APP.n($APP.k(this,
18
+ "__xScrollStackVisible"))?SC(this):null},enumerable:!0,configurable:!0})},$C=function(){var a=class extends HTMLElement{};a.observedAttributes=ZC;a.prototype.connectedCallback=function(){AC(this);WC(this);VC(this);TC(this);XC(this);HC(this);return null};a.prototype.disconnectedCallback=function(){UC(this);WC(this);var b=$APP.k(this,"__xScrollStackIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStackIO=null);this.__xScrollStackVisible=!1;this.__xScrollStackStackedCount=0;return this.__xScrollStackChildHeights=
19
+ this.__xScrollStackNaturalOffsets=this.__xScrollStackLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(XC(this),HC(this),$APP.n($APP.k(this,"__xScrollStackVisible"))&&SC(this));return null};YC(a.prototype);return a},aD=function(){$APP.n(customElements.get("x-scroll-stack"))||customElements.define("x-scroll-stack",$C());return null},JC=new $APP.K(null,"stack-rot","stack-rot",-949440704),MC=new $APP.K(null,"totalCount","totalCount",2101470328),CC=new $APP.K(null,"scroll-distance-raw",
20
+ "scroll-distance-raw",1537519796),KC=new $APP.K(null,"stack-x","stack-x",-1557848736),IC=new $APP.K(null,"stack-y","stack-y",146748620),BC=new $APP.K(null,"rotation-raw","rotation-raw",318004495),LC=new $APP.K(null,"stackedCount","stackedCount",137366007),DC=new $APP.K(null,"scroll-distance","scroll-distance",-544947824);var ZC=["peek","rotation","scroll-distance","align","disabled"];$APP.Qd(["x-scroll-stack-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[LC,$APP.W,MC,$APP.W,$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-scroll-stack-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Il,$APP.W,LC,$APP.W,MC,$APP.W],null),$APP.Rl,!1],null)]);var wC=new $APP.S(null,new $APP.Q(null,3,["top",null,"center",null,"bottom",null],null),null);$APP.ha("baredom.exports.x_scroll_stack.init",aD);export const init=aD;
@@ -1,37 +1,37 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var m1=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.$g.i(0,$APP.ah.i(1,a))):.5},n1=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.$g.i(.1,$APP.ah.i(.9,a))):.5},o1=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.$g.i(1,$APP.ah.i(1E3,a))):50},p1=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,g=-1;;){if(d>=c)return e>=0?e:g;var h=$APP.oc(a,d),l=$APP.M(h);h=$APP.D(l,
3
- $APP.$h);l=$APP.D(l,$APP.kk);e=h<=b&&l>b?d:e;g=h<=b?d:g;d+=1}},r1=function(a){var b=$APP.k(a,"__xScrollStoryRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("slot"),m=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:300ms;--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100dvh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
- d.setAttribute("part","container");d.setAttribute("role","region");e.setAttribute("part","media");h.setAttribute("name","media");var p=document.createElement("div");p.setAttribute("part","indicator");e.appendChild(p);e.appendChild(h);g.setAttribute("part","steps");g.appendChild(l);d.appendChild(e);d.appendChild(g);m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);a.__xScrollStoryRefs=new $APP.R(null,
5
- 6,[$APP.li,b,$APP.ij,d,q1,e,$APP.Xl,g,$APP.Ni,l,$APP.ji,m],null);return $APP.k(a,"__xScrollStoryRefs")},v1=function(a){a=$APP.xf([$APP.Yh,$APP.wj,$APP.zl,$APP.Dh,$APP.Hk,$APP.ui,$APP.Ii,$APP.xl,s1],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);
6
- var b=$APP.M(a);a=$APP.D(b,$APP.Ii);var c=$APP.D(b,$APP.xl),d=$APP.D(b,s1),e=$APP.D(b,$APP.Yh),g=$APP.D(b,$APP.wj),h=$APP.D(b,$APP.zl),l=$APP.D(b,$APP.Dh),m=$APP.D(b,$APP.Hk);b=$APP.D(b,$APP.ui);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.J(t1,m)?m:"left";return $APP.xf([$APP.Rj,$APP.fi,$APP.ml,u1,$APP.U,$APP.ni,$APP.W,$APP.Aj,$APP.qi],[m,c!=null,m1(l),n1(d),$APP.n(e)?e:"",b!=null,a!=null,o1(g),h!=null])},w1=function(a){a=r1(a);a=$APP.M(a);return $APP.D(a,$APP.Ni).assignedElements()},
7
- x1=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},y1=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.N(a,"")?a:null},z1=function(a,b,c){b=new CustomEvent(b,{detail:$APP.ph(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},A1=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},B1=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.N(d,c)){d>=0&&d<b.length&&
8
- b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?a.setAttribute("data-active-index",""+$APP.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?y1(b[d]):null;b=c>=0&&c<b.length?y1(b[c]):null;z1(a,"x-scroll-story-step-change",new $APP.R(null,4,[$APP.Mh,c,$APP.Tk,b,$APP.Gj,d,$APP.wm,e],null));a=$APP.M($APP.k(a,"__xScrollStoryRefs"));a=$APP.D(a,$APP.ji);A1(a,"Step "+$APP.T.g(c+1)+" active")}},C1=function(a,
9
- b,c,d){var e=b.length;var g=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(g)?$APP.C.i(g.length,e):g)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(g)?l<g.length:g)?g[l]:!1,l+=1;else break;g=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.oc(c,h);l=$APP.M(l);var m=$APP.D(l,$APP.$h),p=$APP.D(l,$APP.kk),q=g[h];l=m<=d&&p>d;var v=y1(b[h]),x=m;m=p-m;m=m<=0?0:$APP.$g.i(0,$APP.ah.i(1,(d-x)/m));$APP.r(q)&&l?(g[h]=!0,z1(a,"x-scroll-story-step-enter",new $APP.R(null,3,[$APP.Mh,
10
- h,$APP.Tk,v,$APP.ul,m],null))):$APP.n($APP.n(q)?!l:q)&&(g[h]=!1,z1(a,"x-scroll-story-step-leave",new $APP.R(null,3,[$APP.Mh,h,$APP.Tk,v,$APP.ul,m],null)))}h+=1}else break},D1=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:v1(a)}();if(!$APP.n($APP.W.g(b))){var c=w1(a),d=c.length,e=window.innerHeight,g=e*$APP.ml.g(b),h=function(){for(var m=0,p=$APP.ee;;){if(m>=d)return p;var q=c[m].getBoundingClientRect();m+=1;p=$APP.kd.i(p,new $APP.R(null,2,[$APP.$h,q.top,$APP.kk,
11
- q.top+q.height],null))}}();b=p1(h,g);var l=$APP.M($APP.k(a,"__xScrollStoryRefs"));l=$APP.D(l,$APP.Xl).getBoundingClientRect();e=$APP.$g.i(0,$APP.ah.i(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");B1(a,c,b);C1(a,c,h,g);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,g=b>=0&&b<d?y1(c[b]):null,z1(a,"x-scroll-story-progress",new $APP.R(null,3,[$APP.ul,e,$APP.Tj,b,$APP.$k,g],null))}a.__xScrollStoryRAF=null},E1=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;
12
- return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?$APP.r($APP.k(a,"__xScrollStoryAutoplayPaused")):l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.qi.g(e);return $APP.n(l)?$APP.r($APP.W.g(e)):l}return e}())){var g=$APP.k(a,"__xScrollStoryAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Aj.g(e)*g);$APP.n(function(){var l=$APP.fi.g(e);return $APP.n(l)?window.scrollY-h<
13
- .5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.ia(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},F1=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");
14
- return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?y1(d[c]):null;return z1(a,"x-scroll-story-autoplay-pause",new $APP.R(null,3,[$APP.ul,b,$APP.Tj,c,$APP.$k,d],null))},G1=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.ia(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(E1(a)));
15
- var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?y1(d[c]):null;return z1(a,"x-scroll-story-autoplay-resume",new $APP.R(null,3,[$APP.ul,b,$APP.Tj,c,$APP.$k,d],null))}return null},H1=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&
16
- (a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},I1=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==
17
- null){var b=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.qi.g(b);return $APP.n(l)?(l=$APP.r($APP.W.g(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!x1():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return F1(a)},d=function(){return G1(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?G1(a):null},g=function(l){return $APP.C.i(l.code,"Space")?(l.preventDefault(),
18
- F1(a)):null},h=function(l){return $APP.C.i(l.code,"Space")?G1(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",g);a.addEventListener("keyup",h);$APP.ia(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:g,keyup:h});$APP.ia(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(E1(a)))}}return null},J1=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.W.g(a):
19
- a},K1=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.r(J1(a))&&!x1():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.ia(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return D1(a)})):null},L1=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},M1=function(a){a=$APP.k(a,
20
- "__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},N1=function(a,b){b=b[0].isIntersecting;var c=$APP.M($APP.k(a,"__xScrollStoryRefs"));c=$APP.D(c,$APP.ji);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(J1(a)))return null;L1(a);D1(a);A1(c,"Story section entered viewport");z1(a,"x-scroll-story-enter",new $APP.R(null,1,[$APP.ul,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?
21
- d:0}()],null));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.qi.g(b):b)?I1(a):null}M1(a);H1(a);if($APP.n(J1(a)))return null;A1(c,"Story section left viewport");return z1(a,"x-scroll-story-leave",new $APP.R(null,1,[$APP.ul,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null))},O1=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,D1(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.k(a,
22
- "__xScrollStoryVisible"))?D1(a):null}var d=r1(a);d=$APP.M(d);$APP.D(d,$APP.Ni).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ia(a,"__xScrollStoryHandlers",{scroll:function(){return K1(a)},slot:c,resize:b,scrollAttached:!1})},P1=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){M1(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.Ni.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
23
- b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},Q1=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return N1(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},R1=function(a){a=w1(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},S1=function(a){var b=v1(a);if($APP.N($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.M(b),
24
- d=$APP.D(c,$APP.Rj),e=$APP.D(c,u1);b=$APP.D(c,$APP.W);var g=$APP.D(c,$APP.U),h=r1(a),l=$APP.M(h);h=$APP.D(l,$APP.ij);l=$APP.D(l,q1);a.setAttribute("data-layout",d);$APP.C.i(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.T.g(e*100)+"%)";$APP.t(g)?h.setAttribute("aria-label",g):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(R1(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,M1(a),H1(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&
25
- (L1(a),D1(a));c=$APP.qi.g(c);b=$APP.n(c)?(b=$APP.r(b))?$APP.k(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?I1(a):H1(a)}},T1=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.T.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return m1(this.getAttribute("threshold"))},set:function(b){return b!=
26
- null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return n1(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.T.g(b)):this.removeAttribute("split")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},
2
+ var C2=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.nh.i(0,$APP.oh.i(1,a))):.5},D2=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?.5:$APP.nh.i(.1,$APP.oh.i(.9,a))):.5},E2=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.n(isNaN(a))?50:$APP.nh.i(1,$APP.oh.i(1E3,a))):50},F2=function(a,b){var c=$APP.z(a);if(c===0)return-1;for(var d=0,e=-1,g=-1;;){if(d>=c)return e>=0?e:g;var h=$APP.pc(a,d),l=$APP.M(h);h=$APP.D(l,
3
+ $APP.mi);l=$APP.D(l,$APP.xk);e=h<=b&&l>b?d:e;g=h<=b?d:g;d+=1}},H2=function(a){var b=$APP.k(a,"__xScrollStoryRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("slot"),l=document.createElement("slot"),m=document.createElement("div");c.textContent=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:300ms;--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100dvh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:3px;}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";
4
+ d.setAttribute("part","container");d.setAttribute("role","region");e.setAttribute("part","media");h.setAttribute("name","media");var p=document.createElement("div");p.setAttribute("part","indicator");e.appendChild(p);e.appendChild(h);g.setAttribute("part","steps");g.appendChild(l);d.appendChild(e);d.appendChild(g);m.setAttribute("part","live");m.setAttribute("aria-live","polite");m.setAttribute("aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(m);a.__xScrollStoryRefs=new $APP.Q(null,
5
+ 6,[$APP.yi,b,$APP.xj,d,G2,e,$APP.km,g,$APP.bj,l,$APP.wi,m],null);return $APP.k(a,"__xScrollStoryRefs")},L2=function(a){a=$APP.zf([$APP.ki,$APP.Oj,$APP.Nl,$APP.Vh,$APP.Uk,$APP.Ii,$APP.Wi,$APP.Ll,I2],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.n(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.n(a.hasAttribute("autoplay-indicator"))?"":null,$APP.n(a.hasAttribute("disabled"))?"":null,$APP.n(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);
6
+ var b=$APP.M(a);a=$APP.D(b,$APP.Wi);var c=$APP.D(b,$APP.Ll),d=$APP.D(b,I2),e=$APP.D(b,$APP.ki),g=$APP.D(b,$APP.Oj),h=$APP.D(b,$APP.Nl),l=$APP.D(b,$APP.Vh),m=$APP.D(b,$APP.Uk);b=$APP.D(b,$APP.Ii);m=typeof m==="string"?m.trim().toLowerCase():null;m=$APP.I(J2,m)?m:"left";return $APP.zf([$APP.fk,$APP.si,$APP.Al,K2,$APP.U,$APP.Bi,$APP.X,$APP.Pj,$APP.Ei],[m,c!=null,C2(l),D2(d),$APP.n(e)?e:"",b!=null,a!=null,E2(g),h!=null])},M2=function(a){a=H2(a);a=$APP.M(a);return $APP.D(a,$APP.bj).assignedElements()},
7
+ N2=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},O2=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.N(a,"")?a:null},P2=function(a,b,c){b=new CustomEvent(b,{detail:$APP.Dh(c),bubbles:!0,composed:!0,cancelable:!1});return a.dispatchEvent(b)},Q2=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},R2=function(a,b,c){var d=$APP.k(a,"__xScrollStoryActiveIndex");d=$APP.n(d)?d:-1;if($APP.N(d,c)){d>=0&&d<b.length&&
8
+ b[d].removeAttribute("data-active");c>=0&&c<b.length&&b[c].setAttribute("data-active","");c>=0?a.setAttribute("data-active-index",""+$APP.T.g(c)):a.removeAttribute("data-active-index");a.__xScrollStoryActiveIndex=c;var e=d>=0&&d<b.length?O2(b[d]):null;b=c>=0&&c<b.length?O2(b[c]):null;P2(a,"x-scroll-story-step-change",new $APP.Q(null,4,[$APP.$h,c,$APP.fl,b,$APP.Tj,d,$APP.Km,e],null));a=$APP.M($APP.k(a,"__xScrollStoryRefs"));a=$APP.D(a,$APP.wi);Q2(a,"Step "+$APP.T.g(c+1)+" active")}},S2=function(a,
9
+ b,c,d){var e=b.length;var g=$APP.k(a,"__xScrollStoryStepStates");if(!$APP.n($APP.n(g)?$APP.C.i(g.length,e):g)){for(var h=Array(e),l=0;;)if(l<e)h[l]=$APP.n($APP.n(g)?l<g.length:g)?g[l]:!1,l+=1;else break;g=a.__xScrollStoryStepStates=h}for(h=0;;)if(h<e){if(h<$APP.z(c)){l=$APP.pc(c,h);l=$APP.M(l);var m=$APP.D(l,$APP.mi),p=$APP.D(l,$APP.xk),q=g[h];l=m<=d&&p>d;var v=O2(b[h]),x=m;m=p-m;m=m<=0?0:$APP.nh.i(0,$APP.oh.i(1,(d-x)/m));$APP.r(q)&&l?(g[h]=!0,P2(a,"x-scroll-story-step-enter",new $APP.Q(null,3,[$APP.$h,
10
+ h,$APP.fl,v,$APP.Il,m],null))):$APP.n($APP.n(q)?!l:q)&&(g[h]=!1,P2(a,"x-scroll-story-step-leave",new $APP.Q(null,3,[$APP.$h,h,$APP.fl,v,$APP.Il,m],null)))}h+=1}else break},T2=function(a){var b=function(){var m=$APP.k(a,"__xScrollStoryModel");return $APP.n(m)?m:L2(a)}();if(!$APP.n($APP.X.g(b))){var c=M2(a),d=c.length,e=window.innerHeight,g=e*$APP.Al.g(b),h=function(){for(var m=0,p=$APP.fe;;){if(m>=d)return p;var q=c[m].getBoundingClientRect();m+=1;p=$APP.ld.i(p,new $APP.Q(null,2,[$APP.mi,q.top,$APP.xk,
11
+ q.top+q.height],null))}}();b=F2(h,g);var l=$APP.M($APP.k(a,"__xScrollStoryRefs"));l=$APP.D(l,$APP.km).getBoundingClientRect();e=$APP.nh.i(0,$APP.oh.i(1,(e-l.top)/(e+l.height)));l=$APP.k(a,"__xScrollStoryLastProg");R2(a,c,b);S2(a,c,h,g);if(l==null||Math.abs(e-l)>.001)a.__xScrollStoryLastProg=e,g=b>=0&&b<d?O2(c[b]):null,P2(a,"x-scroll-story-progress",new $APP.Q(null,3,[$APP.Il,e,$APP.hk,b,$APP.ml,g],null))}a.__xScrollStoryRAF=null},U2=function(a){return function d(c){if($APP.n(function(){var l=a.isConnected;
12
+ return $APP.n(l)?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?$APP.r($APP.k(a,"__xScrollStoryAutoplayPaused")):l):l}())){var e=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(e)){var l=$APP.Ei.g(e);return $APP.n(l)?$APP.r($APP.X.g(e)):l}return e}())){var g=$APP.k(a,"__xScrollStoryAutoplayLast");g=$APP.n(g)?(c-g)/1E3:0;a.__xScrollStoryAutoplayLast=c;if(g>0){var h=window.scrollY;window.scrollBy(0,$APP.Pj.g(e)*g);$APP.n(function(){var l=$APP.si.g(e);return $APP.n(l)?window.scrollY-h<
13
+ .5:l}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),a.__xScrollStoryAutoplayLast=null)}return $APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(d))}}return null}},V2=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused")))return null;a.__xScrollStoryAutoplayPaused=!0;var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);a.setAttribute("data-autoplay-paused","");b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");
14
+ return $APP.n(e)?e:0}();var c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?O2(d[c]):null;return P2(a,"x-scroll-story-autoplay-pause",new $APP.Q(null,3,[$APP.Il,b,$APP.hk,c,$APP.ml,d],null))},W2=function(a){if($APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))){a.__xScrollStoryAutoplayPaused=!1;a.removeAttribute("data-autoplay-paused");a.__xScrollStoryAutoplayLast=null;$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(U2(a)));
15
+ var b=function(){var e=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(e)?e:0}(),c=function(){var e=$APP.k(a,"__xScrollStoryActiveIndex");return $APP.n(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?O2(d[c]):null;return P2(a,"x-scroll-story-autoplay-resume",new $APP.Q(null,3,[$APP.Il,b,$APP.hk,c,$APP.ml,d],null))}return null},X2=function(a){var b=$APP.k(a,"__xScrollStoryAutoplayRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryAutoplayRAF=null);b=$APP.k(a,"__xScrollStoryAutoplayHandlers");$APP.n(b)&&
16
+ (a.removeEventListener("pointerdown",$APP.k(b,"pointerdown")),a.removeEventListener("pointerup",$APP.k(b,"pointerup")),a.removeEventListener("pointerleave",$APP.k(b,"pointerleave")),a.removeEventListener("keydown",$APP.k(b,"keydown")),a.removeEventListener("keyup",$APP.k(b,"keyup")),a.__xScrollStoryAutoplayHandlers=null);a.removeAttribute("data-autoplay-paused");a.removeAttribute("tabindex");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null},Y2=function(a){if($APP.k(a,"__xScrollStoryAutoplayRAF")==
17
+ null){var b=$APP.k(a,"__xScrollStoryModel");if($APP.n(function(){if($APP.n(b)){var l=$APP.Ei.g(b);return $APP.n(l)?(l=$APP.r($APP.X.g(b)))?(l=$APP.k(a,"__xScrollStoryVisible"),$APP.n(l)?!N2():l):l:l}return b}())){a.setAttribute("tabindex","0");a.__xScrollStoryAutoplayPaused=!1;a.__xScrollStoryAutoplayLast=null;var c=function(){return V2(a)},d=function(){return W2(a)},e=function(){return $APP.n($APP.k(a,"__xScrollStoryAutoplayPaused"))?W2(a):null},g=function(l){return $APP.C.i(l.code,"Space")?(l.preventDefault(),
18
+ V2(a)):null},h=function(l){return $APP.C.i(l.code,"Space")?W2(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",g);a.addEventListener("keyup",h);$APP.ja(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:g,keyup:h});$APP.ja(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(U2(a)))}}return null},Z2=function(a){a=$APP.k(a,"__xScrollStoryModel");return $APP.n(a)?$APP.X.g(a):
19
+ a},$2=function(a){return $APP.n(function(){var b=a.isConnected;return $APP.n(b)?(b=$APP.k(a,"__xScrollStoryVisible"),$APP.n(b)?$APP.r(Z2(a))&&!N2():b):b}())?$APP.n($APP.k(a,"__xScrollStoryRAF"))?null:$APP.ja(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return T2(a)})):null},a3=function(a){a=$APP.k(a,"__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.r($APP.k(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.k(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},b3=function(a){a=$APP.k(a,
20
+ "__xScrollStoryHandlers");$APP.n($APP.n(a)?$APP.k(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.k(a,"scroll")),a.scrollAttached=!1)},c3=function(a,b){b=b[0].isIntersecting;var c=$APP.M($APP.k(a,"__xScrollStoryRefs"));c=$APP.D(c,$APP.wi);a.__xScrollStoryVisible=b;if($APP.n(b)){if($APP.n(Z2(a)))return null;a3(a);T2(a);Q2(c,"Story section entered viewport");P2(a,"x-scroll-story-enter",new $APP.Q(null,1,[$APP.Il,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?
21
+ d:0}()],null));b=$APP.k(a,"__xScrollStoryModel");return $APP.n($APP.n(b)?$APP.Ei.g(b):b)?Y2(a):null}b3(a);X2(a);if($APP.n(Z2(a)))return null;Q2(c,"Story section left viewport");return P2(a,"x-scroll-story-leave",new $APP.Q(null,1,[$APP.Il,function(){var d=$APP.k(a,"__xScrollStoryLastProg");return $APP.n(d)?d:0}()],null))},d3=function(a){function b(){return $APP.n($APP.k(a,"__xScrollStoryVisible"))?(a.__xScrollStoryStepStates=null,T2(a)):null}function c(){a.__xScrollStoryStepStates=null;return $APP.n($APP.k(a,
22
+ "__xScrollStoryVisible"))?T2(a):null}var d=H2(a);d=$APP.M(d);$APP.D(d,$APP.bj).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.ja(a,"__xScrollStoryHandlers",{scroll:function(){return $2(a)},slot:c,resize:b,scrollAttached:!1})},e3=function(a){var b=$APP.k(a,"__xScrollStoryHandlers");if($APP.n(b)){b3(a);var c=$APP.k(a,"__xScrollStoryRefs");if($APP.n(c)){c=$APP.bj.g(c);var d=$APP.k(b,"slot");$APP.n(d)&&c.removeEventListener("slotchange",d)}b=$APP.k(b,"resize");$APP.n(b)&&window.removeEventListener("resize",
23
+ b)}b=$APP.k(a,"__xScrollStoryRAF");$APP.n(b)&&(cancelAnimationFrame(b),a.__xScrollStoryRAF=null);a.__xScrollStoryHandlers=null},f3=function(a){var b=$APP.k(a,"__xScrollStoryIO");$APP.n(b)&&b.disconnect();b=new IntersectionObserver(function(c){return c3(a,c)},{threshold:[0]});b.observe(a);a.__xScrollStoryIO=b},g3=function(a){a=M2(a);for(var b=a.length,c=0;;)if(c<b)a[c].removeAttribute("data-active"),c+=1;else break},h3=function(a){var b=L2(a);if($APP.N($APP.k(a,"__xScrollStoryModel"),b)){var c=$APP.M(b),
24
+ d=$APP.D(c,$APP.fk),e=$APP.D(c,K2);b=$APP.D(c,$APP.X);var g=$APP.D(c,$APP.U),h=H2(a),l=$APP.M(h);h=$APP.D(l,$APP.xj);l=$APP.D(l,G2);a.setAttribute("data-layout",d);$APP.C.i(d,"top")?l.style.width="":l.style.width="var(--x-scroll-story-media-width,"+$APP.T.g(e*100)+"%)";$APP.t(g)?h.setAttribute("aria-label",g):h.removeAttribute("aria-label");a.__xScrollStoryModel=c;$APP.n(b)?(g3(a),a.__xScrollStoryActiveIndex=-1,a.__xScrollStoryStepStates=null,b3(a),X2(a)):$APP.n($APP.k(a,"__xScrollStoryVisible"))&&
25
+ (a3(a),T2(a));c=$APP.Ei.g(c);b=$APP.n(c)?(b=$APP.r(b))?$APP.k(a,"__xScrollStoryVisible"):b:c;$APP.n(b)?Y2(a):X2(a)}},i3=function(a){Object.defineProperty(a,"layout",{get:function(){var b=this.getAttribute("layout");return $APP.n(b)?b:"left"},set:function(b){return $APP.n(b)?this.setAttribute("layout",""+$APP.T.g(b)):this.removeAttribute("layout")},enumerable:!0,configurable:!0});Object.defineProperty(a,"threshold",{get:function(){return C2(this.getAttribute("threshold"))},set:function(b){return b!=
26
+ null?this.setAttribute("threshold",""+$APP.T.g(b)):this.removeAttribute("threshold")},enumerable:!0,configurable:!0});Object.defineProperty(a,"split",{get:function(){return D2(this.getAttribute("split"))},set:function(b){return b!=null?this.setAttribute("split",""+$APP.T.g(b)):this.removeAttribute("split")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},
27
27
  enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.k(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=
28
- $APP.k(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplay",{get:function(){return this.hasAttribute("autoplay")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplaySpeed",{get:function(){return o1(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},
28
+ $APP.k(this,"__xScrollStoryLastProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplay",{get:function(){return this.hasAttribute("autoplay")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplaySpeed",{get:function(){return E2(this.getAttribute("autoplay-speed"))},set:function(b){return b!=null?this.setAttribute("autoplay-speed",""+$APP.T.g(b)):this.removeAttribute("autoplay-speed")},
29
29
  enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayLoop",{get:function(){return this.hasAttribute("autoplay-loop")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay-loop",""):this.removeAttribute("autoplay-loop")},enumerable:!0,configurable:!0});Object.defineProperty(a,"autoplayIndicator",{get:function(){return this.hasAttribute("autoplay-indicator")},set:function(b){return $APP.n(b)?this.setAttribute("autoplay-indicator",""):this.removeAttribute("autoplay-indicator")},enumerable:!0,
30
- configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.F($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},V1=function(){var a=class extends HTMLElement{};a.observedAttributes=U1;a.prototype.connectedCallback=function(){r1(this);P1(this);O1(this);Q1(this);S1(this);return null};a.prototype.disconnectedCallback=function(){H1(this);R1(this);if($APP.n($APP.k(this,"__xScrollStoryVisible"))){var b=$APP.k(this,"__xScrollStoryLastProg");z1(this,
31
- "x-scroll-story-leave",new $APP.R(null,1,[$APP.ul,$APP.n(b)?b:0],null))}P1(this);b=$APP.k(this,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStoryIO=null);this.__xScrollStoryVisible=!1;this.__xScrollStoryActiveIndex=-1;return this.__xScrollStoryStepStates=this.__xScrollStoryLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&S1(this);return null};T1(a.prototype);return a},W1=function(){$APP.n(customElements.get("x-scroll-story"))||customElements.define("x-scroll-story",
32
- V1());return null},q1=new $APP.K(null,"media","media",-1066138403),s1=new $APP.K(null,"split-raw","split-raw",-455766786),u1=new $APP.K(null,"split","split",-599435118);var U1="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
33
- $APP.xf([$APP.Ok,$APP.rh,$APP.ok,$APP.qj,$APP.Rj,$APP.Tj,$APP.ml,$APP.cm,u1,$APP.U,$APP.hk,$APP.ul],[new $APP.R(null,1,[$APP.Y,$APP.Fj],null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,1,[$APP.Y,$APP.Fj],null),new $APP.R(null,1,[$APP.Y,$APP.Fj],null),new $APP.R(null,1,[$APP.Y,$APP.X],null),new $APP.R(null,2,[$APP.Y,$APP.V,$APP.Wj,!0],null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,2,[$APP.Y,$APP.Fj,$APP.Wj,!0],null),new $APP.R(null,1,[$APP.Y,$APP.V],null),new $APP.R(null,
34
- 1,[$APP.Y,$APP.X],null),new $APP.R(null,1,[$APP.Y,$APP.Fj],null),new $APP.R(null,2,[$APP.Y,$APP.V,$APP.Wj,!0],null)]);
35
- $APP.Pd(["x-scroll-story-step-change",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,4,[$APP.Mh,$APP.V,$APP.Tk,$APP.X,$APP.Gj,$APP.V,$APP.wm,$APP.X],null),$APP.Dl,!1],null),"x-scroll-story-step-enter",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,3,[$APP.Mh,$APP.V,$APP.Tk,$APP.X,$APP.ul,$APP.V],null),$APP.Dl,!1],null),"x-scroll-story-step-leave",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,3,[$APP.Mh,$APP.V,$APP.Tk,$APP.X,$APP.ul,$APP.V],null),$APP.Dl,!1],null),"x-scroll-story-progress",new $APP.R(null,2,
36
- [$APP.Cj,new $APP.R(null,3,[$APP.ul,$APP.V,$APP.Tj,$APP.V,$APP.$k,$APP.X],null),$APP.Dl,!1],null),"x-scroll-story-enter",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,1,[$APP.ul,$APP.V],null),$APP.Dl,!1],null),"x-scroll-story-leave",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,1,[$APP.ul,$APP.V],null),$APP.Dl,!1],null),"x-scroll-story-autoplay-pause",new $APP.R(null,2,[$APP.Cj,new $APP.R(null,3,[$APP.ul,$APP.V,$APP.Tj,$APP.V,$APP.$k,$APP.X],null),$APP.Dl,!1],null),"x-scroll-story-autoplay-resume",new $APP.R(null,
37
- 2,[$APP.Cj,new $APP.R(null,3,[$APP.ul,$APP.V,$APP.Tj,$APP.V,$APP.$k,$APP.X],null),$APP.Dl,!1],null)]);var t1=new $APP.S(null,new $APP.R(null,3,["right",null,"top",null,"left",null],null),null);$APP.fa("baredom.exports.x_scroll_story.init",W1);export const init=W1;
30
+ configurable:!0});Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.F($APP.k(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},k3=function(){var a=class extends HTMLElement{};a.observedAttributes=j3;a.prototype.connectedCallback=function(){H2(this);e3(this);d3(this);f3(this);h3(this);return null};a.prototype.disconnectedCallback=function(){X2(this);g3(this);if($APP.n($APP.k(this,"__xScrollStoryVisible"))){var b=$APP.k(this,"__xScrollStoryLastProg");P2(this,
31
+ "x-scroll-story-leave",new $APP.Q(null,1,[$APP.Il,$APP.n(b)?b:0],null))}e3(this);b=$APP.k(this,"__xScrollStoryIO");$APP.n(b)&&(b.disconnect(),this.__xScrollStoryIO=null);this.__xScrollStoryVisible=!1;this.__xScrollStoryActiveIndex=-1;return this.__xScrollStoryStepStates=this.__xScrollStoryLastProg=null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&h3(this);return null};i3(a.prototype);return a},l3=function(){$APP.n(customElements.get("x-scroll-story"))||customElements.define("x-scroll-story",
32
+ k3());return null},G2=new $APP.K(null,"media","media",-1066138403),I2=new $APP.K(null,"split-raw","split-raw",-455766786),K2=new $APP.K(null,"split","split",-599435118);var j3="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" ");
33
+ $APP.zf([$APP.al,$APP.Fh,$APP.Bk,$APP.Fj,$APP.fk,$APP.hk,$APP.Al,$APP.qm,K2,$APP.U,$APP.uk,$APP.Il],[new $APP.Q(null,1,[$APP.Z,$APP.Sj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Sj],null),new $APP.Q(null,1,[$APP.Z,$APP.Sj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.kk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.kk,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
34
+ 1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Sj],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.kk,!0],null)]);
35
+ $APP.Qd(["x-scroll-story-step-change",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.$h,$APP.W,$APP.fl,$APP.Y,$APP.Tj,$APP.W,$APP.Km,$APP.Y],null),$APP.Rl,!1],null),"x-scroll-story-step-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.$h,$APP.W,$APP.fl,$APP.Y,$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-scroll-story-step-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.$h,$APP.W,$APP.fl,$APP.Y,$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-scroll-story-progress",new $APP.Q(null,2,[$APP.V,
36
+ new $APP.Q(null,3,[$APP.Il,$APP.W,$APP.hk,$APP.W,$APP.ml,$APP.Y],null),$APP.Rl,!1],null),"x-scroll-story-enter",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-scroll-story-leave",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-scroll-story-autoplay-pause",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Il,$APP.W,$APP.hk,$APP.W,$APP.ml,$APP.Y],null),$APP.Rl,!1],null),"x-scroll-story-autoplay-resume",new $APP.Q(null,
37
+ 2,[$APP.V,new $APP.Q(null,3,[$APP.Il,$APP.W,$APP.hk,$APP.W,$APP.ml,$APP.Y],null),$APP.Rl,!1],null)]);var J2=new $APP.S(null,new $APP.Q(null,3,["right",null,"top",null,"left",null],null),null);$APP.ha("baredom.exports.x_scroll_story.init",l3);export const init=l3;