1import{t as e}from"./vite-rolldown-runtime-DK3Fl9T5.min.js";var t=e({default:()=>i}),n={direction:`forward`,speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function r(e,t){let n=e.rootNode();return t&&t(n)||n}function i(e={}){let t,a,o,s,c=0,l=!1,u=!1,d;function f(c,l){a=c;let{mergeOptions:u,optionsAtMedia:f}=l;if(t=f(u(u(n,i.globalOptions),e)),a.scrollSnapList().length<=1)return;s=t.startDelay,o=!1,d=a.internalEngine().scrollBody;let{eventStore:p}=a.internalEngine(),g=!!a.internalEngine().options.watchDrag,x=r(a,t.rootNode);g&&a.on(`pointerDown`,_),g&&!t.stopOnInteraction&&a.on(`pointerUp`,v),t.stopOnMouseEnter&&p.add(x,`mouseenter`,y),t.stopOnMouseEnter&&!t.stopOnInteraction&&p.add(x,`mouseleave`,b),t.stopOnFocusIn&&a.on(`slideFocusStart`,h),t.stopOnFocusIn&&!t.stopOnInteraction&&p.add(a.containerNode(),`focusout`,m),t.playOnInit&&m()}function p(){a.off(`pointerDown`,_).off(`pointerUp`,v).off(`slideFocusStart`,h).off(`settle`,x),h(),o=!0,l=!1}function m(){if(o||l)return;a.emit(`autoScroll:play`);let e=a.internalEngine(),{ownerWindow:t}=e;c=t.setTimeout(()=>{e.scrollBody=g(e),e.animation.start()},s),l=!0}function h(){if(o||!l)return;a.emit(`autoScroll:stop`);let e=a.internalEngine(),{ownerWindow:t}=e;e.scrollBody=d,t.clearTimeout(c),c=0,l=!1}function g(e){let{location:n,previousLocation:r,offsetLocation:i,target:o,scrollTarget:s,index:c,indexPrevious:l,limit:{reachedMin:u,reachedMax:d,constrain:f},options:{loop:p}}=e,m=t.direction===`forward`?-1:1,g=()=>C,_=0,v=0,y=n.get(),b=0,x=!1;function S(){let e=0;r.set(n),_=m*t.speed,y+=_,n.add(_),o.set(n),e=y-b,v=Math.sign(e),b=y;let g=s.byDistance(0,!1).index;c.get()!==g&&(l.set(c.get()),c.set(g),a.emit(`select`));let S=t.direction===`forward`?u(i.get()):d(i.get());if(!p&&S){x=!0;let e=f(n.get());n.set(e),o.set(n),h()}return C}let C={direction:()=>v,duration:()=>-1,velocity:()=>_,settled:()=>x,seek:S,useBaseFriction:g,useBaseDuration:g,useFriction:g,useDuration:g};return C}function _(){u||h()}function v(){u||S()}function y(){u=!0,h()}function b(){u=!1,m()}function x(){a.off(`settle`,x),m()}function S(){a.on(`settle`,x)}function C(e){e!==void 0&&(s=e),m()}function w(){l&&h()}function T(){l&&(h(),S())}function E(){return l}return{name:`autoScroll`,options:e,init:f,destroy:p,play:C,stop:w,reset:T,isPlaying:E}}i.globalOptions=void 0;var a=e({default:()=>l}),o={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function s(e,t){let n=e.scrollSnapList();return typeof t==`number`?n.map(()=>t):t(n,e)}function c(e,t){let n=e.rootNode();return t&&t(n)||n}function l(e={}){let t,n,r,i,a=null,u=0,d=!1,f=!1,p=!1,m=!1;function h(a,u){n=a;let{mergeOptions:d,optionsAtMedia:f}=u;if(t=f(d(d(o,l.globalOptions),e)),n.scrollSnapList().length<=1)return;m=t.jump,r=!1,i=s(n,t.delay);let{eventStore:p,ownerDocument:h}=n.internalEngine(),g=!!n.internalEngine().options.watchDrag,_=c(n,t.rootNode);p.add(h,`visibilitychange`,x),g&&n.on(`pointerDown`,C),g&&!t.stopOnInteraction&&n.on(`pointerUp`,w),t.stopOnMouseEnter&&p.add(_,`mouseenter`,T),t.stopOnMouseEnter&&!t.stopOnInteraction&&p.add(_,`mouseleave`,E),t.stopOnFocusIn&&n.on(`slideFocusStart`,b),t.stopOnFocusIn&&!t.stopOnInteraction&&p.add(n.containerNode(),`focusout`,y),t.playOnInit&&y()}function g(){n.off(`pointerDown`,C).off(`pointerUp`,w).off(`slideFocusStart`,b),b(),r=!0,d=!1}function _(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(u),u=e.setTimeout(j,i[n.selectedScrollSnap()]),a=new Date().getTime(),n.emit(`autoplay:timerset`)}function v(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(u),u=0,a=null,n.emit(`autoplay:timerstopped`)}function y(){if(!r){if(S()){p=!0;return}d||n.emit(`autoplay:play`),_(),d=!0}}function b(){r||(d&&n.emit(`autoplay:stop`),v(),d=!1)}function x(){if(S())return p=d,b();p&&y()}function S(){let{ownerDocument:e}=n.internalEngine();return e.visibilityState===`hidden`}function C(){f||b()}function w(){f||y()}function T(){f=!0,b()}function E(){f=!1,y()}function D(e){e!==void 0&&(m=e),y()}function O(){d&&b()}function k(){d&&y()}function A(){return d}function j(){let{index:e}=n.internalEngine(),r=e.clone().add(1).get(),i=n.scrollSnapList().length-1,a=t.stopOnLastSnap&&r===i;if(n.canScrollNext()?n.scrollNext(m):n.scrollTo(0,m),n.emit(`autoplay:select`),a)return b();y()}function M(){return a?i[n.selectedScrollSnap()]-(new Date().getTime()-a):null}return{name:`autoplay`,options:e,init:h,destroy:g,play:D,stop:O,reset:k,isPlaying:A,timeUntilNext:M}}l.globalOptions=void 0;var u=e({default:()=>p});function d(e,t,n){return Math.min(Math.max(e,t),n)}function f(e){return typeof e==`number`&&!isNaN(e)}function p(e={}){let t,n=[],r,i=0,a=0,o=0,s=!1,c,l;function u(e){t=e;let i=t.selectedScrollSnap(),{scrollBody:a,containerRect:o,axis:u}=t.internalEngine();r=d(u.measureSize(o)*.75,200,500),s=!1,n=t.scrollSnapList().map((e,t)=>+(t===i)),c=a.settled,l=t.scrollProgress,a.settled=E,t.scrollProgress=D,t.on(`select`,_).on(`slideFocus`,m).on(`pointerDown`,g).on(`pointerUp`,h),y(),m()}function p(){let{scrollBody:e}=t.internalEngine();e.settled=c,t.scrollProgress=l,t.off(`select`,_).off(`slideFocus`,m).off(`pointerDown`,g).off(`pointerUp`,h),t.slideNodes().forEac
1h(e=>{let t=e.style;t.opacity=``,t.transform=``,t.pointerEvents=``,e.getAttribute(`style`)||e.removeAttribute(`style`)})}function m(){x(t.selectedScrollSnap(),1)}function h(){s=!1}function g(){s=!1,i=0,a=0}function _(){let e=t.internalEngine().scrollBody.duration();a=+!e,s=!0,e||m()}function v(e){let{axis:n}=t.internalEngine();return`translate${n.scroll.toUpperCase()}(${n.direction(e)}px)`}function y(){let{translate:e,slideLooper:n}=t.internalEngine();e.clear(),e.toggleActive(!1),n.loopPoints.forEach(({translate:e})=>{e.clear(),e.toggleActive(!1)})}function b(e){let{scrollSnaps:r,location:i,target:a}=t.internalEngine();!f(e)||n[e]<.5||(i.set(r[e]),a.set(i))}function x(e,r){t.scrollSnapList().forEach((i,a)=>{let o=Math.abs(r),c=n[a],l=a===e,u=d(l?c+o:c-o,0,1);n[a]=u;let f=l&&s,p=t.previousScrollSnap();f&&(n[p]=1-u),l&&C(e,u),S(a)})}function S(e){let r=t.internalEngine().slideRegistry[e],{scrollSnaps:i,containerRect:a}=t.internalEngine(),o=n[e];r.forEach(n=>{let r=t.slideNodes()[n].style,s=parseFloat(o.toFixed(2)),c=s>0,l=v(c?i[e]:a.width+2);c&&(r.transform=l),r.opacity=s.toString(),r.pointerEvents=o>.5?`auto`:`none`,c||(r.transform=l)})}function C(e,n){let{index:r,dragHandler:a,scrollSnaps:s}=t.internalEngine(),c=a.pointerDown(),l=1/(s.length-1),u=e,d=c?t.selectedScrollSnap():t.previousScrollSnap();if(c&&u===d){let e=Math.sign(i)*-1;u=d,d=r.clone().set(d).add(e).get()}o=d*l+(u-d)*l*n}function w(){let{dragHandler:e,index:n,scrollBody:r}=t.internalEngine(),a=t.selectedScrollSnap();if(!e.pointerDown())return a;let o=Math.sign(r.velocity()),s=Math.sign(i),c=n.clone().set(a).add(o*-1).get();return!o||!s?null:s===o?c:a}function T(e){let{dragHandler:t,scrollBody:o}=e.internalEngine(),s=t.pointerDown(),c=o.velocity(),l=o.duration(),u=w(),d=!f(u);if(s){if(!c)return;i+=c,a=Math.abs(c/r),b(u)}if(!s){if(!l||d)return;a+=(1-n[u])/l,a*=.68}d||x(u,a)}function E(){let{target:e,location:r}=t.internalEngine(),i=e.get()-r.get(),a=Math.abs(i)>=1,o=w(),s=!f(o);return T(t),s||a?!1:n[o]>.999}function D(){return o}return{name:`fade`,options:e,init:u,destroy:p}}p.globalOptions=void 0;function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}var h=.996,g=function(e,t){return t===void 0&&(t=h),e*t/(1-t)};function _(e){return e[e.length-1]}function v(e){return e.reduce(function(e,t){return e+t})/e.length}var y=function(e,t,n){return Math.min(Math.max(t,e),n)};function b(e,t){if(e.length!==t.length)throw Error(`vectors must be same length`);return e.map(function(e,n){return e+t[n]})}function x(e){return Math.max.apply(Math,e.map(Math.abs))}function S(e){return Object.freeze(e),Object.values(e).forEach(function(e){typeof e==`object`&&e&&!Object.isFrozen(e)&&S(e)}),e}function C(){var e={};function t(t,r){return e[t]=(e[t]||[]).concat(r),function(){return n(t,r)}}function n(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}function r(t,n){t in e&&e[t].forEach(function(e){return e(n)})}return S({on:t,off:n,dispatch:r})}function w(e){var t=[],n=function(n){return n.addEventListener(`wheel`,e,{passive:!1}),t.push(n),function(){return r(n)}},r=function(n){n.removeEventListener(`wheel`,e),t=t.filter(function(e){return e!==n})};return S({observe:n,unobserve:r,disconnect:function(){t.forEach(r)}})}var T=[1,16*1.125,typeof window<`u`&&window.innerHeight||800];function E(e){var t=e.deltaX*T[e.deltaMode],n=e.deltaY*T[e.deltaMode],r=(e.deltaZ||0)*T[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var D=[-1,-1,-1];function O(e,t){if(!t)return e;var n=t===!0?D:t.map(function(e){return e?-1:1});return m({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}var k=700,A=function(e){return m({},e,{axisDelta:e.axisDelta.map(function(e){return y(e,-k,k)})})},j=!1,M=.6,N=.96,P=2,F=5,I=S({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),L=400;function R(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:L}}function z(e){e===void 0&&(e={});var t=C(),n=t.on,r=t.off,i=t.dispatch,a=I,o=R(),s,c=!1,l,u=function(e){Array.isArray(e)?e.forEach(function(e){return h(e)}):h(e)},d=function(e){return e===void 0&&(e={}),Object.values(e).some(function(e){return e==null})?(j&&console.error(`updateOptions ignored! undefined & null options not allowed`),a):a=S(m({},I,a,e))},f=function(e){var t=m({event:s,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:o.isMomentum,axisDelta:[0,0,0],axisVelocity:o.axisVelocity,axisMovement:o.axisMovement,get axisMovementProjection(){return b(t.axisMovement,t.axisVelocity.map(function(e){return g(e)}))}},e);i(`wheel`,m({},t,{previous:l})),l=t},p=function(e,t){var n=a.preventWheelAction,r=t[0],i=t[1],o=t[2];if(typeof n==`boolean`)return n;switch(n){case`x`:return Math.abs(r)>=e;case`y`:return Math.abs(i)>=e;case`z`:return Math.abs(o)>=e;default:return j&&console.warn(`unsupported preventWheelAction value: `+n,`warn`),!1}},h=function(e){var t=A(O(E(e),a.reverseSign)),n=t.axisDelta,r=t.timeStamp,i=x(n);if(e.preventDefault&&p(i,n)&&e.preventDefault(),o.isStarted?o.isMomentum&&i>Math.max(2,o.lastAbsDelta*2)&&(U(!0),V()):V(),i===0&&Object.is&&Object.is(e.deltaX,-0)){c=!0;return}s=e,o.axisMovement=b(o.axisMovement,n),o.lastAbsDelta=i,o.scrollPointsToMerge.push({axisDelta:n,timeStamp:r}),y(),f({axisDelta:n,isStart:!o.isStartPublished}),o.isStartPublished=!0,H()},y=function(){o.scrollPointsToMerge.length===P?(o.scrollPoints.unshift({axisDeltaSum:o.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(b),timeStamp:v(o.scrollPointsToMerge.map(function(e){return e.timeStamp}))}),D(),o.scrollPointsToMerge.length=0,o.scrollPoints.length=1,o.isMomentum||z()):o.isStartPublished||T()},T=function(){o.axisVelocity=_(o.scrollPointsToMerge).axisDelta.map(function(e){return e/o.willEndTimeout})},D=function(){var e=o.scrollPoints,t=e[0],n=e[1];if(!(!n||!t)){var r=t.timeStamp-n.timeStamp;
1if(r<=0){j&&console.warn(`invalid deltaTime`);return}var i=t.axisDeltaSum.map(function(e){return e/r}),a=i.map(function(e,t){return e/(o.axisVelocity[t]||1)});o.axisVelocity=i,o.accelerationFactors.push(a),k(r)}},k=function(e){var t=Math.ceil(e/10)*10*1.2;o.isMomentum||(t=Math.max(100,t*2)),o.willEndTimeout=Math.min(1e3,Math.round(t))},L=function(e){return e===0?!0:e<=N&&e>=M},z=function(){if(o.accelerationFactors.length>=F){if(c&&(c=!1,x(o.axisVelocity)>=.2)){B();return}var e=o.accelerationFactors.slice(F*-1);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(L).length===e.length;return t||n})&&B(),o.accelerationFactors=e}},B=function(){o.isMomentum=!0},V=function(){o=R(),o.isStarted=!0,o.startTime=Date.now(),l=void 0,c=!1},H=function(){var e;return function(){clearTimeout(e),e=setTimeout(U,o.willEndTimeout)}}(),U=function(e){e===void 0&&(e=!1),o.isStarted&&(o.isMomentum&&e?f({isEnding:!0,isMomentumCancel:!0}):f({isEnding:!0}),o.isMomentum=!1,o.isStarted=!1)},W=w(u),G=W.observe,K=W.unobserve,q=W.disconnect;return d(e),S({on:n,off:r,observe:G,unobserve:K,disconnect:q,feedWheel:u,updateOptions:d})}var B=e({WheelGesturesPlugin:()=>U,default:()=>U}),V={active:!0,breakpoints:{},wheelDraggingClass:`is-wheel-dragging`,forceWheelAxis:void 0,target:void 0};U.globalOptions=void 0;var H=!1;function U(e){e===void 0&&(e={});var t,n=function(){};function r(r,i){var a=i.mergeOptions,o=i.optionsAtMedia;t=o(a(a(V,U.globalOptions),e));var s=r.internalEngine(),c=t.target??r.containerNode().parentNode,l=t.forceWheelAxis??s.options.axis,u=z({preventWheelAction:l,reverseSign:[!0,!0,!1]});function d(){_=(l===`x`?s.containerRect.width:s.containerRect.height)/2}var f=u.observe(c),p=u.on(`wheel`,O),m=!1,h,g=0,_=0,v=!1;d(),r.on(`resize`,d);function y(e){try{h=new MouseEvent(`mousedown`,e.event),T(h)}catch{return H&&console.warn(`Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)`),n()}m=!0,g=0,x(),t.wheelDraggingClass&&c.classList.add(t.wheelDraggingClass)}function b(e){m=!1,T(w(`mouseup`,e)),S(),t.wheelDraggingClass&&c.classList.remove(t.wheelDraggingClass)}function x(){document.documentElement.addEventListener(`mousemove`,C,!0),document.documentElement.addEventListener(`mouseup`,C,!0),document.documentElement.addEventListener(`mousedown`,C,!0)}function S(){document.documentElement.removeEventListener(`mousemove`,C,!0),document.documentElement.removeEventListener(`mouseup`,C,!0),document.documentElement.removeEventListener(`mousedown`,C,!0)}function C(e){m&&e.isTrusted&&e.stopImmediatePropagation()}function w(e,t){var n,r;if(l===s.options.axis){var i=t.axisMovement;n=i[0],r=i[1]}else{var a=t.axisMovement;r=a[0],n=a[1]}if(E(t).isAtBoundary){var o=.25+Math.min(g/_,1)*.5,c=g*(n>0?-1:1)*o;n+=c,r+=c}if(!s.options.skipSnaps&&!s.options.dragFree){var u=s.containerRect.width,d=s.containerRect.height;n=n<0?Math.max(n,-u):Math.min(n,u),r=r<0?Math.max(r,-d):Math.min(r,d)}return new MouseEvent(e,{clientX:h.clientX+n,clientY:h.clientY+r,screenX:h.screenX+n,screenY:h.screenY+r,movementX:n,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function T(e){r.containerNode().dispatchEvent(e)}function E(e){var t=e.axisDelta,n=t[0],i=t[1],a=r.scrollProgress(),o=a<1,s=a>0,c=l===`x`?n:i;return{isAtBoundary:c<0&&!o||c>0&&!s,primaryAxisDelta:c}}function D(e){var t=E(e),n=t.isAtBoundary,r=t.primaryAxisDelta;if(n&&!e.isMomentum){if(g+=Math.abs(r),g>_)return v=!0,b(e),!0}else g=0;return!1}function O(e){var t=e.axisDelta,n=t[0],r=t[1],i=l===`x`?n:r,a=l===`x`?r:n,o=e.isMomentum&&e.previous&&!e.previous.isMomentum,s=e.isEnding&&!e.isMomentum||o;Math.abs(i)>Math.abs(a)&&!m&&!e.isMomentum&&!v&&y(e),v&&e.isEnding&&(v=!1),m&&(D(e)||(s?b(e):T(w(`mousemove`,e))))}n=function(){f(),p(),r.off(`resize`,d),S()}}return{name:`wheelGestures`,options:e,init:r,destroy:function(){return n()}}}export{t as i,u as n,a as r,B as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.