aptechka 0.5.10 → 0.5.11
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/order/index.cjs +1 -1
- package/lib/order/index.d.ts +17 -13
- package/lib/order/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +194 -194
- package/package.json +1 -1
package/lib/order/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var L=(A=>(A[A.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var L=(A=>(A[A.FIRST=-1e5]="FIRST",A[A.DEVICE=-99999]="DEVICE",A[A.CSS_VARIABLE=-99998]="CSS_VARIABLE",A[A.MEDIA=-99997]="MEDIA",A[A.SOURCE_MANAGER=-99996]="SOURCE_MANAGER",A[A.SCROLL=-99995]="SCROLL",A[A.SEGMENT=-99994]="SEGMENT",A[A.LAYOUT_BOX=-99993]="LAYOUT_BOX",A[A.EN3=-99992]="EN3",A[A.LAST=1e5]="LAST",A))(L||{}),e=(A=>(A[A.FIRST=-1e5]="FIRST",A[A.SCROLL=-99999]="SCROLL",A[A.ANIMATION=-99998]="ANIMATION",A[A.LAYOUT_BOX=-99997]="LAYOUT_BOX",A[A.LADDER=-99996]="LADDER",A[A.EN3=-99995]="EN3",A[A.LAST=1e5]="LAST",A))(e||{});exports.RESIZE_ORDER=L;exports.TICK_ORDER=e;
|
package/lib/order/index.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
export declare enum RESIZE_ORDER {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
FIRST = -100000,
|
|
3
|
+
DEVICE = -99999,
|
|
4
|
+
CSS_VARIABLE = -99998,
|
|
5
|
+
MEDIA = -99997,
|
|
6
|
+
SOURCE_MANAGER = -99996,
|
|
7
|
+
SCROLL = -99995,
|
|
8
|
+
SEGMENT = -99994,
|
|
9
|
+
LAYOUT_BOX = -99993,
|
|
10
|
+
EN3 = -99992,
|
|
11
|
+
LAST = 100000
|
|
10
12
|
}
|
|
11
13
|
export declare enum TICK_ORDER {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
FIRST = -100000,
|
|
15
|
+
SCROLL = -99999,
|
|
16
|
+
ANIMATION = -99998,
|
|
17
|
+
LAYOUT_BOX = -99997,
|
|
18
|
+
LADDER = -99996,
|
|
19
|
+
EN3 = -99995,
|
|
20
|
+
LAST = 100000
|
|
17
21
|
}
|
package/lib/order/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var L = /* @__PURE__ */ ((A) => (A[A.
|
|
1
|
+
var L = /* @__PURE__ */ ((A) => (A[A.FIRST = -1e5] = "FIRST", A[A.DEVICE = -99999] = "DEVICE", A[A.CSS_VARIABLE = -99998] = "CSS_VARIABLE", A[A.MEDIA = -99997] = "MEDIA", A[A.SOURCE_MANAGER = -99996] = "SOURCE_MANAGER", A[A.SCROLL = -99995] = "SCROLL", A[A.SEGMENT = -99994] = "SEGMENT", A[A.LAYOUT_BOX = -99993] = "LAYOUT_BOX", A[A.EN3 = -99992] = "EN3", A[A.LAST = 1e5] = "LAST", A))(L || {}), N = /* @__PURE__ */ ((A) => (A[A.FIRST = -1e5] = "FIRST", A[A.SCROLL = -99999] = "SCROLL", A[A.ANIMATION = -99998] = "ANIMATION", A[A.LAYOUT_BOX = -99997] = "LAYOUT_BOX", A[A.LADDER = -99996] = "LADDER", A[A.EN3 = -99995] = "EN3", A[A.LAST = 1e5] = "LAST", A))(N || {});
|
|
2
2
|
export {
|
|
3
3
|
L as RESIZE_ORDER,
|
|
4
4
|
N as TICK_ORDER
|
package/lib/scroll/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var us=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(us(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(us(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ct=require("../Store-BQGNOHlY.cjs"),Os=require("../Derived-BZtlW0bB.cjs"),ss=require("../browser-CpzFX2xg.cjs"),gt=require("../layout-8ryRAMGJ.cjs"),is=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const ge=require("../order/index.cjs"),ms=require("../Damped-CbWlWAbx.cjs"),ye=require("../controls/index.cjs"),wt=require("../custom-element/index.cjs"),re=require("../window-resizer/index.cjs"),qt=require("../scroll-entries/index.cjs"),A=require("../tags-CueX-JLX.cjs"),rs=require("../createStylesheet-C8aQQ4hd.cjs"),ps=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),$s=require("../Viewport-_WllZTJ0.cjs"),Ds=require("../gestures-DHLrn6Q8.cjs"),fs=require("../theme/index.cjs"),Ss=require("../element-resizer/index.cjs"),Fs=require("../dom-JBOkFLTh.cjs"),gs=require("../function-MthRj-GJ.cjs");var Rs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Ts=(r,e,i,n)=>{for(var h=n>1?void 0:n?qs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Rs(e,i,h),h},ns=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(ns(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},b=(r,e,i,n)=>(ns(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(ns(r,e,"access private method"),i),d,R,st,Q,it,_t,yt,K,T,Bt,At,It,Ht,oe,ot,Gt,Pt,Ut,Nt,g,qe,u,Pe,Ee,W,_,B,X,$t,ft,$,P,ae,Et,ne,he,te,ve,Dt,ee,Te,hs,Be,os,ke,Ge,We,Ue,et,Ie,Ne,ws,le,Me,xe,Ke,me,Ae,Ze,bs,w,y,Rt,j,vt;class Bs{constructor(e,i){V(this,w,void 0);V(this,y,void 0);V(this,Rt,0);V(this,j,0);V(this,vt,null);F(this,w,e),F(this,y,i),qt.scrollEntries.register(o(this,w))}get size(){return o(this,Rt)}get position(){return o(this,j)}destroy(){qt.scrollEntries.unregister(o(this,w)),o(this,w).style.transform="",this.mark(null)}setSize(e){e?(o(this,w).style.setProperty("--size",e+"px"),o(this,y).axisCSSProperty.current==="x"?(o(this,w).style.width=e+"px",o(this,w).style.height=""):(o(this,w).style.height=e+"px",o(this,w).style.width="")):(o(this,w).style.width="",o(this,w).style.height="",o(this,w).style.removeProperty("--size"))}resize(){F(this,Rt,o(this,y).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),F(this,j,o(this,y).vertical?gt.getCumulativeOffsetTop(o(this,w)):gt.getCumulativeOffsetLeft(o(this,w))),F(this,j,o(this,j)-o(this,y).contentPosition)}transform(){let e=0;const i=o(this,y).viewportSize*o(this,y).sectionDistanceScaleCSSProperty.current;o(this,y).infiniteCSSProperty.current&&o(this,y).overscroll&&o(this,j)+o(this,Rt)<o(this,y).currentScrollValue&&(e=o(this,y).distance*-1-o(this,y).gap),qt.scrollEntries.update(o(this,w),o(this,y).axisCSSProperty.current,e);const n=o(this,y).currentScrollValue+e,h=o(this,j)-o(this,y).viewportSize-i,c=o(this,j)+o(this,Rt)+i,f=is.clamp(n,h,c);o(this,y).vertical?o(this,w).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:o(this,w).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}mark(e){o(this,vt)!==e&&(o(this,vt)&&o(this,w).classList.remove(o(this,vt)),e&&o(this,w).classList.add(e),F(this,vt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,vt)}})))}}w=new WeakMap,y=new WeakMap,Rt=new WeakMap,j=new WeakMap,vt=new WeakMap;const As=rs.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".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":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(){super(),l(this,te),l(this,Dt),l(this,Te),l(this,Be),l(this,ke),l(this,We),l(this,Ne),l(this,xe),l(this,me),l(this,Ze),l(this,d,null),l(this,R,new p.CSSProperty(this,"--axis","y")),l(this,st,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,Q,new p.CSSProperty(this,"--split",!1)),l(this,it,new p.CSSProperty(this,"--sectional",!1)),l(this,_t,new p.CSSProperty(this,"--auto-size",!1)),l(this,yt,new p.CSSProperty(this,"--wheel-max-delta",!1)),l(this,K,new p.CSSProperty(this,"--sections-in-view",1)),l(this,T,new p.CSSProperty(this,"--infinite",!1)),l(this,Bt,new p.CSSProperty(this,"--damping",20)),l(this,At,new p.CSSProperty(this,"--mass",0)),l(this,It,new p.CSSProperty(this,"--stiffness",0)),l(this,Ht,new p.CSSProperty(this,"--mouse-drag",!1)),l(this,oe,new p.CSSProperty(this,"--section-distance-scale",.5)),l(this,ot,new p.CSSProperty(this,"--autoplay",0)),l(this,Gt,new p.CSSProperty(this,"--autoplay-pause-duration",0)),l(this,Pt,new p.CSSProperty(this,"--autoplay-user-direction",!1)),l(this,Ut,new p.CSSProperty(this,"--disabled",!1)),l(this,Nt,new p.CSSProperty(this,"--hibernated",!1)),l(this,g,null),l(this,qe,null),l(this,u,[]),l(this,Pe,0),l(this,Ee,0),l(this,W,0),l(this,_,0),l(this,B,0),l(this,X,null),l(this,$t,null),l(this,ft,null),l(this,$,null),l(this,P,new Ct.Store(0)),l(this,ae,0),l(this,Et,0),l(this,ne,!0),l(this,he,!0),l(this,et,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,_)||0,i=t(this,P).current;if(b(this,Pe,this.vertical?gt.getCumulativeOffsetTop(this):gt.getCumulativeOffsetLeft(this)),b(this,Ee,this.vertical?gt.getCumulativeOffsetTop(t(this,g)):gt.getCumulativeOffsetLeft(t(this,g))),b(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,ps.cssUnitParser.parse(getComputedStyle(t(this,g)).rowGap)):b(this,B,ps.cssUnitParser.parse(getComputedStyle(t(this,g)).columnGap)),t(this,_t).current&&t(this,u).length){const n=t(this,K).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,u).forEach(c=>{c.setSize(h)})}else t(this,u).forEach(n=>{n.setSize()});if(t(this,u).forEach(n=>{n.resize()}),t(this,st).current){b(this,_,t(this,W)*t(this,st).current);const n=t(this,_)+t(this,W);this.vertical?(t(this,g).style.width=n+"px",t(this,g).style.height="100%"):(t(this,g).style.height=n+"px",t(this,g).style.width="100%")}else this.vertical?(t(this,g).style.width="100%",t(this,g).style.height="max-content",b(this,_,t(this,g).offsetHeight-t(this,W))):(t(this,g).style.width="max-content",t(this,g).style.height="100%",b(this,_,t(this,g).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);b(this,_,t(this,_)+h),t(this,d).max=t(this,_)}if(t(this,T).current&&t(this,u).length){const n=t(this,u)[t(this,u).length-1],h=n.position+n.size-t(this,W),c=t(this,_)-h;b(this,Et,n.position+n.size+c)}else b(this,Et,t(this,_));if(t(this,it).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,_),{equalize:!0})}),l(this,Ie,()=>{const e=this.currentScrollValue;if(b(this,ae,Math.max(0,e-t(this,_))),t(this,u).length){let i=0;for(let n=0;n<t(this,u).length;n++){const h=t(this,u)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,g).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,g).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;qt.scrollEntries.update(this,t(this,R).current,e)}),l(this,le,(e,i)=>{t(this,$).pauseAndContinue(t(this,Gt).current),t(this,Pt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,Me).call(this,e,i)}),l(this,Me,(e,i)=>{if(!(e==="drag"&&!$s.device.isMobile&&!t(this,Ht).current))if(t(this,it).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),ss.isBrowser&&(b(this,d,new ms.Damped(0,{damping:.01,min:0,order:ge.TICK_ORDER.SCROLL})),this.openShadow(As),A.element(this,{tabIndex:0,children:[A.div({class:"static",children:[A.slot({name:"static"})]}),A.div({class:"content",children:[A.slot({ref:e=>b(this,qe,e)})],style:{flexDirection:new Os.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>b(this,g,e)})]}),b(this,X,new ye.WheelControls({element:t(this,g)})),t(this,X).changeEvent.subscribe(t(this,le)),b(this,$t,new ye.KeyboardControls({element:this})),t(this,$t).changeEvent.subscribe(t(this,le)),b(this,ft,new ye.DragControls({element:t(this,g)})),t(this,ft).changeEvent.subscribe(t(this,le)),b(this,$,new ye.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,Me)),t(this,R).subscribe(({current:e})=>{t(this,g).style.flexDirection=e==="x"?"row":"column",t(this,X).axis=t(this,yt).current?"max":e,t(this,$t).dimension=e==="x"?"width":"height",t(this,ft).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,et).call(this)}),t(this,yt).subscribe(e=>{t(this,X).axis=e.current?"max":t(this,R).current}),t(this,st).subscribe(()=>{this.isConnected&&t(this,et).call(this)}),t(this,Q).subscribe(({current:e})=>{this.isConnected&&(e?C(this,te,ve).call(this):C(this,Dt,ee).call(this))}),t(this,it).subscribe(e=>{t(this,X).debounce=e.current,t(this,ft).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,_t).subscribe(e=>{this.isConnected&&(t(this,et).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,K).subscribe(e=>{this.isConnected&&(t(this,et).call(this),C(this,me,Ae).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,Q).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,ae,0),t(this,d).max=t(this,_),t(this,d).min=0)}),t(this,Bt).subscribe(e=>{t(this,d).damping=e.current}),t(this,At).subscribe(e=>{t(this,d).mass=e.current}),t(this,It).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?C(this,Te,hs).call(this):!e.current&&e.previous&&C(this,Be,os).call(this)}),t(this,Nt).subscribe(e=>{e.current&&!e.previous?C(this,ke,Ge).call(this):!e.current&&e.previous&&C(this,We,Ue).call(this)}),t(this,ot).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Pt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,u).length&&C(this,me,Ae).call(this)}))}get damped(){return t(this,d)}get axisCSSProperty(){return t(this,R)}get pagesCSSProperty(){return t(this,st)}get splitCSSProperty(){return t(this,Q)}get sectionalCSSProperty(){return t(this,it)}get autoSizeCSSProperty(){return t(this,_t)}get wheelMaxDeltaCSSProperty(){return t(this,yt)}get sectionsInViewCSSProperty(){return t(this,K)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Bt)}get massCSSProperty(){return t(this,At)}get stiffnessCSSProperty(){return t(this,It)}get mouseDragCSSProperty(){return t(this,Ht)}get sectionDistanceScaleCSSProperty(){return t(this,oe)}get autoplayCSSProperty(){return t(this,ot)}get autoplayPauseDurationCSSProperty(){return t(this,Gt)}get autoplayUserDirectionCSSProperty(){return t(this,Pt)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Nt)}get currentScrollValue(){return C(this,xe,Ke).call(this,"current")}get targetScrollValue(){return C(this,xe,Ke).call(this,"target")}get contentElement(){return t(this,g)}get sections(){return t(this,u)}get position(){return t(this,Pe)}get contentPosition(){return t(this,Ee)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,_)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,u).length-t(this,K).current}get distance(){return t(this,Et)}get infiniteDistance(){return t(this,T).current?t(this,Et)+t(this,B):t(this,Et)}get overscroll(){return t(this,ae)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,u).length)return;const n=t(this,P).current;C(this,Ne,ws).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,P).current];if(h&&c){let f=0;const _e=C(this,Ze,bs).call(this),Vs=_e?this.targetScrollValue-_e.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,u).length-1?f=t(this,_)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,u).length-1&&n===0?f=c.position-(t(this,_)+t(this,W)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-Vs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,R).observe(),t(this,st).observe(),t(this,Q).observe(),t(this,it).observe(),t(this,_t).observe(),t(this,yt).observe(),t(this,K).observe(),t(this,T).observe(),t(this,Bt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,Ht).observe(),t(this,oe).observe(),t(this,ot).observe(),t(this,ot).observe(),t(this,Gt).observe(),t(this,Pt).observe(),t(this,Ut).observe(),t(this,Nt).observe(),C(this,We,Ue).call(this)}disconnectedCallback(){t(this,R).unobserve(),t(this,st).unobserve(),t(this,Q).unobserve(),t(this,it).unobserve(),t(this,_t).unobserve(),t(this,yt).unobserve(),t(this,K).unobserve(),t(this,T).unobserve(),t(this,Bt).unobserve(),t(this,At).unobserve(),t(this,It).unobserve(),t(this,Ht).unobserve(),t(this,oe).unobserve(),t(this,ot).unobserve(),t(this,Gt).unobserve(),t(this,Pt).unobserve(),t(this,Ut).unobserve(),t(this,Nt).unobserve(),C(this,ke,Ge).call(this)}};d=new WeakMap;R=new WeakMap;st=new WeakMap;Q=new WeakMap;it=new WeakMap;_t=new WeakMap;yt=new WeakMap;K=new WeakMap;T=new WeakMap;Bt=new WeakMap;At=new WeakMap;It=new WeakMap;Ht=new WeakMap;oe=new WeakMap;ot=new WeakMap;Gt=new WeakMap;Pt=new WeakMap;Ut=new WeakMap;Nt=new WeakMap;g=new WeakMap;qe=new WeakMap;u=new WeakMap;Pe=new WeakMap;Ee=new WeakMap;W=new WeakMap;_=new WeakMap;B=new WeakMap;X=new WeakMap;$t=new WeakMap;ft=new WeakMap;$=new WeakMap;P=new WeakMap;ae=new WeakMap;Et=new WeakMap;ne=new WeakMap;he=new WeakMap;te=new WeakSet;ve=function(){C(this,Dt,ee).call(this),t(this,qe).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new Bs(r,this))}),t(this,g).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,et).call(this),C(this,me,Ae).call(this)};Dt=new WeakSet;ee=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Te=new WeakSet;hs=function(){t(this,ne)||(b(this,ne,!0),t(this,d).unsubscribe(t(this,Ie)),t(this,d).unlistenAnimationFrame(),t(this,X).disconnect(),t(this,$t).disconnect(),t(this,ft).disconnect(),t(this,$).disconnect())};Be=new WeakSet;os=function(){t(this,ne)&&(b(this,ne,!1),t(this,d).subscribe(t(this,Ie)),t(this,X).connect(),t(this,$t).connect(),t(this,ft).connect(),t(this,ot).current&&t(this,$).connect())};ke=new WeakSet;Ge=function(){t(this,he)||(b(this,he,!0),re.windowResizer.unsubscribe(t(this,et)),t(this,d).reset(),C(this,Te,hs).call(this),t(this,g).style.transform="",t(this,Q).current&&C(this,Dt,ee).call(this),qt.scrollEntries.unregister(this))};We=new WeakSet;Ue=function(){t(this,he)&&(b(this,he,!1),t(this,Q).current&&C(this,te,ve).call(this),qt.scrollEntries.register(this),re.windowResizer.subscribe(t(this,et),ge.RESIZE_ORDER.SCROLL),C(this,Be,os).call(this))};et=new WeakMap;Ie=new WeakMap;Ne=new WeakSet;ws=function(r){t(this,T).current?(t(this,P).current=r%t(this,u).length,t(this,P).current=t(this,P).current<0?t(this,u).length+t(this,P).current:t(this,P).current):t(this,P).current=is.clamp(r,0,this.limit)};le=new WeakMap;Me=new WeakMap;xe=new WeakSet;Ke=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,_)+t(this,W)+t(this,B));return e<0?t(this,_)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};me=new WeakSet;Ae=function(){if(t(this,u).length){const r=t(this,P).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end"),t(this,u).forEach((e,i)=>{const n=r-this.limit-1,h=r+t(this,K).current,c=this.sections.length-h;i>=r&&i<h||i<=n?e.mark("current"):i>=h&&i<h+c/2||i<=n+t(this,K).current?e.mark("next"):e.mark("previous")})}};Ze=new WeakSet;bs=function(){let r=null,e=1/0;for(let i=0;i<t(this,u).length;i++){const n=Math.abs(t(this,u)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,u)[r]:null};exports.ScrollElement=Ts([wt.define("e-scroll")],exports.ScrollElement);var we;class He extends wt.CustomElement{constructor(){super(...arguments);V(this,we,null)}get scrollElement(){return o(this,we)}connectedCallback(){const i=Fs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,we,i):console.error(this,"e-scroll not found")}}we=new WeakMap;var Is=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Is(e,i,h),h},Cs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(Cs(r,e,"read from private field"),i?i.call(r):e.get(r)),U=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},bt=(r,e,i,n)=>(Cs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),ce,q,rt,nt,ue,pe,Kt,Le,ze,Ve;const Us=rs.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:fs.aptechkaTheme.colorLight.var},':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:fs.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends He{constructor(){super(),U(this,ce,null),U(this,q,null),U(this,rt,!1),U(this,nt,0),U(this,ue,0),U(this,pe,0),U(this,Kt,()=>{bt(this,rt,this.offsetWidth>this.offsetHeight);const e=S(this,rt)?this.offsetWidth:this.offsetHeight;bt(this,nt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),bt(this,nt,Math.max(S(this,nt),30)),S(this,rt)?(S(this,q).style.width=S(this,nt)+"px",S(this,q).style.height="100%"):(S(this,q).style.width="100%",S(this,q).style.height=S(this,nt)+"px"),bt(this,ue,e-S(this,nt)),this.scrollElement.scrollSize||(this.style.display="none")}),U(this,Le,()=>{bt(this,pe,this.scrollElement.currentProgress*S(this,ue)),S(this,rt)?S(this,q).style.transform=`translate3d(${S(this,pe)}px, 0px, 0px)`:S(this,q).style.transform=`translate3d(0px, ${S(this,pe)}px, 0px)`}),U(this,ze,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),U(this,Ve,e=>{document.documentElement.classList.add("grabbing"),Ds.setupDrag(h=>{const c=S(this,rt)?h.x:h.y,f=this.scrollElement.distance/S(this,ue),_e=(c-n)*f;this.scrollElement.setPosition(i+_e)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,rt)?e.x:e.y}),ss.isBrowser&&(this.openShadow(Us),A.element(this,{slot:"static","drag-dead-zone":"",children:[A.slot({ref:e=>bt(this,ce,e),children:A.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,q)}connectedCallback(){super.connectedCallback();const e=S(this,ce).assignedElements()[0]||S(this,ce).firstElementChild;bt(this,q,e),S(this,q).addEventListener("pointerdown",S(this,Ve)),re.windowResizer.subscribe(S(this,Kt),ge.RESIZE_ORDER.SCROLL+1),Ss.elementResizer.subscribe(this,S(this,Kt)),this.scrollElement.onScroll(S(this,Le)),this.scrollElement.axisCSSProperty.subscribe(S(this,ze))}disconnectedCallback(){S(this,q).removeEventListener("pointerdown",S(this,Ve)),re.windowResizer.unsubscribe(S(this,Kt)),Ss.elementResizer.unsubscribe(S(this,Kt)),this.scrollElement.offScroll(S(this,Le)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,ze))}};ce=new WeakMap;q=new WeakMap;rt=new WeakMap;nt=new WeakMap;ue=new WeakMap;pe=new WeakMap;Kt=new WeakMap;Le=new WeakMap;ze=new WeakMap;Ve=new WeakMap;exports.ScrollbarElement=Gs([wt.define("e-scrollbar")],exports.ScrollbarElement);const Ns=rs.createStylesheet({button:{all:"inherit"}});class _s extends He{constructor(){super(),this.openShadow(Ns),ss.isBrowser&&A.element(this,{children:[A.button({onClick:()=>{this.handleClick()},children:[A.slot()]})]})}}var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Ks(e,i,h),h};exports.ScrollSetButtonElement=class extends _s{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Js([wt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var Qs=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,Ys=(r,e,i,n)=>{for(var h=n>1?void 0:n?Xs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Qs(e,i,h),h};exports.ScrollStepButtonElement=class extends _s{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=Ys([wt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var js=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(r,e,i,n)=>{for(var h=n>1?void 0:n?ti(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&js(e,i,h),h},ys=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Tt=(r,e,i)=>(ys(r,e,"read from private field"),i?i.call(r):e.get(r)),ds=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},vs=(r,e,i,n)=>(ys(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),kt,fe,tt,mt,se,be,Ce,ie;class si{constructor(e,i,n){V(this,tt,void 0);V(this,mt,void 0);V(this,se,void 0);V(this,be,void 0);V(this,Ce,()=>{o(this,mt).scrollToSection(o(this,se),o(this,be))});V(this,ie,()=>{o(this,tt).classList.toggle("current",o(this,mt).counter.current===o(this,se))});F(this,tt,document.createElement("button")),F(this,mt,e),F(this,be,n),F(this,se,i),o(this,tt).addEventListener("click",o(this,Ce)),o(this,mt).counter.subscribe(o(this,ie)),o(this,ie).call(this)}get element(){return o(this,tt)}destroy(){o(this,tt).removeEventListener("click",o(this,Ce)),o(this,mt).counter.unsubscribe(o(this,ie)),o(this,tt).remove()}}tt=new WeakMap,mt=new WeakMap,se=new WeakMap,be=new WeakMap,Ce=new WeakMap,ie=new WeakMap;exports.ScrollBulletButtonsElement=class extends He{constructor(){super(...arguments),ds(this,kt,[]),ds(this,fe,gs.debounce(()=>{Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new si(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Tt(this,kt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Tt(this,fe)),Tt(this,fe).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Tt(this,fe)),Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[])}};kt=new WeakMap;fe=new WeakMap;exports.ScrollBulletButtonsElement=ei([wt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ii=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ni=(r,e,i,n)=>{for(var h=n>1?void 0:n?ri(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&ii(e,i,h),h},as=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(as(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},m=(r,e,i,n)=>(as(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(as(r,e,"access private method"),i),Zt,Jt,Qt,Xt,Wt,Mt,xt,Lt,D,I,H,G,Ot,x,at,lt,ct,ut,pt,M,J,Z,St,dt,Y,Oe,v,Yt,jt,$e,L,zt,O,z,N,Se,Ft,E,Je,Ps,Qe,Es,Xe,ks,Ye,Ws,je,Ms,ts,xs,De,de,ht,Vt,ls,Ls,cs,zs,Fe,es,Re;exports.ScrollSegmentElement=class extends He{constructor(){super(),a(this,Je),a(this,Qe),a(this,Xe),a(this,Ye),a(this,je),a(this,ts),a(this,ht),a(this,ls),a(this,cs),a(this,Fe),a(this,Zt,new p.CSSProperty(this,"--damping",20)),a(this,Jt,new p.CSSProperty(this,"--mass",0)),a(this,Qt,new p.CSSProperty(this,"--stiffness",0)),a(this,Xt,new p.CSSProperty(this,"--target","")),a(this,Wt,new p.CSSProperty(this,"--disabled",!1)),a(this,Mt,new p.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),a(this,xt,new p.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),a(this,Lt,new p.CSSProperty(this,"--capture-once",!1)),a(this,D,new p.CSSProperty(this,"--captured","")),a(this,I,new p.CSSProperty(this,"--released","")),a(this,H,new p.CSSProperty(this,"--captured-from-start","")),a(this,G,new p.CSSProperty(this,"--captured-from-finish","")),a(this,Ot,new p.CSSProperty(this,"--released-from-start","")),a(this,x,new p.CSSProperty(this,"--released-from-finish","")),a(this,at,new p.CSSProperty(this,"--passed-var","")),a(this,lt,new p.CSSProperty(this,"--progress-var","")),a(this,ct,new p.CSSProperty(this,"--distance-var","")),a(this,ut,new p.CSSProperty(this,"--start-var","")),a(this,pt,new p.CSSProperty(this,"--finish-var","")),a(this,M,new Ct.Store(!1)),a(this,J,new Ct.Store(!1)),a(this,Z,new Ct.Store(!1)),a(this,St,new Ct.Store(!1)),a(this,dt,new Ct.Store(!1)),a(this,Y,new Ct.Store(!1)),a(this,Oe,[]),a(this,v,this),a(this,Yt,0),a(this,jt,0),a(this,$e,0),a(this,L,new ms.Damped(0,{order:ge.TICK_ORDER.SCROLL-1,min:0,max:1})),a(this,zt,0),a(this,O,0),a(this,z,0),a(this,N,0),a(this,Se,!1),a(this,Ft,!1),a(this,E,!0),a(this,De,()=>{s(this,E)||(this.resize(),s(this,de).call(this))}),a(this,de,()=>{!s(this,E)&&s(this,Se)&&this.tick()}),a(this,Re,gs.debounce(()=>{const e=qt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),m(this,Oe,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Mt)}get startOffsetCSSProperty(){return s(this,xt)}get captureOnceCSSProperty(){return s(this,Lt)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,I)}get capturedFromStartCSSProperty(){return s(this,H)}get capturedFromFinishCSSProperty(){return s(this,G)}get releasedFromStartCSSProperty(){return s(this,Ot)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,at)}get progressVarCSSProperty(){return s(this,lt)}get distanceVarCSSProperty(){return s(this,ct)}get startVarCSSProperty(){return s(this,ut)}get finishVarCSSProperty(){return s(this,pt)}get disabledCSSProperty(){return s(this,Wt)}get dampingCSSProperty(){return s(this,Zt)}get massCSSProperty(){return s(this,Jt)}get stiffnessCSSProperty(){return s(this,Qt)}get targetCSSProperty(){return s(this,Xt)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,J)}get isCapturedFromStart(){return s(this,Z)}get isReleasedFromStart(){return s(this,St)}get isCapturedFromFinish(){return s(this,dt)}get isReleasedFromFinish(){return s(this,Y)}get directionPosition(){return s(this,Yt)}get directionSize(){return s(this,jt)}get passed(){return s(this,L)}get progress(){return s(this,zt)}get start(){return s(this,O)}get finish(){return s(this,N)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,Ft)}get isDisabled(){return s(this,E)}resize(){m(this,jt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),m(this,Yt,this.scrollElement.vertical?gt.getCumulativeOffsetTop(this,this.scrollElement):gt.getCumulativeOffsetLeft(this,this.scrollElement)),m(this,O,this.getStart()),m(this,z,this.getDistance()),m(this,O,s(this,O)+s(this,xt).current),m(this,z,s(this,z)+s(this,Mt).current),m(this,N,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,N)&&!s(this,M).current&&!s(this,J).current&&(s(this,M).current=!0),this.setVar(s(this,ut).current,s(this,O)),this.setVar(s(this,pt).current,s(this,N)),this.setVar(s(this,ct).current,s(this,z)),s(this,L).max=s(this,z),m(this,Se,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Oe).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,Z).current||k(this,Xe,ks).call(this):s(this,Z).current&&!s(this,St).current&&k(this,je,Ms).call(this),i<s(this,N)?s(this,Y).current&&!s(this,dt).current&&k(this,Ye,Ws).call(this):s(this,Z).current&&!s(this,Y).current&&k(this,ts,xs).call(this)),i>s(this,O)&&i<s(this,N)?s(this,M).current||k(this,Je,Ps).call(this):s(this,M).current&&(s(this,L).set(is.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,Qe,Es).call(this)),s(this,Ft)&&s(this,Lt).current&&(s(this,D).current&&s(this,v).classList.add(s(this,D).current),m(this,E,!0))}disable(){this.style.cssText="",m(this,Yt,0),m(this,jt,0),s(this,L).reset(),m(this,zt,0),m(this,O,0),m(this,z,0),m(this,N,0),m(this,Se,!1),s(this,M).current=!1,s(this,J).current=!1,s(this,Z).current=!1,s(this,St).current=!1,s(this,dt).current=!1,s(this,Y).current=!1,m(this,Ft,!1),m(this,E,!0),k(this,Fe,es).call(this)}enable(){m(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,Zt).observe(),s(this,Jt).observe(),s(this,Qt).observe(),s(this,Xt).observe(),s(this,Wt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,D).observe(),s(this,I).observe(),s(this,H).observe(),s(this,G).observe(),s(this,Ot).observe(),s(this,x).observe(),s(this,at).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,pt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Re)),s(this,Re).call(this),s(this,Wt).current||this.enable(),s(this,Zt).subscribe(i=>{s(this,L).damping=i.current}),s(this,Jt).subscribe(i=>{s(this,L).mass=i.current}),s(this,Qt).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,Xt).subscribe(i=>{i.previous&&k(this,Fe,es).call(this),i.current?i.current==="parent"?m(this,v,this.parentElement||this):m(this,v,document.querySelector(i.current)||this):m(this,v,this)}),s(this,Wt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,xt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Mt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,H).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,G).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,I).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Ot).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,x).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Lt).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,at).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,lt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,zt)))}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,N)))}),s(this,ct).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{m(this,zt,s(this,L).current/s(this,z)||0),this.setVar(s(this,at).current,s(this,L).current.toFixed(6)),this.setVar(s(this,lt).current,s(this,zt).toFixed(6))}),re.windowResizer.subscribe(s(this,De),ge.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,de)),e=!0}disconnectedCallback(){re.windowResizer.unsubscribe(s(this,De)),this.scrollElement.offScroll(s(this,de)),s(this,Zt).close(),s(this,Jt).close(),s(this,Qt).close(),s(this,Xt).close(),s(this,Wt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,D).close(),s(this,I).close(),s(this,H).close(),s(this,G).close(),s(this,Ot).close(),s(this,x).close(),s(this,at).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,pt).close(),s(this,M).close(),s(this,J).close(),s(this,Z).close(),s(this,St).close(),s(this,dt).close(),s(this,Y).close(),this.disable()}removeVar(e){e&&s(this,v).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,v).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,jt)+s(this,$e)}getStart(){return s(this,Yt)-s(this,$e)}};Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;D=new WeakMap;I=new WeakMap;H=new WeakMap;G=new WeakMap;Ot=new WeakMap;x=new WeakMap;at=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;M=new WeakMap;J=new WeakMap;Z=new WeakMap;St=new WeakMap;dt=new WeakMap;Y=new WeakMap;Oe=new WeakMap;v=new WeakMap;Yt=new WeakMap;jt=new WeakMap;$e=new WeakMap;L=new WeakMap;zt=new WeakMap;O=new WeakMap;z=new WeakMap;N=new WeakMap;Se=new WeakMap;Ft=new WeakMap;E=new WeakMap;Je=new WeakSet;Ps=function(){s(this,M).current=!0,s(this,J).current=!1,m(this,Ft,!0),s(this,I).current&&s(this,v).classList.remove(s(this,I).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,D).current&&s(this,v).classList.add(s(this,D).current)};Qe=new WeakSet;Es=function(){s(this,J).current=!0,s(this,M).current=!1,m(this,Ft,!0),s(this,D).current&&s(this,v).classList.remove(s(this,D).current),s(this,H).current&&s(this,v).classList.remove(s(this,H).current),s(this,G).current&&s(this,v).classList.remove(s(this,G).current),s(this,I).current&&s(this,v).classList.add(s(this,I).current)};Xe=new WeakSet;ks=function(){s(this,M).current=!0,s(this,Z).current=!0,s(this,St).current=!1,s(this,H).current&&s(this,v).classList.add(s(this,H).current)};Ye=new WeakSet;Ws=function(){s(this,M).current=!0,s(this,dt).current=!0,s(this,Y).current=!1,s(this,G).current&&s(this,v).classList.add(s(this,G).current)};je=new WeakSet;Ms=function(){s(this,J).current=!0,s(this,St).current=!0,s(this,Z).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};ts=new WeakSet;xs=function(){s(this,J).current=!0,s(this,Y).current=!0,s(this,dt).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};De=new WeakMap;de=new WeakMap;ht=new WeakSet;Vt=function(r){if(s(this,E)){r.previous&&s(this,v).classList.remove(r.previous),r.current&&s(this,v).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,v).classList.remove(r.previous),s(this,v).classList.add(r.current)):!r.current&&r.previous&&s(this,v).classList.remove(r.previous)};ls=new WeakSet;Ls=function(...r){r.forEach(e=>{e&&s(this,v).classList.remove(e)})};cs=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,v).style.removeProperty(`--${e}`)})};Fe=new WeakSet;es=function(){k(this,ls,Ls).call(this,s(this,D).current,s(this,H).current,s(this,G).current,s(this,I).current,s(this,Ot).current,s(this,x).current),k(this,cs,zs).call(this,s(this,at).current,s(this,lt).current,s(this,ct).current,s(this,ut).current,s(this,pt).current)};Re=new WeakMap;exports.ScrollSegmentElement=ni([wt.define("e-scroll-segment")],exports.ScrollSegmentElement);
|
|
1
|
+
"use strict";var ps=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)};var o=(r,e,i)=>(ps(r,e,"read from private field"),i?i.call(r):e.get(r)),V=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},F=(r,e,i,n)=>(ps(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ct=require("../Store-BQGNOHlY.cjs"),Os=require("../Derived-BZtlW0bB.cjs"),is=require("../browser-CpzFX2xg.cjs"),gt=require("../layout-8ryRAMGJ.cjs"),rs=require("../math-GDWEqu7y.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");require("../ticker/index.cjs");const ge=require("../order/index.cjs"),ms=require("../Damped-CbWlWAbx.cjs"),ye=require("../controls/index.cjs"),wt=require("../custom-element/index.cjs"),re=require("../window-resizer/index.cjs"),qt=require("../scroll-entries/index.cjs"),A=require("../tags-CueX-JLX.cjs"),ns=require("../createStylesheet-C8aQQ4hd.cjs"),fs=require("../css-unit-parser/index.cjs"),p=require("../css-property/index.cjs"),$s=require("../Viewport-_WllZTJ0.cjs"),qe=require("../element-resizer/index.cjs"),Ds=require("../gestures-DHLrn6Q8.cjs"),Ss=require("../theme/index.cjs"),Fs=require("../dom-JBOkFLTh.cjs"),gs=require("../function-MthRj-GJ.cjs");var Rs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Ts=(r,e,i,n)=>{for(var h=n>1?void 0:n?qs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Rs(e,i,h),h},hs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},t=(r,e,i)=>(hs(r,e,"read from private field"),i?i.call(r):e.get(r)),l=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},b=(r,e,i,n)=>(hs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),C=(r,e,i)=>(hs(r,e,"access private method"),i),d,R,st,X,it,_t,yt,Z,T,Bt,At,It,Ht,oe,ot,Gt,Pt,Ut,Nt,g,Te,u,Pe,Ee,W,_,B,Y,$t,ft,$,P,ae,Et,ne,he,te,ve,Dt,ee,Be,os,Ae,as,ke,Ue,We,Ne,I,He,Ke,ws,le,Me,xe,Ze,me,Ie,Je,bs,w,y,Rt,tt,vt;class Bs{constructor(e,i){V(this,w,void 0);V(this,y,void 0);V(this,Rt,0);V(this,tt,0);V(this,vt,null);F(this,w,e),F(this,y,i),qt.scrollEntries.register(o(this,w))}get size(){return o(this,Rt)}get position(){return o(this,tt)}destroy(){qt.scrollEntries.unregister(o(this,w)),o(this,w).style.transform="",this.mark(null)}setSize(e){e?(o(this,w).style.setProperty("--size",e+"px"),o(this,y).axisCSSProperty.current==="x"?(o(this,w).style.width=e+"px",o(this,w).style.height=""):(o(this,w).style.height=e+"px",o(this,w).style.width="")):(o(this,w).style.width="",o(this,w).style.height="",o(this,w).style.removeProperty("--size"))}resize(){F(this,Rt,o(this,y).vertical?o(this,w).offsetHeight:o(this,w).offsetWidth),F(this,tt,o(this,y).vertical?gt.getCumulativeOffsetTop(o(this,w)):gt.getCumulativeOffsetLeft(o(this,w))),F(this,tt,o(this,tt)-o(this,y).contentPosition)}transform(){let e=0;const i=o(this,y).viewportSize*o(this,y).sectionDistanceScaleCSSProperty.current;o(this,y).infiniteCSSProperty.current&&o(this,y).overscroll&&o(this,tt)+o(this,Rt)<o(this,y).currentScrollValue&&(e=o(this,y).distance*-1-o(this,y).gap),qt.scrollEntries.update(o(this,w),o(this,y).axisCSSProperty.current,e);const n=o(this,y).currentScrollValue+e,h=o(this,tt)-o(this,y).viewportSize-i,c=o(this,tt)+o(this,Rt)+i,f=rs.clamp(n,h,c);o(this,y).vertical?o(this,w).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:o(this,w).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}mark(e){o(this,vt)!==e&&(o(this,vt)&&o(this,w).classList.remove(o(this,vt)),e&&o(this,w).classList.add(e),F(this,vt,e),o(this,w).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:o(this,vt)}})))}}w=new WeakMap,y=new WeakMap,Rt=new WeakMap,tt=new WeakMap,vt=new WeakMap;const As=ns.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".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":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(){super(),l(this,te),l(this,Dt),l(this,Be),l(this,Ae),l(this,ke),l(this,We),l(this,Ke),l(this,xe),l(this,me),l(this,Je),l(this,d,null),l(this,R,new p.CSSProperty(this,"--axis","y")),l(this,st,new p.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)})),l(this,X,new p.CSSProperty(this,"--split",!1)),l(this,it,new p.CSSProperty(this,"--sectional",!1)),l(this,_t,new p.CSSProperty(this,"--auto-size",!1)),l(this,yt,new p.CSSProperty(this,"--wheel-max-delta",!1)),l(this,Z,new p.CSSProperty(this,"--sections-in-view",1)),l(this,T,new p.CSSProperty(this,"--infinite",!1)),l(this,Bt,new p.CSSProperty(this,"--damping",20)),l(this,At,new p.CSSProperty(this,"--mass",0)),l(this,It,new p.CSSProperty(this,"--stiffness",0)),l(this,Ht,new p.CSSProperty(this,"--mouse-drag",!1)),l(this,oe,new p.CSSProperty(this,"--section-distance-scale",.5)),l(this,ot,new p.CSSProperty(this,"--autoplay",0)),l(this,Gt,new p.CSSProperty(this,"--autoplay-pause-duration",0)),l(this,Pt,new p.CSSProperty(this,"--autoplay-user-direction",!1)),l(this,Ut,new p.CSSProperty(this,"--disabled",!1)),l(this,Nt,new p.CSSProperty(this,"--hibernated",!1)),l(this,g,null),l(this,Te,null),l(this,u,[]),l(this,Pe,0),l(this,Ee,0),l(this,W,0),l(this,_,0),l(this,B,0),l(this,Y,null),l(this,$t,null),l(this,ft,null),l(this,$,null),l(this,P,new Ct.Store(0)),l(this,ae,0),l(this,Et,0),l(this,ne,!0),l(this,he,!0),l(this,I,()=>{t(this,d).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,_)||0,i=t(this,P).current;if(b(this,Pe,this.vertical?gt.getCumulativeOffsetTop(this):gt.getCumulativeOffsetLeft(this)),b(this,Ee,this.vertical?gt.getCumulativeOffsetTop(t(this,g)):gt.getCumulativeOffsetLeft(t(this,g))),b(this,W,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).rowGap)):b(this,B,fs.cssUnitParser.parse(getComputedStyle(t(this,g)).columnGap)),t(this,_t).current&&t(this,u).length){const n=t(this,Z).current,h=(t(this,W)-t(this,B)*(n-1))/n;t(this,u).forEach(c=>{c.setSize(h)})}else t(this,u).forEach(n=>{n.setSize()});if(t(this,u).forEach(n=>{n.resize()}),t(this,st).current){b(this,_,t(this,W)*t(this,st).current);const n=t(this,_)+t(this,W);this.vertical?(t(this,g).style.width=n+"px",t(this,g).style.height="100%"):(t(this,g).style.height=n+"px",t(this,g).style.width="100%")}else this.vertical?(t(this,g).style.width="100%",t(this,g).style.height="max-content",b(this,_,t(this,g).offsetHeight-t(this,W))):(t(this,g).style.width="max-content",t(this,g).style.height="100%",b(this,_,t(this,g).offsetWidth-t(this,W)));if(!t(this,T).current){const n=getComputedStyle(this),h=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);b(this,_,t(this,_)+h),t(this,d).max=t(this,_)}if(t(this,T).current&&t(this,u).length){const n=t(this,u)[t(this,u).length-1],h=n.position+n.size-t(this,W),c=t(this,_)-h;b(this,Et,n.position+n.size+c)}else b(this,Et,t(this,_));if(t(this,it).current&&t(this,u).length){const n=t(this,u)[i];t(this,d).set(n.position,{equalize:!0})}else t(this,d).set(e*t(this,_),{equalize:!0})}),l(this,He,()=>{const e=this.currentScrollValue;if(b(this,ae,Math.max(0,e-t(this,_))),t(this,u).length){let i=0;for(let n=0;n<t(this,u).length;n++){const h=t(this,u)[n];h.transform(),this.targetScrollValue+h.size/2>=h.position&&(i=n)}t(this,P).current=i}else this.vertical?t(this,g).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,g).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;qt.scrollEntries.update(this,t(this,R).current,e)}),l(this,le,(e,i)=>{t(this,$).pauseAndContinue(t(this,Gt).current),t(this,Pt).current&&(t(this,$).direction=Math.sign(i)||1),t(this,Me).call(this,e,i)}),l(this,Me,(e,i)=>{if(!(e==="drag"&&!$s.device.isMobile&&!t(this,Ht).current))if(t(this,it).current){const n=Math.sign(i);t(this,u).length?this.shiftSections(n):t(this,d).shift(n*t(this,W))}else t(this,d).shift(i)}),is.isBrowser&&(b(this,d,new ms.Damped(0,{damping:.01,min:0,order:ge.TICK_ORDER.SCROLL})),this.openShadow(As),A.element(this,{tabIndex:0,children:[A.div({class:"static",children:[A.slot({name:"static"})]}),A.div({class:"content",children:[A.slot({ref:e=>b(this,Te,e)})],style:{flexDirection:new Os.Derived(t(this,R),e=>e==="x"?"row":"column")},ref:e=>b(this,g,e)})]}),b(this,Y,new ye.WheelControls({element:t(this,g)})),t(this,Y).changeEvent.subscribe(t(this,le)),b(this,$t,new ye.KeyboardControls({element:this})),t(this,$t).changeEvent.subscribe(t(this,le)),b(this,ft,new ye.DragControls({element:t(this,g)})),t(this,ft).changeEvent.subscribe(t(this,le)),b(this,$,new ye.AutoplayControls),t(this,$).changeEvent.subscribe(t(this,Me)),t(this,R).subscribe(({current:e})=>{t(this,g).style.flexDirection=e==="x"?"row":"column",t(this,Y).axis=t(this,yt).current?"max":e,t(this,$t).dimension=e==="x"?"width":"height",t(this,ft).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,I).call(this)}),t(this,yt).subscribe(e=>{t(this,Y).axis=e.current?"max":t(this,R).current}),t(this,st).subscribe(()=>{this.isConnected&&t(this,I).call(this)}),t(this,X).subscribe(({current:e})=>{this.isConnected&&(e?C(this,te,ve).call(this):C(this,Dt,ee).call(this))}),t(this,it).subscribe(e=>{t(this,Y).debounce=e.current,t(this,ft).swipe=e.current,t(this,$).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,_t).subscribe(e=>{this.isConnected&&(t(this,I).call(this),e.current&&!e.previous&&!t(this,u).length?C(this,te,ve).call(this):!e.current&&e.previous&&t(this,u).length&&C(this,Dt,ee).call(this))}),t(this,Z).subscribe(e=>{this.isConnected&&(t(this,I).call(this),C(this,me,Ie).call(this))}),t(this,T).subscribe(e=>{e.current?(this.isConnected&&(t(this,u).length||(t(this,X).current=!0)),t(this,u).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(b(this,ae,0),t(this,d).max=t(this,_),t(this,d).min=0)}),t(this,Bt).subscribe(e=>{t(this,d).damping=e.current}),t(this,At).subscribe(e=>{t(this,d).mass=e.current}),t(this,It).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,Ut).subscribe(e=>{e.current&&!e.previous?C(this,Be,os).call(this):!e.current&&e.previous&&C(this,Ae,as).call(this)}),t(this,Nt).subscribe(e=>{e.current&&!e.previous?C(this,ke,Ue).call(this):!e.current&&e.previous&&C(this,We,Ne).call(this)}),t(this,ot).subscribe(e=>{t(this,$).speed=e.current,e.current&&!e.previous?t(this,$).connect():!e.current&&e.previous&&t(this,$).disconnect()}),t(this,Pt).subscribe(e=>{e.current||(t(this,$).direction=1)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,P).subscribe(e=>{t(this,u).length&&C(this,me,Ie).call(this)}))}get damped(){return t(this,d)}get axisCSSProperty(){return t(this,R)}get pagesCSSProperty(){return t(this,st)}get splitCSSProperty(){return t(this,X)}get sectionalCSSProperty(){return t(this,it)}get autoSizeCSSProperty(){return t(this,_t)}get wheelMaxDeltaCSSProperty(){return t(this,yt)}get sectionsInViewCSSProperty(){return t(this,Z)}get infiniteCSSProperty(){return t(this,T)}get dampingCSSProperty(){return t(this,Bt)}get massCSSProperty(){return t(this,At)}get stiffnessCSSProperty(){return t(this,It)}get mouseDragCSSProperty(){return t(this,Ht)}get sectionDistanceScaleCSSProperty(){return t(this,oe)}get autoplayCSSProperty(){return t(this,ot)}get autoplayPauseDurationCSSProperty(){return t(this,Gt)}get autoplayUserDirectionCSSProperty(){return t(this,Pt)}get disabledCSSProperty(){return t(this,Ut)}get hibernatedCSSProperty(){return t(this,Nt)}get currentScrollValue(){return C(this,xe,Ze).call(this,"current")}get targetScrollValue(){return C(this,xe,Ze).call(this,"target")}get contentElement(){return t(this,g)}get sections(){return t(this,u)}get position(){return t(this,Pe)}get contentPosition(){return t(this,Ee)}get viewportSize(){return t(this,W)}get scrollSize(){return t(this,_)}get gap(){return t(this,B)}get counter(){return t(this,P)}get limit(){return t(this,u).length-t(this,Z).current}get distance(){return t(this,Et)}get infiniteDistance(){return t(this,T).current?t(this,Et)+t(this,B):t(this,Et)}get overscroll(){return t(this,ae)}get vertical(){return t(this,R).current==="y"}get currentProgress(){return this.currentScrollValue/this.infiniteDistance||0}get targetProgress(){return this.targetScrollValue/this.infiniteDistance||0}get scrollWidth(){return t(this,R).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,R).current==="x"?0:t(this,d).distance}onScroll(...e){return t(this,d).subscribe(...e)}offScroll(...e){t(this,d).unsubscribe(...e)}range(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress<h?0:this.currentProgress>c?1:(this.currentProgress-h)/(c-h)}curve(e,i,n=0){return Math.sin(this.range(e,i,n)*Math.PI)}visible(e,i,n=0){const h=e-n,c=h+i+n*2;return this.currentProgress>=h&&this.currentProgress<=c}scrollToSection(e,i="smooth"){if(!t(this,u).length)return;const n=t(this,P).current;C(this,Ke,ws).call(this,e);const h=t(this,u)[n],c=t(this,u)[t(this,P).current];if(h&&c){let f=0;const _e=C(this,Je,bs).call(this),Vs=_e?this.targetScrollValue-_e.position:0;t(this,T).current?t(this,P).current===0&&n===t(this,u).length-1?f=t(this,_)+t(this,W)-h.position+t(this,B):t(this,P).current===t(this,u).length-1&&n===0?f=c.position-(t(this,_)+t(this,W)+t(this,B)):f=c.position-h.position:f=c.position-h.position,t(this,d).shift(f-Vs,{equalize:i==="instant"})}}shiftSections(e,i="smooth"){t(this,u).length&&this.scrollToSection(t(this,P).current+e,i)}setPosition(e,i="smooth"){t(this,d).set(e,{equalize:i==="instant"})}connectedCallback(){t(this,R).observe(),t(this,st).observe(),t(this,X).observe(),t(this,it).observe(),t(this,_t).observe(),t(this,yt).observe(),t(this,Z).observe(),t(this,T).observe(),t(this,Bt).observe(),t(this,At).observe(),t(this,It).observe(),t(this,Ht).observe(),t(this,oe).observe(),t(this,ot).observe(),t(this,ot).observe(),t(this,Gt).observe(),t(this,Pt).observe(),t(this,Ut).observe(),t(this,Nt).observe(),C(this,We,Ne).call(this)}disconnectedCallback(){t(this,R).unobserve(),t(this,st).unobserve(),t(this,X).unobserve(),t(this,it).unobserve(),t(this,_t).unobserve(),t(this,yt).unobserve(),t(this,Z).unobserve(),t(this,T).unobserve(),t(this,Bt).unobserve(),t(this,At).unobserve(),t(this,It).unobserve(),t(this,Ht).unobserve(),t(this,oe).unobserve(),t(this,ot).unobserve(),t(this,Gt).unobserve(),t(this,Pt).unobserve(),t(this,Ut).unobserve(),t(this,Nt).unobserve(),C(this,ke,Ue).call(this)}};d=new WeakMap;R=new WeakMap;st=new WeakMap;X=new WeakMap;it=new WeakMap;_t=new WeakMap;yt=new WeakMap;Z=new WeakMap;T=new WeakMap;Bt=new WeakMap;At=new WeakMap;It=new WeakMap;Ht=new WeakMap;oe=new WeakMap;ot=new WeakMap;Gt=new WeakMap;Pt=new WeakMap;Ut=new WeakMap;Nt=new WeakMap;g=new WeakMap;Te=new WeakMap;u=new WeakMap;Pe=new WeakMap;Ee=new WeakMap;W=new WeakMap;_=new WeakMap;B=new WeakMap;Y=new WeakMap;$t=new WeakMap;ft=new WeakMap;$=new WeakMap;P=new WeakMap;ae=new WeakMap;Et=new WeakMap;ne=new WeakMap;he=new WeakMap;te=new WeakSet;ve=function(){C(this,Dt,ee).call(this),t(this,Te).assignedElements().forEach(r=>{r instanceof HTMLElement&&t(this,u).push(new Bs(r,this))}),t(this,g).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,I).call(this),C(this,me,Ie).call(this)};Dt=new WeakSet;ee=function(){t(this,u).forEach(r=>{r.destroy()}),b(this,u,[]),t(this,P).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))};Be=new WeakSet;os=function(){t(this,ne)||(b(this,ne,!0),t(this,d).unsubscribe(t(this,He)),t(this,d).unlistenAnimationFrame(),t(this,Y).disconnect(),t(this,$t).disconnect(),t(this,ft).disconnect(),t(this,$).disconnect())};Ae=new WeakSet;as=function(){t(this,ne)&&(b(this,ne,!1),t(this,d).subscribe(t(this,He)),t(this,Y).connect(),t(this,$t).connect(),t(this,ft).connect(),t(this,ot).current&&t(this,$).connect())};ke=new WeakSet;Ue=function(){t(this,he)||(b(this,he,!0),re.windowResizer.unsubscribe(t(this,I)),qe.elementResizer.unsubscribe(t(this,I)),t(this,d).reset(),C(this,Be,os).call(this),t(this,g).style.transform="",t(this,X).current&&C(this,Dt,ee).call(this),qt.scrollEntries.unregister(this))};We=new WeakSet;Ne=function(){t(this,he)&&(b(this,he,!1),t(this,X).current&&C(this,te,ve).call(this),qt.scrollEntries.register(this),re.windowResizer.subscribe(t(this,I),ge.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,I)),C(this,Ae,as).call(this))};I=new WeakMap;He=new WeakMap;Ke=new WeakSet;ws=function(r){t(this,T).current?(t(this,P).current=r%t(this,u).length,t(this,P).current=t(this,P).current<0?t(this,u).length+t(this,P).current:t(this,P).current):t(this,P).current=rs.clamp(r,0,this.limit)};le=new WeakMap;Me=new WeakMap;xe=new WeakSet;Ze=function(r="current"){if(t(this,T).current&&t(this,u).length){const e=t(this,d)[r]%(t(this,_)+t(this,W)+t(this,B));return e<0?t(this,_)+e+t(this,W)+t(this,B):e}else return t(this,d)[r]};me=new WeakSet;Ie=function(){if(t(this,u).length){const r=t(this,P).current;r===0?this.classList.add("start"):this.classList.remove("start"),r===this.limit?this.classList.add("end"):this.classList.remove("end"),t(this,u).forEach((e,i)=>{const n=r-this.limit-1,h=r+t(this,Z).current,c=this.sections.length-h;i>=r&&i<h||i<=n?e.mark("current"):i>=h&&i<h+c/2||i<=n+t(this,Z).current?e.mark("next"):e.mark("previous")})}};Je=new WeakSet;bs=function(){let r=null,e=1/0;for(let i=0;i<t(this,u).length;i++){const n=Math.abs(t(this,u)[i].position-this.targetScrollValue);n<e&&(e=n,r=i)}return r!==null?t(this,u)[r]:null};exports.ScrollElement=Ts([wt.define("e-scroll")],exports.ScrollElement);var we;class Ge extends wt.CustomElement{constructor(){super(...arguments);V(this,we,null)}get scrollElement(){return o(this,we)}connectedCallback(){const i=Fs.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?F(this,we,i):console.error(this,"e-scroll not found")}}we=new WeakMap;var Is=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(r,e,i,n)=>{for(var h=n>1?void 0:n?Hs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Is(e,i,h),h},Cs=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},S=(r,e,i)=>(Cs(r,e,"read from private field"),i?i.call(r):e.get(r)),N=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},bt=(r,e,i,n)=>(Cs(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),ce,q,rt,nt,ue,pe,Kt,Le,ze,Ve;const Us=ns.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ss.aptechkaTheme.colorLight.var},':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:Ss.aptechkaTheme.colorDark.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Ge{constructor(){super(),N(this,ce,null),N(this,q,null),N(this,rt,!1),N(this,nt,0),N(this,ue,0),N(this,pe,0),N(this,Kt,()=>{bt(this,rt,this.offsetWidth>this.offsetHeight);const e=S(this,rt)?this.offsetWidth:this.offsetHeight;bt(this,nt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),bt(this,nt,Math.max(S(this,nt),30)),S(this,rt)?(S(this,q).style.width=S(this,nt)+"px",S(this,q).style.height="100%"):(S(this,q).style.width="100%",S(this,q).style.height=S(this,nt)+"px"),bt(this,ue,e-S(this,nt)),this.scrollElement.scrollSize||(this.style.display="none")}),N(this,Le,()=>{bt(this,pe,this.scrollElement.currentProgress*S(this,ue)),S(this,rt)?S(this,q).style.transform=`translate3d(${S(this,pe)}px, 0px, 0px)`:S(this,q).style.transform=`translate3d(0px, ${S(this,pe)}px, 0px)`}),N(this,ze,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)}),N(this,Ve,e=>{document.documentElement.classList.add("grabbing"),Ds.setupDrag(h=>{const c=S(this,rt)?h.x:h.y,f=this.scrollElement.distance/S(this,ue),_e=(c-n)*f;this.scrollElement.setPosition(i+_e)},()=>{document.documentElement.classList.remove("grabbing")});const i=this.scrollElement.targetScrollValue,n=S(this,rt)?e.x:e.y}),is.isBrowser&&(this.openShadow(Us),A.element(this,{slot:"static","drag-dead-zone":"",children:[A.slot({ref:e=>bt(this,ce,e),children:A.div({class:"default-thumb"})})]}))}get thumbElement(){return S(this,q)}connectedCallback(){super.connectedCallback();const e=S(this,ce).assignedElements()[0]||S(this,ce).firstElementChild;bt(this,q,e),S(this,q).addEventListener("pointerdown",S(this,Ve)),re.windowResizer.subscribe(S(this,Kt),ge.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,S(this,Kt)),this.scrollElement.onScroll(S(this,Le)),this.scrollElement.axisCSSProperty.subscribe(S(this,ze))}disconnectedCallback(){S(this,q).removeEventListener("pointerdown",S(this,Ve)),re.windowResizer.unsubscribe(S(this,Kt)),qe.elementResizer.unsubscribe(S(this,Kt)),this.scrollElement.offScroll(S(this,Le)),this.scrollElement.axisCSSProperty.unsubscribe(S(this,ze))}};ce=new WeakMap;q=new WeakMap;rt=new WeakMap;nt=new WeakMap;ue=new WeakMap;pe=new WeakMap;Kt=new WeakMap;Le=new WeakMap;ze=new WeakMap;Ve=new WeakMap;exports.ScrollbarElement=Gs([wt.define("e-scrollbar")],exports.ScrollbarElement);const Ns=ns.createStylesheet({button:{all:"inherit"}});class _s extends Ge{constructor(){super(),this.openShadow(Ns),is.isBrowser&&A.element(this,{children:[A.button({onClick:()=>{this.handleClick()},children:[A.slot()]})]})}}var Ks=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Js=(r,e,i,n)=>{for(var h=n>1?void 0:n?Zs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Ks(e,i,h),h};exports.ScrollSetButtonElement=class extends _s{handleClick(){const e=this.getAttribute("index"),i=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(e||"0"),i)}};exports.ScrollSetButtonElement=Js([wt.define("e-scroll-set-button")],exports.ScrollSetButtonElement);var Qs=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,Ys=(r,e,i,n)=>{for(var h=n>1?void 0:n?Xs(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&Qs(e,i,h),h};exports.ScrollStepButtonElement=class extends _s{handleClick(){const e=this.getAttribute("step"),i=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(e||"1"),i)}};exports.ScrollStepButtonElement=Ys([wt.define("e-scroll-step-button")],exports.ScrollStepButtonElement);var js=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(r,e,i,n)=>{for(var h=n>1?void 0:n?ti(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&js(e,i,h),h},ys=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},Tt=(r,e,i)=>(ys(r,e,"read from private field"),i?i.call(r):e.get(r)),ds=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},vs=(r,e,i,n)=>(ys(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),kt,fe,et,mt,se,be,Ce,ie;class si{constructor(e,i,n){V(this,et,void 0);V(this,mt,void 0);V(this,se,void 0);V(this,be,void 0);V(this,Ce,()=>{o(this,mt).scrollToSection(o(this,se),o(this,be))});V(this,ie,()=>{o(this,et).classList.toggle("current",o(this,mt).counter.current===o(this,se))});F(this,et,document.createElement("button")),F(this,mt,e),F(this,be,n),F(this,se,i),o(this,et).addEventListener("click",o(this,Ce)),o(this,mt).counter.subscribe(o(this,ie)),o(this,ie).call(this)}get element(){return o(this,et)}destroy(){o(this,et).removeEventListener("click",o(this,Ce)),o(this,mt).counter.unsubscribe(o(this,ie)),o(this,et).remove()}}et=new WeakMap,mt=new WeakMap,se=new WeakMap,be=new WeakMap,Ce=new WeakMap,ie=new WeakMap;exports.ScrollBulletButtonsElement=class extends Ge{constructor(){super(...arguments),ds(this,kt,[]),ds(this,fe,gs.debounce(()=>{Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[]);for(let e=0;e<this.scrollElement.sections.length;e++){const i=new si(this.scrollElement,e,this.getAttribute("behaviour")||"smooth");this.appendChild(i.element),Tt(this,kt).push(i)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",Tt(this,fe)),Tt(this,fe).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",Tt(this,fe)),Tt(this,kt).forEach(e=>e.destroy()),vs(this,kt,[])}};kt=new WeakMap;fe=new WeakMap;exports.ScrollBulletButtonsElement=ei([wt.define("e-scroll-bullet-buttons")],exports.ScrollBulletButtonsElement);var ii=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ni=(r,e,i,n)=>{for(var h=n>1?void 0:n?ri(e,i):e,c=r.length-1,f;c>=0;c--)(f=r[c])&&(h=(n?f(e,i,h):f(h))||h);return n&&h&&ii(e,i,h),h},ls=(r,e,i)=>{if(!e.has(r))throw TypeError("Cannot "+i)},s=(r,e,i)=>(ls(r,e,"read from private field"),i?i.call(r):e.get(r)),a=(r,e,i)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,i)},m=(r,e,i,n)=>(ls(r,e,"write to private field"),n?n.call(r,i):e.set(r,i),i),k=(r,e,i)=>(ls(r,e,"access private method"),i),Zt,Jt,Qt,Xt,Wt,Mt,xt,Lt,D,H,G,U,Ot,x,at,lt,ct,ut,pt,M,Q,J,St,dt,j,Oe,v,Yt,jt,$e,L,zt,O,z,K,Se,Ft,E,Qe,Ps,Xe,Es,Ye,ks,je,Ws,ts,Ms,es,xs,De,de,ht,Vt,cs,Ls,us,zs,Fe,ss,Re;exports.ScrollSegmentElement=class extends Ge{constructor(){super(),a(this,Qe),a(this,Xe),a(this,Ye),a(this,je),a(this,ts),a(this,es),a(this,ht),a(this,cs),a(this,us),a(this,Fe),a(this,Zt,new p.CSSProperty(this,"--damping",20)),a(this,Jt,new p.CSSProperty(this,"--mass",0)),a(this,Qt,new p.CSSProperty(this,"--stiffness",0)),a(this,Xt,new p.CSSProperty(this,"--target","")),a(this,Wt,new p.CSSProperty(this,"--disabled",!1)),a(this,Mt,new p.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),a(this,xt,new p.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),a(this,Lt,new p.CSSProperty(this,"--capture-once",!1)),a(this,D,new p.CSSProperty(this,"--captured","")),a(this,H,new p.CSSProperty(this,"--released","")),a(this,G,new p.CSSProperty(this,"--captured-from-start","")),a(this,U,new p.CSSProperty(this,"--captured-from-finish","")),a(this,Ot,new p.CSSProperty(this,"--released-from-start","")),a(this,x,new p.CSSProperty(this,"--released-from-finish","")),a(this,at,new p.CSSProperty(this,"--passed-var","")),a(this,lt,new p.CSSProperty(this,"--progress-var","")),a(this,ct,new p.CSSProperty(this,"--distance-var","")),a(this,ut,new p.CSSProperty(this,"--start-var","")),a(this,pt,new p.CSSProperty(this,"--finish-var","")),a(this,M,new Ct.Store(!1)),a(this,Q,new Ct.Store(!1)),a(this,J,new Ct.Store(!1)),a(this,St,new Ct.Store(!1)),a(this,dt,new Ct.Store(!1)),a(this,j,new Ct.Store(!1)),a(this,Oe,[]),a(this,v,this),a(this,Yt,0),a(this,jt,0),a(this,$e,0),a(this,L,new ms.Damped(0,{order:ge.TICK_ORDER.SCROLL-1,min:0,max:1})),a(this,zt,0),a(this,O,0),a(this,z,0),a(this,K,0),a(this,Se,!1),a(this,Ft,!1),a(this,E,!0),a(this,De,()=>{s(this,E)||(this.resize(),s(this,de).call(this))}),a(this,de,()=>{!s(this,E)&&s(this,Se)&&this.tick()}),a(this,Re,gs.debounce(()=>{const e=qt.scrollEntries.getAll(this).reverse();let i=0;e.forEach((n,h)=>{n.element===this.scrollElement&&(i=h)}),m(this,Oe,e.slice(i+1))},0))}get distanceOffsetCSSProperty(){return s(this,Mt)}get startOffsetCSSProperty(){return s(this,xt)}get captureOnceCSSProperty(){return s(this,Lt)}get capturedCSSProperty(){return s(this,D)}get releasedCSSProperty(){return s(this,H)}get capturedFromStartCSSProperty(){return s(this,G)}get capturedFromFinishCSSProperty(){return s(this,U)}get releasedFromStartCSSProperty(){return s(this,Ot)}get releasedFromFinishCSSProperty(){return s(this,x)}get passedVarCSSProperty(){return s(this,at)}get progressVarCSSProperty(){return s(this,lt)}get distanceVarCSSProperty(){return s(this,ct)}get startVarCSSProperty(){return s(this,ut)}get finishVarCSSProperty(){return s(this,pt)}get disabledCSSProperty(){return s(this,Wt)}get dampingCSSProperty(){return s(this,Zt)}get massCSSProperty(){return s(this,Jt)}get stiffnessCSSProperty(){return s(this,Qt)}get targetCSSProperty(){return s(this,Xt)}get isCaptured(){return s(this,M)}get isReleased(){return s(this,Q)}get isCapturedFromStart(){return s(this,J)}get isReleasedFromStart(){return s(this,St)}get isCapturedFromFinish(){return s(this,dt)}get isReleasedFromFinish(){return s(this,j)}get directionPosition(){return s(this,Yt)}get directionSize(){return s(this,jt)}get passed(){return s(this,L)}get progress(){return s(this,zt)}get start(){return s(this,O)}get finish(){return s(this,K)}get distance(){return s(this,z)}get isCapturedOnce(){return s(this,Ft)}get isDisabled(){return s(this,E)}resize(){m(this,jt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),m(this,Yt,this.scrollElement.vertical?gt.getCumulativeOffsetTop(this,this.scrollElement):gt.getCumulativeOffsetLeft(this,this.scrollElement)),m(this,O,this.getStart()),m(this,z,this.getDistance()),m(this,O,s(this,O)+s(this,xt).current),m(this,z,s(this,z)+s(this,Mt).current),m(this,K,s(this,O)+s(this,z)),this.scrollElement.currentScrollValue>s(this,K)&&!s(this,M).current&&!s(this,Q).current&&(s(this,M).current=!0),this.setVar(s(this,ut).current,s(this,O)),this.setVar(s(this,pt).current,s(this,K)),this.setVar(s(this,ct).current,s(this,z)),s(this,L).max=s(this,z),m(this,Se,!0)}tick(){let e=this.scrollElement.currentScrollValue;s(this,Oe).forEach(n=>{e+=n.value}),s(this,L).set(e-s(this,O));const i=Math.round(e);s(this,M).current&&(i>s(this,O)?s(this,J).current||k(this,Ye,ks).call(this):s(this,J).current&&!s(this,St).current&&k(this,ts,Ms).call(this),i<s(this,K)?s(this,j).current&&!s(this,dt).current&&k(this,je,Ws).call(this):s(this,J).current&&!s(this,j).current&&k(this,es,xs).call(this)),i>s(this,O)&&i<s(this,K)?s(this,M).current||k(this,Qe,Ps).call(this):s(this,M).current&&(s(this,L).set(rs.step(s(this,z)/2,s(this,L).current,0,s(this,z))),k(this,Xe,Es).call(this)),s(this,Ft)&&s(this,Lt).current&&(s(this,D).current&&s(this,v).classList.add(s(this,D).current),m(this,E,!0))}disable(){this.style.cssText="",m(this,Yt,0),m(this,jt,0),s(this,L).reset(),m(this,zt,0),m(this,O,0),m(this,z,0),m(this,K,0),m(this,Se,!1),s(this,M).current=!1,s(this,Q).current=!1,s(this,J).current=!1,s(this,St).current=!1,s(this,dt).current=!1,s(this,j).current=!1,m(this,Ft,!1),m(this,E,!0),k(this,Fe,ss).call(this)}enable(){m(this,E,!1)}connectedCallback(){super.connectedCallback(),s(this,Zt).observe(),s(this,Jt).observe(),s(this,Qt).observe(),s(this,Xt).observe(),s(this,Wt).observe(),s(this,Mt).observe(),s(this,xt).observe(),s(this,Lt).observe(),s(this,D).observe(),s(this,H).observe(),s(this,G).observe(),s(this,U).observe(),s(this,Ot).observe(),s(this,x).observe(),s(this,at).observe(),s(this,lt).observe(),s(this,ct).observe(),s(this,ut).observe(),s(this,pt).observe();let e=!1;this.scrollElement.addEventListener("sectionsChange",s(this,Re)),s(this,Re).call(this),s(this,Wt).current||this.enable(),s(this,Zt).subscribe(i=>{s(this,L).damping=i.current}),s(this,Jt).subscribe(i=>{s(this,L).mass=i.current}),s(this,Qt).subscribe(i=>{s(this,L).stiffness=i.current}),s(this,Xt).subscribe(i=>{i.previous&&k(this,Fe,ss).call(this),i.current?i.current==="parent"?m(this,v,this.parentElement||this):m(this,v,document.querySelector(i.current)||this):m(this,v,this)}),s(this,Wt).subscribe(i=>{i.current&&!i.previous?this.disable():!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,xt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,Mt).subscribe(()=>{e&&!s(this,E)&&this.resize()}),s(this,D).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,G).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,U).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,H).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Ot).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,x).subscribe(i=>{k(this,ht,Vt).call(this,i)}),s(this,Lt).subscribe(i=>{s(this,E)||!i.current&&i.previous&&(this.resize(),this.enable())}),s(this,at).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,this.passed.current))}),s(this,lt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,zt)))}),s(this,ut).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,O)))}),s(this,pt).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,K)))}),s(this,ct).subscribe(i=>{s(this,E)||(this.removeVar(i.previous),this.setVar(i.current,s(this,z)))}),s(this,L).subscribe(i=>{m(this,zt,s(this,L).current/s(this,z)||0),this.setVar(s(this,at).current,s(this,L).current.toFixed(6)),this.setVar(s(this,lt).current,s(this,zt).toFixed(6))}),re.windowResizer.subscribe(s(this,De),ge.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(s(this,de)),e=!0}disconnectedCallback(){re.windowResizer.unsubscribe(s(this,De)),this.scrollElement.offScroll(s(this,de)),s(this,Zt).close(),s(this,Jt).close(),s(this,Qt).close(),s(this,Xt).close(),s(this,Wt).close(),s(this,Mt).close(),s(this,xt).close(),s(this,Lt).close(),s(this,D).close(),s(this,H).close(),s(this,G).close(),s(this,U).close(),s(this,Ot).close(),s(this,x).close(),s(this,at).close(),s(this,lt).close(),s(this,ct).close(),s(this,ut).close(),s(this,pt).close(),s(this,M).close(),s(this,Q).close(),s(this,J).close(),s(this,St).close(),s(this,dt).close(),s(this,j).close(),this.disable()}removeVar(e){e&&s(this,v).style.removeProperty(`--${e}`)}setVar(e,i){e&&s(this,v).style.setProperty(`--${e}`,i.toString())}getDistance(){return s(this,jt)+s(this,$e)}getStart(){return s(this,Yt)-s(this,$e)}};Zt=new WeakMap;Jt=new WeakMap;Qt=new WeakMap;Xt=new WeakMap;Wt=new WeakMap;Mt=new WeakMap;xt=new WeakMap;Lt=new WeakMap;D=new WeakMap;H=new WeakMap;G=new WeakMap;U=new WeakMap;Ot=new WeakMap;x=new WeakMap;at=new WeakMap;lt=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;M=new WeakMap;Q=new WeakMap;J=new WeakMap;St=new WeakMap;dt=new WeakMap;j=new WeakMap;Oe=new WeakMap;v=new WeakMap;Yt=new WeakMap;jt=new WeakMap;$e=new WeakMap;L=new WeakMap;zt=new WeakMap;O=new WeakMap;z=new WeakMap;K=new WeakMap;Se=new WeakMap;Ft=new WeakMap;E=new WeakMap;Qe=new WeakSet;Ps=function(){s(this,M).current=!0,s(this,Q).current=!1,m(this,Ft,!0),s(this,H).current&&s(this,v).classList.remove(s(this,H).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,x).current&&s(this,v).classList.remove(s(this,x).current),s(this,D).current&&s(this,v).classList.add(s(this,D).current)};Xe=new WeakSet;Es=function(){s(this,Q).current=!0,s(this,M).current=!1,m(this,Ft,!0),s(this,D).current&&s(this,v).classList.remove(s(this,D).current),s(this,G).current&&s(this,v).classList.remove(s(this,G).current),s(this,U).current&&s(this,v).classList.remove(s(this,U).current),s(this,H).current&&s(this,v).classList.add(s(this,H).current)};Ye=new WeakSet;ks=function(){s(this,M).current=!0,s(this,J).current=!0,s(this,St).current=!1,s(this,G).current&&s(this,v).classList.add(s(this,G).current)};je=new WeakSet;Ws=function(){s(this,M).current=!0,s(this,dt).current=!0,s(this,j).current=!1,s(this,U).current&&s(this,v).classList.add(s(this,U).current)};ts=new WeakSet;Ms=function(){s(this,Q).current=!0,s(this,St).current=!0,s(this,J).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};es=new WeakSet;xs=function(){s(this,Q).current=!0,s(this,j).current=!0,s(this,dt).current=!1,s(this,x).current&&s(this,v).classList.add(s(this,x).current)};De=new WeakMap;de=new WeakMap;ht=new WeakSet;Vt=function(r){if(s(this,E)){r.previous&&s(this,v).classList.remove(r.previous),r.current&&s(this,v).classList.remove(r.current);return}r.current&&s(this,M).current?(r.previous&&s(this,v).classList.remove(r.previous),s(this,v).classList.add(r.current)):!r.current&&r.previous&&s(this,v).classList.remove(r.previous)};cs=new WeakSet;Ls=function(...r){r.forEach(e=>{e&&s(this,v).classList.remove(e)})};us=new WeakSet;zs=function(...r){r.forEach(e=>{e&&s(this,v).style.removeProperty(`--${e}`)})};Fe=new WeakSet;ss=function(){k(this,cs,Ls).call(this,s(this,D).current,s(this,G).current,s(this,U).current,s(this,H).current,s(this,Ot).current,s(this,x).current),k(this,us,zs).call(this,s(this,at).current,s(this,lt).current,s(this,ct).current,s(this,ut).current,s(this,pt).current)};Re=new WeakMap;exports.ScrollSegmentElement=ni([wt.define("e-scroll-segment")],exports.ScrollSegmentElement);
|
package/lib/scroll/index.js
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
var
|
|
1
|
+
var fs = (e, i, r) => {
|
|
2
2
|
if (!i.has(e))
|
|
3
3
|
throw TypeError("Cannot " + r);
|
|
4
4
|
};
|
|
5
|
-
var a = (e, i, r) => (
|
|
5
|
+
var a = (e, i, r) => (fs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), z = (e, i, r) => {
|
|
6
6
|
if (i.has(e))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
9
|
-
}, O = (e, i, r, h) => (
|
|
9
|
+
}, O = (e, i, r, h) => (fs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r);
|
|
10
10
|
import { S as gt } from "../Store-Cd-E5W1z.js";
|
|
11
11
|
import { D as Hs } from "../Derived-DH-ouLBq.js";
|
|
12
|
-
import { i as
|
|
12
|
+
import { i as is } from "../browser-0zX67oeU.js";
|
|
13
13
|
import { a as $e, g as Fe } from "../layout-HoBT_Da2.js";
|
|
14
14
|
import { c as ys, s as Gs } from "../math-BOBiC4TN.js";
|
|
15
15
|
import "../path-data-polyfill-DgeDWYeI.js";
|
|
16
16
|
import "../ticker/index.js";
|
|
17
|
-
import { TICK_ORDER as ks, RESIZE_ORDER as
|
|
17
|
+
import { TICK_ORDER as ks, RESIZE_ORDER as rs } from "../order/index.js";
|
|
18
18
|
import { D as Ps } from "../Damped-BJgyFENo.js";
|
|
19
19
|
import { WheelControls as qs, KeyboardControls as Ns, DragControls as Us, AutoplayControls as Ks } from "../controls/index.js";
|
|
20
20
|
import { CustomElement as Ws, define as re } from "../custom-element/index.js";
|
|
21
21
|
import { windowResizer as ee } from "../window-resizer/index.js";
|
|
22
22
|
import { scrollEntries as Dt } from "../scroll-entries/index.js";
|
|
23
|
-
import { e as
|
|
24
|
-
import { c as
|
|
25
|
-
import { cssUnitParser as
|
|
23
|
+
import { e as hs, D as qe, ay as De, p as Zs } from "../tags-BoPv9fDr.js";
|
|
24
|
+
import { c as ns } from "../createStylesheet-KMRQhSa-.js";
|
|
25
|
+
import { cssUnitParser as ds } from "../css-unit-parser/index.js";
|
|
26
26
|
import { CSSProperty as u } from "../css-property/index.js";
|
|
27
27
|
import { d as Js } from "../Viewport-Bx-VImCe.js";
|
|
28
|
+
import { elementResizer as Oe } from "../element-resizer/index.js";
|
|
28
29
|
import { s as Qs } from "../gestures-D2Fdra_G.js";
|
|
29
|
-
import { aptechkaTheme as
|
|
30
|
-
import { elementResizer as Ss } from "../element-resizer/index.js";
|
|
30
|
+
import { aptechkaTheme as Ss } from "../theme/index.js";
|
|
31
31
|
import { f as Xs } from "../dom-0S_WDL4g.js";
|
|
32
32
|
import { d as Ms } from "../function-C10DGppn.js";
|
|
33
33
|
var Ys = Object.defineProperty, js = Object.getOwnPropertyDescriptor, ti = (e, i, r, h) => {
|
|
34
34
|
for (var n = h > 1 ? void 0 : h ? js(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
35
35
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
36
36
|
return h && n && Ys(i, r, n), n;
|
|
37
|
-
},
|
|
37
|
+
}, as = (e, i, r) => {
|
|
38
38
|
if (!i.has(e))
|
|
39
39
|
throw TypeError("Cannot " + r);
|
|
40
|
-
}, t = (e, i, r) => (
|
|
40
|
+
}, t = (e, i, r) => (as(e, i, "read from private field"), r ? r.call(e) : i.get(e)), l = (e, i, r) => {
|
|
41
41
|
if (i.has(e))
|
|
42
42
|
throw TypeError("Cannot add the same private member more than once");
|
|
43
43
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
44
|
-
},
|
|
44
|
+
}, w = (e, i, r, h) => (as(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), _ = (e, i, r) => (as(e, i, "access private method"), r), S, A, et, Q, st, bt, wt, K, T, At, Rt, Tt, It, he, nt, Bt, _t, Ht, Gt, g, Ae, c, be, we, M, C, I, X, Vt, pt, F, k, ne, Ct, se, ie, Xt, de, zt, Yt, Re, os, Te, ls, _e, Ne, Ce, Ue, B, He, Ke, Es, ae, ye, ke, Ze, Se, Ie, Je, xs, b, y, Ft, j, St;
|
|
45
45
|
class ei {
|
|
46
46
|
constructor(i, r) {
|
|
47
|
-
z(this,
|
|
47
|
+
z(this, b, void 0);
|
|
48
48
|
z(this, y, void 0);
|
|
49
49
|
z(this, Ft, 0);
|
|
50
|
-
z(this,
|
|
50
|
+
z(this, j, 0);
|
|
51
51
|
z(this, St, null);
|
|
52
|
-
O(this,
|
|
52
|
+
O(this, b, i), O(this, y, r), Dt.register(a(this, b));
|
|
53
53
|
}
|
|
54
54
|
get size() {
|
|
55
55
|
return a(this, Ft);
|
|
56
56
|
}
|
|
57
57
|
get position() {
|
|
58
|
-
return a(this,
|
|
58
|
+
return a(this, j);
|
|
59
59
|
}
|
|
60
60
|
destroy() {
|
|
61
|
-
Dt.unregister(a(this,
|
|
61
|
+
Dt.unregister(a(this, b)), a(this, b).style.transform = "", this.mark(null);
|
|
62
62
|
}
|
|
63
63
|
setSize(i) {
|
|
64
|
-
i ? (a(this,
|
|
64
|
+
i ? (a(this, b).style.setProperty("--size", i + "px"), a(this, y).axisCSSProperty.current === "x" ? (a(this, b).style.width = i + "px", a(this, b).style.height = "") : (a(this, b).style.height = i + "px", a(this, b).style.width = "")) : (a(this, b).style.width = "", a(this, b).style.height = "", a(this, b).style.removeProperty("--size"));
|
|
65
65
|
}
|
|
66
66
|
resize() {
|
|
67
|
-
O(this, Ft, a(this, y).vertical ? a(this,
|
|
67
|
+
O(this, Ft, a(this, y).vertical ? a(this, b).offsetHeight : a(this, b).offsetWidth), O(this, j, a(this, y).vertical ? $e(a(this, b)) : Fe(a(this, b))), O(this, j, a(this, j) - a(this, y).contentPosition);
|
|
68
68
|
}
|
|
69
69
|
transform() {
|
|
70
70
|
let i = 0;
|
|
71
71
|
const r = a(this, y).viewportSize * a(this, y).sectionDistanceScaleCSSProperty.current;
|
|
72
|
-
a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this,
|
|
73
|
-
a(this,
|
|
72
|
+
a(this, y).infiniteCSSProperty.current && a(this, y).overscroll && a(this, j) + a(this, Ft) < a(this, y).currentScrollValue && (i = a(this, y).distance * -1 - a(this, y).gap), Dt.update(
|
|
73
|
+
a(this, b),
|
|
74
74
|
a(this, y).axisCSSProperty.current,
|
|
75
75
|
i
|
|
76
76
|
);
|
|
77
|
-
const h = a(this, y).currentScrollValue + i, n = a(this,
|
|
78
|
-
a(this, y).vertical ? a(this,
|
|
77
|
+
const h = a(this, y).currentScrollValue + i, n = a(this, j) - a(this, y).viewportSize - r, p = a(this, j) + a(this, Ft) + r, d = ys(h, n, p);
|
|
78
|
+
a(this, y).vertical ? a(this, b).style.transform = `translate3d(0px, ${d * -1}px, 0px)` : a(this, b).style.transform = `translate3d(${d * -1}px, 0px, 0px)`;
|
|
79
79
|
}
|
|
80
80
|
mark(i) {
|
|
81
|
-
a(this, St) !== i && (a(this, St) && a(this,
|
|
81
|
+
a(this, St) !== i && (a(this, St) && a(this, b).classList.remove(a(this, St)), i && a(this, b).classList.add(i), O(this, St, i), a(this, b).dispatchEvent(
|
|
82
82
|
new CustomEvent("sectionsChange", {
|
|
83
83
|
composed: !0,
|
|
84
84
|
detail: {
|
|
@@ -88,8 +88,8 @@ class ei {
|
|
|
88
88
|
));
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
const si =
|
|
91
|
+
b = new WeakMap(), y = new WeakMap(), Ft = new WeakMap(), j = new WeakMap(), St = new WeakMap();
|
|
92
|
+
const si = ns({
|
|
93
93
|
":host": {
|
|
94
94
|
position: "relative",
|
|
95
95
|
width: "100%",
|
|
@@ -122,15 +122,15 @@ const si = hs({
|
|
|
122
122
|
flexShrink: "0"
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
let
|
|
125
|
+
let Be = class extends Ws {
|
|
126
126
|
constructor() {
|
|
127
|
-
super(), l(this, Xt), l(this, zt), l(this,
|
|
127
|
+
super(), l(this, Xt), l(this, zt), l(this, Re), l(this, Te), l(this, _e), l(this, Ce), l(this, Ke), l(this, ke), l(this, Se), l(this, Je), l(this, S, null), l(this, A, new u(this, "--axis", "y")), l(this, et, new u(this, "--pages", 0, {
|
|
128
128
|
validate: (e) => Math.max(0, e - 1)
|
|
129
|
-
})), l(this,
|
|
129
|
+
})), l(this, Q, new u(this, "--split", !1)), l(this, st, new u(this, "--sectional", !1)), l(this, bt, new u(this, "--auto-size", !1)), l(this, wt, new u(
|
|
130
130
|
this,
|
|
131
131
|
"--wheel-max-delta",
|
|
132
132
|
!1
|
|
133
|
-
)), l(this,
|
|
133
|
+
)), l(this, K, new u(
|
|
134
134
|
this,
|
|
135
135
|
"--sections-in-view",
|
|
136
136
|
1
|
|
@@ -146,15 +146,15 @@ let Ie = class extends Ws {
|
|
|
146
146
|
this,
|
|
147
147
|
"--autoplay-user-direction",
|
|
148
148
|
!1
|
|
149
|
-
)), l(this, Ht, new u(this, "--disabled", !1)), l(this, Gt, new u(this, "--hibernated", !1)), l(this, g, null), l(this,
|
|
149
|
+
)), l(this, Ht, new u(this, "--disabled", !1)), l(this, Gt, new u(this, "--hibernated", !1)), l(this, g, null), l(this, Ae, null), l(this, c, []), l(this, be, 0), l(this, we, 0), l(this, M, 0), l(this, C, 0), l(this, I, 0), l(this, X, null), l(this, Vt, null), l(this, pt, null), l(this, F, null), l(this, k, new gt(0)), l(this, ne, 0), l(this, Ct, 0), l(this, se, !0), l(this, ie, !0), l(this, B, () => {
|
|
150
150
|
t(this, S).unlistenAnimationFrame();
|
|
151
151
|
const e = this.currentScrollValue / t(this, C) || 0, i = t(this, k).current;
|
|
152
|
-
if (
|
|
152
|
+
if (w(this, be, this.vertical ? $e(this) : Fe(this)), w(this, we, this.vertical ? $e(t(this, g)) : Fe(t(this, g))), w(this, M, this.vertical ? this.offsetHeight : this.offsetWidth), this.vertical ? w(this, I, ds.parse(
|
|
153
153
|
getComputedStyle(t(this, g)).rowGap
|
|
154
|
-
)) :
|
|
154
|
+
)) : w(this, I, ds.parse(
|
|
155
155
|
getComputedStyle(t(this, g)).columnGap
|
|
156
|
-
)), t(this,
|
|
157
|
-
const r = t(this,
|
|
156
|
+
)), t(this, bt).current && t(this, c).length) {
|
|
157
|
+
const r = t(this, K).current, h = (t(this, M) - t(this, I) * (r - 1)) / r;
|
|
158
158
|
t(this, c).forEach((n) => {
|
|
159
159
|
n.setSize(h);
|
|
160
160
|
});
|
|
@@ -165,20 +165,20 @@ let Ie = class extends Ws {
|
|
|
165
165
|
if (t(this, c).forEach((r) => {
|
|
166
166
|
r.resize();
|
|
167
167
|
}), t(this, et).current) {
|
|
168
|
-
|
|
168
|
+
w(this, C, t(this, M) * t(this, et).current);
|
|
169
169
|
const r = t(this, C) + t(this, M);
|
|
170
170
|
this.vertical ? (t(this, g).style.width = r + "px", t(this, g).style.height = "100%") : (t(this, g).style.height = r + "px", t(this, g).style.width = "100%");
|
|
171
171
|
} else
|
|
172
|
-
this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content",
|
|
172
|
+
this.vertical ? (t(this, g).style.width = "100%", t(this, g).style.height = "max-content", w(this, C, t(this, g).offsetHeight - t(this, M))) : (t(this, g).style.width = "max-content", t(this, g).style.height = "100%", w(this, C, t(this, g).offsetWidth - t(this, M)));
|
|
173
173
|
if (!t(this, T).current) {
|
|
174
174
|
const r = getComputedStyle(this), h = this.vertical ? parseFloat(r.paddingBlockStart) + parseFloat(r.paddingBlockEnd) : parseFloat(r.paddingInlineStart) + parseFloat(r.paddingInlineEnd);
|
|
175
|
-
|
|
175
|
+
w(this, C, t(this, C) + h), t(this, S).max = t(this, C);
|
|
176
176
|
}
|
|
177
177
|
if (t(this, T).current && t(this, c).length) {
|
|
178
178
|
const r = t(this, c)[t(this, c).length - 1], h = r.position + r.size - t(this, M), n = t(this, C) - h;
|
|
179
|
-
|
|
179
|
+
w(this, Ct, r.position + r.size + n);
|
|
180
180
|
} else
|
|
181
|
-
|
|
181
|
+
w(this, Ct, t(this, C));
|
|
182
182
|
if (t(this, st).current && t(this, c).length) {
|
|
183
183
|
const r = t(this, c)[i];
|
|
184
184
|
t(this, S).set(r.position, {
|
|
@@ -188,9 +188,9 @@ let Ie = class extends Ws {
|
|
|
188
188
|
t(this, S).set(e * t(this, C), {
|
|
189
189
|
equalize: !0
|
|
190
190
|
});
|
|
191
|
-
}), l(this,
|
|
191
|
+
}), l(this, He, () => {
|
|
192
192
|
const e = this.currentScrollValue;
|
|
193
|
-
if (
|
|
193
|
+
if (w(this, ne, Math.max(0, e - t(this, C))), t(this, c).length) {
|
|
194
194
|
let i = 0;
|
|
195
195
|
for (let r = 0; r < t(this, c).length; r++) {
|
|
196
196
|
const h = t(this, c)[r];
|
|
@@ -215,51 +215,51 @@ let Ie = class extends Ws {
|
|
|
215
215
|
t(this, c).length ? this.shiftSections(r) : t(this, S).shift(r * t(this, M));
|
|
216
216
|
} else
|
|
217
217
|
t(this, S).shift(i);
|
|
218
|
-
}),
|
|
218
|
+
}), is && (w(this, S, new Ps(0, {
|
|
219
219
|
damping: 0.01,
|
|
220
220
|
min: 0,
|
|
221
221
|
order: ks.SCROLL
|
|
222
|
-
})), this.openShadow(si),
|
|
222
|
+
})), this.openShadow(si), hs(this, {
|
|
223
223
|
tabIndex: 0,
|
|
224
224
|
children: [
|
|
225
|
-
|
|
225
|
+
qe({
|
|
226
226
|
class: "static",
|
|
227
227
|
children: [De({ name: "static" })]
|
|
228
228
|
}),
|
|
229
|
-
|
|
229
|
+
qe({
|
|
230
230
|
class: "content",
|
|
231
|
-
children: [De({ ref: (e) =>
|
|
231
|
+
children: [De({ ref: (e) => w(this, Ae, e) })],
|
|
232
232
|
style: {
|
|
233
233
|
flexDirection: new Hs(
|
|
234
234
|
t(this, A),
|
|
235
235
|
(e) => e === "x" ? "row" : "column"
|
|
236
236
|
)
|
|
237
237
|
},
|
|
238
|
-
ref: (e) =>
|
|
238
|
+
ref: (e) => w(this, g, e)
|
|
239
239
|
})
|
|
240
240
|
]
|
|
241
|
-
}),
|
|
241
|
+
}), w(this, X, new qs({ element: t(this, g) })), t(this, X).changeEvent.subscribe(
|
|
242
242
|
t(this, ae)
|
|
243
|
-
),
|
|
243
|
+
), w(this, Vt, new Ns({
|
|
244
244
|
element: this
|
|
245
245
|
})), t(this, Vt).changeEvent.subscribe(
|
|
246
246
|
t(this, ae)
|
|
247
|
-
),
|
|
248
|
-
t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this,
|
|
249
|
-
}), t(this,
|
|
250
|
-
t(this,
|
|
247
|
+
), w(this, pt, new Us({ element: t(this, g) })), t(this, pt).changeEvent.subscribe(t(this, ae)), w(this, F, new Ks()), t(this, F).changeEvent.subscribe(t(this, ye)), t(this, A).subscribe(({ current: e }) => {
|
|
248
|
+
t(this, g).style.flexDirection = e === "x" ? "row" : "column", t(this, X).axis = t(this, wt).current ? "max" : e, t(this, Vt).dimension = e === "x" ? "width" : "height", t(this, pt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), this.isConnected && t(this, B).call(this);
|
|
249
|
+
}), t(this, wt).subscribe((e) => {
|
|
250
|
+
t(this, X).axis = e.current ? "max" : t(this, A).current;
|
|
251
251
|
}), t(this, et).subscribe(() => {
|
|
252
|
-
this.isConnected && t(this,
|
|
253
|
-
}), t(this,
|
|
252
|
+
this.isConnected && t(this, B).call(this);
|
|
253
|
+
}), t(this, Q).subscribe(({ current: e }) => {
|
|
254
254
|
this.isConnected && (e ? _(this, Xt, de).call(this) : _(this, zt, Yt).call(this));
|
|
255
255
|
}), t(this, st).subscribe((e) => {
|
|
256
|
-
t(this,
|
|
257
|
-
}), t(this,
|
|
258
|
-
this.isConnected && (t(this,
|
|
259
|
-
}), t(this,
|
|
260
|
-
this.isConnected && (t(this,
|
|
256
|
+
t(this, X).debounce = e.current, t(this, pt).swipe = e.current, t(this, F).interval = e.current, this.isConnected && (e.current && !e.previous && !t(this, c).length ? _(this, Xt, de).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Yt).call(this));
|
|
257
|
+
}), t(this, bt).subscribe((e) => {
|
|
258
|
+
this.isConnected && (t(this, B).call(this), e.current && !e.previous && !t(this, c).length ? _(this, Xt, de).call(this) : !e.current && e.previous && t(this, c).length && _(this, zt, Yt).call(this));
|
|
259
|
+
}), t(this, K).subscribe((e) => {
|
|
260
|
+
this.isConnected && (t(this, B).call(this), _(this, Se, Ie).call(this));
|
|
261
261
|
}), t(this, T).subscribe((e) => {
|
|
262
|
-
e.current ? (this.isConnected && (t(this, c).length || (t(this,
|
|
262
|
+
e.current ? (this.isConnected && (t(this, c).length || (t(this, Q).current = !0)), t(this, c).length && (t(this, S).max = 1 / 0, t(this, S).min = -1 / 0)) : (w(this, ne, 0), t(this, S).max = t(this, C), t(this, S).min = 0);
|
|
263
263
|
}), t(this, At).subscribe((e) => {
|
|
264
264
|
t(this, S).damping = e.current;
|
|
265
265
|
}), t(this, Rt).subscribe((e) => {
|
|
@@ -267,9 +267,9 @@ let Ie = class extends Ws {
|
|
|
267
267
|
}), t(this, Tt).subscribe((e) => {
|
|
268
268
|
t(this, S).stiffness = e.current;
|
|
269
269
|
}), t(this, Ht).subscribe((e) => {
|
|
270
|
-
e.current && !e.previous ? _(this,
|
|
270
|
+
e.current && !e.previous ? _(this, Re, os).call(this) : !e.current && e.previous && _(this, Te, ls).call(this);
|
|
271
271
|
}), t(this, Gt).subscribe((e) => {
|
|
272
|
-
e.current && !e.previous ? _(this, _e,
|
|
272
|
+
e.current && !e.previous ? _(this, _e, Ne).call(this) : !e.current && e.previous && _(this, Ce, Ue).call(this);
|
|
273
273
|
}), t(this, nt).subscribe((e) => {
|
|
274
274
|
t(this, F).speed = e.current, e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
|
|
275
275
|
}), t(this, _t).subscribe((e) => {
|
|
@@ -277,7 +277,7 @@ let Ie = class extends Ws {
|
|
|
277
277
|
}), t(this, S).isRunning.subscribe((e) => {
|
|
278
278
|
this.classList.toggle("active", e.current);
|
|
279
279
|
}), t(this, k).subscribe((e) => {
|
|
280
|
-
t(this, c).length && _(this, Se,
|
|
280
|
+
t(this, c).length && _(this, Se, Ie).call(this);
|
|
281
281
|
}));
|
|
282
282
|
}
|
|
283
283
|
get damped() {
|
|
@@ -290,19 +290,19 @@ let Ie = class extends Ws {
|
|
|
290
290
|
return t(this, et);
|
|
291
291
|
}
|
|
292
292
|
get splitCSSProperty() {
|
|
293
|
-
return t(this,
|
|
293
|
+
return t(this, Q);
|
|
294
294
|
}
|
|
295
295
|
get sectionalCSSProperty() {
|
|
296
296
|
return t(this, st);
|
|
297
297
|
}
|
|
298
298
|
get autoSizeCSSProperty() {
|
|
299
|
-
return t(this,
|
|
299
|
+
return t(this, bt);
|
|
300
300
|
}
|
|
301
301
|
get wheelMaxDeltaCSSProperty() {
|
|
302
|
-
return t(this,
|
|
302
|
+
return t(this, wt);
|
|
303
303
|
}
|
|
304
304
|
get sectionsInViewCSSProperty() {
|
|
305
|
-
return t(this,
|
|
305
|
+
return t(this, K);
|
|
306
306
|
}
|
|
307
307
|
get infiniteCSSProperty() {
|
|
308
308
|
return t(this, T);
|
|
@@ -338,10 +338,10 @@ let Ie = class extends Ws {
|
|
|
338
338
|
return t(this, Gt);
|
|
339
339
|
}
|
|
340
340
|
get currentScrollValue() {
|
|
341
|
-
return _(this, ke,
|
|
341
|
+
return _(this, ke, Ze).call(this, "current");
|
|
342
342
|
}
|
|
343
343
|
get targetScrollValue() {
|
|
344
|
-
return _(this, ke,
|
|
344
|
+
return _(this, ke, Ze).call(this, "target");
|
|
345
345
|
}
|
|
346
346
|
get contentElement() {
|
|
347
347
|
return t(this, g);
|
|
@@ -350,10 +350,10 @@ let Ie = class extends Ws {
|
|
|
350
350
|
return t(this, c);
|
|
351
351
|
}
|
|
352
352
|
get position() {
|
|
353
|
-
return t(this,
|
|
353
|
+
return t(this, be);
|
|
354
354
|
}
|
|
355
355
|
get contentPosition() {
|
|
356
|
-
return t(this,
|
|
356
|
+
return t(this, we);
|
|
357
357
|
}
|
|
358
358
|
get viewportSize() {
|
|
359
359
|
return t(this, M);
|
|
@@ -368,7 +368,7 @@ let Ie = class extends Ws {
|
|
|
368
368
|
return t(this, k);
|
|
369
369
|
}
|
|
370
370
|
get limit() {
|
|
371
|
-
return t(this, c).length - t(this,
|
|
371
|
+
return t(this, c).length - t(this, K).current;
|
|
372
372
|
}
|
|
373
373
|
get distance() {
|
|
374
374
|
return t(this, Ct);
|
|
@@ -416,11 +416,11 @@ let Ie = class extends Ws {
|
|
|
416
416
|
if (!t(this, c).length)
|
|
417
417
|
return;
|
|
418
418
|
const r = t(this, k).current;
|
|
419
|
-
_(this,
|
|
419
|
+
_(this, Ke, Es).call(this, e);
|
|
420
420
|
const h = t(this, c)[r], n = t(this, c)[t(this, k).current];
|
|
421
421
|
if (h && n) {
|
|
422
422
|
let p = 0;
|
|
423
|
-
const d = _(this,
|
|
423
|
+
const d = _(this, Je, xs).call(this), Bs = d ? this.targetScrollValue - d.position : 0;
|
|
424
424
|
t(this, T).current ? t(this, k).current === 0 && r === t(this, c).length - 1 ? p = t(this, C) + t(this, M) - h.position + t(this, I) : t(this, k).current === t(this, c).length - 1 && r === 0 ? p = n.position - (t(this, C) + t(this, M) + t(this, I)) : p = n.position - h.position : p = n.position - h.position, t(this, S).shift(p - Bs, {
|
|
425
425
|
equalize: i === "instant"
|
|
426
426
|
});
|
|
@@ -435,20 +435,20 @@ let Ie = class extends Ws {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
connectedCallback() {
|
|
438
|
-
t(this, A).observe(), t(this, et).observe(), t(this,
|
|
438
|
+
t(this, A).observe(), t(this, et).observe(), t(this, Q).observe(), t(this, st).observe(), t(this, bt).observe(), t(this, wt).observe(), t(this, K).observe(), t(this, T).observe(), t(this, At).observe(), t(this, Rt).observe(), t(this, Tt).observe(), t(this, It).observe(), t(this, he).observe(), t(this, nt).observe(), t(this, nt).observe(), t(this, Bt).observe(), t(this, _t).observe(), t(this, Ht).observe(), t(this, Gt).observe(), _(this, Ce, Ue).call(this);
|
|
439
439
|
}
|
|
440
440
|
disconnectedCallback() {
|
|
441
|
-
t(this, A).unobserve(), t(this, et).unobserve(), t(this,
|
|
441
|
+
t(this, A).unobserve(), t(this, et).unobserve(), t(this, Q).unobserve(), t(this, st).unobserve(), t(this, bt).unobserve(), t(this, wt).unobserve(), t(this, K).unobserve(), t(this, T).unobserve(), t(this, At).unobserve(), t(this, Rt).unobserve(), t(this, Tt).unobserve(), t(this, It).unobserve(), t(this, he).unobserve(), t(this, nt).unobserve(), t(this, Bt).unobserve(), t(this, _t).unobserve(), t(this, Ht).unobserve(), t(this, Gt).unobserve(), _(this, _e, Ne).call(this);
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
S = /* @__PURE__ */ new WeakMap();
|
|
445
445
|
A = /* @__PURE__ */ new WeakMap();
|
|
446
446
|
et = /* @__PURE__ */ new WeakMap();
|
|
447
|
-
|
|
447
|
+
Q = /* @__PURE__ */ new WeakMap();
|
|
448
448
|
st = /* @__PURE__ */ new WeakMap();
|
|
449
|
-
wt = /* @__PURE__ */ new WeakMap();
|
|
450
449
|
bt = /* @__PURE__ */ new WeakMap();
|
|
451
|
-
|
|
450
|
+
wt = /* @__PURE__ */ new WeakMap();
|
|
451
|
+
K = /* @__PURE__ */ new WeakMap();
|
|
452
452
|
T = /* @__PURE__ */ new WeakMap();
|
|
453
453
|
At = /* @__PURE__ */ new WeakMap();
|
|
454
454
|
Rt = /* @__PURE__ */ new WeakMap();
|
|
@@ -461,14 +461,14 @@ _t = /* @__PURE__ */ new WeakMap();
|
|
|
461
461
|
Ht = /* @__PURE__ */ new WeakMap();
|
|
462
462
|
Gt = /* @__PURE__ */ new WeakMap();
|
|
463
463
|
g = /* @__PURE__ */ new WeakMap();
|
|
464
|
-
|
|
464
|
+
Ae = /* @__PURE__ */ new WeakMap();
|
|
465
465
|
c = /* @__PURE__ */ new WeakMap();
|
|
466
|
-
we = /* @__PURE__ */ new WeakMap();
|
|
467
466
|
be = /* @__PURE__ */ new WeakMap();
|
|
467
|
+
we = /* @__PURE__ */ new WeakMap();
|
|
468
468
|
M = /* @__PURE__ */ new WeakMap();
|
|
469
469
|
C = /* @__PURE__ */ new WeakMap();
|
|
470
470
|
I = /* @__PURE__ */ new WeakMap();
|
|
471
|
-
|
|
471
|
+
X = /* @__PURE__ */ new WeakMap();
|
|
472
472
|
Vt = /* @__PURE__ */ new WeakMap();
|
|
473
473
|
pt = /* @__PURE__ */ new WeakMap();
|
|
474
474
|
F = /* @__PURE__ */ new WeakMap();
|
|
@@ -479,50 +479,50 @@ se = /* @__PURE__ */ new WeakMap();
|
|
|
479
479
|
ie = /* @__PURE__ */ new WeakMap();
|
|
480
480
|
Xt = /* @__PURE__ */ new WeakSet();
|
|
481
481
|
de = function() {
|
|
482
|
-
_(this, zt, Yt).call(this), t(this,
|
|
482
|
+
_(this, zt, Yt).call(this), t(this, Ae).assignedElements().forEach((e) => {
|
|
483
483
|
e instanceof HTMLElement && t(this, c).push(new ei(e, this));
|
|
484
484
|
}), t(this, g).style.transform = "", this.dispatchEvent(
|
|
485
485
|
new CustomEvent("sectionsChange", {
|
|
486
486
|
composed: !0
|
|
487
487
|
})
|
|
488
|
-
), t(this,
|
|
488
|
+
), t(this, B).call(this), _(this, Se, Ie).call(this);
|
|
489
489
|
};
|
|
490
490
|
zt = /* @__PURE__ */ new WeakSet();
|
|
491
491
|
Yt = function() {
|
|
492
492
|
t(this, c).forEach((e) => {
|
|
493
493
|
e.destroy();
|
|
494
|
-
}),
|
|
494
|
+
}), w(this, c, []), t(this, k).current = 0, t(this, S).reset(), this.dispatchEvent(
|
|
495
495
|
new CustomEvent("sectionsChange", {
|
|
496
496
|
composed: !0
|
|
497
497
|
})
|
|
498
498
|
);
|
|
499
499
|
};
|
|
500
|
-
Ae = /* @__PURE__ */ new WeakSet();
|
|
501
|
-
as = function() {
|
|
502
|
-
t(this, se) || (b(this, se, !0), t(this, S).unsubscribe(t(this, Be)), t(this, S).unlistenAnimationFrame(), t(this, Q).disconnect(), t(this, Vt).disconnect(), t(this, pt).disconnect(), t(this, F).disconnect());
|
|
503
|
-
};
|
|
504
500
|
Re = /* @__PURE__ */ new WeakSet();
|
|
505
501
|
os = function() {
|
|
506
|
-
t(this, se)
|
|
502
|
+
t(this, se) || (w(this, se, !0), t(this, S).unsubscribe(t(this, He)), t(this, S).unlistenAnimationFrame(), t(this, X).disconnect(), t(this, Vt).disconnect(), t(this, pt).disconnect(), t(this, F).disconnect());
|
|
503
|
+
};
|
|
504
|
+
Te = /* @__PURE__ */ new WeakSet();
|
|
505
|
+
ls = function() {
|
|
506
|
+
t(this, se) && (w(this, se, !1), t(this, S).subscribe(t(this, He)), t(this, X).connect(), t(this, Vt).connect(), t(this, pt).connect(), t(this, nt).current && t(this, F).connect());
|
|
507
507
|
};
|
|
508
508
|
_e = /* @__PURE__ */ new WeakSet();
|
|
509
|
-
|
|
510
|
-
t(this, ie) || (
|
|
509
|
+
Ne = function() {
|
|
510
|
+
t(this, ie) || (w(this, ie, !0), ee.unsubscribe(t(this, B)), Oe.unsubscribe(t(this, B)), t(this, S).reset(), _(this, Re, os).call(this), t(this, g).style.transform = "", t(this, Q).current && _(this, zt, Yt).call(this), Dt.unregister(this));
|
|
511
511
|
};
|
|
512
512
|
Ce = /* @__PURE__ */ new WeakSet();
|
|
513
|
-
|
|
514
|
-
t(this, ie) && (
|
|
513
|
+
Ue = function() {
|
|
514
|
+
t(this, ie) && (w(this, ie, !1), t(this, Q).current && _(this, Xt, de).call(this), Dt.register(this), ee.subscribe(t(this, B), rs.SCROLL), Oe.subscribe(this, t(this, B)), _(this, Te, ls).call(this));
|
|
515
515
|
};
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
516
|
+
B = /* @__PURE__ */ new WeakMap();
|
|
517
|
+
He = /* @__PURE__ */ new WeakMap();
|
|
518
|
+
Ke = /* @__PURE__ */ new WeakSet();
|
|
519
519
|
Es = function(e) {
|
|
520
520
|
t(this, T).current ? (t(this, k).current = e % t(this, c).length, t(this, k).current = t(this, k).current < 0 ? t(this, c).length + t(this, k).current : t(this, k).current) : t(this, k).current = ys(e, 0, this.limit);
|
|
521
521
|
};
|
|
522
522
|
ae = /* @__PURE__ */ new WeakMap();
|
|
523
523
|
ye = /* @__PURE__ */ new WeakMap();
|
|
524
524
|
ke = /* @__PURE__ */ new WeakSet();
|
|
525
|
-
|
|
525
|
+
Ze = function(e = "current") {
|
|
526
526
|
if (t(this, T).current && t(this, c).length) {
|
|
527
527
|
const i = t(this, S)[e] % (t(this, C) + t(this, M) + t(this, I));
|
|
528
528
|
return i < 0 ? t(this, C) + i + t(this, M) + t(this, I) : i;
|
|
@@ -530,16 +530,16 @@ Ke = function(e = "current") {
|
|
|
530
530
|
return t(this, S)[e];
|
|
531
531
|
};
|
|
532
532
|
Se = /* @__PURE__ */ new WeakSet();
|
|
533
|
-
|
|
533
|
+
Ie = function() {
|
|
534
534
|
if (t(this, c).length) {
|
|
535
535
|
const e = t(this, k).current;
|
|
536
536
|
e === 0 ? this.classList.add("start") : this.classList.remove("start"), e === this.limit ? this.classList.add("end") : this.classList.remove("end"), t(this, c).forEach((i, r) => {
|
|
537
|
-
const h = e - this.limit - 1, n = e + t(this,
|
|
538
|
-
r >= e && r < n || r <= h ? i.mark("current") : r >= n && r < n + p / 2 || r <= h + t(this,
|
|
537
|
+
const h = e - this.limit - 1, n = e + t(this, K).current, p = this.sections.length - n;
|
|
538
|
+
r >= e && r < n || r <= h ? i.mark("current") : r >= n && r < n + p / 2 || r <= h + t(this, K).current ? i.mark("next") : i.mark("previous");
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
|
-
|
|
542
|
+
Je = /* @__PURE__ */ new WeakSet();
|
|
543
543
|
xs = function() {
|
|
544
544
|
let e = null, i = 1 / 0;
|
|
545
545
|
for (let r = 0; r < t(this, c).length; r++) {
|
|
@@ -548,11 +548,11 @@ xs = function() {
|
|
|
548
548
|
}
|
|
549
549
|
return e !== null ? t(this, c)[e] : null;
|
|
550
550
|
};
|
|
551
|
-
|
|
551
|
+
Be = ti([
|
|
552
552
|
re("e-scroll")
|
|
553
|
-
],
|
|
553
|
+
], Be);
|
|
554
554
|
var ve;
|
|
555
|
-
class
|
|
555
|
+
class Ge extends Ws {
|
|
556
556
|
constructor() {
|
|
557
557
|
super(...arguments);
|
|
558
558
|
z(this, ve, null);
|
|
@@ -561,8 +561,8 @@ class He extends Ws {
|
|
|
561
561
|
return a(this, ve);
|
|
562
562
|
}
|
|
563
563
|
connectedCallback() {
|
|
564
|
-
const r = Xs(this,
|
|
565
|
-
r instanceof
|
|
564
|
+
const r = Xs(this, Be);
|
|
565
|
+
r instanceof Be ? O(this, ve, r) : console.error(this, "e-scroll not found");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
ve = new WeakMap();
|
|
@@ -573,16 +573,16 @@ var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, hi = (e, i
|
|
|
573
573
|
}, Ls = (e, i, r) => {
|
|
574
574
|
if (!i.has(e))
|
|
575
575
|
throw TypeError("Cannot " + r);
|
|
576
|
-
}, f = (e, i, r) => (Ls(e, i, "read from private field"), r ? r.call(e) : i.get(e)),
|
|
576
|
+
}, f = (e, i, r) => (Ls(e, i, "read from private field"), r ? r.call(e) : i.get(e)), N = (e, i, r) => {
|
|
577
577
|
if (i.has(e))
|
|
578
578
|
throw TypeError("Cannot add the same private member more than once");
|
|
579
579
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
580
580
|
}, mt = (e, i, r, h) => (Ls(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), oe, R, it, rt, le, ce, qt, Pe, We, Me;
|
|
581
|
-
const ni =
|
|
581
|
+
const ni = ns({
|
|
582
582
|
":host": {
|
|
583
583
|
display: "inline-block",
|
|
584
584
|
zIndex: "1",
|
|
585
|
-
backgroundColor:
|
|
585
|
+
backgroundColor: Ss.colorLight.var
|
|
586
586
|
},
|
|
587
587
|
':host([axis="y"])': {
|
|
588
588
|
position: "absolute",
|
|
@@ -599,7 +599,7 @@ const ni = hs({
|
|
|
599
599
|
height: "1vmin"
|
|
600
600
|
},
|
|
601
601
|
".default-thumb": {
|
|
602
|
-
backgroundColor:
|
|
602
|
+
backgroundColor: Ss.colorDark.var,
|
|
603
603
|
borderRadius: "1vmin",
|
|
604
604
|
touchAction: "none"
|
|
605
605
|
},
|
|
@@ -607,17 +607,17 @@ const ni = hs({
|
|
|
607
607
|
touchAction: "none"
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
|
-
let vs = class extends
|
|
610
|
+
let vs = class extends Ge {
|
|
611
611
|
constructor() {
|
|
612
|
-
super(),
|
|
612
|
+
super(), N(this, oe, null), N(this, R, null), N(this, it, !1), N(this, rt, 0), N(this, le, 0), N(this, ce, 0), N(this, qt, () => {
|
|
613
613
|
mt(this, it, this.offsetWidth > this.offsetHeight);
|
|
614
614
|
const e = f(this, it) ? this.offsetWidth : this.offsetHeight;
|
|
615
615
|
mt(this, rt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), mt(this, rt, Math.max(f(this, rt), 30)), f(this, it) ? (f(this, R).style.width = f(this, rt) + "px", f(this, R).style.height = "100%") : (f(this, R).style.width = "100%", f(this, R).style.height = f(this, rt) + "px"), mt(this, le, e - f(this, rt)), this.scrollElement.scrollSize || (this.style.display = "none");
|
|
616
|
-
}),
|
|
616
|
+
}), N(this, Pe, () => {
|
|
617
617
|
mt(this, ce, this.scrollElement.currentProgress * f(this, le)), f(this, it) ? f(this, R).style.transform = `translate3d(${f(this, ce)}px, 0px, 0px)` : f(this, R).style.transform = `translate3d(0px, ${f(this, ce)}px, 0px)`;
|
|
618
|
-
}),
|
|
618
|
+
}), N(this, We, () => {
|
|
619
619
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
620
|
-
}),
|
|
620
|
+
}), N(this, Me, (e) => {
|
|
621
621
|
document.documentElement.classList.add("grabbing"), Qs(
|
|
622
622
|
(h) => {
|
|
623
623
|
const n = f(this, it) ? h.x : h.y, p = this.scrollElement.distance / f(this, le), d = (n - r) * p;
|
|
@@ -628,13 +628,13 @@ let vs = class extends He {
|
|
|
628
628
|
}
|
|
629
629
|
);
|
|
630
630
|
const i = this.scrollElement.targetScrollValue, r = f(this, it) ? e.x : e.y;
|
|
631
|
-
}),
|
|
631
|
+
}), is && (this.openShadow(ni), hs(this, {
|
|
632
632
|
slot: "static",
|
|
633
633
|
"drag-dead-zone": "",
|
|
634
634
|
children: [
|
|
635
635
|
De({
|
|
636
636
|
ref: (e) => mt(this, oe, e),
|
|
637
|
-
children:
|
|
637
|
+
children: qe({ class: "default-thumb" })
|
|
638
638
|
})
|
|
639
639
|
]
|
|
640
640
|
}));
|
|
@@ -645,10 +645,10 @@ let vs = class extends He {
|
|
|
645
645
|
connectedCallback() {
|
|
646
646
|
super.connectedCallback();
|
|
647
647
|
const e = f(this, oe).assignedElements()[0] || f(this, oe).firstElementChild;
|
|
648
|
-
mt(this, R, e), f(this, R).addEventListener("pointerdown", f(this, Me)), ee.subscribe(f(this, qt),
|
|
648
|
+
mt(this, R, e), f(this, R).addEventListener("pointerdown", f(this, Me)), ee.subscribe(f(this, qt), rs.SCROLL + 1), Oe.subscribe(this, f(this, qt)), this.scrollElement.onScroll(f(this, Pe)), this.scrollElement.axisCSSProperty.subscribe(f(this, We));
|
|
649
649
|
}
|
|
650
650
|
disconnectedCallback() {
|
|
651
|
-
f(this, R).removeEventListener("pointerdown", f(this, Me)), ee.unsubscribe(f(this, qt)),
|
|
651
|
+
f(this, R).removeEventListener("pointerdown", f(this, Me)), ee.unsubscribe(f(this, qt)), Oe.unsubscribe(f(this, qt)), this.scrollElement.offScroll(f(this, Pe)), this.scrollElement.axisCSSProperty.unsubscribe(f(this, We));
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
654
|
oe = /* @__PURE__ */ new WeakMap();
|
|
@@ -664,14 +664,14 @@ Me = /* @__PURE__ */ new WeakMap();
|
|
|
664
664
|
vs = hi([
|
|
665
665
|
re("e-scrollbar")
|
|
666
666
|
], vs);
|
|
667
|
-
const ai =
|
|
667
|
+
const ai = ns({
|
|
668
668
|
button: {
|
|
669
669
|
all: "inherit"
|
|
670
670
|
}
|
|
671
671
|
});
|
|
672
|
-
class Vs extends
|
|
672
|
+
class Vs extends Ge {
|
|
673
673
|
constructor() {
|
|
674
|
-
super(), this.openShadow(ai),
|
|
674
|
+
super(), this.openShadow(ai), is && hs(this, {
|
|
675
675
|
children: [
|
|
676
676
|
Zs({
|
|
677
677
|
onClick: () => {
|
|
@@ -718,14 +718,14 @@ var di = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, vi = (e, i
|
|
|
718
718
|
}, zs = (e, i, r) => {
|
|
719
719
|
if (!i.has(e))
|
|
720
720
|
throw TypeError("Cannot " + r);
|
|
721
|
-
}, Ot = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)),
|
|
721
|
+
}, Ot = (e, i, r) => (zs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), bs = (e, i, r) => {
|
|
722
722
|
if (i.has(e))
|
|
723
723
|
throw TypeError("Cannot add the same private member more than once");
|
|
724
724
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
725
|
-
},
|
|
725
|
+
}, ws = (e, i, r, h) => (zs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), yt, ue, tt, vt, jt, me, ge, te;
|
|
726
726
|
class mi {
|
|
727
727
|
constructor(i, r, h) {
|
|
728
|
-
z(this,
|
|
728
|
+
z(this, tt, void 0);
|
|
729
729
|
z(this, vt, void 0);
|
|
730
730
|
z(this, jt, void 0);
|
|
731
731
|
z(this, me, void 0);
|
|
@@ -733,25 +733,25 @@ class mi {
|
|
|
733
733
|
a(this, vt).scrollToSection(a(this, jt), a(this, me));
|
|
734
734
|
});
|
|
735
735
|
z(this, te, () => {
|
|
736
|
-
a(this,
|
|
736
|
+
a(this, tt).classList.toggle(
|
|
737
737
|
"current",
|
|
738
738
|
a(this, vt).counter.current === a(this, jt)
|
|
739
739
|
);
|
|
740
740
|
});
|
|
741
|
-
O(this,
|
|
741
|
+
O(this, tt, document.createElement("button")), O(this, vt, i), O(this, me, h), O(this, jt, r), a(this, tt).addEventListener("click", a(this, ge)), a(this, vt).counter.subscribe(a(this, te)), a(this, te).call(this);
|
|
742
742
|
}
|
|
743
743
|
get element() {
|
|
744
|
-
return a(this,
|
|
744
|
+
return a(this, tt);
|
|
745
745
|
}
|
|
746
746
|
destroy() {
|
|
747
|
-
a(this,
|
|
747
|
+
a(this, tt).removeEventListener("click", a(this, ge)), a(this, vt).counter.unsubscribe(a(this, te)), a(this, tt).remove();
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
|
|
751
|
-
let _s = class extends
|
|
750
|
+
tt = new WeakMap(), vt = new WeakMap(), jt = new WeakMap(), me = new WeakMap(), ge = new WeakMap(), te = new WeakMap();
|
|
751
|
+
let _s = class extends Ge {
|
|
752
752
|
constructor() {
|
|
753
|
-
super(...arguments),
|
|
754
|
-
Ot(this, yt).forEach((e) => e.destroy()),
|
|
753
|
+
super(...arguments), bs(this, yt, []), bs(this, ue, Ms(() => {
|
|
754
|
+
Ot(this, yt).forEach((e) => e.destroy()), ws(this, yt, []);
|
|
755
755
|
for (let e = 0; e < this.scrollElement.sections.length; e++) {
|
|
756
756
|
const i = new mi(
|
|
757
757
|
this.scrollElement,
|
|
@@ -772,7 +772,7 @@ let _s = class extends He {
|
|
|
772
772
|
this.scrollElement.removeEventListener(
|
|
773
773
|
"sectionsChange",
|
|
774
774
|
Ot(this, ue)
|
|
775
|
-
), Ot(this, yt).forEach((e) => e.destroy()),
|
|
775
|
+
), Ot(this, yt).forEach((e) => e.destroy()), ws(this, yt, []);
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
yt = /* @__PURE__ */ new WeakMap();
|
|
@@ -780,21 +780,21 @@ ue = /* @__PURE__ */ new WeakMap();
|
|
|
780
780
|
_s = vi([
|
|
781
781
|
re("e-scroll-bullet-buttons")
|
|
782
782
|
], _s);
|
|
783
|
-
var gi = Object.defineProperty,
|
|
784
|
-
for (var n = h > 1 ? void 0 : h ?
|
|
783
|
+
var gi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, wi = (e, i, r, h) => {
|
|
784
|
+
for (var n = h > 1 ? void 0 : h ? bi(i, r) : i, p = e.length - 1, d; p >= 0; p--)
|
|
785
785
|
(d = e[p]) && (n = (h ? d(i, r, n) : d(n)) || n);
|
|
786
786
|
return h && n && gi(i, r, n), n;
|
|
787
|
-
},
|
|
787
|
+
}, cs = (e, i, r) => {
|
|
788
788
|
if (!i.has(e))
|
|
789
789
|
throw TypeError("Cannot " + r);
|
|
790
|
-
}, s = (e, i, r) => (
|
|
790
|
+
}, s = (e, i, r) => (cs(e, i, "read from private field"), r ? r.call(e) : i.get(e)), o = (e, i, r) => {
|
|
791
791
|
if (i.has(e))
|
|
792
792
|
throw TypeError("Cannot add the same private member more than once");
|
|
793
793
|
i instanceof WeakSet ? i.add(e) : i.set(e, r);
|
|
794
|
-
}, m = (e, i, r, h) => (
|
|
795
|
-
let Cs = class extends
|
|
794
|
+
}, m = (e, i, r, h) => (cs(e, i, "write to private field"), h ? h.call(e, r) : i.set(e, r), r), W = (e, i, r) => (cs(e, i, "access private method"), r), Nt, Ut, Kt, Zt, kt, Pt, Wt, Mt, D, H, G, q, Lt, x, at, ot, lt, ct, ut, E, J, Z, ft, dt, Y, Ee, v, Jt, Qt, xe, L, Et, $, V, U, pe, $t, P, Qe, $s, Xe, Fs, Ye, Ds, je, Os, ts, As, es, Rs, Le, fe, ht, xt, us, Ts, ps, Is, Ve, ss, ze;
|
|
795
|
+
let Cs = class extends Ge {
|
|
796
796
|
constructor() {
|
|
797
|
-
super(), o(this,
|
|
797
|
+
super(), o(this, Qe), o(this, Xe), o(this, Ye), o(this, je), o(this, ts), o(this, es), o(this, ht), o(this, us), o(this, ps), o(this, Ve), o(this, Nt, new u(this, "--damping", 20)), o(this, Ut, new u(this, "--mass", 0)), o(this, Kt, new u(this, "--stiffness", 0)), o(this, Zt, new u(this, "--target", "")), o(this, kt, new u(this, "--disabled", !1)), o(this, Pt, new u(
|
|
798
798
|
this,
|
|
799
799
|
"--distance-offset",
|
|
800
800
|
0,
|
|
@@ -805,11 +805,11 @@ let Cs = class extends He {
|
|
|
805
805
|
this,
|
|
806
806
|
"--capture-once",
|
|
807
807
|
!1
|
|
808
|
-
)), o(this, D, new u(this, "--captured", "")), o(this,
|
|
808
|
+
)), o(this, D, new u(this, "--captured", "")), o(this, H, new u(this, "--released", "")), o(this, G, new u(
|
|
809
809
|
this,
|
|
810
810
|
"--captured-from-start",
|
|
811
811
|
""
|
|
812
|
-
)), o(this,
|
|
812
|
+
)), o(this, q, new u(
|
|
813
813
|
this,
|
|
814
814
|
"--captured-from-finish",
|
|
815
815
|
""
|
|
@@ -821,7 +821,7 @@ let Cs = class extends He {
|
|
|
821
821
|
this,
|
|
822
822
|
"--released-from-finish",
|
|
823
823
|
""
|
|
824
|
-
)), o(this, at, new u(this, "--passed-var", "")), o(this, ot, new u(this, "--progress-var", "")), o(this, lt, new u(this, "--distance-var", "")), o(this, ct, new u(this, "--start-var", "")), o(this, ut, new u(this, "--finish-var", "")), o(this, E, new gt(!1)), o(this,
|
|
824
|
+
)), o(this, at, new u(this, "--passed-var", "")), o(this, ot, new u(this, "--progress-var", "")), o(this, lt, new u(this, "--distance-var", "")), o(this, ct, new u(this, "--start-var", "")), o(this, ut, new u(this, "--finish-var", "")), o(this, E, new gt(!1)), o(this, J, new gt(!1)), o(this, Z, new gt(!1)), o(this, ft, new gt(!1)), o(this, dt, new gt(!1)), o(this, Y, new gt(!1)), o(this, Ee, []), o(this, v, this), o(this, Jt, 0), o(this, Qt, 0), o(this, xe, 0), o(this, L, new Ps(0, { order: ks.SCROLL - 1, min: 0, max: 1 })), o(this, Et, 0), o(this, $, 0), o(this, V, 0), o(this, U, 0), o(this, pe, !1), o(this, $t, !1), o(this, P, !0), o(this, Le, () => {
|
|
825
825
|
s(this, P) || (this.resize(), s(this, fe).call(this));
|
|
826
826
|
}), o(this, fe, () => {
|
|
827
827
|
!s(this, P) && s(this, pe) && this.tick();
|
|
@@ -846,13 +846,13 @@ let Cs = class extends He {
|
|
|
846
846
|
return s(this, D);
|
|
847
847
|
}
|
|
848
848
|
get releasedCSSProperty() {
|
|
849
|
-
return s(this,
|
|
849
|
+
return s(this, H);
|
|
850
850
|
}
|
|
851
851
|
get capturedFromStartCSSProperty() {
|
|
852
|
-
return s(this,
|
|
852
|
+
return s(this, G);
|
|
853
853
|
}
|
|
854
854
|
get capturedFromFinishCSSProperty() {
|
|
855
|
-
return s(this,
|
|
855
|
+
return s(this, q);
|
|
856
856
|
}
|
|
857
857
|
get releasedFromStartCSSProperty() {
|
|
858
858
|
return s(this, Lt);
|
|
@@ -894,10 +894,10 @@ let Cs = class extends He {
|
|
|
894
894
|
return s(this, E);
|
|
895
895
|
}
|
|
896
896
|
get isReleased() {
|
|
897
|
-
return s(this,
|
|
897
|
+
return s(this, J);
|
|
898
898
|
}
|
|
899
899
|
get isCapturedFromStart() {
|
|
900
|
-
return s(this,
|
|
900
|
+
return s(this, Z);
|
|
901
901
|
}
|
|
902
902
|
get isReleasedFromStart() {
|
|
903
903
|
return s(this, ft);
|
|
@@ -906,7 +906,7 @@ let Cs = class extends He {
|
|
|
906
906
|
return s(this, dt);
|
|
907
907
|
}
|
|
908
908
|
get isReleasedFromFinish() {
|
|
909
|
-
return s(this,
|
|
909
|
+
return s(this, Y);
|
|
910
910
|
}
|
|
911
911
|
get directionPosition() {
|
|
912
912
|
return s(this, Jt);
|
|
@@ -924,7 +924,7 @@ let Cs = class extends He {
|
|
|
924
924
|
return s(this, $);
|
|
925
925
|
}
|
|
926
926
|
get finish() {
|
|
927
|
-
return s(this,
|
|
927
|
+
return s(this, U);
|
|
928
928
|
}
|
|
929
929
|
get distance() {
|
|
930
930
|
return s(this, V);
|
|
@@ -936,7 +936,7 @@ let Cs = class extends He {
|
|
|
936
936
|
return s(this, P);
|
|
937
937
|
}
|
|
938
938
|
resize() {
|
|
939
|
-
m(this, Qt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), m(this, Jt, this.scrollElement.vertical ? $e(this, this.scrollElement) : Fe(this, this.scrollElement)), m(this, $, this.getStart()), m(this, V, this.getDistance()), m(this, $, s(this, $) + s(this, Wt).current), m(this, V, s(this, V) + s(this, Pt).current), m(this,
|
|
939
|
+
m(this, Qt, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), m(this, Jt, this.scrollElement.vertical ? $e(this, this.scrollElement) : Fe(this, this.scrollElement)), m(this, $, this.getStart()), m(this, V, this.getDistance()), m(this, $, s(this, $) + s(this, Wt).current), m(this, V, s(this, V) + s(this, Pt).current), m(this, U, s(this, $) + s(this, V)), this.scrollElement.currentScrollValue > s(this, U) && !s(this, E).current && !s(this, J).current && (s(this, E).current = !0), this.setVar(s(this, ct).current, s(this, $)), this.setVar(s(this, ut).current, s(this, U)), this.setVar(s(this, lt).current, s(this, V)), s(this, L).max = s(this, V), m(this, pe, !0);
|
|
940
940
|
}
|
|
941
941
|
tick() {
|
|
942
942
|
let e = this.scrollElement.currentScrollValue;
|
|
@@ -944,18 +944,18 @@ let Cs = class extends He {
|
|
|
944
944
|
e += r.value;
|
|
945
945
|
}), s(this, L).set(e - s(this, $));
|
|
946
946
|
const i = Math.round(e);
|
|
947
|
-
s(this, E).current && (i > s(this, $) ? s(this,
|
|
947
|
+
s(this, E).current && (i > s(this, $) ? s(this, Z).current || W(this, Ye, Ds).call(this) : s(this, Z).current && !s(this, ft).current && W(this, ts, As).call(this), i < s(this, U) ? s(this, Y).current && !s(this, dt).current && W(this, je, Os).call(this) : s(this, Z).current && !s(this, Y).current && W(this, es, Rs).call(this)), i > s(this, $) && i < s(this, U) ? s(this, E).current || W(this, Qe, $s).call(this) : s(this, E).current && (s(this, L).set(
|
|
948
948
|
Gs(s(this, V) / 2, s(this, L).current, 0, s(this, V))
|
|
949
|
-
), W(this,
|
|
949
|
+
), W(this, Xe, Fs).call(this)), s(this, $t) && s(this, Mt).current && (s(this, D).current && s(this, v).classList.add(s(this, D).current), m(this, P, !0));
|
|
950
950
|
}
|
|
951
951
|
disable() {
|
|
952
|
-
this.style.cssText = "", m(this, Jt, 0), m(this, Qt, 0), s(this, L).reset(), m(this, Et, 0), m(this, $, 0), m(this, V, 0), m(this,
|
|
952
|
+
this.style.cssText = "", m(this, Jt, 0), m(this, Qt, 0), s(this, L).reset(), m(this, Et, 0), m(this, $, 0), m(this, V, 0), m(this, U, 0), m(this, pe, !1), s(this, E).current = !1, s(this, J).current = !1, s(this, Z).current = !1, s(this, ft).current = !1, s(this, dt).current = !1, s(this, Y).current = !1, m(this, $t, !1), m(this, P, !0), W(this, Ve, ss).call(this);
|
|
953
953
|
}
|
|
954
954
|
enable() {
|
|
955
955
|
m(this, P, !1);
|
|
956
956
|
}
|
|
957
957
|
connectedCallback() {
|
|
958
|
-
super.connectedCallback(), s(this, Nt).observe(), s(this, Ut).observe(), s(this, Kt).observe(), s(this, Zt).observe(), s(this, kt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, D).observe(), s(this,
|
|
958
|
+
super.connectedCallback(), s(this, Nt).observe(), s(this, Ut).observe(), s(this, Kt).observe(), s(this, Zt).observe(), s(this, kt).observe(), s(this, Pt).observe(), s(this, Wt).observe(), s(this, Mt).observe(), s(this, D).observe(), s(this, H).observe(), s(this, G).observe(), s(this, q).observe(), s(this, Lt).observe(), s(this, x).observe(), s(this, at).observe(), s(this, ot).observe(), s(this, lt).observe(), s(this, ct).observe(), s(this, ut).observe();
|
|
959
959
|
let e = !1;
|
|
960
960
|
this.scrollElement.addEventListener(
|
|
961
961
|
"sectionsChange",
|
|
@@ -967,7 +967,7 @@ let Cs = class extends He {
|
|
|
967
967
|
}), s(this, Kt).subscribe((i) => {
|
|
968
968
|
s(this, L).stiffness = i.current;
|
|
969
969
|
}), s(this, Zt).subscribe((i) => {
|
|
970
|
-
i.previous && W(this, Ve,
|
|
970
|
+
i.previous && W(this, Ve, ss).call(this), i.current ? i.current === "parent" ? m(this, v, this.parentElement || this) : m(this, v, document.querySelector(i.current) || this) : m(this, v, this);
|
|
971
971
|
}), s(this, kt).subscribe((i) => {
|
|
972
972
|
i.current && !i.previous ? this.disable() : !i.current && i.previous && (this.resize(), this.enable());
|
|
973
973
|
}), s(this, Wt).subscribe(() => {
|
|
@@ -976,11 +976,11 @@ let Cs = class extends He {
|
|
|
976
976
|
e && !s(this, P) && this.resize();
|
|
977
977
|
}), s(this, D).subscribe((i) => {
|
|
978
978
|
W(this, ht, xt).call(this, i);
|
|
979
|
-
}), s(this, H).subscribe((i) => {
|
|
980
|
-
W(this, ht, xt).call(this, i);
|
|
981
979
|
}), s(this, G).subscribe((i) => {
|
|
982
980
|
W(this, ht, xt).call(this, i);
|
|
983
|
-
}), s(this,
|
|
981
|
+
}), s(this, q).subscribe((i) => {
|
|
982
|
+
W(this, ht, xt).call(this, i);
|
|
983
|
+
}), s(this, H).subscribe((i) => {
|
|
984
984
|
W(this, ht, xt).call(this, i);
|
|
985
985
|
}), s(this, Lt).subscribe((i) => {
|
|
986
986
|
W(this, ht, xt).call(this, i);
|
|
@@ -995,7 +995,7 @@ let Cs = class extends He {
|
|
|
995
995
|
}), s(this, ct).subscribe((i) => {
|
|
996
996
|
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, $)));
|
|
997
997
|
}), s(this, ut).subscribe((i) => {
|
|
998
|
-
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this,
|
|
998
|
+
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, U)));
|
|
999
999
|
}), s(this, lt).subscribe((i) => {
|
|
1000
1000
|
s(this, P) || (this.removeVar(i.previous), this.setVar(i.current, s(this, V)));
|
|
1001
1001
|
}), s(this, L).subscribe((i) => {
|
|
@@ -1006,10 +1006,10 @@ let Cs = class extends He {
|
|
|
1006
1006
|
s(this, ot).current,
|
|
1007
1007
|
s(this, Et).toFixed(6)
|
|
1008
1008
|
);
|
|
1009
|
-
}), ee.subscribe(s(this, Le),
|
|
1009
|
+
}), ee.subscribe(s(this, Le), rs.SEGMENT), this.scrollElement.onScroll(s(this, fe)), e = !0;
|
|
1010
1010
|
}
|
|
1011
1011
|
disconnectedCallback() {
|
|
1012
|
-
ee.unsubscribe(s(this, Le)), this.scrollElement.offScroll(s(this, fe)), s(this, Nt).close(), s(this, Ut).close(), s(this, Kt).close(), s(this, Zt).close(), s(this, kt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, D).close(), s(this,
|
|
1012
|
+
ee.unsubscribe(s(this, Le)), this.scrollElement.offScroll(s(this, fe)), s(this, Nt).close(), s(this, Ut).close(), s(this, Kt).close(), s(this, Zt).close(), s(this, kt).close(), s(this, Pt).close(), s(this, Wt).close(), s(this, Mt).close(), s(this, D).close(), s(this, H).close(), s(this, G).close(), s(this, q).close(), s(this, Lt).close(), s(this, x).close(), s(this, at).close(), s(this, ot).close(), s(this, lt).close(), s(this, ct).close(), s(this, ut).close(), s(this, E).close(), s(this, J).close(), s(this, Z).close(), s(this, ft).close(), s(this, dt).close(), s(this, Y).close(), this.disable();
|
|
1013
1013
|
}
|
|
1014
1014
|
removeVar(e) {
|
|
1015
1015
|
e && s(this, v).style.removeProperty(`--${e}`);
|
|
@@ -1033,9 +1033,9 @@ Pt = /* @__PURE__ */ new WeakMap();
|
|
|
1033
1033
|
Wt = /* @__PURE__ */ new WeakMap();
|
|
1034
1034
|
Mt = /* @__PURE__ */ new WeakMap();
|
|
1035
1035
|
D = /* @__PURE__ */ new WeakMap();
|
|
1036
|
-
B = /* @__PURE__ */ new WeakMap();
|
|
1037
1036
|
H = /* @__PURE__ */ new WeakMap();
|
|
1038
1037
|
G = /* @__PURE__ */ new WeakMap();
|
|
1038
|
+
q = /* @__PURE__ */ new WeakMap();
|
|
1039
1039
|
Lt = /* @__PURE__ */ new WeakMap();
|
|
1040
1040
|
x = /* @__PURE__ */ new WeakMap();
|
|
1041
1041
|
at = /* @__PURE__ */ new WeakMap();
|
|
@@ -1044,11 +1044,11 @@ lt = /* @__PURE__ */ new WeakMap();
|
|
|
1044
1044
|
ct = /* @__PURE__ */ new WeakMap();
|
|
1045
1045
|
ut = /* @__PURE__ */ new WeakMap();
|
|
1046
1046
|
E = /* @__PURE__ */ new WeakMap();
|
|
1047
|
+
J = /* @__PURE__ */ new WeakMap();
|
|
1047
1048
|
Z = /* @__PURE__ */ new WeakMap();
|
|
1048
|
-
K = /* @__PURE__ */ new WeakMap();
|
|
1049
1049
|
ft = /* @__PURE__ */ new WeakMap();
|
|
1050
1050
|
dt = /* @__PURE__ */ new WeakMap();
|
|
1051
|
-
|
|
1051
|
+
Y = /* @__PURE__ */ new WeakMap();
|
|
1052
1052
|
Ee = /* @__PURE__ */ new WeakMap();
|
|
1053
1053
|
v = /* @__PURE__ */ new WeakMap();
|
|
1054
1054
|
Jt = /* @__PURE__ */ new WeakMap();
|
|
@@ -1058,47 +1058,47 @@ L = /* @__PURE__ */ new WeakMap();
|
|
|
1058
1058
|
Et = /* @__PURE__ */ new WeakMap();
|
|
1059
1059
|
$ = /* @__PURE__ */ new WeakMap();
|
|
1060
1060
|
V = /* @__PURE__ */ new WeakMap();
|
|
1061
|
-
|
|
1061
|
+
U = /* @__PURE__ */ new WeakMap();
|
|
1062
1062
|
pe = /* @__PURE__ */ new WeakMap();
|
|
1063
1063
|
$t = /* @__PURE__ */ new WeakMap();
|
|
1064
1064
|
P = /* @__PURE__ */ new WeakMap();
|
|
1065
|
-
|
|
1065
|
+
Qe = /* @__PURE__ */ new WeakSet();
|
|
1066
1066
|
$s = function() {
|
|
1067
|
-
s(this, E).current = !0, s(this,
|
|
1067
|
+
s(this, E).current = !0, s(this, J).current = !1, m(this, $t, !0), s(this, H).current && s(this, v).classList.remove(s(this, H).current), s(this, x).current && s(this, v).classList.remove(
|
|
1068
1068
|
s(this, x).current
|
|
1069
1069
|
), s(this, x).current && s(this, v).classList.remove(
|
|
1070
1070
|
s(this, x).current
|
|
1071
1071
|
), s(this, D).current && s(this, v).classList.add(s(this, D).current);
|
|
1072
1072
|
};
|
|
1073
|
-
|
|
1073
|
+
Xe = /* @__PURE__ */ new WeakSet();
|
|
1074
1074
|
Fs = function() {
|
|
1075
|
-
s(this,
|
|
1076
|
-
s(this, H).current
|
|
1077
|
-
), s(this, G).current && s(this, v).classList.remove(
|
|
1075
|
+
s(this, J).current = !0, s(this, E).current = !1, m(this, $t, !0), s(this, D).current && s(this, v).classList.remove(s(this, D).current), s(this, G).current && s(this, v).classList.remove(
|
|
1078
1076
|
s(this, G).current
|
|
1079
|
-
), s(this,
|
|
1077
|
+
), s(this, q).current && s(this, v).classList.remove(
|
|
1078
|
+
s(this, q).current
|
|
1079
|
+
), s(this, H).current && s(this, v).classList.add(s(this, H).current);
|
|
1080
1080
|
};
|
|
1081
|
-
|
|
1081
|
+
Ye = /* @__PURE__ */ new WeakSet();
|
|
1082
1082
|
Ds = function() {
|
|
1083
|
-
s(this, E).current = !0, s(this,
|
|
1084
|
-
s(this,
|
|
1083
|
+
s(this, E).current = !0, s(this, Z).current = !0, s(this, ft).current = !1, s(this, G).current && s(this, v).classList.add(
|
|
1084
|
+
s(this, G).current
|
|
1085
1085
|
);
|
|
1086
1086
|
};
|
|
1087
|
-
|
|
1087
|
+
je = /* @__PURE__ */ new WeakSet();
|
|
1088
1088
|
Os = function() {
|
|
1089
|
-
s(this, E).current = !0, s(this, dt).current = !0, s(this,
|
|
1090
|
-
s(this,
|
|
1089
|
+
s(this, E).current = !0, s(this, dt).current = !0, s(this, Y).current = !1, s(this, q).current && s(this, v).classList.add(
|
|
1090
|
+
s(this, q).current
|
|
1091
1091
|
);
|
|
1092
1092
|
};
|
|
1093
|
-
|
|
1093
|
+
ts = /* @__PURE__ */ new WeakSet();
|
|
1094
1094
|
As = function() {
|
|
1095
|
-
s(this,
|
|
1095
|
+
s(this, J).current = !0, s(this, ft).current = !0, s(this, Z).current = !1, s(this, x).current && s(this, v).classList.add(
|
|
1096
1096
|
s(this, x).current
|
|
1097
1097
|
);
|
|
1098
1098
|
};
|
|
1099
|
-
|
|
1099
|
+
es = /* @__PURE__ */ new WeakSet();
|
|
1100
1100
|
Rs = function() {
|
|
1101
|
-
s(this,
|
|
1101
|
+
s(this, J).current = !0, s(this, Y).current = !0, s(this, dt).current = !1, s(this, x).current && s(this, v).classList.add(
|
|
1102
1102
|
s(this, x).current
|
|
1103
1103
|
);
|
|
1104
1104
|
};
|
|
@@ -1112,29 +1112,29 @@ xt = function(e) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
e.current && s(this, E).current ? (e.previous && s(this, v).classList.remove(e.previous), s(this, v).classList.add(e.current)) : !e.current && e.previous && s(this, v).classList.remove(e.previous);
|
|
1114
1114
|
};
|
|
1115
|
-
|
|
1115
|
+
us = /* @__PURE__ */ new WeakSet();
|
|
1116
1116
|
Ts = function(...e) {
|
|
1117
1117
|
e.forEach((i) => {
|
|
1118
1118
|
i && s(this, v).classList.remove(i);
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
|
1121
|
-
|
|
1121
|
+
ps = /* @__PURE__ */ new WeakSet();
|
|
1122
1122
|
Is = function(...e) {
|
|
1123
1123
|
e.forEach((i) => {
|
|
1124
1124
|
i && s(this, v).style.removeProperty(`--${i}`);
|
|
1125
1125
|
});
|
|
1126
1126
|
};
|
|
1127
1127
|
Ve = /* @__PURE__ */ new WeakSet();
|
|
1128
|
-
|
|
1129
|
-
W(this,
|
|
1128
|
+
ss = function() {
|
|
1129
|
+
W(this, us, Ts).call(this, s(this, D).current, s(this, G).current, s(this, q).current, s(this, H).current, s(this, Lt).current, s(this, x).current), W(this, ps, Is).call(this, s(this, at).current, s(this, ot).current, s(this, lt).current, s(this, ct).current, s(this, ut).current);
|
|
1130
1130
|
};
|
|
1131
1131
|
ze = /* @__PURE__ */ new WeakMap();
|
|
1132
|
-
Cs =
|
|
1132
|
+
Cs = wi([
|
|
1133
1133
|
re("e-scroll-segment")
|
|
1134
1134
|
], Cs);
|
|
1135
1135
|
export {
|
|
1136
1136
|
_s as ScrollBulletButtonsElement,
|
|
1137
|
-
|
|
1137
|
+
Be as ScrollElement,
|
|
1138
1138
|
Cs as ScrollSegmentElement,
|
|
1139
1139
|
ms as ScrollSetButtonElement,
|
|
1140
1140
|
gs as ScrollStepButtonElement,
|