vevet 5.1.3 → 5.1.4
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/cdn/vevet.iife.min.js +2 -2
- package/lib/cjs/components/SplitText/utils/wrapLines.js +1 -1
- package/lib/cjs/components/SplitText/utils/wrapLines.js.map +1 -1
- package/lib/cjs/manifest.json +1 -1
- package/lib/esm/components/SplitText/utils/wrapLines.js +1 -1
- package/lib/esm/components/SplitText/utils/wrapLines.js.map +1 -1
- package/lib/esm/manifest.json +1 -1
- package/package.json +1 -1
- package/src/components/SplitText/utils/wrapLines.ts +1 -1
- package/src/manifest.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Vevet=(()=>{var hi=Object.create;var ie=Object.defineProperty;var ci=Object.getOwnPropertyDescriptor;var di=Object.getOwnPropertyNames;var ui=Object.getPrototypeOf,pi=Object.prototype.hasOwnProperty;var F=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),fi=(s,e)=>{for(var t in e)ie(s,t,{get:e[t],enumerable:!0})},Mt=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of di(e))!pi.call(s,r)&&r!==t&&ie(s,r,{get:()=>e[r],enumerable:!(i=ci(e,r))||i.enumerable});return s};var Ot=(s,e,t)=>(t=s!=null?hi(ui(s)):{},Mt(e||!s||!s.__esModule?ie(t,"default",{value:s,enumerable:!0}):t,s)),mi=s=>Mt(ie({},"__esModule",{value:!0}),s);var Kt=F((qr,Gt)=>{var Ut=!1,j,ye,xe,ae,le,Xt,he,Se,Ee,Me,Qt,Oe,Ie,qt,Yt;function O(){if(!Ut){Ut=!0;var s=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(s),t=/(Mac OS X)|(Windows)|(Linux)/.exec(s);if(Oe=/\b(iPhone|iP[ao]d)/.exec(s),Ie=/\b(iP[ao]d)/.exec(s),Me=/Android/i.exec(s),qt=/FBAN\/\w+;/i.exec(s),Yt=/Mobile/i.exec(s),Qt=!!/Win64/.exec(s),e){j=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,j&&document&&document.documentMode&&(j=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);Xt=i?parseFloat(i[1])+4:j,ye=e[2]?parseFloat(e[2]):NaN,xe=e[3]?parseFloat(e[3]):NaN,ae=e[4]?parseFloat(e[4]):NaN,ae?(e=/(?:Chrome\/(\d+\.\d+))/.exec(s),le=e&&e[1]?parseFloat(e[1]):NaN):le=NaN}else j=ye=xe=le=ae=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);he=r?parseFloat(r[1].replace("_",".")):!0}else he=!1;Se=!!t[2],Ee=!!t[3]}else he=Se=Ee=!1}}var Te={ie:function(){return O()||j},ieCompatibilityMode:function(){return O()||Xt>j},ie64:function(){return Te.ie()&&Qt},firefox:function(){return O()||ye},opera:function(){return O()||xe},webkit:function(){return O()||ae},safari:function(){return Te.webkit()},chrome:function(){return O()||le},windows:function(){return O()||Se},osx:function(){return O()||he},linux:function(){return O()||Ee},iphone:function(){return O()||Oe},mobile:function(){return O()||Oe||Ie||Me||Yt},nativeApp:function(){return O()||qt},android:function(){return O()||Me},ipad:function(){return O()||Ie}};Gt.exports=Te});var Zt=F((Yr,Jt)=>{"use strict";var ce=!!(typeof window!="undefined"&&window.document&&window.document.createElement),zi={canUseDOM:ce,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:ce&&!!(window.addEventListener||window.attachEvent),canUseViewport:ce&&!!window.screen,isInWorker:!ce};Jt.exports=zi});var is=F((Gr,ss)=>{"use strict";var es=Zt(),ts;es.canUseDOM&&(ts=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Ni(s,e){if(!es.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+s,i=t in document;if(!i){var r=document.createElement("div");r.setAttribute(t,"return;"),i=typeof r[t]=="function"}return!i&&ts&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}ss.exports=Ni});var hs=F((Kr,ls)=>{"use strict";var Li=Kt(),Ai=is(),rs=10,ns=40,os=800;function as(s){var e=0,t=0,i=0,r=0;return"detail"in s&&(t=s.detail),"wheelDelta"in s&&(t=-s.wheelDelta/120),"wheelDeltaY"in s&&(t=-s.wheelDeltaY/120),"wheelDeltaX"in s&&(e=-s.wheelDeltaX/120),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(e=t,t=0),i=e*rs,r=t*rs,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=ns,r*=ns):(i*=os,r*=os)),i&&!e&&(e=i<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:e,spinY:t,pixelX:i,pixelY:r}}as.getEventType=function(){return Li.firefox()?"DOMMouseScroll":Ai("wheel")?"wheel":"mousewheel"};ls.exports=as});var ds=F((Jr,cs)=>{cs.exports=hs()});var Js=F((ee,G)=>{var Yi=1/0,js=9007199254740991,Gi=4294967295,Ki="[object Function]",Ji="[object GeneratorFunction]",Zi="[object RegExp]",er="[object Symbol]",tr=/^(?:0|[1-9]\d*)$/,wt="\\ud800-\\udfff",Ws="\\u0300-\\u036f\\ufe20-\\ufe23",Bs="\\u20d0-\\u20f0",Vs="\\ufe0e\\ufe0f",sr="["+wt+"]",vt="["+Ws+Bs+"]",bt="\\ud83c[\\udffb-\\udfff]",ir="(?:"+vt+"|"+bt+")",$s="[^"+wt+"]",Fs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",Us="\\u200d",Xs=ir+"?",Qs="["+Vs+"]?",rr="(?:"+Us+"(?:"+[$s,Fs,Hs].join("|")+")"+Qs+Xs+")*",nr=Qs+Xs+rr,or="(?:"+[$s+vt+"?",vt,Fs,Hs,sr].join("|")+")",ar=RegExp(bt+"(?="+bt+")|"+or+nr,"g"),lr=RegExp("["+Us+wt+Ws+Bs+Vs+"]"),qs=typeof global=="object"&&global&&global.Object===Object&&global,hr=typeof self=="object"&&self&&self.Object===Object&&self,cr=qs||hr||Function("return this")(),Ys=typeof ee=="object"&&ee&&!ee.nodeType&&ee,Ps=Ys&&typeof G=="object"&&G&&!G.nodeType&&G,dr=Ps&&Ps.exports===Ys,zs=dr&&qs.process,Ns=function(){try{return zs&&zs.binding("util")}catch(s){}}(),Ls=Ns&&Ns.isRegExp;function ur(s){return s.split("")}function pr(s){return function(e){return s(e)}}function Gs(s){return lr.test(s)}function fr(s){return Gs(s)?mr(s):ur(s)}function mr(s){return s.match(ar)||[]}var _r=Object.prototype,yt=_r.toString,As=cr.Symbol,Ds=As?As.prototype:void 0,Rs=Ds?Ds.toString:void 0;function gr(s){return xt(s)&&yt.call(s)==Zi}function vr(s,e,t){var i=-1,r=s.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var n=Array(r);++i<r;)n[i]=s[i+e];return n}function Ks(s){if(typeof s=="string")return s;if(Tr(s))return Rs?Rs.call(s):"";var e=s+"";return e=="0"&&1/s==-Yi?"-0":e}function br(s,e,t){var i=s.length;return t=t===void 0?i:t,!e&&t>=i?s:vr(s,e,t)}function wr(s,e){return e=e==null?js:e,!!e&&(typeof s=="number"||tr.test(s))&&s>-1&&s%1==0&&s<e}function yr(s,e,t){if(!xt(t))return!1;var i=typeof e;return(i=="number"?Sr(t)&&wr(e,t.length):i=="string"&&e in t)?xr(t[e],s):!1}function xr(s,e){return s===e||s!==s&&e!==e}function Sr(s){return s!=null&&Mr(s.length)&&!Er(s)}function Er(s){var e=xt(s)?yt.call(s):"";return e==Ki||e==Ji}function Mr(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=js}function xt(s){var e=typeof s;return!!s&&(e=="object"||e=="function")}function Or(s){return!!s&&typeof s=="object"}var Ir=Ls?pr(Ls):gr;function Tr(s){return typeof s=="symbol"||Or(s)&&yt.call(s)==er}function Cr(s){return s==null?"":Ks(s)}function kr(s,e,t){return t&&typeof t!="number"&&yr(s,e,t)&&(e=t=void 0),t=t===void 0?Gi:t>>>0,t?(s=Cr(s),s&&(typeof e=="string"||e!=null&&!Ir(e))&&(e=Ks(e),!e&&Gs(s))?br(fr(s),0,t):s.split(e,t)):[]}G.exports=kr});var zr={};fi(zr,{Callbacks:()=>L,Canvas:()=>U,CanvasMedia:()=>lt,Cursor:()=>ht,EaseInBack:()=>Pe,EaseInBounce:()=>ze,EaseInCirc:()=>Ne,EaseInCubic:()=>Le,EaseInElastic:()=>Ae,EaseInExpo:()=>De,EaseInOutBack:()=>Re,EaseInOutBounce:()=>je,EaseInOutCirc:()=>We,EaseInOutCubic:()=>Be,EaseInOutElastic:()=>Ve,EaseInOutExpo:()=>$e,EaseInOutQuad:()=>Fe,EaseInOutQuart:()=>He,EaseInOutQuint:()=>Ue,EaseInOutSine:()=>Xe,EaseInQuad:()=>Qe,EaseInQuart:()=>qe,EaseInQuint:()=>Ye,EaseInSine:()=>Ge,EaseOutBack:()=>Ke,EaseOutBounce:()=>R,EaseOutCirc:()=>Je,EaseOutCubic:()=>W,EaseOutElastic:()=>Ze,EaseOutExpo:()=>et,EaseOutQuad:()=>tt,EaseOutQuart:()=>st,EaseOutQuint:()=>it,EaseOutSine:()=>rt,InView:()=>ct,Marquee:()=>dt,Module:()=>v,Pointers:()=>J,Preloader:()=>Z,ProgressPreloader:()=>ut,Raf:()=>k,Responsive:()=>at,ScrollProgress:()=>ft,Scrollbar:()=>pt,Snap:()=>gt,SnapSlide:()=>Y,SplitText:()=>St,Swipe:()=>V,Timeline:()=>P,addEventListener:()=>_,app:()=>Pr,clamp:()=>b,clampScope:()=>de,closest:()=>oe,damp:()=>ke,easing:()=>nt,inRange:()=>ot,initVevet:()=>m,lerp:()=>T,loop:()=>C,normalizeWheel:()=>Ce,onResize:()=>I,presetCssVars:()=>_s,scoped:()=>A,toPixels:()=>M,uid:()=>K,vevet:()=>li});var It=function(s,e,t){if(t||arguments.length===2)for(var i=0,r=e.length,n;i<r;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return s.concat(n||Array.prototype.slice.call(e))},_i=function(){function s(e,t,i){this.name=e,this.version=t,this.os=i,this.type="browser"}return s}();var gi=function(){function s(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return s}();var vi=function(){function s(e,t,i,r){this.name=e,this.version=t,this.os=i,this.bot=r,this.type="bot-device"}return s}();var bi=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var wi=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var yi=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,xi=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Tt=3,Si=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",yi]],Ct=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Pt(s){return s?kt(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new wi:typeof navigator!="undefined"?kt(navigator.userAgent):Oi()}function Ei(s){return s!==""&&Si.reduce(function(e,t){var i=t[0],r=t[1];if(e)return e;var n=r.exec(s);return!!n&&[i,n]},!1)}function kt(s){var e=Ei(s);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new bi;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<Tt&&(r=It(It([],r,!0),Ii(Tt-r.length),!0)):r=[];var n=r.join("."),o=Mi(s),a=xi.exec(s);return a&&a[1]?new vi(t,n,o,a[1]):new _i(t,n,o)}function Mi(s){for(var e=0,t=Ct.length;e<t;e++){var i=Ct[e],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function Oi(){var s=typeof process!="undefined"&&process.version;return s?new gi(process.version.slice(1)):null}function Ii(s){for(var e=[],t=0;t<s;t++)e.push("0");return e}var be=/iPhone/i,zt=/iPod/i,Nt=/iPad/i,Lt=/\biOS-universal(?:.+)Mac\b/i,we=/\bAndroid(?:.+)Mobile\b/i,At=/Android/i,H=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,re=/Silk/i,N=/Windows Phone/i,Dt=/\bWindows(?:.+)ARM\b/i,Rt=/BlackBerry/i,jt=/BB10/i,Wt=/Opera Mini/i,Bt=/\b(CriOS|Chrome)(?:.+)Mobile/i,Vt=/Mobile(?:.+)Firefox\b/i,$t=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function Ti(s){return function(e){return e.test(s)}}function ne(s){var e={userAgent:"",platform:"",maxTouchPoints:0};!s&&typeof navigator!="undefined"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof s=="string"?e.userAgent=s:s&&s.userAgent&&(e={userAgent:s.userAgent,platform:s.platform,maxTouchPoints:s.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]!="undefined"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]!="undefined"&&(t=i[0]);var r=Ti(t),n={apple:{phone:r(be)&&!r(N),ipod:r(zt),tablet:!r(be)&&(r(Nt)||$t(e))&&!r(N),universal:r(Lt),device:(r(be)||r(zt)||r(Nt)||r(Lt)||$t(e))&&!r(N)},amazon:{phone:r(H),tablet:!r(H)&&r(re),device:r(H)||r(re)},android:{phone:!r(N)&&r(H)||!r(N)&&r(we),tablet:!r(N)&&!r(H)&&!r(we)&&(r(re)||r(At)),device:!r(N)&&(r(H)||r(re)||r(we)||r(At))||r(/\bokhttp\b/i)},windows:{phone:r(N),tablet:r(Dt),device:r(N)||r(Dt)},other:{blackberry:r(Rt),blackberry10:r(jt),opera:r(Wt),firefox:r(Vt),chrome:r(Bt),device:r(Rt)||r(jt)||r(Wt)||r(Vt)||r(Bt)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}var Ft={version:"5.1.3"};function oe(s,e){return!Array.isArray(e)||e.length===0?s:e.reduce((t,i)=>Math.abs(i-s)<Math.abs(t-s)?i:t)}var ki=typeof window!="undefined";function M(s){if(!ki)return 0;let e=m();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,e.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(s))return window.vevet5_toPixelsCache.get(s);let t=0,i=parseFloat(`${s}`);return typeof s=="number"?t=s:Number.isNaN(i)?t=0:s.includes("rem")?t=i*e.rem:s.includes("vw")?t=i*e.vw:s.includes("vh")?t=i*e.vh:s.includes("svh")?t=i*e.svh:s.includes("px")&&(t=i),window.vevet5_toPixelsCache.set(s,t),t}var Ht=0;function K(s="id"){return Ht+=1,`${s}_${Ht}`}var Pi=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},L=class{constructor(){this._list=[]}get list(){return this._list}add(e,t,i={}){let r=K("callback");return this._list.push(Object.assign(Object.assign({},i),{id:r,target:e,action:t})),{id:r,remove:()=>this.remove(r)}}on(e,t,i={}){let r=this.add(e,t,i);return()=>{r.remove()}}remove(e){return this._remove(e)}_remove(e,t=!1){return this._list=this._list.filter(r=>!!(r.id!==e||r.protected&&!t)),!this._list.some(({id:r})=>r===e)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(e,t){var{id:i,timeout:r,action:n}=e,o=Pi(e,["id","timeout","action"]);r?setTimeout(()=>n(t),r):n(t),o.once&&this._remove(i,!0)}emit(e,t){this._list.forEach(i=>{i.target===e&&this._callAction(i,t)})}destroy(){this._removeAll()}};function _(s,e,t,i){return s.addEventListener(e,t,i),()=>{s.removeEventListener(e,t,i)}}var us=Ot(ds());function Ce(s){return(0,us.default)(s)}function I({callback:s,element:e,viewportTarget:t="width",resizeDebounce:i=0,name:r}){let n=m(),o,a,h=!0,l,d=c=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>s(),c!=null?c:i)};return e&&(a=new ResizeObserver(()=>{if(h){h=!1;return}d(n.props.resizeDebounce+i)}),(Array.isArray(e)?e:[e]).forEach(c=>{a==null||a.observe(c)})),t&&(l=n.onResize(t,()=>d(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),l==null||l()},resize:()=>s(),debounceResize:()=>d()}}function ps({prefix:s,applyClassNames:e}){let t=new L,i=!1;document.readyState==="complete"?setTimeout(()=>r(),0):_(window,"load",()=>r());function r(){let o=document.documentElement,{body:a}=document;i=!0,e&&(o.classList.remove(`${s}loading`),a.classList.remove(`${s}loading`),o.classList.add(`${s}loaded`)),t.emit("loaded",void 0)}function n(o){return i?(o(),()=>{}):t.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>i}}function fs({prefix:s,props:e,isMobile:t}){let i=document.documentElement,r=document.getElementById("vevet_css_preset");r||(r=document.createElement("style"),r.id="vevet_css_preset",document.body.appendChild(r));let n=window.matchMedia(`(min-width: ${e.md+.001}px)`),o=window.matchMedia(`(min-width: ${e.sm+.001}px) and (max-width: ${e.md}px)`),a=window.matchMedia(`(max-width: ${e.sm}px)`),h=new L,l={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio,sm:!0,md:!1,lg:!1};u(),f(),g();let d;function c(){d&&(clearTimeout(d),d=void 0),e.resizeDebounce?d=setTimeout(()=>w(),e.resizeDebounce):w()}_(window,"resize",()=>c());let p=new ResizeObserver(()=>c());p.observe(document.documentElement),p.observe(document.body);function w(){let{width:y,height:x}=l;u(),f(),g();let{width:S,height:z}=l;h.emit("trigger",void 0),(S!==y||z!==x)&&h.emit("any",void 0),S!==y&&z===x&&h.emit("onlyWidth",void 0),z!==x&&S===y&&h.emit("onlyHeight",void 0),S!==y&&z!==x&&h.emit("both",void 0),S!==y&&h.emit("width",void 0),z!==x&&h.emit("height",void 0)}function u(){let{width:y}=l,x=document.documentElement,S=getComputedStyle(x);l.width=window.innerWidth,l.height=window.innerHeight,l.scrollbarWidth=window.innerWidth-x.clientWidth,l.vw=l.width/100,l.vh=l.height/100,l.rem=parseFloat(S.fontSize),l.landscape=l.width>l.height,l.portrait=l.width<l.height,l.dpr=window.devicePixelRatio,l.lowerDpr=t?Math.min(l.dpr,2):1,l.sm=!1,l.md=!1,l.lg=!1,a.matches?l.sm=!0:o.matches?l.md=!0:n.matches&&(l.lg=!0),(y!==l.width||!l.sHeight||!t)&&(l.sHeight=x.clientHeight,l.svh=l.sHeight/100)}function f(){e.applyClassNames&&(i.classList.toggle(`${s}lg`,l.lg),i.classList.toggle(`${s}md`,l.md),i.classList.toggle(`${s}sm`,l.sm),i.classList.toggle(`${s}landscape`,l.landscape),i.classList.toggle(`${s}portrait`,l.portrait))}function g(){r.innerHTML=`
|
|
1
|
+
"use strict";var Vevet=(()=>{var hi=Object.create;var ie=Object.defineProperty;var ci=Object.getOwnPropertyDescriptor;var di=Object.getOwnPropertyNames;var ui=Object.getPrototypeOf,pi=Object.prototype.hasOwnProperty;var F=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),fi=(s,e)=>{for(var t in e)ie(s,t,{get:e[t],enumerable:!0})},Mt=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of di(e))!pi.call(s,r)&&r!==t&&ie(s,r,{get:()=>e[r],enumerable:!(i=ci(e,r))||i.enumerable});return s};var Ot=(s,e,t)=>(t=s!=null?hi(ui(s)):{},Mt(e||!s||!s.__esModule?ie(t,"default",{value:s,enumerable:!0}):t,s)),mi=s=>Mt(ie({},"__esModule",{value:!0}),s);var Kt=F((qr,Gt)=>{var Ut=!1,j,ye,xe,ae,le,Xt,he,Se,Ee,Me,Qt,Oe,Ie,qt,Yt;function O(){if(!Ut){Ut=!0;var s=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(s),t=/(Mac OS X)|(Windows)|(Linux)/.exec(s);if(Oe=/\b(iPhone|iP[ao]d)/.exec(s),Ie=/\b(iP[ao]d)/.exec(s),Me=/Android/i.exec(s),qt=/FBAN\/\w+;/i.exec(s),Yt=/Mobile/i.exec(s),Qt=!!/Win64/.exec(s),e){j=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,j&&document&&document.documentMode&&(j=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);Xt=i?parseFloat(i[1])+4:j,ye=e[2]?parseFloat(e[2]):NaN,xe=e[3]?parseFloat(e[3]):NaN,ae=e[4]?parseFloat(e[4]):NaN,ae?(e=/(?:Chrome\/(\d+\.\d+))/.exec(s),le=e&&e[1]?parseFloat(e[1]):NaN):le=NaN}else j=ye=xe=le=ae=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);he=r?parseFloat(r[1].replace("_",".")):!0}else he=!1;Se=!!t[2],Ee=!!t[3]}else he=Se=Ee=!1}}var Te={ie:function(){return O()||j},ieCompatibilityMode:function(){return O()||Xt>j},ie64:function(){return Te.ie()&&Qt},firefox:function(){return O()||ye},opera:function(){return O()||xe},webkit:function(){return O()||ae},safari:function(){return Te.webkit()},chrome:function(){return O()||le},windows:function(){return O()||Se},osx:function(){return O()||he},linux:function(){return O()||Ee},iphone:function(){return O()||Oe},mobile:function(){return O()||Oe||Ie||Me||Yt},nativeApp:function(){return O()||qt},android:function(){return O()||Me},ipad:function(){return O()||Ie}};Gt.exports=Te});var Zt=F((Yr,Jt)=>{"use strict";var ce=!!(typeof window!="undefined"&&window.document&&window.document.createElement),zi={canUseDOM:ce,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:ce&&!!(window.addEventListener||window.attachEvent),canUseViewport:ce&&!!window.screen,isInWorker:!ce};Jt.exports=zi});var is=F((Gr,ss)=>{"use strict";var es=Zt(),ts;es.canUseDOM&&(ts=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Ni(s,e){if(!es.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+s,i=t in document;if(!i){var r=document.createElement("div");r.setAttribute(t,"return;"),i=typeof r[t]=="function"}return!i&&ts&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}ss.exports=Ni});var hs=F((Kr,ls)=>{"use strict";var Li=Kt(),Ai=is(),rs=10,ns=40,os=800;function as(s){var e=0,t=0,i=0,r=0;return"detail"in s&&(t=s.detail),"wheelDelta"in s&&(t=-s.wheelDelta/120),"wheelDeltaY"in s&&(t=-s.wheelDeltaY/120),"wheelDeltaX"in s&&(e=-s.wheelDeltaX/120),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(e=t,t=0),i=e*rs,r=t*rs,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=ns,r*=ns):(i*=os,r*=os)),i&&!e&&(e=i<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:e,spinY:t,pixelX:i,pixelY:r}}as.getEventType=function(){return Li.firefox()?"DOMMouseScroll":Ai("wheel")?"wheel":"mousewheel"};ls.exports=as});var ds=F((Jr,cs)=>{cs.exports=hs()});var Js=F((ee,G)=>{var Yi=1/0,js=9007199254740991,Gi=4294967295,Ki="[object Function]",Ji="[object GeneratorFunction]",Zi="[object RegExp]",er="[object Symbol]",tr=/^(?:0|[1-9]\d*)$/,wt="\\ud800-\\udfff",Ws="\\u0300-\\u036f\\ufe20-\\ufe23",Bs="\\u20d0-\\u20f0",Vs="\\ufe0e\\ufe0f",sr="["+wt+"]",vt="["+Ws+Bs+"]",bt="\\ud83c[\\udffb-\\udfff]",ir="(?:"+vt+"|"+bt+")",$s="[^"+wt+"]",Fs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",Us="\\u200d",Xs=ir+"?",Qs="["+Vs+"]?",rr="(?:"+Us+"(?:"+[$s,Fs,Hs].join("|")+")"+Qs+Xs+")*",nr=Qs+Xs+rr,or="(?:"+[$s+vt+"?",vt,Fs,Hs,sr].join("|")+")",ar=RegExp(bt+"(?="+bt+")|"+or+nr,"g"),lr=RegExp("["+Us+wt+Ws+Bs+Vs+"]"),qs=typeof global=="object"&&global&&global.Object===Object&&global,hr=typeof self=="object"&&self&&self.Object===Object&&self,cr=qs||hr||Function("return this")(),Ys=typeof ee=="object"&&ee&&!ee.nodeType&&ee,Ps=Ys&&typeof G=="object"&&G&&!G.nodeType&&G,dr=Ps&&Ps.exports===Ys,zs=dr&&qs.process,Ns=function(){try{return zs&&zs.binding("util")}catch(s){}}(),Ls=Ns&&Ns.isRegExp;function ur(s){return s.split("")}function pr(s){return function(e){return s(e)}}function Gs(s){return lr.test(s)}function fr(s){return Gs(s)?mr(s):ur(s)}function mr(s){return s.match(ar)||[]}var _r=Object.prototype,yt=_r.toString,As=cr.Symbol,Ds=As?As.prototype:void 0,Rs=Ds?Ds.toString:void 0;function gr(s){return xt(s)&&yt.call(s)==Zi}function vr(s,e,t){var i=-1,r=s.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var n=Array(r);++i<r;)n[i]=s[i+e];return n}function Ks(s){if(typeof s=="string")return s;if(Tr(s))return Rs?Rs.call(s):"";var e=s+"";return e=="0"&&1/s==-Yi?"-0":e}function br(s,e,t){var i=s.length;return t=t===void 0?i:t,!e&&t>=i?s:vr(s,e,t)}function wr(s,e){return e=e==null?js:e,!!e&&(typeof s=="number"||tr.test(s))&&s>-1&&s%1==0&&s<e}function yr(s,e,t){if(!xt(t))return!1;var i=typeof e;return(i=="number"?Sr(t)&&wr(e,t.length):i=="string"&&e in t)?xr(t[e],s):!1}function xr(s,e){return s===e||s!==s&&e!==e}function Sr(s){return s!=null&&Mr(s.length)&&!Er(s)}function Er(s){var e=xt(s)?yt.call(s):"";return e==Ki||e==Ji}function Mr(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=js}function xt(s){var e=typeof s;return!!s&&(e=="object"||e=="function")}function Or(s){return!!s&&typeof s=="object"}var Ir=Ls?pr(Ls):gr;function Tr(s){return typeof s=="symbol"||Or(s)&&yt.call(s)==er}function Cr(s){return s==null?"":Ks(s)}function kr(s,e,t){return t&&typeof t!="number"&&yr(s,e,t)&&(e=t=void 0),t=t===void 0?Gi:t>>>0,t?(s=Cr(s),s&&(typeof e=="string"||e!=null&&!Ir(e))&&(e=Ks(e),!e&&Gs(s))?br(fr(s),0,t):s.split(e,t)):[]}G.exports=kr});var zr={};fi(zr,{Callbacks:()=>L,Canvas:()=>U,CanvasMedia:()=>lt,Cursor:()=>ht,EaseInBack:()=>Pe,EaseInBounce:()=>ze,EaseInCirc:()=>Ne,EaseInCubic:()=>Le,EaseInElastic:()=>Ae,EaseInExpo:()=>De,EaseInOutBack:()=>Re,EaseInOutBounce:()=>je,EaseInOutCirc:()=>We,EaseInOutCubic:()=>Be,EaseInOutElastic:()=>Ve,EaseInOutExpo:()=>$e,EaseInOutQuad:()=>Fe,EaseInOutQuart:()=>He,EaseInOutQuint:()=>Ue,EaseInOutSine:()=>Xe,EaseInQuad:()=>Qe,EaseInQuart:()=>qe,EaseInQuint:()=>Ye,EaseInSine:()=>Ge,EaseOutBack:()=>Ke,EaseOutBounce:()=>R,EaseOutCirc:()=>Je,EaseOutCubic:()=>W,EaseOutElastic:()=>Ze,EaseOutExpo:()=>et,EaseOutQuad:()=>tt,EaseOutQuart:()=>st,EaseOutQuint:()=>it,EaseOutSine:()=>rt,InView:()=>ct,Marquee:()=>dt,Module:()=>v,Pointers:()=>J,Preloader:()=>Z,ProgressPreloader:()=>ut,Raf:()=>k,Responsive:()=>at,ScrollProgress:()=>ft,Scrollbar:()=>pt,Snap:()=>gt,SnapSlide:()=>Y,SplitText:()=>St,Swipe:()=>V,Timeline:()=>P,addEventListener:()=>_,app:()=>Pr,clamp:()=>b,clampScope:()=>de,closest:()=>oe,damp:()=>ke,easing:()=>nt,inRange:()=>ot,initVevet:()=>m,lerp:()=>T,loop:()=>C,normalizeWheel:()=>Ce,onResize:()=>I,presetCssVars:()=>_s,scoped:()=>A,toPixels:()=>M,uid:()=>K,vevet:()=>li});var It=function(s,e,t){if(t||arguments.length===2)for(var i=0,r=e.length,n;i<r;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return s.concat(n||Array.prototype.slice.call(e))},_i=function(){function s(e,t,i){this.name=e,this.version=t,this.os=i,this.type="browser"}return s}();var gi=function(){function s(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return s}();var vi=function(){function s(e,t,i,r){this.name=e,this.version=t,this.os=i,this.bot=r,this.type="bot-device"}return s}();var bi=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var wi=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var yi=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,xi=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Tt=3,Si=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",yi]],Ct=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Pt(s){return s?kt(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new wi:typeof navigator!="undefined"?kt(navigator.userAgent):Oi()}function Ei(s){return s!==""&&Si.reduce(function(e,t){var i=t[0],r=t[1];if(e)return e;var n=r.exec(s);return!!n&&[i,n]},!1)}function kt(s){var e=Ei(s);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new bi;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<Tt&&(r=It(It([],r,!0),Ii(Tt-r.length),!0)):r=[];var n=r.join("."),o=Mi(s),a=xi.exec(s);return a&&a[1]?new vi(t,n,o,a[1]):new _i(t,n,o)}function Mi(s){for(var e=0,t=Ct.length;e<t;e++){var i=Ct[e],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function Oi(){var s=typeof process!="undefined"&&process.version;return s?new gi(process.version.slice(1)):null}function Ii(s){for(var e=[],t=0;t<s;t++)e.push("0");return e}var be=/iPhone/i,zt=/iPod/i,Nt=/iPad/i,Lt=/\biOS-universal(?:.+)Mac\b/i,we=/\bAndroid(?:.+)Mobile\b/i,At=/Android/i,H=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,re=/Silk/i,N=/Windows Phone/i,Dt=/\bWindows(?:.+)ARM\b/i,Rt=/BlackBerry/i,jt=/BB10/i,Wt=/Opera Mini/i,Bt=/\b(CriOS|Chrome)(?:.+)Mobile/i,Vt=/Mobile(?:.+)Firefox\b/i,$t=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function Ti(s){return function(e){return e.test(s)}}function ne(s){var e={userAgent:"",platform:"",maxTouchPoints:0};!s&&typeof navigator!="undefined"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof s=="string"?e.userAgent=s:s&&s.userAgent&&(e={userAgent:s.userAgent,platform:s.platform,maxTouchPoints:s.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]!="undefined"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]!="undefined"&&(t=i[0]);var r=Ti(t),n={apple:{phone:r(be)&&!r(N),ipod:r(zt),tablet:!r(be)&&(r(Nt)||$t(e))&&!r(N),universal:r(Lt),device:(r(be)||r(zt)||r(Nt)||r(Lt)||$t(e))&&!r(N)},amazon:{phone:r(H),tablet:!r(H)&&r(re),device:r(H)||r(re)},android:{phone:!r(N)&&r(H)||!r(N)&&r(we),tablet:!r(N)&&!r(H)&&!r(we)&&(r(re)||r(At)),device:!r(N)&&(r(H)||r(re)||r(we)||r(At))||r(/\bokhttp\b/i)},windows:{phone:r(N),tablet:r(Dt),device:r(N)||r(Dt)},other:{blackberry:r(Rt),blackberry10:r(jt),opera:r(Wt),firefox:r(Vt),chrome:r(Bt),device:r(Rt)||r(jt)||r(Wt)||r(Vt)||r(Bt)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}var Ft={version:"5.1.4"};function oe(s,e){return!Array.isArray(e)||e.length===0?s:e.reduce((t,i)=>Math.abs(i-s)<Math.abs(t-s)?i:t)}var ki=typeof window!="undefined";function M(s){if(!ki)return 0;let e=m();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,e.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(s))return window.vevet5_toPixelsCache.get(s);let t=0,i=parseFloat(`${s}`);return typeof s=="number"?t=s:Number.isNaN(i)?t=0:s.includes("rem")?t=i*e.rem:s.includes("vw")?t=i*e.vw:s.includes("vh")?t=i*e.vh:s.includes("svh")?t=i*e.svh:s.includes("px")&&(t=i),window.vevet5_toPixelsCache.set(s,t),t}var Ht=0;function K(s="id"){return Ht+=1,`${s}_${Ht}`}var Pi=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},L=class{constructor(){this._list=[]}get list(){return this._list}add(e,t,i={}){let r=K("callback");return this._list.push(Object.assign(Object.assign({},i),{id:r,target:e,action:t})),{id:r,remove:()=>this.remove(r)}}on(e,t,i={}){let r=this.add(e,t,i);return()=>{r.remove()}}remove(e){return this._remove(e)}_remove(e,t=!1){return this._list=this._list.filter(r=>!!(r.id!==e||r.protected&&!t)),!this._list.some(({id:r})=>r===e)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(e,t){var{id:i,timeout:r,action:n}=e,o=Pi(e,["id","timeout","action"]);r?setTimeout(()=>n(t),r):n(t),o.once&&this._remove(i,!0)}emit(e,t){this._list.forEach(i=>{i.target===e&&this._callAction(i,t)})}destroy(){this._removeAll()}};function _(s,e,t,i){return s.addEventListener(e,t,i),()=>{s.removeEventListener(e,t,i)}}var us=Ot(ds());function Ce(s){return(0,us.default)(s)}function I({callback:s,element:e,viewportTarget:t="width",resizeDebounce:i=0,name:r}){let n=m(),o,a,h=!0,l,d=c=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>s(),c!=null?c:i)};return e&&(a=new ResizeObserver(()=>{if(h){h=!1;return}d(n.props.resizeDebounce+i)}),(Array.isArray(e)?e:[e]).forEach(c=>{a==null||a.observe(c)})),t&&(l=n.onResize(t,()=>d(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),l==null||l()},resize:()=>s(),debounceResize:()=>d()}}function ps({prefix:s,applyClassNames:e}){let t=new L,i=!1;document.readyState==="complete"?setTimeout(()=>r(),0):_(window,"load",()=>r());function r(){let o=document.documentElement,{body:a}=document;i=!0,e&&(o.classList.remove(`${s}loading`),a.classList.remove(`${s}loading`),o.classList.add(`${s}loaded`)),t.emit("loaded",void 0)}function n(o){return i?(o(),()=>{}):t.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>i}}function fs({prefix:s,props:e,isMobile:t}){let i=document.documentElement,r=document.getElementById("vevet_css_preset");r||(r=document.createElement("style"),r.id="vevet_css_preset",document.body.appendChild(r));let n=window.matchMedia(`(min-width: ${e.md+.001}px)`),o=window.matchMedia(`(min-width: ${e.sm+.001}px) and (max-width: ${e.md}px)`),a=window.matchMedia(`(max-width: ${e.sm}px)`),h=new L,l={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio,sm:!0,md:!1,lg:!1};u(),f(),g();let d;function c(){d&&(clearTimeout(d),d=void 0),e.resizeDebounce?d=setTimeout(()=>w(),e.resizeDebounce):w()}_(window,"resize",()=>c());let p=new ResizeObserver(()=>c());p.observe(document.documentElement),p.observe(document.body);function w(){let{width:y,height:x}=l;u(),f(),g();let{width:S,height:z}=l;h.emit("trigger",void 0),(S!==y||z!==x)&&h.emit("any",void 0),S!==y&&z===x&&h.emit("onlyWidth",void 0),z!==x&&S===y&&h.emit("onlyHeight",void 0),S!==y&&z!==x&&h.emit("both",void 0),S!==y&&h.emit("width",void 0),z!==x&&h.emit("height",void 0)}function u(){let{width:y}=l,x=document.documentElement,S=getComputedStyle(x);l.width=window.innerWidth,l.height=window.innerHeight,l.scrollbarWidth=window.innerWidth-x.clientWidth,l.vw=l.width/100,l.vh=l.height/100,l.rem=parseFloat(S.fontSize),l.landscape=l.width>l.height,l.portrait=l.width<l.height,l.dpr=window.devicePixelRatio,l.lowerDpr=t?Math.min(l.dpr,2):1,l.sm=!1,l.md=!1,l.lg=!1,a.matches?l.sm=!0:o.matches?l.md=!0:n.matches&&(l.lg=!0),(y!==l.width||!l.sHeight||!t)&&(l.sHeight=x.clientHeight,l.svh=l.sHeight/100)}function f(){e.applyClassNames&&(i.classList.toggle(`${s}lg`,l.lg),i.classList.toggle(`${s}md`,l.md),i.classList.toggle(`${s}sm`,l.sm),i.classList.toggle(`${s}landscape`,l.landscape),i.classList.toggle(`${s}portrait`,l.portrait))}function g(){r.innerHTML=`
|
|
2
2
|
html {
|
|
3
3
|
--vw: ${l.vw}px;
|
|
4
4
|
--vh: ${l.vh}px;
|
|
@@ -173,7 +173,7 @@ presetVevetCss();`;function b(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);ret
|
|
|
173
173
|
height: 100%;
|
|
174
174
|
background: #333;
|
|
175
175
|
}
|
|
176
|
-
`,Q)}var q=typeof window!="undefined"?document.createElement("style"):null;q&&(q.innerHTML="* { cursor: grabbing !important; }");var qi=4,V=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],pointers:1,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,relative:!1,axis:null,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:e=>b(e,500,2e3),inertiaEasing:W,velocityModifier:!1,distanceModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50})}get isSwiping(){return this._isSwiping}get coords(){return this._coords}get container(){return this.props.container}get hasInertia(){return!!this._inertia}constructor(e){super(e),this._isSwiping=!1,this._isAborted=!1;let{container:t,buttons:i,pointers:r}=this.props;this._coords={timestamp:0,start:{x:0,y:0,angle:0},prev:{x:0,y:0,angle:0},current:{x:0,y:0,angle:0},diff:{x:0,y:0,angle:0},step:{x:0,y:0,angle:0},accum:{x:0,y:0}},this._velocities=[],this._cursorStyles=q===null||q===void 0?void 0:q.cloneNode(!0),this._pointers=new J({container:t,buttons:i,minPointers:r,maxPointers:r,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._pointers.on("start",()=>this._handlePointersStart());let n=_(t,"touchstart",o=>this._handleTouchStart(o),{passive:!1});this.onDestroy(()=>n()),this._setInlineStyles()}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._setInlineStyles()}_setInlineStyles(){let{container:e,axis:t}=this.props,i=this.props.grabCursor?"grab":"",r="none";t==="x"?r="pan-y":t==="y"&&(r="pan-x"),e.style.cursor=i,e.style.touchAction=r}_handleTouchStart(e){this.props.enabled&&(this.callbacks.emit("touchstart",e),this._preventEdgeSwipe(e))}_preventEdgeSwipe(e){if(!this.props.preventEdgeSwipe)return;let t=this.props.edgeSwipeThreshold,i=e.targetTouches[0].pageX;e.cancelable&&(i<=t||i>=m().width-t)&&(e.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let e=_(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),t=_(window,"mousemove",this._handleMouseMove.bind(this)),i=this._pointers.on("end",()=>{this._handleEnd(),i(),e(),t()});this.onDestroy(()=>{i(),e(),t()})}_handleTouchMove(e){this.callbacks.emit("touchmove",e),this._isSwiping&&this.props.preventTouchMove&&e.cancelable&&e.preventDefault(),this._handleMove(this._decodeCoords(e),"touch")}_handleMouseMove(e){this.props.requireCtrlKey&&!e.ctrlKey||(this.callbacks.emit("mousemove",e),this._handleMove(this._decodeCoords(e),"mouse"))}_decodeCoords(e){let{props:t}=this,i="touches"in e?e.touches[0].clientX:e.clientX,r="touches"in e?e.touches[0].clientY:e.clientY,n=i,o=r,a=m().width/2,h=m().height/2;if(t.relative){let c=t.container.getBoundingClientRect();n=i-c.left,o=r-c.top,a=c.left+c.width/2,h=c.top+c.height/2}let d=Math.atan2(r-h,i-a)*180/Math.PI;return{x:n,y:o,angle:d}}_handleMove(e,t){let i=this._coords;if(!this._isAborted){if(this._startCoord||(this._startCoord=Object.assign({},e)),this._startTime||(this._startTime=+Date.now()),!this._isSwiping){let{threshold:r,minTime:n,axis:o,willAbort:a}=this.props,h={x:e.x-this._startCoord.x,y:e.y-this._startCoord.y};if(Math.sqrt(Math.pow(h.x,2)+Math.pow(h.y,2))<r||+new Date-this._startTime<n)return;if(o){let l=Math.atan2(Math.abs(h.y),Math.abs(h.x))*180/Math.PI;if((o==="x"?l:90-l)>45){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}if(a({type:t,matrix:e,start:this._startCoord,diff:h})){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}this._isSwiping||(this.cancelInertia(),this._isSwiping=!0,this._startCoord=Object.assign({},e),i.timestamp=performance.now(),i.start=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.prev=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.current=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.diff={x:0,y:0,angle:0},i.step={x:0,y:0,angle:0},i.accum={x:0,y:0},this.callbacks.emit("start",this._coords),this.props.grabCursor&&this._cursorStyles&&m().body.append(this._cursorStyles)),this._move(e)}}_move({x:e,y:t,angle:i}){let r=this._coords,n=Object.assign({},r.start),o=Object.assign({},r.current),a={x:e,y:t,angle:i};r.timestamp=performance.now(),r.prev=o,r.current=a;let h=r.current.angle-r.prev.angle;h>180?h-=360:h<-180&&(h+=360),r.step={x:a.x-o.x,y:a.y-o.y,angle:h},r.diff={x:a.x-n.x,y:a.y-n.y,angle:r.diff.angle+r.step.angle},r.accum={x:r.accum.x+Math.abs(r.step.x),y:r.accum.y+Math.abs(r.step.y)},this.hasInertia||(this._velocities.push(Object.assign(Object.assign({},r.current),{timestamp:r.timestamp})),this._velocities.length>qi&&this._velocities.shift()),this.callbacks.emit("move",this._coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._cursorStyles.remove();let{x:e,y:t}=this._coords.diff,i=Math.abs(e),r=Math.abs(t),{directionThreshold:n}=this.props,o=i>r?"x":"y";o==="x"&&i>n&&(e>0?this.callbacks.emit("toRight",void 0):e<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(t>0?this.callbacks.emit("toBottom",void 0):t<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this._coords),this._velocities.length>0&&(this._velocities[this._velocities.length-1].timestamp=performance.now()),this.props.inertia&&this._endWithInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}get velocity(){let e=this._velocities;if(e.length<2)return{x:0,y:0,angle:0};let t=0,i=0,r=0,n=0;for(let o=1;o<e.length;o+=1){let a=e[o],h=e[o-1],l=a.x-h.x,d=a.y-h.y,c=a.angle-h.angle;c>180&&(c-=360),c<-180&&(c+=360);let p=Math.max(a.timestamp-h.timestamp,1),w=l/p*1e3,u=d/p*1e3,f=c/p*1e3,g=1/Math.exp(-p*.1);i+=w*g,r+=u*g,n+=f*g,t+=g}return t>0?{x:i/t,y:r/t,angle:n/t}:{x:0,y:0,angle:0}}_endWithInertia(){let{inertiaDuration:e,inertiaEasing:t,velocityModifier:i,inertiaRatio:r,inertiaDistanceThreshold:n}=this.props,o={x:this.velocity.x*r,y:this.velocity.y*r,angle:this.velocity.angle*r},a=i?i(o):o,{x:h,y:l,angle:d}=a,c=Math.sqrt(Math.pow(h,2)+Math.pow(l,2));if(c<n){this.callbacks.emit("inertiaFail",void 0);return}let p=e(c);if(Number.isNaN(p)||!Number.isFinite(p)||p<=0){this.callbacks.emit("inertiaFail",void 0);return}let w=Object.assign({},this.coords.current),u={x:0,y:0,angle:0};this._inertia=new P({duration:p,easing:t}),this._inertia.on("start",()=>{this.callbacks.emit("inertiaStart",void 0)}),this._inertia.on("update",({eased:f})=>{u.x=h*f,u.y=l*f,u.angle=d*f,this._move({x:w.x+u.x,y:w.y+u.y,angle:w.angle+u.angle}),this.callbacks.emit("inertia",void 0)}),this._inertia.on("end",()=>{this.cancelInertia(),this.callbacks.emit("inertiaEnd",void 0)}),setTimeout(()=>{var f;(f=this._inertia)===null||f===void 0||f.play()},0)}cancelInertia(){var e;this._inertia&&(this._inertia.progress<1&&this.callbacks.emit("inertiaCancel",void 0),(e=this._inertia)===null||e===void 0||e.destroy(),this._inertia=void 0)}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){var e;super._destroy(),this._pointers.destroy(),(e=this._inertia)===null||e===void 0||e.destroy(),this._cursorStyles.remove()}};var pt=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:10})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{minSize:50,autoSize:!0})}get prefix(){return`${m().prefix}scrollbar`}get container(){return this._props.container}get outer(){return this._outer}get track(){return this._track}get thumb(){return this._thumb}constructor(e){super(e),this._valueOnSwipeStart=0,this._prevScrollValue=0,ks(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),this.outer.classList.add(this._cn("_inited"))}_handleProps(){super._handleProps(),this.resize()}get axis(){return this.props.axis}get parent(){let{parent:e,container:t}=this.props;return e||(t instanceof Window?m().body:t)}get scrollElement(){return this.container instanceof Window?m().html:this.container}get scrollSize(){let{scrollElement:e}=this;return this.axis==="x"?e.scrollWidth:e.scrollHeight}get scrollableSize(){let{scrollElement:e}=this;return this.axis==="x"?this.scrollSize-e.clientWidth:this.scrollSize-e.clientHeight}get scrollValue(){let{axis:e}=this;return this.container instanceof Window?e==="x"?window.scrollX:window.scrollY:e==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_create(){let e=m(),{parent:t,scrollElement:i}=this,r=this.container instanceof Window;this._outer=this._createOuter(),t.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),r?(this._addTempClassName(e.html,this._cn("-scrollable")),this._addTempClassName(e.body,this._cn("-scrollable"))):this._addTempClassName(i,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let e=this._cn.bind(this),{props:t,axis:i}=this,r=document.createElement("div");return r.classList.add(e("")),r.classList.add(e(`_${i}`)),t.class&&r.classList.add(t.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),t.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let e=this._cn.bind(this),{axis:t}=this,i=document.createElement("div");return i.classList.add(e("__track")),i.classList.add(e(`__track_${t}`)),i}_createThumb(){let e=this._cn.bind(this),t=document.createElement("div");return t.classList.add(e("__thumb")),t.classList.add(e(`__thumb_${this.axis}`)),t}_setResize(){let e=()=>{let r=Array.from(this.scrollElement.children);return I({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},t=e();t.resize();let i=new MutationObserver(()=>{t.remove(),t=e(),t.debounceResize()});i.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{t.remove(),i.disconnect()})}_setOnscroll(){let e=_(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let e=new V({container:this.thumb,grabCursor:!0});e.on("start",t=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}),e.on("move",t=>{this._onSwipeMove(t),this.callbacks.emit("swipe",t)}),e.on("end",t=>{this.callbacks.emit("swipeEnd",t)}),e.on("touchmove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),e.on("mousemove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),this.onDestroy(()=>e.destroy())}resize(){let{scrollableSize:e,scrollSize:t,outer:i,track:r,thumb:n,props:o,axis:a}=this,{autoSize:h}=o,l=a==="x";i.classList.toggle(this._cn("_empty"),e===0);let d=l?r.offsetWidth:r.offsetHeight,c=M(o.minSize),p=c;h&&(p=b(d/(t/d),c,1/0)),l?n.style.width=`${p}px`:n.style.height=`${p}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:e,scrollableSize:t,axis:i,thumbSize:r,trackSize:n}=this,o=b(e/t),a=(n-r)*o,h=i==="x"?a:0,l=i==="y"?a:0;this._thumb.style.transform=`translate(${h}px, ${l}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:e,outer:t}=this,i=this._cn("_in-action");e!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{t.classList.contains(i)||(t.classList.add(i),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=e,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{t.classList.remove(i),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:e}){let{scrollElement:t,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,h=(i==="x"?e.x:e.y)/(r-n)*o,l=this._valueOnSwipeStart+h;t.scrollTo({top:i==="y"?l:void 0,left:i==="x"?l:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};var ft=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{root:null,optimized:!0,useSvh:!1})}_getMutable(){return Object.assign({},super._getMutable())}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}constructor(e){super(e),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized)return;let{section:e}=this.props,t=new IntersectionObserver(i=>{i.forEach(r=>{r.target===e&&(this._isVisible=r.isIntersecting,this.update())})});t.observe(e),this.onDestroy(()=>t.disconnect())}_setupScroll(){let e=this.props.root||window,t=_(e,"scroll",()=>{this._isVisible&&this.update()},{passive:!1});this.onDestroy(t)}update(){let{section:e,props:t}=this,i=t.root,r=m(),n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:t.useSvh?r.sHeight:r.height};this._rootBounds=i?i.getBoundingClientRect():o,this._sectionBounds={top:n.top-this._rootBounds.top,left:n.left-this._rootBounds.left,width:n.width,height:n.height},this.callbacks.emit("update",void 0)}getProgress(e,t,i,r){let n=de(this._sectionBounds.top,[e,i]),o=de(this._sectionBounds.left,[r,t]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:e,sectionBounds:t}=this,i=this.rootBounds.height,r=t.width>e.width?0:e.width-t.width,n=t.height>e.height?0:e.height-t.height,o=this.rootBounds.width;return this.getProgress(i,r,n,o)}get outProgress(){let{rootBounds:e,sectionBounds:t}=this,i=Math.min(e.height-t.height,0),r=-t.width,n=-t.height,o=Math.min(e.width-t.width,0);return this.getProgress(i,r,n,o)}get moveProgress(){let{rootBounds:e,sectionBounds:t}=this,i=t.height>e.height?0:e.height-t.height,r=t.width>e.width?-(t.width-e.width):0,n=t.height>e.height?-(t.height-e.height):0,o=t.width>e.width?0:e.width-t.width;return this.getProgress(i,r,n,o)}get progress(){let{sectionBounds:e,rootBounds:t}=this,i=t.height,r=-e.width,n=-e.height,o=t.width;return this.getProgress(i,r,n,o)}};var Y=class{constructor(e,t={}){this._element=e,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._id=K("snap-slide"),this._index=0;let i={virtual:!1};if(this._props=Object.assign(Object.assign({},i),t),this.props.virtual&&(!t.size||t.size==="auto"))throw new Error("Virtual slide must have a size")}get element(){return this._element}get props(){return this._props}get id(){return this._id}get index(){return this._index}get snap(){return this._snap}get coord(){return this._coord}setCoord(e){var t,i;this._coord=e,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((i=(t=this.snap)===null||t===void 0?void 0:t.domSize)!==null&&i!==void 0?i:0)}get staticCoord(){return this._staticCoord}setStaticCoord(e){this._staticCoord=e}get progress(){return this._progress}setProgress(e){this._progress=e}get sizeProp(){var e,t,i;return(i=(e=this.props.size)!==null&&e!==void 0?e:(t=this.snap)===null||t===void 0?void 0:t.props.slideSize)!==null&&i!==void 0?i:"auto"}get size(){var e;let{snap:t,sizeProp:i}=this;return t?i==="stretch"?t.domSize:i==="auto"?(e=this._domSize)!==null&&e!==void 0?e:t.domSize:M(i):0}get isVisible(){return this._isVisible}resize(e=!1){let{element:t,snap:i}=this;if(i){if(t){let{direction:r}=i.props;this._domSize=r==="horizontal"?t.offsetWidth:t.offsetHeight}i.resize(e)}}attach(e,t){this.detach(),this._snap=e,this._index=t,this.element&&this.sizeProp==="auto"&&(this._onResize=I({element:this.element,viewportTarget:"width",callback:()=>this.resize(),name:"Snap Slide"})),this.resize()}detach(){var e;this._snap=void 0,(e=this._onResize)===null||e===void 0||e.remove()}render(){this._toggleAppend()}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:e}=this,{container:t}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,t.appendChild(e)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,t.removeChild(e))}get magnets(){if(!this.snap)return[];let{snap:e,staticCoord:t,size:i,index:r}=this,{domSize:n,track:o,firstSlideSize:a}=e,h=[];if(r===0&&e.props.loop&&h.push(o.max),e.props.centered){let l=t+i/2-a/2;i>n?(h.push(l),h.push(l+(n-i)/2),h.push(l-(n-i)/2)):h.push(l)}else h.push(t),i>n&&h.push(t+(i-n));return!o.canLoop&&!e.props.centered&&(h=h.map(l=>b(l,0,o.max))),h}};var mt=6,fe=class{constructor(e){this._snap=e,this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0,e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructor=_(e.eventsEmitter,"wheel",t=>this._handleWheel(t))}_destroy(){this._destructor(),this._debounceEnd&&clearTimeout(this._debounceEnd)}get snap(){return this._snap}get absDeltas(){return this._deltas.map(e=>Math.abs(e))}get lastWheelTime(){return this._lastWheelTime}_handleWheel(e){let{snap:t}=this,{props:i}=t;if(!i.wheel)return;e.preventDefault();let r=Ce(e),o=(i.wheelAxis==="auto"?t.axis:i.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,e),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(e){this._hasStarted||Math.abs(e)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(e,t){if(!this._hasStarted)return;let{snap:i}=this,{props:r}=i;this._addDelta(e),i.callbacks.emit("wheel",t),r.followWheel?this._handleFollow(e):this._handleNoFollow(e)}_handleFollow(e){let{snap:t}=this;t.cancelTransition(),t.track.iterateTarget(e*t.props.wheelSpeed),t.track.clampTarget()}_handleNoFollow(e){let{snap:t,isTouchPad:i,isGainingDelta:r}=this,{track:n,activeSlide:o,domSize:a}=t;if(this._detectNoFollowThrottle())return;let h=!1,l=!0;if(h||n.isSlideScrolling&&(o.coord===0?e>0&&(h=!0):o.coord===a-o.size?e<0&&(h=!0):(h=!0,l=!1)),l){if(!i||i&&(r||this.absDeltas.length===1)){let d=Math.sign(e);if(h)t.cancelTransition(),n.iterateTarget(d),n.clampTarget(),i||(n.current=n.target);else if(d===1){if(!t.props.loop&&t.activeIndex===t.slides.length-1)return;this._lastWheelTime=+new Date,t.next()}else{if(!t.props.loop&&t.activeIndex===0)return;this._lastWheelTime=+new Date,t.prev()}}return}if(h){t.cancelTransition();let d=e*t.props.wheelSpeed,c=Math.min(...o.magnets),p=Math.max(...o.magnets),w=n.loopCoord(n.target),u=b(w+d,c,p);n.target+=u-w,n.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:e,snap:t}=this,{wheelThrottle:i}=t.props,r=+new Date-this._lastWheelTime;return typeof i=="number"?r<i:e?this.snap.isTransitioning:!!(t.scrollableSlides.filter(o=>o.isVisible).length&&t.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:e}=this,{props:t,activeSlide:i,track:r}=e,n=this._deltas.slice(-3).reduce((o,a)=>o+a,0);if(this._deltas=[],this._hasStarted=!1,!t.freemode||t.freemode==="sticky")if(t.followWheel&&t.stickOnWheelEnd){let o=Math.abs(t.stickOnWheelEndThreshold)/i.size;i.progress>o&&!r.isSlideScrolling&&n>0?e.next():i.progress<-o&&!r.isSlideScrolling&&n<0?e.prev():e.stick()}else!t.followWheel&&!e.isTransitioning&&e.stick();e.callbacks.emit("wheelEnd",void 0)}_addDelta(e){this._deltas.length>=mt&&this._deltas.shift(),this._deltas.push(e)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let e=this.absDeltas,t=.8,i=e.map((n,o)=>{let a=e[o-1];return e[o-1]?n-a:0});return i.filter(n=>n===0).length>i.length*t}get isSmallDelta(){let e=this.absDeltas;return e.length===0?!0:e[e.length-1]<50}get isGainingDelta(){let e=m(),t=this.absDeltas,i=e.osName.includes("window")?1.5:1.2;if(t.length<mt)return!1;let r=t.slice(-mt),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*i}_getAverage(e){return e.length?e.reduce((t,i)=>t+i,0)/e.length:0}};var me=class{constructor(e){this.snap=e,e.on("destroy",()=>this._destroy(),{protected:!0});let{props:t,activeIndex:i}=e;this._startIndex=i,this._startTime=0,this._swipe=new V({container:e.eventsEmitter,enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis,inertia:!1,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5}),this._swipe.on("start",r=>this._handleSwipeStart(r)),this._swipe.on("move",r=>this._handleSwipeMove(r)),this._swipe.on("end",r=>this._handleSwipeEnd(r)),this._swipe.on("inertiaStart",()=>this._handleSwipeInertiaStart()),this._swipe.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),this._swipe.on("inertiaFail",()=>this._handleSwipeInertiaFail()),this._swipe.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),e.on("props",()=>{this._swipe.updateProps({enabled:e.props.swipe,grabCursor:e.props.grabCursor,minTime:e.props.swipeMinTime,threshold:e.props.swipeThreshold,axis:this.axis,inertiaDuration:e.props.swipeInertiaDuration,inertiaRatio:e.props.swipeInertiaRatio})},{protected:!0})}get axis(){let{snap:e}=this;return e.props.swipeAxis==="auto"?e.axis:e.props.swipeAxis}get isSwiping(){return this._swipe.isSwiping}get hasInertia(){return this._swipe.hasInertia}get isShort(){let{props:e}=this.snap;return e.shortSwipes?+new Date-this._startTime<=e.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){return this.axis==="x"?this._swipe.diff.x:this._swipe.diff.y}_handleVelocityModifier(e){let{props:t,track:i,activeSlide:r,domSize:n}=this.snap,{coord:o,size:a}=r;if(t.freemode===!0)return e;if(i.target=i.current,t.freemode==="sticky"&&!i.isSlideScrolling){let d=i.loopedCurrent-e[this.axis],c=this.snap.getNearestMagnet(d);if(!c)return e;let p=i.loopedCurrent-d-c.diff;return Object.assign(Object.assign({},e),{[this.axis]:p})}let h=b(e[this.axis],-o,n-a-o);return Object.assign(Object.assign({},e),{[this.axis]:h})}_handleSwipeStart(e){let{snap:t}=this;this._startIndex=t.activeIndex,this._startTime=+new Date,t.eventsEmitter.style.pointerEvents="none",t.props.followSwipe&&t.cancelTransition(),t.callbacks.emit("swipeStart",e)}_handleSwipeMove(e){let{snap:t}=this,{props:i,track:r,callbacks:n}=t,{followSwipe:o}=i;if(!o&&!r.isSlideScrolling)return;let a=this.axis==="x"?e.step.x:e.step.y,h=this.hasInertia?1:i.swipeSpeed,l=a*-h;r.iterateTarget(l),this._swipe.hasInertia&&r.clampTarget(),n.emit("swipe",e)}_handleSwipeEnd(e){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",e)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:e}=this;e.props.freemode==="sticky"&&!e.track.isSlideScrolling&&(this.isShort?this._endShort():e.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:e,_swipe:t}=this,{props:i,track:r}=e;if(i.freemode){this._swipe.updateProps({inertia:!0}),!r.canLoop&&(r.target<r.min||r.target>r.max)&&(t.cancelInertia(),e.stick()),this.isShort&&i.freemode==="sticky"&&(this._swipe.updateProps({inertia:!1}),t.cancelInertia(),this._endShort());return}if(r.isSlideScrolling){this._swipe.updateProps({inertia:!0});return}if(this._swipe.updateProps({inertia:!1}),!i.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}e.stick()}_endShort(){let{diff:e,snap:t}=this,{props:i,activeSlide:r}=t;if(Math.abs(e)<i.shortSwipesThreshold){t.stick();return}let n=Math.sign(e)*Math.sign(i.swipeSpeed);if(this._startIndex!==t.activeIndex){n<0&&r.progress>0?t.next():n>0&&r.progress<0?t.prev():t.stick();return}n<0?t.next():t.prev()}_endNoFollow(){let{diff:e,snap:t}=this;if(Math.abs(e)<20){t.stick();return}e<0?t.next():t.prev()}_destroy(){this._swipe.destroy()}};var _e=class{constructor(e){this.snap=e,this._current=0,this._target=0}get current(){return this._current}set current(e){this._current=e}get target(){return this._target}set target(e){this._target=e}set(e){this.current=e,this.target=e}get canLoop(){return this.snap.props.loop&&this.snap.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:e}=this;return e.props.centered?e.domSize/2-e.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}loopCoord(e){return this.canLoop?C(e,this.min,this.max):e}lerp(e){let{target:t}=this,{snap:i,min:r,max:n}=this;if(!i.props.loop){let{domSize:h,props:l}=i,d=(1-l.edgeFriction)*h;if(t<r){let c=1-A(t,-h,r);t=r-c*d}else if(t>n){let c=A(t,n,n+h);t=n+c*d}t=b(t,r-d,n+d)}let o=Math.abs(this.current-t),a=5;if(o<a){let h=1-o/a,l=(1-e)/3;e+=l*h}this.current=T(this.current,t,e,1e-6)}get isInterpolated(){return this.current===this.target}get min(){let{snap:e}=this;if(this.canLoop||e.isEmpty)return 0;if(e.props.centered){let t=e.slides[0];if(t.size>e.domSize)return e.domSize/2-t.size/2}return 0}get max(){let{domSize:e,slides:t,isEmpty:i,props:r}=this.snap,{canLoop:n}=this;if(i)return 0;let o=t[0],a=t[t.length-1],h=a.staticCoord+a.size,l=n?h+M(r.gap):h-e;return n||(r.centered&&(l+=e/2-o.size/2,a.size<e&&(l+=e/2-a.size/2)),r.centered||(l=Math.max(l,0))),l}get progress(){return this.current/this.max}iterateTarget(e){let{snap:t}=this;this.target+=e,t._raf.play()}clampTarget(){let{snap:e}=this;this.canLoop||(this.target=b(this.target,this.min,this.max)),e._raf.play()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}get isSlideScrolling(){let{snap:e}=this,{domSize:t}=e;return e.scrollableSlides.some(({size:i,coord:r})=>ot(r,t-i,0))}};var ge=class{constructor(e){this._snap=e,this._destructors=[],e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructors.push(_(e.container,"scroll",()=>this._handleScroll()))}get snap(){return this._snap}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}_destroy(){this._destructors.forEach(e=>e())}};var _t=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},gt=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{eventsEmitter:null,activeIndex:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{slides:!1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:.2,freemode:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:W,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeLerp:m().mobile?1:.6,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:e=>b(e,500,2e3),swipeInertiaRatio:.3,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto"})}constructor(e){super(e),this._domSize=0,this._slides=[],this._scrollableSlides=[];let{container:t,activeIndex:i}=this.props;this._activeIndex=i,this._resizeHandler=I({element:t,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizeHandler.debounceResize(),this._raf=new k,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>this._callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>this._callbacks.emit("rafPause",void 0)),this._fetchSlides(),this._wheel=new fe(this),this._swipe=new me(this),this._track=new _e(this),this._keyboard=new ge(this)}_handleProps(){this._fetchSlides(),this._resizeHandler.resize(),super._handleProps()}_fetchSlides(){this._slides.forEach(t=>t.detach());let e=this.props.slides?this.props.slides:Array.from(this.props.container.children);this._slides=e.map(t=>t instanceof Y?t:new Y(t)),this._slides.forEach((t,i)=>t.attach(this,i))}resize(e=!1){e?this._resizeHandler.resize():this._resizeHandler.debounceResize()}_handleResize(){let{direction:e,container:t}=this.props;this.cancelTransition(),this._domSize=e==="horizontal"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}get container(){return this.props.container}get eventsEmitter(){var e;return(e=this.props.eventsEmitter)!==null&&e!==void 0?e:this.container}get domSize(){return this._domSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get track(){return this._track}get isTransitioning(){return!!this._timeline}get isSwiping(){return!!this._swipe.isSwiping}_reflow(){let{slides:e,props:t}=this;if(e.length===0)return;this._scrollableSlides=[],e.reduce((r,n)=>(n.setStaticCoord(r),n.size>this.domSize&&this._scrollableSlides.push(n),r+n.size+M(t.gap)),0);let i=e.find(({index:r})=>r===this.activeIndex);t.stickOnResize&&i&&(this.track.clampTarget(),this.track.set(i.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}_handleRaf(){if(this.isTransitioning)return;let{track:e,props:t,_swipe:i}=this,r=(i.isSwiping||i.hasInertia)&&t.swipeLerp?t.swipeLerp:t.lerp;e.lerp(this._raf.lerpFactor(r)),e.isInterpolated&&this._raf.pause(),this.render(this._raf.duration)}render(e=0){if(this.isEmpty)return;let{_swipe:t,track:i,props:r}=this;this._updateSlidesCoords(),this._updateSlidesProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(typeof this._targetIndex=="undefined"||n.slide.index===this._targetIndex)&&(this._activeIndex=n.slide.index,this._targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=t.isSwiping&&t.allowFriction||!t.isSwiping;n&&o&&e>0&&r.friction>=0&&!i.isSlideScrolling&&!r.freemode&&(i.target=ke(i.target,i.current+n.diff,r.friction*r.lerp,e,1e-6)),this.slides.forEach(a=>a.render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:e,track:t}=this,{centered:i}=this.props,r=i?this._domSize/2-this.firstSlideSize/2:0;e.forEach(n=>{let{staticCoord:o,size:a}=n;if(!t.canLoop){n.setCoord(o+r-t.current);return}if(i){n.setCoord(C(o+r-t.current,-t.max/2+r,t.max/2+r));return}n.setCoord(C(o-t.current,-a,t.max-a))})}get firstSlideSize(){return this.slides[0].size}_updateSlidesProgress(){let{slides:e,domSize:t}=this;e.forEach(i=>{let{coord:r,size:n}=i;if(this.props.centered){let o=t/2-n/2;i.setProgress(A(r,o,o-n));return}i.setProgress(A(r,0,-n))})}get magnet(){let e=this.track.loopedCurrent;return this.getNearestMagnet(e)}getNearestMagnet(e){let t=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(t.length===0)return;let i=t.reduce((r,n)=>Math.abs(n.magnet-e)<Math.abs(r.magnet-e)?n:r);return Object.assign(Object.assign({},i),{diff:i.magnet-e})}cancelTransition(){var e;(e=this._timeline)===null||e===void 0||e.destroy(),this._timeline=void 0}stick(){let{magnet:e}=this;this.track.isSlideScrolling||!e||this.toCoord(this.track.current+e.diff)}toCoord(e,t){var i,r;if(this.isEmpty)return!1;this.cancelTransition();let{track:n,props:o,callbacks:a}=this,h=n.current,l=e,d=Math.abs(l-h),c=(i=t==null?void 0:t.duration)!==null&&i!==void 0?i:o.duration,p=typeof c=="number"?c:c(d);d===0&&(p=0);let w=(r=t==null?void 0:t.easing)!==null&&r!==void 0?r:o.easing,u=new P({duration:p,easing:w});return this._timeline=u,u.on("start",()=>{var f;a.emit("timelineStart",void 0),(f=t==null?void 0:t.onStart)===null||f===void 0||f.call(t)}),u.on("update",f=>{var g;n.current=T(h,l,f.eased),n.target=n.current,f.progress===1&&(this._targetIndex=void 0),this.render(),a.emit("timelineUpdate",f),(g=t==null?void 0:t.onUpdate)===null||g===void 0||g.call(t,f)}),u.on("end",()=>{var f;u.destroy(),a.emit("timelineEnd",void 0),(f=t==null?void 0:t.onEnd)===null||f===void 0||f.call(t),this._timeline=void 0}),u.on("destroy",()=>{this._targetIndex=void 0}),u.play(),!0}toSlide(e,t={}){var i,r,{direction:n=null}=t,o=_t(t,["direction"]);let{isEmpty:a,activeIndex:h,slides:l,track:d,props:c}=this,{current:p,max:w,loopCount:u}=d;if(a)return!1;let f=C(e,0,this.slides.length);if(f===h)return this.stick(),!1;this._targetIndex=f;let g=l[f].magnets,y=g[0];if(c.centered?n==="prev"?y=(i=g[2])!==null&&i!==void 0?i:g[0]:n==="next"&&(y=(r=g[1])!==null&&r!==void 0?r:g[0]):y=n==="prev"?g[g.length-1]:y,!c.loop)return this.toCoord(y,o);let x=y+u*w,S=x-w,z=x+w,te=[S,x,z];if(typeof n=="string"){let Et=te.filter(D=>n==="next"?D>=p:D<=p),$=oe(p,Et);return this.toCoord($,o)}let se=oe(p,te);return this.toCoord(se,o)}next(e={}){var{skip:t=1}=e,i=_t(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?C(o+t,0,n.length):Math.min(o+t,n.length-1);return this.toSlide(a,Object.assign(Object.assign({},i),{direction:"next"}))}prev(e={}){var{skip:t=1}=e,i=_t(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?C(o-t,0,n.length):Math.max(o-t,0);return this.toSlide(a,Object.assign(Object.assign({},i),{direction:"prev"}))}_destroy(){super._destroy(),this._resizeHandler.remove(),this.cancelTransition(),this._raf.destroy(),this._slides.forEach(e=>e.detach())}};var Zs=Ot(Js());function ve(s,e){return e?typeof e=="string"?s.matches(e):typeof e=="function"?e(s):e.includes(s):!1}function ei({wordsMeta:s,classname:e,tagName:t,ignore:i}){let r=[],n=document.createElement(t);return n.style.display="inline-block",n.classList.add(e),s.forEach(o=>{if(ve(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let h=a.textContent;if(!h)return;(0,Zs.default)(h,"").forEach(d=>{let c=n.cloneNode(!1);c.appendChild(document.createTextNode(d)),o.element.insertBefore(c,a);let p={element:c};o.letters.push(p),r.push(p)}),a.remove()}),{lettersMeta:r}}function ti({container:s,classname:e,tagName:t,ignore:i}){let r=" ",n=document.createElement(t);n.style.display="inline-block",n.setAttribute("aria-hidden","true"),n.classList.add(e);let o=[],a=null;function h(l){var d,c;if(l instanceof HTMLElement||l instanceof DocumentFragment){if("tagName"in l&&l.tagName!=="BR"){if(ve(l,i)){a?a.append(l):o.push({element:l,letters:[]});return}l.style.display="inline-block"}a=null,[...Array.from(l.childNodes)].forEach(w=>h(w));return}if(l.nodeType===3){let p=(d=l.parentElement)!==null&&d!==void 0?d:s,w=(c=l.nodeValue)!==null&&c!==void 0?c:"";if(w===r){a=null,p==null||p.insertBefore(document.createTextNode(r),l),l.remove();return}let u=w.split(r);u.forEach((f,g)=>{if(f){let y=n.cloneNode(!1);y.appendChild(document.createTextNode(f)),a=y,o.push({element:y,letters:[]}),p==null||p.insertBefore(y,l)}g<u.length-1&&(p==null||p.insertBefore(document.createTextNode(r),l))}),l.remove()}}return h(s),o}function si({container:s,letterClassName:e,wordClassName:t,hasLetters:i,letterTag:r,wordTag:n,ignore:o}){let a=document.createDocumentFragment();for(;s.childNodes[0];)a.appendChild(s.childNodes[0]);let h=ti({container:a,classname:t,tagName:n,ignore:o}),l=[];if(i){let d=ei({wordsMeta:h,classname:e,tagName:r,ignore:o});l.push(...d.lettersMeta)}return s.appendChild(a),{wordsMeta:h,lettersMeta:l}}function ii(s){let{direction:e,textAlign:t}=getComputedStyle(s);return t==="center"?t:t==="justify"?e==="rtl"?"right":"left":t==="left"||t==="right"?t:t==="start"?e==="rtl"?"right":"left":t==="end"?e==="rtl"?"left":"right":e==="rtl"?"right":"left"}function ri(s,e){var t;return s!=null&&s.parentElement?s.parentElement===e?s:ri((t=s==null?void 0:s.parentElement)!==null&&t!==void 0?t:null,e):null}function ni(s,e){return s===e?!0:s!==null?ni(s.parentNode,e):!1}function oi({container:s,hasLinesWrapper:e,wordsMeta:t,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=ii(s),a=[],h=-1,l=null,d=document.createElement(n);d.style.display="block",d.setAttribute("aria-hidden","true"),d.classList.add(i);let c=t.map(u=>u.element.getBoundingClientRect());t.forEach((u,f)=>{var g;let y=c[f],x=ri(u.element,s);if(!x)return;let S=l&&y.top>=l.top,z=l&&y.left>=l.left,te=l&&y.left<=l.left;if(!l||S&&te&&o==="left"||S&&z&&o==="right"||S&&o==="center"){h+=1;let $=d.cloneNode(!1),D;e&&(D=document.createElement(n),D.style.display="block",D.classList.add(r),D.appendChild($)),a[h]={element:$,wrapper:D,nodes:[],words:[]}}l=y;let se=a[h];!!a.find(({nodes:$})=>$.includes(x))||(se.nodes.push(x),((g=x.nextSibling)===null||g===void 0?void 0:g.nodeType)===3&&se.nodes.push(x.nextSibling))}),a.forEach(u=>{var f;s.insertBefore((f=u.wrapper)!==null&&f!==void 0?f:u.element,u.nodes[0]);let g=document.createDocumentFragment();g.append(...u.nodes),u.element.append(g)});let p=[];return a.forEach(u=>{var f;let g=((f=u.wrapper)!==null&&f!==void 0?f:u.element).nextElementSibling;g instanceof HTMLBRElement&&(g.style.display="none",p.push(g))}),a.forEach(u=>{u.words.push(...t.filter(f=>ni(f.element,u.element)))}),{linesMeta:a,destroy:()=>{let u=!0;return p.forEach(f=>{f.style.display=""}),a.forEach(f=>{var g;f.nodes.forEach(y=>{var x;let S=(x=f.wrapper)!==null&&x!==void 0?x:f.element;S.parentElement?s.insertBefore(y,S):u=!1}),f.element.remove(),(g=f.wrapper)===null||g===void 0||g.remove()}),u}}}function ai(s){let e=[];function t(i){e.push({node:i,cssText:i instanceof HTMLElement?i.style.cssText:null,parent:i.parentNode}),i.childNodes.forEach(r=>t(r))}return s.childNodes.forEach(i=>t(i)),{restore:()=>{let i=document.createDocumentFragment();for(e.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===s?i:r.parent).appendChild(r.node)});s.childNodes[0];)s.childNodes[0].remove();s.appendChild(i)}}}var St=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:this._cn("__letter"),wordClass:this._cn("__word"),lineClass:this._cn("__line"),lineWrapperClass:this._cn("__line-wrapper"),resizeDebounce:0,ignore:null})}_getMutable(){return Object.assign({},super._getMutable())}get prefix(){return`${m().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(e=>e.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(e=>e.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(e=>e.element)}constructor(e){super(e),this._isBaseSplit=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:t}=this.props;t.style.fontKerning="none",t.style.display="block",t.setAttribute("aria-label",t.textContent||""),this._addTempClassName(t,this._cn("")),t.translate=!1,this._savedNodes=ai(t),this._setup()}_setup(){let{container:e,resizeDebounce:t}=this.props;if(!this.props.lines){this.split();return}let i=I({callback:()=>this.split(),element:e,viewportTarget:"width",resizeDebounce:t,name:this.name});i.resize(),this.onDestroy(()=>i.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._isBaseSplit)return;let{container:e,letterTag:t,wordTag:i,wordClass:r,letterClass:n,ignore:o}=this.props;this._isBaseSplit=!0;let{wordsMeta:a,lettersMeta:h}=si({container:e,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:t,wordTag:i,ignore:o});this._wordsMeta=a,this._lettersMeta=h}_splitLines(){var e;let{wordsMeta:t}=this,{container:i,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;i.offsetParent!==null&&((e=this._lineSplitWrapper)===null||e===void 0||e.destroy(),this._lineSplitWrapper=oi({container:i,hasLinesWrapper:this.props.linesWrapper,wordsMeta:t,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._savedNodes.restore();else{let e=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,e&&this._savedNodes.restore()}}};var li=typeof window!="undefined"?m():void 0,Pr=li;return mi(zr);})();
|
|
176
|
+
`,Q)}var q=typeof window!="undefined"?document.createElement("style"):null;q&&(q.innerHTML="* { cursor: grabbing !important; }");var qi=4,V=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],pointers:1,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,relative:!1,axis:null,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:e=>b(e,500,2e3),inertiaEasing:W,velocityModifier:!1,distanceModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50})}get isSwiping(){return this._isSwiping}get coords(){return this._coords}get container(){return this.props.container}get hasInertia(){return!!this._inertia}constructor(e){super(e),this._isSwiping=!1,this._isAborted=!1;let{container:t,buttons:i,pointers:r}=this.props;this._coords={timestamp:0,start:{x:0,y:0,angle:0},prev:{x:0,y:0,angle:0},current:{x:0,y:0,angle:0},diff:{x:0,y:0,angle:0},step:{x:0,y:0,angle:0},accum:{x:0,y:0}},this._velocities=[],this._cursorStyles=q===null||q===void 0?void 0:q.cloneNode(!0),this._pointers=new J({container:t,buttons:i,minPointers:r,maxPointers:r,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._pointers.on("start",()=>this._handlePointersStart());let n=_(t,"touchstart",o=>this._handleTouchStart(o),{passive:!1});this.onDestroy(()=>n()),this._setInlineStyles()}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._setInlineStyles()}_setInlineStyles(){let{container:e,axis:t}=this.props,i=this.props.grabCursor?"grab":"",r="none";t==="x"?r="pan-y":t==="y"&&(r="pan-x"),e.style.cursor=i,e.style.touchAction=r}_handleTouchStart(e){this.props.enabled&&(this.callbacks.emit("touchstart",e),this._preventEdgeSwipe(e))}_preventEdgeSwipe(e){if(!this.props.preventEdgeSwipe)return;let t=this.props.edgeSwipeThreshold,i=e.targetTouches[0].pageX;e.cancelable&&(i<=t||i>=m().width-t)&&(e.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let e=_(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),t=_(window,"mousemove",this._handleMouseMove.bind(this)),i=this._pointers.on("end",()=>{this._handleEnd(),i(),e(),t()});this.onDestroy(()=>{i(),e(),t()})}_handleTouchMove(e){this.callbacks.emit("touchmove",e),this._isSwiping&&this.props.preventTouchMove&&e.cancelable&&e.preventDefault(),this._handleMove(this._decodeCoords(e),"touch")}_handleMouseMove(e){this.props.requireCtrlKey&&!e.ctrlKey||(this.callbacks.emit("mousemove",e),this._handleMove(this._decodeCoords(e),"mouse"))}_decodeCoords(e){let{props:t}=this,i="touches"in e?e.touches[0].clientX:e.clientX,r="touches"in e?e.touches[0].clientY:e.clientY,n=i,o=r,a=m().width/2,h=m().height/2;if(t.relative){let c=t.container.getBoundingClientRect();n=i-c.left,o=r-c.top,a=c.left+c.width/2,h=c.top+c.height/2}let d=Math.atan2(r-h,i-a)*180/Math.PI;return{x:n,y:o,angle:d}}_handleMove(e,t){let i=this._coords;if(!this._isAborted){if(this._startCoord||(this._startCoord=Object.assign({},e)),this._startTime||(this._startTime=+Date.now()),!this._isSwiping){let{threshold:r,minTime:n,axis:o,willAbort:a}=this.props,h={x:e.x-this._startCoord.x,y:e.y-this._startCoord.y};if(Math.sqrt(Math.pow(h.x,2)+Math.pow(h.y,2))<r||+new Date-this._startTime<n)return;if(o){let l=Math.atan2(Math.abs(h.y),Math.abs(h.x))*180/Math.PI;if((o==="x"?l:90-l)>45){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}if(a({type:t,matrix:e,start:this._startCoord,diff:h})){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}this._isSwiping||(this.cancelInertia(),this._isSwiping=!0,this._startCoord=Object.assign({},e),i.timestamp=performance.now(),i.start=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.prev=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.current=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.diff={x:0,y:0,angle:0},i.step={x:0,y:0,angle:0},i.accum={x:0,y:0},this.callbacks.emit("start",this._coords),this.props.grabCursor&&this._cursorStyles&&m().body.append(this._cursorStyles)),this._move(e)}}_move({x:e,y:t,angle:i}){let r=this._coords,n=Object.assign({},r.start),o=Object.assign({},r.current),a={x:e,y:t,angle:i};r.timestamp=performance.now(),r.prev=o,r.current=a;let h=r.current.angle-r.prev.angle;h>180?h-=360:h<-180&&(h+=360),r.step={x:a.x-o.x,y:a.y-o.y,angle:h},r.diff={x:a.x-n.x,y:a.y-n.y,angle:r.diff.angle+r.step.angle},r.accum={x:r.accum.x+Math.abs(r.step.x),y:r.accum.y+Math.abs(r.step.y)},this.hasInertia||(this._velocities.push(Object.assign(Object.assign({},r.current),{timestamp:r.timestamp})),this._velocities.length>qi&&this._velocities.shift()),this.callbacks.emit("move",this._coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._cursorStyles.remove();let{x:e,y:t}=this._coords.diff,i=Math.abs(e),r=Math.abs(t),{directionThreshold:n}=this.props,o=i>r?"x":"y";o==="x"&&i>n&&(e>0?this.callbacks.emit("toRight",void 0):e<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(t>0?this.callbacks.emit("toBottom",void 0):t<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this._coords),this._velocities.length>0&&(this._velocities[this._velocities.length-1].timestamp=performance.now()),this.props.inertia&&this._endWithInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}get velocity(){let e=this._velocities;if(e.length<2)return{x:0,y:0,angle:0};let t=0,i=0,r=0,n=0;for(let o=1;o<e.length;o+=1){let a=e[o],h=e[o-1],l=a.x-h.x,d=a.y-h.y,c=a.angle-h.angle;c>180&&(c-=360),c<-180&&(c+=360);let p=Math.max(a.timestamp-h.timestamp,1),w=l/p*1e3,u=d/p*1e3,f=c/p*1e3,g=1/Math.exp(-p*.1);i+=w*g,r+=u*g,n+=f*g,t+=g}return t>0?{x:i/t,y:r/t,angle:n/t}:{x:0,y:0,angle:0}}_endWithInertia(){let{inertiaDuration:e,inertiaEasing:t,velocityModifier:i,inertiaRatio:r,inertiaDistanceThreshold:n}=this.props,o={x:this.velocity.x*r,y:this.velocity.y*r,angle:this.velocity.angle*r},a=i?i(o):o,{x:h,y:l,angle:d}=a,c=Math.sqrt(Math.pow(h,2)+Math.pow(l,2));if(c<n){this.callbacks.emit("inertiaFail",void 0);return}let p=e(c);if(Number.isNaN(p)||!Number.isFinite(p)||p<=0){this.callbacks.emit("inertiaFail",void 0);return}let w=Object.assign({},this.coords.current),u={x:0,y:0,angle:0};this._inertia=new P({duration:p,easing:t}),this._inertia.on("start",()=>{this.callbacks.emit("inertiaStart",void 0)}),this._inertia.on("update",({eased:f})=>{u.x=h*f,u.y=l*f,u.angle=d*f,this._move({x:w.x+u.x,y:w.y+u.y,angle:w.angle+u.angle}),this.callbacks.emit("inertia",void 0)}),this._inertia.on("end",()=>{this.cancelInertia(),this.callbacks.emit("inertiaEnd",void 0)}),setTimeout(()=>{var f;(f=this._inertia)===null||f===void 0||f.play()},0)}cancelInertia(){var e;this._inertia&&(this._inertia.progress<1&&this.callbacks.emit("inertiaCancel",void 0),(e=this._inertia)===null||e===void 0||e.destroy(),this._inertia=void 0)}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){var e;super._destroy(),this._pointers.destroy(),(e=this._inertia)===null||e===void 0||e.destroy(),this._cursorStyles.remove()}};var pt=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:10})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{minSize:50,autoSize:!0})}get prefix(){return`${m().prefix}scrollbar`}get container(){return this._props.container}get outer(){return this._outer}get track(){return this._track}get thumb(){return this._thumb}constructor(e){super(e),this._valueOnSwipeStart=0,this._prevScrollValue=0,ks(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),this.outer.classList.add(this._cn("_inited"))}_handleProps(){super._handleProps(),this.resize()}get axis(){return this.props.axis}get parent(){let{parent:e,container:t}=this.props;return e||(t instanceof Window?m().body:t)}get scrollElement(){return this.container instanceof Window?m().html:this.container}get scrollSize(){let{scrollElement:e}=this;return this.axis==="x"?e.scrollWidth:e.scrollHeight}get scrollableSize(){let{scrollElement:e}=this;return this.axis==="x"?this.scrollSize-e.clientWidth:this.scrollSize-e.clientHeight}get scrollValue(){let{axis:e}=this;return this.container instanceof Window?e==="x"?window.scrollX:window.scrollY:e==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_create(){let e=m(),{parent:t,scrollElement:i}=this,r=this.container instanceof Window;this._outer=this._createOuter(),t.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),r?(this._addTempClassName(e.html,this._cn("-scrollable")),this._addTempClassName(e.body,this._cn("-scrollable"))):this._addTempClassName(i,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let e=this._cn.bind(this),{props:t,axis:i}=this,r=document.createElement("div");return r.classList.add(e("")),r.classList.add(e(`_${i}`)),t.class&&r.classList.add(t.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),t.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let e=this._cn.bind(this),{axis:t}=this,i=document.createElement("div");return i.classList.add(e("__track")),i.classList.add(e(`__track_${t}`)),i}_createThumb(){let e=this._cn.bind(this),t=document.createElement("div");return t.classList.add(e("__thumb")),t.classList.add(e(`__thumb_${this.axis}`)),t}_setResize(){let e=()=>{let r=Array.from(this.scrollElement.children);return I({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},t=e();t.resize();let i=new MutationObserver(()=>{t.remove(),t=e(),t.debounceResize()});i.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{t.remove(),i.disconnect()})}_setOnscroll(){let e=_(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let e=new V({container:this.thumb,grabCursor:!0});e.on("start",t=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}),e.on("move",t=>{this._onSwipeMove(t),this.callbacks.emit("swipe",t)}),e.on("end",t=>{this.callbacks.emit("swipeEnd",t)}),e.on("touchmove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),e.on("mousemove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),this.onDestroy(()=>e.destroy())}resize(){let{scrollableSize:e,scrollSize:t,outer:i,track:r,thumb:n,props:o,axis:a}=this,{autoSize:h}=o,l=a==="x";i.classList.toggle(this._cn("_empty"),e===0);let d=l?r.offsetWidth:r.offsetHeight,c=M(o.minSize),p=c;h&&(p=b(d/(t/d),c,1/0)),l?n.style.width=`${p}px`:n.style.height=`${p}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:e,scrollableSize:t,axis:i,thumbSize:r,trackSize:n}=this,o=b(e/t),a=(n-r)*o,h=i==="x"?a:0,l=i==="y"?a:0;this._thumb.style.transform=`translate(${h}px, ${l}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:e,outer:t}=this,i=this._cn("_in-action");e!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{t.classList.contains(i)||(t.classList.add(i),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=e,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{t.classList.remove(i),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:e}){let{scrollElement:t,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,h=(i==="x"?e.x:e.y)/(r-n)*o,l=this._valueOnSwipeStart+h;t.scrollTo({top:i==="y"?l:void 0,left:i==="x"?l:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};var ft=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{root:null,optimized:!0,useSvh:!1})}_getMutable(){return Object.assign({},super._getMutable())}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}constructor(e){super(e),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized)return;let{section:e}=this.props,t=new IntersectionObserver(i=>{i.forEach(r=>{r.target===e&&(this._isVisible=r.isIntersecting,this.update())})});t.observe(e),this.onDestroy(()=>t.disconnect())}_setupScroll(){let e=this.props.root||window,t=_(e,"scroll",()=>{this._isVisible&&this.update()},{passive:!1});this.onDestroy(t)}update(){let{section:e,props:t}=this,i=t.root,r=m(),n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:t.useSvh?r.sHeight:r.height};this._rootBounds=i?i.getBoundingClientRect():o,this._sectionBounds={top:n.top-this._rootBounds.top,left:n.left-this._rootBounds.left,width:n.width,height:n.height},this.callbacks.emit("update",void 0)}getProgress(e,t,i,r){let n=de(this._sectionBounds.top,[e,i]),o=de(this._sectionBounds.left,[r,t]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:e,sectionBounds:t}=this,i=this.rootBounds.height,r=t.width>e.width?0:e.width-t.width,n=t.height>e.height?0:e.height-t.height,o=this.rootBounds.width;return this.getProgress(i,r,n,o)}get outProgress(){let{rootBounds:e,sectionBounds:t}=this,i=Math.min(e.height-t.height,0),r=-t.width,n=-t.height,o=Math.min(e.width-t.width,0);return this.getProgress(i,r,n,o)}get moveProgress(){let{rootBounds:e,sectionBounds:t}=this,i=t.height>e.height?0:e.height-t.height,r=t.width>e.width?-(t.width-e.width):0,n=t.height>e.height?-(t.height-e.height):0,o=t.width>e.width?0:e.width-t.width;return this.getProgress(i,r,n,o)}get progress(){let{sectionBounds:e,rootBounds:t}=this,i=t.height,r=-e.width,n=-e.height,o=t.width;return this.getProgress(i,r,n,o)}};var Y=class{constructor(e,t={}){this._element=e,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._id=K("snap-slide"),this._index=0;let i={virtual:!1};if(this._props=Object.assign(Object.assign({},i),t),this.props.virtual&&(!t.size||t.size==="auto"))throw new Error("Virtual slide must have a size")}get element(){return this._element}get props(){return this._props}get id(){return this._id}get index(){return this._index}get snap(){return this._snap}get coord(){return this._coord}setCoord(e){var t,i;this._coord=e,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((i=(t=this.snap)===null||t===void 0?void 0:t.domSize)!==null&&i!==void 0?i:0)}get staticCoord(){return this._staticCoord}setStaticCoord(e){this._staticCoord=e}get progress(){return this._progress}setProgress(e){this._progress=e}get sizeProp(){var e,t,i;return(i=(e=this.props.size)!==null&&e!==void 0?e:(t=this.snap)===null||t===void 0?void 0:t.props.slideSize)!==null&&i!==void 0?i:"auto"}get size(){var e;let{snap:t,sizeProp:i}=this;return t?i==="stretch"?t.domSize:i==="auto"?(e=this._domSize)!==null&&e!==void 0?e:t.domSize:M(i):0}get isVisible(){return this._isVisible}resize(e=!1){let{element:t,snap:i}=this;if(i){if(t){let{direction:r}=i.props;this._domSize=r==="horizontal"?t.offsetWidth:t.offsetHeight}i.resize(e)}}attach(e,t){this.detach(),this._snap=e,this._index=t,this.element&&this.sizeProp==="auto"&&(this._onResize=I({element:this.element,viewportTarget:"width",callback:()=>this.resize(),name:"Snap Slide"})),this.resize()}detach(){var e;this._snap=void 0,(e=this._onResize)===null||e===void 0||e.remove()}render(){this._toggleAppend()}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:e}=this,{container:t}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,t.appendChild(e)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,t.removeChild(e))}get magnets(){if(!this.snap)return[];let{snap:e,staticCoord:t,size:i,index:r}=this,{domSize:n,track:o,firstSlideSize:a}=e,h=[];if(r===0&&e.props.loop&&h.push(o.max),e.props.centered){let l=t+i/2-a/2;i>n?(h.push(l),h.push(l+(n-i)/2),h.push(l-(n-i)/2)):h.push(l)}else h.push(t),i>n&&h.push(t+(i-n));return!o.canLoop&&!e.props.centered&&(h=h.map(l=>b(l,0,o.max))),h}};var mt=6,fe=class{constructor(e){this._snap=e,this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0,e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructor=_(e.eventsEmitter,"wheel",t=>this._handleWheel(t))}_destroy(){this._destructor(),this._debounceEnd&&clearTimeout(this._debounceEnd)}get snap(){return this._snap}get absDeltas(){return this._deltas.map(e=>Math.abs(e))}get lastWheelTime(){return this._lastWheelTime}_handleWheel(e){let{snap:t}=this,{props:i}=t;if(!i.wheel)return;e.preventDefault();let r=Ce(e),o=(i.wheelAxis==="auto"?t.axis:i.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,e),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(e){this._hasStarted||Math.abs(e)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(e,t){if(!this._hasStarted)return;let{snap:i}=this,{props:r}=i;this._addDelta(e),i.callbacks.emit("wheel",t),r.followWheel?this._handleFollow(e):this._handleNoFollow(e)}_handleFollow(e){let{snap:t}=this;t.cancelTransition(),t.track.iterateTarget(e*t.props.wheelSpeed),t.track.clampTarget()}_handleNoFollow(e){let{snap:t,isTouchPad:i,isGainingDelta:r}=this,{track:n,activeSlide:o,domSize:a}=t;if(this._detectNoFollowThrottle())return;let h=!1,l=!0;if(h||n.isSlideScrolling&&(o.coord===0?e>0&&(h=!0):o.coord===a-o.size?e<0&&(h=!0):(h=!0,l=!1)),l){if(!i||i&&(r||this.absDeltas.length===1)){let d=Math.sign(e);if(h)t.cancelTransition(),n.iterateTarget(d),n.clampTarget(),i||(n.current=n.target);else if(d===1){if(!t.props.loop&&t.activeIndex===t.slides.length-1)return;this._lastWheelTime=+new Date,t.next()}else{if(!t.props.loop&&t.activeIndex===0)return;this._lastWheelTime=+new Date,t.prev()}}return}if(h){t.cancelTransition();let d=e*t.props.wheelSpeed,c=Math.min(...o.magnets),p=Math.max(...o.magnets),w=n.loopCoord(n.target),u=b(w+d,c,p);n.target+=u-w,n.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:e,snap:t}=this,{wheelThrottle:i}=t.props,r=+new Date-this._lastWheelTime;return typeof i=="number"?r<i:e?this.snap.isTransitioning:!!(t.scrollableSlides.filter(o=>o.isVisible).length&&t.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:e}=this,{props:t,activeSlide:i,track:r}=e,n=this._deltas.slice(-3).reduce((o,a)=>o+a,0);if(this._deltas=[],this._hasStarted=!1,!t.freemode||t.freemode==="sticky")if(t.followWheel&&t.stickOnWheelEnd){let o=Math.abs(t.stickOnWheelEndThreshold)/i.size;i.progress>o&&!r.isSlideScrolling&&n>0?e.next():i.progress<-o&&!r.isSlideScrolling&&n<0?e.prev():e.stick()}else!t.followWheel&&!e.isTransitioning&&e.stick();e.callbacks.emit("wheelEnd",void 0)}_addDelta(e){this._deltas.length>=mt&&this._deltas.shift(),this._deltas.push(e)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let e=this.absDeltas,t=.8,i=e.map((n,o)=>{let a=e[o-1];return e[o-1]?n-a:0});return i.filter(n=>n===0).length>i.length*t}get isSmallDelta(){let e=this.absDeltas;return e.length===0?!0:e[e.length-1]<50}get isGainingDelta(){let e=m(),t=this.absDeltas,i=e.osName.includes("window")?1.5:1.2;if(t.length<mt)return!1;let r=t.slice(-mt),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*i}_getAverage(e){return e.length?e.reduce((t,i)=>t+i,0)/e.length:0}};var me=class{constructor(e){this.snap=e,e.on("destroy",()=>this._destroy(),{protected:!0});let{props:t,activeIndex:i}=e;this._startIndex=i,this._startTime=0,this._swipe=new V({container:e.eventsEmitter,enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis,inertia:!1,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5}),this._swipe.on("start",r=>this._handleSwipeStart(r)),this._swipe.on("move",r=>this._handleSwipeMove(r)),this._swipe.on("end",r=>this._handleSwipeEnd(r)),this._swipe.on("inertiaStart",()=>this._handleSwipeInertiaStart()),this._swipe.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),this._swipe.on("inertiaFail",()=>this._handleSwipeInertiaFail()),this._swipe.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),e.on("props",()=>{this._swipe.updateProps({enabled:e.props.swipe,grabCursor:e.props.grabCursor,minTime:e.props.swipeMinTime,threshold:e.props.swipeThreshold,axis:this.axis,inertiaDuration:e.props.swipeInertiaDuration,inertiaRatio:e.props.swipeInertiaRatio})},{protected:!0})}get axis(){let{snap:e}=this;return e.props.swipeAxis==="auto"?e.axis:e.props.swipeAxis}get isSwiping(){return this._swipe.isSwiping}get hasInertia(){return this._swipe.hasInertia}get isShort(){let{props:e}=this.snap;return e.shortSwipes?+new Date-this._startTime<=e.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){return this.axis==="x"?this._swipe.diff.x:this._swipe.diff.y}_handleVelocityModifier(e){let{props:t,track:i,activeSlide:r,domSize:n}=this.snap,{coord:o,size:a}=r;if(t.freemode===!0)return e;if(i.target=i.current,t.freemode==="sticky"&&!i.isSlideScrolling){let d=i.loopedCurrent-e[this.axis],c=this.snap.getNearestMagnet(d);if(!c)return e;let p=i.loopedCurrent-d-c.diff;return Object.assign(Object.assign({},e),{[this.axis]:p})}let h=b(e[this.axis],-o,n-a-o);return Object.assign(Object.assign({},e),{[this.axis]:h})}_handleSwipeStart(e){let{snap:t}=this;this._startIndex=t.activeIndex,this._startTime=+new Date,t.eventsEmitter.style.pointerEvents="none",t.props.followSwipe&&t.cancelTransition(),t.callbacks.emit("swipeStart",e)}_handleSwipeMove(e){let{snap:t}=this,{props:i,track:r,callbacks:n}=t,{followSwipe:o}=i;if(!o&&!r.isSlideScrolling)return;let a=this.axis==="x"?e.step.x:e.step.y,h=this.hasInertia?1:i.swipeSpeed,l=a*-h;r.iterateTarget(l),this._swipe.hasInertia&&r.clampTarget(),n.emit("swipe",e)}_handleSwipeEnd(e){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",e)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:e}=this;e.props.freemode==="sticky"&&!e.track.isSlideScrolling&&(this.isShort?this._endShort():e.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:e,_swipe:t}=this,{props:i,track:r}=e;if(i.freemode){this._swipe.updateProps({inertia:!0}),!r.canLoop&&(r.target<r.min||r.target>r.max)&&(t.cancelInertia(),e.stick()),this.isShort&&i.freemode==="sticky"&&(this._swipe.updateProps({inertia:!1}),t.cancelInertia(),this._endShort());return}if(r.isSlideScrolling){this._swipe.updateProps({inertia:!0});return}if(this._swipe.updateProps({inertia:!1}),!i.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}e.stick()}_endShort(){let{diff:e,snap:t}=this,{props:i,activeSlide:r}=t;if(Math.abs(e)<i.shortSwipesThreshold){t.stick();return}let n=Math.sign(e)*Math.sign(i.swipeSpeed);if(this._startIndex!==t.activeIndex){n<0&&r.progress>0?t.next():n>0&&r.progress<0?t.prev():t.stick();return}n<0?t.next():t.prev()}_endNoFollow(){let{diff:e,snap:t}=this;if(Math.abs(e)<20){t.stick();return}e<0?t.next():t.prev()}_destroy(){this._swipe.destroy()}};var _e=class{constructor(e){this.snap=e,this._current=0,this._target=0}get current(){return this._current}set current(e){this._current=e}get target(){return this._target}set target(e){this._target=e}set(e){this.current=e,this.target=e}get canLoop(){return this.snap.props.loop&&this.snap.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:e}=this;return e.props.centered?e.domSize/2-e.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}loopCoord(e){return this.canLoop?C(e,this.min,this.max):e}lerp(e){let{target:t}=this,{snap:i,min:r,max:n}=this;if(!i.props.loop){let{domSize:h,props:l}=i,d=(1-l.edgeFriction)*h;if(t<r){let c=1-A(t,-h,r);t=r-c*d}else if(t>n){let c=A(t,n,n+h);t=n+c*d}t=b(t,r-d,n+d)}let o=Math.abs(this.current-t),a=5;if(o<a){let h=1-o/a,l=(1-e)/3;e+=l*h}this.current=T(this.current,t,e,1e-6)}get isInterpolated(){return this.current===this.target}get min(){let{snap:e}=this;if(this.canLoop||e.isEmpty)return 0;if(e.props.centered){let t=e.slides[0];if(t.size>e.domSize)return e.domSize/2-t.size/2}return 0}get max(){let{domSize:e,slides:t,isEmpty:i,props:r}=this.snap,{canLoop:n}=this;if(i)return 0;let o=t[0],a=t[t.length-1],h=a.staticCoord+a.size,l=n?h+M(r.gap):h-e;return n||(r.centered&&(l+=e/2-o.size/2,a.size<e&&(l+=e/2-a.size/2)),r.centered||(l=Math.max(l,0))),l}get progress(){return this.current/this.max}iterateTarget(e){let{snap:t}=this;this.target+=e,t._raf.play()}clampTarget(){let{snap:e}=this;this.canLoop||(this.target=b(this.target,this.min,this.max)),e._raf.play()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}get isSlideScrolling(){let{snap:e}=this,{domSize:t}=e;return e.scrollableSlides.some(({size:i,coord:r})=>ot(r,t-i,0))}};var ge=class{constructor(e){this._snap=e,this._destructors=[],e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructors.push(_(e.container,"scroll",()=>this._handleScroll()))}get snap(){return this._snap}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}_destroy(){this._destructors.forEach(e=>e())}};var _t=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},gt=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{eventsEmitter:null,activeIndex:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{slides:!1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:.2,freemode:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:W,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeLerp:m().mobile?1:.6,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:e=>b(e,500,2e3),swipeInertiaRatio:.3,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto"})}constructor(e){super(e),this._domSize=0,this._slides=[],this._scrollableSlides=[];let{container:t,activeIndex:i}=this.props;this._activeIndex=i,this._resizeHandler=I({element:t,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizeHandler.debounceResize(),this._raf=new k,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>this._callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>this._callbacks.emit("rafPause",void 0)),this._fetchSlides(),this._wheel=new fe(this),this._swipe=new me(this),this._track=new _e(this),this._keyboard=new ge(this)}_handleProps(){this._fetchSlides(),this._resizeHandler.resize(),super._handleProps()}_fetchSlides(){this._slides.forEach(t=>t.detach());let e=this.props.slides?this.props.slides:Array.from(this.props.container.children);this._slides=e.map(t=>t instanceof Y?t:new Y(t)),this._slides.forEach((t,i)=>t.attach(this,i))}resize(e=!1){e?this._resizeHandler.resize():this._resizeHandler.debounceResize()}_handleResize(){let{direction:e,container:t}=this.props;this.cancelTransition(),this._domSize=e==="horizontal"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}get container(){return this.props.container}get eventsEmitter(){var e;return(e=this.props.eventsEmitter)!==null&&e!==void 0?e:this.container}get domSize(){return this._domSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get track(){return this._track}get isTransitioning(){return!!this._timeline}get isSwiping(){return!!this._swipe.isSwiping}_reflow(){let{slides:e,props:t}=this;if(e.length===0)return;this._scrollableSlides=[],e.reduce((r,n)=>(n.setStaticCoord(r),n.size>this.domSize&&this._scrollableSlides.push(n),r+n.size+M(t.gap)),0);let i=e.find(({index:r})=>r===this.activeIndex);t.stickOnResize&&i&&(this.track.clampTarget(),this.track.set(i.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}_handleRaf(){if(this.isTransitioning)return;let{track:e,props:t,_swipe:i}=this,r=(i.isSwiping||i.hasInertia)&&t.swipeLerp?t.swipeLerp:t.lerp;e.lerp(this._raf.lerpFactor(r)),e.isInterpolated&&this._raf.pause(),this.render(this._raf.duration)}render(e=0){if(this.isEmpty)return;let{_swipe:t,track:i,props:r}=this;this._updateSlidesCoords(),this._updateSlidesProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(typeof this._targetIndex=="undefined"||n.slide.index===this._targetIndex)&&(this._activeIndex=n.slide.index,this._targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=t.isSwiping&&t.allowFriction||!t.isSwiping;n&&o&&e>0&&r.friction>=0&&!i.isSlideScrolling&&!r.freemode&&(i.target=ke(i.target,i.current+n.diff,r.friction*r.lerp,e,1e-6)),this.slides.forEach(a=>a.render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:e,track:t}=this,{centered:i}=this.props,r=i?this._domSize/2-this.firstSlideSize/2:0;e.forEach(n=>{let{staticCoord:o,size:a}=n;if(!t.canLoop){n.setCoord(o+r-t.current);return}if(i){n.setCoord(C(o+r-t.current,-t.max/2+r,t.max/2+r));return}n.setCoord(C(o-t.current,-a,t.max-a))})}get firstSlideSize(){return this.slides[0].size}_updateSlidesProgress(){let{slides:e,domSize:t}=this;e.forEach(i=>{let{coord:r,size:n}=i;if(this.props.centered){let o=t/2-n/2;i.setProgress(A(r,o,o-n));return}i.setProgress(A(r,0,-n))})}get magnet(){let e=this.track.loopedCurrent;return this.getNearestMagnet(e)}getNearestMagnet(e){let t=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(t.length===0)return;let i=t.reduce((r,n)=>Math.abs(n.magnet-e)<Math.abs(r.magnet-e)?n:r);return Object.assign(Object.assign({},i),{diff:i.magnet-e})}cancelTransition(){var e;(e=this._timeline)===null||e===void 0||e.destroy(),this._timeline=void 0}stick(){let{magnet:e}=this;this.track.isSlideScrolling||!e||this.toCoord(this.track.current+e.diff)}toCoord(e,t){var i,r;if(this.isEmpty)return!1;this.cancelTransition();let{track:n,props:o,callbacks:a}=this,h=n.current,l=e,d=Math.abs(l-h),c=(i=t==null?void 0:t.duration)!==null&&i!==void 0?i:o.duration,p=typeof c=="number"?c:c(d);d===0&&(p=0);let w=(r=t==null?void 0:t.easing)!==null&&r!==void 0?r:o.easing,u=new P({duration:p,easing:w});return this._timeline=u,u.on("start",()=>{var f;a.emit("timelineStart",void 0),(f=t==null?void 0:t.onStart)===null||f===void 0||f.call(t)}),u.on("update",f=>{var g;n.current=T(h,l,f.eased),n.target=n.current,f.progress===1&&(this._targetIndex=void 0),this.render(),a.emit("timelineUpdate",f),(g=t==null?void 0:t.onUpdate)===null||g===void 0||g.call(t,f)}),u.on("end",()=>{var f;u.destroy(),a.emit("timelineEnd",void 0),(f=t==null?void 0:t.onEnd)===null||f===void 0||f.call(t),this._timeline=void 0}),u.on("destroy",()=>{this._targetIndex=void 0}),u.play(),!0}toSlide(e,t={}){var i,r,{direction:n=null}=t,o=_t(t,["direction"]);let{isEmpty:a,activeIndex:h,slides:l,track:d,props:c}=this,{current:p,max:w,loopCount:u}=d;if(a)return!1;let f=C(e,0,this.slides.length);if(f===h)return this.stick(),!1;this._targetIndex=f;let g=l[f].magnets,y=g[0];if(c.centered?n==="prev"?y=(i=g[2])!==null&&i!==void 0?i:g[0]:n==="next"&&(y=(r=g[1])!==null&&r!==void 0?r:g[0]):y=n==="prev"?g[g.length-1]:y,!c.loop)return this.toCoord(y,o);let x=y+u*w,S=x-w,z=x+w,te=[S,x,z];if(typeof n=="string"){let Et=te.filter(D=>n==="next"?D>=p:D<=p),$=oe(p,Et);return this.toCoord($,o)}let se=oe(p,te);return this.toCoord(se,o)}next(e={}){var{skip:t=1}=e,i=_t(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?C(o+t,0,n.length):Math.min(o+t,n.length-1);return this.toSlide(a,Object.assign(Object.assign({},i),{direction:"next"}))}prev(e={}){var{skip:t=1}=e,i=_t(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?C(o-t,0,n.length):Math.max(o-t,0);return this.toSlide(a,Object.assign(Object.assign({},i),{direction:"prev"}))}_destroy(){super._destroy(),this._resizeHandler.remove(),this.cancelTransition(),this._raf.destroy(),this._slides.forEach(e=>e.detach())}};var Zs=Ot(Js());function ve(s,e){return e?typeof e=="string"?s.matches(e):typeof e=="function"?e(s):e.includes(s):!1}function ei({wordsMeta:s,classname:e,tagName:t,ignore:i}){let r=[],n=document.createElement(t);return n.style.display="inline-block",n.classList.add(e),s.forEach(o=>{if(ve(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let h=a.textContent;if(!h)return;(0,Zs.default)(h,"").forEach(d=>{let c=n.cloneNode(!1);c.appendChild(document.createTextNode(d)),o.element.insertBefore(c,a);let p={element:c};o.letters.push(p),r.push(p)}),a.remove()}),{lettersMeta:r}}function ti({container:s,classname:e,tagName:t,ignore:i}){let r=" ",n=document.createElement(t);n.style.display="inline-block",n.setAttribute("aria-hidden","true"),n.classList.add(e);let o=[],a=null;function h(l){var d,c;if(l instanceof HTMLElement||l instanceof DocumentFragment){if("tagName"in l&&l.tagName!=="BR"){if(ve(l,i)){a?a.append(l):o.push({element:l,letters:[]});return}l.style.display="inline-block"}a=null,[...Array.from(l.childNodes)].forEach(w=>h(w));return}if(l.nodeType===3){let p=(d=l.parentElement)!==null&&d!==void 0?d:s,w=(c=l.nodeValue)!==null&&c!==void 0?c:"";if(w===r){a=null,p==null||p.insertBefore(document.createTextNode(r),l),l.remove();return}let u=w.split(r);u.forEach((f,g)=>{if(f){let y=n.cloneNode(!1);y.appendChild(document.createTextNode(f)),a=y,o.push({element:y,letters:[]}),p==null||p.insertBefore(y,l)}g<u.length-1&&(p==null||p.insertBefore(document.createTextNode(r),l))}),l.remove()}}return h(s),o}function si({container:s,letterClassName:e,wordClassName:t,hasLetters:i,letterTag:r,wordTag:n,ignore:o}){let a=document.createDocumentFragment();for(;s.childNodes[0];)a.appendChild(s.childNodes[0]);let h=ti({container:a,classname:t,tagName:n,ignore:o}),l=[];if(i){let d=ei({wordsMeta:h,classname:e,tagName:r,ignore:o});l.push(...d.lettersMeta)}return s.appendChild(a),{wordsMeta:h,lettersMeta:l}}function ii(s){let{direction:e,textAlign:t}=getComputedStyle(s);return t==="center"?t:t==="justify"?e==="rtl"?"right":"left":t==="left"||t==="right"?t:t==="start"?e==="rtl"?"right":"left":t==="end"?e==="rtl"?"left":"right":e==="rtl"?"right":"left"}function ri(s,e){var t;return s!=null&&s.parentElement?s.parentElement===e?s:ri((t=s==null?void 0:s.parentElement)!==null&&t!==void 0?t:null,e):null}function ni(s,e){return s===e?!0:s!==null?ni(s.parentNode,e):!1}function oi({container:s,hasLinesWrapper:e,wordsMeta:t,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=ii(s),a=[],h=-1,l=null,d=document.createElement(n);d.style.display="block",d.setAttribute("aria-hidden","true"),d.classList.add(i);let c=t.map(u=>u.element.getBoundingClientRect());t.forEach((u,f)=>{var g;let y=c[f],x=ri(u.element,s);if(!x)return;let S=l&&y.top>l.top,z=l&&y.left>=l.left,te=l&&y.left<=l.left;if(!l||S&&te&&o==="left"||S&&z&&o==="right"||S&&o==="center"){h+=1;let $=d.cloneNode(!1),D;e&&(D=document.createElement(n),D.style.display="block",D.classList.add(r),D.appendChild($)),a[h]={element:$,wrapper:D,nodes:[],words:[]}}l=y;let se=a[h];!!a.find(({nodes:$})=>$.includes(x))||(se.nodes.push(x),((g=x.nextSibling)===null||g===void 0?void 0:g.nodeType)===3&&se.nodes.push(x.nextSibling))}),a.forEach(u=>{var f;s.insertBefore((f=u.wrapper)!==null&&f!==void 0?f:u.element,u.nodes[0]);let g=document.createDocumentFragment();g.append(...u.nodes),u.element.append(g)});let p=[];return a.forEach(u=>{var f;let g=((f=u.wrapper)!==null&&f!==void 0?f:u.element).nextElementSibling;g instanceof HTMLBRElement&&(g.style.display="none",p.push(g))}),a.forEach(u=>{u.words.push(...t.filter(f=>ni(f.element,u.element)))}),{linesMeta:a,destroy:()=>{let u=!0;return p.forEach(f=>{f.style.display=""}),a.forEach(f=>{var g;f.nodes.forEach(y=>{var x;let S=(x=f.wrapper)!==null&&x!==void 0?x:f.element;S.parentElement?s.insertBefore(y,S):u=!1}),f.element.remove(),(g=f.wrapper)===null||g===void 0||g.remove()}),u}}}function ai(s){let e=[];function t(i){e.push({node:i,cssText:i instanceof HTMLElement?i.style.cssText:null,parent:i.parentNode}),i.childNodes.forEach(r=>t(r))}return s.childNodes.forEach(i=>t(i)),{restore:()=>{let i=document.createDocumentFragment();for(e.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===s?i:r.parent).appendChild(r.node)});s.childNodes[0];)s.childNodes[0].remove();s.appendChild(i)}}}var St=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:this._cn("__letter"),wordClass:this._cn("__word"),lineClass:this._cn("__line"),lineWrapperClass:this._cn("__line-wrapper"),resizeDebounce:0,ignore:null})}_getMutable(){return Object.assign({},super._getMutable())}get prefix(){return`${m().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(e=>e.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(e=>e.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(e=>e.element)}constructor(e){super(e),this._isBaseSplit=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:t}=this.props;t.style.fontKerning="none",t.style.display="block",t.setAttribute("aria-label",t.textContent||""),this._addTempClassName(t,this._cn("")),t.translate=!1,this._savedNodes=ai(t),this._setup()}_setup(){let{container:e,resizeDebounce:t}=this.props;if(!this.props.lines){this.split();return}let i=I({callback:()=>this.split(),element:e,viewportTarget:"width",resizeDebounce:t,name:this.name});i.resize(),this.onDestroy(()=>i.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._isBaseSplit)return;let{container:e,letterTag:t,wordTag:i,wordClass:r,letterClass:n,ignore:o}=this.props;this._isBaseSplit=!0;let{wordsMeta:a,lettersMeta:h}=si({container:e,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:t,wordTag:i,ignore:o});this._wordsMeta=a,this._lettersMeta=h}_splitLines(){var e;let{wordsMeta:t}=this,{container:i,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;i.offsetParent!==null&&((e=this._lineSplitWrapper)===null||e===void 0||e.destroy(),this._lineSplitWrapper=oi({container:i,hasLinesWrapper:this.props.linesWrapper,wordsMeta:t,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._savedNodes.restore();else{let e=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,e&&this._savedNodes.restore()}}};var li=typeof window!="undefined"?m():void 0,Pr=li;return mi(zr);})();
|
|
177
177
|
/*! Bundled license information:
|
|
178
178
|
|
|
179
179
|
normalize-wheel/src/isEventSupported.js:
|
|
@@ -50,7 +50,7 @@ function wrapLines(_a) {
|
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
// create new line if the top position changes
|
|
53
|
-
var isNextTop = lastBounding && bounds.top
|
|
53
|
+
var isNextTop = lastBounding && bounds.top > lastBounding.top;
|
|
54
54
|
var isNextLeft = lastBounding && bounds.left >= lastBounding.left;
|
|
55
55
|
var isPrevLeft = lastBounding && bounds.left <= lastBounding.left;
|
|
56
56
|
if (!lastBounding ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapLines.js","sourceRoot":"","sources":["../../../../../src/components/SplitText/utils/wrapLines.ts"],"names":[],"mappings":";;AA+BA,0BAUC;AAKD,8BAiIC;AA9KD,yDAAwD;AAexD;;GAEG;AACH,SAAS,YAAY,CAAC,GAAmB,EAAE,SAAkB;;IAC3D,IAAI,CAAC,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,CAAA,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,GAAG,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QACpC,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,YAAY,CAAC,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,mCAAI,IAAI,EAAE,SAAS,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,OAAO,CAAC,OAAgB,EAAE,MAAe;IACvD,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,C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AC,OAAO,CAAC,MAAM,EAAE,CAAC;YACtB,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,EAAE,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;IAEF,OAAO,EAAE,SAAS,WAAA,EAAE,OAAO,SAAA,EAAE,CAAC;AAChC,CAAC"}
|
package/lib/cjs/manifest.json
CHANGED
|
@@ -43,7 +43,7 @@ export function wrapLines({ container, hasLinesWrapper, wordsMeta, lineClassName
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
// create new line if the top position changes
|
|
46
|
-
const isNextTop = lastBounding && bounds.top
|
|
46
|
+
const isNextTop = lastBounding && bounds.top > lastBounding.top;
|
|
47
47
|
const isNextLeft = lastBounding && bounds.left >= lastBounding.left;
|
|
48
48
|
const isPrevLeft = lastBounding && bounds.left <= lastBounding.left;
|
|
49
49
|
if (!lastBounding ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapLines.js","sourceRoot":"","sources":["../../../../../src/components/SplitText/utils/wrapLines.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAexD;;GAEG;AACH,SAAS,YAAY,CAAC,GAAmB,EAAE,SAAkB;;IAC3D,IAAI,CAAC,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,CAAA,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,GAAG,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QACpC,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,YAAY,CAAC,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,mCAAI,IAAI,EAAE,SAAS,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAgB,EAAE,MAAe;IACvD,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QAC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SAAS,GAAG,KAAK,CAAC;gBACpB,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACtB,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,EAAE,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;IAEF,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC"}
|
package/lib/esm/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vevet",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4",
|
|
4
4
|
"description": "Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"storybook": "storybook dev -p 6006",
|
|
@@ -78,7 +78,7 @@ export function wrapLines({
|
|
|
78
78
|
|
|
79
79
|
// create new line if the top position changes
|
|
80
80
|
|
|
81
|
-
const isNextTop = lastBounding && bounds.top
|
|
81
|
+
const isNextTop = lastBounding && bounds.top > lastBounding.top;
|
|
82
82
|
const isNextLeft = lastBounding && bounds.left >= lastBounding.left;
|
|
83
83
|
const isPrevLeft = lastBounding && bounds.left <= lastBounding.left;
|
|
84
84
|
|
package/src/manifest.json
CHANGED