aptechka 0.69.1 → 0.69.3
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.
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.d.ts +6 -0
- package/lib/masonry-layout/index.js +28 -24
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +131 -131
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var v=t=>{throw TypeError(t)};var m=(t,s,e)=>s.has(t)||v("Cannot "+e);var o=(t,s,e)=>(m(t,s,"read from private field"),e?e.call(t):s.get(t)),r=(t,s,e)=>s.has(t)?v("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),y=(t,s,e,i)=>(m(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e),p=(t,s,e)=>(m(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../css-property/index.cjs"),E=require("../index-DekP7OZe.cjs"),w=require("../events-KVanG9sR.cjs"),S=require("../stylesheet-HWF2a3nr.cjs");var n,c,l,h,d,b;class L extends HTMLElement{constructor(){super();r(this,d);r(this,n,new g.CSSProperty(this,"--columns",2));r(this,c,[]);r(this,l,null);r(this,h,()=>{p(this,d,b).call(this)});const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[S.createStylesheet({":host":{display:"grid",gridTemplateColumns:"repeat(var(--columns), 1fr)"},".column":{display:"grid",width:"100%",gap:"var(--gap, 0rem)",gridAutoRows:"max-content"}})]}get columnElements(){return o(this,c)}connectedCallback(){y(this,l,new MutationObserver(o(this,h))),o(this,l).observe(this,{childList:!0}),o(this,n).subscribe(e=>{var i;this.shadowRoot.innerHTML="",y(this,c,[]);for(let a=0;a<e.current;a++){const u=document.createElement("div");u.classList.add("column"),u.innerHTML=`<slot name="col-${a}"></slot>`,o(this,c).push(u),(i=this.shadowRoot)==null||i.appendChild(u)}p(this,d,b).call(this)}),o(this,n).observe()}disconnectedCallback(){o(this,n).close(),o(this,l).disconnect(),this.classList.remove("distributed")}}n=new WeakMap,c=new WeakMap,l=new WeakMap,h=new WeakMap,d=new WeakSet,b=function(){[...this.children].forEach((i,a)=>{i.slot=`col-${a%o(this,n).current}`}),this.classList.add("distributed"),w.dispatchEvent(this,"masonryLayoutDistributed",{custom:!0})};E.isBrowser&&!customElements.get("e-masonry-layout")&&customElements.define("e-masonry-layout",L);exports.MasonryLayoutElement=L;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
export interface MasonryLayoutElementEvents {
|
|
2
|
+
masonryLayoutDistributed: CustomEvent;
|
|
3
|
+
}
|
|
1
4
|
export declare class MasonryLayoutElement extends HTMLElement {
|
|
2
5
|
#private;
|
|
3
6
|
constructor();
|
|
7
|
+
get columnElements(): HTMLElement[];
|
|
4
8
|
protected connectedCallback(): void;
|
|
5
9
|
protected disconnectedCallback(): void;
|
|
6
10
|
}
|
|
@@ -8,4 +12,6 @@ declare global {
|
|
|
8
12
|
interface HTMLElementTagNameMap {
|
|
9
13
|
'e-masonry-layout': MasonryLayoutElement;
|
|
10
14
|
}
|
|
15
|
+
interface HTMLElementEventMap extends MasonryLayoutElementEvents {
|
|
16
|
+
}
|
|
11
17
|
}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
var L = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var u = (t,
|
|
5
|
-
var o = (t,
|
|
4
|
+
var u = (t, e, s) => e.has(t) || L("Cannot " + s);
|
|
5
|
+
var o = (t, e, s) => (u(t, e, "read from private field"), s ? s.call(t) : e.get(t)), n = (t, e, s) => e.has(t) ? L("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), p = (t, e, s, i) => (u(t, e, "write to private field"), i ? i.call(t, s) : e.set(t, s), s), y = (t, e, s) => (u(t, e, "access private method"), s);
|
|
6
6
|
import { CSSProperty as f } from "../css-property/index.js";
|
|
7
7
|
import { i as v } from "../index-Bv9zgfdb.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import { d as E } from "../events-CsVF98U6.js";
|
|
9
|
+
import { c as g } from "../stylesheet-DpnWNVyD.js";
|
|
10
|
+
var r, c, a, h, d, b;
|
|
11
|
+
class w extends HTMLElement {
|
|
11
12
|
constructor() {
|
|
12
13
|
super();
|
|
13
14
|
n(this, d);
|
|
14
15
|
n(this, r, new f(this, "--columns", 2));
|
|
15
|
-
n(this,
|
|
16
|
-
n(this,
|
|
17
|
-
n(this,
|
|
18
|
-
|
|
16
|
+
n(this, c, []);
|
|
17
|
+
n(this, a, null);
|
|
18
|
+
n(this, h, () => {
|
|
19
|
+
y(this, d, b).call(this);
|
|
19
20
|
});
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const s = this.attachShadow({ mode: "open" });
|
|
22
|
+
s.adoptedStyleSheets = [
|
|
23
|
+
g({
|
|
23
24
|
":host": {
|
|
24
25
|
display: "grid",
|
|
25
26
|
gridTemplateColumns: "repeat(var(--columns), 1fr)"
|
|
@@ -33,29 +34,32 @@ class g extends HTMLElement {
|
|
|
33
34
|
})
|
|
34
35
|
];
|
|
35
36
|
}
|
|
37
|
+
get columnElements() {
|
|
38
|
+
return o(this, c);
|
|
39
|
+
}
|
|
36
40
|
connectedCallback() {
|
|
37
|
-
p(this,
|
|
41
|
+
p(this, a, new MutationObserver(o(this, h))), o(this, a).observe(this, {
|
|
38
42
|
childList: !0
|
|
39
|
-
}), o(this, r).subscribe((
|
|
43
|
+
}), o(this, r).subscribe((s) => {
|
|
40
44
|
var i;
|
|
41
|
-
this.shadowRoot.innerHTML = "", p(this,
|
|
42
|
-
for (let l = 0; l <
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
+
this.shadowRoot.innerHTML = "", p(this, c, []);
|
|
46
|
+
for (let l = 0; l < s.current; l++) {
|
|
47
|
+
const m = document.createElement("div");
|
|
48
|
+
m.classList.add("column"), m.innerHTML = `<slot name="col-${l}"></slot>`, o(this, c).push(m), (i = this.shadowRoot) == null || i.appendChild(m);
|
|
45
49
|
}
|
|
46
|
-
|
|
50
|
+
y(this, d, b).call(this);
|
|
47
51
|
}), o(this, r).observe();
|
|
48
52
|
}
|
|
49
53
|
disconnectedCallback() {
|
|
50
|
-
o(this, r).close(), o(this,
|
|
54
|
+
o(this, r).close(), o(this, a).disconnect(), this.classList.remove("distributed");
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
|
-
r = new WeakMap(),
|
|
57
|
+
r = new WeakMap(), c = new WeakMap(), a = new WeakMap(), h = new WeakMap(), d = new WeakSet(), b = function() {
|
|
54
58
|
[...this.children].forEach((i, l) => {
|
|
55
59
|
i.slot = `col-${l % o(this, r).current}`;
|
|
56
|
-
}), this.classList.add("distributed");
|
|
60
|
+
}), this.classList.add("distributed"), E(this, "masonryLayoutDistributed", { custom: !0 });
|
|
57
61
|
};
|
|
58
|
-
v && !customElements.get("e-masonry-layout") && customElements.define("e-masonry-layout",
|
|
62
|
+
v && !customElements.get("e-masonry-layout") && customElements.define("e-masonry-layout", w);
|
|
59
63
|
export {
|
|
60
|
-
|
|
64
|
+
w as MasonryLayoutElement
|
|
61
65
|
};
|
package/lib/scroll/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ui=Object.defineProperty;var qs=Object.getOwnPropertySymbols,ai=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,pi=Reflect.get;var $s=a=>{throw TypeError(a)};var Bs=(a,h,e)=>h in a?ui(a,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[h]=e,Hs=(a,h)=>{for(var e in h||(h={}))di.call(h,e)&&Bs(a,e,h[e]);if(qs)for(var e of qs(h))Si.call(h,e)&&Bs(a,e,h[e]);return a};var zs=(a,h,e)=>h.has(a)||$s("Cannot "+e);var t=(a,h,e)=>(zs(a,h,"read from private field"),e?e.call(a):h.get(a)),i=(a,h,e)=>h.has(a)?$s("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(a):h.set(a,e),r=(a,h,e,s)=>(zs(a,h,"write to private field"),s?s.call(a,e):h.set(a,e),e),o=(a,h,e)=>(zs(a,h,"access private method"),e);var _s=(a,h,e)=>pi(ai(a),e,h);var Ws=(a,h,e)=>new Promise((s,n)=>{var u=v=>{try{y(e.next(v))}catch(le){n(le)}},g=v=>{try{y(e.throw(v))}catch(le){n(le)}},y=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);y((e=e.apply(a,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("../Store-Cd1GlEmZ.cjs"),K=require("../index-DekP7OZe.cjs"),fi=require("../easings-GegIwET5.cjs"),bi=require("../element-yhcBhsho.cjs"),tt=require("../events-KVanG9sR.cjs"),ws=require("../function-MthRj-GJ.cjs"),et=require("../layout-Ctc2p3uz.cjs"),Ts=require("../math-GDWEqu7y.cjs"),Us=require("../number-ChAm68cm.cjs"),Gs=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Me=require("../order/index.cjs"),Zs=require("../Damped-z9Uaw2MJ.cjs"),mi=require("../Tweened-mvHucL4Y.cjs"),vs=require("../DragControls-CfE2oPAi.cjs"),pt=require("../window-resizer/index.cjs"),oe=require("../scroll-entries/index.cjs"),Ns=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),gi=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const hs=require("../element-resizer/index.cjs"),yi=require("../gestures-C7gbKx11.cjs"),Ci=require("../dom-JBOkFLTh.cjs");var p,Fe,E,os,ls,de,ft,qt,Se,pe,is;class vi{constructor(h,e,s){i(this,pe);i(this,p);i(this,Fe);i(this,E);i(this,os,0);i(this,ls,0);i(this,de,0);i(this,ft,0);i(this,qt,null);i(this,Se,0);r(this,p,h),r(this,Fe,e),r(this,E,s),oe.scrollEntries.register(t(this,p)),this.setIndex(t(this,Fe))}get element(){return t(this,p)}get index(){return t(this,Fe)}get size(){return t(this,de)}get width(){return t(this,os)}get height(){return t(this,ls)}get position(){return t(this,ft)}get transformPosition(){return t(this,Se)}destroy(){oe.scrollEntries.unregister(t(this,p)),this.unsetTransform()}unsetTransform(){t(this,p).style.transform="",this.setMark(null),this.setIndex(null),this.setCurrentIndex(null),this.setCurrentIndexArc(null),this.setCurrentIndexArcAbs(null),this.setMiddle(!1),this.setSize()}setSize(h){h?(t(this,p).style.setProperty("--size",h+"px"),t(this,E).axisCSSProperty.current==="x"?(t(this,p).style.width=h+"px",t(this,p).style.height=""):(t(this,p).style.height=h+"px",t(this,p).style.width="")):(t(this,p).style.width="",t(this,p).style.height="",t(this,p).style.removeProperty("--size"))}resize(){r(this,os,t(this,p).offsetWidth),r(this,ls,t(this,p).offsetHeight),r(this,de,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,ft,t(this,E).vertical?et.getCumulativeOffsetTop(t(this,p)):et.getCumulativeOffsetLeft(t(this,p))),r(this,ft,t(this,ft)-t(this,E).contentPosition)}transform(){const h=t(this,E).shiftSectionPositionCSSProperty.current;let e=h;const s=t(this,E).viewportSize*t(this,E).sectionDistanceScaleCSSProperty.current;t(this,E).loopCSSProperty.current&&t(this,ft)+t(this,de)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),oe.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,ft)-t(this,E).viewportSize-s,g=t(this,ft)+t(this,de)+s,y=Us.preciseNumber(Ts.clamp(n,u,g),3);r(this,Se,y*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,Se)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,Se)}px, 0px, 0px)`}setMark(h){t(this,qt)!==h&&(t(this,qt)&&t(this,p).classList.remove(t(this,qt)),h&&t(this,p).classList.add(h),r(this,qt,h),tt.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,qt)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,pe,is).call(this,"index",h)}setCurrentIndex(h){o(this,pe,is).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,pe,is).call(this,"current-index-arc",h)}setCurrentIndexArcAbs(h){o(this,pe,is).call(this,"current-index-arc-abs",h)}}p=new WeakMap,Fe=new WeakMap,E=new WeakMap,os=new WeakMap,ls=new WeakMap,de=new WeakMap,ft=new WeakMap,qt=new WeakMap,Se=new WeakMap,pe=new WeakSet,is=function(h,e){e!==null?(t(this,p).style.setProperty(`--${h}`,e.toString()),t(this,p).setAttribute(`data-${h}`,e.toString())):(t(this,p).style.removeProperty(`--${h}`),t(this,p).removeAttribute(`data-${h}`))};const Pi=Gs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content-wrapper":{width:"var(--content-wrapper-width, 100%)",height:"var(--content-wrapper-height, 100%)",overflow:"var(--overflow, initial)",borderRadius:"var(--border-radius, unset)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},":host(.hibernated) .content-wrapper":{display:"contents"},":host(.hibernated) .content":{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var S,fe,T,Bt,bt,mt,gt,st,$t,Ht,yt,_t,be,it,V,me,ge,ye,Ce,Te,ve,j,Pe,Wt,J,Nt,Ct,Ee,Ut,we,Gt,vt,Zt,f,Oe,W,d,cs,us,L,P,N,rt,Kt,nt,I,O,De,Pt,Et,wt,U,qe,jt,Jt,xe,ht,k,Be,xt,Le,$e,c,Vs,rs,Ie,Ps,Es,ks,Rs,M,as,Ks,He,ds,As,Is,ue,js,Ss,ns,_e;class xs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,fe,new l.CSSProperty(this,"--controls",!0));i(this,T,new l.CSSProperty(this,"--axis","y"));i(this,Bt,new l.CSSProperty(this,"--reverse",!1));i(this,bt,new l.CSSProperty(this,"--direction",0));i(this,mt,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,gt,new l.CSSProperty(this,"--split",!1));i(this,st,new l.CSSProperty(this,"--sectional",!1));i(this,$t,new l.CSSProperty(this,"--tween-easing",!1));i(this,Ht,new l.CSSProperty(this,"--tween-duration",!1));i(this,yt,new l.CSSProperty(this,"--auto-size",!1));i(this,_t,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,be,new l.CSSProperty(this,"--drag-inertion",1));i(this,it,new l.CSSProperty(this,"--sections-in-view",1));i(this,V,new l.CSSProperty(this,"--loop",!1));i(this,me,new l.CSSProperty(this,"--damping",20));i(this,ge,new l.CSSProperty(this,"--mass",0));i(this,ye,new l.CSSProperty(this,"--stiffness",0));i(this,Ce,new l.CSSProperty(this,"--mouse-drag",!1));i(this,Te,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,ve,new l.CSSProperty(this,"--start-section",0));i(this,j,new l.CSSProperty(this,"--autoplay",0));i(this,Pe,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,Wt,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,J,new l.CSSProperty(this,"--classes",!1));i(this,Nt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,Ct,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,Ee,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Ut,new l.CSSProperty(this,"--focus-delay",0));i(this,we,new l.CSSProperty(this,"--focus-duration",3e3));i(this,Gt,new l.CSSProperty(this,"--disabled",!1));i(this,vt,new l.CSSProperty(this,"--hibernate",!1));i(this,Zt,null);i(this,f,null);i(this,Oe,null);i(this,W,[]);i(this,d,[]);i(this,cs,0);i(this,us,0);i(this,L,0);i(this,P,0);i(this,N,0);i(this,rt,null);i(this,Kt,null);i(this,nt,null);i(this,I,null);i(this,O,new ce.Store(0));i(this,De,0);i(this,Pt,0);i(this,Et,!1);i(this,wt,!0);i(this,U,!0);i(this,qe);i(this,jt);i(this,Jt,new mi.Tweened);i(this,xe,!1);i(this,ht,null);i(this,k,!1);i(this,Be,null);i(this,xt,[]);i(this,Le,!1);i(this,$e);i(this,M,e=>{if(e&&t(this,Le)){r(this,Le,!1);return}this.resize()});i(this,as,()=>{if(!t(this,Et)||t(this,U)||t(this,wt))return;const e=this.currentScrollValue;if(r(this,De,Math.max(0,e-t(this,P))),t(this,d).length){for(let s=0;s<t(this,W).length;s++)t(this,W)[s].transform();t(this,O).current=o(this,c,ns).call(this)}else this.vertical?t(this,f).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;o(this,c,js).call(this),oe.scrollEntries.update(this,t(this,T).current,e)});i(this,He,(e,s)=>{t(this,fe).current&&(o(this,c,As).call(this,Math.sign(s)||1),t(this,ds).call(this,e,s))});i(this,ds,(e,s)=>{if(!t(this,jt)){if(t(this,bt).current){if(t(this,bt).current<0&&s>0)return;if(t(this,bt).current>0&&s<0)return}if(!t(this,j).current&&t(this,Ut).current&&(clearInterval(t(this,qe)),r(this,qe,setTimeout(()=>{const n=t(this,d)[o(this,c,ns).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,we).current,easing:fi.easeInOutExpo}})},t(this,Ut).current))),!(e.includes("drag")&&!gi.device.isTouch&&!t(this,Ce).current)){if(t(this,st).current&&e!=="drag"){const n=Math.sign(s);if(t(this,d).length){const u={tween:t(this,$t).current||t(this,Ht).current?{easing:t(this,$t).current||"easeInOutCubic",duration:t(this,Ht).current||500}:void 0};t(this,xe)?this.scrollToSection(o(this,c,ns).call(this,!0),u):this.shiftSections(n,u)}else t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,xe,e==="drag")}}});i(this,Ss,ws.debounce(()=>{const e=t(this,xt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,$e)),r(this,Le,!0),this.style.setProperty("--max-section-size",""),r(this,$e,setTimeout(()=>{r(this,Le,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,_e,()=>{r(this,k,!0),this.hibernatedCSSProperty.current||o(this,c,Rs).call(this),hs.elementResizer.subscribe(this,t(this,M)),pt.windowResizer.unsubscribe(t(this,_e))});if(K.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Pi];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,Zt,document.createElement("div")),t(this,Zt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Oe,document.createElement("slot")),t(this,f).appendChild(t(this,Oe)),t(this,Zt).appendChild(t(this,f)),e.appendChild(t(this,Zt)),r(this,Be,new MutationObserver(ws.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,fe)}get axisCSSProperty(){return t(this,T)}get reverseCSSProperty(){return t(this,Bt)}get directionCSSProperty(){return t(this,bt)}get pagesCSSProperty(){return t(this,mt)}get splitCSSProperty(){return t(this,gt)}get sectionalCSSProperty(){return t(this,st)}get easingCSSProperty(){return t(this,$t)}get durationCSSProperty(){return t(this,Ht)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,_t)}get dragInertionCSSProperty(){return t(this,be)}get sectionsInViewCSSProperty(){return t(this,it)}get loopCSSProperty(){return t(this,V)}get dampingCSSProperty(){return t(this,me)}get massCSSProperty(){return t(this,ge)}get stiffnessCSSProperty(){return t(this,ye)}get mouseDragCSSProperty(){return t(this,Ce)}get sectionDistanceScaleCSSProperty(){return t(this,Te)}get startSectionCSSProperty(){return t(this,ve)}get autoplayCSSProperty(){return t(this,j)}get autoplayPauseDurationCSSProperty(){return t(this,Pe)}get autoplayUserDirectionCSSProperty(){return t(this,Wt)}get classesCSSProperty(){return t(this,J)}get currentIndexStartOffsetCSSProperty(){return t(this,Nt)}get currentIndexEndOffsetCSSProperty(){return t(this,Ct)}get shiftSectionPositionCSSProperty(){return t(this,Ee)}get focusDelayCSSProperty(){return t(this,Ut)}get focusDurationCSSProperty(){return t(this,we)}get disabledCSSProperty(){return t(this,Gt)}get hibernatedCSSProperty(){return t(this,vt)}get currentScrollValue(){return o(this,c,Is).call(this,"current")}get targetScrollValue(){return o(this,c,Is).call(this,"target")}get contentWrapperElement(){return t(this,Zt)}get contentElement(){return t(this,f)}get sections(){return t(this,W)}get visibleSections(){return t(this,d)}get position(){return t(this,cs)}get contentPosition(){return t(this,us)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,N)}get counter(){return t(this,O)}get limit(){return Math.ceil(t(this,d).length-t(this,it).current)}get distance(){return t(this,Pt)}get loopDistance(){return t(this,V).current?t(this,Pt)+t(this,N):t(this,Pt)}get hasOverflow(){return t(this,Et)}get overscroll(){return t(this,De)}get scrollLine(){return t(this,ht)}get vertical(){return t(this,T).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,T).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,T).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,U)&&(t(this,V).current||t(this,gt).current||t(this,V).current||t(this,yt).current||t(this,st).current)&&o(this,c,rs).call(this)}onScroll(...e){return t(this,S).subscribe(...e)}offScroll(...e){t(this,S).unsubscribe(...e)}range(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress<u?0:this.currentProgress>g?1:(this.currentProgress-u)/(g-u)}curve(e,s,n=0){return Math.sin(this.range(e,s,n)*Math.PI)}visible(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress>=u&&this.currentProgress<=g}scrollToSection(e,s){if(!t(this,d).length||t(this,U))return;const n=t(this,O).current,u=o(this,c,Ks).call(this,e),g=t(this,d)[n],y=t(this,d)[u];if(g&&y){let v=0;const le=o(this,c,ns).call(this),Ae=t(this,d)[le];let ss=Ae?this.targetScrollValue-Ae.position:0;t(this,V).current?u===0&&n===t(this,d).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,N),t(this,xe)||(ss=0)):u===t(this,d).length-1&&n===0?v=y.position-(t(this,P)+t(this,L)+t(this,N)):v=y.position-g.position:v=y.position-g.position,this.shiftPosition(v-ss,s)}}shiftSections(e,s){t(this,d).length&&this.scrollToSection(t(this,O).current+e,s)}setPosition(e,s){t(this,U)||(o(this,c,As).call(this,Math.sign(e)||1),s!=null&&s.tween?(clearTimeout(t(this,jt)),t(this,Jt).set(t(this,S).current,{equalize:!0}),t(this,Jt).set(Math.min(e,this.distance),Hs({},s.tween)),r(this,jt,setTimeout(()=>{r(this,jt,void 0)},s.tween.duration||0))):t(this,S).set(e,{equalize:(s==null?void 0:s.behaviour)==="instant"}))}shiftPosition(e,s){this.setPosition(t(this,S).target+e,s)}resize(){if(t(this,vt).current)return;console.log("resize",t(this,vt).current),r(this,d,t(this,W).filter(n=>bi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,d).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,O).current;if(r(this,cs,this.vertical?et.getCumulativeOffsetTop(this):et.getCumulativeOffsetLeft(this)),r(this,us,this.vertical?et.getCumulativeOffsetTop(t(this,f)):et.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,yt).current&&t(this,d).length){const n=t(this,it).current,u=(t(this,L)-t(this,N)*(n-1))/n;t(this,d).forEach(g=>{g.setSize(u)})}else t(this,d).forEach(n=>{n.setSize()});if(t(this,d).forEach(n=>{n.resize()}),t(this,mt).current){r(this,P,t(this,L)*t(this,mt).current);const n=t(this,P)+t(this,L);this.vertical?(t(this,f).style.width=n+"px",t(this,f).style.height="100%"):(t(this,f).style.height=n+"px",t(this,f).style.width="100%")}else this.vertical?(t(this,f).style.width="100%",t(this,f).style.height="max-content",r(this,P,t(this,f).offsetHeight-t(this,L))):(t(this,f).style.width="max-content",t(this,f).style.height="100%",r(this,P,t(this,f).offsetWidth-t(this,L)));if(!t(this,V).current){const n=getComputedStyle(this),u=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,P,t(this,P)+u),t(this,S).max=t(this,P)}if(t(this,V).current&&t(this,d).length){const n=t(this,d)[t(this,d).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,Pt,n.position+n.size+g)}else r(this,Pt,t(this,P));if(t(this,st).current&&t(this,d).length){const n=t(this,d)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,Et,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,Et)),t(this,Et)?t(this,Gt).current||o(this,c,Es).call(this):o(this,c,Ps).call(this),t(this,Ss).call(this),tt.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){oe.scrollEntries.register(this),r(this,S,new Zs.Damped(0,{damping:.01,min:0,order:Me.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,rt,new vs.WheelControls({element:t(this,f)})),t(this,rt).changeEvent.subscribe(t(this,He)),r(this,Kt,new vs.KeyboardControls({element:this})),t(this,Kt).changeEvent.subscribe(t(this,He)),r(this,nt,new vs.DragControls({element:t(this,f),rootElement:this})),t(this,nt).changeEvent.subscribe(t(this,He)),r(this,I,new vs.AutoplayControls({culling:this})),t(this,I).changeEvent.subscribe(t(this,ds)),t(this,T).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,Bt).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,_t).subscribe(e=>{t(this,rt).axis=e.current?"max":t(this,T).current}),t(this,be).subscribe(e=>{t(this,nt).inertion=typeof e.current=="number"?e.current:1}),t(this,mt).subscribe(()=>{t(this,k)&&t(this,M).call(this)}),t(this,gt).subscribe(({current:e})=>{t(this,k)&&(e?o(this,c,rs).call(this):o(this,c,Ie).call(this))}),t(this,st).subscribe(e=>{t(this,rt).debounce=e.current,t(this,nt).swipe=e.current,t(this,I).interval=e.current,t(this,k)&&(e.current&&!e.previous&&!t(this,d).length?o(this,c,rs).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,yt).subscribe(e=>{t(this,k)&&(t(this,M).call(this),e.current&&!e.previous&&!t(this,d).length?o(this,c,rs).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,it).subscribe(e=>{t(this,k)&&(t(this,M).call(this),o(this,c,ue).call(this))}),t(this,V).subscribe(e=>{e.current?(t(this,k)&&(t(this,d).length||(t(this,gt).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,De,0),t(this,S).max=t(this,P),t(this,S).min=0)}),t(this,me).subscribe(e=>{t(this,S).damping=e.current}),t(this,ge).subscribe(e=>{t(this,S).mass=e.current}),t(this,ye).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,j).subscribe(e=>{t(this,I).speed=e.current,!t(this,wt)&&e.current&&!e.previous?t(this,I).connect():!e.current&&e.previous&&t(this,I).disconnect()}),t(this,Wt).subscribe(e=>{e.current||(t(this,I).direction=1)}),t(this,J).subscribe(e=>{t(this,k)&&o(this,c,ue).call(this)}),t(this,Nt).subscribe(e=>{t(this,k)&&t(this,J).current&&o(this,c,ue).call(this)}),t(this,Ct).subscribe(e=>{t(this,k)&&t(this,J).current&&o(this,c,ue).call(this)}),t(this,Ee).subscribe(e=>{t(this,k)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,O).subscribe(e=>{t(this,U)||(t(this,d).length&&o(this,c,ue).call(this),this.style.setProperty("--counter",e.current+""))}),t(this,Jt).subscribe(e=>{t(this,Jt).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Gt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,Ps).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,Es).call(this))}),t(this,vt).subscribe(e=>{console.log("hibernatedCSSProperty",e.current),e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,ks).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Rs).call(this))}),t(this,fe).observe(),t(this,T).observe(),t(this,Bt).observe(),t(this,bt).observe(),t(this,mt).observe(),t(this,gt).observe(),t(this,st).observe(),t(this,$t).observe(),t(this,Ht).observe(),t(this,yt).observe(),t(this,_t).observe(),t(this,be).observe(),t(this,it).observe(),t(this,V).observe(),t(this,me).observe(),t(this,ge).observe(),t(this,ye).observe(),t(this,Ce).observe(),t(this,Te).observe(),t(this,ve).observe(),t(this,j).observe(),t(this,j).observe(),t(this,Pe).observe(),t(this,Wt).observe(),t(this,J).observe(),t(this,Nt).observe(),t(this,Ct).observe(),t(this,Ee).observe(),t(this,Ut).observe(),t(this,we).observe(),t(this,Gt).observe(),t(this,vt).observe(),pt.windowResizer.subscribe(t(this,_e),Me.RESIZE_ORDER.LAST),t(this,Be).observe(this,{childList:!0})}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,fe).unobserve(),t(this,T).unobserve(),t(this,Bt).unobserve(),t(this,bt).unobserve(),t(this,mt).unobserve(),t(this,gt).unobserve(),t(this,st).unobserve(),t(this,$t).unobserve(),t(this,Ht).unobserve(),t(this,yt).unobserve(),t(this,_t).unobserve(),t(this,be).unobserve(),t(this,it).unobserve(),t(this,V).unobserve(),t(this,me).unobserve(),t(this,ge).unobserve(),t(this,ye).unobserve(),t(this,Ce).unobserve(),t(this,Te).unobserve(),t(this,ve).unobserve(),t(this,j).unobserve(),t(this,Pe).unobserve(),t(this,Wt).unobserve(),t(this,J).unobserve(),t(this,Nt).unobserve(),t(this,Ct).unobserve(),t(this,Ee).unobserve(),t(this,Ut).unobserve(),t(this,we).unobserve(),t(this,Gt).unobserve(),t(this,vt).unobserve(),pt.windowResizer.unsubscribe(t(this,_e)),pt.windowResizer.unsubscribe(t(this,M)),hs.elementResizer.unsubscribe(t(this,M)),o(this,c,ks).call(this),t(this,Be).disconnect()}}S=new WeakMap,fe=new WeakMap,T=new WeakMap,Bt=new WeakMap,bt=new WeakMap,mt=new WeakMap,gt=new WeakMap,st=new WeakMap,$t=new WeakMap,Ht=new WeakMap,yt=new WeakMap,_t=new WeakMap,be=new WeakMap,it=new WeakMap,V=new WeakMap,me=new WeakMap,ge=new WeakMap,ye=new WeakMap,Ce=new WeakMap,Te=new WeakMap,ve=new WeakMap,j=new WeakMap,Pe=new WeakMap,Wt=new WeakMap,J=new WeakMap,Nt=new WeakMap,Ct=new WeakMap,Ee=new WeakMap,Ut=new WeakMap,we=new WeakMap,Gt=new WeakMap,vt=new WeakMap,Zt=new WeakMap,f=new WeakMap,Oe=new WeakMap,W=new WeakMap,d=new WeakMap,cs=new WeakMap,us=new WeakMap,L=new WeakMap,P=new WeakMap,N=new WeakMap,rt=new WeakMap,Kt=new WeakMap,nt=new WeakMap,I=new WeakMap,O=new WeakMap,De=new WeakMap,Pt=new WeakMap,Et=new WeakMap,wt=new WeakMap,U=new WeakMap,qe=new WeakMap,jt=new WeakMap,Jt=new WeakMap,xe=new WeakMap,ht=new WeakMap,k=new WeakMap,Be=new WeakMap,xt=new WeakMap,Le=new WeakMap,$e=new WeakMap,c=new WeakSet,Vs=function(){const e=t(this,T).current,s=t(this,Bt).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,rt).axis=t(this,_t).current?"max":e,t(this,Kt).dimension=e==="x"?"width":"height",t(this,nt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,k)&&t(this,M).call(this)},rs=function(){o(this,c,Ie).call(this),t(this,Oe).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,W).push(new vi(e,s,this))}),r(this,d,[...t(this,W)]),t(this,f).style.transform="",tt.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,M).call(this),o(this,c,ue).call(this)},Ie=function(){t(this,W).forEach(e=>{e.destroy()}),r(this,W,[]),r(this,d,[]),t(this,O).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),tt.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},Ps=function(){t(this,wt)||(r(this,wt,!0),t(this,S).unsubscribe(t(this,as)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,qe)),clearInterval(t(this,jt)),t(this,Jt).unlistenAnimationFrame(),t(this,rt).disconnect(),t(this,Kt).disconnect(),t(this,nt).disconnect(),t(this,I).disconnect(),t(this,Et)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,M).call(this)))},Es=function(){t(this,wt)&&(r(this,wt,!1),t(this,S).subscribe(t(this,as),-1e4),t(this,S).notify(),t(this,rt).connect(),t(this,Kt).connect(),t(this,nt).connect(),t(this,j).current&&t(this,I).connect())},ks=function(){t(this,U)||(r(this,U,!0),clearTimeout(t(this,$e)),pt.windowResizer.unsubscribe(t(this,M)),o(this,c,Ps).call(this),t(this,f).style.transform="",t(this,f).style.height="",t(this,f).style.width="",this.classList.remove("has-overflow","start","end"),this.style.removeProperty("--counter"),t(this,W).length?o(this,c,Ie).call(this):(t(this,O).reset(),t(this,S).reset()),oe.scrollEntries.unregister(this))},Rs=function(){t(this,U)&&(r(this,U,!1),oe.scrollEntries.register(this),this.tryResplit(),o(this,c,Es).call(this),this.scrollToSection(t(this,ve).current,{behaviour:"instant"}),pt.windowResizer.subscribe(t(this,M),Me.RESIZE_ORDER.SCROLL))},M=new WeakMap,as=new WeakMap,Ks=function(e){let s=t(this,O).current;return t(this,V).current?s=Us.loopNumber(e,t(this,d).length):s=Ts.clamp(e,0,this.limit),s},He=new WeakMap,ds=new WeakMap,As=function(e=1){t(this,Wt).current&&(t(this,I).direction=e),t(this,j).current&&t(this,I).pauseAndContinue(t(this,Pe).current,this.sectionalCSSProperty.current)},Is=function(e="current"){if(t(this,V).current&&t(this,d).length){const s=t(this,S)[e]%Math.round(t(this,P)+t(this,L)+t(this,N));return s<0?t(this,P)+s+t(this,L)+t(this,N):s}else return t(this,S)[e]},ue=function(){if(t(this,d).length){const e=t(this,O).current+t(this,Nt).current;if(e===0?r(this,ht,"start"):e===this.limit?r(this,ht,"end"):r(this,ht,null),tt.dispatchEvent(this,"scrollLine",{detail:{line:t(this,ht)}}),t(this,J).current){this.classList.remove("end","start"),t(this,ht)&&this.classList.add(t(this,ht));const s=t(this,it).current+t(this,Ct).current;r(this,xt,[]),t(this,d).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,Ct).current,y=e+s,v=this.sections.length-y;u>=e&&u<y||u<=g?(n.setMark("current"),t(this,xt).push(n)):u>=y&&u<y+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,Ss).call(this)}}},js=function(){if(t(this,J).current){const e=Math.floor(t(this,xt).length/2);t(this,xt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,xt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)})}},Ss=new WeakMap,ns=function(e=!1){let s=this.targetScrollValue,n=1/0,u=0;const g=t(this,S).direction;for(let y=0;y<t(this,d).length;y++){const v=t(this,d)[y];let le=t(this,xe)?v.size*g*-1*.4:0,Ae=v.position;this.overscroll&&Ae===0&&e&&(Ae=t(this,Pt));let ss=Math.abs(Ae+le-s);ss<=n&&(n=ss,u=y)}return u},_e=new WeakMap;K.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",xs);var ps;class Cs extends HTMLElement{constructor(){super(...arguments);i(this,ps,null)}get scrollElement(){return t(this,ps)}connectedCallback(){const e=Ci.findParentElement(this,xs);e instanceof xs?r(this,ps,e):console.error(this,"e-scroll not found")}}ps=new WeakMap;var Qt,D,Lt,zt,We,Ne,Xt,Ue,fs,bs;class Js extends Cs{constructor(){super();i(this,Qt,null);i(this,D,null);i(this,Lt,!1);i(this,zt,0);i(this,We,0);i(this,Ne,0);i(this,Xt,()=>{r(this,Lt,this.offsetWidth>this.offsetHeight);const e=t(this,Lt)?this.offsetWidth:this.offsetHeight;r(this,zt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,zt,Math.max(t(this,zt),30)),t(this,Lt)?(t(this,D).style.width=t(this,zt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,zt)+"px"),r(this,We,e-t(this,zt)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ue).call(this)});i(this,Ue,()=>{r(this,Ne,this.scrollElement.currentProgress*t(this,We)),t(this,Lt)?t(this,D).style.transform=`translate3d(${t(this,Ne)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,Ne)}px, 0px)`});i(this,fs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,bs,e=>{document.documentElement.classList.add("grabbing"),yi.setupDrag(u=>{const g=t(this,Lt)?u.x:u.y,y=this.scrollElement.distance/t(this,We),v=(g-n)*y;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,Lt)?e.x:e.y});if(K.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Gs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})],r(this,Qt,document.createElement("slot")),t(this,Qt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Qt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Qt).assignedElements()[0]||t(this,Qt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,bs)),pt.windowResizer.subscribe(t(this,Xt),Me.RESIZE_ORDER.SCROLL),hs.elementResizer.subscribe(this,t(this,Xt)),hs.elementResizer.subscribe(this.scrollElement,t(this,Xt)),this.scrollElement.onScroll(t(this,Ue)),this.scrollElement.axisCSSProperty.subscribe(t(this,fs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,bs)),pt.windowResizer.unsubscribe(t(this,Xt)),hs.elementResizer.unsubscribe(t(this,Xt)),this.scrollElement.offScroll(t(this,Ue)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,fs))}}Qt=new WeakMap,D=new WeakMap,Lt=new WeakMap,zt=new WeakMap,We=new WeakMap,Ne=new WeakMap,Xt=new WeakMap,Ue=new WeakMap,fs=new WeakMap,bs=new WeakMap;K.isBrowser&&!customElements.get("e-scrollbar")&&customElements.define("e-scrollbar",Js);var Ge,Ze,Ke;class Os extends Cs{constructor(){super();i(this,Ge,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Ze,new l.CSSProperty(this,"--tween-easing",!1));i(this,Ke,new l.CSSProperty(this,"--tween-duration",0));K.isBrowser&&this.addEventListener("click",()=>{const e=t(this,Ge).current,s=t(this,Ze).current,n=t(this,Ke).current;this.handleClick({behaviour:e,tween:s||n?{easing:s,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,Ge).observe(),t(this,Ze).observe(),t(this,Ke).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,Ge).close(),t(this,Ze).close(),t(this,Ke).close()}}Ge=new WeakMap,Ze=new WeakMap,Ke=new WeakMap;var je;class Qs extends Os{constructor(){super(...arguments);i(this,je,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,je).current,e)}connectedCallback(){super.connectedCallback(),t(this,je).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,je).close()}}je=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",Qs);var Vt,Je;class Xs extends Os{constructor(){super(...arguments);i(this,Vt,new l.CSSProperty(this,"--step",1));i(this,Je,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,Vt).current>0&&this.scrollElement.scrollLine==="end"||t(this,Vt).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,Vt).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,Vt).subscribe(()=>{t(this,Je).call(this)}),t(this,Vt).observe(),this.scrollElement.addEventListener("scrollLine",t(this,Je)),t(this,Je).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,Vt).close(),this.removeAttribute("disabled")}}Vt=new WeakMap,Je=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",Xs);var ot,Yt,Qe,ms,gs,Xe;class Ei{constructor(h,e,s){i(this,ot,null);i(this,Yt,null);i(this,Qe,null);i(this,ms,null);i(this,gs,()=>{t(this,Yt).scrollToSection(t(this,Qe),{behaviour:t(this,ms)})});i(this,Xe,()=>{t(this,ot).classList.toggle("current",t(this,Yt).counter.current===t(this,Qe))});K.isBrowser&&(r(this,ot,document.createElement("button")),t(this,ot).setAttribute("aria-label",`Go to section ${e+1}`),r(this,Yt,h),r(this,ms,s),r(this,Qe,e),t(this,ot).addEventListener("click",t(this,gs)),t(this,Yt).counter.subscribe(t(this,Xe)),t(this,Xe).call(this))}get element(){return t(this,ot)}destroy(){t(this,ot).removeEventListener("click",t(this,gs)),t(this,Yt).counter.unsubscribe(t(this,Xe)),t(this,ot).remove()}}ot=new WeakMap,Yt=new WeakMap,Qe=new WeakMap,ms=new WeakMap,gs=new WeakMap,Xe=new WeakMap;var ze,te,kt;class Ys extends Cs{constructor(){super(...arguments);i(this,ze,null);i(this,te,[]);i(this,kt,ws.debounce(()=>{t(this,te).forEach(s=>s.destroy()),r(this,te,[]);let e=0;this.scrollElement.loopCSSProperty.current?e=this.scrollElement.visibleSections.length:e=this.scrollElement.visibleSections.length-Math.max(this.scrollElement.sectionsInViewCSSProperty.current-1,0);for(let s=0;s<e;s++){const n=new Ei(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,ze).appendChild(n.element),t(this,te).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",this.scrollElement.addEventListener("scrollSectionsChange",t(this,kt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,kt)),this.scrollElement.loopCSSProperty.subscribe(t(this,kt)),r(this,ze,document.createElement("div")),this.appendChild(t(this,ze))}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,kt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,kt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,kt)),t(this,te).forEach(e=>e.destroy()),r(this,te,[]),t(this,ze).remove()}}ze=new WeakMap,te=new WeakMap,kt=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",Ys);var ee,se,ie,re,Rt,At,It,Mt,R,q,B,$,Ft,z,lt,ct,Q,Tt,Ve,ut,at,dt,w,H,_,X,Y,G,Ye,m,Ot,ne,ts,x,St,F,A,Z,ke,Dt,C,he,b,ei,si,ii,ri,ni,hi,es,Re,Ms,ae,oi,li,Fs;class ti extends Cs{constructor(){super(...arguments);i(this,b);i(this,ee);i(this,se);i(this,ie);i(this,re);i(this,Rt);i(this,At);i(this,It);i(this,Mt);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Ft);i(this,z);i(this,lt);i(this,ct);i(this,Q);i(this,Tt);i(this,Ve);i(this,ut);i(this,at);i(this,dt);i(this,w);i(this,H);i(this,_);i(this,X);i(this,Y);i(this,G);i(this,Ye);i(this,m);i(this,Ot);i(this,ne);i(this,ts);i(this,x);i(this,St);i(this,F);i(this,A);i(this,Z);i(this,ke);i(this,Dt);i(this,C);i(this,he);i(this,es);i(this,Re);r(this,ee,new l.CSSProperty(this,"--damping",20)),r(this,se,new l.CSSProperty(this,"--mass",0)),r(this,ie,new l.CSSProperty(this,"--stiffness",0)),r(this,re,new l.CSSProperty(this,"--target","")),r(this,Rt,new l.CSSProperty(this,"--disabled",!1)),r(this,At,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,It,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,Mt,new l.CSSProperty(this,"--capture-once",!1)),r(this,R,new l.CSSProperty(this,"--captured","")),r(this,q,new l.CSSProperty(this,"--released","")),r(this,B,new l.CSSProperty(this,"--captured-from-start","")),r(this,$,new l.CSSProperty(this,"--captured-from-finish","")),r(this,Ft,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,lt,new l.CSSProperty(this,"--passed-var","")),r(this,ct,new l.CSSProperty(this,"--progress-var","")),r(this,Q,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Tt,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ve,new l.CSSProperty(this,"--animation-var-type","target")),r(this,ut,new l.CSSProperty(this,"--distance-var","")),r(this,at,new l.CSSProperty(this,"--start-var","")),r(this,dt,new l.CSSProperty(this,"--finish-var","")),r(this,w,new ce.Store(!1)),r(this,H,new ce.Store(!1)),r(this,_,new ce.Store(!1)),r(this,X,new ce.Store(!1)),r(this,Y,new ce.Store(!1)),r(this,G,new ce.Store(!1)),r(this,Ye,[]),r(this,m,this),r(this,Ot,0),r(this,ne,0),r(this,ts,0),r(this,x,new Zs.Damped(0,{order:Me.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,St,0),r(this,F,0),r(this,A,0),r(this,Z,0),r(this,ke,!1),r(this,Dt,!1),r(this,C,!0),r(this,he,!1),this.resize=()=>{r(this,ne,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Ot,this.scrollElement.vertical?et.getCumulativeOffsetTop(this,this.scrollElement):et.getCumulativeOffsetLeft(this,this.scrollElement));const e=et.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,Ot,t(this,Ot)-e),r(this,F,this.getStart()),r(this,A,this.getDistance()),r(this,F,t(this,F)+t(this,It).current),r(this,A,t(this,A)+t(this,At).current),r(this,Z,t(this,F)+t(this,A)),this.scrollElement.currentScrollValue>t(this,Z)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,at).current,t(this,F)),this.setVar(t(this,dt).current,t(this,Z)),this.setVar(t(this,ut).current,t(this,A)),t(this,x).max=t(this,A),r(this,ke,!0),t(this,Re).call(this)},this.findAnotherScrollEntries=ws.debounce(()=>{const e=oe.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,Ye,e.slice(s+1)),this.tick()},0),r(this,es,()=>{t(this,C)||this.resize()}),r(this,Re,()=>{!t(this,C)&&t(this,ke)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,At)}get startOffsetCSSProperty(){return t(this,It)}get captureOnceCSSProperty(){return t(this,Mt)}get capturedCSSProperty(){return t(this,R)}get releasedCSSProperty(){return t(this,q)}get capturedFromStartCSSProperty(){return t(this,B)}get capturedFromFinishCSSProperty(){return t(this,$)}get releasedFromStartCSSProperty(){return t(this,Ft)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,lt)}get progressVarCSSProperty(){return t(this,ct)}get progressArcVarCSSProperty(){return t(this,Q)}get progressArcMultCSSProperty(){return t(this,Tt)}get animationVarTypeCSSProperty(){return t(this,Ve)}get distanceVarCSSProperty(){return t(this,ut)}get startVarCSSProperty(){return t(this,at)}get finishVarCSSProperty(){return t(this,dt)}get disabledCSSProperty(){return t(this,Rt)}get dampingCSSProperty(){return t(this,ee)}get massCSSProperty(){return t(this,se)}get stiffnessCSSProperty(){return t(this,ie)}get targetCSSProperty(){return t(this,re)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,_)}get isReleasedFromStart(){return t(this,X)}get isCapturedFromFinish(){return t(this,Y)}get isReleasedFromFinish(){return t(this,G)}get directionPosition(){return t(this,Ot)}get directionSize(){return t(this,ne)}get passed(){return t(this,x)}get progress(){return t(this,St)}get progressArc(){return Math.abs(Math.cos(t(this,St)*Math.PI))*t(this,Tt).current}get start(){return t(this,F)}get finish(){return t(this,Z)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,Dt)}get isDisabled(){return t(this,C)}tick(){let e=this.scrollElement.currentScrollValue;t(this,Ye).forEach(u=>{e+=u.value});const s=e-t(this,F);t(this,he)||r(this,he,t(this,x).previous?Math.abs(t(this,x).previous-s)>1e3:!1),t(this,x).set(s);const n=Math.round(e);t(this,w).current&&(n>=t(this,F)?t(this,_).current||o(this,b,ii).call(this):t(this,_).current&&!t(this,X).current&&o(this,b,ni).call(this),n<t(this,Z)?t(this,G).current&&!t(this,Y).current&&o(this,b,ri).call(this):t(this,_).current&&!t(this,G).current&&o(this,b,hi).call(this)),n>=t(this,F)&&n<t(this,Z)?t(this,w).current||o(this,b,ei).call(this):t(this,w).current&&(t(this,x).set(Ts.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,si).call(this)),t(this,Dt)&&t(this,Mt).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,C,!0))}disable(){this.style.cssText="",r(this,Ot,0),r(this,ne,0),t(this,x).reset(),r(this,St,0),r(this,F,0),r(this,A,0),r(this,Z,0),r(this,ke,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,_).current=!1,t(this,X).current=!1,t(this,Y).current=!1,t(this,G).current=!1,r(this,Dt,!1),r(this,C,!0),o(this,b,Fs).call(this)}enable(){r(this,C,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,_).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,Y).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,X).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,G).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,ee).observe(),t(this,se).observe(),t(this,ie).observe(),t(this,re).observe(),t(this,Rt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,Mt).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Ft).observe(),t(this,z).observe(),t(this,lt).observe(),t(this,ct).observe(),t(this,Q).observe(),t(this,Tt).observe(),t(this,Ve).observe(),t(this,ut).observe(),t(this,at).observe(),t(this,dt).observe();let e=!1;this.findAnotherScrollEntries(),t(this,Rt).current||this.enable(),t(this,ee).subscribe(s=>{t(this,x).damping=s.current}),t(this,se).subscribe(s=>{t(this,x).mass=s.current}),t(this,ie).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,re).subscribe(s=>{s.previous&&o(this,b,Fs).call(this),s.current?s.current==="parent"?r(this,m,this.parentElement||this):r(this,m,document.querySelector(s.current)||this):r(this,m,this)}),t(this,Rt).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,It).subscribe(()=>{e&&!t(this,C)&&this.resize()}),t(this,At).subscribe(()=>{e&&!t(this,C)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,Ft).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,Mt).subscribe(s=>{t(this,C)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,lt).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,ct).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,St)))}),t(this,Q).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Tt).subscribe(s=>{t(this,C)||o(this,b,Ms).call(this)}),t(this,at).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,F)))}),t(this,dt).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,Z)))}),t(this,ut).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,he)){r(this,he,!1);return}o(this,b,Ms).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),pt.windowResizer.subscribe(t(this,es),Me.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Re)),e=!0}disconnectedCallback(){pt.windowResizer.unsubscribe(t(this,es)),this.scrollElement.offScroll(t(this,Re)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,ee).close(),t(this,se).close(),t(this,ie).close(),t(this,re).close(),t(this,Rt).close(),t(this,At).close(),t(this,It).close(),t(this,Mt).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Ft).close(),t(this,z).close(),t(this,lt).close(),t(this,ct).close(),t(this,Q).close(),t(this,Tt).close(),t(this,ut).close(),t(this,at).close(),t(this,dt).close(),t(this,w).close(),t(this,H).close(),t(this,_).close(),t(this,X).close(),t(this,Y).close(),t(this,G).close(),this.disable(),t(this,x).close()}removeVar(e){e&&t(this,m).style.removeProperty(`--${e}`)}setVar(e,s){if(e){const n=typeof s=="number"?s.toFixed(6):s;t(this,m).style.setProperty(`--${e}`,n)}}getDistance(){return t(this,ne)+t(this,ts)}getStart(){return t(this,Ot)-t(this,ts)}}ee=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,Rt=new WeakMap,At=new WeakMap,It=new WeakMap,Mt=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Ft=new WeakMap,z=new WeakMap,lt=new WeakMap,ct=new WeakMap,Q=new WeakMap,Tt=new WeakMap,Ve=new WeakMap,ut=new WeakMap,at=new WeakMap,dt=new WeakMap,w=new WeakMap,H=new WeakMap,_=new WeakMap,X=new WeakMap,Y=new WeakMap,G=new WeakMap,Ye=new WeakMap,m=new WeakMap,Ot=new WeakMap,ne=new WeakMap,ts=new WeakMap,x=new WeakMap,St=new WeakMap,F=new WeakMap,A=new WeakMap,Z=new WeakMap,ke=new WeakMap,Dt=new WeakMap,C=new WeakMap,he=new WeakMap,b=new WeakSet,ei=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,Dt,!0),t(this,q).current&&t(this,m).classList.remove(t(this,q).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,R).current&&t(this,m).classList.add(t(this,R).current)},si=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,Dt,!0),t(this,R).current&&t(this,m).classList.remove(t(this,R).current),t(this,B).current&&t(this,m).classList.remove(t(this,B).current),t(this,$).current&&t(this,m).classList.remove(t(this,$).current),t(this,q).current&&t(this,m).classList.add(t(this,q).current)},ii=function(){t(this,w).current=!0,t(this,_).current=!0,t(this,X).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},ri=function(){t(this,w).current=!0,t(this,Y).current=!0,t(this,G).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ni=function(){t(this,H).current=!0,t(this,X).current=!0,t(this,_).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},hi=function(){t(this,H).current=!0,t(this,G).current=!0,t(this,Y).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},es=new WeakMap,Re=new WeakMap,Ms=function(){const e=t(this,x)[t(this,Ve).current];this.setVar(t(this,lt).current,e),r(this,St,e/t(this,A)||0),this.setVar(t(this,ct).current,t(this,St)),t(this,Q).current&&this.setVar(t(this,Q).current,this.progressArc)},ae=function(e){if(t(this,C)){e.previous&&t(this,m).classList.remove(e.previous),e.current&&t(this,m).classList.remove(e.current);return}e.current&&t(this,w).current?(e.previous&&t(this,m).classList.remove(e.previous),t(this,m).classList.add(e.current)):!e.current&&e.previous&&t(this,m).classList.remove(e.previous)},oi=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},li=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Fs=function(){o(this,b,oi).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Ft).current,t(this,z).current),o(this,b,li).call(this,t(this,lt).current,t(this,ct).current,t(this,Q).current,t(this,ut).current,t(this,at).current,t(this,dt).current)};K.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ti);class ci extends Os{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?et.getCumulativeOffsetTop(this):et.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}K.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",ci);var ys;const Ds=class Ds extends Cs{constructor(){super(...arguments);i(this,ys,()=>{this.textContent=`${this.scrollElement.counter.current+1}`})}connectedCallback(){return Ws(this,null,function*(){_s(Ds.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,ys))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,ys))}};ys=new WeakMap;let Ls=Ds;K.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",Ls);exports.ScrollBulletButtonsElement=Ys;exports.ScrollCounterElement=Ls;exports.ScrollElement=xs;exports.ScrollSectionButtonElement=ci;exports.ScrollSegmentElement=ti;exports.ScrollSetButtonElement=Qs;exports.ScrollStepButtonElement=Xs;exports.ScrollbarElement=Js;
|
|
1
|
+
"use strict";var ui=Object.defineProperty;var qs=Object.getOwnPropertySymbols,ai=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,pi=Reflect.get;var $s=a=>{throw TypeError(a)};var Bs=(a,h,e)=>h in a?ui(a,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[h]=e,Hs=(a,h)=>{for(var e in h||(h={}))di.call(h,e)&&Bs(a,e,h[e]);if(qs)for(var e of qs(h))Si.call(h,e)&&Bs(a,e,h[e]);return a};var zs=(a,h,e)=>h.has(a)||$s("Cannot "+e);var t=(a,h,e)=>(zs(a,h,"read from private field"),e?e.call(a):h.get(a)),i=(a,h,e)=>h.has(a)?$s("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(a):h.set(a,e),r=(a,h,e,s)=>(zs(a,h,"write to private field"),s?s.call(a,e):h.set(a,e),e),o=(a,h,e)=>(zs(a,h,"access private method"),e);var _s=(a,h,e)=>pi(ai(a),e,h);var Ws=(a,h,e)=>new Promise((s,n)=>{var u=v=>{try{y(e.next(v))}catch(le){n(le)}},g=v=>{try{y(e.throw(v))}catch(le){n(le)}},y=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);y((e=e.apply(a,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("../Store-Cd1GlEmZ.cjs"),K=require("../index-DekP7OZe.cjs"),fi=require("../easings-GegIwET5.cjs"),bi=require("../element-yhcBhsho.cjs"),tt=require("../events-KVanG9sR.cjs"),ws=require("../function-MthRj-GJ.cjs"),et=require("../layout-Ctc2p3uz.cjs"),Ts=require("../math-GDWEqu7y.cjs"),Us=require("../number-ChAm68cm.cjs"),Gs=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Me=require("../order/index.cjs"),Zs=require("../Damped-z9Uaw2MJ.cjs"),mi=require("../Tweened-mvHucL4Y.cjs"),vs=require("../DragControls-CfE2oPAi.cjs"),pt=require("../window-resizer/index.cjs"),oe=require("../scroll-entries/index.cjs"),Ns=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),gi=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const hs=require("../element-resizer/index.cjs"),yi=require("../gestures-C7gbKx11.cjs"),Ci=require("../dom-JBOkFLTh.cjs");var p,Fe,E,os,ls,de,ft,Dt,Se,pe,is;class vi{constructor(h,e,s){i(this,pe);i(this,p);i(this,Fe);i(this,E);i(this,os,0);i(this,ls,0);i(this,de,0);i(this,ft,0);i(this,Dt,null);i(this,Se,0);r(this,p,h),r(this,Fe,e),r(this,E,s),oe.scrollEntries.register(t(this,p)),this.setIndex(t(this,Fe))}get element(){return t(this,p)}get index(){return t(this,Fe)}get size(){return t(this,de)}get width(){return t(this,os)}get height(){return t(this,ls)}get position(){return t(this,ft)}get transformPosition(){return t(this,Se)}destroy(){oe.scrollEntries.unregister(t(this,p)),this.unsetTransform()}unsetTransform(){t(this,p).style.transform="",this.setMark(null),this.setIndex(null),this.setCurrentIndex(null),this.setCurrentIndexArc(null),this.setCurrentIndexArcAbs(null),this.setMiddle(!1),this.setSize()}setSize(h){h?(t(this,p).style.setProperty("--size",h+"px"),t(this,E).axisCSSProperty.current==="x"?(t(this,p).style.width=h+"px",t(this,p).style.height=""):(t(this,p).style.height=h+"px",t(this,p).style.width="")):(t(this,p).style.width="",t(this,p).style.height="",t(this,p).style.removeProperty("--size"))}resize(){r(this,os,t(this,p).offsetWidth),r(this,ls,t(this,p).offsetHeight),r(this,de,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,ft,t(this,E).vertical?et.getCumulativeOffsetTop(t(this,p)):et.getCumulativeOffsetLeft(t(this,p))),r(this,ft,t(this,ft)-t(this,E).contentPosition)}transform(){const h=t(this,E).shiftSectionPositionCSSProperty.current;let e=h;const s=t(this,E).viewportSize*t(this,E).sectionDistanceScaleCSSProperty.current;t(this,E).loopCSSProperty.current&&t(this,ft)+t(this,de)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),oe.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,ft)-t(this,E).viewportSize-s,g=t(this,ft)+t(this,de)+s,y=Us.preciseNumber(Ts.clamp(n,u,g),3);r(this,Se,y*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,Se)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,Se)}px, 0px, 0px)`}setMark(h){t(this,Dt)!==h&&(t(this,Dt)&&t(this,p).classList.remove(t(this,Dt)),h&&t(this,p).classList.add(h),r(this,Dt,h),tt.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,Dt)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,pe,is).call(this,"index",h)}setCurrentIndex(h){o(this,pe,is).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,pe,is).call(this,"current-index-arc",h)}setCurrentIndexArcAbs(h){o(this,pe,is).call(this,"current-index-arc-abs",h)}}p=new WeakMap,Fe=new WeakMap,E=new WeakMap,os=new WeakMap,ls=new WeakMap,de=new WeakMap,ft=new WeakMap,Dt=new WeakMap,Se=new WeakMap,pe=new WeakSet,is=function(h,e){e!==null?(t(this,p).style.setProperty(`--${h}`,e.toString()),t(this,p).setAttribute(`data-${h}`,e.toString())):(t(this,p).style.removeProperty(`--${h}`),t(this,p).removeAttribute(`data-${h}`))};const Pi=Gs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content-wrapper":{width:"var(--content-wrapper-width, 100%)",height:"var(--content-wrapper-height, 100%)",overflow:"var(--overflow, initial)",borderRadius:"var(--border-radius, unset)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},":host(.hibernated) .content-wrapper":{display:"contents"},":host(.hibernated) .content":{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var S,fe,T,qt,bt,mt,gt,st,Bt,$t,yt,Ht,be,it,V,me,ge,ye,Ce,Te,ve,j,Pe,_t,J,Wt,Ct,Ee,Nt,we,Ut,Gt,Zt,f,Oe,W,d,cs,us,L,P,N,rt,Kt,nt,I,O,De,vt,Pt,Et,U,qe,jt,Jt,xe,ht,k,Be,wt,Le,$e,c,Vs,rs,Ie,Ps,Es,ks,Rs,M,as,Ks,He,ds,As,Is,ue,js,Ss,ns,_e;class xs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,fe,new l.CSSProperty(this,"--controls",!0));i(this,T,new l.CSSProperty(this,"--axis","y"));i(this,qt,new l.CSSProperty(this,"--reverse",!1));i(this,bt,new l.CSSProperty(this,"--direction",0));i(this,mt,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,gt,new l.CSSProperty(this,"--split",!1));i(this,st,new l.CSSProperty(this,"--sectional",!1));i(this,Bt,new l.CSSProperty(this,"--tween-easing",!1));i(this,$t,new l.CSSProperty(this,"--tween-duration",!1));i(this,yt,new l.CSSProperty(this,"--auto-size",!1));i(this,Ht,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,be,new l.CSSProperty(this,"--drag-inertion",1));i(this,it,new l.CSSProperty(this,"--sections-in-view",1));i(this,V,new l.CSSProperty(this,"--loop",!1));i(this,me,new l.CSSProperty(this,"--damping",20));i(this,ge,new l.CSSProperty(this,"--mass",0));i(this,ye,new l.CSSProperty(this,"--stiffness",0));i(this,Ce,new l.CSSProperty(this,"--mouse-drag",!1));i(this,Te,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,ve,new l.CSSProperty(this,"--start-section",0));i(this,j,new l.CSSProperty(this,"--autoplay",0));i(this,Pe,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,_t,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,J,new l.CSSProperty(this,"--classes",!1));i(this,Wt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,Ct,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,Ee,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Nt,new l.CSSProperty(this,"--focus-delay",0));i(this,we,new l.CSSProperty(this,"--focus-duration",3e3));i(this,Ut,new l.CSSProperty(this,"--disabled",!1));i(this,Gt,new l.CSSProperty(this,"--hibernate",!1));i(this,Zt,null);i(this,f,null);i(this,Oe,null);i(this,W,[]);i(this,d,[]);i(this,cs,0);i(this,us,0);i(this,L,0);i(this,P,0);i(this,N,0);i(this,rt,null);i(this,Kt,null);i(this,nt,null);i(this,I,null);i(this,O,new ce.Store(0));i(this,De,0);i(this,vt,0);i(this,Pt,!1);i(this,Et,!0);i(this,U,!0);i(this,qe);i(this,jt);i(this,Jt,new mi.Tweened);i(this,xe,!1);i(this,ht,null);i(this,k,!1);i(this,Be,null);i(this,wt,[]);i(this,Le,!1);i(this,$e);i(this,M,e=>{if(e&&t(this,Le)){r(this,Le,!1);return}this.resize()});i(this,as,()=>{if(!t(this,Pt)||t(this,U)||t(this,Et))return;const e=this.currentScrollValue;if(r(this,De,Math.max(0,e-t(this,P))),t(this,d).length){for(let s=0;s<t(this,W).length;s++)t(this,W)[s].transform();t(this,O).current=o(this,c,ns).call(this)}else this.vertical?t(this,f).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;o(this,c,js).call(this),oe.scrollEntries.update(this,t(this,T).current,e)});i(this,He,(e,s)=>{t(this,fe).current&&(o(this,c,As).call(this,Math.sign(s)||1),t(this,ds).call(this,e,s))});i(this,ds,(e,s)=>{if(!t(this,jt)){if(t(this,bt).current){if(t(this,bt).current<0&&s>0)return;if(t(this,bt).current>0&&s<0)return}if(!t(this,j).current&&t(this,Nt).current&&(clearInterval(t(this,qe)),r(this,qe,setTimeout(()=>{const n=t(this,d)[o(this,c,ns).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,we).current,easing:fi.easeInOutExpo}})},t(this,Nt).current))),!(e.includes("drag")&&!gi.device.isTouch&&!t(this,Ce).current)){if(t(this,st).current&&e!=="drag"){const n=Math.sign(s);if(t(this,d).length){const u={tween:t(this,Bt).current||t(this,$t).current?{easing:t(this,Bt).current||"easeInOutCubic",duration:t(this,$t).current||500}:void 0};t(this,xe)?this.scrollToSection(o(this,c,ns).call(this,!0),u):this.shiftSections(n,u)}else t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,xe,e==="drag")}}});i(this,Ss,ws.debounce(()=>{const e=t(this,wt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,$e)),r(this,Le,!0),this.style.setProperty("--max-section-size",""),r(this,$e,setTimeout(()=>{r(this,Le,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,_e,()=>{r(this,k,!0),this.hibernatedCSSProperty.current||o(this,c,Rs).call(this),hs.elementResizer.subscribe(this,t(this,M)),pt.windowResizer.unsubscribe(t(this,_e))});if(K.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Pi];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,Zt,document.createElement("div")),t(this,Zt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Oe,document.createElement("slot")),t(this,f).appendChild(t(this,Oe)),t(this,Zt).appendChild(t(this,f)),e.appendChild(t(this,Zt)),r(this,Be,new MutationObserver(ws.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,fe)}get axisCSSProperty(){return t(this,T)}get reverseCSSProperty(){return t(this,qt)}get directionCSSProperty(){return t(this,bt)}get pagesCSSProperty(){return t(this,mt)}get splitCSSProperty(){return t(this,gt)}get sectionalCSSProperty(){return t(this,st)}get easingCSSProperty(){return t(this,Bt)}get durationCSSProperty(){return t(this,$t)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,Ht)}get dragInertionCSSProperty(){return t(this,be)}get sectionsInViewCSSProperty(){return t(this,it)}get loopCSSProperty(){return t(this,V)}get dampingCSSProperty(){return t(this,me)}get massCSSProperty(){return t(this,ge)}get stiffnessCSSProperty(){return t(this,ye)}get mouseDragCSSProperty(){return t(this,Ce)}get sectionDistanceScaleCSSProperty(){return t(this,Te)}get startSectionCSSProperty(){return t(this,ve)}get autoplayCSSProperty(){return t(this,j)}get autoplayPauseDurationCSSProperty(){return t(this,Pe)}get autoplayUserDirectionCSSProperty(){return t(this,_t)}get classesCSSProperty(){return t(this,J)}get currentIndexStartOffsetCSSProperty(){return t(this,Wt)}get currentIndexEndOffsetCSSProperty(){return t(this,Ct)}get shiftSectionPositionCSSProperty(){return t(this,Ee)}get focusDelayCSSProperty(){return t(this,Nt)}get focusDurationCSSProperty(){return t(this,we)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Gt)}get currentScrollValue(){return o(this,c,Is).call(this,"current")}get targetScrollValue(){return o(this,c,Is).call(this,"target")}get contentWrapperElement(){return t(this,Zt)}get contentElement(){return t(this,f)}get sections(){return t(this,W)}get visibleSections(){return t(this,d)}get position(){return t(this,cs)}get contentPosition(){return t(this,us)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,N)}get counter(){return t(this,O)}get limit(){return Math.ceil(t(this,d).length-t(this,it).current)}get distance(){return t(this,vt)}get loopDistance(){return t(this,V).current?t(this,vt)+t(this,N):t(this,vt)}get hasOverflow(){return t(this,Pt)}get overscroll(){return t(this,De)}get scrollLine(){return t(this,ht)}get vertical(){return t(this,T).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,T).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,T).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,U)&&(t(this,V).current||t(this,gt).current||t(this,V).current||t(this,yt).current||t(this,st).current)&&o(this,c,rs).call(this)}onScroll(...e){return t(this,S).subscribe(...e)}offScroll(...e){t(this,S).unsubscribe(...e)}range(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress<u?0:this.currentProgress>g?1:(this.currentProgress-u)/(g-u)}curve(e,s,n=0){return Math.sin(this.range(e,s,n)*Math.PI)}visible(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress>=u&&this.currentProgress<=g}scrollToSection(e,s){if(!t(this,d).length||t(this,U))return;const n=t(this,O).current,u=o(this,c,Ks).call(this,e),g=t(this,d)[n],y=t(this,d)[u];if(g&&y){let v=0;const le=o(this,c,ns).call(this),Ae=t(this,d)[le];let ss=Ae?this.targetScrollValue-Ae.position:0;t(this,V).current?u===0&&n===t(this,d).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,N),t(this,xe)||(ss=0)):u===t(this,d).length-1&&n===0?v=y.position-(t(this,P)+t(this,L)+t(this,N)):v=y.position-g.position:v=y.position-g.position,this.shiftPosition(v-ss,s)}}shiftSections(e,s){t(this,d).length&&this.scrollToSection(t(this,O).current+e,s)}setPosition(e,s){t(this,U)||(o(this,c,As).call(this,Math.sign(e)||1),s!=null&&s.tween?(clearTimeout(t(this,jt)),t(this,Jt).set(t(this,S).current,{equalize:!0}),t(this,Jt).set(Math.min(e,this.distance),Hs({},s.tween)),r(this,jt,setTimeout(()=>{r(this,jt,void 0)},s.tween.duration||0))):t(this,S).set(e,{equalize:(s==null?void 0:s.behaviour)==="instant"}))}shiftPosition(e,s){this.setPosition(t(this,S).target+e,s)}resize(){if(t(this,Gt).current)return;r(this,d,t(this,W).filter(n=>bi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,d).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,O).current;if(r(this,cs,this.vertical?et.getCumulativeOffsetTop(this):et.getCumulativeOffsetLeft(this)),r(this,us,this.vertical?et.getCumulativeOffsetTop(t(this,f)):et.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,N,Ns.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,yt).current&&t(this,d).length){const n=t(this,it).current,u=(t(this,L)-t(this,N)*(n-1))/n;t(this,d).forEach(g=>{g.setSize(u)})}else t(this,d).forEach(n=>{n.setSize()});if(t(this,d).forEach(n=>{n.resize()}),t(this,mt).current){r(this,P,t(this,L)*t(this,mt).current);const n=t(this,P)+t(this,L);this.vertical?(t(this,f).style.width=n+"px",t(this,f).style.height="100%"):(t(this,f).style.height=n+"px",t(this,f).style.width="100%")}else this.vertical?(t(this,f).style.width="100%",t(this,f).style.height="max-content",r(this,P,t(this,f).offsetHeight-t(this,L))):(t(this,f).style.width="max-content",t(this,f).style.height="100%",r(this,P,t(this,f).offsetWidth-t(this,L)));if(!t(this,V).current){const n=getComputedStyle(this),u=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,P,t(this,P)+u),t(this,S).max=t(this,P)}if(t(this,V).current&&t(this,d).length){const n=t(this,d)[t(this,d).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,vt,n.position+n.size+g)}else r(this,vt,t(this,P));if(t(this,st).current&&t(this,d).length){const n=t(this,d)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,Pt,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,Pt)),t(this,Pt)?t(this,Ut).current||o(this,c,Es).call(this):o(this,c,Ps).call(this),t(this,Ss).call(this),tt.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){oe.scrollEntries.register(this),r(this,S,new Zs.Damped(0,{damping:.01,min:0,order:Me.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,rt,new vs.WheelControls({element:t(this,f)})),t(this,rt).changeEvent.subscribe(t(this,He)),r(this,Kt,new vs.KeyboardControls({element:this})),t(this,Kt).changeEvent.subscribe(t(this,He)),r(this,nt,new vs.DragControls({element:t(this,f),rootElement:this})),t(this,nt).changeEvent.subscribe(t(this,He)),r(this,I,new vs.AutoplayControls({culling:this})),t(this,I).changeEvent.subscribe(t(this,ds)),t(this,T).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,qt).subscribe(()=>{o(this,c,Vs).call(this)}),t(this,Ht).subscribe(e=>{t(this,rt).axis=e.current?"max":t(this,T).current}),t(this,be).subscribe(e=>{t(this,nt).inertion=typeof e.current=="number"?e.current:1}),t(this,mt).subscribe(()=>{t(this,k)&&t(this,M).call(this)}),t(this,gt).subscribe(({current:e})=>{t(this,k)&&(e?o(this,c,rs).call(this):o(this,c,Ie).call(this))}),t(this,st).subscribe(e=>{t(this,rt).debounce=e.current,t(this,nt).swipe=e.current,t(this,I).interval=e.current,t(this,k)&&(e.current&&!e.previous&&!t(this,d).length?o(this,c,rs).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,yt).subscribe(e=>{t(this,k)&&(t(this,M).call(this),e.current&&!e.previous&&!t(this,d).length?o(this,c,rs).call(this):!e.current&&e.previous&&t(this,d).length&&o(this,c,Ie).call(this))}),t(this,it).subscribe(e=>{t(this,k)&&(t(this,M).call(this),o(this,c,ue).call(this))}),t(this,V).subscribe(e=>{e.current?(t(this,k)&&(t(this,d).length||(t(this,gt).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,De,0),t(this,S).max=t(this,P),t(this,S).min=0)}),t(this,me).subscribe(e=>{t(this,S).damping=e.current}),t(this,ge).subscribe(e=>{t(this,S).mass=e.current}),t(this,ye).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,j).subscribe(e=>{t(this,I).speed=e.current,!t(this,Et)&&e.current&&!e.previous?t(this,I).connect():!e.current&&e.previous&&t(this,I).disconnect()}),t(this,_t).subscribe(e=>{e.current||(t(this,I).direction=1)}),t(this,J).subscribe(e=>{t(this,k)&&o(this,c,ue).call(this)}),t(this,Wt).subscribe(e=>{t(this,k)&&t(this,J).current&&o(this,c,ue).call(this)}),t(this,Ct).subscribe(e=>{t(this,k)&&t(this,J).current&&o(this,c,ue).call(this)}),t(this,Ee).subscribe(e=>{t(this,k)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,O).subscribe(e=>{t(this,U)||(t(this,d).length&&o(this,c,ue).call(this),this.style.setProperty("--counter",e.current+""))}),t(this,Jt).subscribe(e=>{t(this,Jt).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,Ps).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,Es).call(this))}),t(this,Gt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,ks).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Rs).call(this))}),t(this,fe).observe(),t(this,T).observe(),t(this,qt).observe(),t(this,bt).observe(),t(this,mt).observe(),t(this,gt).observe(),t(this,st).observe(),t(this,Bt).observe(),t(this,$t).observe(),t(this,yt).observe(),t(this,Ht).observe(),t(this,be).observe(),t(this,it).observe(),t(this,V).observe(),t(this,me).observe(),t(this,ge).observe(),t(this,ye).observe(),t(this,Ce).observe(),t(this,Te).observe(),t(this,ve).observe(),t(this,j).observe(),t(this,j).observe(),t(this,Pe).observe(),t(this,_t).observe(),t(this,J).observe(),t(this,Wt).observe(),t(this,Ct).observe(),t(this,Ee).observe(),t(this,Nt).observe(),t(this,we).observe(),t(this,Ut).observe(),t(this,Gt).observe(),pt.windowResizer.subscribe(t(this,_e),Me.RESIZE_ORDER.LAST),t(this,Be).observe(this,{childList:!0})}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,fe).unobserve(),t(this,T).unobserve(),t(this,qt).unobserve(),t(this,bt).unobserve(),t(this,mt).unobserve(),t(this,gt).unobserve(),t(this,st).unobserve(),t(this,Bt).unobserve(),t(this,$t).unobserve(),t(this,yt).unobserve(),t(this,Ht).unobserve(),t(this,be).unobserve(),t(this,it).unobserve(),t(this,V).unobserve(),t(this,me).unobserve(),t(this,ge).unobserve(),t(this,ye).unobserve(),t(this,Ce).unobserve(),t(this,Te).unobserve(),t(this,ve).unobserve(),t(this,j).unobserve(),t(this,Pe).unobserve(),t(this,_t).unobserve(),t(this,J).unobserve(),t(this,Wt).unobserve(),t(this,Ct).unobserve(),t(this,Ee).unobserve(),t(this,Nt).unobserve(),t(this,we).unobserve(),t(this,Ut).unobserve(),t(this,Gt).unobserve(),pt.windowResizer.unsubscribe(t(this,_e)),pt.windowResizer.unsubscribe(t(this,M)),hs.elementResizer.unsubscribe(t(this,M)),o(this,c,ks).call(this),t(this,Be).disconnect()}}S=new WeakMap,fe=new WeakMap,T=new WeakMap,qt=new WeakMap,bt=new WeakMap,mt=new WeakMap,gt=new WeakMap,st=new WeakMap,Bt=new WeakMap,$t=new WeakMap,yt=new WeakMap,Ht=new WeakMap,be=new WeakMap,it=new WeakMap,V=new WeakMap,me=new WeakMap,ge=new WeakMap,ye=new WeakMap,Ce=new WeakMap,Te=new WeakMap,ve=new WeakMap,j=new WeakMap,Pe=new WeakMap,_t=new WeakMap,J=new WeakMap,Wt=new WeakMap,Ct=new WeakMap,Ee=new WeakMap,Nt=new WeakMap,we=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,Zt=new WeakMap,f=new WeakMap,Oe=new WeakMap,W=new WeakMap,d=new WeakMap,cs=new WeakMap,us=new WeakMap,L=new WeakMap,P=new WeakMap,N=new WeakMap,rt=new WeakMap,Kt=new WeakMap,nt=new WeakMap,I=new WeakMap,O=new WeakMap,De=new WeakMap,vt=new WeakMap,Pt=new WeakMap,Et=new WeakMap,U=new WeakMap,qe=new WeakMap,jt=new WeakMap,Jt=new WeakMap,xe=new WeakMap,ht=new WeakMap,k=new WeakMap,Be=new WeakMap,wt=new WeakMap,Le=new WeakMap,$e=new WeakMap,c=new WeakSet,Vs=function(){const e=t(this,T).current,s=t(this,qt).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,rt).axis=t(this,Ht).current?"max":e,t(this,Kt).dimension=e==="x"?"width":"height",t(this,nt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,k)&&t(this,M).call(this)},rs=function(){o(this,c,Ie).call(this),t(this,Oe).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,W).push(new vi(e,s,this))}),r(this,d,[...t(this,W)]),t(this,f).style.transform="",tt.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,M).call(this),o(this,c,ue).call(this)},Ie=function(){t(this,W).forEach(e=>{e.destroy()}),r(this,W,[]),r(this,d,[]),t(this,O).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),tt.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},Ps=function(){t(this,Et)||(r(this,Et,!0),t(this,S).unsubscribe(t(this,as)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,qe)),clearInterval(t(this,jt)),t(this,Jt).unlistenAnimationFrame(),t(this,rt).disconnect(),t(this,Kt).disconnect(),t(this,nt).disconnect(),t(this,I).disconnect(),t(this,Pt)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,M).call(this)))},Es=function(){t(this,Et)&&(r(this,Et,!1),t(this,S).subscribe(t(this,as),-1e4),t(this,S).notify(),t(this,rt).connect(),t(this,Kt).connect(),t(this,nt).connect(),t(this,j).current&&t(this,I).connect())},ks=function(){t(this,U)||(r(this,U,!0),clearTimeout(t(this,$e)),pt.windowResizer.unsubscribe(t(this,M)),o(this,c,Ps).call(this),t(this,f).style.transform="",t(this,f).style.height="",t(this,f).style.width="",this.classList.remove("has-overflow","start","end"),this.style.removeProperty("--counter"),t(this,W).length?o(this,c,Ie).call(this):(t(this,O).reset(),t(this,S).reset()),oe.scrollEntries.unregister(this))},Rs=function(){t(this,U)&&(r(this,U,!1),oe.scrollEntries.register(this),this.tryResplit(),o(this,c,Es).call(this),this.scrollToSection(t(this,ve).current,{behaviour:"instant"}),pt.windowResizer.subscribe(t(this,M),Me.RESIZE_ORDER.SCROLL))},M=new WeakMap,as=new WeakMap,Ks=function(e){let s=t(this,O).current;return t(this,V).current?s=Us.loopNumber(e,t(this,d).length):s=Ts.clamp(e,0,this.limit),s},He=new WeakMap,ds=new WeakMap,As=function(e=1){t(this,_t).current&&(t(this,I).direction=e),t(this,j).current&&t(this,I).pauseAndContinue(t(this,Pe).current,this.sectionalCSSProperty.current)},Is=function(e="current"){if(t(this,V).current&&t(this,d).length){const s=t(this,S)[e]%Math.round(t(this,P)+t(this,L)+t(this,N));return s<0?t(this,P)+s+t(this,L)+t(this,N):s}else return t(this,S)[e]},ue=function(){if(t(this,d).length){const e=t(this,O).current+t(this,Wt).current;if(e===0?r(this,ht,"start"):e===this.limit?r(this,ht,"end"):r(this,ht,null),tt.dispatchEvent(this,"scrollLine",{detail:{line:t(this,ht)}}),t(this,J).current){this.classList.remove("end","start"),t(this,ht)&&this.classList.add(t(this,ht));const s=t(this,it).current+t(this,Ct).current;r(this,wt,[]),t(this,d).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,Ct).current,y=e+s,v=this.sections.length-y;u>=e&&u<y||u<=g?(n.setMark("current"),t(this,wt).push(n)):u>=y&&u<y+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,Ss).call(this)}}},js=function(){if(t(this,J).current){const e=Math.floor(t(this,wt).length/2);t(this,wt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,wt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)})}},Ss=new WeakMap,ns=function(e=!1){let s=this.targetScrollValue,n=1/0,u=0;const g=t(this,S).direction;for(let y=0;y<t(this,d).length;y++){const v=t(this,d)[y];let le=t(this,xe)?v.size*g*-1*.4:0,Ae=v.position;this.overscroll&&Ae===0&&e&&(Ae=t(this,vt));let ss=Math.abs(Ae+le-s);ss<=n&&(n=ss,u=y)}return u},_e=new WeakMap;K.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",xs);var ps;class Cs extends HTMLElement{constructor(){super(...arguments);i(this,ps,null)}get scrollElement(){return t(this,ps)}connectedCallback(){const e=Ci.findParentElement(this,xs);e instanceof xs?r(this,ps,e):console.error(this,"e-scroll not found")}}ps=new WeakMap;var Qt,D,xt,Lt,We,Ne,Xt,Ue,fs,bs;class Js extends Cs{constructor(){super();i(this,Qt,null);i(this,D,null);i(this,xt,!1);i(this,Lt,0);i(this,We,0);i(this,Ne,0);i(this,Xt,()=>{r(this,xt,this.offsetWidth>this.offsetHeight);const e=t(this,xt)?this.offsetWidth:this.offsetHeight;r(this,Lt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,Lt,Math.max(t(this,Lt),30)),t(this,xt)?(t(this,D).style.width=t(this,Lt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,Lt)+"px"),r(this,We,e-t(this,Lt)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ue).call(this)});i(this,Ue,()=>{r(this,Ne,this.scrollElement.currentProgress*t(this,We)),t(this,xt)?t(this,D).style.transform=`translate3d(${t(this,Ne)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,Ne)}px, 0px)`});i(this,fs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,bs,e=>{document.documentElement.classList.add("grabbing"),yi.setupDrag(u=>{const g=t(this,xt)?u.x:u.y,y=this.scrollElement.distance/t(this,We),v=(g-n)*y;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,xt)?e.x:e.y});if(K.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Gs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})],r(this,Qt,document.createElement("slot")),t(this,Qt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Qt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Qt).assignedElements()[0]||t(this,Qt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,bs)),pt.windowResizer.subscribe(t(this,Xt),Me.RESIZE_ORDER.SCROLL),hs.elementResizer.subscribe(this,t(this,Xt)),hs.elementResizer.subscribe(this.scrollElement,t(this,Xt)),this.scrollElement.onScroll(t(this,Ue)),this.scrollElement.axisCSSProperty.subscribe(t(this,fs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,bs)),pt.windowResizer.unsubscribe(t(this,Xt)),hs.elementResizer.unsubscribe(t(this,Xt)),this.scrollElement.offScroll(t(this,Ue)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,fs))}}Qt=new WeakMap,D=new WeakMap,xt=new WeakMap,Lt=new WeakMap,We=new WeakMap,Ne=new WeakMap,Xt=new WeakMap,Ue=new WeakMap,fs=new WeakMap,bs=new WeakMap;K.isBrowser&&!customElements.get("e-scrollbar")&&customElements.define("e-scrollbar",Js);var Ge,Ze,Ke;class Os extends Cs{constructor(){super();i(this,Ge,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Ze,new l.CSSProperty(this,"--tween-easing",!1));i(this,Ke,new l.CSSProperty(this,"--tween-duration",0));K.isBrowser&&this.addEventListener("click",()=>{const e=t(this,Ge).current,s=t(this,Ze).current,n=t(this,Ke).current;this.handleClick({behaviour:e,tween:s||n?{easing:s,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,Ge).observe(),t(this,Ze).observe(),t(this,Ke).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,Ge).close(),t(this,Ze).close(),t(this,Ke).close()}}Ge=new WeakMap,Ze=new WeakMap,Ke=new WeakMap;var je;class Qs extends Os{constructor(){super(...arguments);i(this,je,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,je).current,e)}connectedCallback(){super.connectedCallback(),t(this,je).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,je).close()}}je=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",Qs);var zt,Je;class Xs extends Os{constructor(){super(...arguments);i(this,zt,new l.CSSProperty(this,"--step",1));i(this,Je,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,zt).current>0&&this.scrollElement.scrollLine==="end"||t(this,zt).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,zt).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,zt).subscribe(()=>{t(this,Je).call(this)}),t(this,zt).observe(),this.scrollElement.addEventListener("scrollLine",t(this,Je)),t(this,Je).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,zt).close(),this.removeAttribute("disabled")}}zt=new WeakMap,Je=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",Xs);var ot,Yt,Qe,ms,gs,Xe;class Ei{constructor(h,e,s){i(this,ot,null);i(this,Yt,null);i(this,Qe,null);i(this,ms,null);i(this,gs,()=>{t(this,Yt).scrollToSection(t(this,Qe),{behaviour:t(this,ms)})});i(this,Xe,()=>{t(this,ot).classList.toggle("current",t(this,Yt).counter.current===t(this,Qe))});K.isBrowser&&(r(this,ot,document.createElement("button")),t(this,ot).setAttribute("aria-label",`Go to section ${e+1}`),r(this,Yt,h),r(this,ms,s),r(this,Qe,e),t(this,ot).addEventListener("click",t(this,gs)),t(this,Yt).counter.subscribe(t(this,Xe)),t(this,Xe).call(this))}get element(){return t(this,ot)}destroy(){t(this,ot).removeEventListener("click",t(this,gs)),t(this,Yt).counter.unsubscribe(t(this,Xe)),t(this,ot).remove()}}ot=new WeakMap,Yt=new WeakMap,Qe=new WeakMap,ms=new WeakMap,gs=new WeakMap,Xe=new WeakMap;var ze,te,Vt;class Ys extends Cs{constructor(){super(...arguments);i(this,ze,null);i(this,te,[]);i(this,Vt,ws.debounce(()=>{t(this,te).forEach(s=>s.destroy()),r(this,te,[]);let e=0;this.scrollElement.loopCSSProperty.current?e=this.scrollElement.visibleSections.length:e=this.scrollElement.visibleSections.length-Math.max(this.scrollElement.sectionsInViewCSSProperty.current-1,0);for(let s=0;s<e;s++){const n=new Ei(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,ze).appendChild(n.element),t(this,te).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",this.scrollElement.addEventListener("scrollSectionsChange",t(this,Vt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,Vt)),this.scrollElement.loopCSSProperty.subscribe(t(this,Vt)),r(this,ze,document.createElement("div")),this.appendChild(t(this,ze))}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,Vt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,Vt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,Vt)),t(this,te).forEach(e=>e.destroy()),r(this,te,[]),t(this,ze).remove()}}ze=new WeakMap,te=new WeakMap,Vt=new WeakMap;K.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",Ys);var ee,se,ie,re,kt,Rt,At,It,R,q,B,$,Mt,z,lt,ct,Q,Ft,Ve,ut,at,dt,w,H,_,X,Y,G,Ye,m,Tt,ne,ts,x,St,F,A,Z,ke,Ot,C,he,b,ei,si,ii,ri,ni,hi,es,Re,Ms,ae,oi,li,Fs;class ti extends Cs{constructor(){super(...arguments);i(this,b);i(this,ee);i(this,se);i(this,ie);i(this,re);i(this,kt);i(this,Rt);i(this,At);i(this,It);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Mt);i(this,z);i(this,lt);i(this,ct);i(this,Q);i(this,Ft);i(this,Ve);i(this,ut);i(this,at);i(this,dt);i(this,w);i(this,H);i(this,_);i(this,X);i(this,Y);i(this,G);i(this,Ye);i(this,m);i(this,Tt);i(this,ne);i(this,ts);i(this,x);i(this,St);i(this,F);i(this,A);i(this,Z);i(this,ke);i(this,Ot);i(this,C);i(this,he);i(this,es);i(this,Re);r(this,ee,new l.CSSProperty(this,"--damping",20)),r(this,se,new l.CSSProperty(this,"--mass",0)),r(this,ie,new l.CSSProperty(this,"--stiffness",0)),r(this,re,new l.CSSProperty(this,"--target","")),r(this,kt,new l.CSSProperty(this,"--disabled",!1)),r(this,Rt,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,At,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,It,new l.CSSProperty(this,"--capture-once",!1)),r(this,R,new l.CSSProperty(this,"--captured","")),r(this,q,new l.CSSProperty(this,"--released","")),r(this,B,new l.CSSProperty(this,"--captured-from-start","")),r(this,$,new l.CSSProperty(this,"--captured-from-finish","")),r(this,Mt,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,lt,new l.CSSProperty(this,"--passed-var","")),r(this,ct,new l.CSSProperty(this,"--progress-var","")),r(this,Q,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Ft,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ve,new l.CSSProperty(this,"--animation-var-type","target")),r(this,ut,new l.CSSProperty(this,"--distance-var","")),r(this,at,new l.CSSProperty(this,"--start-var","")),r(this,dt,new l.CSSProperty(this,"--finish-var","")),r(this,w,new ce.Store(!1)),r(this,H,new ce.Store(!1)),r(this,_,new ce.Store(!1)),r(this,X,new ce.Store(!1)),r(this,Y,new ce.Store(!1)),r(this,G,new ce.Store(!1)),r(this,Ye,[]),r(this,m,this),r(this,Tt,0),r(this,ne,0),r(this,ts,0),r(this,x,new Zs.Damped(0,{order:Me.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,St,0),r(this,F,0),r(this,A,0),r(this,Z,0),r(this,ke,!1),r(this,Ot,!1),r(this,C,!0),r(this,he,!1),this.resize=()=>{r(this,ne,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Tt,this.scrollElement.vertical?et.getCumulativeOffsetTop(this,this.scrollElement):et.getCumulativeOffsetLeft(this,this.scrollElement));const e=et.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,Tt,t(this,Tt)-e),r(this,F,this.getStart()),r(this,A,this.getDistance()),r(this,F,t(this,F)+t(this,At).current),r(this,A,t(this,A)+t(this,Rt).current),r(this,Z,t(this,F)+t(this,A)),this.scrollElement.currentScrollValue>t(this,Z)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,at).current,t(this,F)),this.setVar(t(this,dt).current,t(this,Z)),this.setVar(t(this,ut).current,t(this,A)),t(this,x).max=t(this,A),r(this,ke,!0),t(this,Re).call(this)},this.findAnotherScrollEntries=ws.debounce(()=>{const e=oe.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,Ye,e.slice(s+1)),this.tick()},0),r(this,es,()=>{t(this,C)||this.resize()}),r(this,Re,()=>{!t(this,C)&&t(this,ke)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,Rt)}get startOffsetCSSProperty(){return t(this,At)}get captureOnceCSSProperty(){return t(this,It)}get capturedCSSProperty(){return t(this,R)}get releasedCSSProperty(){return t(this,q)}get capturedFromStartCSSProperty(){return t(this,B)}get capturedFromFinishCSSProperty(){return t(this,$)}get releasedFromStartCSSProperty(){return t(this,Mt)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,lt)}get progressVarCSSProperty(){return t(this,ct)}get progressArcVarCSSProperty(){return t(this,Q)}get progressArcMultCSSProperty(){return t(this,Ft)}get animationVarTypeCSSProperty(){return t(this,Ve)}get distanceVarCSSProperty(){return t(this,ut)}get startVarCSSProperty(){return t(this,at)}get finishVarCSSProperty(){return t(this,dt)}get disabledCSSProperty(){return t(this,kt)}get dampingCSSProperty(){return t(this,ee)}get massCSSProperty(){return t(this,se)}get stiffnessCSSProperty(){return t(this,ie)}get targetCSSProperty(){return t(this,re)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,_)}get isReleasedFromStart(){return t(this,X)}get isCapturedFromFinish(){return t(this,Y)}get isReleasedFromFinish(){return t(this,G)}get directionPosition(){return t(this,Tt)}get directionSize(){return t(this,ne)}get passed(){return t(this,x)}get progress(){return t(this,St)}get progressArc(){return Math.abs(Math.cos(t(this,St)*Math.PI))*t(this,Ft).current}get start(){return t(this,F)}get finish(){return t(this,Z)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,Ot)}get isDisabled(){return t(this,C)}tick(){let e=this.scrollElement.currentScrollValue;t(this,Ye).forEach(u=>{e+=u.value});const s=e-t(this,F);t(this,he)||r(this,he,t(this,x).previous?Math.abs(t(this,x).previous-s)>1e3:!1),t(this,x).set(s);const n=Math.round(e);t(this,w).current&&(n>=t(this,F)?t(this,_).current||o(this,b,ii).call(this):t(this,_).current&&!t(this,X).current&&o(this,b,ni).call(this),n<t(this,Z)?t(this,G).current&&!t(this,Y).current&&o(this,b,ri).call(this):t(this,_).current&&!t(this,G).current&&o(this,b,hi).call(this)),n>=t(this,F)&&n<t(this,Z)?t(this,w).current||o(this,b,ei).call(this):t(this,w).current&&(t(this,x).set(Ts.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,si).call(this)),t(this,Ot)&&t(this,It).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,C,!0))}disable(){this.style.cssText="",r(this,Tt,0),r(this,ne,0),t(this,x).reset(),r(this,St,0),r(this,F,0),r(this,A,0),r(this,Z,0),r(this,ke,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,_).current=!1,t(this,X).current=!1,t(this,Y).current=!1,t(this,G).current=!1,r(this,Ot,!1),r(this,C,!0),o(this,b,Fs).call(this)}enable(){r(this,C,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,_).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,Y).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,X).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,G).subscribe(s=>{s.current&&tt.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,ee).observe(),t(this,se).observe(),t(this,ie).observe(),t(this,re).observe(),t(this,kt).observe(),t(this,Rt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Mt).observe(),t(this,z).observe(),t(this,lt).observe(),t(this,ct).observe(),t(this,Q).observe(),t(this,Ft).observe(),t(this,Ve).observe(),t(this,ut).observe(),t(this,at).observe(),t(this,dt).observe();let e=!1;this.findAnotherScrollEntries(),t(this,kt).current||this.enable(),t(this,ee).subscribe(s=>{t(this,x).damping=s.current}),t(this,se).subscribe(s=>{t(this,x).mass=s.current}),t(this,ie).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,re).subscribe(s=>{s.previous&&o(this,b,Fs).call(this),s.current?s.current==="parent"?r(this,m,this.parentElement||this):r(this,m,document.querySelector(s.current)||this):r(this,m,this)}),t(this,kt).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,At).subscribe(()=>{e&&!t(this,C)&&this.resize()}),t(this,Rt).subscribe(()=>{e&&!t(this,C)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,Mt).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,ae).call(this,s)}),t(this,It).subscribe(s=>{t(this,C)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,lt).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,ct).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,St)))}),t(this,Q).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Ft).subscribe(s=>{t(this,C)||o(this,b,Ms).call(this)}),t(this,at).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,F)))}),t(this,dt).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,Z)))}),t(this,ut).subscribe(s=>{t(this,C)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,he)){r(this,he,!1);return}o(this,b,Ms).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),pt.windowResizer.subscribe(t(this,es),Me.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Re)),e=!0}disconnectedCallback(){pt.windowResizer.unsubscribe(t(this,es)),this.scrollElement.offScroll(t(this,Re)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,ee).close(),t(this,se).close(),t(this,ie).close(),t(this,re).close(),t(this,kt).close(),t(this,Rt).close(),t(this,At).close(),t(this,It).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Mt).close(),t(this,z).close(),t(this,lt).close(),t(this,ct).close(),t(this,Q).close(),t(this,Ft).close(),t(this,ut).close(),t(this,at).close(),t(this,dt).close(),t(this,w).close(),t(this,H).close(),t(this,_).close(),t(this,X).close(),t(this,Y).close(),t(this,G).close(),this.disable(),t(this,x).close()}removeVar(e){e&&t(this,m).style.removeProperty(`--${e}`)}setVar(e,s){if(e){const n=typeof s=="number"?s.toFixed(6):s;t(this,m).style.setProperty(`--${e}`,n)}}getDistance(){return t(this,ne)+t(this,ts)}getStart(){return t(this,Tt)-t(this,ts)}}ee=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,kt=new WeakMap,Rt=new WeakMap,At=new WeakMap,It=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Mt=new WeakMap,z=new WeakMap,lt=new WeakMap,ct=new WeakMap,Q=new WeakMap,Ft=new WeakMap,Ve=new WeakMap,ut=new WeakMap,at=new WeakMap,dt=new WeakMap,w=new WeakMap,H=new WeakMap,_=new WeakMap,X=new WeakMap,Y=new WeakMap,G=new WeakMap,Ye=new WeakMap,m=new WeakMap,Tt=new WeakMap,ne=new WeakMap,ts=new WeakMap,x=new WeakMap,St=new WeakMap,F=new WeakMap,A=new WeakMap,Z=new WeakMap,ke=new WeakMap,Ot=new WeakMap,C=new WeakMap,he=new WeakMap,b=new WeakSet,ei=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,Ot,!0),t(this,q).current&&t(this,m).classList.remove(t(this,q).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,R).current&&t(this,m).classList.add(t(this,R).current)},si=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,Ot,!0),t(this,R).current&&t(this,m).classList.remove(t(this,R).current),t(this,B).current&&t(this,m).classList.remove(t(this,B).current),t(this,$).current&&t(this,m).classList.remove(t(this,$).current),t(this,q).current&&t(this,m).classList.add(t(this,q).current)},ii=function(){t(this,w).current=!0,t(this,_).current=!0,t(this,X).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},ri=function(){t(this,w).current=!0,t(this,Y).current=!0,t(this,G).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ni=function(){t(this,H).current=!0,t(this,X).current=!0,t(this,_).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},hi=function(){t(this,H).current=!0,t(this,G).current=!0,t(this,Y).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},es=new WeakMap,Re=new WeakMap,Ms=function(){const e=t(this,x)[t(this,Ve).current];this.setVar(t(this,lt).current,e),r(this,St,e/t(this,A)||0),this.setVar(t(this,ct).current,t(this,St)),t(this,Q).current&&this.setVar(t(this,Q).current,this.progressArc)},ae=function(e){if(t(this,C)){e.previous&&t(this,m).classList.remove(e.previous),e.current&&t(this,m).classList.remove(e.current);return}e.current&&t(this,w).current?(e.previous&&t(this,m).classList.remove(e.previous),t(this,m).classList.add(e.current)):!e.current&&e.previous&&t(this,m).classList.remove(e.previous)},oi=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},li=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Fs=function(){o(this,b,oi).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Mt).current,t(this,z).current),o(this,b,li).call(this,t(this,lt).current,t(this,ct).current,t(this,Q).current,t(this,ut).current,t(this,at).current,t(this,dt).current)};K.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ti);class ci extends Os{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?et.getCumulativeOffsetTop(this):et.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}K.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",ci);var ys;const Ds=class Ds extends Cs{constructor(){super(...arguments);i(this,ys,()=>{this.textContent=`${this.scrollElement.counter.current+1}`})}connectedCallback(){return Ws(this,null,function*(){_s(Ds.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,ys))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,ys))}};ys=new WeakMap;let Ls=Ds;K.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",Ls);exports.ScrollBulletButtonsElement=Ys;exports.ScrollCounterElement=Ls;exports.ScrollElement=xs;exports.ScrollSectionButtonElement=ci;exports.ScrollSegmentElement=ti;exports.ScrollSetButtonElement=Qs;exports.ScrollStepButtonElement=Xs;exports.ScrollbarElement=Js;
|
package/lib/scroll/index.js
CHANGED
|
@@ -54,7 +54,7 @@ import "construct-style-sheets-polyfill";
|
|
|
54
54
|
import { elementResizer as rs } from "../element-resizer/index.js";
|
|
55
55
|
import { s as Ci } from "../gestures-CcXV6fCp.js";
|
|
56
56
|
import { b as Pi } from "../dom-CVWzyXPH.js";
|
|
57
|
-
var p, Me, w, os, ls, ae, pt,
|
|
57
|
+
var p, Me, w, os, ls, ae, pt, Dt, de, fe, es;
|
|
58
58
|
class wi {
|
|
59
59
|
constructor(n, e, s) {
|
|
60
60
|
i(this, fe);
|
|
@@ -65,7 +65,7 @@ class wi {
|
|
|
65
65
|
i(this, ls, 0);
|
|
66
66
|
i(this, ae, 0);
|
|
67
67
|
i(this, pt, 0);
|
|
68
|
-
i(this,
|
|
68
|
+
i(this, Dt, null);
|
|
69
69
|
i(this, de, 0);
|
|
70
70
|
r(this, p, n), r(this, Me, e), r(this, w, s), ne.register(t(this, p)), this.setIndex(t(this, Me));
|
|
71
71
|
}
|
|
@@ -115,10 +115,10 @@ class wi {
|
|
|
115
115
|
r(this, de, v * -1), t(this, w).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, de)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, de)}px, 0px, 0px)`;
|
|
116
116
|
}
|
|
117
117
|
setMark(n) {
|
|
118
|
-
t(this,
|
|
118
|
+
t(this, Dt) !== n && (t(this, Dt) && t(this, p).classList.remove(t(this, Dt)), n && t(this, p).classList.add(n), r(this, Dt, n), tt(t(this, p), "scrollSectionMarkChange", {
|
|
119
119
|
composed: !0,
|
|
120
120
|
detail: {
|
|
121
|
-
mark: t(this,
|
|
121
|
+
mark: t(this, Dt)
|
|
122
122
|
},
|
|
123
123
|
custom: !0
|
|
124
124
|
}));
|
|
@@ -139,7 +139,7 @@ class wi {
|
|
|
139
139
|
o(this, fe, es).call(this, "current-index-arc-abs", n);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
p = new WeakMap(), Me = new WeakMap(), w = new WeakMap(), os = new WeakMap(), ls = new WeakMap(), ae = new WeakMap(), pt = new WeakMap(),
|
|
142
|
+
p = new WeakMap(), Me = new WeakMap(), w = new WeakMap(), os = new WeakMap(), ls = new WeakMap(), ae = new WeakMap(), pt = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), fe = new WeakSet(), es = function(n, e) {
|
|
143
143
|
e !== null ? (t(this, p).style.setProperty(`--${n}`, e.toString()), t(this, p).setAttribute(`data-${n}`, e.toString())) : (t(this, p).style.removeProperty(`--${n}`), t(this, p).removeAttribute(`data-${n}`));
|
|
144
144
|
};
|
|
145
145
|
const Ei = Us({
|
|
@@ -181,7 +181,7 @@ const Ei = Us({
|
|
|
181
181
|
flexShrink: "0"
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
var f, pe, R,
|
|
184
|
+
var f, pe, R, Ot, bt, mt, St, et, $t, Ht, gt, Bt, be, st, V, me, Se, ge, ve, Fe, ye, j, Ce, Wt, J, Nt, vt, Pe, qt, we, Gt, Ut, Kt, b, Te, q, d, cs, us, L, P, G, it, Zt, rt, M, D, Re, yt, Ct, Pt, U, De, _t, jt, Ee, ht, k, Oe, wt, xe, $e, c, zs, ss, Ie, Cs, Ps, Vs, ks, F, as, _s, He, ds, As, Is, ce, js, fs, is, Be;
|
|
185
185
|
class Ls extends HTMLElement {
|
|
186
186
|
constructor() {
|
|
187
187
|
super();
|
|
@@ -189,25 +189,25 @@ class Ls extends HTMLElement {
|
|
|
189
189
|
i(this, f, null);
|
|
190
190
|
i(this, pe, new l(this, "--controls", !0));
|
|
191
191
|
i(this, R, new l(this, "--axis", "y"));
|
|
192
|
-
i(this,
|
|
192
|
+
i(this, Ot, new l(this, "--reverse", !1));
|
|
193
193
|
i(this, bt, new l(this, "--direction", 0));
|
|
194
194
|
i(this, mt, new l(this, "--pages", 0, {
|
|
195
195
|
validate: (e) => Math.max(0, e - 1)
|
|
196
196
|
}));
|
|
197
197
|
i(this, St, new l(this, "--split", !1));
|
|
198
198
|
i(this, et, new l(this, "--sectional", !1));
|
|
199
|
-
i(this,
|
|
199
|
+
i(this, $t, new l(
|
|
200
200
|
this,
|
|
201
201
|
"--tween-easing",
|
|
202
202
|
!1
|
|
203
203
|
));
|
|
204
|
-
i(this,
|
|
204
|
+
i(this, Ht, new l(
|
|
205
205
|
this,
|
|
206
206
|
"--tween-duration",
|
|
207
207
|
!1
|
|
208
208
|
));
|
|
209
209
|
i(this, gt, new l(this, "--auto-size", !1));
|
|
210
|
-
i(this,
|
|
210
|
+
i(this, Bt, new l(
|
|
211
211
|
this,
|
|
212
212
|
"--wheel-max-delta",
|
|
213
213
|
!1
|
|
@@ -235,13 +235,13 @@ class Ls extends HTMLElement {
|
|
|
235
235
|
"--autoplay-pause-duration",
|
|
236
236
|
0
|
|
237
237
|
));
|
|
238
|
-
i(this,
|
|
238
|
+
i(this, Wt, new l(
|
|
239
239
|
this,
|
|
240
240
|
"--autoplay-user-direction",
|
|
241
241
|
!1
|
|
242
242
|
));
|
|
243
243
|
i(this, J, new l(this, "--classes", !1));
|
|
244
|
-
i(this,
|
|
244
|
+
i(this, Nt, new l(
|
|
245
245
|
this,
|
|
246
246
|
"--current-index-start-offset",
|
|
247
247
|
0
|
|
@@ -257,14 +257,14 @@ class Ls extends HTMLElement {
|
|
|
257
257
|
0,
|
|
258
258
|
{ rawValueCheck: !1 }
|
|
259
259
|
));
|
|
260
|
-
i(this,
|
|
260
|
+
i(this, qt, new l(this, "--focus-delay", 0));
|
|
261
261
|
i(this, we, new l(
|
|
262
262
|
this,
|
|
263
263
|
"--focus-duration",
|
|
264
264
|
3e3
|
|
265
265
|
));
|
|
266
|
-
i(this,
|
|
267
|
-
i(this,
|
|
266
|
+
i(this, Gt, new l(this, "--disabled", !1));
|
|
267
|
+
i(this, Ut, new l(this, "--hibernate", !1));
|
|
268
268
|
i(this, Kt, null);
|
|
269
269
|
i(this, b, null);
|
|
270
270
|
i(this, Te, null);
|
|
@@ -281,9 +281,9 @@ class Ls extends HTMLElement {
|
|
|
281
281
|
i(this, M, null);
|
|
282
282
|
i(this, D, new le(0));
|
|
283
283
|
i(this, Re, 0);
|
|
284
|
-
i(this,
|
|
285
|
-
i(this,
|
|
286
|
-
i(this,
|
|
284
|
+
i(this, yt, 0);
|
|
285
|
+
i(this, Ct, !1);
|
|
286
|
+
i(this, Pt, !0);
|
|
287
287
|
i(this, U, !0);
|
|
288
288
|
i(this, De);
|
|
289
289
|
i(this, _t);
|
|
@@ -292,7 +292,7 @@ class Ls extends HTMLElement {
|
|
|
292
292
|
i(this, ht, null);
|
|
293
293
|
i(this, k, !1);
|
|
294
294
|
i(this, Oe, null);
|
|
295
|
-
i(this,
|
|
295
|
+
i(this, wt, []);
|
|
296
296
|
i(this, xe, !1);
|
|
297
297
|
i(this, $e);
|
|
298
298
|
i(this, F, (e) => {
|
|
@@ -303,7 +303,7 @@ class Ls extends HTMLElement {
|
|
|
303
303
|
this.resize();
|
|
304
304
|
});
|
|
305
305
|
i(this, as, () => {
|
|
306
|
-
if (!t(this,
|
|
306
|
+
if (!t(this, Ct) || t(this, U) || t(this, Pt))
|
|
307
307
|
return;
|
|
308
308
|
const e = this.currentScrollValue;
|
|
309
309
|
if (r(this, Re, Math.max(0, e - t(this, P))), t(this, d).length) {
|
|
@@ -329,7 +329,7 @@ class Ls extends HTMLElement {
|
|
|
329
329
|
if (t(this, bt).current > 0 && s < 0)
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
|
-
if (!t(this, j).current && t(this,
|
|
332
|
+
if (!t(this, j).current && t(this, qt).current && (clearInterval(t(this, De)), r(this, De, setTimeout(() => {
|
|
333
333
|
const h = t(this, d)[o(this, c, is).call(this)];
|
|
334
334
|
h && this.scrollToSection(h.index, {
|
|
335
335
|
tween: {
|
|
@@ -337,14 +337,14 @@ class Ls extends HTMLElement {
|
|
|
337
337
|
easing: ci
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
|
-
}, t(this,
|
|
340
|
+
}, t(this, qt).current))), !(e.includes("drag") && !yi.isTouch && !t(this, ve).current)) {
|
|
341
341
|
if (t(this, et).current && e !== "drag") {
|
|
342
342
|
const h = Math.sign(s);
|
|
343
343
|
if (t(this, d).length) {
|
|
344
344
|
const u = {
|
|
345
|
-
tween: t(this,
|
|
346
|
-
easing: t(this,
|
|
347
|
-
duration: t(this,
|
|
345
|
+
tween: t(this, $t).current || t(this, Ht).current ? {
|
|
346
|
+
easing: t(this, $t).current || "easeInOutCubic",
|
|
347
|
+
duration: t(this, Ht).current || 500
|
|
348
348
|
} : void 0
|
|
349
349
|
};
|
|
350
350
|
t(this, Ee) ? this.scrollToSection(o(this, c, is).call(this, !0), u) : this.shiftSections(h, u);
|
|
@@ -357,7 +357,7 @@ class Ls extends HTMLElement {
|
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
i(this, fs, ws(() => {
|
|
360
|
-
const e = t(this,
|
|
360
|
+
const e = t(this, wt).reduce((s, h) => {
|
|
361
361
|
const u = this.vertical ? h.width : h.height;
|
|
362
362
|
return u > s ? u : s;
|
|
363
363
|
}, 0);
|
|
@@ -389,7 +389,7 @@ class Ls extends HTMLElement {
|
|
|
389
389
|
return t(this, R);
|
|
390
390
|
}
|
|
391
391
|
get reverseCSSProperty() {
|
|
392
|
-
return t(this,
|
|
392
|
+
return t(this, Ot);
|
|
393
393
|
}
|
|
394
394
|
get directionCSSProperty() {
|
|
395
395
|
return t(this, bt);
|
|
@@ -404,16 +404,16 @@ class Ls extends HTMLElement {
|
|
|
404
404
|
return t(this, et);
|
|
405
405
|
}
|
|
406
406
|
get easingCSSProperty() {
|
|
407
|
-
return t(this,
|
|
407
|
+
return t(this, $t);
|
|
408
408
|
}
|
|
409
409
|
get durationCSSProperty() {
|
|
410
|
-
return t(this,
|
|
410
|
+
return t(this, Ht);
|
|
411
411
|
}
|
|
412
412
|
get autoSizeCSSProperty() {
|
|
413
413
|
return t(this, gt);
|
|
414
414
|
}
|
|
415
415
|
get wheelMaxDeltaCSSProperty() {
|
|
416
|
-
return t(this,
|
|
416
|
+
return t(this, Bt);
|
|
417
417
|
}
|
|
418
418
|
get dragInertionCSSProperty() {
|
|
419
419
|
return t(this, be);
|
|
@@ -449,13 +449,13 @@ class Ls extends HTMLElement {
|
|
|
449
449
|
return t(this, Ce);
|
|
450
450
|
}
|
|
451
451
|
get autoplayUserDirectionCSSProperty() {
|
|
452
|
-
return t(this,
|
|
452
|
+
return t(this, Wt);
|
|
453
453
|
}
|
|
454
454
|
get classesCSSProperty() {
|
|
455
455
|
return t(this, J);
|
|
456
456
|
}
|
|
457
457
|
get currentIndexStartOffsetCSSProperty() {
|
|
458
|
-
return t(this,
|
|
458
|
+
return t(this, Nt);
|
|
459
459
|
}
|
|
460
460
|
get currentIndexEndOffsetCSSProperty() {
|
|
461
461
|
return t(this, vt);
|
|
@@ -464,16 +464,16 @@ class Ls extends HTMLElement {
|
|
|
464
464
|
return t(this, Pe);
|
|
465
465
|
}
|
|
466
466
|
get focusDelayCSSProperty() {
|
|
467
|
-
return t(this,
|
|
467
|
+
return t(this, qt);
|
|
468
468
|
}
|
|
469
469
|
get focusDurationCSSProperty() {
|
|
470
470
|
return t(this, we);
|
|
471
471
|
}
|
|
472
472
|
get disabledCSSProperty() {
|
|
473
|
-
return t(this,
|
|
473
|
+
return t(this, Gt);
|
|
474
474
|
}
|
|
475
475
|
get hibernatedCSSProperty() {
|
|
476
|
-
return t(this,
|
|
476
|
+
return t(this, Ut);
|
|
477
477
|
}
|
|
478
478
|
get currentScrollValue() {
|
|
479
479
|
return o(this, c, Is).call(this, "current");
|
|
@@ -517,13 +517,13 @@ class Ls extends HTMLElement {
|
|
|
517
517
|
);
|
|
518
518
|
}
|
|
519
519
|
get distance() {
|
|
520
|
-
return t(this,
|
|
520
|
+
return t(this, yt);
|
|
521
521
|
}
|
|
522
522
|
get loopDistance() {
|
|
523
|
-
return t(this, V).current ? t(this,
|
|
523
|
+
return t(this, V).current ? t(this, yt) + t(this, G) : t(this, yt);
|
|
524
524
|
}
|
|
525
525
|
get hasOverflow() {
|
|
526
|
-
return t(this,
|
|
526
|
+
return t(this, Ct);
|
|
527
527
|
}
|
|
528
528
|
get overscroll() {
|
|
529
529
|
return t(this, Re);
|
|
@@ -592,9 +592,9 @@ class Ls extends HTMLElement {
|
|
|
592
592
|
this.setPosition(t(this, f).target + e, s);
|
|
593
593
|
}
|
|
594
594
|
resize() {
|
|
595
|
-
if (t(this,
|
|
595
|
+
if (t(this, Ut).current)
|
|
596
596
|
return;
|
|
597
|
-
|
|
597
|
+
r(this, d, t(this, q).filter(
|
|
598
598
|
(h) => ui(h.element)
|
|
599
599
|
)), this.style.setProperty(
|
|
600
600
|
"--sections",
|
|
@@ -628,9 +628,9 @@ class Ls extends HTMLElement {
|
|
|
628
628
|
}
|
|
629
629
|
if (t(this, V).current && t(this, d).length) {
|
|
630
630
|
const h = t(this, d)[t(this, d).length - 1], u = h.position + h.size - t(this, L), g = t(this, P) - u;
|
|
631
|
-
r(this,
|
|
631
|
+
r(this, yt, h.position + h.size + g);
|
|
632
632
|
} else
|
|
633
|
-
r(this,
|
|
633
|
+
r(this, yt, t(this, P));
|
|
634
634
|
if (t(this, et).current && t(this, d).length) {
|
|
635
635
|
const h = t(this, d)[s];
|
|
636
636
|
t(this, f).set(h.position, {
|
|
@@ -640,7 +640,7 @@ class Ls extends HTMLElement {
|
|
|
640
640
|
t(this, f).set(e * t(this, P), {
|
|
641
641
|
equalize: !0
|
|
642
642
|
});
|
|
643
|
-
r(this,
|
|
643
|
+
r(this, Ct, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Ct)), t(this, Ct) ? t(this, Gt).current || o(this, c, Ps).call(this) : o(this, c, Cs).call(this), t(this, fs).call(this), tt(this, "scrollResize", { custom: !0 }), t(this, f).notify();
|
|
644
644
|
}
|
|
645
645
|
connectedCallback() {
|
|
646
646
|
ne.register(this), r(this, f, new Zs(0, {
|
|
@@ -658,9 +658,9 @@ class Ls extends HTMLElement {
|
|
|
658
658
|
culling: this
|
|
659
659
|
})), t(this, M).changeEvent.subscribe(t(this, ds)), t(this, R).subscribe(() => {
|
|
660
660
|
o(this, c, zs).call(this);
|
|
661
|
-
}), t(this,
|
|
661
|
+
}), t(this, Ot).subscribe(() => {
|
|
662
662
|
o(this, c, zs).call(this);
|
|
663
|
-
}), t(this,
|
|
663
|
+
}), t(this, Bt).subscribe((e) => {
|
|
664
664
|
t(this, it).axis = e.current ? "max" : t(this, R).current;
|
|
665
665
|
}), t(this, be).subscribe((e) => {
|
|
666
666
|
t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
|
|
@@ -683,12 +683,12 @@ class Ls extends HTMLElement {
|
|
|
683
683
|
}), t(this, ge).subscribe((e) => {
|
|
684
684
|
t(this, f).stiffness = e.current;
|
|
685
685
|
}), t(this, j).subscribe((e) => {
|
|
686
|
-
t(this, M).speed = e.current, !t(this,
|
|
687
|
-
}), t(this,
|
|
686
|
+
t(this, M).speed = e.current, !t(this, Pt) && e.current && !e.previous ? t(this, M).connect() : !e.current && e.previous && t(this, M).disconnect();
|
|
687
|
+
}), t(this, Wt).subscribe((e) => {
|
|
688
688
|
e.current || (t(this, M).direction = 1);
|
|
689
689
|
}), t(this, J).subscribe((e) => {
|
|
690
690
|
t(this, k) && o(this, c, ce).call(this);
|
|
691
|
-
}), t(this,
|
|
691
|
+
}), t(this, Nt).subscribe((e) => {
|
|
692
692
|
t(this, k) && t(this, J).current && o(this, c, ce).call(this);
|
|
693
693
|
}), t(this, vt).subscribe((e) => {
|
|
694
694
|
t(this, k) && t(this, J).current && o(this, c, ce).call(this);
|
|
@@ -700,19 +700,19 @@ class Ls extends HTMLElement {
|
|
|
700
700
|
t(this, U) || (t(this, d).length && o(this, c, ce).call(this), this.style.setProperty("--counter", e.current + ""));
|
|
701
701
|
}), t(this, jt).subscribe((e) => {
|
|
702
702
|
t(this, jt).isRunning.current && t(this, f).set(e.current, { equalize: !0 });
|
|
703
|
-
}), t(this,
|
|
703
|
+
}), t(this, Gt).subscribe((e) => {
|
|
704
704
|
e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Cs).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, Ps).call(this));
|
|
705
|
-
}), t(this,
|
|
706
|
-
|
|
707
|
-
}), t(this, pe).observe(), t(this, R).observe(), t(this,
|
|
705
|
+
}), t(this, Ut).subscribe((e) => {
|
|
706
|
+
e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Vs).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, ks).call(this));
|
|
707
|
+
}), t(this, pe).observe(), t(this, R).observe(), t(this, Ot).observe(), t(this, bt).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, et).observe(), t(this, $t).observe(), t(this, Ht).observe(), t(this, gt).observe(), t(this, Bt).observe(), t(this, be).observe(), t(this, st).observe(), t(this, V).observe(), t(this, me).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, Fe).observe(), t(this, ye).observe(), t(this, j).observe(), t(this, j).observe(), t(this, Ce).observe(), t(this, Wt).observe(), t(this, J).observe(), t(this, Nt).observe(), t(this, vt).observe(), t(this, Pe).observe(), t(this, qt).observe(), t(this, we).observe(), t(this, Gt).observe(), t(this, Ut).observe(), ft.subscribe(t(this, Be), Es.LAST), t(this, Oe).observe(this, { childList: !0 });
|
|
708
708
|
}
|
|
709
709
|
disconnectedCallback() {
|
|
710
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, pe).unobserve(), t(this, R).unobserve(), t(this,
|
|
710
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, pe).unobserve(), t(this, R).unobserve(), t(this, Ot).unobserve(), t(this, bt).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, et).unobserve(), t(this, $t).unobserve(), t(this, Ht).unobserve(), t(this, gt).unobserve(), t(this, Bt).unobserve(), t(this, be).unobserve(), t(this, st).unobserve(), t(this, V).unobserve(), t(this, me).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, Fe).unobserve(), t(this, ye).unobserve(), t(this, j).unobserve(), t(this, Ce).unobserve(), t(this, Wt).unobserve(), t(this, J).unobserve(), t(this, Nt).unobserve(), t(this, vt).unobserve(), t(this, Pe).unobserve(), t(this, qt).unobserve(), t(this, we).unobserve(), t(this, Gt).unobserve(), t(this, Ut).unobserve(), ft.unsubscribe(t(this, Be)), ft.unsubscribe(t(this, F)), rs.unsubscribe(t(this, F)), o(this, c, Vs).call(this), t(this, Oe).disconnect();
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
|
-
f = new WeakMap(), pe = new WeakMap(), R = new WeakMap(),
|
|
714
|
-
const e = t(this, R).current, s = t(this,
|
|
715
|
-
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this,
|
|
713
|
+
f = new WeakMap(), pe = new WeakMap(), R = new WeakMap(), Ot = new WeakMap(), bt = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), et = new WeakMap(), $t = new WeakMap(), Ht = new WeakMap(), gt = new WeakMap(), Bt = new WeakMap(), be = new WeakMap(), st = new WeakMap(), V = new WeakMap(), me = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), Fe = new WeakMap(), ye = new WeakMap(), j = new WeakMap(), Ce = new WeakMap(), Wt = new WeakMap(), J = new WeakMap(), Nt = new WeakMap(), vt = new WeakMap(), Pe = new WeakMap(), qt = new WeakMap(), we = new WeakMap(), Gt = new WeakMap(), Ut = new WeakMap(), Kt = new WeakMap(), b = new WeakMap(), Te = new WeakMap(), q = new WeakMap(), d = new WeakMap(), cs = new WeakMap(), us = new WeakMap(), L = new WeakMap(), P = new WeakMap(), G = new WeakMap(), it = new WeakMap(), Zt = new WeakMap(), rt = new WeakMap(), M = new WeakMap(), D = new WeakMap(), Re = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), Pt = new WeakMap(), U = new WeakMap(), De = new WeakMap(), _t = new WeakMap(), jt = new WeakMap(), Ee = new WeakMap(), ht = new WeakMap(), k = new WeakMap(), Oe = new WeakMap(), wt = new WeakMap(), xe = new WeakMap(), $e = new WeakMap(), c = new WeakSet(), zs = function() {
|
|
714
|
+
const e = t(this, R).current, s = t(this, Ot).current ? "-reverse" : "";
|
|
715
|
+
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, Bt).current ? "max" : e, t(this, Zt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, k) && t(this, F).call(this);
|
|
716
716
|
}, ss = function() {
|
|
717
717
|
o(this, c, Ie).call(this), t(this, Te).assignedElements().forEach((e, s) => {
|
|
718
718
|
e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, q).push(new wi(e, s, this));
|
|
@@ -728,11 +728,11 @@ f = new WeakMap(), pe = new WeakMap(), R = new WeakMap(), $t = new WeakMap(), bt
|
|
|
728
728
|
composed: !0
|
|
729
729
|
});
|
|
730
730
|
}, Cs = function() {
|
|
731
|
-
t(this,
|
|
731
|
+
t(this, Pt) || (r(this, Pt, !0), t(this, f).unsubscribe(t(this, as)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, De)), clearInterval(t(this, _t)), t(this, jt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Zt).disconnect(), t(this, rt).disconnect(), t(this, M).disconnect(), t(this, Ct) || (this.sections.forEach((e) => {
|
|
732
732
|
e.unsetTransform();
|
|
733
733
|
}), t(this, F).call(this)));
|
|
734
734
|
}, Ps = function() {
|
|
735
|
-
t(this,
|
|
735
|
+
t(this, Pt) && (r(this, Pt, !1), t(this, f).subscribe(t(this, as), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, Zt).connect(), t(this, rt).connect(), t(this, j).current && t(this, M).connect());
|
|
736
736
|
}, Vs = function() {
|
|
737
737
|
t(this, U) || (r(this, U, !0), clearTimeout(t(this, $e)), ft.unsubscribe(t(this, F)), o(this, c, Cs).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, q).length ? o(this, c, Ie).call(this) : (t(this, D).reset(), t(this, f).reset()), ne.unregister(this));
|
|
738
738
|
}, ks = function() {
|
|
@@ -743,7 +743,7 @@ f = new WeakMap(), pe = new WeakMap(), R = new WeakMap(), $t = new WeakMap(), bt
|
|
|
743
743
|
let s = t(this, D).current;
|
|
744
744
|
return t(this, V).current ? s = pi(e, t(this, d).length) : s = Gs(e, 0, this.limit), s;
|
|
745
745
|
}, He = new WeakMap(), ds = new WeakMap(), As = function(e = 1) {
|
|
746
|
-
t(this,
|
|
746
|
+
t(this, Wt).current && (t(this, M).direction = e), t(this, j).current && t(this, M).pauseAndContinue(
|
|
747
747
|
t(this, Ce).current,
|
|
748
748
|
this.sectionalCSSProperty.current
|
|
749
749
|
);
|
|
@@ -755,23 +755,23 @@ f = new WeakMap(), pe = new WeakMap(), R = new WeakMap(), $t = new WeakMap(), bt
|
|
|
755
755
|
return t(this, f)[e];
|
|
756
756
|
}, ce = function() {
|
|
757
757
|
if (t(this, d).length) {
|
|
758
|
-
const e = t(this, D).current + t(this,
|
|
758
|
+
const e = t(this, D).current + t(this, Nt).current;
|
|
759
759
|
if (e === 0 ? r(this, ht, "start") : e === this.limit ? r(this, ht, "end") : r(this, ht, null), tt(this, "scrollLine", {
|
|
760
760
|
detail: { line: t(this, ht) }
|
|
761
761
|
}), t(this, J).current) {
|
|
762
762
|
this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
|
|
763
763
|
const s = t(this, st).current + t(this, vt).current;
|
|
764
|
-
r(this,
|
|
764
|
+
r(this, wt, []), t(this, d).forEach((h, u) => {
|
|
765
765
|
h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
|
|
766
766
|
const g = e - this.limit - 1 + t(this, vt).current, v = e + s, C = this.sections.length - v;
|
|
767
|
-
u >= e && u < v || u <= g ? (h.setMark("current"), t(this,
|
|
767
|
+
u >= e && u < v || u <= g ? (h.setMark("current"), t(this, wt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
|
|
768
768
|
}), t(this, fs).call(this);
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
}, js = function() {
|
|
772
772
|
if (t(this, J).current) {
|
|
773
|
-
const e = Math.floor(t(this,
|
|
774
|
-
t(this,
|
|
773
|
+
const e = Math.floor(t(this, wt).length / 2);
|
|
774
|
+
t(this, wt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, wt).forEach((s, h) => {
|
|
775
775
|
const u = h - e;
|
|
776
776
|
s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
|
|
777
777
|
});
|
|
@@ -782,7 +782,7 @@ f = new WeakMap(), pe = new WeakMap(), R = new WeakMap(), $t = new WeakMap(), bt
|
|
|
782
782
|
for (let v = 0; v < t(this, d).length; v++) {
|
|
783
783
|
const C = t(this, d)[v];
|
|
784
784
|
let oe = t(this, Ee) ? C.size * g * -1 * 0.4 : 0, Ae = C.position;
|
|
785
|
-
this.overscroll && Ae === 0 && e && (Ae = t(this,
|
|
785
|
+
this.overscroll && Ae === 0 && e && (Ae = t(this, yt));
|
|
786
786
|
let ts = Math.abs(Ae + oe - s);
|
|
787
787
|
ts <= h && (h = ts, u = v);
|
|
788
788
|
}
|
|
@@ -804,23 +804,23 @@ class ys extends HTMLElement {
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
ps = new WeakMap();
|
|
807
|
-
var Jt, O,
|
|
807
|
+
var Jt, O, Et, xt, We, Ne, Qt, qe, bs, ms;
|
|
808
808
|
class xi extends ys {
|
|
809
809
|
constructor() {
|
|
810
810
|
super();
|
|
811
811
|
i(this, Jt, null);
|
|
812
812
|
i(this, O, null);
|
|
813
|
-
i(this,
|
|
814
|
-
i(this,
|
|
813
|
+
i(this, Et, !1);
|
|
814
|
+
i(this, xt, 0);
|
|
815
815
|
i(this, We, 0);
|
|
816
816
|
i(this, Ne, 0);
|
|
817
817
|
i(this, Qt, () => {
|
|
818
|
-
r(this,
|
|
819
|
-
const e = t(this,
|
|
820
|
-
r(this,
|
|
818
|
+
r(this, Et, this.offsetWidth > this.offsetHeight);
|
|
819
|
+
const e = t(this, Et) ? this.offsetWidth : this.offsetHeight;
|
|
820
|
+
r(this, xt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, xt, Math.max(t(this, xt), 30)), t(this, Et) ? (t(this, O).style.width = t(this, xt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, xt) + "px"), r(this, We, e - t(this, xt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, qe).call(this);
|
|
821
821
|
});
|
|
822
822
|
i(this, qe, () => {
|
|
823
|
-
r(this, Ne, this.scrollElement.currentProgress * t(this, We)), t(this,
|
|
823
|
+
r(this, Ne, this.scrollElement.currentProgress * t(this, We)), t(this, Et) ? t(this, O).style.transform = `translate3d(${t(this, Ne)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ne)}px, 0px)`;
|
|
824
824
|
});
|
|
825
825
|
i(this, bs, () => {
|
|
826
826
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
@@ -828,14 +828,14 @@ class xi extends ys {
|
|
|
828
828
|
i(this, ms, (e) => {
|
|
829
829
|
document.documentElement.classList.add("grabbing"), Ci(
|
|
830
830
|
(u) => {
|
|
831
|
-
const g = t(this,
|
|
831
|
+
const g = t(this, Et) ? u.x : u.y, v = this.scrollElement.distance / t(this, We), C = (g - h) * v;
|
|
832
832
|
this.scrollElement.setPosition(s + C);
|
|
833
833
|
},
|
|
834
834
|
() => {
|
|
835
835
|
document.documentElement.classList.remove("grabbing");
|
|
836
836
|
}
|
|
837
837
|
);
|
|
838
|
-
const s = this.scrollElement.damped.target, h = t(this,
|
|
838
|
+
const s = this.scrollElement.damped.target, h = t(this, Et) ? e.x : e.y;
|
|
839
839
|
});
|
|
840
840
|
if (_) {
|
|
841
841
|
const e = this.attachShadow({ mode: "open" });
|
|
@@ -884,7 +884,7 @@ class xi extends ys {
|
|
|
884
884
|
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, ms)), ft.unsubscribe(t(this, Qt)), rs.unsubscribe(t(this, Qt)), this.scrollElement.offScroll(t(this, qe)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, bs));
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
Jt = new WeakMap(), O = new WeakMap(),
|
|
887
|
+
Jt = new WeakMap(), O = new WeakMap(), Et = new WeakMap(), xt = new WeakMap(), We = new WeakMap(), Ne = new WeakMap(), Qt = new WeakMap(), qe = new WeakMap(), bs = new WeakMap(), ms = new WeakMap();
|
|
888
888
|
_ && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", xi);
|
|
889
889
|
var Ge, Ue, Ke;
|
|
890
890
|
class Rs extends ys {
|
|
@@ -931,31 +931,31 @@ class Li extends Rs {
|
|
|
931
931
|
}
|
|
932
932
|
Ze = new WeakMap();
|
|
933
933
|
_ && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Li);
|
|
934
|
-
var
|
|
934
|
+
var Lt, _e;
|
|
935
935
|
class zi extends Rs {
|
|
936
936
|
constructor() {
|
|
937
937
|
super(...arguments);
|
|
938
|
-
i(this,
|
|
938
|
+
i(this, Lt, new l(this, "--step", 1));
|
|
939
939
|
i(this, _e, () => {
|
|
940
|
-
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this,
|
|
940
|
+
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, Lt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, Lt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
handleClick(e) {
|
|
944
|
-
this.scrollElement.shiftSections(t(this,
|
|
944
|
+
this.scrollElement.shiftSections(t(this, Lt).current, e);
|
|
945
945
|
}
|
|
946
946
|
connectedCallback() {
|
|
947
|
-
super.connectedCallback(), this.scrollElement && (t(this,
|
|
947
|
+
super.connectedCallback(), this.scrollElement && (t(this, Lt).subscribe(() => {
|
|
948
948
|
t(this, _e).call(this);
|
|
949
|
-
}), t(this,
|
|
949
|
+
}), t(this, Lt).observe(), this.scrollElement.addEventListener(
|
|
950
950
|
"scrollLine",
|
|
951
951
|
t(this, _e)
|
|
952
952
|
), t(this, _e).call(this));
|
|
953
953
|
}
|
|
954
954
|
disconnectedCallback() {
|
|
955
|
-
super.disconnectedCallback(), t(this,
|
|
955
|
+
super.disconnectedCallback(), t(this, Lt).close(), this.removeAttribute("disabled");
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
|
|
958
|
+
Lt = new WeakMap(), _e = new WeakMap();
|
|
959
959
|
_ && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", zi);
|
|
960
960
|
var nt, Xt, je, Ss, gs, Je;
|
|
961
961
|
class Vi {
|
|
@@ -985,13 +985,13 @@ class Vi {
|
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
nt = new WeakMap(), Xt = new WeakMap(), je = new WeakMap(), Ss = new WeakMap(), gs = new WeakMap(), Je = new WeakMap();
|
|
988
|
-
var Le, Yt,
|
|
988
|
+
var Le, Yt, zt;
|
|
989
989
|
class ki extends ys {
|
|
990
990
|
constructor() {
|
|
991
991
|
super(...arguments);
|
|
992
992
|
i(this, Le, null);
|
|
993
993
|
i(this, Yt, []);
|
|
994
|
-
i(this,
|
|
994
|
+
i(this, zt, ws(() => {
|
|
995
995
|
t(this, Yt).forEach((s) => s.destroy()), r(this, Yt, []);
|
|
996
996
|
let e = 0;
|
|
997
997
|
this.scrollElement.loopCSSProperty.current ? e = this.scrollElement.visibleSections.length : e = this.scrollElement.visibleSections.length - Math.max(this.scrollElement.sectionsInViewCSSProperty.current - 1, 0);
|
|
@@ -1008,23 +1008,23 @@ class ki extends ys {
|
|
|
1008
1008
|
connectedCallback() {
|
|
1009
1009
|
super.connectedCallback(), this.innerHTML = "", this.scrollElement.addEventListener(
|
|
1010
1010
|
"scrollSectionsChange",
|
|
1011
|
-
t(this,
|
|
1011
|
+
t(this, zt)
|
|
1012
1012
|
), this.scrollElement.sectionsInViewCSSProperty.subscribe(
|
|
1013
|
-
t(this,
|
|
1014
|
-
), this.scrollElement.loopCSSProperty.subscribe(t(this,
|
|
1013
|
+
t(this, zt)
|
|
1014
|
+
), this.scrollElement.loopCSSProperty.subscribe(t(this, zt)), r(this, Le, document.createElement("div")), this.appendChild(t(this, Le));
|
|
1015
1015
|
}
|
|
1016
1016
|
disconnectedCallback() {
|
|
1017
1017
|
this.scrollElement.removeEventListener(
|
|
1018
1018
|
"scrollSectionsChange",
|
|
1019
|
-
t(this,
|
|
1019
|
+
t(this, zt)
|
|
1020
1020
|
), this.scrollElement.sectionsInViewCSSProperty.unsubscribe(
|
|
1021
|
-
t(this,
|
|
1022
|
-
), this.scrollElement.loopCSSProperty.unsubscribe(t(this,
|
|
1021
|
+
t(this, zt)
|
|
1022
|
+
), this.scrollElement.loopCSSProperty.unsubscribe(t(this, zt)), t(this, Yt).forEach((e) => e.destroy()), r(this, Yt, []), t(this, Le).remove();
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
Le = new WeakMap(), Yt = new WeakMap(),
|
|
1025
|
+
Le = new WeakMap(), Yt = new WeakMap(), zt = new WeakMap();
|
|
1026
1026
|
_ && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", ki);
|
|
1027
|
-
var te, ee, se, ie, kt, At, It,
|
|
1027
|
+
var te, ee, se, ie, Vt, kt, At, It, A, $, H, B, Mt, z, ot, lt, Q, Ft, ze, ct, ut, at, E, W, N, X, Y, K, Qe, S, Tt, re, Xe, x, dt, T, I, Z, Ve, Rt, y, he, m, Js, Qs, Xs, Ys, ti, ei, Ye, ke, Ms, ue, si, ii, Fs;
|
|
1028
1028
|
class Ai extends ys {
|
|
1029
1029
|
constructor() {
|
|
1030
1030
|
super(...arguments);
|
|
@@ -1033,20 +1033,20 @@ class Ai extends ys {
|
|
|
1033
1033
|
i(this, ee);
|
|
1034
1034
|
i(this, se);
|
|
1035
1035
|
i(this, ie);
|
|
1036
|
+
i(this, Vt);
|
|
1036
1037
|
i(this, kt);
|
|
1037
1038
|
i(this, At);
|
|
1038
1039
|
i(this, It);
|
|
1039
|
-
i(this, Mt);
|
|
1040
1040
|
i(this, A);
|
|
1041
1041
|
i(this, $);
|
|
1042
1042
|
i(this, H);
|
|
1043
1043
|
i(this, B);
|
|
1044
|
-
i(this,
|
|
1044
|
+
i(this, Mt);
|
|
1045
1045
|
i(this, z);
|
|
1046
1046
|
i(this, ot);
|
|
1047
1047
|
i(this, lt);
|
|
1048
1048
|
i(this, Q);
|
|
1049
|
-
i(this,
|
|
1049
|
+
i(this, Ft);
|
|
1050
1050
|
i(this, ze);
|
|
1051
1051
|
i(this, ct);
|
|
1052
1052
|
i(this, ut);
|
|
@@ -1059,7 +1059,7 @@ class Ai extends ys {
|
|
|
1059
1059
|
i(this, K);
|
|
1060
1060
|
i(this, Qe);
|
|
1061
1061
|
i(this, S);
|
|
1062
|
-
i(this,
|
|
1062
|
+
i(this, Tt);
|
|
1063
1063
|
i(this, re);
|
|
1064
1064
|
i(this, Xe);
|
|
1065
1065
|
i(this, x);
|
|
@@ -1068,19 +1068,19 @@ class Ai extends ys {
|
|
|
1068
1068
|
i(this, I);
|
|
1069
1069
|
i(this, Z);
|
|
1070
1070
|
i(this, Ve);
|
|
1071
|
-
i(this,
|
|
1071
|
+
i(this, Rt);
|
|
1072
1072
|
i(this, y);
|
|
1073
1073
|
i(this, he);
|
|
1074
1074
|
i(this, Ye);
|
|
1075
1075
|
i(this, ke);
|
|
1076
|
-
r(this, te, new l(this, "--damping", 20)), r(this, ee, new l(this, "--mass", 0)), r(this, se, new l(this, "--stiffness", 0)), r(this, ie, new l(this, "--target", "")), r(this,
|
|
1076
|
+
r(this, te, new l(this, "--damping", 20)), r(this, ee, new l(this, "--mass", 0)), r(this, se, new l(this, "--stiffness", 0)), r(this, ie, new l(this, "--target", "")), r(this, Vt, new l(this, "--disabled", !1)), r(this, kt, new l(
|
|
1077
1077
|
this,
|
|
1078
1078
|
"--distance-offset",
|
|
1079
1079
|
0,
|
|
1080
1080
|
{ rawValueCheck: !1 }
|
|
1081
|
-
)), r(this,
|
|
1081
|
+
)), r(this, At, new l(this, "--start-offset", 0, {
|
|
1082
1082
|
rawValueCheck: !1
|
|
1083
|
-
})), r(this,
|
|
1083
|
+
})), r(this, It, new l(
|
|
1084
1084
|
this,
|
|
1085
1085
|
"--capture-once",
|
|
1086
1086
|
!1
|
|
@@ -1092,7 +1092,7 @@ class Ai extends ys {
|
|
|
1092
1092
|
this,
|
|
1093
1093
|
"--captured-from-finish",
|
|
1094
1094
|
""
|
|
1095
|
-
)), r(this,
|
|
1095
|
+
)), r(this, Mt, new l(
|
|
1096
1096
|
this,
|
|
1097
1097
|
"--released-from-start",
|
|
1098
1098
|
""
|
|
@@ -1104,7 +1104,7 @@ class Ai extends ys {
|
|
|
1104
1104
|
this,
|
|
1105
1105
|
"--progress-arc-var",
|
|
1106
1106
|
""
|
|
1107
|
-
)), r(this,
|
|
1107
|
+
)), r(this, Ft, new l(
|
|
1108
1108
|
this,
|
|
1109
1109
|
"--progress-arc-mult",
|
|
1110
1110
|
1
|
|
@@ -1112,13 +1112,13 @@ class Ai extends ys {
|
|
|
1112
1112
|
this,
|
|
1113
1113
|
"--animation-var-type",
|
|
1114
1114
|
"target"
|
|
1115
|
-
)), r(this, ct, new l(this, "--distance-var", "")), r(this, ut, new l(this, "--start-var", "")), r(this, at, new l(this, "--finish-var", "")), r(this, E, new le(!1)), r(this, W, new le(!1)), r(this, N, new le(!1)), r(this, X, new le(!1)), r(this, Y, new le(!1)), r(this, K, new le(!1)), r(this, Qe, []), r(this, S, this), r(this,
|
|
1116
|
-
r(this, re, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this,
|
|
1115
|
+
)), r(this, ct, new l(this, "--distance-var", "")), r(this, ut, new l(this, "--start-var", "")), r(this, at, new l(this, "--finish-var", "")), r(this, E, new le(!1)), r(this, W, new le(!1)), r(this, N, new le(!1)), r(this, X, new le(!1)), r(this, Y, new le(!1)), r(this, K, new le(!1)), r(this, Qe, []), r(this, S, this), r(this, Tt, 0), r(this, re, 0), r(this, Xe, 0), r(this, x, new Zs(0, { order: Ks.SEGMENT, min: 0, max: 1 })), r(this, dt, 0), r(this, T, 0), r(this, I, 0), r(this, Z, 0), r(this, Ve, !1), r(this, Rt, !1), r(this, y, !0), r(this, he, !1), this.resize = () => {
|
|
1116
|
+
r(this, re, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Tt, this.scrollElement.vertical ? hs(this, this.scrollElement) : ns(this, this.scrollElement));
|
|
1117
1117
|
const e = ai(
|
|
1118
1118
|
this,
|
|
1119
1119
|
this.scrollElement.vertical ? "top" : "left"
|
|
1120
1120
|
);
|
|
1121
|
-
r(this,
|
|
1121
|
+
r(this, Tt, t(this, Tt) - e), r(this, T, this.getStart()), r(this, I, this.getDistance()), r(this, T, t(this, T) + t(this, At).current), r(this, I, t(this, I) + t(this, kt).current), r(this, Z, t(this, T) + t(this, I)), this.scrollElement.currentScrollValue > t(this, Z) && !t(this, E).current && !t(this, W).current && (t(this, E).current = !0), this.setVar(t(this, ut).current, t(this, T)), this.setVar(t(this, at).current, t(this, Z)), this.setVar(t(this, ct).current, t(this, I)), t(this, x).max = t(this, I), r(this, Ve, !0), t(this, ke).call(this);
|
|
1122
1122
|
}, this.findAnotherScrollEntries = ws(() => {
|
|
1123
1123
|
const e = ne.getAll(this).reverse();
|
|
1124
1124
|
let s = 0;
|
|
@@ -1132,13 +1132,13 @@ class Ai extends ys {
|
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
1134
|
get distanceOffsetCSSProperty() {
|
|
1135
|
-
return t(this,
|
|
1135
|
+
return t(this, kt);
|
|
1136
1136
|
}
|
|
1137
1137
|
get startOffsetCSSProperty() {
|
|
1138
|
-
return t(this,
|
|
1138
|
+
return t(this, At);
|
|
1139
1139
|
}
|
|
1140
1140
|
get captureOnceCSSProperty() {
|
|
1141
|
-
return t(this,
|
|
1141
|
+
return t(this, It);
|
|
1142
1142
|
}
|
|
1143
1143
|
get capturedCSSProperty() {
|
|
1144
1144
|
return t(this, A);
|
|
@@ -1153,7 +1153,7 @@ class Ai extends ys {
|
|
|
1153
1153
|
return t(this, B);
|
|
1154
1154
|
}
|
|
1155
1155
|
get releasedFromStartCSSProperty() {
|
|
1156
|
-
return t(this,
|
|
1156
|
+
return t(this, Mt);
|
|
1157
1157
|
}
|
|
1158
1158
|
get releasedFromFinishCSSProperty() {
|
|
1159
1159
|
return t(this, z);
|
|
@@ -1168,7 +1168,7 @@ class Ai extends ys {
|
|
|
1168
1168
|
return t(this, Q);
|
|
1169
1169
|
}
|
|
1170
1170
|
get progressArcMultCSSProperty() {
|
|
1171
|
-
return t(this,
|
|
1171
|
+
return t(this, Ft);
|
|
1172
1172
|
}
|
|
1173
1173
|
get animationVarTypeCSSProperty() {
|
|
1174
1174
|
return t(this, ze);
|
|
@@ -1183,7 +1183,7 @@ class Ai extends ys {
|
|
|
1183
1183
|
return t(this, at);
|
|
1184
1184
|
}
|
|
1185
1185
|
get disabledCSSProperty() {
|
|
1186
|
-
return t(this,
|
|
1186
|
+
return t(this, Vt);
|
|
1187
1187
|
}
|
|
1188
1188
|
get dampingCSSProperty() {
|
|
1189
1189
|
return t(this, te);
|
|
@@ -1216,7 +1216,7 @@ class Ai extends ys {
|
|
|
1216
1216
|
return t(this, K);
|
|
1217
1217
|
}
|
|
1218
1218
|
get directionPosition() {
|
|
1219
|
-
return t(this,
|
|
1219
|
+
return t(this, Tt);
|
|
1220
1220
|
}
|
|
1221
1221
|
get directionSize() {
|
|
1222
1222
|
return t(this, re);
|
|
@@ -1228,7 +1228,7 @@ class Ai extends ys {
|
|
|
1228
1228
|
return t(this, dt);
|
|
1229
1229
|
}
|
|
1230
1230
|
get progressArc() {
|
|
1231
|
-
return Math.abs(Math.cos(t(this, dt) * Math.PI)) * t(this,
|
|
1231
|
+
return Math.abs(Math.cos(t(this, dt) * Math.PI)) * t(this, Ft).current;
|
|
1232
1232
|
}
|
|
1233
1233
|
get start() {
|
|
1234
1234
|
return t(this, T);
|
|
@@ -1240,7 +1240,7 @@ class Ai extends ys {
|
|
|
1240
1240
|
return t(this, I);
|
|
1241
1241
|
}
|
|
1242
1242
|
get isCapturedOnce() {
|
|
1243
|
-
return t(this,
|
|
1243
|
+
return t(this, Rt);
|
|
1244
1244
|
}
|
|
1245
1245
|
get isDisabled() {
|
|
1246
1246
|
return t(this, y);
|
|
@@ -1255,10 +1255,10 @@ class Ai extends ys {
|
|
|
1255
1255
|
const h = Math.round(e);
|
|
1256
1256
|
t(this, E).current && (h >= t(this, T) ? t(this, N).current || o(this, m, Xs).call(this) : t(this, N).current && !t(this, X).current && o(this, m, ti).call(this), h < t(this, Z) ? t(this, K).current && !t(this, Y).current && o(this, m, Ys).call(this) : t(this, N).current && !t(this, K).current && o(this, m, ei).call(this)), h >= t(this, T) && h < t(this, Z) ? t(this, E).current || o(this, m, Js).call(this) : t(this, E).current && (t(this, x).set(
|
|
1257
1257
|
di(t(this, I) / 2, t(this, x).target, 0, t(this, I))
|
|
1258
|
-
), o(this, m, Qs).call(this)), t(this,
|
|
1258
|
+
), o(this, m, Qs).call(this)), t(this, Rt) && t(this, It).current && (t(this, A).current && t(this, S).classList.add(t(this, A).current), r(this, y, !0));
|
|
1259
1259
|
}
|
|
1260
1260
|
disable() {
|
|
1261
|
-
this.style.cssText = "", r(this,
|
|
1261
|
+
this.style.cssText = "", r(this, Tt, 0), r(this, re, 0), t(this, x).reset(), r(this, dt, 0), r(this, T, 0), r(this, I, 0), r(this, Z, 0), r(this, Ve, !1), t(this, E).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, X).current = !1, t(this, Y).current = !1, t(this, K).current = !1, r(this, Rt, !1), r(this, y, !0), o(this, m, Fs).call(this);
|
|
1262
1262
|
}
|
|
1263
1263
|
enable() {
|
|
1264
1264
|
r(this, y, !1);
|
|
@@ -1294,9 +1294,9 @@ class Ai extends ys {
|
|
|
1294
1294
|
composed: !0,
|
|
1295
1295
|
custom: !0
|
|
1296
1296
|
});
|
|
1297
|
-
}), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this,
|
|
1297
|
+
}), t(this, te).observe(), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, Vt).observe(), t(this, kt).observe(), t(this, At).observe(), t(this, It).observe(), t(this, A).observe(), t(this, $).observe(), t(this, H).observe(), t(this, B).observe(), t(this, Mt).observe(), t(this, z).observe(), t(this, ot).observe(), t(this, lt).observe(), t(this, Q).observe(), t(this, Ft).observe(), t(this, ze).observe(), t(this, ct).observe(), t(this, ut).observe(), t(this, at).observe();
|
|
1298
1298
|
let e = !1;
|
|
1299
|
-
this.findAnotherScrollEntries(), t(this,
|
|
1299
|
+
this.findAnotherScrollEntries(), t(this, Vt).current || this.enable(), t(this, te).subscribe((s) => {
|
|
1300
1300
|
t(this, x).damping = s.current;
|
|
1301
1301
|
}), t(this, ee).subscribe((s) => {
|
|
1302
1302
|
t(this, x).mass = s.current;
|
|
@@ -1304,12 +1304,12 @@ class Ai extends ys {
|
|
|
1304
1304
|
t(this, x).stiffness = s.current;
|
|
1305
1305
|
}), t(this, ie).subscribe((s) => {
|
|
1306
1306
|
s.previous && o(this, m, Fs).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
|
|
1307
|
-
}), t(this,
|
|
1307
|
+
}), t(this, Vt).subscribe((s) => {
|
|
1308
1308
|
s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
|
|
1309
|
-
}), t(this, It).subscribe(() => {
|
|
1310
|
-
e && !t(this, y) && this.resize();
|
|
1311
1309
|
}), t(this, At).subscribe(() => {
|
|
1312
1310
|
e && !t(this, y) && this.resize();
|
|
1311
|
+
}), t(this, kt).subscribe(() => {
|
|
1312
|
+
e && !t(this, y) && this.resize();
|
|
1313
1313
|
}), t(this, A).subscribe((s) => {
|
|
1314
1314
|
o(this, m, ue).call(this, s);
|
|
1315
1315
|
}), t(this, H).subscribe((s) => {
|
|
@@ -1318,11 +1318,11 @@ class Ai extends ys {
|
|
|
1318
1318
|
o(this, m, ue).call(this, s);
|
|
1319
1319
|
}), t(this, $).subscribe((s) => {
|
|
1320
1320
|
o(this, m, ue).call(this, s);
|
|
1321
|
-
}), t(this,
|
|
1321
|
+
}), t(this, Mt).subscribe((s) => {
|
|
1322
1322
|
o(this, m, ue).call(this, s);
|
|
1323
1323
|
}), t(this, z).subscribe((s) => {
|
|
1324
1324
|
o(this, m, ue).call(this, s);
|
|
1325
|
-
}), t(this,
|
|
1325
|
+
}), t(this, It).subscribe((s) => {
|
|
1326
1326
|
t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
|
|
1327
1327
|
}), t(this, ot).subscribe((s) => {
|
|
1328
1328
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
@@ -1330,7 +1330,7 @@ class Ai extends ys {
|
|
|
1330
1330
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, dt)));
|
|
1331
1331
|
}), t(this, Q).subscribe((s) => {
|
|
1332
1332
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
|
|
1333
|
-
}), t(this,
|
|
1333
|
+
}), t(this, Ft).subscribe((s) => {
|
|
1334
1334
|
t(this, y) || o(this, m, Ms).call(this);
|
|
1335
1335
|
}), t(this, ut).subscribe((s) => {
|
|
1336
1336
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, T)));
|
|
@@ -1353,7 +1353,7 @@ class Ai extends ys {
|
|
|
1353
1353
|
ft.unsubscribe(t(this, Ye)), this.scrollElement.offScroll(t(this, ke)), this.scrollElement.removeEventListener(
|
|
1354
1354
|
"scrollSectionsChange",
|
|
1355
1355
|
this.findAnotherScrollEntries
|
|
1356
|
-
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this,
|
|
1356
|
+
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, te).close(), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, Vt).close(), t(this, kt).close(), t(this, At).close(), t(this, It).close(), t(this, A).close(), t(this, $).close(), t(this, H).close(), t(this, B).close(), t(this, Mt).close(), t(this, z).close(), t(this, ot).close(), t(this, lt).close(), t(this, Q).close(), t(this, Ft).close(), t(this, ct).close(), t(this, ut).close(), t(this, at).close(), t(this, E).close(), t(this, W).close(), t(this, N).close(), t(this, X).close(), t(this, Y).close(), t(this, K).close(), this.disable(), t(this, x).close();
|
|
1357
1357
|
}
|
|
1358
1358
|
removeVar(e) {
|
|
1359
1359
|
e && t(this, S).style.removeProperty(`--${e}`);
|
|
@@ -1368,17 +1368,17 @@ class Ai extends ys {
|
|
|
1368
1368
|
return t(this, re) + t(this, Xe);
|
|
1369
1369
|
}
|
|
1370
1370
|
getStart() {
|
|
1371
|
-
return t(this,
|
|
1371
|
+
return t(this, Tt) - t(this, Xe);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
|
-
te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(),
|
|
1375
|
-
t(this, E).current = !0, t(this, W).current = !1, r(this,
|
|
1374
|
+
te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), Vt = new WeakMap(), kt = new WeakMap(), At = new WeakMap(), It = new WeakMap(), A = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), B = new WeakMap(), Mt = new WeakMap(), z = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), Q = new WeakMap(), Ft = new WeakMap(), ze = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), E = new WeakMap(), W = new WeakMap(), N = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), K = new WeakMap(), Qe = new WeakMap(), S = new WeakMap(), Tt = new WeakMap(), re = new WeakMap(), Xe = new WeakMap(), x = new WeakMap(), dt = new WeakMap(), T = new WeakMap(), I = new WeakMap(), Z = new WeakMap(), Ve = new WeakMap(), Rt = new WeakMap(), y = new WeakMap(), he = new WeakMap(), m = new WeakSet(), Js = function() {
|
|
1375
|
+
t(this, E).current = !0, t(this, W).current = !1, r(this, Rt, !0), t(this, $).current && t(this, S).classList.remove(t(this, $).current), t(this, z).current && t(this, S).classList.remove(
|
|
1376
1376
|
t(this, z).current
|
|
1377
1377
|
), t(this, z).current && t(this, S).classList.remove(
|
|
1378
1378
|
t(this, z).current
|
|
1379
1379
|
), t(this, A).current && t(this, S).classList.add(t(this, A).current);
|
|
1380
1380
|
}, Qs = function() {
|
|
1381
|
-
t(this, W).current = !0, t(this, E).current = !1, r(this,
|
|
1381
|
+
t(this, W).current = !0, t(this, E).current = !1, r(this, Rt, !0), t(this, A).current && t(this, S).classList.remove(t(this, A).current), t(this, H).current && t(this, S).classList.remove(
|
|
1382
1382
|
t(this, H).current
|
|
1383
1383
|
), t(this, B).current && t(this, S).classList.remove(
|
|
1384
1384
|
t(this, B).current
|
|
@@ -1417,7 +1417,7 @@ te = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(),
|
|
|
1417
1417
|
s && t(this, S).style.removeProperty(`--${s}`);
|
|
1418
1418
|
});
|
|
1419
1419
|
}, Fs = function() {
|
|
1420
|
-
o(this, m, si).call(this, t(this, A).current, t(this, H).current, t(this, B).current, t(this, $).current, t(this,
|
|
1420
|
+
o(this, m, si).call(this, t(this, A).current, t(this, H).current, t(this, B).current, t(this, $).current, t(this, Mt).current, t(this, z).current), o(this, m, ii).call(this, t(this, ot).current, t(this, lt).current, t(this, Q).current, t(this, ct).current, t(this, ut).current, t(this, at).current);
|
|
1421
1421
|
};
|
|
1422
1422
|
_ && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ai);
|
|
1423
1423
|
class Ii extends Rs {
|