aptechka 0.71.28 → 0.71.29
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/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +123 -123
- package/package.json +1 -1
package/lib/scroll/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var pi=Object.defineProperty;var Ns=Object.getOwnPropertySymbols,fi=Object.getPrototypeOf,bi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,gi=Reflect.get;var Gs=d=>{throw TypeError(d)};var Us=(d,h,e)=>h in d?pi(d,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):d[h]=e,Zs=(d,h)=>{for(var e in h||(h={}))bi.call(h,e)&&Us(d,e,h[e]);if(Ns)for(var e of Ns(h))mi.call(h,e)&&Us(d,e,h[e]);return d};var Is=(d,h,e)=>h.has(d)||Gs("Cannot "+e);var t=(d,h,e)=>(Is(d,h,"read from private field"),e?e.call(d):h.get(d)),i=(d,h,e)=>h.has(d)?Gs("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(d):h.set(d,e),r=(d,h,e,s)=>(Is(d,h,"write to private field"),s?s.call(d,e):h.set(d,e),e),o=(d,h,e)=>(Is(d,h,"access private method"),e);var Rs=(d,h,e)=>gi(fi(d),e,h);var As=(d,h,e)=>new Promise((s,n)=>{var u=v=>{try{C(e.next(v))}catch(ue){n(ue)}},g=v=>{try{C(e.throw(v))}catch(ue){n(ue)}},C=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);C((e=e.apply(d,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../Store-Cd1GlEmZ.cjs"),_=require("../index-DekP7OZe.cjs"),Ci=require("../easings-GegIwET5.cjs"),yi=require("../element-yhcBhsho.cjs"),st=require("../events-KVanG9sR.cjs"),Ls=require("../function-MthRj-GJ.cjs"),it=require("../layout-Ctc2p3uz.cjs"),$s=require("../math-GDWEqu7y.cjs"),js=require("../number-ChAm68cm.cjs"),Js=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Te=require("../order/index.cjs"),Qs=require("../Damped-z9Uaw2MJ.cjs"),vi=require("../Tweened-mvHucL4Y.cjs"),Es=require("../DragControls-CfE2oPAi.cjs"),ft=require("../window-resizer/index.cjs"),ce=require("../scroll-entries/index.cjs"),Ks=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),Pi=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const cs=require("../element-resizer/index.cjs"),Ei=require("../gestures-C7gbKx11.cjs"),wi=require("../dom-JBOkFLTh.cjs");var p,De,E,us,as,pe,bt,qt,fe,Bt,Fe;class xi{constructor(h,e,s){i(this,Bt);i(this,p);i(this,De);i(this,E);i(this,us,0);i(this,as,0);i(this,pe,0);i(this,bt,0);i(this,qt,null);i(this,fe,0);r(this,p,h),r(this,De,e),r(this,E,s),ce.scrollEntries.register(t(this,p)),this.setIndex(t(this,De))}get element(){return t(this,p)}get index(){return t(this,De)}get size(){return t(this,pe)}get width(){return t(this,us)}get height(){return t(this,as)}get position(){return t(this,bt)}get transformPosition(){return t(this,fe)}destroy(){ce.scrollEntries.unregister(t(this,p)),this.unsetTransform()}unsetTransform(){t(this,p).style.transform="",this.setMark(null),this.setIndex(null),this.setCurrentIndex(null),this.setCurrentIndexArc(null),this.setCurrentIndexArcAbs(null),this.setOffsetIndex(null),this.setMiddle(!1),this.setSize()}setSize(h){h?(t(this,p).style.setProperty("--size",h+"px"),t(this,E).axisCSSProperty.current==="x"?(t(this,p).style.width=h+"px",t(this,p).style.height=""):(t(this,p).style.height=h+"px",t(this,p).style.width="")):(t(this,p).style.width="",t(this,p).style.height="",t(this,p).style.removeProperty("--size"))}resize(){r(this,us,t(this,p).offsetWidth),r(this,as,t(this,p).offsetHeight),r(this,pe,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,bt,t(this,E).vertical?it.getCumulativeOffsetTop(t(this,p)):it.getCumulativeOffsetLeft(t(this,p))),r(this,bt,t(this,bt)-t(this,E).contentPosition)}transform(){const h=t(this,E).shiftSectionPositionCSSProperty.current;let e=h;const s=t(this,E).viewportSize*t(this,E).sectionDistanceScaleCSSProperty.current;t(this,E).loopCSSProperty.current&&t(this,bt)+t(this,pe)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),ce.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,bt)-t(this,E).viewportSize-s,g=t(this,bt)+t(this,pe)+s,C=js.preciseNumber($s.clamp(n,u,g),3);r(this,fe,C*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,fe)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,fe)}px, 0px, 0px)`}setMark(h){t(this,qt)!==h&&(t(this,qt)&&t(this,p).classList.remove(t(this,qt)),h&&t(this,p).classList.add(h),r(this,qt,h),st.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,qt)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,Bt,Fe).call(this,"index",h)}setCurrentIndex(h){o(this,Bt,Fe).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,Bt,Fe).call(this,"current-index-arc",h)}setOffsetIndex(h){o(this,Bt,Fe).call(this,"offset-index",h)}setCurrentIndexArcAbs(h){o(this,Bt,Fe).call(this,"current-index-arc-abs",h)}}p=new WeakMap,De=new WeakMap,E=new WeakMap,us=new WeakMap,as=new WeakMap,pe=new WeakMap,bt=new WeakMap,qt=new WeakMap,fe=new WeakMap,Bt=new WeakSet,Fe=function(h,e){e!==null?(t(this,p).style.setProperty(`--${h}`,e.toString()),t(this,p).setAttribute(`data-${h}`,e.toString())):(t(this,p).style.removeProperty(`--${h}`),t(this,p).removeAttribute(`data-${h}`))};const Li=Js.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content-wrapper":{width:"var(--content-wrapper-width, 100%)",height:"var(--content-wrapper-height, 100%)",overflow:"var(--overflow, initial)",borderRadius:"var(--border-radius, unset)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},":host(.hibernated) .content-wrapper":{display:"contents"},":host(.hibernated) .content":{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var S,be,T,$t,mt,gt,Ct,j,Ht,Wt,yt,_t,me,J,V,ge,Ce,ye,ve,qe,Pe,Q,Ee,Nt,X,vt,Pt,we,Ut,xe,Le,Gt,Zt,Kt,f,Be,N,a,ds,Ss,L,P,U,rt,jt,nt,M,k,$e,Et,wt,xt,G,He,Jt,Qt,ze,ht,I,We,Lt,Ve,_e,c,Ms,os,Oe,ws,xs,Fs,Os,F,ps,Xs,Ne,fs,Ts,Ds,de,Ys,bs,ls,Ue;class zs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,be,new l.CSSProperty(this,"--controls",!0));i(this,T,new l.CSSProperty(this,"--axis","y"));i(this,$t,new l.CSSProperty(this,"--reverse",!1));i(this,mt,new l.CSSProperty(this,"--direction",0));i(this,gt,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,Ct,new l.CSSProperty(this,"--split",!1));i(this,j,new l.CSSProperty(this,"--sectional",!1));i(this,Ht,new l.CSSProperty(this,"--tween-easing",!1));i(this,Wt,new l.CSSProperty(this,"--tween-duration",!1));i(this,yt,new l.CSSProperty(this,"--auto-size",!1));i(this,_t,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,me,new l.CSSProperty(this,"--drag-inertion",1));i(this,J,new l.CSSProperty(this,"--sections-in-view",1));i(this,V,new l.CSSProperty(this,"--loop",!1));i(this,ge,new l.CSSProperty(this,"--damping",20));i(this,Ce,new l.CSSProperty(this,"--mass",0));i(this,ye,new l.CSSProperty(this,"--stiffness",0));i(this,ve,new l.CSSProperty(this,"--mouse-drag",!1));i(this,qe,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,Pe,new l.CSSProperty(this,"--start-section",0));i(this,Q,new l.CSSProperty(this,"--autoplay",0));i(this,Ee,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,Nt,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,X,new l.CSSProperty(this,"--classes",!1));i(this,vt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,Pt,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,we,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Ut,new l.CSSProperty(this,"--focus-delay",0));i(this,xe,new l.CSSProperty(this,"--focus-duration",3e3));i(this,Le,new l.CSSProperty(this,"--shift-limit",0));i(this,Gt,new l.CSSProperty(this,"--disabled",!1));i(this,Zt,new l.CSSProperty(this,"--hibernate",!1));i(this,Kt,null);i(this,f,null);i(this,Be,null);i(this,N,[]);i(this,a,[]);i(this,ds,0);i(this,Ss,0);i(this,L,0);i(this,P,0);i(this,U,0);i(this,rt,null);i(this,jt,null);i(this,nt,null);i(this,M,null);i(this,k,new ae.Store(0));i(this,$e,0);i(this,Et,0);i(this,wt,!1);i(this,xt,!0);i(this,G,!0);i(this,He);i(this,Jt);i(this,Qt,new vi.Tweened);i(this,ze,!1);i(this,ht,null);i(this,I,!1);i(this,We,null);i(this,Lt,[]);i(this,Ve,!1);i(this,_e);i(this,F,e=>{if(e&&t(this,Ve)){r(this,Ve,!1);return}this.resize()});i(this,ps,()=>{if(!t(this,wt)||t(this,G)||t(this,xt))return;const e=this.currentScrollValue;if(r(this,$e,Math.max(0,e-t(this,P))),t(this,a).length){for(let s=0;s<t(this,N).length;s++)t(this,N)[s].transform();t(this,j).current||(t(this,k).current=o(this,c,ls).call(this))}else this.vertical?t(this,f).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;o(this,c,Ys).call(this),ce.scrollEntries.update(this,t(this,T).current,e)});i(this,Ne,(e,s)=>{t(this,be).current&&(o(this,c,Ts).call(this,Math.sign(s)||1),t(this,fs).call(this,e,s))});i(this,fs,(e,s)=>{if(!t(this,Jt)){if(t(this,mt).current){if(t(this,mt).current<0&&s>0)return;if(t(this,mt).current>0&&s<0)return}if(!t(this,Q).current&&t(this,Ut).current&&(clearInterval(t(this,He)),r(this,He,setTimeout(()=>{const n=t(this,a)[o(this,c,ls).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,xe).current,easing:Ci.easeInOutExpo}})},t(this,Ut).current))),!(e.includes("drag")&&!Pi.device.isTouch&&!t(this,ve).current)){if(t(this,j).current&&e!=="drag"){const n=Math.sign(s);if(t(this,a).length){const u={tween:t(this,Ht).current||t(this,Wt).current?{easing:t(this,Ht).current||"easeInOutCubic",duration:t(this,Wt).current||500}:void 0};t(this,ze)?this.scrollToSection(o(this,c,ls).call(this,!0),u):this.shiftSections(n,u)}else t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,ze,e==="drag")}}});i(this,bs,Ls.debounce(()=>{const e=t(this,Lt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,_e)),r(this,Ve,!0),this.style.setProperty("--max-section-size",""),r(this,_e,setTimeout(()=>{r(this,Ve,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,Ue,()=>{r(this,I,!0),this.hibernatedCSSProperty.current||o(this,c,Os).call(this),cs.elementResizer.subscribe(this,t(this,F)),ft.windowResizer.unsubscribe(t(this,Ue))});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Li];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,Kt,document.createElement("div")),t(this,Kt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Be,document.createElement("slot")),t(this,f).appendChild(t(this,Be)),t(this,Kt).appendChild(t(this,f)),e.appendChild(t(this,Kt)),r(this,We,new MutationObserver(Ls.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,be)}get axisCSSProperty(){return t(this,T)}get reverseCSSProperty(){return t(this,$t)}get directionCSSProperty(){return t(this,mt)}get pagesCSSProperty(){return t(this,gt)}get splitCSSProperty(){return t(this,Ct)}get sectionalCSSProperty(){return t(this,j)}get easingCSSProperty(){return t(this,Ht)}get durationCSSProperty(){return t(this,Wt)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,_t)}get dragInertionCSSProperty(){return t(this,me)}get sectionsInViewCSSProperty(){return t(this,J)}get loopCSSProperty(){return t(this,V)}get dampingCSSProperty(){return t(this,ge)}get massCSSProperty(){return t(this,Ce)}get stiffnessCSSProperty(){return t(this,ye)}get mouseDragCSSProperty(){return t(this,ve)}get sectionDistanceScaleCSSProperty(){return t(this,qe)}get startSectionCSSProperty(){return t(this,Pe)}get autoplayCSSProperty(){return t(this,Q)}get autoplayPauseDurationCSSProperty(){return t(this,Ee)}get autoplayUserDirectionCSSProperty(){return t(this,Nt)}get classesCSSProperty(){return t(this,X)}get currentIndexStartOffsetCSSProperty(){return t(this,vt)}get currentIndexEndOffsetCSSProperty(){return t(this,Pt)}get shiftSectionPositionCSSProperty(){return t(this,we)}get focusDelayCSSProperty(){return t(this,Ut)}get focusDurationCSSProperty(){return t(this,xe)}get shiftLimitCSSProperty(){return t(this,Le)}get disabledCSSProperty(){return t(this,Gt)}get hibernatedCSSProperty(){return t(this,Zt)}get currentScrollValue(){return o(this,c,Ds).call(this,"current")}get targetScrollValue(){return o(this,c,Ds).call(this,"target")}get contentWrapperElement(){return t(this,Kt)}get contentElement(){return t(this,f)}get sections(){return t(this,N)}get visibleSections(){return t(this,a)}get position(){return t(this,ds)}get contentPosition(){return t(this,Ss)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,U)}get counter(){return t(this,k)}get limit(){return Math.ceil(t(this,a).length-t(this,J).current+t(this,Le).current)}get distance(){return t(this,Et)}get loopDistance(){return t(this,V).current?t(this,Et)+t(this,U):t(this,Et)}get hasOverflow(){return t(this,wt)}get overscroll(){return t(this,$e)}get scrollLine(){return t(this,ht)}get vertical(){return t(this,T).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,T).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,T).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,G)&&(t(this,V).current||t(this,Ct).current||t(this,V).current||t(this,yt).current||t(this,j).current)&&o(this,c,os).call(this)}onScroll(...e){return t(this,S).subscribe(...e)}offScroll(...e){t(this,S).unsubscribe(...e)}range(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress<u?0:this.currentProgress>g?1:(this.currentProgress-u)/(g-u)}curve(e,s,n=0){return Math.sin(this.range(e,s,n)*Math.PI)}visible(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress>=u&&this.currentProgress<=g}scrollToSection(e,s){if(!t(this,a).length||t(this,G))return;const n=t(this,k).current,u=o(this,c,Xs).call(this,e);t(this,k).current=u;const g=t(this,a)[n],C=t(this,a)[u];if(g&&C){let v=0;const ue=o(this,c,ls).call(this),Me=t(this,a)[ue];let hs=Me?this.targetScrollValue-Me.position:0;t(this,V).current?u===0&&n===t(this,a).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,U),t(this,ze)||(hs=0)):u===t(this,a).length-1&&n===0?v=C.position-(t(this,P)+t(this,L)+t(this,U)):v=C.position-g.position:v=C.position-g.position,this.shiftPosition(v-hs,s)}}shiftSections(e,s){t(this,a).length&&this.scrollToSection(t(this,k).current+e,s)}setPosition(e,s){t(this,G)||(o(this,c,Ts).call(this,Math.sign(e)||1),s!=null&&s.tween?(clearTimeout(t(this,Jt)),t(this,Qt).set(t(this,S).current,{equalize:!0}),t(this,Qt).set(e,Zs({},s.tween)),r(this,Jt,setTimeout(()=>{r(this,Jt,void 0)},s.tween.duration||0))):t(this,S).set(e,{equalize:(s==null?void 0:s.behaviour)==="instant"}))}shiftPosition(e,s){this.setPosition(t(this,S).target+e,s)}resize(){if(t(this,Zt).current)return;r(this,a,t(this,N).filter(n=>yi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,a).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,k).current;if(r(this,ds,this.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this)),r(this,Ss,this.vertical?it.getCumulativeOffsetTop(t(this,f)):it.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,yt).current&&t(this,a).length){const n=t(this,J).current,u=(t(this,L)-t(this,U)*(n-1))/n;t(this,a).forEach(g=>{g.setSize(u)})}else t(this,a).forEach(n=>{n.setSize()});if(t(this,a).forEach(n=>{n.resize()}),t(this,gt).current){r(this,P,t(this,L)*t(this,gt).current);const n=t(this,P)+t(this,L);this.vertical?(t(this,f).style.width=n+"px",t(this,f).style.height="100%"):(t(this,f).style.height=n+"px",t(this,f).style.width="100%")}else this.vertical?(t(this,f).style.width="100%",t(this,f).style.height="max-content",r(this,P,t(this,f).offsetHeight-t(this,L))):(t(this,f).style.width="max-content",t(this,f).style.height="100%",r(this,P,t(this,f).offsetWidth-t(this,L)));if(!t(this,V).current){const n=getComputedStyle(this),u=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,P,t(this,P)+u),t(this,S).max=t(this,P)}if(t(this,V).current&&t(this,a).length){const n=t(this,a)[t(this,a).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,Et,n.position+n.size+g)}else r(this,Et,t(this,P));if(t(this,j).current&&t(this,a).length){const n=t(this,a)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,wt,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,wt)),t(this,wt)?t(this,Gt).current||o(this,c,xs).call(this):o(this,c,ws).call(this),t(this,bs).call(this),st.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){ce.scrollEntries.register(this),r(this,S,new Qs.Damped(0,{damping:.01,min:0,order:Te.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,rt,new Es.WheelControls({element:t(this,f)})),t(this,rt).changeEvent.subscribe(t(this,Ne)),r(this,jt,new Es.KeyboardControls({element:this})),t(this,jt).changeEvent.subscribe(t(this,Ne)),r(this,nt,new Es.DragControls({element:t(this,f),rootElement:this})),t(this,nt).changeEvent.subscribe(t(this,Ne)),r(this,M,new Es.AutoplayControls({culling:this})),t(this,M).changeEvent.subscribe(t(this,fs)),t(this,T).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,$t).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,_t).subscribe(e=>{t(this,rt).axis=e.current?"max":t(this,T).current}),t(this,me).subscribe(e=>{t(this,nt).inertion=typeof e.current=="number"?e.current:1}),t(this,gt).subscribe(()=>{t(this,I)&&t(this,F).call(this)}),t(this,Ct).subscribe(({current:e})=>{t(this,I)&&(e?o(this,c,os).call(this):o(this,c,Oe).call(this))}),t(this,j).subscribe(e=>{t(this,rt).debounce=e.current,t(this,nt).swipe=e.current,t(this,M).interval=e.current,t(this,I)&&(e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,yt).subscribe(e=>{t(this,I)&&(t(this,F).call(this),e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,J).subscribe(e=>{t(this,I)&&(t(this,F).call(this),o(this,c,de).call(this))}),t(this,V).subscribe(e=>{e.current?(t(this,I)&&(t(this,a).length||(t(this,Ct).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,$e,0),t(this,S).max=t(this,P),t(this,S).min=0),this.classList.toggle("loop",!!e.current)}),t(this,ge).subscribe(e=>{t(this,S).damping=e.current}),t(this,Ce).subscribe(e=>{t(this,S).mass=e.current}),t(this,ye).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,Q).subscribe(e=>{t(this,M).speed=e.current,!t(this,xt)&&e.current&&!e.previous?t(this,M).connect():!e.current&&e.previous&&t(this,M).disconnect()}),t(this,Nt).subscribe(e=>{e.current||(t(this,M).direction=1)}),t(this,X).subscribe(e=>{t(this,I)&&o(this,c,de).call(this)}),t(this,vt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,de).call(this)}),t(this,Pt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,de).call(this)}),t(this,we).subscribe(e=>{t(this,I)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,k).subscribe(e=>{t(this,G)||(t(this,a).length&&o(this,c,de).call(this),this.style.setProperty("--counter",e.current+""))}),t(this,Qt).subscribe(e=>{t(this,Qt).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Gt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,ws).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,xs).call(this))}),t(this,Zt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,Fs).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Os).call(this))}),t(this,be).observe(),t(this,T).observe(),t(this,$t).observe(),t(this,mt).observe(),t(this,gt).observe(),t(this,Ct).observe(),t(this,j).observe(),t(this,Ht).observe(),t(this,Wt).observe(),t(this,yt).observe(),t(this,_t).observe(),t(this,me).observe(),t(this,J).observe(),t(this,V).observe(),t(this,ge).observe(),t(this,Ce).observe(),t(this,ye).observe(),t(this,ve).observe(),t(this,qe).observe(),t(this,Pe).observe(),t(this,Q).observe(),t(this,Q).observe(),t(this,Ee).observe(),t(this,Nt).observe(),t(this,X).observe(),t(this,vt).observe(),t(this,Pt).observe(),t(this,we).observe(),t(this,Ut).observe(),t(this,xe).observe(),t(this,Le).observe(),t(this,Gt).observe(),t(this,Zt).observe(),ft.windowResizer.subscribe(t(this,Ue),Te.RESIZE_ORDER.LAST),t(this,We).observe(this,{childList:!0})}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,be).unobserve(),t(this,T).unobserve(),t(this,$t).unobserve(),t(this,mt).unobserve(),t(this,gt).unobserve(),t(this,Ct).unobserve(),t(this,j).unobserve(),t(this,Ht).unobserve(),t(this,Wt).unobserve(),t(this,yt).unobserve(),t(this,_t).unobserve(),t(this,me).unobserve(),t(this,J).unobserve(),t(this,V).unobserve(),t(this,ge).unobserve(),t(this,Ce).unobserve(),t(this,ye).unobserve(),t(this,ve).unobserve(),t(this,qe).unobserve(),t(this,Pe).unobserve(),t(this,Q).unobserve(),t(this,Ee).unobserve(),t(this,Nt).unobserve(),t(this,X).unobserve(),t(this,vt).unobserve(),t(this,Pt).unobserve(),t(this,we).unobserve(),t(this,Ut).unobserve(),t(this,xe).unobserve(),t(this,Le).unobserve(),t(this,Gt).unobserve(),t(this,Zt).unobserve(),ft.windowResizer.unsubscribe(t(this,Ue)),ft.windowResizer.unsubscribe(t(this,F)),cs.elementResizer.unsubscribe(t(this,F)),o(this,c,Fs).call(this),t(this,We).disconnect()}}S=new WeakMap,be=new WeakMap,T=new WeakMap,$t=new WeakMap,mt=new WeakMap,gt=new WeakMap,Ct=new WeakMap,j=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,yt=new WeakMap,_t=new WeakMap,me=new WeakMap,J=new WeakMap,V=new WeakMap,ge=new WeakMap,Ce=new WeakMap,ye=new WeakMap,ve=new WeakMap,qe=new WeakMap,Pe=new WeakMap,Q=new WeakMap,Ee=new WeakMap,Nt=new WeakMap,X=new WeakMap,vt=new WeakMap,Pt=new WeakMap,we=new WeakMap,Ut=new WeakMap,xe=new WeakMap,Le=new WeakMap,Gt=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,f=new WeakMap,Be=new WeakMap,N=new WeakMap,a=new WeakMap,ds=new WeakMap,Ss=new WeakMap,L=new WeakMap,P=new WeakMap,U=new WeakMap,rt=new WeakMap,jt=new WeakMap,nt=new WeakMap,M=new WeakMap,k=new WeakMap,$e=new WeakMap,Et=new WeakMap,wt=new WeakMap,xt=new WeakMap,G=new WeakMap,He=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,ze=new WeakMap,ht=new WeakMap,I=new WeakMap,We=new WeakMap,Lt=new WeakMap,Ve=new WeakMap,_e=new WeakMap,c=new WeakSet,Ms=function(){const e=t(this,T).current,s=t(this,$t).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,rt).axis=t(this,_t).current?"max":e,t(this,jt).dimension=e==="x"?"width":"height",t(this,nt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,I)&&t(this,F).call(this)},os=function(){o(this,c,Oe).call(this),t(this,Be).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,N).push(new xi(e,s,this))}),r(this,a,[...t(this,N)]),t(this,f).style.transform="",st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,F).call(this),o(this,c,de).call(this)},Oe=function(){t(this,N).forEach(e=>{e.destroy()}),r(this,N,[]),r(this,a,[]),t(this,k).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},ws=function(){t(this,xt)||(r(this,xt,!0),t(this,S).unsubscribe(t(this,ps)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,He)),clearInterval(t(this,Jt)),t(this,Qt).unlistenAnimationFrame(),t(this,rt).disconnect(),t(this,jt).disconnect(),t(this,nt).disconnect(),t(this,M).disconnect(),t(this,wt)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,F).call(this)))},xs=function(){t(this,xt)&&(r(this,xt,!1),t(this,S).subscribe(t(this,ps),-1e4),t(this,S).notify(),t(this,rt).connect(),t(this,jt).connect(),t(this,nt).connect(),t(this,Q).current&&t(this,M).connect())},Fs=function(){t(this,G)||(r(this,G,!0),clearTimeout(t(this,_e)),ft.windowResizer.unsubscribe(t(this,F)),o(this,c,ws).call(this),t(this,f).style.transform="",t(this,f).style.height="",t(this,f).style.width="",this.classList.remove("has-overflow","start","end"),this.style.removeProperty("--counter"),t(this,N).length?o(this,c,Oe).call(this):(t(this,k).reset(),t(this,S).reset()),ce.scrollEntries.unregister(this))},Os=function(){t(this,G)&&(r(this,G,!1),ce.scrollEntries.register(this),this.tryResplit(),o(this,c,xs).call(this),this.scrollToSection(t(this,Pe).current,{behaviour:"instant"}),ft.windowResizer.subscribe(t(this,F),Te.RESIZE_ORDER.SCROLL))},F=new WeakMap,ps=new WeakMap,Xs=function(e){let s=t(this,k).current;return t(this,V).current?s=js.loopNumber(e,t(this,a).length):s=$s.clamp(e,0,this.limit),s},Ne=new WeakMap,fs=new WeakMap,Ts=function(e=1){t(this,Nt).current&&(t(this,M).direction=e),t(this,Q).current&&t(this,M).pauseAndContinue(t(this,Ee).current,this.sectionalCSSProperty.current)},Ds=function(e="current"){if(t(this,V).current&&t(this,a).length){const s=t(this,S)[e]%Math.round(t(this,P)+t(this,L)+t(this,U));return s<0?t(this,P)+s+t(this,L)+t(this,U):s}else return t(this,S)[e]},de=function(){if(t(this,a).length){const e=t(this,k).current+t(this,vt).current;if(e===t(this,vt).current?r(this,ht,"start"):e===this.limit?r(this,ht,"end"):r(this,ht,null),st.dispatchEvent(this,"scrollLine",{detail:{line:t(this,ht)}}),t(this,X).current){this.classList.remove("end","start"),t(this,ht)&&this.classList.add(t(this,ht));const s=t(this,J).current+t(this,Pt).current;r(this,Lt,[]),t(this,a).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,Pt).current,C=e+s,v=this.sections.length-C;u>=e&&u<C||u<=g?(n.setMark("current"),t(this,Lt).push(n)):u>=C&&u<C+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,bs).call(this)}}},Ys=function(){if(t(this,X).current){const e=Math.floor(t(this,Lt).length/2);t(this,Lt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,Lt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)}),t(this,a).forEach((s,n)=>{s.setOffsetIndex(n-(t(this,k).current+t(this,J).current))})}},bs=new WeakMap,ls=function(e=!1){let s=this.targetScrollValue,n=1/0,u=0;const g=t(this,S).direction;for(let C=0;C<t(this,a).length;C++){const v=t(this,a)[C];let ue=t(this,ze)?v.size*g*-1*.4:0,Me=v.position;this.overscroll&&Me===0&&e&&(Me=t(this,Et));let hs=Math.abs(Me+ue-s);hs<=n&&(n=hs,u=C)}return u},Ue=new WeakMap;_.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",zs);var ms;class ns extends HTMLElement{constructor(){super(...arguments);i(this,ms,null)}get scrollElement(){return t(this,ms)}connectedCallback(){const e=wi.findParentElement(this,zs);e instanceof zs?r(this,ms,e):console.error(this,"e-scroll not found")}}ms=new WeakMap;var Xt,D,zt,Vt,Ge,Ze,Yt,Ke,gs,Cs;class ti extends ns{constructor(){super();i(this,Xt,null);i(this,D,null);i(this,zt,!1);i(this,Vt,0);i(this,Ge,0);i(this,Ze,0);i(this,Yt,()=>{r(this,zt,this.offsetWidth>this.offsetHeight);const e=t(this,zt)?this.offsetWidth:this.offsetHeight;r(this,Vt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,Vt,Math.max(t(this,Vt),30)),t(this,zt)?(t(this,D).style.width=t(this,Vt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,Vt)+"px"),r(this,Ge,e-t(this,Vt)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ke).call(this)});i(this,Ke,()=>{r(this,Ze,this.scrollElement.currentProgress*t(this,Ge)),t(this,zt)?t(this,D).style.transform=`translate3d(${t(this,Ze)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,Ze)}px, 0px)`});i(this,gs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Cs,e=>{document.documentElement.classList.add("grabbing"),Ei.setupDrag(u=>{const g=t(this,zt)?u.x:u.y,C=this.scrollElement.distance/t(this,Ge),v=(g-n)*C;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,zt)?e.x:e.y});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Js.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})],r(this,Xt,document.createElement("slot")),t(this,Xt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Xt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Xt).assignedElements()[0]||t(this,Xt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,Cs)),ft.windowResizer.subscribe(t(this,Yt),Te.RESIZE_ORDER.SCROLL),cs.elementResizer.subscribe(this,t(this,Yt)),cs.elementResizer.subscribe(this.scrollElement,t(this,Yt)),this.scrollElement.onScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.subscribe(t(this,gs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,Cs)),ft.windowResizer.unsubscribe(t(this,Yt)),cs.elementResizer.unsubscribe(t(this,Yt)),this.scrollElement.offScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,gs))}}Xt=new WeakMap,D=new WeakMap,zt=new WeakMap,Vt=new WeakMap,Ge=new WeakMap,Ze=new WeakMap,Yt=new WeakMap,Ke=new WeakMap,gs=new WeakMap,Cs=new WeakMap;_.isBrowser&&!customElements.get("e-scrollbar")&&customElements.define("e-scrollbar",ti);var je,Je,Qe;class Hs extends ns{constructor(){super();i(this,je,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Je,new l.CSSProperty(this,"--tween-easing",!1));i(this,Qe,new l.CSSProperty(this,"--tween-duration",0));_.isBrowser&&this.addEventListener("click",()=>{const e=t(this,je).current,s=t(this,Je).current,n=t(this,Qe).current;this.handleClick({behaviour:e,tween:s||n?{easing:s,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,je).observe(),t(this,Je).observe(),t(this,Qe).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,je).close(),t(this,Je).close(),t(this,Qe).close()}}je=new WeakMap,Je=new WeakMap,Qe=new WeakMap;var Xe;class ei extends Hs{constructor(){super(...arguments);i(this,Xe,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Xe).current,e)}connectedCallback(){super.connectedCallback(),t(this,Xe).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Xe).close()}}Xe=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",ei);var kt,Ye;class si extends Hs{constructor(){super(...arguments);i(this,kt,new l.CSSProperty(this,"--step",1));i(this,Ye,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,kt).current>0&&this.scrollElement.scrollLine==="end"||t(this,kt).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,kt).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,kt).subscribe(()=>{t(this,Ye).call(this)}),t(this,kt).observe(),this.scrollElement.addEventListener("scrollLine",t(this,Ye)),t(this,Ye).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,kt).close(),this.removeAttribute("disabled")}}kt=new WeakMap,Ye=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",si);var ot,te,ts,ys,vs,es;class zi{constructor(h,e,s){i(this,ot,null);i(this,te,null);i(this,ts,null);i(this,ys,null);i(this,vs,()=>{t(this,te).scrollToSection(t(this,ts),{behaviour:t(this,ys)})});i(this,es,()=>{t(this,ot).classList.toggle("current",t(this,te).counter.current===t(this,ts))});_.isBrowser&&(r(this,ot,document.createElement("button")),t(this,ot).setAttribute("aria-label",`Go to section ${e+1}`),r(this,te,h),r(this,ys,s),r(this,ts,e),t(this,ot).addEventListener("click",t(this,vs)),t(this,te).counter.subscribe(t(this,es)),t(this,es).call(this))}get element(){return t(this,ot)}destroy(){t(this,ot).removeEventListener("click",t(this,vs)),t(this,te).counter.unsubscribe(t(this,es)),t(this,ot).remove()}}ot=new WeakMap,te=new WeakMap,ts=new WeakMap,ys=new WeakMap,vs=new WeakMap,es=new WeakMap;var ke,ee,lt;class ii extends ns{constructor(){super(...arguments);i(this,ke,null);i(this,ee,[]);i(this,lt,Ls.debounce(()=>{t(this,ee).forEach(s=>s.destroy()),r(this,ee,[]);let e=0;this.scrollElement.loopCSSProperty.current?e=this.scrollElement.visibleSections.length:e=this.scrollElement.visibleSections.length-Math.max(this.scrollElement.sectionsInViewCSSProperty.current-1,0);for(let s=0;s<e;s++){const n=new zi(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,ke).appendChild(n.element),t(this,ee).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",r(this,ke,document.createElement("div")),this.appendChild(t(this,ke)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,lt)),this.scrollElement.loopCSSProperty.subscribe(t(this,lt)),t(this,lt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,lt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,lt)),t(this,ee).forEach(e=>e.destroy()),r(this,ee,[]),t(this,ke).remove()}}ke=new WeakMap,ee=new WeakMap,lt=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",ii);var se,ie,re,ne,It,Rt,At,Mt,R,q,B,$,Ft,z,ct,ut,Y,Ot,Ie,at,dt,St,w,H,W,tt,et,Z,ss,m,Tt,he,is,x,pt,O,A,K,Re,Dt,y,oe,b,ni,hi,oi,li,ci,ui,rs,Ae,qs,Se,ai,di,Bs;class ri extends ns{constructor(){super(...arguments);i(this,b);i(this,se);i(this,ie);i(this,re);i(this,ne);i(this,It);i(this,Rt);i(this,At);i(this,Mt);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Ft);i(this,z);i(this,ct);i(this,ut);i(this,Y);i(this,Ot);i(this,Ie);i(this,at);i(this,dt);i(this,St);i(this,w);i(this,H);i(this,W);i(this,tt);i(this,et);i(this,Z);i(this,ss);i(this,m);i(this,Tt);i(this,he);i(this,is);i(this,x);i(this,pt);i(this,O);i(this,A);i(this,K);i(this,Re);i(this,Dt);i(this,y);i(this,oe);i(this,rs);i(this,Ae);r(this,se,new l.CSSProperty(this,"--damping",20)),r(this,ie,new l.CSSProperty(this,"--mass",0)),r(this,re,new l.CSSProperty(this,"--stiffness",0)),r(this,ne,new l.CSSProperty(this,"--target","")),r(this,It,new l.CSSProperty(this,"--disabled",!1)),r(this,Rt,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,At,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,Mt,new l.CSSProperty(this,"--capture-once",!1)),r(this,R,new l.CSSProperty(this,"--captured","")),r(this,q,new l.CSSProperty(this,"--released","")),r(this,B,new l.CSSProperty(this,"--captured-from-start","")),r(this,$,new l.CSSProperty(this,"--captured-from-finish","")),r(this,Ft,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,ct,new l.CSSProperty(this,"--passed-var","")),r(this,ut,new l.CSSProperty(this,"--progress-var","")),r(this,Y,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Ot,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ie,new l.CSSProperty(this,"--animation-var-type","target")),r(this,at,new l.CSSProperty(this,"--distance-var","")),r(this,dt,new l.CSSProperty(this,"--start-var","")),r(this,St,new l.CSSProperty(this,"--finish-var","")),r(this,w,new ae.Store(!1)),r(this,H,new ae.Store(!1)),r(this,W,new ae.Store(!1)),r(this,tt,new ae.Store(!1)),r(this,et,new ae.Store(!1)),r(this,Z,new ae.Store(!1)),r(this,ss,[]),r(this,m,this),r(this,Tt,0),r(this,he,0),r(this,is,0),r(this,x,new Qs.Damped(0,{order:Te.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),r(this,Dt,!1),r(this,y,!0),r(this,oe,!1),this.resize=()=>{r(this,he,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Tt,this.scrollElement.vertical?it.getCumulativeOffsetTop(this,this.scrollElement):it.getCumulativeOffsetLeft(this,this.scrollElement));const e=it.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,Tt,t(this,Tt)-e),r(this,O,this.getStart()),r(this,A,this.getDistance()),r(this,O,t(this,O)+t(this,At).current),r(this,A,t(this,A)+t(this,Rt).current),r(this,K,t(this,O)+t(this,A)),this.scrollElement.currentScrollValue>t(this,K)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,dt).current,t(this,O)),this.setVar(t(this,St).current,t(this,K)),this.setVar(t(this,at).current,t(this,A)),t(this,x).max=t(this,A),r(this,Re,!0),t(this,Ae).call(this)},this.findAnotherScrollEntries=Ls.debounce(()=>{const e=ce.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,ss,e.slice(s+1)),this.tick()},0),r(this,rs,()=>{t(this,y)||this.resize()}),r(this,Ae,()=>{!t(this,y)&&t(this,Re)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,Rt)}get startOffsetCSSProperty(){return t(this,At)}get captureOnceCSSProperty(){return t(this,Mt)}get capturedCSSProperty(){return t(this,R)}get releasedCSSProperty(){return t(this,q)}get capturedFromStartCSSProperty(){return t(this,B)}get capturedFromFinishCSSProperty(){return t(this,$)}get releasedFromStartCSSProperty(){return t(this,Ft)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,ct)}get progressVarCSSProperty(){return t(this,ut)}get progressArcVarCSSProperty(){return t(this,Y)}get progressArcMultCSSProperty(){return t(this,Ot)}get animationVarTypeCSSProperty(){return t(this,Ie)}get distanceVarCSSProperty(){return t(this,at)}get startVarCSSProperty(){return t(this,dt)}get finishVarCSSProperty(){return t(this,St)}get disabledCSSProperty(){return t(this,It)}get dampingCSSProperty(){return t(this,se)}get massCSSProperty(){return t(this,ie)}get stiffnessCSSProperty(){return t(this,re)}get targetCSSProperty(){return t(this,ne)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,W)}get isReleasedFromStart(){return t(this,tt)}get isCapturedFromFinish(){return t(this,et)}get isReleasedFromFinish(){return t(this,Z)}get directionPosition(){return t(this,Tt)}get directionSize(){return t(this,he)}get passed(){return t(this,x)}get progress(){return t(this,pt)}get progressArc(){return Math.abs(Math.cos(t(this,pt)*Math.PI))*t(this,Ot).current}get start(){return t(this,O)}get finish(){return t(this,K)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,Dt)}get isDisabled(){return t(this,y)}tick(){let e=this.scrollElement.currentScrollValue;t(this,ss).forEach(u=>{e+=u.value});const s=e-t(this,O);t(this,oe)||r(this,oe,t(this,x).previous?Math.abs(t(this,x).previous-s)>1e3:!1),t(this,x).set(s);const n=Math.round(e);t(this,w).current&&(n>=t(this,O)?t(this,W).current||o(this,b,oi).call(this):t(this,W).current&&!t(this,tt).current&&o(this,b,ci).call(this),n<t(this,K)?t(this,Z).current&&!t(this,et).current&&o(this,b,li).call(this):t(this,W).current&&!t(this,Z).current&&o(this,b,ui).call(this)),n>=t(this,O)&&n<t(this,K)?t(this,w).current||o(this,b,ni).call(this):t(this,w).current&&(t(this,x).set($s.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,hi).call(this)),t(this,Dt)&&t(this,Mt).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,y,!0))}disable(){this.style.cssText="",r(this,Tt,0),r(this,he,0),t(this,x).reset(),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,W).current=!1,t(this,tt).current=!1,t(this,et).current=!1,t(this,Z).current=!1,r(this,Dt,!1),r(this,y,!0),o(this,b,Bs).call(this)}enable(){r(this,y,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,W).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,et).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,tt).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,Z).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,se).observe(),t(this,ie).observe(),t(this,re).observe(),t(this,ne).observe(),t(this,It).observe(),t(this,Rt).observe(),t(this,At).observe(),t(this,Mt).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Ft).observe(),t(this,z).observe(),t(this,ct).observe(),t(this,ut).observe(),t(this,Y).observe(),t(this,Ot).observe(),t(this,Ie).observe(),t(this,at).observe(),t(this,dt).observe(),t(this,St).observe();let e=!1;this.findAnotherScrollEntries(),t(this,It).current||this.enable(),t(this,se).subscribe(s=>{t(this,x).damping=s.current}),t(this,ie).subscribe(s=>{t(this,x).mass=s.current}),t(this,re).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,ne).subscribe(s=>{s.previous&&o(this,b,Bs).call(this),s.current?s.current==="parent"?r(this,m,this.parentElement||this):r(this,m,document.querySelector(s.current)||this):r(this,m,this)}),t(this,It).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,At).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,Rt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,Ft).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,Mt).subscribe(s=>{t(this,y)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,ct).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,ut).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,pt)))}),t(this,Y).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Ot).subscribe(s=>{t(this,y)||o(this,b,qs).call(this)}),t(this,dt).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,O)))}),t(this,St).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,K)))}),t(this,at).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,oe)){r(this,oe,!1);return}o(this,b,qs).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),ft.windowResizer.subscribe(t(this,rs),Te.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Ae)),e=!0}disconnectedCallback(){ft.windowResizer.unsubscribe(t(this,rs)),this.scrollElement.offScroll(t(this,Ae)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,se).close(),t(this,ie).close(),t(this,re).close(),t(this,ne).close(),t(this,It).close(),t(this,Rt).close(),t(this,At).close(),t(this,Mt).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Ft).close(),t(this,z).close(),t(this,ct).close(),t(this,ut).close(),t(this,Y).close(),t(this,Ot).close(),t(this,at).close(),t(this,dt).close(),t(this,St).close(),t(this,w).close(),t(this,H).close(),t(this,W).close(),t(this,tt).close(),t(this,et).close(),t(this,Z).close(),this.disable(),t(this,x).close()}removeVar(e){e&&t(this,m).style.removeProperty(`--${e}`)}setVar(e,s){if(e){const n=typeof s=="number"?s.toFixed(6):s;t(this,m).style.setProperty(`--${e}`,n)}}getDistance(){return t(this,he)+t(this,is)}getStart(){return t(this,Tt)-t(this,is)}}se=new WeakMap,ie=new WeakMap,re=new WeakMap,ne=new WeakMap,It=new WeakMap,Rt=new WeakMap,At=new WeakMap,Mt=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Ft=new WeakMap,z=new WeakMap,ct=new WeakMap,ut=new WeakMap,Y=new WeakMap,Ot=new WeakMap,Ie=new WeakMap,at=new WeakMap,dt=new WeakMap,St=new WeakMap,w=new WeakMap,H=new WeakMap,W=new WeakMap,tt=new WeakMap,et=new WeakMap,Z=new WeakMap,ss=new WeakMap,m=new WeakMap,Tt=new WeakMap,he=new WeakMap,is=new WeakMap,x=new WeakMap,pt=new WeakMap,O=new WeakMap,A=new WeakMap,K=new WeakMap,Re=new WeakMap,Dt=new WeakMap,y=new WeakMap,oe=new WeakMap,b=new WeakSet,ni=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,Dt,!0),t(this,q).current&&t(this,m).classList.remove(t(this,q).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,R).current&&t(this,m).classList.add(t(this,R).current)},hi=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,Dt,!0),t(this,R).current&&t(this,m).classList.remove(t(this,R).current),t(this,B).current&&t(this,m).classList.remove(t(this,B).current),t(this,$).current&&t(this,m).classList.remove(t(this,$).current),t(this,q).current&&t(this,m).classList.add(t(this,q).current)},oi=function(){t(this,w).current=!0,t(this,W).current=!0,t(this,tt).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},li=function(){t(this,w).current=!0,t(this,et).current=!0,t(this,Z).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ci=function(){t(this,H).current=!0,t(this,tt).current=!0,t(this,W).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},ui=function(){t(this,H).current=!0,t(this,Z).current=!0,t(this,et).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},rs=new WeakMap,Ae=new WeakMap,qs=function(){const e=t(this,x)[t(this,Ie).current];this.setVar(t(this,ct).current,e),r(this,pt,e/t(this,A)||0),this.setVar(t(this,ut).current,t(this,pt)),t(this,Y).current&&this.setVar(t(this,Y).current,this.progressArc)},Se=function(e){if(t(this,y)){e.previous&&t(this,m).classList.remove(e.previous),e.current&&t(this,m).classList.remove(e.current);return}e.current&&t(this,w).current?(e.previous&&t(this,m).classList.remove(e.previous),t(this,m).classList.add(e.current)):!e.current&&e.previous&&t(this,m).classList.remove(e.previous)},ai=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},di=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Bs=function(){o(this,b,ai).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Ft).current,t(this,z).current),o(this,b,di).call(this,t(this,ct).current,t(this,ut).current,t(this,Y).current,t(this,at).current,t(this,dt).current,t(this,St).current)};_.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ri);class Si extends Hs{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}_.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",Si);var Ps;const Ws=class Ws extends ns{constructor(){super(...arguments);i(this,Ps,()=>{const e=this.scrollElement.counter.current+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(Ws.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,Ps))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,Ps))}};Ps=new WeakMap;let Vs=Ws;_.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",Vs);var le;const _s=class _s extends ns{constructor(){super(...arguments);i(this,le,()=>{const e=this.scrollElement.limit+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(_s.prototype,this,"connectedCallback").call(this),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,le)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,le)),t(this,le).call(this)})}disconnectedCallback(){this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,le)),this.scrollElement.removeEventListener("scrollSectionsChange",t(this,le))}};le=new WeakMap;let ks=_s;_.isBrowser&&!customElements.get("e-scroll-total")&&customElements.define("e-scroll-total",ks);exports.ScrollBulletButtonsElement=ii;exports.ScrollCounterElement=Vs;exports.ScrollElement=zs;exports.ScrollSectionButtonElement=Si;exports.ScrollSegmentElement=ri;exports.ScrollSetButtonElement=ei;exports.ScrollStepButtonElement=si;exports.ScrollTotalElement=ks;exports.ScrollbarElement=ti;
|
|
1
|
+
"use strict";var pi=Object.defineProperty;var Ns=Object.getOwnPropertySymbols,fi=Object.getPrototypeOf,bi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,gi=Reflect.get;var Gs=d=>{throw TypeError(d)};var Us=(d,h,e)=>h in d?pi(d,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):d[h]=e,Zs=(d,h)=>{for(var e in h||(h={}))bi.call(h,e)&&Us(d,e,h[e]);if(Ns)for(var e of Ns(h))mi.call(h,e)&&Us(d,e,h[e]);return d};var Is=(d,h,e)=>h.has(d)||Gs("Cannot "+e);var t=(d,h,e)=>(Is(d,h,"read from private field"),e?e.call(d):h.get(d)),i=(d,h,e)=>h.has(d)?Gs("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(d):h.set(d,e),r=(d,h,e,s)=>(Is(d,h,"write to private field"),s?s.call(d,e):h.set(d,e),e),o=(d,h,e)=>(Is(d,h,"access private method"),e);var Rs=(d,h,e)=>gi(fi(d),e,h);var As=(d,h,e)=>new Promise((s,n)=>{var u=v=>{try{C(e.next(v))}catch(ue){n(ue)}},g=v=>{try{C(e.throw(v))}catch(ue){n(ue)}},C=v=>v.done?s(v.value):Promise.resolve(v.value).then(u,g);C((e=e.apply(d,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../Store-Cd1GlEmZ.cjs"),_=require("../index-DekP7OZe.cjs"),Ci=require("../easings-GegIwET5.cjs"),yi=require("../element-yhcBhsho.cjs"),st=require("../events-KVanG9sR.cjs"),Ls=require("../function-MthRj-GJ.cjs"),it=require("../layout-Ctc2p3uz.cjs"),$s=require("../math-GDWEqu7y.cjs"),js=require("../number-ChAm68cm.cjs"),Js=require("../stylesheet-HWF2a3nr.cjs");require("../ticker/index.cjs");const Te=require("../order/index.cjs"),Qs=require("../Damped-z9Uaw2MJ.cjs"),vi=require("../Tweened-mvHucL4Y.cjs"),Es=require("../DragControls-CfE2oPAi.cjs"),ft=require("../window-resizer/index.cjs"),ce=require("../scroll-entries/index.cjs"),Ks=require("../css-unit-parser/index.cjs"),l=require("../css-property/index.cjs"),Pi=require("../Viewport-DB0qAZPJ.cjs");require("construct-style-sheets-polyfill");const cs=require("../element-resizer/index.cjs"),Ei=require("../gestures-C7gbKx11.cjs"),wi=require("../dom-JBOkFLTh.cjs");var p,De,E,us,as,pe,bt,Bt,fe,$t,Fe;class xi{constructor(h,e,s){i(this,$t);i(this,p);i(this,De);i(this,E);i(this,us,0);i(this,as,0);i(this,pe,0);i(this,bt,0);i(this,Bt,null);i(this,fe,0);r(this,p,h),r(this,De,e),r(this,E,s),ce.scrollEntries.register(t(this,p)),this.setIndex(t(this,De))}get element(){return t(this,p)}get index(){return t(this,De)}get size(){return t(this,pe)}get width(){return t(this,us)}get height(){return t(this,as)}get position(){return t(this,bt)}get transformPosition(){return t(this,fe)}destroy(){ce.scrollEntries.unregister(t(this,p)),this.unsetTransform()}unsetTransform(){t(this,p).style.transform="",this.setMark(null),this.setIndex(null),this.setCurrentIndex(null),this.setCurrentIndexArc(null),this.setCurrentIndexArcAbs(null),this.setOffsetIndex(null),this.setMiddle(!1),this.setSize()}setSize(h){h?(t(this,p).style.setProperty("--size",h+"px"),t(this,E).axisCSSProperty.current==="x"?(t(this,p).style.width=h+"px",t(this,p).style.height=""):(t(this,p).style.height=h+"px",t(this,p).style.width="")):(t(this,p).style.width="",t(this,p).style.height="",t(this,p).style.removeProperty("--size"))}resize(){r(this,us,t(this,p).offsetWidth),r(this,as,t(this,p).offsetHeight),r(this,pe,t(this,E).vertical?t(this,p).offsetHeight:t(this,p).offsetWidth),r(this,bt,t(this,E).vertical?it.getCumulativeOffsetTop(t(this,p)):it.getCumulativeOffsetLeft(t(this,p))),r(this,bt,t(this,bt)-t(this,E).contentPosition)}transform(){const h=t(this,E).shiftSectionPositionCSSProperty.current;let e=h;const s=t(this,E).viewportSize*t(this,E).sectionDistanceScaleCSSProperty.current;t(this,E).loopCSSProperty.current&&t(this,bt)+t(this,pe)<=t(this,E).currentScrollValue-h/2&&(e=(t(this,E).distance-h)*-1-t(this,E).gap),ce.scrollEntries.update(t(this,p),t(this,E).axisCSSProperty.current,e);const n=t(this,E).currentScrollValue+e,u=t(this,bt)-t(this,E).viewportSize-s,g=t(this,bt)+t(this,pe)+s,C=js.preciseNumber($s.clamp(n,u,g),3);r(this,fe,C*-1),t(this,E).vertical?t(this,p).style.transform=`translate3d(0px, ${t(this,fe)}px, 0px)`:t(this,p).style.transform=`translate3d(${t(this,fe)}px, 0px, 0px)`}setMark(h){t(this,Bt)!==h&&(t(this,Bt)&&t(this,p).classList.remove(t(this,Bt)),h&&t(this,p).classList.add(h),r(this,Bt,h),st.dispatchEvent(t(this,p),"scrollSectionMarkChange",{composed:!0,detail:{mark:t(this,Bt)},custom:!0}))}setMiddle(h){t(this,p).classList.toggle("middle",h)}setIndex(h){o(this,$t,Fe).call(this,"index",h)}setCurrentIndex(h){o(this,$t,Fe).call(this,"current-index",h)}setCurrentIndexArc(h){o(this,$t,Fe).call(this,"current-index-arc",h)}setOffsetIndex(h){o(this,$t,Fe).call(this,"offset-index",h)}setCurrentIndexArcAbs(h){o(this,$t,Fe).call(this,"current-index-arc-abs",h)}}p=new WeakMap,De=new WeakMap,E=new WeakMap,us=new WeakMap,as=new WeakMap,pe=new WeakMap,bt=new WeakMap,Bt=new WeakMap,fe=new WeakMap,$t=new WeakSet,Fe=function(h,e){e!==null?(t(this,p).style.setProperty(`--${h}`,e.toString()),t(this,p).setAttribute(`data-${h}`,e.toString())):(t(this,p).style.removeProperty(`--${h}`),t(this,p).removeAttribute(`data-${h}`))};const Li=Js.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content-wrapper":{width:"var(--content-wrapper-width, 100%)",height:"var(--content-wrapper-height, 100%)",overflow:"var(--overflow, initial)",borderRadius:"var(--border-radius, unset)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},":host(.hibernated) .content-wrapper":{display:"contents"},":host(.hibernated) .content":{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var S,be,T,Ht,mt,gt,Ct,j,Wt,_t,yt,Nt,me,J,V,ge,Ce,ye,ve,qe,Pe,Q,Ee,Ut,X,vt,Pt,we,Gt,xe,Le,Zt,Kt,jt,f,Be,N,a,ds,Ss,L,P,U,rt,Jt,nt,M,k,$e,Et,wt,xt,G,He,Lt,Qt,ze,ht,I,We,zt,Ve,_e,c,Ms,os,Oe,ws,xs,Fs,Os,F,ps,Xs,Ne,fs,Ts,Ds,de,Ys,bs,ls,Ue;class zs extends HTMLElement{constructor(){super();i(this,c);i(this,S,null);i(this,be,new l.CSSProperty(this,"--controls",!0));i(this,T,new l.CSSProperty(this,"--axis","y"));i(this,Ht,new l.CSSProperty(this,"--reverse",!1));i(this,mt,new l.CSSProperty(this,"--direction",0));i(this,gt,new l.CSSProperty(this,"--pages",0,{validate:e=>Math.max(0,e-1)}));i(this,Ct,new l.CSSProperty(this,"--split",!1));i(this,j,new l.CSSProperty(this,"--sectional",!1));i(this,Wt,new l.CSSProperty(this,"--tween-easing",!1));i(this,_t,new l.CSSProperty(this,"--tween-duration",!1));i(this,yt,new l.CSSProperty(this,"--auto-size",!1));i(this,Nt,new l.CSSProperty(this,"--wheel-max-delta",!1));i(this,me,new l.CSSProperty(this,"--drag-inertion",1));i(this,J,new l.CSSProperty(this,"--sections-in-view",1));i(this,V,new l.CSSProperty(this,"--loop",!1));i(this,ge,new l.CSSProperty(this,"--damping",20));i(this,Ce,new l.CSSProperty(this,"--mass",0));i(this,ye,new l.CSSProperty(this,"--stiffness",0));i(this,ve,new l.CSSProperty(this,"--mouse-drag",!1));i(this,qe,new l.CSSProperty(this,"--section-distance-scale",.5));i(this,Pe,new l.CSSProperty(this,"--start-section",0));i(this,Q,new l.CSSProperty(this,"--autoplay",0));i(this,Ee,new l.CSSProperty(this,"--autoplay-pause-duration",0));i(this,Ut,new l.CSSProperty(this,"--autoplay-user-direction",!1));i(this,X,new l.CSSProperty(this,"--classes",!1));i(this,vt,new l.CSSProperty(this,"--current-index-start-offset",0));i(this,Pt,new l.CSSProperty(this,"--current-index-end-offset",0));i(this,we,new l.CSSProperty(this,"--shift-section-position",0,{rawValueCheck:!1}));i(this,Gt,new l.CSSProperty(this,"--focus-delay",0));i(this,xe,new l.CSSProperty(this,"--focus-duration",3e3));i(this,Le,new l.CSSProperty(this,"--shift-limit",0));i(this,Zt,new l.CSSProperty(this,"--disabled",!1));i(this,Kt,new l.CSSProperty(this,"--hibernate",!1));i(this,jt,null);i(this,f,null);i(this,Be,null);i(this,N,[]);i(this,a,[]);i(this,ds,0);i(this,Ss,0);i(this,L,0);i(this,P,0);i(this,U,0);i(this,rt,null);i(this,Jt,null);i(this,nt,null);i(this,M,null);i(this,k,new ae.Store(0));i(this,$e,0);i(this,Et,0);i(this,wt,!1);i(this,xt,!0);i(this,G,!0);i(this,He);i(this,Lt);i(this,Qt,new vi.Tweened);i(this,ze,!1);i(this,ht,null);i(this,I,!1);i(this,We,null);i(this,zt,[]);i(this,Ve,!1);i(this,_e);i(this,F,e=>{if(e&&t(this,Ve)){r(this,Ve,!1);return}this.resize()});i(this,ps,()=>{if(!t(this,wt)||t(this,G)||t(this,xt))return;const e=this.currentScrollValue;if(r(this,$e,Math.max(0,e-t(this,P))),t(this,a).length){for(let s=0;s<t(this,N).length;s++)t(this,N)[s].transform();t(this,j).current||(t(this,k).current=o(this,c,ls).call(this))}else this.vertical?t(this,f).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,f).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;o(this,c,Ys).call(this),ce.scrollEntries.update(this,t(this,T).current,e)});i(this,Ne,(e,s)=>{t(this,be).current&&(o(this,c,Ts).call(this,Math.sign(s)||1),t(this,fs).call(this,e,s))});i(this,fs,(e,s)=>{if(!t(this,Lt)){if(t(this,mt).current){if(t(this,mt).current<0&&s>0)return;if(t(this,mt).current>0&&s<0)return}if(!t(this,Q).current&&t(this,Gt).current&&(clearInterval(t(this,He)),r(this,He,setTimeout(()=>{const n=t(this,a)[o(this,c,ls).call(this)];n&&this.scrollToSection(n.index,{tween:{duration:t(this,xe).current,easing:Ci.easeInOutExpo}})},t(this,Gt).current))),!(e.includes("drag")&&!Pi.device.isTouch&&!t(this,ve).current)){if(t(this,j).current&&e!=="drag"){const n=Math.sign(s);if(t(this,a).length){const u={tween:t(this,Wt).current||t(this,_t).current?{easing:t(this,Wt).current||"easeInOutCubic",duration:t(this,_t).current||500}:void 0};t(this,ze)?this.scrollToSection(o(this,c,ls).call(this,!0),u):this.shiftSections(n,u)}else t(this,S).shift(n*t(this,L))}else t(this,S).shift(s);r(this,ze,e==="drag")}}});i(this,bs,Ls.debounce(()=>{const e=t(this,zt).reduce((s,n)=>{const u=this.vertical?n.width:n.height;return u>s?u:s},0);clearTimeout(t(this,_e)),r(this,Ve,!0),this.style.setProperty("--max-section-size",""),r(this,_e,setTimeout(()=>{r(this,Ve,!0),this.style.setProperty("--max-section-size",e+"px")},10))},20));i(this,Ue,()=>{r(this,I,!0),this.hibernatedCSSProperty.current||o(this,c,Os).call(this),cs.elementResizer.subscribe(this,t(this,F)),ft.windowResizer.unsubscribe(t(this,Ue))});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Li];const s=document.createElement("div");s.className="static",s.innerHTML='<slot name="static"></slot>',e.appendChild(s),r(this,jt,document.createElement("div")),t(this,jt).className="content-wrapper",r(this,f,document.createElement("div")),t(this,f).className="content",r(this,Be,document.createElement("slot")),t(this,f).appendChild(t(this,Be)),t(this,jt).appendChild(t(this,f)),e.appendChild(t(this,jt)),r(this,We,new MutationObserver(Ls.debounce(()=>{this.tryResplit()},10)))}}get damped(){return t(this,S)}get controlsCSSProperty(){return t(this,be)}get axisCSSProperty(){return t(this,T)}get reverseCSSProperty(){return t(this,Ht)}get directionCSSProperty(){return t(this,mt)}get pagesCSSProperty(){return t(this,gt)}get splitCSSProperty(){return t(this,Ct)}get sectionalCSSProperty(){return t(this,j)}get easingCSSProperty(){return t(this,Wt)}get durationCSSProperty(){return t(this,_t)}get autoSizeCSSProperty(){return t(this,yt)}get wheelMaxDeltaCSSProperty(){return t(this,Nt)}get dragInertionCSSProperty(){return t(this,me)}get sectionsInViewCSSProperty(){return t(this,J)}get loopCSSProperty(){return t(this,V)}get dampingCSSProperty(){return t(this,ge)}get massCSSProperty(){return t(this,Ce)}get stiffnessCSSProperty(){return t(this,ye)}get mouseDragCSSProperty(){return t(this,ve)}get sectionDistanceScaleCSSProperty(){return t(this,qe)}get startSectionCSSProperty(){return t(this,Pe)}get autoplayCSSProperty(){return t(this,Q)}get autoplayPauseDurationCSSProperty(){return t(this,Ee)}get autoplayUserDirectionCSSProperty(){return t(this,Ut)}get classesCSSProperty(){return t(this,X)}get currentIndexStartOffsetCSSProperty(){return t(this,vt)}get currentIndexEndOffsetCSSProperty(){return t(this,Pt)}get shiftSectionPositionCSSProperty(){return t(this,we)}get focusDelayCSSProperty(){return t(this,Gt)}get focusDurationCSSProperty(){return t(this,xe)}get shiftLimitCSSProperty(){return t(this,Le)}get disabledCSSProperty(){return t(this,Zt)}get hibernatedCSSProperty(){return t(this,Kt)}get currentScrollValue(){return o(this,c,Ds).call(this,"current")}get targetScrollValue(){return o(this,c,Ds).call(this,"target")}get contentWrapperElement(){return t(this,jt)}get contentElement(){return t(this,f)}get sections(){return t(this,N)}get visibleSections(){return t(this,a)}get position(){return t(this,ds)}get contentPosition(){return t(this,Ss)}get viewportSize(){return t(this,L)}get scrollSize(){return t(this,P)}get gap(){return t(this,U)}get counter(){return t(this,k)}get limit(){return Math.ceil(t(this,a).length-t(this,J).current+t(this,Le).current)}get distance(){return t(this,Et)}get loopDistance(){return t(this,V).current?t(this,Et)+t(this,U):t(this,Et)}get hasOverflow(){return t(this,wt)}get overscroll(){return t(this,$e)}get scrollLine(){return t(this,ht)}get vertical(){return t(this,T).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,T).current==="y"?0:t(this,S).distance}get scrollHeight(){return t(this,T).current==="x"?0:t(this,S).distance}tryResplit(){!t(this,G)&&(t(this,V).current||t(this,Ct).current||t(this,V).current||t(this,yt).current||t(this,j).current)&&o(this,c,os).call(this)}onScroll(...e){return t(this,S).subscribe(...e)}offScroll(...e){t(this,S).unsubscribe(...e)}range(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress<u?0:this.currentProgress>g?1:(this.currentProgress-u)/(g-u)}curve(e,s,n=0){return Math.sin(this.range(e,s,n)*Math.PI)}visible(e,s,n=0){const u=e-n,g=u+s+n*2;return this.currentProgress>=u&&this.currentProgress<=g}scrollToSection(e,s){if(!t(this,a).length||t(this,G)||t(this,Lt))return;const n=t(this,k).current,u=o(this,c,Xs).call(this,e);t(this,k).current=u;const g=t(this,a)[n],C=t(this,a)[u];if(g&&C){let v=0;const ue=o(this,c,ls).call(this),Me=t(this,a)[ue];let hs=Me?this.targetScrollValue-Me.position:0;t(this,V).current?u===0&&n===t(this,a).length-1?(v=t(this,P)+t(this,L)-g.position+t(this,U),t(this,ze)||(hs=0)):u===t(this,a).length-1&&n===0?v=C.position-(t(this,P)+t(this,L)+t(this,U)):v=C.position-g.position:v=C.position-g.position,this.shiftPosition(v-hs,s)}}shiftSections(e,s){t(this,a).length&&this.scrollToSection(t(this,k).current+e,s)}setPosition(e,s){t(this,G)||(o(this,c,Ts).call(this,Math.sign(e)||1),s!=null&&s.tween?(clearTimeout(t(this,Lt)),t(this,Qt).set(t(this,S).current,{equalize:!0}),t(this,Qt).set(e,Zs({},s.tween)),r(this,Lt,setTimeout(()=>{r(this,Lt,void 0)},s.tween.duration||0))):t(this,S).set(e,{equalize:(s==null?void 0:s.behaviour)==="instant"}))}shiftPosition(e,s){this.setPosition(t(this,S).target+e,s)}resize(){if(t(this,Kt).current)return;r(this,a,t(this,N).filter(n=>yi.isElementVisible(n.element))),this.style.setProperty("--sections",t(this,a).length.toString()),t(this,S).unlistenAnimationFrame();const e=this.currentScrollValue/t(this,P)||0,s=t(this,k).current;if(r(this,ds,this.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this)),r(this,Ss,this.vertical?it.getCumulativeOffsetTop(t(this,f)):it.getCumulativeOffsetLeft(t(this,f))),r(this,L,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).rowGap)):r(this,U,Ks.cssUnitParser.parse(getComputedStyle(t(this,f)).columnGap)),t(this,yt).current&&t(this,a).length){const n=t(this,J).current,u=(t(this,L)-t(this,U)*(n-1))/n;t(this,a).forEach(g=>{g.setSize(u)})}else t(this,a).forEach(n=>{n.setSize()});if(t(this,a).forEach(n=>{n.resize()}),t(this,gt).current){r(this,P,t(this,L)*t(this,gt).current);const n=t(this,P)+t(this,L);this.vertical?(t(this,f).style.width=n+"px",t(this,f).style.height="100%"):(t(this,f).style.height=n+"px",t(this,f).style.width="100%")}else this.vertical?(t(this,f).style.width="100%",t(this,f).style.height="max-content",r(this,P,t(this,f).offsetHeight-t(this,L))):(t(this,f).style.width="max-content",t(this,f).style.height="100%",r(this,P,t(this,f).offsetWidth-t(this,L)));if(!t(this,V).current){const n=getComputedStyle(this),u=this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd);r(this,P,t(this,P)+u),t(this,S).max=t(this,P)}if(t(this,V).current&&t(this,a).length){const n=t(this,a)[t(this,a).length-1],u=n.position+n.size-t(this,L),g=t(this,P)-u;r(this,Et,n.position+n.size+g)}else r(this,Et,t(this,P));if(t(this,j).current&&t(this,a).length){const n=t(this,a)[s];t(this,S).set(n.position,{equalize:!0})}else t(this,S).set(e*t(this,P),{equalize:!0});r(this,wt,(this.vertical?t(this,f).offsetHeight:t(this,f).offsetWidth)>t(this,L)),this.classList.toggle("has-overflow",t(this,wt)),t(this,wt)?t(this,Zt).current||o(this,c,xs).call(this):o(this,c,ws).call(this),t(this,bs).call(this),st.dispatchEvent(this,"scrollResize",{custom:!0}),t(this,S).notify()}connectedCallback(){ce.scrollEntries.register(this),r(this,S,new Qs.Damped(0,{damping:.01,min:0,order:Te.TICK_ORDER.SCROLL})),this.setAttribute("tabindex","0"),r(this,rt,new Es.WheelControls({element:t(this,f)})),t(this,rt).changeEvent.subscribe(t(this,Ne)),r(this,Jt,new Es.KeyboardControls({element:this})),t(this,Jt).changeEvent.subscribe(t(this,Ne)),r(this,nt,new Es.DragControls({element:t(this,f),rootElement:this})),t(this,nt).changeEvent.subscribe(t(this,Ne)),r(this,M,new Es.AutoplayControls({culling:this})),t(this,M).changeEvent.subscribe(t(this,fs)),t(this,T).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,Ht).subscribe(()=>{o(this,c,Ms).call(this)}),t(this,Nt).subscribe(e=>{t(this,rt).axis=e.current?"max":t(this,T).current}),t(this,me).subscribe(e=>{t(this,nt).inertion=typeof e.current=="number"?e.current:1}),t(this,gt).subscribe(()=>{t(this,I)&&t(this,F).call(this)}),t(this,Ct).subscribe(({current:e})=>{t(this,I)&&(e?o(this,c,os).call(this):o(this,c,Oe).call(this))}),t(this,j).subscribe(e=>{t(this,rt).debounce=e.current,t(this,nt).swipe=e.current,t(this,M).interval=e.current,t(this,I)&&(e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,yt).subscribe(e=>{t(this,I)&&(t(this,F).call(this),e.current&&!e.previous&&!t(this,a).length?o(this,c,os).call(this):!e.current&&e.previous&&t(this,a).length&&o(this,c,Oe).call(this))}),t(this,J).subscribe(e=>{t(this,I)&&(t(this,F).call(this),o(this,c,de).call(this))}),t(this,V).subscribe(e=>{e.current?(t(this,I)&&(t(this,a).length||(t(this,Ct).current=!0)),t(this,S).max=1/0,t(this,S).min=-1/0):(r(this,$e,0),t(this,S).max=t(this,P),t(this,S).min=0),this.classList.toggle("loop",!!e.current)}),t(this,ge).subscribe(e=>{t(this,S).damping=e.current}),t(this,Ce).subscribe(e=>{t(this,S).mass=e.current}),t(this,ye).subscribe(e=>{t(this,S).stiffness=e.current}),t(this,Q).subscribe(e=>{t(this,M).speed=e.current,!t(this,xt)&&e.current&&!e.previous?t(this,M).connect():!e.current&&e.previous&&t(this,M).disconnect()}),t(this,Ut).subscribe(e=>{e.current||(t(this,M).direction=1)}),t(this,X).subscribe(e=>{t(this,I)&&o(this,c,de).call(this)}),t(this,vt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,de).call(this)}),t(this,Pt).subscribe(e=>{t(this,I)&&t(this,X).current&&o(this,c,de).call(this)}),t(this,we).subscribe(e=>{t(this,I)&&t(this,S).notify()}),t(this,S).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,k).subscribe(e=>{t(this,G)||(t(this,a).length&&o(this,c,de).call(this),this.style.setProperty("--counter",e.current+""))}),t(this,Qt).subscribe(e=>{t(this,Qt).isRunning.current&&t(this,S).set(e.current,{equalize:!0})}),t(this,Zt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("disabled"),o(this,c,ws).call(this)):!e.current&&e.previous&&(this.classList.remove("disabled"),o(this,c,xs).call(this))}),t(this,Kt).subscribe(e=>{e.current&&!e.previous?(this.classList.add("hibernated"),o(this,c,Fs).call(this)):!e.current&&e.previous&&(this.classList.remove("hibernated"),o(this,c,Os).call(this))}),t(this,be).observe(),t(this,T).observe(),t(this,Ht).observe(),t(this,mt).observe(),t(this,gt).observe(),t(this,Ct).observe(),t(this,j).observe(),t(this,Wt).observe(),t(this,_t).observe(),t(this,yt).observe(),t(this,Nt).observe(),t(this,me).observe(),t(this,J).observe(),t(this,V).observe(),t(this,ge).observe(),t(this,Ce).observe(),t(this,ye).observe(),t(this,ve).observe(),t(this,qe).observe(),t(this,Pe).observe(),t(this,Q).observe(),t(this,Q).observe(),t(this,Ee).observe(),t(this,Ut).observe(),t(this,X).observe(),t(this,vt).observe(),t(this,Pt).observe(),t(this,we).observe(),t(this,Gt).observe(),t(this,xe).observe(),t(this,Le).observe(),t(this,Zt).observe(),t(this,Kt).observe(),ft.windowResizer.subscribe(t(this,Ue),Te.RESIZE_ORDER.LAST),t(this,We).observe(this,{childList:!0})}disconnectedCallback(){this.removeAttribute("tabindex"),this.classList.remove("disabled"),this.classList.remove("hibernated"),t(this,be).unobserve(),t(this,T).unobserve(),t(this,Ht).unobserve(),t(this,mt).unobserve(),t(this,gt).unobserve(),t(this,Ct).unobserve(),t(this,j).unobserve(),t(this,Wt).unobserve(),t(this,_t).unobserve(),t(this,yt).unobserve(),t(this,Nt).unobserve(),t(this,me).unobserve(),t(this,J).unobserve(),t(this,V).unobserve(),t(this,ge).unobserve(),t(this,Ce).unobserve(),t(this,ye).unobserve(),t(this,ve).unobserve(),t(this,qe).unobserve(),t(this,Pe).unobserve(),t(this,Q).unobserve(),t(this,Ee).unobserve(),t(this,Ut).unobserve(),t(this,X).unobserve(),t(this,vt).unobserve(),t(this,Pt).unobserve(),t(this,we).unobserve(),t(this,Gt).unobserve(),t(this,xe).unobserve(),t(this,Le).unobserve(),t(this,Zt).unobserve(),t(this,Kt).unobserve(),ft.windowResizer.unsubscribe(t(this,Ue)),ft.windowResizer.unsubscribe(t(this,F)),cs.elementResizer.unsubscribe(t(this,F)),o(this,c,Fs).call(this),t(this,We).disconnect()}}S=new WeakMap,be=new WeakMap,T=new WeakMap,Ht=new WeakMap,mt=new WeakMap,gt=new WeakMap,Ct=new WeakMap,j=new WeakMap,Wt=new WeakMap,_t=new WeakMap,yt=new WeakMap,Nt=new WeakMap,me=new WeakMap,J=new WeakMap,V=new WeakMap,ge=new WeakMap,Ce=new WeakMap,ye=new WeakMap,ve=new WeakMap,qe=new WeakMap,Pe=new WeakMap,Q=new WeakMap,Ee=new WeakMap,Ut=new WeakMap,X=new WeakMap,vt=new WeakMap,Pt=new WeakMap,we=new WeakMap,Gt=new WeakMap,xe=new WeakMap,Le=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,jt=new WeakMap,f=new WeakMap,Be=new WeakMap,N=new WeakMap,a=new WeakMap,ds=new WeakMap,Ss=new WeakMap,L=new WeakMap,P=new WeakMap,U=new WeakMap,rt=new WeakMap,Jt=new WeakMap,nt=new WeakMap,M=new WeakMap,k=new WeakMap,$e=new WeakMap,Et=new WeakMap,wt=new WeakMap,xt=new WeakMap,G=new WeakMap,He=new WeakMap,Lt=new WeakMap,Qt=new WeakMap,ze=new WeakMap,ht=new WeakMap,I=new WeakMap,We=new WeakMap,zt=new WeakMap,Ve=new WeakMap,_e=new WeakMap,c=new WeakSet,Ms=function(){const e=t(this,T).current,s=t(this,Ht).current?"-reverse":"";t(this,f).style.flexDirection=e==="x"?`row${s}`:`column${s}`,t(this,rt).axis=t(this,Nt).current?"max":e,t(this,Jt).dimension=e==="x"?"width":"height",t(this,nt).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),t(this,I)&&t(this,F).call(this)},os=function(){o(this,c,Oe).call(this),t(this,Be).assignedElements().forEach((e,s)=>{e instanceof HTMLElement&&e.tagName!=="SCRIPT"&&t(this,N).push(new xi(e,s,this))}),r(this,a,[...t(this,N)]),t(this,f).style.transform="",st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0}),t(this,F).call(this),o(this,c,de).call(this)},Oe=function(){t(this,N).forEach(e=>{e.destroy()}),r(this,N,[]),r(this,a,[]),t(this,k).reset(),t(this,S).reset(),this.style.removeProperty("--max-section-size"),st.dispatchEvent(this,"scrollSectionsChange",{custom:!0,composed:!0})},ws=function(){t(this,xt)||(r(this,xt,!0),t(this,S).unsubscribe(t(this,ps)),t(this,S).unlistenAnimationFrame(),clearInterval(t(this,He)),clearInterval(t(this,Lt)),t(this,Qt).unlistenAnimationFrame(),t(this,rt).disconnect(),t(this,Jt).disconnect(),t(this,nt).disconnect(),t(this,M).disconnect(),t(this,wt)||(this.sections.forEach(e=>{e.unsetTransform()}),t(this,F).call(this)))},xs=function(){t(this,xt)&&(r(this,xt,!1),t(this,S).subscribe(t(this,ps),-1e4),t(this,S).notify(),t(this,rt).connect(),t(this,Jt).connect(),t(this,nt).connect(),t(this,Q).current&&t(this,M).connect())},Fs=function(){t(this,G)||(r(this,G,!0),clearTimeout(t(this,_e)),ft.windowResizer.unsubscribe(t(this,F)),o(this,c,ws).call(this),t(this,f).style.transform="",t(this,f).style.height="",t(this,f).style.width="",this.classList.remove("has-overflow","start","end"),this.style.removeProperty("--counter"),t(this,N).length?o(this,c,Oe).call(this):(t(this,k).reset(),t(this,S).reset()),ce.scrollEntries.unregister(this))},Os=function(){t(this,G)&&(r(this,G,!1),ce.scrollEntries.register(this),this.tryResplit(),o(this,c,xs).call(this),this.scrollToSection(t(this,Pe).current,{behaviour:"instant"}),ft.windowResizer.subscribe(t(this,F),Te.RESIZE_ORDER.SCROLL))},F=new WeakMap,ps=new WeakMap,Xs=function(e){let s=t(this,k).current;return t(this,V).current?s=js.loopNumber(e,t(this,a).length):s=$s.clamp(e,0,this.limit),s},Ne=new WeakMap,fs=new WeakMap,Ts=function(e=1){t(this,Ut).current&&(t(this,M).direction=e),t(this,Q).current&&t(this,M).pauseAndContinue(t(this,Ee).current,this.sectionalCSSProperty.current)},Ds=function(e="current"){if(t(this,V).current&&t(this,a).length){const s=Math.floor(t(this,S)[e])%Math.floor(t(this,P)+t(this,L)+t(this,U));return s<0?t(this,P)+s+t(this,L)+t(this,U):s}else return t(this,S)[e]},de=function(){if(t(this,a).length){const e=t(this,k).current+t(this,vt).current;if(e===t(this,vt).current?r(this,ht,"start"):e===this.limit?r(this,ht,"end"):r(this,ht,null),st.dispatchEvent(this,"scrollLine",{detail:{line:t(this,ht)}}),t(this,X).current){this.classList.remove("end","start"),t(this,ht)&&this.classList.add(t(this,ht));const s=t(this,J).current+t(this,Pt).current;r(this,zt,[]),t(this,a).forEach((n,u)=>{n.setCurrentIndex(null),n.setCurrentIndexArc(null),n.setCurrentIndexArcAbs(null),n.setMiddle(!1);const g=e-this.limit-1+t(this,Pt).current,C=e+s,v=this.sections.length-C;u>=e&&u<C||u<=g?(n.setMark("current"),t(this,zt).push(n)):u>=C&&u<C+v/2||u<=g+s?n.setMark("next"):n.setMark("previous")}),t(this,bs).call(this)}}},Ys=function(){if(t(this,X).current){const e=Math.floor(t(this,zt).length/2);t(this,zt).sort((s,n)=>s.element.getBoundingClientRect().left-n.element.getBoundingClientRect().left),t(this,zt).forEach((s,n)=>{const u=n-e;s.setCurrentIndex(n),s.setCurrentIndexArc(u),s.setCurrentIndexArcAbs(Math.abs(u)),s.setMiddle(n===e)}),t(this,a).forEach((s,n)=>{s.setOffsetIndex(n-(t(this,k).current+t(this,J).current))})}},bs=new WeakMap,ls=function(e=!1){let s=this.targetScrollValue,n=1/0,u=0;const g=t(this,S).direction;for(let C=0;C<t(this,a).length;C++){const v=t(this,a)[C];let ue=t(this,ze)?v.size*g*-1*.4:0,Me=v.position;this.overscroll&&Me===0&&e&&(Me=t(this,Et));let hs=Math.abs(Me+ue-s);hs<=n&&(n=hs,u=C)}return u},Ue=new WeakMap;_.isBrowser&&!customElements.get("e-scroll")&&customElements.define("e-scroll",zs);var ms;class ns extends HTMLElement{constructor(){super(...arguments);i(this,ms,null)}get scrollElement(){return t(this,ms)}connectedCallback(){const e=wi.findParentElement(this,zs);e instanceof zs?r(this,ms,e):console.error(this,"e-scroll not found")}}ms=new WeakMap;var Xt,D,Vt,kt,Ge,Ze,Yt,Ke,gs,Cs;class ti extends ns{constructor(){super();i(this,Xt,null);i(this,D,null);i(this,Vt,!1);i(this,kt,0);i(this,Ge,0);i(this,Ze,0);i(this,Yt,()=>{r(this,Vt,this.offsetWidth>this.offsetHeight);const e=t(this,Vt)?this.offsetWidth:this.offsetHeight;r(this,kt,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),r(this,kt,Math.max(t(this,kt),30)),t(this,Vt)?(t(this,D).style.width=t(this,kt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,kt)+"px"),r(this,Ge,e-t(this,kt)),this.scrollElement.scrollSize<=0?this.style.display="none":this.style.display="",t(this,Ke).call(this)});i(this,Ke,()=>{r(this,Ze,this.scrollElement.currentProgress*t(this,Ge)),t(this,Vt)?t(this,D).style.transform=`translate3d(${t(this,Ze)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,Ze)}px, 0px)`});i(this,gs,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Cs,e=>{document.documentElement.classList.add("grabbing"),Ei.setupDrag(u=>{const g=t(this,Vt)?u.x:u.y,C=this.scrollElement.distance/t(this,Ge),v=(g-n)*C;this.scrollElement.setPosition(s+v)},()=>{document.documentElement.classList.remove("grabbing")});const s=this.scrollElement.damped.target,n=t(this,Vt)?e.x:e.y});if(_.isBrowser){const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[Js.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#ebebeb"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"var(--thumb-color, black)",borderRadius:"var(--thumb-radius, 0px)",touchAction:"none"},"::slotted(*)":{touchAction:"none"}})],r(this,Xt,document.createElement("slot")),t(this,Xt).innerHTML='<div class="default-thumb"></div>',e.appendChild(t(this,Xt))}}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback(),this.setAttribute("drag-dead-zone","");const e=t(this,Xt).assignedElements()[0]||t(this,Xt).firstElementChild;r(this,D,e),t(this,D).addEventListener("pointerdown",t(this,Cs)),ft.windowResizer.subscribe(t(this,Yt),Te.RESIZE_ORDER.SCROLL),cs.elementResizer.subscribe(this,t(this,Yt)),cs.elementResizer.subscribe(this.scrollElement,t(this,Yt)),this.scrollElement.onScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.subscribe(t(this,gs))}disconnectedCallback(){this.removeAttribute("drag-dead-zone"),this.style.display="",t(this,D).removeEventListener("pointerdown",t(this,Cs)),ft.windowResizer.unsubscribe(t(this,Yt)),cs.elementResizer.unsubscribe(t(this,Yt)),this.scrollElement.offScroll(t(this,Ke)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,gs))}}Xt=new WeakMap,D=new WeakMap,Vt=new WeakMap,kt=new WeakMap,Ge=new WeakMap,Ze=new WeakMap,Yt=new WeakMap,Ke=new WeakMap,gs=new WeakMap,Cs=new WeakMap;_.isBrowser&&!customElements.get("e-scrollbar")&&customElements.define("e-scrollbar",ti);var je,Je,Qe;class Hs extends ns{constructor(){super();i(this,je,new l.CSSProperty(this,"--behaviour","smooth"));i(this,Je,new l.CSSProperty(this,"--tween-easing",!1));i(this,Qe,new l.CSSProperty(this,"--tween-duration",0));_.isBrowser&&this.addEventListener("click",()=>{const e=t(this,je).current,s=t(this,Je).current,n=t(this,Qe).current;this.handleClick({behaviour:e,tween:s||n?{easing:s,duration:n}:void 0})})}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,je).observe(),t(this,Je).observe(),t(this,Qe).observe()}disconnectedCallback(){this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,je).close(),t(this,Je).close(),t(this,Qe).close()}}je=new WeakMap,Je=new WeakMap,Qe=new WeakMap;var Xe;class ei extends Hs{constructor(){super(...arguments);i(this,Xe,new l.CSSProperty(this,"--set",1))}handleClick(e){this.scrollElement.scrollToSection(t(this,Xe).current,e)}connectedCallback(){super.connectedCallback(),t(this,Xe).observe()}disconnectedCallback(){super.disconnectedCallback(),t(this,Xe).close()}}Xe=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-set-button")&&customElements.define("e-scroll-set-button",ei);var It,Ye;class si extends Hs{constructor(){super(...arguments);i(this,It,new l.CSSProperty(this,"--step",1));i(this,Ye,()=>{this.scrollElement.loopCSSProperty.current?this.removeAttribute("disabled"):t(this,It).current>0&&this.scrollElement.scrollLine==="end"||t(this,It).current<0&&this.scrollElement.scrollLine==="start"?this.setAttribute("disabled",""):this.removeAttribute("disabled")})}handleClick(e){this.scrollElement.shiftSections(t(this,It).current,e)}connectedCallback(){super.connectedCallback(),this.scrollElement&&(t(this,It).subscribe(()=>{t(this,Ye).call(this)}),t(this,It).observe(),this.scrollElement.addEventListener("scrollLine",t(this,Ye)),t(this,Ye).call(this))}disconnectedCallback(){super.disconnectedCallback(),t(this,It).close(),this.removeAttribute("disabled")}}It=new WeakMap,Ye=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-step-button")&&customElements.define("e-scroll-step-button",si);var ot,te,ts,ys,vs,es;class zi{constructor(h,e,s){i(this,ot,null);i(this,te,null);i(this,ts,null);i(this,ys,null);i(this,vs,()=>{t(this,te).scrollToSection(t(this,ts),{behaviour:t(this,ys)})});i(this,es,()=>{t(this,ot).classList.toggle("current",t(this,te).counter.current===t(this,ts))});_.isBrowser&&(r(this,ot,document.createElement("button")),t(this,ot).setAttribute("aria-label",`Go to section ${e+1}`),r(this,te,h),r(this,ys,s),r(this,ts,e),t(this,ot).addEventListener("click",t(this,vs)),t(this,te).counter.subscribe(t(this,es)),t(this,es).call(this))}get element(){return t(this,ot)}destroy(){t(this,ot).removeEventListener("click",t(this,vs)),t(this,te).counter.unsubscribe(t(this,es)),t(this,ot).remove()}}ot=new WeakMap,te=new WeakMap,ts=new WeakMap,ys=new WeakMap,vs=new WeakMap,es=new WeakMap;var ke,ee,lt;class ii extends ns{constructor(){super(...arguments);i(this,ke,null);i(this,ee,[]);i(this,lt,Ls.debounce(()=>{t(this,ee).forEach(s=>s.destroy()),r(this,ee,[]);let e=0;this.scrollElement.loopCSSProperty.current?e=this.scrollElement.visibleSections.length:e=this.scrollElement.visibleSections.length-Math.max(this.scrollElement.sectionsInViewCSSProperty.current-1,0);for(let s=0;s<e;s++){const n=new zi(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");t(this,ke).appendChild(n.element),t(this,ee).push(n)}},0))}connectedCallback(){super.connectedCallback(),this.innerHTML="",r(this,ke,document.createElement("div")),this.appendChild(t(this,ke)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,lt)),this.scrollElement.loopCSSProperty.subscribe(t(this,lt)),t(this,lt).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("scrollSectionsChange",t(this,lt)),this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,lt)),this.scrollElement.loopCSSProperty.unsubscribe(t(this,lt)),t(this,ee).forEach(e=>e.destroy()),r(this,ee,[]),t(this,ke).remove()}}ke=new WeakMap,ee=new WeakMap,lt=new WeakMap;_.isBrowser&&!customElements.get("e-scroll-bullet-buttons")&&customElements.define("e-scroll-bullet-buttons",ii);var se,ie,re,ne,Rt,At,Mt,Ft,R,q,B,$,Ot,z,ct,ut,Y,Tt,Ie,at,dt,St,w,H,W,tt,et,Z,ss,m,Dt,he,is,x,pt,O,A,K,Re,qt,y,oe,b,ni,hi,oi,li,ci,ui,rs,Ae,qs,Se,ai,di,Bs;class ri extends ns{constructor(){super(...arguments);i(this,b);i(this,se);i(this,ie);i(this,re);i(this,ne);i(this,Rt);i(this,At);i(this,Mt);i(this,Ft);i(this,R);i(this,q);i(this,B);i(this,$);i(this,Ot);i(this,z);i(this,ct);i(this,ut);i(this,Y);i(this,Tt);i(this,Ie);i(this,at);i(this,dt);i(this,St);i(this,w);i(this,H);i(this,W);i(this,tt);i(this,et);i(this,Z);i(this,ss);i(this,m);i(this,Dt);i(this,he);i(this,is);i(this,x);i(this,pt);i(this,O);i(this,A);i(this,K);i(this,Re);i(this,qt);i(this,y);i(this,oe);i(this,rs);i(this,Ae);r(this,se,new l.CSSProperty(this,"--damping",20)),r(this,ie,new l.CSSProperty(this,"--mass",0)),r(this,re,new l.CSSProperty(this,"--stiffness",0)),r(this,ne,new l.CSSProperty(this,"--target","")),r(this,Rt,new l.CSSProperty(this,"--disabled",!1)),r(this,At,new l.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1})),r(this,Mt,new l.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1})),r(this,Ft,new l.CSSProperty(this,"--capture-once",!1)),r(this,R,new l.CSSProperty(this,"--captured","")),r(this,q,new l.CSSProperty(this,"--released","")),r(this,B,new l.CSSProperty(this,"--captured-from-start","")),r(this,$,new l.CSSProperty(this,"--captured-from-finish","")),r(this,Ot,new l.CSSProperty(this,"--released-from-start","")),r(this,z,new l.CSSProperty(this,"--released-from-finish","")),r(this,ct,new l.CSSProperty(this,"--passed-var","")),r(this,ut,new l.CSSProperty(this,"--progress-var","")),r(this,Y,new l.CSSProperty(this,"--progress-arc-var","")),r(this,Tt,new l.CSSProperty(this,"--progress-arc-mult",1)),r(this,Ie,new l.CSSProperty(this,"--animation-var-type","target")),r(this,at,new l.CSSProperty(this,"--distance-var","")),r(this,dt,new l.CSSProperty(this,"--start-var","")),r(this,St,new l.CSSProperty(this,"--finish-var","")),r(this,w,new ae.Store(!1)),r(this,H,new ae.Store(!1)),r(this,W,new ae.Store(!1)),r(this,tt,new ae.Store(!1)),r(this,et,new ae.Store(!1)),r(this,Z,new ae.Store(!1)),r(this,ss,[]),r(this,m,this),r(this,Dt,0),r(this,he,0),r(this,is,0),r(this,x,new Qs.Damped(0,{order:Te.TICK_ORDER.SEGMENT,min:0,max:1})),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),r(this,qt,!1),r(this,y,!0),r(this,oe,!1),this.resize=()=>{r(this,he,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Dt,this.scrollElement.vertical?it.getCumulativeOffsetTop(this,this.scrollElement):it.getCumulativeOffsetLeft(this,this.scrollElement));const e=it.getStickyOffset(this,this.scrollElement.vertical?"top":"left");r(this,Dt,t(this,Dt)-e),r(this,O,this.getStart()),r(this,A,this.getDistance()),r(this,O,t(this,O)+t(this,Mt).current),r(this,A,t(this,A)+t(this,At).current),r(this,K,t(this,O)+t(this,A)),this.scrollElement.currentScrollValue>t(this,K)&&!t(this,w).current&&!t(this,H).current&&(t(this,w).current=!0),this.setVar(t(this,dt).current,t(this,O)),this.setVar(t(this,St).current,t(this,K)),this.setVar(t(this,at).current,t(this,A)),t(this,x).max=t(this,A),r(this,Re,!0),t(this,Ae).call(this)},this.findAnotherScrollEntries=Ls.debounce(()=>{const e=ce.scrollEntries.getAll(this).reverse();let s=0;e.forEach((n,u)=>{n.element===this.scrollElement&&(s=u)}),r(this,ss,e.slice(s+1)),this.tick()},0),r(this,rs,()=>{t(this,y)||this.resize()}),r(this,Ae,()=>{!t(this,y)&&t(this,Re)&&this.tick()})}get distanceOffsetCSSProperty(){return t(this,At)}get startOffsetCSSProperty(){return t(this,Mt)}get captureOnceCSSProperty(){return t(this,Ft)}get capturedCSSProperty(){return t(this,R)}get releasedCSSProperty(){return t(this,q)}get capturedFromStartCSSProperty(){return t(this,B)}get capturedFromFinishCSSProperty(){return t(this,$)}get releasedFromStartCSSProperty(){return t(this,Ot)}get releasedFromFinishCSSProperty(){return t(this,z)}get passedVarCSSProperty(){return t(this,ct)}get progressVarCSSProperty(){return t(this,ut)}get progressArcVarCSSProperty(){return t(this,Y)}get progressArcMultCSSProperty(){return t(this,Tt)}get animationVarTypeCSSProperty(){return t(this,Ie)}get distanceVarCSSProperty(){return t(this,at)}get startVarCSSProperty(){return t(this,dt)}get finishVarCSSProperty(){return t(this,St)}get disabledCSSProperty(){return t(this,Rt)}get dampingCSSProperty(){return t(this,se)}get massCSSProperty(){return t(this,ie)}get stiffnessCSSProperty(){return t(this,re)}get targetCSSProperty(){return t(this,ne)}get isCaptured(){return t(this,w)}get isReleased(){return t(this,H)}get isCapturedFromStart(){return t(this,W)}get isReleasedFromStart(){return t(this,tt)}get isCapturedFromFinish(){return t(this,et)}get isReleasedFromFinish(){return t(this,Z)}get directionPosition(){return t(this,Dt)}get directionSize(){return t(this,he)}get passed(){return t(this,x)}get progress(){return t(this,pt)}get progressArc(){return Math.abs(Math.cos(t(this,pt)*Math.PI))*t(this,Tt).current}get start(){return t(this,O)}get finish(){return t(this,K)}get distance(){return t(this,A)}get isCapturedOnce(){return t(this,qt)}get isDisabled(){return t(this,y)}tick(){let e=this.scrollElement.currentScrollValue;t(this,ss).forEach(u=>{e+=u.value});const s=e-t(this,O);t(this,oe)||r(this,oe,t(this,x).previous?Math.abs(t(this,x).previous-s)>1e3:!1),t(this,x).set(s);const n=Math.round(e);t(this,w).current&&(n>=t(this,O)?t(this,W).current||o(this,b,oi).call(this):t(this,W).current&&!t(this,tt).current&&o(this,b,ci).call(this),n<t(this,K)?t(this,Z).current&&!t(this,et).current&&o(this,b,li).call(this):t(this,W).current&&!t(this,Z).current&&o(this,b,ui).call(this)),n>=t(this,O)&&n<t(this,K)?t(this,w).current||o(this,b,ni).call(this):t(this,w).current&&(t(this,x).set($s.step(t(this,A)/2,t(this,x).target,0,t(this,A))),o(this,b,hi).call(this)),t(this,qt)&&t(this,Ft).current&&(t(this,R).current&&t(this,m).classList.add(t(this,R).current),r(this,y,!0))}disable(){this.style.cssText="",r(this,Dt,0),r(this,he,0),t(this,x).reset(),r(this,pt,0),r(this,O,0),r(this,A,0),r(this,K,0),r(this,Re,!1),t(this,w).current=!1,t(this,H).current=!1,t(this,W).current=!1,t(this,tt).current=!1,t(this,et).current=!1,t(this,Z).current=!1,r(this,qt,!1),r(this,y,!0),o(this,b,Bs).call(this)}enable(){r(this,y,!1)}connectedCallback(){super.connectedCallback(),t(this,w).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCapture",{composed:!0,custom:!0})}),t(this,W).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromStart",{composed:!0,custom:!0})}),t(this,et).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentCaptureFromFinish",{composed:!0,custom:!0})}),t(this,H).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentRelease",{composed:!0,custom:!0})}),t(this,tt).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromStart",{composed:!0,custom:!0})}),t(this,Z).subscribe(s=>{s.current&&st.dispatchEvent(this,"scrollSegmentReleaseFromFinish",{composed:!0,custom:!0})}),t(this,se).observe(),t(this,ie).observe(),t(this,re).observe(),t(this,ne).observe(),t(this,Rt).observe(),t(this,At).observe(),t(this,Mt).observe(),t(this,Ft).observe(),t(this,R).observe(),t(this,q).observe(),t(this,B).observe(),t(this,$).observe(),t(this,Ot).observe(),t(this,z).observe(),t(this,ct).observe(),t(this,ut).observe(),t(this,Y).observe(),t(this,Tt).observe(),t(this,Ie).observe(),t(this,at).observe(),t(this,dt).observe(),t(this,St).observe();let e=!1;this.findAnotherScrollEntries(),t(this,Rt).current||this.enable(),t(this,se).subscribe(s=>{t(this,x).damping=s.current}),t(this,ie).subscribe(s=>{t(this,x).mass=s.current}),t(this,re).subscribe(s=>{t(this,x).stiffness=s.current}),t(this,ne).subscribe(s=>{s.previous&&o(this,b,Bs).call(this),s.current?s.current==="parent"?r(this,m,this.parentElement||this):r(this,m,document.querySelector(s.current)||this):r(this,m,this)}),t(this,Rt).subscribe(s=>{s.current&&!s.previous?this.disable():!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,Mt).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,At).subscribe(()=>{e&&!t(this,y)&&this.resize()}),t(this,R).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,B).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,$).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,q).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,Ot).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,z).subscribe(s=>{o(this,b,Se).call(this,s)}),t(this,Ft).subscribe(s=>{t(this,y)||!s.current&&s.previous&&(this.resize(),this.enable())}),t(this,ct).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.passed.current))}),t(this,ut).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,pt)))}),t(this,Y).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,this.progressArc))}),t(this,Tt).subscribe(s=>{t(this,y)||o(this,b,qs).call(this)}),t(this,dt).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,O)))}),t(this,St).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,K)))}),t(this,at).subscribe(s=>{t(this,y)||(this.removeVar(s.previous),this.setVar(s.current,t(this,A)))}),t(this,x).subscribe(s=>{if(t(this,oe)){r(this,oe,!1);return}o(this,b,qs).call(this)}),this.scrollElement.addEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.addEventListener("scrollResize",this.resize),ft.windowResizer.subscribe(t(this,rs),Te.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(t(this,Ae)),e=!0}disconnectedCallback(){ft.windowResizer.unsubscribe(t(this,rs)),this.scrollElement.offScroll(t(this,Ae)),this.scrollElement.removeEventListener("scrollSectionsChange",this.findAnotherScrollEntries),this.scrollElement.removeEventListener("scrollResize",this.resize),t(this,se).close(),t(this,ie).close(),t(this,re).close(),t(this,ne).close(),t(this,Rt).close(),t(this,At).close(),t(this,Mt).close(),t(this,Ft).close(),t(this,R).close(),t(this,q).close(),t(this,B).close(),t(this,$).close(),t(this,Ot).close(),t(this,z).close(),t(this,ct).close(),t(this,ut).close(),t(this,Y).close(),t(this,Tt).close(),t(this,at).close(),t(this,dt).close(),t(this,St).close(),t(this,w).close(),t(this,H).close(),t(this,W).close(),t(this,tt).close(),t(this,et).close(),t(this,Z).close(),this.disable(),t(this,x).close()}removeVar(e){e&&t(this,m).style.removeProperty(`--${e}`)}setVar(e,s){if(e){const n=typeof s=="number"?s.toFixed(6):s;t(this,m).style.setProperty(`--${e}`,n)}}getDistance(){return t(this,he)+t(this,is)}getStart(){return t(this,Dt)-t(this,is)}}se=new WeakMap,ie=new WeakMap,re=new WeakMap,ne=new WeakMap,Rt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ft=new WeakMap,R=new WeakMap,q=new WeakMap,B=new WeakMap,$=new WeakMap,Ot=new WeakMap,z=new WeakMap,ct=new WeakMap,ut=new WeakMap,Y=new WeakMap,Tt=new WeakMap,Ie=new WeakMap,at=new WeakMap,dt=new WeakMap,St=new WeakMap,w=new WeakMap,H=new WeakMap,W=new WeakMap,tt=new WeakMap,et=new WeakMap,Z=new WeakMap,ss=new WeakMap,m=new WeakMap,Dt=new WeakMap,he=new WeakMap,is=new WeakMap,x=new WeakMap,pt=new WeakMap,O=new WeakMap,A=new WeakMap,K=new WeakMap,Re=new WeakMap,qt=new WeakMap,y=new WeakMap,oe=new WeakMap,b=new WeakSet,ni=function(){t(this,w).current=!0,t(this,H).current=!1,r(this,qt,!0),t(this,q).current&&t(this,m).classList.remove(t(this,q).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,z).current&&t(this,m).classList.remove(t(this,z).current),t(this,R).current&&t(this,m).classList.add(t(this,R).current)},hi=function(){t(this,H).current=!0,t(this,w).current=!1,r(this,qt,!0),t(this,R).current&&t(this,m).classList.remove(t(this,R).current),t(this,B).current&&t(this,m).classList.remove(t(this,B).current),t(this,$).current&&t(this,m).classList.remove(t(this,$).current),t(this,q).current&&t(this,m).classList.add(t(this,q).current)},oi=function(){t(this,w).current=!0,t(this,W).current=!0,t(this,tt).current=!1,t(this,B).current&&t(this,m).classList.add(t(this,B).current)},li=function(){t(this,w).current=!0,t(this,et).current=!0,t(this,Z).current=!1,t(this,$).current&&t(this,m).classList.add(t(this,$).current)},ci=function(){t(this,H).current=!0,t(this,tt).current=!0,t(this,W).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},ui=function(){t(this,H).current=!0,t(this,Z).current=!0,t(this,et).current=!1,t(this,z).current&&t(this,m).classList.add(t(this,z).current)},rs=new WeakMap,Ae=new WeakMap,qs=function(){const e=t(this,x)[t(this,Ie).current];this.setVar(t(this,ct).current,e),r(this,pt,e/t(this,A)||0),this.setVar(t(this,ut).current,t(this,pt)),t(this,Y).current&&this.setVar(t(this,Y).current,this.progressArc)},Se=function(e){if(t(this,y)){e.previous&&t(this,m).classList.remove(e.previous),e.current&&t(this,m).classList.remove(e.current);return}e.current&&t(this,w).current?(e.previous&&t(this,m).classList.remove(e.previous),t(this,m).classList.add(e.current)):!e.current&&e.previous&&t(this,m).classList.remove(e.previous)},ai=function(...e){e.forEach(s=>{s&&t(this,m).classList.remove(s)})},di=function(...e){e.forEach(s=>{s&&t(this,m).style.removeProperty(`--${s}`)})},Bs=function(){o(this,b,ai).call(this,t(this,R).current,t(this,B).current,t(this,$).current,t(this,q).current,t(this,Ot).current,t(this,z).current),o(this,b,di).call(this,t(this,ct).current,t(this,ut).current,t(this,Y).current,t(this,at).current,t(this,dt).current,t(this,St).current)};_.isBrowser&&!customElements.get("e-scroll-segment")&&customElements.define("e-scroll-segment",ri);class Si extends Hs{handleClick(h){this.scrollElement.setPosition(this.scrollElement.vertical?it.getCumulativeOffsetTop(this):it.getCumulativeOffsetLeft(this),h)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}_.isBrowser&&!customElements.get("e-scroll-section-button")&&customElements.define("e-scroll-section-button",Si);var Ps;const Ws=class Ws extends ns{constructor(){super(...arguments);i(this,Ps,()=>{const e=this.scrollElement.counter.current+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(Ws.prototype,this,"connectedCallback").call(this),this.scrollElement.counter.subscribe(t(this,Ps))})}disconnectedCallback(){this.scrollElement.counter.unsubscribe(t(this,Ps))}};Ps=new WeakMap;let Vs=Ws;_.isBrowser&&!customElements.get("e-scroll-counter")&&customElements.define("e-scroll-counter",Vs);var le;const _s=class _s extends ns{constructor(){super(...arguments);i(this,le,()=>{const e=this.scrollElement.limit+1,s=parseInt(this.getAttribute("pad")||"0");this.textContent=e.toString().padStart(s,"0")})}connectedCallback(){return As(this,null,function*(){Rs(_s.prototype,this,"connectedCallback").call(this),this.scrollElement.sectionsInViewCSSProperty.subscribe(t(this,le)),this.scrollElement.addEventListener("scrollSectionsChange",t(this,le)),t(this,le).call(this)})}disconnectedCallback(){this.scrollElement.sectionsInViewCSSProperty.unsubscribe(t(this,le)),this.scrollElement.removeEventListener("scrollSectionsChange",t(this,le))}};le=new WeakMap;let ks=_s;_.isBrowser&&!customElements.get("e-scroll-total")&&customElements.define("e-scroll-total",ks);exports.ScrollBulletButtonsElement=ii;exports.ScrollCounterElement=Vs;exports.ScrollElement=zs;exports.ScrollSectionButtonElement=Si;exports.ScrollSegmentElement=ri;exports.ScrollSetButtonElement=ei;exports.ScrollStepButtonElement=si;exports.ScrollTotalElement=ks;exports.ScrollbarElement=ti;
|
package/lib/scroll/index.js
CHANGED
|
@@ -54,10 +54,10 @@ import "construct-style-sheets-polyfill";
|
|
|
54
54
|
import { elementResizer as os } from "../element-resizer/index.js";
|
|
55
55
|
import { s as xi } from "../gestures-CcXV6fCp.js";
|
|
56
56
|
import { b as Li } from "../dom-CVWzyXPH.js";
|
|
57
|
-
var p, Re, E, us, as, fe, bt,
|
|
57
|
+
var p, Re, E, us, as, fe, bt, Ht, pe, $t, Fe;
|
|
58
58
|
class ki {
|
|
59
59
|
constructor(n, e, s) {
|
|
60
|
-
i(this,
|
|
60
|
+
i(this, $t);
|
|
61
61
|
i(this, p);
|
|
62
62
|
i(this, Re);
|
|
63
63
|
i(this, E);
|
|
@@ -65,7 +65,7 @@ class ki {
|
|
|
65
65
|
i(this, as, 0);
|
|
66
66
|
i(this, fe, 0);
|
|
67
67
|
i(this, bt, 0);
|
|
68
|
-
i(this,
|
|
68
|
+
i(this, Ht, null);
|
|
69
69
|
i(this, pe, 0);
|
|
70
70
|
r(this, p, n), r(this, Re, e), r(this, E, s), le.register(t(this, p)), this.setIndex(t(this, Re));
|
|
71
71
|
}
|
|
@@ -115,10 +115,10 @@ class ki {
|
|
|
115
115
|
r(this, pe, v * -1), t(this, E).vertical ? t(this, p).style.transform = `translate3d(0px, ${t(this, pe)}px, 0px)` : t(this, p).style.transform = `translate3d(${t(this, pe)}px, 0px, 0px)`;
|
|
116
116
|
}
|
|
117
117
|
setMark(n) {
|
|
118
|
-
t(this,
|
|
118
|
+
t(this, Ht) !== n && (t(this, Ht) && t(this, p).classList.remove(t(this, Ht)), n && t(this, p).classList.add(n), r(this, Ht, n), st(t(this, p), "scrollSectionMarkChange", {
|
|
119
119
|
composed: !0,
|
|
120
120
|
detail: {
|
|
121
|
-
mark: t(this,
|
|
121
|
+
mark: t(this, Ht)
|
|
122
122
|
},
|
|
123
123
|
custom: !0
|
|
124
124
|
}));
|
|
@@ -127,22 +127,22 @@ class ki {
|
|
|
127
127
|
t(this, p).classList.toggle("middle", n);
|
|
128
128
|
}
|
|
129
129
|
setIndex(n) {
|
|
130
|
-
o(this,
|
|
130
|
+
o(this, $t, Fe).call(this, "index", n);
|
|
131
131
|
}
|
|
132
132
|
setCurrentIndex(n) {
|
|
133
|
-
o(this,
|
|
133
|
+
o(this, $t, Fe).call(this, "current-index", n);
|
|
134
134
|
}
|
|
135
135
|
setCurrentIndexArc(n) {
|
|
136
|
-
o(this,
|
|
136
|
+
o(this, $t, Fe).call(this, "current-index-arc", n);
|
|
137
137
|
}
|
|
138
138
|
setOffsetIndex(n) {
|
|
139
|
-
o(this,
|
|
139
|
+
o(this, $t, Fe).call(this, "offset-index", n);
|
|
140
140
|
}
|
|
141
141
|
setCurrentIndexArcAbs(n) {
|
|
142
|
-
o(this,
|
|
142
|
+
o(this, $t, Fe).call(this, "current-index-arc-abs", n);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), fe = new WeakMap(), bt = new WeakMap(),
|
|
145
|
+
p = new WeakMap(), Re = new WeakMap(), E = new WeakMap(), us = new WeakMap(), as = new WeakMap(), fe = new WeakMap(), bt = new WeakMap(), Ht = new WeakMap(), pe = new WeakMap(), $t = new WeakSet(), Fe = function(n, e) {
|
|
146
146
|
e !== null ? (t(this, p).style.setProperty(`--${n}`, e.toString()), t(this, p).setAttribute(`data-${n}`, e.toString())) : (t(this, p).style.removeProperty(`--${n}`), t(this, p).removeAttribute(`data-${n}`));
|
|
147
147
|
};
|
|
148
148
|
const Vi = Js({
|
|
@@ -184,7 +184,7 @@ const Vi = Js({
|
|
|
184
184
|
flexShrink: "0"
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
var f, be, D,
|
|
187
|
+
var f, be, D, Bt, mt, St, gt, J, Wt, Nt, vt, qt, me, Q, V, Se, ge, ve, ye, De, Ce, X, Pe, Gt, Y, yt, Ct, Ee, Ut, we, xe, Kt, Zt, jt, b, Oe, G, a, ds, fs, L, P, U, it, Jt, rt, F, z, He, Pt, Et, wt, K, $e, xt, Qt, Le, ht, A, Be, Lt, ke, We, c, Is, hs, Te, Es, ws, Ms, Fs, T, ps, Ys, Ne, bs, Ts, Rs, ae, _s, ms, ns, qe;
|
|
188
188
|
class As extends HTMLElement {
|
|
189
189
|
constructor() {
|
|
190
190
|
super();
|
|
@@ -192,25 +192,25 @@ class As extends HTMLElement {
|
|
|
192
192
|
i(this, f, null);
|
|
193
193
|
i(this, be, new l(this, "--controls", !0));
|
|
194
194
|
i(this, D, new l(this, "--axis", "y"));
|
|
195
|
-
i(this,
|
|
195
|
+
i(this, Bt, new l(this, "--reverse", !1));
|
|
196
196
|
i(this, mt, new l(this, "--direction", 0));
|
|
197
197
|
i(this, St, new l(this, "--pages", 0, {
|
|
198
198
|
validate: (e) => Math.max(0, e - 1)
|
|
199
199
|
}));
|
|
200
200
|
i(this, gt, new l(this, "--split", !1));
|
|
201
201
|
i(this, J, new l(this, "--sectional", !1));
|
|
202
|
-
i(this,
|
|
202
|
+
i(this, Wt, new l(
|
|
203
203
|
this,
|
|
204
204
|
"--tween-easing",
|
|
205
205
|
!1
|
|
206
206
|
));
|
|
207
|
-
i(this,
|
|
207
|
+
i(this, Nt, new l(
|
|
208
208
|
this,
|
|
209
209
|
"--tween-duration",
|
|
210
210
|
!1
|
|
211
211
|
));
|
|
212
212
|
i(this, vt, new l(this, "--auto-size", !1));
|
|
213
|
-
i(this,
|
|
213
|
+
i(this, qt, new l(
|
|
214
214
|
this,
|
|
215
215
|
"--wheel-max-delta",
|
|
216
216
|
!1
|
|
@@ -238,7 +238,7 @@ class As extends HTMLElement {
|
|
|
238
238
|
"--autoplay-pause-duration",
|
|
239
239
|
0
|
|
240
240
|
));
|
|
241
|
-
i(this,
|
|
241
|
+
i(this, Gt, new l(
|
|
242
242
|
this,
|
|
243
243
|
"--autoplay-user-direction",
|
|
244
244
|
!1
|
|
@@ -260,16 +260,16 @@ class As extends HTMLElement {
|
|
|
260
260
|
0,
|
|
261
261
|
{ rawValueCheck: !1 }
|
|
262
262
|
));
|
|
263
|
-
i(this,
|
|
263
|
+
i(this, Ut, new l(this, "--focus-delay", 0));
|
|
264
264
|
i(this, we, new l(
|
|
265
265
|
this,
|
|
266
266
|
"--focus-duration",
|
|
267
267
|
3e3
|
|
268
268
|
));
|
|
269
269
|
i(this, xe, new l(this, "--shift-limit", 0));
|
|
270
|
-
i(this,
|
|
271
|
-
i(this,
|
|
272
|
-
i(this,
|
|
270
|
+
i(this, Kt, new l(this, "--disabled", !1));
|
|
271
|
+
i(this, Zt, new l(this, "--hibernate", !1));
|
|
272
|
+
i(this, jt, null);
|
|
273
273
|
i(this, b, null);
|
|
274
274
|
i(this, Oe, null);
|
|
275
275
|
i(this, G, []);
|
|
@@ -280,7 +280,7 @@ class As extends HTMLElement {
|
|
|
280
280
|
i(this, P, 0);
|
|
281
281
|
i(this, U, 0);
|
|
282
282
|
i(this, it, null);
|
|
283
|
-
i(this,
|
|
283
|
+
i(this, Jt, null);
|
|
284
284
|
i(this, rt, null);
|
|
285
285
|
i(this, F, null);
|
|
286
286
|
i(this, z, new ue(0));
|
|
@@ -290,13 +290,13 @@ class As extends HTMLElement {
|
|
|
290
290
|
i(this, wt, !0);
|
|
291
291
|
i(this, K, !0);
|
|
292
292
|
i(this, $e);
|
|
293
|
-
i(this,
|
|
293
|
+
i(this, xt);
|
|
294
294
|
i(this, Qt, new vi());
|
|
295
295
|
i(this, Le, !1);
|
|
296
296
|
i(this, ht, null);
|
|
297
297
|
i(this, A, !1);
|
|
298
298
|
i(this, Be, null);
|
|
299
|
-
i(this,
|
|
299
|
+
i(this, Lt, []);
|
|
300
300
|
i(this, ke, !1);
|
|
301
301
|
i(this, We);
|
|
302
302
|
i(this, T, (e) => {
|
|
@@ -326,14 +326,14 @@ class As extends HTMLElement {
|
|
|
326
326
|
t(this, be).current && (o(this, c, Ts).call(this, Math.sign(s) || 1), t(this, bs).call(this, e, s));
|
|
327
327
|
});
|
|
328
328
|
i(this, bs, (e, s) => {
|
|
329
|
-
if (!t(this,
|
|
329
|
+
if (!t(this, xt)) {
|
|
330
330
|
if (t(this, mt).current) {
|
|
331
331
|
if (t(this, mt).current < 0 && s > 0)
|
|
332
332
|
return;
|
|
333
333
|
if (t(this, mt).current > 0 && s < 0)
|
|
334
334
|
return;
|
|
335
335
|
}
|
|
336
|
-
if (!t(this, X).current && t(this,
|
|
336
|
+
if (!t(this, X).current && t(this, Ut).current && (clearInterval(t(this, $e)), r(this, $e, setTimeout(() => {
|
|
337
337
|
const h = t(this, a)[o(this, c, ns).call(this)];
|
|
338
338
|
h && this.scrollToSection(h.index, {
|
|
339
339
|
tween: {
|
|
@@ -341,14 +341,14 @@ class As extends HTMLElement {
|
|
|
341
341
|
easing: fi
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
}, t(this,
|
|
344
|
+
}, t(this, Ut).current))), !(e.includes("drag") && !wi.isTouch && !t(this, ye).current)) {
|
|
345
345
|
if (t(this, J).current && e !== "drag") {
|
|
346
346
|
const h = Math.sign(s);
|
|
347
347
|
if (t(this, a).length) {
|
|
348
348
|
const u = {
|
|
349
|
-
tween: t(this,
|
|
350
|
-
easing: t(this,
|
|
351
|
-
duration: t(this,
|
|
349
|
+
tween: t(this, Wt).current || t(this, Nt).current ? {
|
|
350
|
+
easing: t(this, Wt).current || "easeInOutCubic",
|
|
351
|
+
duration: t(this, Nt).current || 500
|
|
352
352
|
} : void 0
|
|
353
353
|
};
|
|
354
354
|
t(this, Le) ? this.scrollToSection(o(this, c, ns).call(this, !0), u) : this.shiftSections(h, u);
|
|
@@ -361,7 +361,7 @@ class As extends HTMLElement {
|
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
i(this, ms, xs(() => {
|
|
364
|
-
const e = t(this,
|
|
364
|
+
const e = t(this, Lt).reduce((s, h) => {
|
|
365
365
|
const u = this.vertical ? h.width : h.height;
|
|
366
366
|
return u > s ? u : s;
|
|
367
367
|
}, 0);
|
|
@@ -376,7 +376,7 @@ class As extends HTMLElement {
|
|
|
376
376
|
const e = this.attachShadow({ mode: "open" });
|
|
377
377
|
e.adoptedStyleSheets = [Vi];
|
|
378
378
|
const s = document.createElement("div");
|
|
379
|
-
s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this,
|
|
379
|
+
s.className = "static", s.innerHTML = '<slot name="static"></slot>', e.appendChild(s), r(this, jt, document.createElement("div")), t(this, jt).className = "content-wrapper", r(this, b, document.createElement("div")), t(this, b).className = "content", r(this, Oe, document.createElement("slot")), t(this, b).appendChild(t(this, Oe)), t(this, jt).appendChild(t(this, b)), e.appendChild(t(this, jt)), r(this, Be, new MutationObserver(
|
|
380
380
|
xs(() => {
|
|
381
381
|
this.tryResplit();
|
|
382
382
|
}, 10)
|
|
@@ -393,7 +393,7 @@ class As extends HTMLElement {
|
|
|
393
393
|
return t(this, D);
|
|
394
394
|
}
|
|
395
395
|
get reverseCSSProperty() {
|
|
396
|
-
return t(this,
|
|
396
|
+
return t(this, Bt);
|
|
397
397
|
}
|
|
398
398
|
get directionCSSProperty() {
|
|
399
399
|
return t(this, mt);
|
|
@@ -408,16 +408,16 @@ class As extends HTMLElement {
|
|
|
408
408
|
return t(this, J);
|
|
409
409
|
}
|
|
410
410
|
get easingCSSProperty() {
|
|
411
|
-
return t(this,
|
|
411
|
+
return t(this, Wt);
|
|
412
412
|
}
|
|
413
413
|
get durationCSSProperty() {
|
|
414
|
-
return t(this,
|
|
414
|
+
return t(this, Nt);
|
|
415
415
|
}
|
|
416
416
|
get autoSizeCSSProperty() {
|
|
417
417
|
return t(this, vt);
|
|
418
418
|
}
|
|
419
419
|
get wheelMaxDeltaCSSProperty() {
|
|
420
|
-
return t(this,
|
|
420
|
+
return t(this, qt);
|
|
421
421
|
}
|
|
422
422
|
get dragInertionCSSProperty() {
|
|
423
423
|
return t(this, me);
|
|
@@ -453,7 +453,7 @@ class As extends HTMLElement {
|
|
|
453
453
|
return t(this, Pe);
|
|
454
454
|
}
|
|
455
455
|
get autoplayUserDirectionCSSProperty() {
|
|
456
|
-
return t(this,
|
|
456
|
+
return t(this, Gt);
|
|
457
457
|
}
|
|
458
458
|
get classesCSSProperty() {
|
|
459
459
|
return t(this, Y);
|
|
@@ -468,7 +468,7 @@ class As extends HTMLElement {
|
|
|
468
468
|
return t(this, Ee);
|
|
469
469
|
}
|
|
470
470
|
get focusDelayCSSProperty() {
|
|
471
|
-
return t(this,
|
|
471
|
+
return t(this, Ut);
|
|
472
472
|
}
|
|
473
473
|
get focusDurationCSSProperty() {
|
|
474
474
|
return t(this, we);
|
|
@@ -477,10 +477,10 @@ class As extends HTMLElement {
|
|
|
477
477
|
return t(this, xe);
|
|
478
478
|
}
|
|
479
479
|
get disabledCSSProperty() {
|
|
480
|
-
return t(this,
|
|
480
|
+
return t(this, Kt);
|
|
481
481
|
}
|
|
482
482
|
get hibernatedCSSProperty() {
|
|
483
|
-
return t(this,
|
|
483
|
+
return t(this, Zt);
|
|
484
484
|
}
|
|
485
485
|
get currentScrollValue() {
|
|
486
486
|
return o(this, c, Rs).call(this, "current");
|
|
@@ -489,7 +489,7 @@ class As extends HTMLElement {
|
|
|
489
489
|
return o(this, c, Rs).call(this, "target");
|
|
490
490
|
}
|
|
491
491
|
get contentWrapperElement() {
|
|
492
|
-
return t(this,
|
|
492
|
+
return t(this, jt);
|
|
493
493
|
}
|
|
494
494
|
get contentElement() {
|
|
495
495
|
return t(this, b);
|
|
@@ -575,7 +575,7 @@ class As extends HTMLElement {
|
|
|
575
575
|
return this.currentProgress >= u && this.currentProgress <= g;
|
|
576
576
|
}
|
|
577
577
|
scrollToSection(e, s) {
|
|
578
|
-
if (!t(this, a).length || t(this, K))
|
|
578
|
+
if (!t(this, a).length || t(this, K) || t(this, xt))
|
|
579
579
|
return;
|
|
580
580
|
const h = t(this, z).current, u = o(this, c, Ys).call(this, e);
|
|
581
581
|
t(this, z).current = u;
|
|
@@ -591,8 +591,8 @@ class As extends HTMLElement {
|
|
|
591
591
|
t(this, a).length && this.scrollToSection(t(this, z).current + e, s);
|
|
592
592
|
}
|
|
593
593
|
setPosition(e, s) {
|
|
594
|
-
t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this,
|
|
595
|
-
r(this,
|
|
594
|
+
t(this, K) || (o(this, c, Ts).call(this, Math.sign(e) || 1), s != null && s.tween ? (clearTimeout(t(this, xt)), t(this, Qt).set(t(this, f).current, { equalize: !0 }), t(this, Qt).set(e, Ks({}, s.tween)), r(this, xt, setTimeout(() => {
|
|
595
|
+
r(this, xt, void 0);
|
|
596
596
|
}, s.tween.duration || 0))) : t(this, f).set(e, {
|
|
597
597
|
equalize: (s == null ? void 0 : s.behaviour) === "instant"
|
|
598
598
|
}));
|
|
@@ -601,7 +601,7 @@ class As extends HTMLElement {
|
|
|
601
601
|
this.setPosition(t(this, f).target + e, s);
|
|
602
602
|
}
|
|
603
603
|
resize() {
|
|
604
|
-
if (t(this,
|
|
604
|
+
if (t(this, Zt).current)
|
|
605
605
|
return;
|
|
606
606
|
r(this, a, t(this, G).filter(
|
|
607
607
|
(h) => pi(h.element)
|
|
@@ -649,16 +649,16 @@ class As extends HTMLElement {
|
|
|
649
649
|
t(this, f).set(e * t(this, P), {
|
|
650
650
|
equalize: !0
|
|
651
651
|
});
|
|
652
|
-
r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this,
|
|
652
|
+
r(this, Et, (this.vertical ? t(this, b).offsetHeight : t(this, b).offsetWidth) > t(this, L)), this.classList.toggle("has-overflow", t(this, Et)), t(this, Et) ? t(this, Kt).current || o(this, c, ws).call(this) : o(this, c, Es).call(this), t(this, ms).call(this), st(this, "scrollResize", { custom: !0 }), t(this, f).notify();
|
|
653
653
|
}
|
|
654
654
|
connectedCallback() {
|
|
655
655
|
le.register(this), r(this, f, new Xs(0, {
|
|
656
656
|
damping: 0.01,
|
|
657
657
|
min: 0,
|
|
658
658
|
order: Qs.SCROLL
|
|
659
|
-
})), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this,
|
|
659
|
+
})), this.setAttribute("tabindex", "0"), r(this, it, new yi({ element: t(this, b) })), t(this, it).changeEvent.subscribe(t(this, Ne)), r(this, Jt, new Ci({
|
|
660
660
|
element: this
|
|
661
|
-
})), t(this,
|
|
661
|
+
})), t(this, Jt).changeEvent.subscribe(
|
|
662
662
|
t(this, Ne)
|
|
663
663
|
), r(this, rt, new Pi({
|
|
664
664
|
element: t(this, b),
|
|
@@ -667,9 +667,9 @@ class As extends HTMLElement {
|
|
|
667
667
|
culling: this
|
|
668
668
|
})), t(this, F).changeEvent.subscribe(t(this, bs)), t(this, D).subscribe(() => {
|
|
669
669
|
o(this, c, Is).call(this);
|
|
670
|
-
}), t(this,
|
|
670
|
+
}), t(this, Bt).subscribe(() => {
|
|
671
671
|
o(this, c, Is).call(this);
|
|
672
|
-
}), t(this,
|
|
672
|
+
}), t(this, qt).subscribe((e) => {
|
|
673
673
|
t(this, it).axis = e.current ? "max" : t(this, D).current;
|
|
674
674
|
}), t(this, me).subscribe((e) => {
|
|
675
675
|
t(this, rt).inertion = typeof e.current == "number" ? e.current : 1;
|
|
@@ -693,7 +693,7 @@ class As extends HTMLElement {
|
|
|
693
693
|
t(this, f).stiffness = e.current;
|
|
694
694
|
}), t(this, X).subscribe((e) => {
|
|
695
695
|
t(this, F).speed = e.current, !t(this, wt) && e.current && !e.previous ? t(this, F).connect() : !e.current && e.previous && t(this, F).disconnect();
|
|
696
|
-
}), t(this,
|
|
696
|
+
}), t(this, Gt).subscribe((e) => {
|
|
697
697
|
e.current || (t(this, F).direction = 1);
|
|
698
698
|
}), t(this, Y).subscribe((e) => {
|
|
699
699
|
t(this, A) && o(this, c, ae).call(this);
|
|
@@ -709,19 +709,19 @@ class As extends HTMLElement {
|
|
|
709
709
|
t(this, K) || (t(this, a).length && o(this, c, ae).call(this), this.style.setProperty("--counter", e.current + ""));
|
|
710
710
|
}), t(this, Qt).subscribe((e) => {
|
|
711
711
|
t(this, Qt).isRunning.current && t(this, f).set(e.current, { equalize: !0 });
|
|
712
|
-
}), t(this, Ut).subscribe((e) => {
|
|
713
|
-
e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Es).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, ws).call(this));
|
|
714
712
|
}), t(this, Kt).subscribe((e) => {
|
|
713
|
+
e.current && !e.previous ? (this.classList.add("disabled"), o(this, c, Es).call(this)) : !e.current && e.previous && (this.classList.remove("disabled"), o(this, c, ws).call(this));
|
|
714
|
+
}), t(this, Zt).subscribe((e) => {
|
|
715
715
|
e.current && !e.previous ? (this.classList.add("hibernated"), o(this, c, Ms).call(this)) : !e.current && e.previous && (this.classList.remove("hibernated"), o(this, c, Fs).call(this));
|
|
716
|
-
}), t(this, be).observe(), t(this, D).observe(), t(this,
|
|
716
|
+
}), t(this, be).observe(), t(this, D).observe(), t(this, Bt).observe(), t(this, mt).observe(), t(this, St).observe(), t(this, gt).observe(), t(this, J).observe(), t(this, Wt).observe(), t(this, Nt).observe(), t(this, vt).observe(), t(this, qt).observe(), t(this, me).observe(), t(this, Q).observe(), t(this, V).observe(), t(this, Se).observe(), t(this, ge).observe(), t(this, ve).observe(), t(this, ye).observe(), t(this, De).observe(), t(this, Ce).observe(), t(this, X).observe(), t(this, X).observe(), t(this, Pe).observe(), t(this, Gt).observe(), t(this, Y).observe(), t(this, yt).observe(), t(this, Ct).observe(), t(this, Ee).observe(), t(this, Ut).observe(), t(this, we).observe(), t(this, xe).observe(), t(this, Kt).observe(), t(this, Zt).observe(), pt.subscribe(t(this, qe), Ls.LAST), t(this, Be).observe(this, { childList: !0 });
|
|
717
717
|
}
|
|
718
718
|
disconnectedCallback() {
|
|
719
|
-
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, be).unobserve(), t(this, D).unobserve(), t(this,
|
|
719
|
+
this.removeAttribute("tabindex"), this.classList.remove("disabled"), this.classList.remove("hibernated"), t(this, be).unobserve(), t(this, D).unobserve(), t(this, Bt).unobserve(), t(this, mt).unobserve(), t(this, St).unobserve(), t(this, gt).unobserve(), t(this, J).unobserve(), t(this, Wt).unobserve(), t(this, Nt).unobserve(), t(this, vt).unobserve(), t(this, qt).unobserve(), t(this, me).unobserve(), t(this, Q).unobserve(), t(this, V).unobserve(), t(this, Se).unobserve(), t(this, ge).unobserve(), t(this, ve).unobserve(), t(this, ye).unobserve(), t(this, De).unobserve(), t(this, Ce).unobserve(), t(this, X).unobserve(), t(this, Pe).unobserve(), t(this, Gt).unobserve(), t(this, Y).unobserve(), t(this, yt).unobserve(), t(this, Ct).unobserve(), t(this, Ee).unobserve(), t(this, Ut).unobserve(), t(this, we).unobserve(), t(this, xe).unobserve(), t(this, Kt).unobserve(), t(this, Zt).unobserve(), pt.unsubscribe(t(this, qe)), pt.unsubscribe(t(this, T)), os.unsubscribe(t(this, T)), o(this, c, Ms).call(this), t(this, Be).disconnect();
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
f = new WeakMap(), be = new WeakMap(), D = new WeakMap(),
|
|
723
|
-
const e = t(this, D).current, s = t(this,
|
|
724
|
-
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this,
|
|
722
|
+
f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), Bt = new WeakMap(), mt = new WeakMap(), St = new WeakMap(), gt = new WeakMap(), J = new WeakMap(), Wt = new WeakMap(), Nt = new WeakMap(), vt = new WeakMap(), qt = new WeakMap(), me = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), Se = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), ye = new WeakMap(), De = new WeakMap(), Ce = new WeakMap(), X = new WeakMap(), Pe = new WeakMap(), Gt = new WeakMap(), Y = new WeakMap(), yt = new WeakMap(), Ct = new WeakMap(), Ee = new WeakMap(), Ut = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), Kt = new WeakMap(), Zt = new WeakMap(), jt = new WeakMap(), b = new WeakMap(), Oe = new WeakMap(), G = new WeakMap(), a = new WeakMap(), ds = new WeakMap(), fs = new WeakMap(), L = new WeakMap(), P = new WeakMap(), U = new WeakMap(), it = new WeakMap(), Jt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), z = new WeakMap(), He = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), wt = new WeakMap(), K = new WeakMap(), $e = new WeakMap(), xt = new WeakMap(), Qt = new WeakMap(), Le = new WeakMap(), ht = new WeakMap(), A = new WeakMap(), Be = new WeakMap(), Lt = new WeakMap(), ke = new WeakMap(), We = new WeakMap(), c = new WeakSet(), Is = function() {
|
|
723
|
+
const e = t(this, D).current, s = t(this, Bt).current ? "-reverse" : "";
|
|
724
|
+
t(this, b).style.flexDirection = e === "x" ? `row${s}` : `column${s}`, t(this, it).axis = t(this, qt).current ? "max" : e, t(this, Jt).dimension = e === "x" ? "width" : "height", t(this, rt).axis = e, e === "x" ? this.style.touchAction = "pan-y" : e === "y" && (this.style.touchAction = "pan-x"), t(this, A) && t(this, T).call(this);
|
|
725
725
|
}, hs = function() {
|
|
726
726
|
o(this, c, Te).call(this), t(this, Oe).assignedElements().forEach((e, s) => {
|
|
727
727
|
e instanceof HTMLElement && e.tagName !== "SCRIPT" && t(this, G).push(new ki(e, s, this));
|
|
@@ -737,11 +737,11 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
|
|
|
737
737
|
composed: !0
|
|
738
738
|
});
|
|
739
739
|
}, Es = function() {
|
|
740
|
-
t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this,
|
|
740
|
+
t(this, wt) || (r(this, wt, !0), t(this, f).unsubscribe(t(this, ps)), t(this, f).unlistenAnimationFrame(), clearInterval(t(this, $e)), clearInterval(t(this, xt)), t(this, Qt).unlistenAnimationFrame(), t(this, it).disconnect(), t(this, Jt).disconnect(), t(this, rt).disconnect(), t(this, F).disconnect(), t(this, Et) || (this.sections.forEach((e) => {
|
|
741
741
|
e.unsetTransform();
|
|
742
742
|
}), t(this, T).call(this)));
|
|
743
743
|
}, ws = function() {
|
|
744
|
-
t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this,
|
|
744
|
+
t(this, wt) && (r(this, wt, !1), t(this, f).subscribe(t(this, ps), -1e4), t(this, f).notify(), t(this, it).connect(), t(this, Jt).connect(), t(this, rt).connect(), t(this, X).current && t(this, F).connect());
|
|
745
745
|
}, Ms = function() {
|
|
746
746
|
t(this, K) || (r(this, K, !0), clearTimeout(t(this, We)), pt.unsubscribe(t(this, T)), o(this, c, Es).call(this), t(this, b).style.transform = "", t(this, b).style.height = "", t(this, b).style.width = "", this.classList.remove("has-overflow", "start", "end"), this.style.removeProperty("--counter"), t(this, G).length ? o(this, c, Te).call(this) : (t(this, z).reset(), t(this, f).reset()), le.unregister(this));
|
|
747
747
|
}, Fs = function() {
|
|
@@ -752,13 +752,13 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
|
|
|
752
752
|
let s = t(this, z).current;
|
|
753
753
|
return t(this, V).current ? s = gi(e, t(this, a).length) : s = js(e, 0, this.limit), s;
|
|
754
754
|
}, Ne = new WeakMap(), bs = new WeakMap(), Ts = function(e = 1) {
|
|
755
|
-
t(this,
|
|
755
|
+
t(this, Gt).current && (t(this, F).direction = e), t(this, X).current && t(this, F).pauseAndContinue(
|
|
756
756
|
t(this, Pe).current,
|
|
757
757
|
this.sectionalCSSProperty.current
|
|
758
758
|
);
|
|
759
759
|
}, Rs = function(e = "current") {
|
|
760
760
|
if (t(this, V).current && t(this, a).length) {
|
|
761
|
-
const s = t(this, f)[e] % Math.
|
|
761
|
+
const s = Math.floor(t(this, f)[e]) % Math.floor(t(this, P) + t(this, L) + t(this, U));
|
|
762
762
|
return s < 0 ? t(this, P) + s + t(this, L) + t(this, U) : s;
|
|
763
763
|
} else
|
|
764
764
|
return t(this, f)[e];
|
|
@@ -770,17 +770,17 @@ f = new WeakMap(), be = new WeakMap(), D = new WeakMap(), $t = new WeakMap(), mt
|
|
|
770
770
|
}), t(this, Y).current) {
|
|
771
771
|
this.classList.remove("end", "start"), t(this, ht) && this.classList.add(t(this, ht));
|
|
772
772
|
const s = t(this, Q).current + t(this, Ct).current;
|
|
773
|
-
r(this,
|
|
773
|
+
r(this, Lt, []), t(this, a).forEach((h, u) => {
|
|
774
774
|
h.setCurrentIndex(null), h.setCurrentIndexArc(null), h.setCurrentIndexArcAbs(null), h.setMiddle(!1);
|
|
775
775
|
const g = e - this.limit - 1 + t(this, Ct).current, v = e + s, C = this.sections.length - v;
|
|
776
|
-
u >= e && u < v || u <= g ? (h.setMark("current"), t(this,
|
|
776
|
+
u >= e && u < v || u <= g ? (h.setMark("current"), t(this, Lt).push(h)) : u >= v && u < v + C / 2 || u <= g + s ? h.setMark("next") : h.setMark("previous");
|
|
777
777
|
}), t(this, ms).call(this);
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
}, _s = function() {
|
|
781
781
|
if (t(this, Y).current) {
|
|
782
|
-
const e = Math.floor(t(this,
|
|
783
|
-
t(this,
|
|
782
|
+
const e = Math.floor(t(this, Lt).length / 2);
|
|
783
|
+
t(this, Lt).sort((s, h) => s.element.getBoundingClientRect().left - h.element.getBoundingClientRect().left), t(this, Lt).forEach((s, h) => {
|
|
784
784
|
const u = h - e;
|
|
785
785
|
s.setCurrentIndex(h), s.setCurrentIndexArc(u), s.setCurrentIndexArcAbs(Math.abs(u)), s.setMiddle(h === e);
|
|
786
786
|
}), t(this, a).forEach((s, h) => {
|
|
@@ -817,23 +817,23 @@ class is extends HTMLElement {
|
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
Ss = new WeakMap();
|
|
820
|
-
var Xt, O,
|
|
820
|
+
var Xt, O, kt, Vt, Ge, Ue, Yt, Ke, gs, vs;
|
|
821
821
|
class zi extends is {
|
|
822
822
|
constructor() {
|
|
823
823
|
super();
|
|
824
824
|
i(this, Xt, null);
|
|
825
825
|
i(this, O, null);
|
|
826
|
-
i(this,
|
|
827
|
-
i(this,
|
|
826
|
+
i(this, kt, !1);
|
|
827
|
+
i(this, Vt, 0);
|
|
828
828
|
i(this, Ge, 0);
|
|
829
829
|
i(this, Ue, 0);
|
|
830
830
|
i(this, Yt, () => {
|
|
831
|
-
r(this,
|
|
832
|
-
const e = t(this,
|
|
833
|
-
r(this,
|
|
831
|
+
r(this, kt, this.offsetWidth > this.offsetHeight);
|
|
832
|
+
const e = t(this, kt) ? this.offsetWidth : this.offsetHeight;
|
|
833
|
+
r(this, Vt, e / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / e)), r(this, Vt, Math.max(t(this, Vt), 30)), t(this, kt) ? (t(this, O).style.width = t(this, Vt) + "px", t(this, O).style.height = "100%") : (t(this, O).style.width = "100%", t(this, O).style.height = t(this, Vt) + "px"), r(this, Ge, e - t(this, Vt)), this.scrollElement.scrollSize <= 0 ? this.style.display = "none" : this.style.display = "", t(this, Ke).call(this);
|
|
834
834
|
});
|
|
835
835
|
i(this, Ke, () => {
|
|
836
|
-
r(this, Ue, this.scrollElement.currentProgress * t(this, Ge)), t(this,
|
|
836
|
+
r(this, Ue, this.scrollElement.currentProgress * t(this, Ge)), t(this, kt) ? t(this, O).style.transform = `translate3d(${t(this, Ue)}px, 0px, 0px)` : t(this, O).style.transform = `translate3d(0px, ${t(this, Ue)}px, 0px)`;
|
|
837
837
|
});
|
|
838
838
|
i(this, gs, () => {
|
|
839
839
|
this.setAttribute("axis", this.scrollElement.axisCSSProperty.current);
|
|
@@ -841,14 +841,14 @@ class zi extends is {
|
|
|
841
841
|
i(this, vs, (e) => {
|
|
842
842
|
document.documentElement.classList.add("grabbing"), xi(
|
|
843
843
|
(u) => {
|
|
844
|
-
const g = t(this,
|
|
844
|
+
const g = t(this, kt) ? u.x : u.y, v = this.scrollElement.distance / t(this, Ge), C = (g - h) * v;
|
|
845
845
|
this.scrollElement.setPosition(s + C);
|
|
846
846
|
},
|
|
847
847
|
() => {
|
|
848
848
|
document.documentElement.classList.remove("grabbing");
|
|
849
849
|
}
|
|
850
850
|
);
|
|
851
|
-
const s = this.scrollElement.damped.target, h = t(this,
|
|
851
|
+
const s = this.scrollElement.damped.target, h = t(this, kt) ? e.x : e.y;
|
|
852
852
|
});
|
|
853
853
|
if (q) {
|
|
854
854
|
const e = this.attachShadow({ mode: "open" });
|
|
@@ -897,7 +897,7 @@ class zi extends is {
|
|
|
897
897
|
this.removeAttribute("drag-dead-zone"), this.style.display = "", t(this, O).removeEventListener("pointerdown", t(this, vs)), pt.unsubscribe(t(this, Yt)), os.unsubscribe(t(this, Yt)), this.scrollElement.offScroll(t(this, Ke)), this.scrollElement.axisCSSProperty.unsubscribe(t(this, gs));
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
|
-
Xt = new WeakMap(), O = new WeakMap(),
|
|
900
|
+
Xt = new WeakMap(), O = new WeakMap(), kt = new WeakMap(), Vt = new WeakMap(), Ge = new WeakMap(), Ue = new WeakMap(), Yt = new WeakMap(), Ke = new WeakMap(), gs = new WeakMap(), vs = new WeakMap();
|
|
901
901
|
q && !customElements.get("e-scrollbar") && customElements.define("e-scrollbar", zi);
|
|
902
902
|
var Ze, je, Je;
|
|
903
903
|
class Bs extends is {
|
|
@@ -944,31 +944,31 @@ class Ai extends Bs {
|
|
|
944
944
|
}
|
|
945
945
|
Qe = new WeakMap();
|
|
946
946
|
q && !customElements.get("e-scroll-set-button") && customElements.define("e-scroll-set-button", Ai);
|
|
947
|
-
var
|
|
947
|
+
var zt, Xe;
|
|
948
948
|
class Ii extends Bs {
|
|
949
949
|
constructor() {
|
|
950
950
|
super(...arguments);
|
|
951
|
-
i(this,
|
|
951
|
+
i(this, zt, new l(this, "--step", 1));
|
|
952
952
|
i(this, Xe, () => {
|
|
953
|
-
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this,
|
|
953
|
+
this.scrollElement.loopCSSProperty.current ? this.removeAttribute("disabled") : t(this, zt).current > 0 && this.scrollElement.scrollLine === "end" || t(this, zt).current < 0 && this.scrollElement.scrollLine === "start" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
handleClick(e) {
|
|
957
|
-
this.scrollElement.shiftSections(t(this,
|
|
957
|
+
this.scrollElement.shiftSections(t(this, zt).current, e);
|
|
958
958
|
}
|
|
959
959
|
connectedCallback() {
|
|
960
|
-
super.connectedCallback(), this.scrollElement && (t(this,
|
|
960
|
+
super.connectedCallback(), this.scrollElement && (t(this, zt).subscribe(() => {
|
|
961
961
|
t(this, Xe).call(this);
|
|
962
|
-
}), t(this,
|
|
962
|
+
}), t(this, zt).observe(), this.scrollElement.addEventListener(
|
|
963
963
|
"scrollLine",
|
|
964
964
|
t(this, Xe)
|
|
965
965
|
), t(this, Xe).call(this));
|
|
966
966
|
}
|
|
967
967
|
disconnectedCallback() {
|
|
968
|
-
super.disconnectedCallback(), t(this,
|
|
968
|
+
super.disconnectedCallback(), t(this, zt).close(), this.removeAttribute("disabled");
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
|
-
|
|
971
|
+
zt = new WeakMap(), Xe = new WeakMap();
|
|
972
972
|
q && !customElements.get("e-scroll-step-button") && customElements.define("e-scroll-step-button", Ii);
|
|
973
973
|
var nt, _t, Ye, ys, Cs, _e;
|
|
974
974
|
class Mi {
|
|
@@ -1037,7 +1037,7 @@ class Fi extends is {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
Ve = new WeakMap(), te = new WeakMap(), ot = new WeakMap();
|
|
1039
1039
|
q && !customElements.get("e-scroll-bullet-buttons") && customElements.define("e-scroll-bullet-buttons", Fi);
|
|
1040
|
-
var ee, se, ie, re,
|
|
1040
|
+
var ee, se, ie, re, At, It, Mt, Ft, I, H, $, B, Tt, k, lt, ct, _, Rt, ze, ut, at, dt, w, W, N, tt, et, Z, ts, S, Dt, he, es, x, ft, R, M, j, Ae, Ot, y, ne, m, ti, ei, si, ii, ri, hi, ss, Ie, Ds, de, ni, oi, Os;
|
|
1041
1041
|
class Ti extends is {
|
|
1042
1042
|
constructor() {
|
|
1043
1043
|
super(...arguments);
|
|
@@ -1046,20 +1046,20 @@ class Ti extends is {
|
|
|
1046
1046
|
i(this, se);
|
|
1047
1047
|
i(this, ie);
|
|
1048
1048
|
i(this, re);
|
|
1049
|
-
i(this, zt);
|
|
1050
1049
|
i(this, At);
|
|
1051
1050
|
i(this, It);
|
|
1052
1051
|
i(this, Mt);
|
|
1052
|
+
i(this, Ft);
|
|
1053
1053
|
i(this, I);
|
|
1054
1054
|
i(this, H);
|
|
1055
1055
|
i(this, $);
|
|
1056
1056
|
i(this, B);
|
|
1057
|
-
i(this,
|
|
1057
|
+
i(this, Tt);
|
|
1058
1058
|
i(this, k);
|
|
1059
1059
|
i(this, lt);
|
|
1060
1060
|
i(this, ct);
|
|
1061
1061
|
i(this, _);
|
|
1062
|
-
i(this,
|
|
1062
|
+
i(this, Rt);
|
|
1063
1063
|
i(this, ze);
|
|
1064
1064
|
i(this, ut);
|
|
1065
1065
|
i(this, at);
|
|
@@ -1072,7 +1072,7 @@ class Ti extends is {
|
|
|
1072
1072
|
i(this, Z);
|
|
1073
1073
|
i(this, ts);
|
|
1074
1074
|
i(this, S);
|
|
1075
|
-
i(this,
|
|
1075
|
+
i(this, Dt);
|
|
1076
1076
|
i(this, he);
|
|
1077
1077
|
i(this, es);
|
|
1078
1078
|
i(this, x);
|
|
@@ -1081,19 +1081,19 @@ class Ti extends is {
|
|
|
1081
1081
|
i(this, M);
|
|
1082
1082
|
i(this, j);
|
|
1083
1083
|
i(this, Ae);
|
|
1084
|
-
i(this,
|
|
1084
|
+
i(this, Ot);
|
|
1085
1085
|
i(this, y);
|
|
1086
1086
|
i(this, ne);
|
|
1087
1087
|
i(this, ss);
|
|
1088
1088
|
i(this, Ie);
|
|
1089
|
-
r(this, ee, new l(this, "--damping", 20)), r(this, se, new l(this, "--mass", 0)), r(this, ie, new l(this, "--stiffness", 0)), r(this, re, new l(this, "--target", "")), r(this,
|
|
1089
|
+
r(this, ee, new l(this, "--damping", 20)), r(this, se, new l(this, "--mass", 0)), r(this, ie, new l(this, "--stiffness", 0)), r(this, re, new l(this, "--target", "")), r(this, At, new l(this, "--disabled", !1)), r(this, It, new l(
|
|
1090
1090
|
this,
|
|
1091
1091
|
"--distance-offset",
|
|
1092
1092
|
0,
|
|
1093
1093
|
{ rawValueCheck: !1 }
|
|
1094
|
-
)), r(this,
|
|
1094
|
+
)), r(this, Mt, new l(this, "--start-offset", 0, {
|
|
1095
1095
|
rawValueCheck: !1
|
|
1096
|
-
})), r(this,
|
|
1096
|
+
})), r(this, Ft, new l(
|
|
1097
1097
|
this,
|
|
1098
1098
|
"--capture-once",
|
|
1099
1099
|
!1
|
|
@@ -1105,7 +1105,7 @@ class Ti extends is {
|
|
|
1105
1105
|
this,
|
|
1106
1106
|
"--captured-from-finish",
|
|
1107
1107
|
""
|
|
1108
|
-
)), r(this,
|
|
1108
|
+
)), r(this, Tt, new l(
|
|
1109
1109
|
this,
|
|
1110
1110
|
"--released-from-start",
|
|
1111
1111
|
""
|
|
@@ -1117,7 +1117,7 @@ class Ti extends is {
|
|
|
1117
1117
|
this,
|
|
1118
1118
|
"--progress-arc-var",
|
|
1119
1119
|
""
|
|
1120
|
-
)), r(this,
|
|
1120
|
+
)), r(this, Rt, new l(
|
|
1121
1121
|
this,
|
|
1122
1122
|
"--progress-arc-mult",
|
|
1123
1123
|
1
|
|
@@ -1125,13 +1125,13 @@ class Ti extends is {
|
|
|
1125
1125
|
this,
|
|
1126
1126
|
"--animation-var-type",
|
|
1127
1127
|
"target"
|
|
1128
|
-
)), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ue(!1)), r(this, W, new ue(!1)), r(this, N, new ue(!1)), r(this, tt, new ue(!1)), r(this, et, new ue(!1)), r(this, Z, new ue(!1)), r(this, ts, []), r(this, S, this), r(this,
|
|
1129
|
-
r(this, he, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this,
|
|
1128
|
+
)), r(this, ut, new l(this, "--distance-var", "")), r(this, at, new l(this, "--start-var", "")), r(this, dt, new l(this, "--finish-var", "")), r(this, w, new ue(!1)), r(this, W, new ue(!1)), r(this, N, new ue(!1)), r(this, tt, new ue(!1)), r(this, et, new ue(!1)), r(this, Z, new ue(!1)), r(this, ts, []), r(this, S, this), r(this, Dt, 0), r(this, he, 0), r(this, es, 0), r(this, x, new Xs(0, { order: Qs.SEGMENT, min: 0, max: 1 })), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), r(this, Ot, !1), r(this, y, !0), r(this, ne, !1), this.resize = () => {
|
|
1129
|
+
r(this, he, this.scrollElement.vertical ? this.offsetHeight : this.offsetWidth), r(this, Dt, this.scrollElement.vertical ? ls(this, this.scrollElement) : cs(this, this.scrollElement));
|
|
1130
1130
|
const e = bi(
|
|
1131
1131
|
this,
|
|
1132
1132
|
this.scrollElement.vertical ? "top" : "left"
|
|
1133
1133
|
);
|
|
1134
|
-
r(this,
|
|
1134
|
+
r(this, Dt, t(this, Dt) - e), r(this, R, this.getStart()), r(this, M, this.getDistance()), r(this, R, t(this, R) + t(this, Mt).current), r(this, M, t(this, M) + t(this, It).current), r(this, j, t(this, R) + t(this, M)), this.scrollElement.currentScrollValue > t(this, j) && !t(this, w).current && !t(this, W).current && (t(this, w).current = !0), this.setVar(t(this, at).current, t(this, R)), this.setVar(t(this, dt).current, t(this, j)), this.setVar(t(this, ut).current, t(this, M)), t(this, x).max = t(this, M), r(this, Ae, !0), t(this, Ie).call(this);
|
|
1135
1135
|
}, this.findAnotherScrollEntries = xs(() => {
|
|
1136
1136
|
const e = le.getAll(this).reverse();
|
|
1137
1137
|
let s = 0;
|
|
@@ -1145,13 +1145,13 @@ class Ti extends is {
|
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
get distanceOffsetCSSProperty() {
|
|
1148
|
-
return t(this,
|
|
1148
|
+
return t(this, It);
|
|
1149
1149
|
}
|
|
1150
1150
|
get startOffsetCSSProperty() {
|
|
1151
|
-
return t(this,
|
|
1151
|
+
return t(this, Mt);
|
|
1152
1152
|
}
|
|
1153
1153
|
get captureOnceCSSProperty() {
|
|
1154
|
-
return t(this,
|
|
1154
|
+
return t(this, Ft);
|
|
1155
1155
|
}
|
|
1156
1156
|
get capturedCSSProperty() {
|
|
1157
1157
|
return t(this, I);
|
|
@@ -1166,7 +1166,7 @@ class Ti extends is {
|
|
|
1166
1166
|
return t(this, B);
|
|
1167
1167
|
}
|
|
1168
1168
|
get releasedFromStartCSSProperty() {
|
|
1169
|
-
return t(this,
|
|
1169
|
+
return t(this, Tt);
|
|
1170
1170
|
}
|
|
1171
1171
|
get releasedFromFinishCSSProperty() {
|
|
1172
1172
|
return t(this, k);
|
|
@@ -1181,7 +1181,7 @@ class Ti extends is {
|
|
|
1181
1181
|
return t(this, _);
|
|
1182
1182
|
}
|
|
1183
1183
|
get progressArcMultCSSProperty() {
|
|
1184
|
-
return t(this,
|
|
1184
|
+
return t(this, Rt);
|
|
1185
1185
|
}
|
|
1186
1186
|
get animationVarTypeCSSProperty() {
|
|
1187
1187
|
return t(this, ze);
|
|
@@ -1196,7 +1196,7 @@ class Ti extends is {
|
|
|
1196
1196
|
return t(this, dt);
|
|
1197
1197
|
}
|
|
1198
1198
|
get disabledCSSProperty() {
|
|
1199
|
-
return t(this,
|
|
1199
|
+
return t(this, At);
|
|
1200
1200
|
}
|
|
1201
1201
|
get dampingCSSProperty() {
|
|
1202
1202
|
return t(this, ee);
|
|
@@ -1229,7 +1229,7 @@ class Ti extends is {
|
|
|
1229
1229
|
return t(this, Z);
|
|
1230
1230
|
}
|
|
1231
1231
|
get directionPosition() {
|
|
1232
|
-
return t(this,
|
|
1232
|
+
return t(this, Dt);
|
|
1233
1233
|
}
|
|
1234
1234
|
get directionSize() {
|
|
1235
1235
|
return t(this, he);
|
|
@@ -1241,7 +1241,7 @@ class Ti extends is {
|
|
|
1241
1241
|
return t(this, ft);
|
|
1242
1242
|
}
|
|
1243
1243
|
get progressArc() {
|
|
1244
|
-
return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this,
|
|
1244
|
+
return Math.abs(Math.cos(t(this, ft) * Math.PI)) * t(this, Rt).current;
|
|
1245
1245
|
}
|
|
1246
1246
|
get start() {
|
|
1247
1247
|
return t(this, R);
|
|
@@ -1253,7 +1253,7 @@ class Ti extends is {
|
|
|
1253
1253
|
return t(this, M);
|
|
1254
1254
|
}
|
|
1255
1255
|
get isCapturedOnce() {
|
|
1256
|
-
return t(this,
|
|
1256
|
+
return t(this, Ot);
|
|
1257
1257
|
}
|
|
1258
1258
|
get isDisabled() {
|
|
1259
1259
|
return t(this, y);
|
|
@@ -1268,10 +1268,10 @@ class Ti extends is {
|
|
|
1268
1268
|
const h = Math.round(e);
|
|
1269
1269
|
t(this, w).current && (h >= t(this, R) ? t(this, N).current || o(this, m, si).call(this) : t(this, N).current && !t(this, tt).current && o(this, m, ri).call(this), h < t(this, j) ? t(this, Z).current && !t(this, et).current && o(this, m, ii).call(this) : t(this, N).current && !t(this, Z).current && o(this, m, hi).call(this)), h >= t(this, R) && h < t(this, j) ? t(this, w).current || o(this, m, ti).call(this) : t(this, w).current && (t(this, x).set(
|
|
1270
1270
|
mi(t(this, M) / 2, t(this, x).target, 0, t(this, M))
|
|
1271
|
-
), o(this, m, ei).call(this)), t(this,
|
|
1271
|
+
), o(this, m, ei).call(this)), t(this, Ot) && t(this, Ft).current && (t(this, I).current && t(this, S).classList.add(t(this, I).current), r(this, y, !0));
|
|
1272
1272
|
}
|
|
1273
1273
|
disable() {
|
|
1274
|
-
this.style.cssText = "", r(this,
|
|
1274
|
+
this.style.cssText = "", r(this, Dt, 0), r(this, he, 0), t(this, x).reset(), r(this, ft, 0), r(this, R, 0), r(this, M, 0), r(this, j, 0), r(this, Ae, !1), t(this, w).current = !1, t(this, W).current = !1, t(this, N).current = !1, t(this, tt).current = !1, t(this, et).current = !1, t(this, Z).current = !1, r(this, Ot, !1), r(this, y, !0), o(this, m, Os).call(this);
|
|
1275
1275
|
}
|
|
1276
1276
|
enable() {
|
|
1277
1277
|
r(this, y, !1);
|
|
@@ -1307,9 +1307,9 @@ class Ti extends is {
|
|
|
1307
1307
|
composed: !0,
|
|
1308
1308
|
custom: !0
|
|
1309
1309
|
});
|
|
1310
|
-
}), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this,
|
|
1310
|
+
}), t(this, ee).observe(), t(this, se).observe(), t(this, ie).observe(), t(this, re).observe(), t(this, At).observe(), t(this, It).observe(), t(this, Mt).observe(), t(this, Ft).observe(), t(this, I).observe(), t(this, H).observe(), t(this, $).observe(), t(this, B).observe(), t(this, Tt).observe(), t(this, k).observe(), t(this, lt).observe(), t(this, ct).observe(), t(this, _).observe(), t(this, Rt).observe(), t(this, ze).observe(), t(this, ut).observe(), t(this, at).observe(), t(this, dt).observe();
|
|
1311
1311
|
let e = !1;
|
|
1312
|
-
this.findAnotherScrollEntries(), t(this,
|
|
1312
|
+
this.findAnotherScrollEntries(), t(this, At).current || this.enable(), t(this, ee).subscribe((s) => {
|
|
1313
1313
|
t(this, x).damping = s.current;
|
|
1314
1314
|
}), t(this, se).subscribe((s) => {
|
|
1315
1315
|
t(this, x).mass = s.current;
|
|
@@ -1317,11 +1317,11 @@ class Ti extends is {
|
|
|
1317
1317
|
t(this, x).stiffness = s.current;
|
|
1318
1318
|
}), t(this, re).subscribe((s) => {
|
|
1319
1319
|
s.previous && o(this, m, Os).call(this), s.current ? s.current === "parent" ? r(this, S, this.parentElement || this) : r(this, S, document.querySelector(s.current) || this) : r(this, S, this);
|
|
1320
|
-
}), t(this,
|
|
1320
|
+
}), t(this, At).subscribe((s) => {
|
|
1321
1321
|
s.current && !s.previous ? this.disable() : !s.current && s.previous && (this.resize(), this.enable());
|
|
1322
|
-
}), t(this,
|
|
1322
|
+
}), t(this, Mt).subscribe(() => {
|
|
1323
1323
|
e && !t(this, y) && this.resize();
|
|
1324
|
-
}), t(this,
|
|
1324
|
+
}), t(this, It).subscribe(() => {
|
|
1325
1325
|
e && !t(this, y) && this.resize();
|
|
1326
1326
|
}), t(this, I).subscribe((s) => {
|
|
1327
1327
|
o(this, m, de).call(this, s);
|
|
@@ -1331,11 +1331,11 @@ class Ti extends is {
|
|
|
1331
1331
|
o(this, m, de).call(this, s);
|
|
1332
1332
|
}), t(this, H).subscribe((s) => {
|
|
1333
1333
|
o(this, m, de).call(this, s);
|
|
1334
|
-
}), t(this,
|
|
1334
|
+
}), t(this, Tt).subscribe((s) => {
|
|
1335
1335
|
o(this, m, de).call(this, s);
|
|
1336
1336
|
}), t(this, k).subscribe((s) => {
|
|
1337
1337
|
o(this, m, de).call(this, s);
|
|
1338
|
-
}), t(this,
|
|
1338
|
+
}), t(this, Ft).subscribe((s) => {
|
|
1339
1339
|
t(this, y) || !s.current && s.previous && (this.resize(), this.enable());
|
|
1340
1340
|
}), t(this, lt).subscribe((s) => {
|
|
1341
1341
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.passed.current));
|
|
@@ -1343,7 +1343,7 @@ class Ti extends is {
|
|
|
1343
1343
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, ft)));
|
|
1344
1344
|
}), t(this, _).subscribe((s) => {
|
|
1345
1345
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, this.progressArc));
|
|
1346
|
-
}), t(this,
|
|
1346
|
+
}), t(this, Rt).subscribe((s) => {
|
|
1347
1347
|
t(this, y) || o(this, m, Ds).call(this);
|
|
1348
1348
|
}), t(this, at).subscribe((s) => {
|
|
1349
1349
|
t(this, y) || (this.removeVar(s.previous), this.setVar(s.current, t(this, R)));
|
|
@@ -1366,7 +1366,7 @@ class Ti extends is {
|
|
|
1366
1366
|
pt.unsubscribe(t(this, ss)), this.scrollElement.offScroll(t(this, Ie)), this.scrollElement.removeEventListener(
|
|
1367
1367
|
"scrollSectionsChange",
|
|
1368
1368
|
this.findAnotherScrollEntries
|
|
1369
|
-
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this,
|
|
1369
|
+
), this.scrollElement.removeEventListener("scrollResize", this.resize), t(this, ee).close(), t(this, se).close(), t(this, ie).close(), t(this, re).close(), t(this, At).close(), t(this, It).close(), t(this, Mt).close(), t(this, Ft).close(), t(this, I).close(), t(this, H).close(), t(this, $).close(), t(this, B).close(), t(this, Tt).close(), t(this, k).close(), t(this, lt).close(), t(this, ct).close(), t(this, _).close(), t(this, Rt).close(), t(this, ut).close(), t(this, at).close(), t(this, dt).close(), t(this, w).close(), t(this, W).close(), t(this, N).close(), t(this, tt).close(), t(this, et).close(), t(this, Z).close(), this.disable(), t(this, x).close();
|
|
1370
1370
|
}
|
|
1371
1371
|
removeVar(e) {
|
|
1372
1372
|
e && t(this, S).style.removeProperty(`--${e}`);
|
|
@@ -1381,17 +1381,17 @@ class Ti extends is {
|
|
|
1381
1381
|
return t(this, he) + t(this, es);
|
|
1382
1382
|
}
|
|
1383
1383
|
getStart() {
|
|
1384
|
-
return t(this,
|
|
1384
|
+
return t(this, Dt) - t(this, es);
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(),
|
|
1388
|
-
t(this, w).current = !0, t(this, W).current = !1, r(this,
|
|
1387
|
+
ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), At = new WeakMap(), It = new WeakMap(), Mt = new WeakMap(), Ft = new WeakMap(), I = new WeakMap(), H = new WeakMap(), $ = new WeakMap(), B = new WeakMap(), Tt = new WeakMap(), k = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), _ = new WeakMap(), Rt = new WeakMap(), ze = new WeakMap(), ut = new WeakMap(), at = new WeakMap(), dt = new WeakMap(), w = new WeakMap(), W = new WeakMap(), N = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Z = new WeakMap(), ts = new WeakMap(), S = new WeakMap(), Dt = new WeakMap(), he = new WeakMap(), es = new WeakMap(), x = new WeakMap(), ft = new WeakMap(), R = new WeakMap(), M = new WeakMap(), j = new WeakMap(), Ae = new WeakMap(), Ot = new WeakMap(), y = new WeakMap(), ne = new WeakMap(), m = new WeakSet(), ti = function() {
|
|
1388
|
+
t(this, w).current = !0, t(this, W).current = !1, r(this, Ot, !0), t(this, H).current && t(this, S).classList.remove(t(this, H).current), t(this, k).current && t(this, S).classList.remove(
|
|
1389
1389
|
t(this, k).current
|
|
1390
1390
|
), t(this, k).current && t(this, S).classList.remove(
|
|
1391
1391
|
t(this, k).current
|
|
1392
1392
|
), t(this, I).current && t(this, S).classList.add(t(this, I).current);
|
|
1393
1393
|
}, ei = function() {
|
|
1394
|
-
t(this, W).current = !0, t(this, w).current = !1, r(this,
|
|
1394
|
+
t(this, W).current = !0, t(this, w).current = !1, r(this, Ot, !0), t(this, I).current && t(this, S).classList.remove(t(this, I).current), t(this, $).current && t(this, S).classList.remove(
|
|
1395
1395
|
t(this, $).current
|
|
1396
1396
|
), t(this, B).current && t(this, S).classList.remove(
|
|
1397
1397
|
t(this, B).current
|
|
@@ -1430,7 +1430,7 @@ ee = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), re = new WeakMap(),
|
|
|
1430
1430
|
s && t(this, S).style.removeProperty(`--${s}`);
|
|
1431
1431
|
});
|
|
1432
1432
|
}, Os = function() {
|
|
1433
|
-
o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this,
|
|
1433
|
+
o(this, m, ni).call(this, t(this, I).current, t(this, $).current, t(this, B).current, t(this, H).current, t(this, Tt).current, t(this, k).current), o(this, m, oi).call(this, t(this, lt).current, t(this, ct).current, t(this, _).current, t(this, ut).current, t(this, at).current, t(this, dt).current);
|
|
1434
1434
|
};
|
|
1435
1435
|
q && !customElements.get("e-scroll-segment") && customElements.define("e-scroll-segment", Ti);
|
|
1436
1436
|
class Ri extends Bs {
|