(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4452],{10:(e,t,i)=>{"use strict";i.d(t,{V:()=>d,f:()=>m});var s=i(4272);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var n=i(614),a=i(1557);let o="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function d(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},n=[],a=0,d=t.replace(u,e=>(s.y.test(e)?(r.color.push(a),n.push(l),i.push(s.y.parse(e))):e.startsWith("var(")?(r.var.push(a),n.push("var"),i.push(e)):(r.number.push(a),n.push(o),i.push(parseFloat(e))),++a,"${}")).split("${}");return{values:i,split:d,indexes:r,types:n}}function h(e){return d(e).values}function c(e){let{split:t,types:i}=d(e),r=t.length;return e=>{let n="";for(let u=0;u"number"==typeof e?0:s.y.test(e)?s.y.getAnimatableNone(e):e,m={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(n.S)?.length||0)+(e.match(r)?.length||0)>0},parse:h,createTransformer:c,getAnimatableNone:function(e){let t=h(e);return c(e)(t.map(p))}}},98:(e,t,i)=>{"use strict";i.d(t,{OQ:()=>d,bt:()=>l});var s=i(5626),r=i(2923),n=i(4261),a=i(9515);let o=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let i=n.k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=n.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=o(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new s.v);let i=this.events[e].add(t);return"change"===e?()=>{i(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=n.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function d(e,t){return new u(e,t)}},614:(e,t,i)=>{"use strict";i.d(t,{S:()=>s});let s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},1297:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});let s=(e,t,i)=>i>t?t:i{"use strict";i.d(t,{u:()=>r});var s=i(9064);let r={test:(0,i(5920).$)("#"),parse:function(e){let t="",i="",s="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:s.B.transform}},1469:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},getImageProps:function(){return o}});let s=i(8229),r=i(8883),n=i(3063),a=s._(i(1193));function o(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let l=n.Image},1508:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});let s=(0,i(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},1557:(e,t,i)=>{"use strict";i.d(t,{a:()=>s});let s=e=>Math.round(1e5*e)/1e5},2057:(e,t,i)=>{"use strict";var s=i(2115),r=i(9556);function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,s)}return i}function a(e){for(var t=1;t=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i0?S.current=setTimeout(e,1e3*d):e(),null==v||v({pauseResume:C,reset:A,update:k})}),C=h(function(){P().pauseResume(),null==g||g({reset:A,start:V,update:k})}),A=h(function(){P().el&&(S.current&&clearTimeout(S.current),P().reset(),null==y||y({pauseResume:C,start:V,update:k}))}),k=h(function(e){P().update(e),null==w||w({pauseResume:C,reset:A,start:V})}),V=h(function(){A(),M()}),O=h(function(e){n&&(e&&A(),M())});return s.useEffect(function(){T.current?o&&O(!0):(T.current=!0,O())},[o,T,O,d,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.formattingFn]),s.useEffect(function(){return function(){A()}},[A]),{start:V,pauseResume:C,reset:A,update:k,getCountUp:P}},v=["className","redraw","containerProps","children","style"];t.Ay=function(e){var t=e.className,i=e.redraw,r=e.containerProps,n=e.children,u=e.style,d=l(e,v),c=s.useRef(null),p=s.useRef(!1),m=f(a(a({},d),{},{ref:c,startOnMount:"function"!=typeof n||0===e.delay,enableReinitialize:!1})),g=m.start,y=m.reset,w=m.update,b=m.pauseResume,x=m.getCountUp,S=h(function(){g()}),T=h(function(t){e.preserveValue||y(),w(t)}),E=h(function(){if("function"==typeof e.children&&!(c.current instanceof Element)){console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. .');return}x()});s.useEffect(function(){E()},[E]),s.useEffect(function(){p.current&&T(e.end)},[e.end,T]);var P=i&&e;return(s.useEffect(function(){i&&p.current&&S()},[S,i,P]),s.useEffect(function(){!i&&p.current&&S()},[S,i,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.className,e.formattingFn]),s.useEffect(function(){p.current=!0},[]),"function"==typeof n)?n({countUpRef:c,start:g,reset:y,update:w,pauseResume:b,getCountUp:x}):s.createElement("span",o({className:t,ref:c,style:u},r),void 0!==e.start?x().formattingFn(e.start):"")}},2252:()=>{},2379:(e,t,i)=>{"use strict";function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function r(e,t){void 0===e&&(e={}),void 0===t&&(t={});let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:s(t[i])&&s(e[i])&&Object.keys(t[i]).length>0&&r(e[i],t[i])})}i.d(t,{a:()=>l,g:()=>a});let n={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){let e="undefined"!=typeof document?document:{};return r(e,n),e}let o={document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){let e="undefined"!=typeof window?window:{};return r(e,o),e}},2482:(e,t,i)=>{"use strict";i.d(t,{a:()=>b,c:()=>f,d:()=>a,e:()=>c,f:()=>x,g:()=>h,h:()=>w,j:()=>o,n:()=>n,o:()=>S,p:()=>y,q:()=>g,r:()=>v,s:()=>u,t:()=>d,u:()=>m,v:()=>p,w:()=>function e(){let t=Object(arguments.length<=0?void 0:arguments[0]),i=["__proto__","constructor","prototype"];for(let s=1;s0>i.indexOf(e));for(let i=0,n=s.length;ir});var s=i(2379);function r(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}function n(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function a(){return Date.now()}function o(e,t){let i,r,n;void 0===t&&(t="x");let a=(0,s.a)(),o=function(e){let t;let i=(0,s.a)();return i.getComputedStyle&&(t=i.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return a.WebKitCSSMatrix?((r=o.transform||o.webkitTransform).split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),n=new a.WebKitCSSMatrix("none"===r?"":r)):i=(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=a.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=a.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function l(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e,t,i){e.style.setProperty(t,i)}function d(e){let t,{swiper:i,targetPosition:r,side:n}=e,a=(0,s.a)(),o=-i.translate,l=null,u=i.params.speed;i.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(i.cssModeFrameID);let d=r>o?"next":"prev",h=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,c=()=>{t=new Date().getTime(),null===l&&(l=t);let e=o+(.5-Math.cos(Math.max(Math.min((t-l)/u,1),0)*Math.PI)/2)*(r-o);if(h(e,r)&&(e=r),i.wrapperEl.scrollTo({[n]:e}),h(e,r)){i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[n]:e})}),a.cancelAnimationFrame(i.cssModeFrameID);return}i.cssModeFrameID=a.requestAnimationFrame(c)};c()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function c(e,t){void 0===t&&(t="");let i=(0,s.a)(),r=[...e.children];return(i.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t)?r.filter(e=>e.matches(t)):r}function p(e,t){let i=(0,s.a)(),r=t.contains(e);return!r&&i.HTMLSlotElement&&t instanceof HTMLSlotElement&&!(r=[...t.assignedElements()].includes(e))&&(r=function(e,t){let i=[t];for(;i.length>0;){let t=i.shift();if(e===t)return!0;i.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)),r}function m(e){try{console.warn(e);return}catch(e){}}function f(e,t){var i;void 0===t&&(t=[]);let s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:(void 0===(i=t)&&(i=""),i.trim().split(" ").filter(e=>!!e.trim()))),s}function v(e,t){let i=[];for(;e.previousElementSibling;){let s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}function g(e,t){let i=[];for(;e.nextElementSibling;){let s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}function y(e,t){return(0,s.a)().getComputedStyle(e,null).getPropertyValue(t)}function w(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function b(e,t){let i=[],s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function x(e,t,i){let r=(0,s.a)();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function S(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}},2885:(e,t,i)=>{"use strict";i.d(t,{M:()=>r});var s=i(2115);function r(e){let t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}},2923:(e,t,i)=>{"use strict";function s(e,t){return t?1e3/t*e:0}i.d(t,{f:()=>s})},3191:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});let s=(e,t)=>i=>t(e(i)),r=(...e)=>e.reduce(s)},3210:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});let s=(e,t,i)=>e+(t-e)*i},3387:(e,t,i)=>{"use strict";i.d(t,{W:()=>s});let s={}},4158:(e,t,i)=>{"use strict";i.d(t,{KN:()=>n,gQ:()=>u,px:()=>a,uj:()=>r,vh:()=>o,vw:()=>l});let s=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),r=s("deg"),n=s("%"),a=s("px"),o=s("vh"),l=s("vw"),u={...n,parse:e=>n.parse(e)/100,transform:e=>n.transform(100*e)}},4261:(e,t,i)=>{"use strict";let s;i.d(t,{k:()=>o});var r=i(3387),n=i(9515);function a(){s=void 0}let o={now:()=>(void 0===s&&o.set(n.uv.isProcessing||r.W.useManualTiming?n.uv.timestamp:performance.now()),s),set:e=>{s=e,queueMicrotask(a)}}},4272:(e,t,i)=>{"use strict";i.d(t,{y:()=>a});var s=i(1335),r=i(8476),n=i(9064);let a={test:e=>n.B.test(e)||s.u.test(e)||r.V.test(e),parse:e=>n.B.test(e)?n.B.parse(e):r.V.test(e)?r.V.parse(e):s.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?n.B.transform(e):r.V.transform(e),getAnimatableNone:e=>{let t=a.parse(e);return t.alpha=0,a.transform(t)}}},4412:(e,t,i)=>{"use strict";function s(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function r(e){let t=[{},{}];return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function n(e,t,i,s){if("function"==typeof t){let[n,a]=r(s);t=t(void 0!==i?i:e.custom,n,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,a]=r(s);t=t(void 0!==i?i:e.custom,n,a)}return t}function a(e,t,i){let s=e.getProps();return n(s,t,void 0!==i?i:s.custom,e)}function o(e,t){return e?.[t]??e?.default??e}i.d(t,{P:()=>rB});var l,u,d=i(9515);let h=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],c=new Set(h),p=new Set(["width","height","top","left","right","bottom",...h]);var m=i(98);let f=e=>Array.isArray(e);var v=i(3387);let g=e=>!!(e&&e.getVelocity);function y(e,t){let i=e.getValue("willChange");if(g(i)&&i.add)return i.add(t);if(!i&&v.W.WillChange){let i=new v.W.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let w=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),b="data-"+w("framerAppearId");var x=i(3191),S=i(1297);let T=e=>1e3*e,E=e=>e/1e3;var P=i(4261);let M={layout:0,mainThread:0,waapi:0};var C=i(6087);let A=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>d.Gt.update(t,e),stop:()=>(0,d.WG)(t),now:()=>d.uv.isProcessing?d.uv.timestamp:P.k.now()}},k=(e,t,i=10)=>{let s="",r=Math.max(Math.round(t/i),2);for(let t=0;t=2e4?1/0:t}var O=i(2923);function D(e,t,i){let s=Math.max(t-5,0);return(0,O.f)(i-e(s),t-s)}let L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var j=i(4542);function R(e,t){return e*Math.sqrt(1-t*t)}let I=["duration","bounce"],F=["stiffness","damping","mass"];function B(e,t){return t.some(t=>void 0!==e[t])}function N(e=L.visualDuration,t=L.bounce){let i;let s="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:n}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:c,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...e};if(!B(e,F)&&B(e,I)){if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),s=i*i,r=2*(0,S.q)(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:L.mass,stiffness:s,damping:r}}else{let i=function({duration:e=L.duration,bounce:t=L.bounce,velocity:i=L.velocity,mass:s=L.mass}){let r,n;(0,j.$)(e<=T(L.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=(0,S.q)(L.minDamping,L.maxDamping,a),e=(0,S.q)(L.minDuration,L.maxDuration,E(e)),a<1?(r=t=>{let s=t*a,r=s*e;return .001-(s-i)/R(t,a)*Math.exp(-r)},n=t=>{let s=t*a*e,n=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-s),l=R(Math.pow(t,2),a);return(s*i+i-n)*o*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),n=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(r,n,5/e);if(e=T(e),isNaN(o))return{stiffness:L.stiffness,damping:L.damping,duration:e};{let t=Math.pow(o,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:e}}}(e);(t={...t,...i,mass:L.mass}).isResolvedFromDuration=!0}}return t}({...s,velocity:-E(s.velocity||0)}),f=p||0,v=d/(2*Math.sqrt(u*h)),g=o-a,y=E(Math.sqrt(u/h)),w=5>Math.abs(g);if(r||(r=w?L.restSpeed.granular:L.restSpeed.default),n||(n=w?L.restDelta.granular:L.restDelta.default),v<1){let e=R(y,v);i=t=>o-Math.exp(-v*y*t)*((f+v*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)i=e=>o-Math.exp(-y*e)*(g+(f+y*g)*e);else{let e=y*Math.sqrt(v*v-1);i=t=>{let i=Math.exp(-v*y*t),s=Math.min(e*t,300);return o-i*((f+v*y*g)*Math.sinh(s)+e*g*Math.cosh(s))/e}}let b={calculatedDuration:m&&c||null,next:e=>{let t=i(e);if(m)l.done=e>=c;else{let s=0===e?f:0;v<1&&(s=0===e?T(f):D(i,e,t));let a=Math.abs(o-t)<=n;l.done=Math.abs(s)<=r&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(V(b),2e4),t=k(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function _({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:d}){let h,c;let p=e[0],m={done:!1,value:p},f=e=>void 0!==o&&el,v=e=>void 0===o?l:void 0===l?o:Math.abs(o-e)-g*Math.exp(-e/s),x=e=>w+b(e),S=e=>{let t=b(e),i=x(e);m.done=Math.abs(t)<=u,m.value=m.done?w:i},T=e=>{f(m.value)&&(h=e,c=N({keyframes:[m.value,v(m.value)],velocity:D(x,e,m.value),damping:r,stiffness:n,restDelta:u,restSpeed:d}))};return T(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==h||(t=!0,S(e),T(e)),void 0!==h&&e>=h)?c.next(e-h):(t||S(e),m)}}}N.applyToOptions=e=>{let t=function(e,t=100,i){let s=i({...e,keyframes:[0,t]}),r=Math.min(V(s),2e4);return{type:"keyframes",ease:e=>s.next(r*e).value/t,duration:E(r)}}(e,100,N);return e.ease=t.ease,e.duration=T(t.duration),e.type="keyframes",e};var z=i(9827);let G=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function $(e,t,i,s){if(e===t&&i===s)return z.l;let r=t=>(function(e,t,i,s,r){let n,a;let o=0;do(n=G(a=t+(i-t)/2,s,r)-e)>0?i=a:t=a;while(Math.abs(n)>1e-7&&++o<12);return a})(t,0,1,e,i);return e=>0===e||1===e?e:G(r(e),t,s)}let W=$(.42,0,1,1),U=$(0,0,.58,1),q=$(.42,0,.58,1),H=e=>Array.isArray(e)&&"number"!=typeof e[0],Y=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,X=e=>t=>1-e(1-t),K=$(.33,1.53,.69,.99),Q=X(K),Z=Y(Q),J=e=>(e*=2)<1?.5*Q(e):.5*(2-Math.pow(2,-10*(e-1))),ee=e=>1-Math.sin(Math.acos(e)),et=X(ee),ei=Y(ee),es=e=>Array.isArray(e)&&"number"==typeof e[0],er={linear:z.l,easeIn:W,easeInOut:q,easeOut:U,circIn:ee,circInOut:ei,circOut:et,backIn:Q,backInOut:Z,backOut:K,anticipate:J},en=e=>"string"==typeof e,ea=e=>{if(es(e)){(0,j.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,i,s,r]=e;return $(t,i,s,r)}return en(e)?((0,j.V)(void 0!==er[e],`Invalid easing type '${e}'`),er[e]):e};var eo=i(6775),el=i(5818),eu=i(3210);function ed({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){let r=H(s)?s.map(ea):ea(s),n={done:!1,value:t[0]},a=(i&&i.length===t.length?i:function(e){let t=[0];return function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let r=(0,el.q)(0,t,s);e.push((0,eu.k)(i,1,r))}}(t,e.length-1),t}(t)).map(t=>t*e),o=(0,eo.G)(a,t,{ease:Array.isArray(r)?r:t.map(()=>r||q).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(n.value=o(t),n.done=t>=e,n)}}let eh=e=>null!==e;function ec(e,{repeat:t,repeatType:i="loop"},s,r=1){let n=e.filter(eh),a=r<0||t&&"loop"!==i&&t%2==1?0:n.length-1;return a&&void 0!==s?s:n[a]}let ep={decay:_,inertia:_,tween:ed,keyframes:ed,spring:N};function em(e){"string"==typeof e.type&&(e.type=ep[e.type])}class ef{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let ev=e=>e/100;class eg extends ef{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==P.k.now()&&this.tick(P.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},M.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;em(e);let{type:t=ed,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:n=0}=e,{keyframes:a}=e,o=t||ed;o!==ed&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,x.F)(ev,(0,C.j)(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-n})),null===l.calculatedDuration&&(l.calculatedDuration=V(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:n,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let y=this.currentTime,w=i;if(d){let e=Math.min(this.currentTime,s)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===h?(i=1-i,c&&(i-=c/a)):"mirror"===h&&(w=n)),y=(0,S.q)(0,1,i)*a}let b=g?{done:!1,value:u[0]}:w.next(y);r&&(b.value=r(b.value));let{done:x}=b;g||null===o||(x=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return T&&p!==_&&(b.value=ec(u,this.options,f,this.speed)),m&&m(b.value),T&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return E(this.calculatedDuration)}get time(){return E(this.currentTime)}set time(e){e=T(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(P.k.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=E(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=A,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(P.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,M.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let ey=e=>180*e/Math.PI,ew=e=>ex(ey(Math.atan2(e[1],e[0]))),eb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ew,rotateZ:ew,skewX:e=>ey(Math.atan(e[1])),skewY:e=>ey(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ex=e=>((e%=360)<0&&(e+=360),e),eS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eS,scaleY:eT,scale:e=>(eS(e)+eT(e))/2,rotateX:e=>ex(ey(Math.atan2(e[6],e[5]))),rotateY:e=>ex(ey(Math.atan2(-e[2],e[0]))),rotateZ:ew,rotate:ew,skewX:e=>ey(Math.atan(e[4])),skewY:e=>ey(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eP(e){return+!!e.includes("scale")}function eM(e,t){let i,s;if(!e||"none"===e)return eP(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=eE,s=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eb,s=t}if(!s)return eP(t);let n=i[t],a=s[1].split(",").map(eA);return"function"==typeof n?n(a):a[n]}let eC=(e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eM(i,t)};function eA(e){return parseFloat(e.trim())}var ek=i(7887),eV=i(4158);let eO=e=>e===ek.ai||e===eV.px,eD=new Set(["x","y","z"]),eL=h.filter(e=>!eD.has(e)),ej={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eM(t,"x"),y:(e,{transform:t})=>eM(t,"y")};ej.translateX=ej.x,ej.translateY=ej.y;let eR=new Set,eI=!1,eF=!1,eB=!1;function eN(){if(eF){let e=Array.from(eR).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t=function(e){let t=[];return eL.forEach(i=>{let s=e.getValue(i);void 0!==s&&(t.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),t}(e);t.length&&(i.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eF=!1,eI=!1,eR.forEach(e=>e.complete(eB)),eR.clear()}function e_(){eR.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eF=!0)})}class ez{constructor(e,t,i,s,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(eR.add(this),eI||(eI=!0,d.Gt.read(e_),d.Gt.resolveKeyframes(eN))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(null===e[0]){let r=s?.get(),n=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let s=i.readValue(t,n);null!=s&&(e[0]=s)}void 0===e[0]&&(e[0]=n),s&&void 0===r&&s.set(e[0])}!function(e){for(let t=1;te.startsWith("--");function e$(e){let t;return()=>(void 0===t&&(t=e()),t)}let eW=e$(()=>void 0!==window.ScrollTimeline);var eU=i(4744);let eq={},eH=function(e,t){let i=e$(e);return()=>eq[t]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),eY=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,eX={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eY([0,.65,.55,1]),circOut:eY([.55,0,1,.45]),backIn:eY([.31,.01,.66,-.59]),backOut:eY([.33,1.53,.69,.99])};function eK(e){return"function"==typeof e&&"applyToOptions"in e}class eQ extends ef{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:i,keyframes:s,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=e,(0,j.V)("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:e,...t}){return eK(e)&&eH()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let d={[t]:i};l&&(d.offset=l);let h=function e(t,i){if(t)return"function"==typeof t?eH()?k(t,i):"ease-out":es(t)?eY(t):Array.isArray(t)?t.map(t=>e(t,i)||eX.easeOut):eX[t]}(o,r);Array.isArray(h)&&(d.easing=h),eU.Q.value&&M.waapi++;let c={delay:s,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"};u&&(c.pseudoElement=u);let p=e.animate(d,c);return eU.Q.value&&p.finished.finally(()=>{M.waapi--}),p}(t,i,s,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=ec(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,i){eG(t)?e.style.setProperty(t,i):e.style[t]=i}(t,i,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return E(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return E(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=T(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eW())?(this.animation.timeline=e,z.l):t(this)}}let eZ={anticipate:J,backInOut:Z,circInOut:ei};class eJ extends eQ{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in eZ&&(e.ease=eZ[e.ease])}(e),em(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:s,element:r,...n}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let a=new eg({...n,autoplay:!1}),o=T(this.finishedTime??this.time);t.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}var e0=i(10);let e1=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e0.f.test(e)||"0"===e)&&!e.startsWith("url("));function e2(e){return"object"==typeof e&&null!==e}function e5(e){return e2(e)&&"offsetHeight"in e}let e3=new Set(["opacity","clipPath","filter","transform"]),e8=e$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class e4 extends ef{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",keyframes:a,name:o,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.k.now();let h={autoplay:e,delay:t,type:i,repeat:s,repeatDelay:r,repeatType:n,name:o,motionValue:l,element:u,...d},c=u?.KeyframeResolver||ez;this.keyframeResolver=new c(a,(e,t,i)=>this.onKeyframesResolved(e,t,h,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){this.keyframeResolver=void 0;let{name:r,type:n,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;this.resolvedAt=P.k.now(),!function(e,t,i,s){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let n=e[e.length-1],a=e1(r,t),o=e1(n,t);return(0,j.$)(a===o,`You are trying to animate ${t} from "${r}" to "${n}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${n} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},h=!l&&function(e){let{motionValue:t,name:i,repeatDelay:s,repeatType:r,damping:n,type:a}=e;if(!e5(t?.owner?.current))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return e8()&&i&&e3.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==r&&0!==n&&"inertia"!==a}(d)?new eJ({...d,element:d.motionValue.owner.current}):new eg(d);h.finished.then(()=>this.notifyFinished()).catch(z.l),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eB=!0,e_(),eN(),eB=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let e9=e=>null!==e,e6={type:"spring",stiffness:500,damping:25,restSpeed:10},e7=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),te={type:"keyframes",duration:.8},tt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ti=(e,{keyframes:t})=>t.length>2?te:c.has(e)?e.startsWith("scale")?e7(t[1]):e6:tt,ts=(e,t,i,s={},r,n)=>a=>{let l=o(s,e)||{},u=l.delay||s.delay||0,{elapsed:h=0}=s;h-=T(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-h,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:n?void 0:r};!function({when:e,delay:t,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:a,repeatDelay:o,from:l,elapsed:u,...d}){return!!Object.keys(d).length}(l)&&Object.assign(c,ti(e,c)),c.duration&&(c.duration=T(c.duration)),c.repeatDelay&&(c.repeatDelay=T(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let p=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(p=!0)),(v.W.instantAnimations||v.W.skipAnimations)&&(p=!0,c.duration=0,c.delay=0),c.allowFlatten=!l.type&&!l.ease,p&&!n&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"},s){let r=e.filter(e9),n=t&&"loop"!==i&&t%2==1?0:r.length-1;return r[n]}(c.keyframes,l);if(void 0!==e){d.Gt.update(()=>{c.onUpdate(e),c.onComplete()});return}}return l.isSync?new eg(c):new e4(c)};function tr(e,t,{delay:i=0,transitionOverride:s,type:r}={}){let{transition:n=e.getDefaultTransition(),transitionEnd:l,...u}=t;s&&(n=s);let h=[],c=r&&e.animationState&&e.animationState.getState()[r];for(let t in u){let s=e.getValue(t,e.latestValues[t]??null),r=u[t];if(void 0===r||c&&function({protectedKeys:e,needsAnimating:t},i){let s=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,s}(c,t))continue;let a={delay:i,...o(n||{},t)},l=s.get();if(void 0!==l&&!s.isAnimating&&!Array.isArray(r)&&r===l&&!a.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){let i=e.props[b];if(i){let e=window.MotionHandoffAnimation(i,t,d.Gt);null!==e&&(a.startTime=e,m=!0)}}y(e,t),s.start(ts(t,s,r,e.shouldReduceMotion&&p.has(t)?{type:!1}:a,e,m));let f=s.animation;f&&h.push(f)}return l&&Promise.all(h).then(()=>{d.Gt.update(()=>{l&&function(e,t){let{transitionEnd:i={},transition:s={},...r}=a(e,t)||{};for(let t in r={...r,...i}){var n;let i=f(n=r[t])?n[n.length-1]||0:n;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,(0,m.OQ)(i))}}(e,l)})}),h}function tn(e,t,i={}){let s=a(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let n=s?()=>Promise.all(tr(e,s,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=r;return function(e,t,i=0,s=0,r=1,n){let a=[],o=(e.variantChildren.size-1)*s,l=1===r?(e=0)=>e*s:(e=0)=>o-e*s;return Array.from(e.variantChildren).sort(ta).forEach((e,s)=>{e.notify("AnimationStart",t),a.push(tn(e,t,{...n,delay:i+l(s)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,n+s,a,o,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([n(),o(i.delay)]);{let[e,t]="beforeChildren"===l?[n,o]:[o,n];return e().then(()=>t())}}function ta(e,t){return e.sortNodePosition(t)}function to(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;sPromise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>tn(e,t,i)));else if("string"==typeof t)s=tn(e,t,i);else{let r="function"==typeof t?a(e,t,i.custom):t;s=Promise.all(tr(e,r,i))}return s.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=tf(),r=!0,n=t=>(i,s)=>{let r=a(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...s}=r;i={...i,...s,...t}}return i};function o(o){let{props:l}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;ep&&w,E=!1,P=Array.isArray(y)?y:[y],M=P.reduce(n(a),{});!1===b&&(M={});let{prevResolvedValues:C={}}=g,A={...C,...M},k=t=>{T=!0,h.has(t)&&(E=!0,h.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in A){let t=M[e],i=C[e];if(c.hasOwnProperty(e))continue;let s=!1;(f(t)&&f(i)?to(t,i):t===i)?void 0!==t&&h.has(e)?k(e):g.protectedKeys[e]=!0:null!=t?k(e):h.add(e)}g.prevProp=y,g.prevResolvedValues=M,g.isActive&&(c={...c,...M}),r&&e.blockInitialAnimation&&(T=!1);let V=!(x&&S)||E;T&&V&&d.push(...P.map(e=>({animation:e,options:{type:a}})))}if(h.size){let t={};if("boolean"!=typeof l.initial){let i=a(e,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach(i=>{let s=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=s??null}),d.push({animation:t})}let g=!!d.length;return r&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,s){if(i[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),i[t].isActive=s;let r=o(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=tf(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();s(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ty=0;class tw extends tv{constructor(){super(...arguments),this.id=ty++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let tb={x:!1,y:!1};function tx(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i)}let tS=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function tT(e){return{point:{x:e.pageX,y:e.pageY}}}let tE=e=>t=>tS(t)&&e(t,tT(t));function tP(e,t,i,s){return tx(e,t,tE(i),s)}function tM({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function tC(e){return e.max-e.min}function tA(e,t,i,s=.5){e.origin=s,e.originPoint=(0,eu.k)(t.min,t.max,e.origin),e.scale=tC(i)/tC(t),e.translate=(0,eu.k)(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function tk(e,t,i,s){tA(e.x,t.x,i.x,s?s.originX:void 0),tA(e.y,t.y,i.y,s?s.originY:void 0)}function tV(e,t,i){e.min=i.min+t.min,e.max=e.min+tC(t)}function tO(e,t,i){e.min=t.min-i.min,e.max=e.min+tC(t)}function tD(e,t,i){tO(e.x,t.x,i.x),tO(e.y,t.y,i.y)}let tL=()=>({translate:0,scale:1,origin:0,originPoint:0}),tj=()=>({x:tL(),y:tL()}),tR=()=>({min:0,max:0}),tI=()=>({x:tR(),y:tR()});function tF(e){return[e("x"),e("y")]}function tB(e){return void 0===e||1===e}function tN({scale:e,scaleX:t,scaleY:i}){return!tB(e)||!tB(t)||!tB(i)}function t_(e){return tN(e)||tz(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tz(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function tG(e,t,i,s,r){return void 0!==r&&(e=s+r*(e-s)),s+i*(e-s)+t}function t$(e,t=0,i=1,s,r){e.min=tG(e.min,t,i,s,r),e.max=tG(e.max,t,i,s,r)}function tW(e,{x:t,y:i}){t$(e.x,t.translate,t.scale,t.originPoint),t$(e.y,i.translate,i.scale,i.originPoint)}function tU(e,t){e.min=e.min+t,e.max=e.max+t}function tq(e,t,i,s,r=.5){let n=(0,eu.k)(e.min,e.max,r);t$(e,t,i,n,s)}function tH(e,t){tq(e.x,t.x,t.scaleX,t.scale,t.originX),tq(e.y,t.y,t.scaleY,t.scale,t.originY)}function tY(e,t){return tM(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}let tX=({current:e})=>e?e.ownerDocument.defaultView:null;function tK(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let tQ=(e,t)=>Math.abs(e-t);class tZ{constructor(e,t,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=t1(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,i=function(e,t){return Math.sqrt(tQ(e.x,t.x)**2+tQ(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!i)return;let{point:s}=e,{timestamp:r}=d.uv;this.history.push({...s,timestamp:r});let{onStart:n,onMove:a}=this.handlers;t||(n&&n(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=tJ(t,this.transformPagePoint),d.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=t1("pointercancel"===e.type?this.lastMoveEventInfo:tJ(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,n),s&&s(e,n)},!tS(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.contextWindow=s||window;let n=tJ(tT(e),this.transformPagePoint),{point:a}=n,{timestamp:o}=d.uv;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,t1(n,this.history)),this.removeListeners=(0,x.F)(tP(this.contextWindow,"pointermove",this.handlePointerMove),tP(this.contextWindow,"pointerup",this.handlePointerUp),tP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,d.WG)(this.updatePoint)}}function tJ(e,t){return t?{point:t(e.point)}:e}function t0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t1({point:e},t){return{point:e,delta:t0(e,t2(t)),offset:t0(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null,r=t2(e);for(;i>=0&&(s=e[i],!(r.timestamp-s.timestamp>T(.1)));)i--;if(!s)return{x:0,y:0};let n=E(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let a={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function t2(e){return e[e.length-1]}function t5(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function t3(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(tT(e).point)},onStart:(e,t)=>{var i;let{drag:s,dragPropagation:r,onDragStart:n}=this.getProps();if(s&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=s)||"y"===i?tb[i]?null:(tb[i]=!0,()=>{tb[i]=!1}):tb.x||tb.y?null:(tb.x=tb.y=!0,()=>{tb.x=tb.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tF(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eV.KN.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=tC(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&d.Gt.postRender(()=>n(e,t)),y(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),n&&n(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>tF(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:tX(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=t;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&d.Gt.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!t7(e,s,this.currentDirection))return;let r=this.getAxisMotionValue(e),n=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(n=function(e,{min:t,max:i},s){return void 0!==t&&ei&&(e=s?(0,eu.k)(i,e,s.max):Math.min(e,i)),e}(n,this.constraints[e],this.elastic[e])),r.set(n)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&tK(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:r}){return{x:t5(e.x,i,r),y:t5(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:t8(e,"left","right"),y:t8(e,"top","bottom")}}(t),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tF(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let i={};return void 0!==t.min&&(i.min=t.min-e.min),void 0!==t.max&&(i.max=t.max-e.min),i}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!tK(t))return!1;let s=t.current;(0,j.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=function(e,t,i){let s=tY(e,i),{scroll:r}=t;return r&&(tU(s.x,r.offset.x),tU(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),a={x:t3((e=r.layout.layoutBox).x,n.x),y:t3(e.y,n.y)};if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tM(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(tF(a=>{if(!t7(a,t,this.currentDirection))return;let l=o&&o[a]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return y(this.visualElement,e),i.start(ts(e,i,0,t,this.visualElement,!1))}stopAnimation(){tF(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){tF(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){tF(t=>{let{drag:i}=this.getProps();if(!t7(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[t];r.set(e[t]-(0,eu.k)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!tK(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tF(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let i=t.get();s[e]=function(e,t){let i=.5,s=tC(e),r=tC(t);return r>s?i=(0,el.q)(t.min,t.max-s,e.min):s>r&&(i=(0,el.q)(e.min,e.max-r,t.min)),(0,S.q)(0,1,i)}({min:i,max:i},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tF(t=>{if(!t7(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:n}=this.constraints[t];i.set((0,eu.k)(r,n,s[t]))})}addListeners(){if(!this.visualElement.current)return;t9.set(this.visualElement,this);let e=tP(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();tK(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),d.Gt.read(t);let r=tx(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tF(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:a}}}function t7(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}class ie extends tv{constructor(e){super(e),this.removeGroupControls=z.l,this.removeListeners=z.l,this.controls=new t6(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||z.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let it=e=>(t,i)=>{e&&d.Gt.postRender(()=>e(t,i))};class ii extends tv{constructor(){super(...arguments),this.removePointerDownListener=z.l}onPointerDown(e){this.session=new tZ(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tX(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:it(e),onStart:it(t),onMove:i,onEnd:(e,t)=>{delete this.session,s&&d.Gt.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=tP(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var is=i(5155);let{schedule:ir}=(0,i(8437).I)(queueMicrotask,!1);var ia=i(2115);let io=(0,ia.createContext)(null),il=(0,ia.createContext)({}),iu=(0,ia.createContext)({}),id={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ih(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ic={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!eV.px.test(e))return e;e=parseFloat(e)}let i=ih(e,t.target.x),s=ih(e,t.target.y);return`${i}% ${s}%`}};var ip=i(8606);let im={};class iv extends ia.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=e;!function(e){for(let t in e)im[t]=e[t],(0,ip.j)(t)&&(im[t].isCSSVariable=!0)}(iy),r&&(t.group&&t.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),id.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:r}=this.props,{projection:n}=i;return n&&(n.isPresent=r,s||e.layoutDependency!==t||void 0===t||e.isPresent!==r?n.willUpdate():this.safeToRemove(),e.isPresent===r||(r?n.promote():n.relegate()||d.Gt.postRender(()=>{let e=n.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ir.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ig(e){let[t,i]=function(e=!0){let t=(0,ia.useContext)(io);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:r}=t,n=(0,ia.useId)();(0,ia.useEffect)(()=>{if(e)return r(n)},[e]);let a=(0,ia.useCallback)(()=>e&&s&&s(n),[n,s,e]);return!i&&s?[!1,a]:[!0]}(),s=(0,ia.useContext)(il);return(0,is.jsx)(iv,{...e,layoutGroup:s,switchLayoutGroup:(0,ia.useContext)(iu),isPresent:t,safeToRemove:i})}let iy={borderRadius:{...ic,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ic,borderTopRightRadius:ic,borderBottomLeftRadius:ic,borderBottomRightRadius:ic,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=e0.f.parse(e);if(s.length>5)return e;let r=e0.f.createTransformer(e),n=+("number"!=typeof s[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+n]/=a,s[1+n]/=o;let l=(0,eu.k)(a,o,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};function iw(e){return e2(e)&&"ownerSVGElement"in e}var ib=i(5626),ix=i(6668);let iS=(e,t)=>e.depth-t.depth;class iT{constructor(){this.children=[],this.isDirty=!1}add(e){(0,ix.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,ix.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iS),this.isDirty=!1,this.children.forEach(e)}}function iE(e){return g(e)?e.get():e}let iP=["TopLeft","TopRight","BottomLeft","BottomRight"],iM=iP.length,iC=e=>"string"==typeof e?parseFloat(e):e,iA=e=>"number"==typeof e||eV.px.test(e);function ik(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iV=iD(0,.5,et),iO=iD(.5,.95,z.l);function iD(e,t,i){return s=>st?1:i((0,el.q)(e,t,s))}function iL(e,t){e.min=t.min,e.max=t.max}function ij(e,t){iL(e.x,t.x),iL(e.y,t.y)}function iR(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iI(e,t,i,s,r){return e-=t,e=s+1/i*(e-s),void 0!==r&&(e=s+1/r*(e-s)),e}function iF(e,t,[i,s,r],n,a){!function(e,t=0,i=1,s=.5,r,n=e,a=e){if(eV.KN.test(t)&&(t=parseFloat(t),t=(0,eu.k)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=(0,eu.k)(n.min,n.max,s);e===n&&(o-=t),e.min=iI(e.min,t,i,o,r),e.max=iI(e.max,t,i,o,r)}(e,t[i],t[s],t[r],t.scale,n,a)}let iB=["x","scaleX","originX"],iN=["y","scaleY","originY"];function i_(e,t,i,s){iF(e.x,t,iB,i?i.x:void 0,s?s.x:void 0),iF(e.y,t,iN,i?i.y:void 0,s?s.y:void 0)}function iz(e){return 0===e.translate&&1===e.scale}function iG(e){return iz(e.x)&&iz(e.y)}function i$(e,t){return e.min===t.min&&e.max===t.max}function iW(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iU(e,t){return iW(e.x,t.x)&&iW(e.y,t.y)}function iq(e){return tC(e.x)/tC(e.y)}function iH(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iY{constructor(){this.members=[]}add(e){(0,ix.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,ix.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:s}=e.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iX={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iK=["","X","Y","Z"],iQ={visibility:"hidden"},iZ=0;function iJ(e,t,i,s){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function i0({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=iZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eU.Q.value&&(iX.nodes=iX.calculatedTargetDeltas=iX.calculatedProjections=0),this.nodes.forEach(i5),this.nodes.forEach(se),this.nodes.forEach(st),this.nodes.forEach(i3),eU.Q.addProjectionMetrics&&eU.Q.addProjectionMetrics(iX)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(e,t){let i=P.k.now(),s=({timestamp:r})=>{let n=r-i;n>=250&&((0,d.WG)(s),e(n-t))};return d.Gt.setup(s,!0),()=>(0,d.WG)(s)}(s,250),id.hasAnimatedSinceResize&&(id.hasAnimatedSinceResize=!1,this.nodes.forEach(i7))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||so,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=r.getProps(),u=!this.targetLayout||!iU(this.targetLayout,s),d=!t&&i;if(this.options.layoutRoot||this.resumeFrom||d||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...o(n,"layout"),onPlay:a,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,d)}else t||i7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,d.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(si),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let s=i.props[b];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",d.Gt,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||tC(this.snapshot.measuredBox.x)||tC(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tI());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iR(this.prevProjectionDelta.x,this.projectionDelta.x),iR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tk(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===n&&this.treeScale.y===a&&iH(this.projectionDelta.x,this.prevProjectionDelta.x)&&iH(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),eU.Q.value&&iX.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tj(),this.projectionDelta=tj(),this.projectionDeltaWithTransform=tj()}setAnimationOrigin(e,t=!1){let i;let s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},a=tj();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=tI(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(sa));this.animationProgress=0,this.mixTargetDelta=t=>{let s=t/1e3;if(sr(a.x,e.x,s),sr(a.y,e.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;if(tD(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,v=s,sn(p.x,m.x,f.x,v),sn(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,i$(u.x,c.x)&&i$(u.y,c.y)))this.isProjectionDirty=!1;i||(i=tI()),ij(i,this.relativeTarget)}l&&(this.animationValues=n,function(e,t,i,s,r,n){r?(e.opacity=(0,eu.k)(0,i.opacity??1,iV(s)),e.opacityExit=(0,eu.k)(t.opacity??1,0,iO(s))):n&&(e.opacity=(0,eu.k)(t.opacity??1,i.opacity??1,s));for(let r=0;r{id.hasAnimatedSinceResize=!0,M.layout++,this.motionValue||(this.motionValue=(0,m.OQ)(0)),this.currentAnimation=function(e,t,i){let s=g(e)?e:(0,m.OQ)(e);return s.start(ts("",s,t,i)),s.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{M.layout--},onComplete:()=>{M.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:s,latestValues:r}=e;if(t&&i&&s){if(this!==e&&this.layout&&s&&sh(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||tI();let t=tC(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let s=tC(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+s}ij(t,i),tH(t,r),tk(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iY),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&iJ("z",e,s,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(i4),this.root.sharedNodes.clear()}}}function i1(e){e.updateLayout()}function i2(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:r}=e.options,n=t.source!==e.layout.source;"size"===r?tF(e=>{let s=n?t.measuredBox[e]:t.layoutBox[e],r=tC(s);s.min=i[e].min,s.max=s.min+r}):sh(r,t.layoutBox,i)&&tF(s=>{let r=n?t.measuredBox[s]:t.layoutBox[s],a=tC(i[s]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=tj();tk(a,i,t.layoutBox);let o=tj();n?tk(o,e.applyTransform(s,!0),t.measuredBox):tk(o,i,t.layoutBox);let l=!iG(a),u=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=tI();tD(a,t.layoutBox,r.layoutBox);let o=tI();tD(o,i,n.layoutBox),iU(a,o)||(u=!0),s.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function i5(e){eU.Q.value&&iX.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i8(e){e.clearSnapshot()}function i4(e){e.clearMeasurements()}function i9(e){e.isLayoutDirty=!1}function i6(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function se(e){e.resolveTargetDelta()}function st(e){e.calcProjection()}function si(e){e.resetSkewAndRotation()}function ss(e){e.removeLeadSnapshot()}function sr(e,t,i){e.translate=(0,eu.k)(t.translate,0,i),e.scale=(0,eu.k)(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sn(e,t,i,s){e.min=(0,eu.k)(t.min,i.min,s),e.max=(0,eu.k)(t.max,i.max,s)}function sa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let so={duration:.45,ease:[.4,0,.1,1]},sl=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),su=sl("applewebkit/")&&!sl("chrome/")?Math.round:z.l;function sd(e){e.min=su(e.min),e.max=su(e.max)}function sh(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iq(t)-iq(i)))}function sc(e){return e!==e.root&&e.scroll?.wasRoot}let sp=i0({attachResizeListener:(e,t)=>tx(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sm={current:void 0},sf=i0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sm.current){let e=new sp({});e.mount(window),e.setOptions({layoutScroll:!0}),sm.current=e}return sm.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sv(e,t){let i=function(e,t,i){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,i=(void 0)??t.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}(e),s=new AbortController;return[i,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function sg(e){return!("touch"===e.pointerType||tb.x||tb.y)}function sy(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=s["onHover"+i];r&&d.Gt.postRender(()=>r(t,tT(t)))}class sw extends tv{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,r,n]=sv(e,i),a=e=>{if(!sg(e))return;let{target:i}=e,s=t(i,e);if("function"!=typeof s||!i)return;let n=e=>{sg(e)&&(s(e),i.removeEventListener("pointerleave",n))};i.addEventListener("pointerleave",n,r)};return s.forEach(e=>{e.addEventListener("pointerenter",a,r)}),n}(e,(e,t)=>(sy(this.node,t,"Start"),e=>sy(this.node,e,"End"))))}unmount(){}}class sb extends tv{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,x.F)(tx(this.node.current,"focus",()=>this.onFocus()),tx(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let sx=(e,t)=>!!t&&(e===t||sx(e,t.parentElement)),sS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sT=new WeakSet;function sE(e){return t=>{"Enter"===t.key&&e(t)}}function sP(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let sM=(e,t)=>{let i=e.currentTarget;if(!i)return;let s=sE(()=>{if(sT.has(i))return;sP(i,"down");let e=sE(()=>{sP(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sP(i,"cancel"),t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)};function sC(e){return tS(e)&&!(tb.x||tb.y)}function sA(e,t,i){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=s["onTap"+("End"===i?"":i)];r&&d.Gt.postRender(()=>r(t,tT(t)))}class sk extends tv{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,r,n]=sv(e,i),a=e=>{let s=e.currentTarget;if(!sC(e))return;sT.add(s);let n=t(s,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sT.has(s)&&sT.delete(s),sC(e)&&"function"==typeof n&&n(e,{success:t})},o=e=>{a(e,s===window||s===document||i.useGlobalTarget||sx(s,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return s.forEach(e=>{if((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,r),e5(e))e.addEventListener("focus",e=>sM(e,r)),!sS.has(e.tagName)&&-1===e.tabIndex&&!e.hasAttribute("tabindex")&&(e.tabIndex=0)}),n}(e,(e,t)=>(sA(this.node,t,"Start"),(e,{success:t})=>sA(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sV=new WeakMap,sO=new WeakMap,sD=e=>{let t=sV.get(e.target);t&&t(e)},sL=e=>{e.forEach(sD)},sj={some:0,all:1};class sR extends tv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:s="some",once:r}=e,n={root:t?t.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:sj[s]};return function(e,t,i){let s=function({root:e,...t}){let i=e||document;sO.has(i)||sO.set(i,{});let s=sO.get(i),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(sL,{root:e,...t})),s[r]}(t);return sV.set(e,i),s.observe(e),()=>{sV.delete(e),s.unobserve(e)}}(this.node.current,n,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=t?i:s;n&&n(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}let sI=(0,ia.createContext)({strict:!1});var sF=i(1508);let sB=(0,ia.createContext)({});function sN(e){return s(e.animate)||td.some(t=>tl(e[t]))}function s_(e){return!!(sN(e)||e.variants)}function sz(e){return Array.isArray(e)?e.join(" "):e}var sG=i(8972);let s$={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sW={};for(let e in s$)sW[e]={isEnabled:t=>s$[e].some(e=>!!t[e])};let sU=Symbol.for("motionComponentSymbol");var sq=i(7494);function sH(e,{layout:t,layoutId:i}){return c.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!im[e]||"opacity"===e)}let sY=(e,t)=>t&&"number"==typeof e?t.transform(e):e,sX={...ek.ai,transform:Math.round},sK={rotate:eV.uj,rotateX:eV.uj,rotateY:eV.uj,rotateZ:eV.uj,scale:ek.hs,scaleX:ek.hs,scaleY:ek.hs,scaleZ:ek.hs,skew:eV.uj,skewX:eV.uj,skewY:eV.uj,distance:eV.px,translateX:eV.px,translateY:eV.px,translateZ:eV.px,x:eV.px,y:eV.px,z:eV.px,perspective:eV.px,transformPerspective:eV.px,opacity:ek.X4,originX:eV.gQ,originY:eV.gQ,originZ:eV.px},sQ={borderWidth:eV.px,borderTopWidth:eV.px,borderRightWidth:eV.px,borderBottomWidth:eV.px,borderLeftWidth:eV.px,borderRadius:eV.px,radius:eV.px,borderTopLeftRadius:eV.px,borderTopRightRadius:eV.px,borderBottomRightRadius:eV.px,borderBottomLeftRadius:eV.px,width:eV.px,maxWidth:eV.px,height:eV.px,maxHeight:eV.px,top:eV.px,right:eV.px,bottom:eV.px,left:eV.px,padding:eV.px,paddingTop:eV.px,paddingRight:eV.px,paddingBottom:eV.px,paddingLeft:eV.px,margin:eV.px,marginTop:eV.px,marginRight:eV.px,marginBottom:eV.px,marginLeft:eV.px,backgroundPositionX:eV.px,backgroundPositionY:eV.px,...sK,zIndex:sX,fillOpacity:ek.X4,strokeOpacity:ek.X4,numOctaves:sX},sZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sJ=h.length;function s0(e,t,i){let{style:s,vars:r,transformOrigin:n}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(c.has(e)){a=!0;continue}if((0,ip.j)(e)){r[e]=i;continue}{let t=sY(i,sQ[e]);e.startsWith("origin")?(o=!0,n[e]=t):s[e]=t}}if(!t.transform&&(a||i?s.transform=function(e,t,i){let s="",r=!0;for(let n=0;n({style:{},transform:{},transformOrigin:{},vars:{}});function s2(e,t,i){for(let s in t)g(t[s])||sH(s,i)||(e[s]=t[s])}let s5={offset:"stroke-dashoffset",array:"stroke-dasharray"},s3={offset:"strokeDashoffset",array:"strokeDasharray"};function s8(e,{attrX:t,attrY:i,attrScale:s,pathLength:r,pathSpacing:n=1,pathOffset:a=0,...o},l,u,d){if(s0(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:c}=e;h.transform&&(c.transform=h.transform,delete h.transform),(c.transform||h.transformOrigin)&&(c.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),c.transform&&(c.transformBox=d?.transformBox??"fill-box",delete h.transformBox),void 0!==t&&(h.x=t),void 0!==i&&(h.y=i),void 0!==s&&(h.scale=s),void 0!==r&&function(e,t,i=1,s=0,r=!0){e.pathLength=1;let n=r?s5:s3;e[n.offset]=eV.px.transform(-s);let a=eV.px.transform(t),o=eV.px.transform(i);e[n.array]=`${a} ${o}`}(h,r,n,a,!1)}let s4=()=>({...s1(),attrs:{}}),s9=e=>"string"==typeof e&&"svg"===e.toLowerCase(),s6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function s7(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||s6.has(e)}let re=e=>!s7(e);try{!function(e){"function"==typeof e&&(re=t=>t.startsWith("on")?!s7(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}let rt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ri(e){if("string"!=typeof e||e.includes("-"));else if(rt.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var rs=i(2885);let rr=e=>(t,i)=>{let r=(0,ia.useContext)(sB),a=(0,ia.useContext)(io),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,r,a){return{latestValues:function(e,t,i,r){let a={},o=r(e,{});for(let e in o)a[e]=iE(o[e]);let{initial:l,animate:u}=e,d=sN(e),h=s_(e);t&&h&&!d&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===u&&(u=t.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!s(p)){let t=Array.isArray(p)?p:[p];for(let i=0;it=>t.test(e),rd=[ek.ai,eV.px,eV.KN,eV.uj,eV.vw,eV.vh,{test:e=>"auto"===e,parse:e=>e}],rh=e=>rd.find(ru(e)),rc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rp=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,rm=e=>/^0[^.\s]+$/u.test(e);var rf=i(614);let rv=new Set(["brightness","contrast","saturate","opacity"]);function rg(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(rf.S)||[];if(!s)return e;let r=i.replace(s,""),n=+!!rv.has(t);return s!==i&&(n*=100),t+"("+n+r+")"}let ry=/\b([a-z-]*)\(.*?\)/gu,rw={...e0.f,getAnimatableNone:e=>{let t=e.match(ry);return t?t.map(rg).join(" "):e}};var rb=i(4272);let rx={...sQ,color:rb.y,backgroundColor:rb.y,outlineColor:rb.y,fill:rb.y,stroke:rb.y,borderColor:rb.y,borderTopColor:rb.y,borderRightColor:rb.y,borderBottomColor:rb.y,borderLeftColor:rb.y,filter:rw,WebkitFilter:rw},rS=e=>rx[e];function rT(e,t){let i=rS(e);return i!==rw&&(i=e0.f),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let rE=new Set(["auto","none","0"]);class rP extends ez{constructor(e,t,i,s,r){super(e,t,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let rM=[...rd,rb.y,e0.f],rC=e=>rM.find(ru(e)),rA={current:null},rk={current:!1},rV=new WeakMap,rO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rD{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ez,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=P.k.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),rk.current||function(){if(rk.current=!0,sG.B){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rA.current=e.matches;e.addListener(t),t()}else rA.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rA.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,d.WG)(this.notifyUpdate),(0,d.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let s=c.has(e);s&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&d.Gt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),n=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),n(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in sW){let t=sW[e];if(!t)continue;let{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tI()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=(0,m.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=i&&("string"==typeof i&&(rc(i)||rm(i))?i=parseFloat(i):!rC(i)&&e0.f.test(t)&&(i=rT(e,t)),this.setBaseTarget(e,g(i)?i.get():i)),g(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=n(this.props,i,this.presenceContext?.custom);s&&(t=s[e])}if(i&&void 0!==t)return t;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||g(s)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new ib.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class rL extends rD{constructor(){super(...arguments),this.KeyframeResolver=rP}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;g(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function rj(e,{style:t,vars:i},s,r){for(let n in Object.assign(e.style,t,r&&r.getProjectionStyles(s)),i)e.style.setProperty(n,i[n])}class rR extends rL{constructor(){super(...arguments),this.type="html",this.renderInstance=rj}readValueFromInstance(e,t){if(c.has(t))return this.projection?.isProjecting?eP(t):eC(e,t);{let i=window.getComputedStyle(e),s=((0,ip.j)(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tY(e,t)}build(e,t,i){s0(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return rn(e,t,i)}}let rI=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class rF extends rL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(c.has(t)){let e=rS(t);return e&&e.default||0}return t=rI.has(t)?t:w(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return ro(e,t,i)}build(e,t,i){s8(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){!function(e,t,i,s){for(let i in rj(e,t,void 0,s),t.attrs)e.setAttribute(rI.has(i)?i:w(i),t.attrs[i])}(e,t,0,s)}mount(e){this.isSVGTag=s9(e.tagName),super.mount(e)}}let rB=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(i,s)=>"create"===s?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}((l={animation:{Feature:tg},exit:{Feature:tw},inView:{Feature:sR},tap:{Feature:sk},focus:{Feature:sb},hover:{Feature:sw},pan:{Feature:ii},drag:{Feature:ie,ProjectionNode:sf,MeasureLayout:ig},layout:{ProjectionNode:sf,MeasureLayout:ig}},u=(e,t)=>ri(e)?new rF(t):new rR(t,{allowProjection:e!==ia.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,i;let{preloadedFeatures:s,createVisualElement:r,useRender:n,useVisualState:a,Component:o}=e;function l(e,t){var i,s,l;let u;let d={...(0,ia.useContext)(sF.Q),...e,layoutId:function(e){let{layoutId:t}=e,i=(0,ia.useContext)(il).id;return i&&void 0!==t?i+"-"+t:t}(e)},{isStatic:h}=d,c=function(e){let{initial:t,animate:i}=function(e,t){if(sN(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tl(t)?t:void 0,animate:tl(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,ia.useContext)(sB));return(0,ia.useMemo)(()=>({initial:t,animate:i}),[sz(t),sz(i)])}(e),p=a(e,h);if(!h&&sG.B){s=0,l=0,(0,ia.useContext)(sI).strict;let e=function(e){let{drag:t,layout:i}=sW;if(!t&&!i)return{};let s={...t,...i};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==i?void 0:i.isEnabled(e))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(d);u=e.MeasureLayout,c.visualElement=function(e,t,i,s,r){let{visualElement:n}=(0,ia.useContext)(sB),a=(0,ia.useContext)(sI),o=(0,ia.useContext)(io),l=(0,ia.useContext)(sF.Q).reducedMotion,u=(0,ia.useRef)(null);s=s||a.renderer,!u.current&&s&&(u.current=s(e,{visualState:t,parent:n,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let d=u.current,h=(0,ia.useContext)(iu);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(e,t,i,s){let{layoutId:r,layout:n,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!a||o&&tK(o),visualElement:e,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:u})}(u.current,i,r,h);let c=(0,ia.useRef)(!1);(0,ia.useInsertionEffect)(()=>{d&&c.current&&d.update(i,o)});let p=i[b],m=(0,ia.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,sq.E)(()=>{d&&(c.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),ir.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,ia.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),d}(o,p,d,r,e.ProjectionNode)}return(0,is.jsxs)(sB.Provider,{value:c,children:[u&&c.visualElement?(0,is.jsx)(u,{visualElement:c.visualElement,...d}):null,n(o,e,(i=c.visualElement,(0,ia.useCallback)(e=>{e&&p.onMount&&p.onMount(e),i&&(e?i.mount(e):i.unmount()),t&&("function"==typeof t?t(e):tK(t)&&(t.current=e))},[i])),p,h,c.visualElement)]})}s&&function(e){for(let t in e)sW[t]={...sW[t],...e[t]}}(s),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!==(i=null!==(t=o.displayName)&&void 0!==t?t:o.name)&&void 0!==i?i:"",")"));let u=(0,ia.forwardRef)(l);return u[sU]=o,u}({...ri(e)?rl:ra,preloadedFeatures:l,useRender:function(e=!1){return(t,i,s,{latestValues:r},n)=>{let a=(ri(t)?function(e,t,i,s){let r=(0,ia.useMemo)(()=>{let i=s4();return s8(i,t,s9(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};s2(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i={},s=function(e,t){let i=e.style||{},s={};return s2(s,i,e),Object.assign(s,function({transformTemplate:e},t){return(0,ia.useMemo)(()=>{let i=s1();return s0(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),s}(e,t);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=s,i})(i,r,n,t),o=function(e,t,i){let s={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(re(r)||!0===i&&s7(r)||!t&&!s7(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}(i,"string"==typeof t,e),l=t!==ia.Fragment?{...o,...a,ref:s}:{},{children:u}=i,d=(0,ia.useMemo)(()=>g(u)?u.get():u,[u]);return(0,ia.createElement)(t,{...l,children:d})}}(t),createVisualElement:u,Component:e})}))},4436:(e,t,i)=>{"use strict";i.d(t,{k5:()=>d});var s=i(2115),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=s.createContext&&s.createContext(r),a=["attr","size","title"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(h,o({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,i)=>s.createElement(t.tag,u({key:i},t.attr),e(t.child)))}(e.child))}function h(e){var t=t=>{var i,{attr:r,size:n,title:l}=e,d=function(e,t){if(null==e)return{};var i,s,r=function(e,t){if(null==e)return{};var i={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;i[s]=e[s]}return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(e,a),h=n||t.size||"1em";return t.className&&(i=t.className),e.className&&(i=(i?i+" ":"")+e.className),s.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,d,{className:i,style:u(u({color:e.color||t.color},t.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&s.createElement("title",null,l),e.children)};return void 0!==n?s.createElement(n.Consumer,null,e=>t(e)):t(r)}},4542:(e,t,i)=>{"use strict";i.d(t,{$:()=>s,V:()=>r});let s=()=>{},r=()=>{}},4744:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});let s={value:null,addProjectionMetrics:null}},5303:()=>{},5626:(e,t,i)=>{"use strict";i.d(t,{v:()=>r});var s=i(6668);class r{constructor(){this.subscriptions=[]}add(e){return(0,s.Kq)(this.subscriptions,e),()=>(0,s.Ai)(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s){if(1===s)this.subscriptions[0](e,t,i);else for(let r=0;r{"use strict";i.d(t,{q:()=>s});let s=(e,t,i)=>{let s=t-e;return 0===s?1:(i-e)/s}},5920:(e,t,i)=>{"use strict";i.d(t,{$:()=>n,q:()=>a});var s=i(614);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,n=(e,t)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),a=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[n,a,o,l]=r.match(s.S);return{[e]:parseFloat(n),[t]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},6087:(e,t,i)=>{"use strict";i.d(t,{j:()=>P});var s=i(3191),r=i(4542),n=i(8606),a=i(4272),o=i(10),l=i(1335),u=i(8476);function d(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var h=i(9064);function c(e,t){return i=>i>0?t:e}var p=i(3210);let m=(e,t,i)=>{let s=e*e,r=i*(t*t-s)+s;return r<0?0:Math.sqrt(r)},f=[l.u,h.B,u.V],v=e=>f.find(t=>t.test(e));function g(e){let t=v(e);if((0,r.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let i=t.parse(e);return t===u.V&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let r=0,n=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;r=d(o,s,e+1/3),n=d(o,s,e),a=d(o,s,e-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let y=(e,t)=>{let i=g(e),s=g(t);if(!i||!s)return c(e,t);let r={...i};return e=>(r.red=m(i.red,s.red,e),r.green=m(i.green,s.green,e),r.blue=m(i.blue,s.blue,e),r.alpha=(0,p.k)(i.alpha,s.alpha,e),h.B.transform(r))},w=new Set(["none","hidden"]);function b(e,t){return i=>(0,p.k)(e,t,i)}function x(e){return"number"==typeof e?b:"string"==typeof e?(0,n.p)(e)?c:a.y.test(e)?y:E:Array.isArray(e)?S:"object"==typeof e?a.y.test(e)?y:T:c}function S(e,t){let i=[...e],s=i.length,r=e.map((e,i)=>x(e)(e,t[i]));return e=>{for(let t=0;t{for(let t in s)i[t]=s[t](e);return i}}let E=(e,t)=>{let i=o.f.createTransformer(t),n=(0,o.V)(e),a=(0,o.V)(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?w.has(e)&&!a.values.length||w.has(t)&&!n.values.length?function(e,t){return w.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}(e,t):(0,s.F)(S(function(e,t){let i=[],s={color:0,var:0,number:0};for(let r=0;r{"use strict";function s(e,t){-1===e.indexOf(t)&&e.push(t)}function r(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}i.d(t,{Ai:()=>r,Kq:()=>s})},6766:(e,t,i)=>{"use strict";i.d(t,{default:()=>r.a});var s=i(1469),r=i.n(s)},6775:(e,t,i)=>{"use strict";i.d(t,{G:()=>d});var s=i(3387),r=i(9827),n=i(3191),a=i(4542),o=i(5818),l=i(1297),u=i(6087);function d(e,t,{clamp:i=!0,ease:h,mixer:c}={}){let p=e.length;if((0,a.V)(p===t.length,"Both input and output ranges must be the same length"),1===p)return()=>t[0];if(2===p&&t[0]===t[1])return()=>t[1];let m=e[0]===e[1];e[0]>e[p-1]&&(e=[...e].reverse(),t=[...t].reverse());let f=function(e,t,i){let a=[],o=i||s.W.mix||u.j,l=e.length-1;for(let i=0;i{if(m&&i1)for(;sg((0,l.q)(e[0],e[p-1],t)):g}},6970:()=>{},7494:(e,t,i)=>{"use strict";i.d(t,{E:()=>r});var s=i(2115);let r=i(8972).B?s.useLayoutEffect:s.useEffect},7677:(e,t,i)=>{"use strict";let s,r,n;i.d(t,{RC:()=>q,qr:()=>H});var a=i(2115),o=i(2379),l=i(2482);function u(){return s||(s=function(){let e=(0,o.a)(),t=(0,o.g)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),s}function d(e){return void 0===e&&(e={}),r||(r=function(e){let{userAgent:t}=void 0===e?{}:e,i=u(),s=(0,o.a)(),r=s.navigator.platform,n=t||s.navigator.userAgent,a={ios:!1,android:!1},l=s.screen.width,d=s.screen.height,h=n.match(/(Android);?[\s\/]+([\d.]+)?/),c=n.match(/(iPad).*OS\s([\d_]+)/),p=n.match(/(iPod)(.*OS\s([\d_]+))?/),m=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="MacIntel"===r;return!c&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${d}`)>=0&&((c=n.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),f=!1),h&&"Win32"!==r&&(a.os="android",a.android=!0),(c||m||p)&&(a.os="ios",a.ios=!0),a}(e)),r}function h(){return n||(n=function(){let e=(0,o.a)(),t=d(),i=!1;function s(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(s()){let t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,s]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=e<16||16===e&&s<2}}let r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=s(),a=n||r&&t.ios;return{isSafari:i||n,needPerspectiveFix:i,need3dFix:a,isWebView:r}}()),n}let c=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},p=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},m=(e,t)=>{if(!e||e.destroyed||!e.params)return;let i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&t.remove()})),t&&t.remove()}},f=(e,t)=>{if(!e.slides[t])return;let i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},v=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);let s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let i=[r-t];i.push(...Array.from({length:t}).map((e,t)=>r+s+t)),e.slides.forEach((t,s)=>{i.includes(t.column)&&f(e,s)});return}let n=r+s-1;if(e.params.rewind||e.params.loop)for(let s=r-t;s<=n+t;s+=1){let t=(s%i+i)%i;(tn)&&f(e,t)}else for(let s=Math.max(r-t,0);s<=Math.min(n+t,i-1);s+=1)s!==r&&(s>n||sa?"next":n=s.innerWidth-a)||"prevent"===n&&(t.preventDefault(),!0)}function w(e){let t=(0,o.g)(),i=e;i.originalEvent&&(i=i.originalEvent);let s=this.touchEventsData;if("pointerdown"===i.type){if(null!==s.pointerId&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(s.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type){y(this,i,i.targetTouches[0].pageX);return}let{params:r,touches:n,enabled:a}=this;if(!a||!r.simulateTouch&&"mouse"===i.pointerType||this.animating&&r.preventInteractionOnTransition)return;!this.animating&&r.cssMode&&r.loop&&this.loopFix();let u=i.target;if("wrapper"===r.touchEventsTarget&&!(0,l.v)(u,this.wrapperEl)||"which"in i&&3===i.which||"button"in i&&i.button>0||s.isTouched&&s.isMoved)return;let d=!!r.noSwipingClass&&""!==r.noSwipingClass,h=i.composedPath?i.composedPath():i.path;d&&i.target&&i.target.shadowRoot&&h&&(u=h[0]);let c=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,p=!!(i.target&&i.target.shadowRoot);if(r.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===(0,o.g)()||i===(0,o.a)())return null;i.assignedSlot&&(i=i.assignedSlot);let s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(c,u):u.closest(c))){this.allowClick=!0;return}if(r.swipeHandler&&!u.closest(r.swipeHandler))return;n.currentX=i.pageX,n.currentY=i.pageY;let m=n.currentX,f=n.currentY;if(!y(this,i,m))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=m,n.startY=f,s.touchStartTime=(0,l.d)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let v=!0;u.matches(s.focusableElements)&&(v=!1,"SELECT"===u.nodeName&&(s.isTouched=!1)),t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==u&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!u.matches(s.focusableElements))&&t.activeElement.blur();let g=v&&this.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||g)&&!u.isContentEditable&&i.preventDefault(),r.freeMode&&r.freeMode.enabled&&this.freeMode&&this.animating&&!r.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",i)}function b(e){let t,i;let s=(0,o.g)(),r=this.touchEventsData,{params:n,touches:a,rtlTranslate:u,enabled:d}=this;if(!d||!n.simulateTouch&&"mouse"===e.pointerType)return;let h=e;if(h.originalEvent&&(h=h.originalEvent),"pointermove"===h.type&&(null!==r.touchId||h.pointerId!==r.pointerId))return;if("touchmove"===h.type){if(!(t=[...h.changedTouches].find(e=>e.identifier===r.touchId))||t.identifier!==r.touchId)return}else t=h;if(!r.isTouched){r.startMoving&&r.isScrolling&&this.emit("touchMoveOpposite",h);return}let c=t.pageX,p=t.pageY;if(h.preventedByNestedSwiper){a.startX=c,a.startY=p;return}if(!this.allowTouchMove){h.target.matches(r.focusableElements)||(this.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:c,startY:p,currentX:c,currentY:p}),r.touchStartTime=(0,l.d)());return}if(n.touchReleaseOnEdges&&!n.loop){if(this.isVertical()){if(pa.startY&&this.translate>=this.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(u&&(c>a.startX&&-this.translate<=this.maxTranslate()||c=this.minTranslate()))return;else if(!u&&(ca.startX&&this.translate>=this.minTranslate()))return}if(s.activeElement&&s.activeElement.matches(r.focusableElements)&&s.activeElement!==h.target&&"mouse"!==h.pointerType&&s.activeElement.blur(),s.activeElement&&h.target===s.activeElement&&h.target.matches(r.focusableElements)){r.isMoved=!0,this.allowClick=!1;return}r.allowTouchCallbacks&&this.emit("touchMove",h),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=c,a.currentY=p;let m=a.currentX-a.startX,f=a.currentY-a.startY;if(this.params.threshold&&Math.sqrt(m**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(m))/Math.PI,r.isScrolling=this.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle)}if(r.isScrolling&&this.emit("touchMoveOpposite",h),void 0===r.startMoving&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||"touchmove"===h.type&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;this.allowClick=!1,!n.cssMode&&h.cancelable&&h.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&h.stopPropagation();let v=this.isHorizontal()?m:f,g=this.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;n.oneWayMovement&&(v=Math.abs(v)*(u?1:-1),g=Math.abs(g)*(u?1:-1)),a.diff=v,v*=n.touchRatio,u&&(v=-v,g=-g);let y=this.touchesDirection;this.swipeDirection=v>0?"prev":"next",this.touchesDirection=g>0?"prev":"next";let w=this.params.loop&&!n.cssMode,b="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!r.isMoved){if(w&&b&&this.loopFix({direction:this.swipeDirection}),r.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});this.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,n.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",h)}if(new Date().getTime(),!1!==n._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&y!==this.touchesDirection&&w&&b&&Math.abs(v)>=1){Object.assign(a,{startX:c,startY:p,currentX:c,currentY:p,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}this.emit("sliderMove",h),r.isMoved=!0,r.currentTranslate=v+r.startTranslate;let x=!0,S=n.resistanceRatio;if(n.touchReleaseOnEdges&&(S=0),v>0?(w&&b&&!i&&r.allowThresholdMove&&r.currentTranslate>(n.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]-("auto"!==n.slidesPerView&&this.slides.length-n.slidesPerView>=2?this.slidesSizesGrid[this.activeIndex+1]+this.params.spaceBetween:0)-this.params.spaceBetween:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>this.minTranslate()&&(x=!1,n.resistance&&(r.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+r.startTranslate+v)**S))):v<0&&(w&&b&&!i&&r.allowThresholdMove&&r.currentTranslate<(n.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween+("auto"!==n.slidesPerView&&this.slides.length-n.slidesPerView>=2?this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween:0):this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===n.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),this.allowSlidePrev||this.allowSlideNext||(r.currentTranslate=r.startTranslate),n.threshold>0){if(Math.abs(v)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&this.freeMode||n.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(r.currentTranslate),this.setTranslate(r.currentTranslate))}function x(e){let t,i;let s=this,r=s.touchEventsData,n=e;if(n.originalEvent&&(n=n.originalEvent),"touchend"===n.type||"touchcancel"===n.type){if(!(t=[...n.changedTouches].find(e=>e.identifier===r.touchId))||t.identifier!==r.touchId)return}else{if(null!==r.touchId||n.pointerId!==r.pointerId)return;t=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(s.browser.isSafari||s.browser.isWebView)))return;r.pointerId=null,r.touchId=null;let{params:a,touches:o,rtlTranslate:u,slidesGrid:d,enabled:h}=s;if(!h||!a.simulateTouch&&"mouse"===n.pointerType)return;if(r.allowTouchCallbacks&&s.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&a.grabCursor&&s.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}a.grabCursor&&r.isMoved&&r.isTouched&&(!0===s.allowSlideNext||!0===s.allowSlidePrev)&&s.setGrabCursor(!1);let c=(0,l.d)(),p=c-r.touchStartTime;if(s.allowClick){let e=n.path||n.composedPath&&n.composedPath();s.updateClickedSlide(e&&e[0]||n.target,e),s.emit("tap click",n),p<300&&c-r.lastClickTime<300&&s.emit("doubleTap doubleClick",n)}if(r.lastClickTime=(0,l.d)(),(0,l.n)(()=>{s.destroyed||(s.allowClick=!0)}),!r.isTouched||!r.isMoved||!s.swipeDirection||0===o.diff&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,i=a.followFinger?u?s.translate:-s.translate:-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){s.freeMode.onTouchEnd({currentPos:i});return}let m=i>=-s.maxTranslate()&&!s.params.loop,f=0,v=s.slidesSizesGrid[0];for(let e=0;e=d[e]&&i=d[e])&&(f=e,v=d[d.length-1]-d[d.length-2])}let g=null,y=null;a.rewind&&(s.isBeginning?y=a.virtual&&a.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1:s.isEnd&&(g=0));let w=(i-d[f])/v,b=fa.longSwipesMs){if(!a.longSwipes){s.slideTo(s.activeIndex);return}"next"===s.swipeDirection&&(w>=a.longSwipesRatio?s.slideTo(a.rewind&&s.isEnd?g:f+b):s.slideTo(f)),"prev"===s.swipeDirection&&(w>1-a.longSwipesRatio?s.slideTo(f+b):null!==y&&w<0&&Math.abs(w)>a.longSwipesRatio?s.slideTo(y):s.slideTo(f))}else{if(!a.shortSwipes){s.slideTo(s.activeIndex);return}s.navigation&&(n.target===s.navigation.nextEl||n.target===s.navigation.prevEl)?n.target===s.navigation.nextEl?s.slideTo(f+b):s.slideTo(f):("next"===s.swipeDirection&&s.slideTo(null!==g?g:f+b),"prev"===s.swipeDirection&&s.slideTo(null!==y?y:f))}}function S(){let e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let o=a&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function T(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function E(){let e;let{wrapperEl:t,rtlTranslate:i,enabled:s}=this;if(!s)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-t.scrollLeft:this.translate=-t.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let r=this.maxTranslate()-this.minTranslate();(0===r?0:(this.translate-this.minTranslate())/r)!==this.progress&&this.updateProgress(i?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function P(e){m(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}function M(){!this.documentTouchHandlerProceeded&&(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let C=(e,t)=>{let i=(0,o.g)(),{params:s,el:r,wrapperEl:n,device:a}=e,l=!!s.nested,u="on"===t?"addEventListener":"removeEventListener";r&&"string"!=typeof r&&(i[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),r[u]("touchstart",e.onTouchStart,{passive:!1}),r[u]("pointerdown",e.onTouchStart,{passive:!1}),i[u]("touchmove",e.onTouchMove,{passive:!1,capture:l}),i[u]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[u]("touchend",e.onTouchEnd,{passive:!0}),i[u]("pointerup",e.onTouchEnd,{passive:!0}),i[u]("pointercancel",e.onTouchEnd,{passive:!0}),i[u]("touchcancel",e.onTouchEnd,{passive:!0}),i[u]("pointerout",e.onTouchEnd,{passive:!0}),i[u]("pointerleave",e.onTouchEnd,{passive:!0}),i[u]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[u]("click",e.onClick,!0),s.cssMode&&n[u]("scroll",e.onScroll),s.updateOnWindowResize?e[t](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",S,!0):e[t]("observerUpdate",S,!0),r[u]("load",e.onLoad,{capture:!0}))},A=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var k={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let V={eventsEmitter:{on(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;let r=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)}),s},once(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;function r(){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,n=Array(i),a=0;athis.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,r)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)})}),i},emit(){let e,t,i;let s=this;if(!s.eventsListeners||s.destroyed||!s.eventsListeners)return s;for(var r=arguments.length,n=Array(r),a=0;a{s.eventsAnyListeners&&s.eventsAnyListeners.length&&s.eventsAnyListeners.forEach(s=>{s.apply(i,[e,...t])}),s.eventsListeners&&s.eventsListeners[e]&&s.eventsListeners[e].forEach(e=>{e.apply(i,t)})}),s}},update:{updateSize:function(){let e,t;let i=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,!(0===e&&this.isHorizontal()||0===t&&this.isVertical())&&(e=e-parseInt((0,l.p)(i,"padding-left")||0,10)-parseInt((0,l.p)(i,"padding-right")||0,10),t=t-parseInt((0,l.p)(i,"padding-top")||0,10)-parseInt((0,l.p)(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function i(e,i){return parseFloat(e.getPropertyValue(t.getDirectionLabel(i))||0)}let s=t.params,{wrapperEl:r,slidesEl:n,size:a,rtlTranslate:o,wrongRTL:u}=t,d=t.virtual&&s.virtual.enabled,h=d?t.virtual.slides.length:t.slides.length,c=(0,l.e)(n,`.${t.params.slideClass}, swiper-slide`),p=d?t.virtual.slides.length:c.length,m=[],f=[],v=[],g=s.slidesOffsetBefore;"function"==typeof g&&(g=s.slidesOffsetBefore.call(t));let y=s.slidesOffsetAfter;"function"==typeof y&&(y=s.slidesOffsetAfter.call(t));let w=t.snapGrid.length,b=t.slidesGrid.length,x=s.spaceBetween,S=-g,T=0,E=0;if(void 0===a)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*a:"string"==typeof x&&(x=parseFloat(x)),t.virtualSize=-x,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),s.centeredSlides&&s.cssMode&&((0,l.s)(r,"--swiper-centered-offset-before",""),(0,l.s)(r,"--swiper-centered-offset-after",""));let P=s.grid&&s.grid.rows>1&&t.grid;P?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let M="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter(e=>void 0!==s.breakpoints[e].slidesPerView).length>0;for(let r=0;rMath.abs(S)&&(S=0),s.roundLengths&&(S=Math.floor(S)),E%s.slidesPerGroup==0&&m.push(S),f.push(S)):(s.roundLengths&&(S=Math.floor(S)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup==0&&m.push(S),f.push(S),S=S+e+x),t.virtualSize+=e+x,T=e,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,a)+y,o&&u&&("slide"===s.effect||"coverflow"===s.effect)&&(r.style.width=`${t.virtualSize+x}px`),s.setWrapperSize&&(r.style[t.getDirectionLabel("width")]=`${t.virtualSize+x}px`),P&&t.grid.updateWrapperSize(e,m),!s.centeredSlides){let e=[];for(let i=0;i1&&m.push(t.virtualSize-a)}if(d&&s.loop){let e=v[0]+x;if(s.slidesPerGroup>1){let i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),r=e*s.slidesPerGroup;for(let e=0;e!s.cssMode||!!s.loop||t!==c.length-1).forEach(t=>{t.style[e]=`${x}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(x||0)});let t=(e-=x)>a?e-a:0;m=m.map(e=>e<=0?-g:e>t?t+y:e)}if(s.centerInsufficientSlides){let e=0;v.forEach(t=>{e+=t+(x||0)}),e-=x;let t=(s.slidesOffsetBefore||0)+(s.slidesOffsetAfter||0);if(e+t{m[t]=e-i}),f.forEach((e,t)=>{f[t]=e+i})}}if(Object.assign(t,{slides:c,snapGrid:m,slidesGrid:f,slidesSizesGrid:v}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){(0,l.s)(r,"--swiper-centered-offset-before",`${-m[0]}px`),(0,l.s)(r,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);let e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+i)}if(p!==h&&t.emit("slidesLengthChange"),m.length!==w&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==b&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!d&&!s.cssMode&&("slide"===s.effect||"fade"===s.effect)){let e=`${s.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);p<=s.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let i=this,s=[],r=i.virtual&&i.params.virtual.enabled,n=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);let a=e=>r?i.slides[i.getSlideIndexByData(e)]:i.slides[e];if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1){if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(e=>{s.push(e)});else for(t=0;ti.slides.length&&!r)break;s.push(a(e))}}else s.push(a(i.activeIndex));for(t=0;tn?e:n}(n||0===n)&&(i.wrapperEl.style.height=`${n}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i=0?a=parseFloat(a.replace("%",""))/100*this.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e=0&&h<=this.size-this.slidesSizesGrid[e],f=h>=0&&h1&&p<=this.size||h<=0&&p>=this.size;f&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(e)),c(o,f,t.slideVisibleClass),c(o,m,t.slideFullyVisibleClass),o.progress=s?-u:u,o.originalProgress=s?-d:d}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:s,isBeginning:r,isEnd:n,progressLoop:a}=this,o=r,l=n;if(0===i)s=0,r=!0,n=!0;else{s=(e-this.minTranslate())/i;let t=1>Math.abs(e-this.minTranslate()),a=1>Math.abs(e-this.maxTranslate());r=t||s<=0,n=a||s>=1,t&&(s=0),a&&(s=1)}if(t.loop){let t=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),s=this.slidesGrid[t],r=this.slidesGrid[i],n=this.slidesGrid[this.slidesGrid.length-1],o=Math.abs(e);(a=o>=s?(o-s)/n:(o+n-r)/n)>1&&(a-=1)}Object.assign(this,{progress:s,progressLoop:a,isBeginning:r,isEnd:n}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),r&&!o&&this.emit("reachBeginning toEdge"),n&&!l&&this.emit("reachEnd toEdge"),(o&&!r||l&&!n)&&this.emit("fromEdge"),this.emit("progress",s)},updateSlidesClasses:function(){let e,t,i;let{slides:s,params:r,slidesEl:n,activeIndex:a}=this,o=this.virtual&&r.virtual.enabled,u=this.grid&&r.grid&&r.grid.rows>1,d=e=>(0,l.e)(n,`.${r.slideClass}${e}, swiper-slide${e}`)[0];if(o){if(r.loop){let t=a-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=d(`[data-swiper-slide-index="${t}"]`)}else e=d(`[data-swiper-slide-index="${a}"]`)}else u?(e=s.find(e=>e.column===a),i=s.find(e=>e.column===a+1),t=s.find(e=>e.column===a-1)):e=s[a];e&&!u&&(i=(0,l.q)(e,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!i&&(i=s[0]),t=(0,l.r)(e,`.${r.slideClass}, swiper-slide`)[0],r.loop),s.forEach(s=>{p(s,s===e,r.slideActiveClass),p(s,s===i,r.slideNextClass),p(s,s===t,r.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,i;let s=this,r=s.rtlTranslate?s.translate:-s.translate,{snapGrid:n,params:a,activeIndex:o,realIndex:l,snapIndex:u}=s,d=e,h=e=>{let t=e-s.virtual.slidesBefore;return t<0&&(t=s.virtual.slides.length+t),t>=s.virtual.slides.length&&(t-=s.virtual.slides.length),t};if(void 0===d&&(d=function(e){let t;let{slidesGrid:i,params:s}=e,r=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e=i[e]&&r=i[e]&&r=i[e]&&(t=e);return s.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(s)),n.indexOf(r)>=0)t=n.indexOf(r);else{let e=Math.min(a.slidesPerGroupSkip,d);t=e+Math.floor((d-e)/a.slidesPerGroup)}if(t>=n.length&&(t=n.length-1),d===o&&!s.params.loop){t!==u&&(s.snapIndex=t,s.emit("snapIndexChange"));return}if(d===o&&s.params.loop&&s.virtual&&s.params.virtual.enabled){s.realIndex=h(d);return}let c=s.grid&&a.grid&&a.grid.rows>1;if(s.virtual&&a.virtual.enabled&&a.loop)i=h(d);else if(c){let e=s.slides.find(e=>e.column===d),t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(s.slides.indexOf(e),0)),i=Math.floor(t/a.grid.rows)}else if(s.slides[d]){let e=s.slides[d].getAttribute("data-swiper-slide-index");i=e?parseInt(e,10):d}else i=d;Object.assign(s,{previousSnapIndex:u,snapIndex:t,previousRealIndex:l,realIndex:i,previousIndex:o,activeIndex:d}),s.initialized&&v(s),s.emit("activeIndexChange"),s.emit("snapIndexChange"),(s.initialized||s.params.runCallbacksOnInit)&&(l!==i&&s.emit("realIndexChange"),s.emit("slideChange"))},updateClickedSlide:function(e,t){let i;let s=this.params,r=e.closest(`.${s.slideClass}, swiper-slide`);!r&&this.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(r=e)});let n=!1;if(r){for(let e=0;ed?d:s&&e=d.length&&(w=d.length-1);let b=-d[w];if(u.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(o=e)}if(a.initialized&&o!==m&&(!a.allowSlideNext&&(f?b>a.translate&&b>a.minTranslate():ba.translate&&b>a.maxTranslate()&&(m||0)!==o))return!1;o!==(p||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(b),n=o>m?"next":o0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[e?"scrollLeft":"scrollTop"]=i})):v[e?"scrollLeft":"scrollTop"]=i,x&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return(0,l.t)({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;v.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}let S=h().isSafari;return x&&!r&&S&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,n),0===t?a.transitionEnd(i,n):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,n))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));let r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);let n=r.grid&&r.params.grid&&r.params.grid.rows>1,a=e;if(r.params.loop){if(r.virtual&&r.params.virtual.enabled)a+=r.virtual.slidesBefore;else{let e;if(n){let t=a*r.params.grid.rows;e=r.slides.find(e=>+e.getAttribute("data-swiper-slide-index")===t).column}else e=r.getSlideIndexByData(a);let t=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:i}=r.params,o=r.params.slidesPerView;"auto"===o?o=r.slidesPerViewDynamic():(o=Math.ceil(parseFloat(r.params.slidesPerView,10)),i&&o%2==0&&(o+=1));let l=t-e+t.getAttribute("data-swiper-slide-index")===e).column}else a=r.getSlideIndexByData(a)}}return requestAnimationFrame(()=>{r.slideTo(a,t,i,s)}),r},slideNext:function(e,t,i){void 0===t&&(t=!0);let s=this,{enabled:r,params:n,animating:a}=s;if(!r||s.destroyed)return s;void 0===e&&(e=s.params.speed);let o=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));let l=s.activeIndex{s.slideTo(s.activeIndex+l,e,t,i)}),!0}return n.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);let s=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:o,enabled:l,animating:u}=s;if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);let d=s.virtual&&r.virtual.enabled;if(r.loop){if(u&&!d&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function h(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let c=h(o?s.translate:-s.translate),p=n.map(e=>h(e)),m=r.freeMode&&r.freeMode.enabled,f=n[p.indexOf(c)-1];if(void 0===f&&(r.cssMode||m)){let e;n.forEach((t,i)=>{c>=t&&(e=i)}),void 0!==e&&(f=m?n[e]:n[e>0?e-1:e])}let v=0;if(void 0!==f&&((v=a.indexOf(f))<0&&(v=s.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(v=Math.max(v=v-s.slidesPerViewDynamic("previous",!0)+1,0))),r.rewind&&s.isBeginning){let r=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(r,e,t,i)}return r.loop&&0===s.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{s.slideTo(v,e,t,i)}),!0):s.slideTo(v,e,t,i)},slideReset:function(e,t,i){if(void 0===t&&(t=!0),!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){if(void 0===t&&(t=!0),void 0===s&&(s=.5),this.destroyed)return;void 0===e&&(e=this.params.speed);let r=this.activeIndex,n=Math.min(this.params.slidesPerGroupSkip,r),a=n+Math.floor((r-n)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[a]){let e=this.snapGrid[a];o-e>(this.snapGrid[a+1]-e)*s&&(r+=this.params.slidesPerGroup)}else{let e=this.snapGrid[a-1];o-e<=(this.snapGrid[a]-e)*s&&(r-=this.params.slidesPerGroup)}return r=Math.min(r=Math.max(r,0),this.slidesGrid.length-1),this.slideTo(r,e,t,i)},slideToClickedSlide:function(){let e;let t=this;if(t.destroyed)return;let{params:i,slidesEl:s}=t,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,n=t.clickedIndex,a=t.isElement?"swiper-slide":`.${i.slideClass}`;if(i.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?nt.slides.length-t.loopedSlides+r/2?(t.loopFix(),n=t.getSlideIndex((0,l.e)(s,`${a}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(n)})):t.slideTo(n):n>t.slides.length-r?(t.loopFix(),n=t.getSlideIndex((0,l.e)(s,`${a}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}},loop:{loopCreate:function(e,t){let i=this,{params:s,slidesEl:r}=i;if(!s.loop||i.virtual&&i.params.virtual.enabled)return;let n=i.grid&&s.grid&&s.grid.rows>1,a=s.slidesPerGroup*(n?s.grid.rows:1),o=i.slides.length%a!=0,u=n&&i.slides.length%s.grid.rows!=0,d=e=>{for(let t=0;t{e.setAttribute("data-swiper-slide-index",t)}),i.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:s,setTranslate:r,activeSlideIndex:n,initial:a,byController:o,byMousewheel:u}=void 0===e?{}:e,d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");let{slides:h,allowSlidePrev:c,allowSlideNext:p,slidesEl:m,params:f}=d,{centeredSlides:v,initialSlide:g}=f;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&f.virtual.enabled){i&&(f.centeredSlides||0!==d.snapIndex?f.centeredSlides&&d.snapIndex1;h.lengthe.classList.contains(f.slideActiveClass))):M=n;let C="next"===s||!s,A="prev"===s||!s,k=0,V=0,O=(x?h[n].column:n)+(v&&void 0===r?-y/2+.5:0);if(O=0;t-=1)h[t].column===e&&S.push(t)}else S.push(E-t-1)}}else if(O+y>E-b){V=Math.max(O-(E-2*b),w),P&&(V=Math.max(V,y-E+g+1));for(let e=0;e{e.column===t&&T.push(i)}):T.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&h.length{h[e].swiperLoopMoveDOM=!0,m.prepend(h[e]),h[e].swiperLoopMoveDOM=!1}),C&&T.forEach(e=>{h[e].swiperLoopMoveDOM=!0,m.append(h[e]),h[e].swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===f.slidesPerView?d.updateSlides():x&&(S.length>0&&A||T.length>0&&C)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),f.watchSlidesProgress&&d.updateSlidesOffset(),i){if(S.length>0&&A){if(void 0===t){let e=d.slidesGrid[M],t=d.slidesGrid[M+k]-e;u?d.setTranslate(d.translate-t):(d.slideTo(M+Math.ceil(k),0,!1,!0),r&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(r){let e=x?S.length/f.grid.rows:S.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(T.length>0&&C){if(void 0===t){let e=d.slidesGrid[M],t=d.slidesGrid[M-V]-e;u?d.setTranslate(d.translate-t):(d.slideTo(M-V,0,!1,!0),r&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{let e=x?T.length/f.grid.rows:T.length;d.slideTo(d.activeIndex-e,0,!1,!0)}}}if(d.allowSlidePrev=c,d.allowSlideNext=p,d.controller&&d.controller.control&&!o){let e={slideRealIndex:t,direction:s,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&i})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...e,slideTo:d.controller.control.params.slidesPerView===f.slidesPerView&&i})}d.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||!t||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(e=>{i[void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;(!e.params.watchOverflow||!e.isLocked)&&!e.params.cssMode&&(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:e}=this;this.onTouchStart=w.bind(this),this.onTouchMove=b.bind(this),this.onTouchEnd=x.bind(this),this.onDocumentTouchStart=M.bind(this),e.cssMode&&(this.onScroll=E.bind(this)),this.onClick=T.bind(this),this.onLoad=P.bind(this),C(this,"on")},detachEvents:function(){C(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:i,params:s,el:r}=e,n=s.breakpoints;if(!n||n&&0===Object.keys(n).length)return;let a=(0,o.g)(),u="window"!==s.breakpointsBase&&s.breakpointsBase?"container":s.breakpointsBase,d=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?e.el:a.querySelector(s.breakpointsBase),h=e.getBreakpoint(n,u,d);if(!h||e.currentBreakpoint===h)return;let c=(h in n?n[h]:void 0)||e.originalParams,p=A(e,s),m=A(e,c),f=e.params.grabCursor,v=c.grabCursor,g=s.enabled;p&&!m?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&m&&(r.classList.add(`${s.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===s.grid.fill)&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!v?e.unsetGrabCursor():!f&&v&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===c[t])return;let i=s[t]&&s[t].enabled,r=c[t]&&c[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()});let y=c.direction&&c.direction!==s.direction,w=s.loop&&(c.slidesPerView!==s.slidesPerView||y),b=s.loop;y&&i&&e.changeDirection(),(0,l.w)(e.params,c);let x=e.params.enabled,S=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!x?e.disable():!g&&x&&e.enable(),e.currentBreakpoint=h,e.emit("_beforeBreakpoint",c),i&&(w?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&S?(e.loopCreate(t),e.updateSlides()):b&&!S&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1,r=(0,o.a)(),n="window"===t?r.innerHeight:i.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:n*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;et}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:i,el:s,device:r}=this,n=function(e,t){let i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...n),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},O={};class D{constructor(){let e,t;for(var i=arguments.length,s=Array(i),r=0;r1){let e=[];return n.querySelectorAll(t.el).forEach(i=>{let s=(0,l.w)({},t,{el:i});e.push(new D(s))}),e}let a=this;a.__swiper__=!0,a.support=u(),a.device=d({userAgent:t.userAgent}),a.browser=h(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);let c={};a.modules.forEach(e=>{e({params:t,swiper:a,extendParams:function(e,t){return function(i){void 0===i&&(i={});let s=Object.keys(i)[0],r=i[s];if("object"!=typeof r||null===r||(!0===e[s]&&(e[s]={enabled:!0}),"navigation"===s&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),!(s in e&&"enabled"in r))){(0,l.w)(t,i);return}"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),(0,l.w)(t,i)}}(t,c),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});let p=(0,l.w)({},k,c);return a.params=(0,l.w)({},p,O,t),a.originalParams=(0,l.w)({},a.params),a.passedParams=(0,l.w)({},t),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}getSlideIndex(e){let{slidesEl:t,params:i}=this,s=(0,l.e)(t,`.${i.slideClass}, swiper-slide`),r=(0,l.h)(s[0]);return(0,l.h)(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e))}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=(0,l.e)(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let i=this.minTranslate(),s=(this.maxTranslate()-i)*e+i;this.translateTo(s,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(i=>{let s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);let{params:i,slides:s,slidesGrid:r,slidesSizesGrid:n,size:a,activeIndex:o}=this,l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=s[o]?Math.ceil(s[o].swiperSlideSize):0;for(let i=o+1;ia&&(e=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e=0;e-=1)r[o]-r[e]{e.complete&&m(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&t.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){let i=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(i.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||r()}s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);let i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):(0,l.e)(i,s())[0];return!r&&t.params.createElements&&(r=(0,l.c)("div",t.params.wrapperClass),i.append(r),(0,l.e)(i,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:r,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===(0,l.p)(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===(0,l.p)(i,"direction")),wrongRTL:"-webkit-box"===(0,l.p)(r,"display")}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?m(t,e):e.addEventListener("load",e=>{m(t,e.target)})}),v(t),t.initialized=!0,v(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);let i=this,{params:s,el:r,wrapperEl:n,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),n&&n.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),(0,l.x)(i)),i.destroyed=!0),null}static extendDefaults(e){(0,l.w)(O,e)}static get extendedDefaults(){return O}static get defaults(){return k}static installModule(e){D.prototype.__modules__||(D.prototype.__modules__=[]);let t=D.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>D.installModule(e)):D.installModule(e),D}}Object.keys(V).forEach(e=>{Object.keys(V[e]).forEach(t=>{D.prototype[t]=V[e][t]})}),D.use([function(e){let{swiper:t,on:i,emit:s}=e,r=(0,o.a)(),n=null,a=null,l=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},u=()=>{t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver(e=>{a=r.requestAnimationFrame(()=>{let{width:i,height:s}=t,r=i,n=s;e.forEach(e=>{let{contentBoxSize:i,contentRect:s,target:a}=e;a&&a!==t.el||(r=s?s.width:(i[0]||i).inlineSize,n=s?s.height:(i[0]||i).blockSize)}),(r!==i||n!==s)&&l()})})).observe(t.el)},d=()=>{a&&r.cancelAnimationFrame(a),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null)},h=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",()=>{if(t.params.resizeObserver&&void 0!==r.ResizeObserver){u();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",h)}),i("destroy",()=>{d(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",h)})},function(e){let{swiper:t,extendParams:i,on:s,emit:r}=e,n=[],a=(0,o.a)(),u=function(e,i){void 0===i&&(i={});let s=new(a.MutationObserver||a.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length){r("observerUpdate",e[0]);return}let i=function(){r("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(i):a.setTimeout(i,0)});s.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:t.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),n.push(s)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(t.params.observer){if(t.params.observeParents){let e=(0,l.a)(t.hostEl);for(let t=0;t{n.forEach(e=>{e.disconnect()}),n.splice(0,n.length)})}]);let L=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function j(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function R(e,t){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:j(t[i])&&j(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:R(e[i],t[i]):e[i]=t[i]})}function I(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function F(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function B(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function N(e){void 0===e&&(e="");let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),i=[];return t.forEach(e=>{0>i.indexOf(e)&&i.push(e)}),i.join(" ")}let _=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;te.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(o=>{void 0!==e[o]&&(a.indexOf(o)>=0?j(e[o])?(i[o]={},r[o]={},R(i[o],e[o]),R(r[o],e[o])):(i[o]=e[o],r[o]=e[o]):0===o.search(/on[A-Z]/)&&"function"==typeof e[o]?t?s[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:i.on[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:n[o]=e[o])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===i[e]&&(i[e]={}),!1===i[e]&&delete i[e]}),{params:i,passedParams:r,rest:n,events:s}}(u),{slides:O,slots:W}=function(e){let t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return a.Children.toArray(e).forEach(e=>{if(G(e))t.push(e);else if(e.props&&e.props.slot&&i[e.props.slot])i[e.props.slot].push(e);else if(e.props&&e.props.children){let s=function e(t){let i=[];return a.Children.toArray(t).forEach(t=>{G(t)?i.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>i.push(e))}),i}(e.props.children);s.length>0?s.forEach(e=>t.push(e)):i["container-end"].push(e)}else i["container-end"].push(e)}),{slides:t,slots:i}}(o),q=()=>{v(!f)};Object.assign(M.on,{_containerClasses(e,t){c(t)}});let H=()=>{Object.assign(M.on,V),d=!0;let e={...M};if(delete e.wrapperClass,w.current=new D(e),w.current.virtual&&w.current.params.virtual.enabled){w.current.virtual.slides=O;let e={cache:!1,slides:O,renderExternal:m,renderExternalUpdate:!1};R(w.current.params.virtual,e),R(w.current.originalParams.virtual,e)}};y.current||H(),w.current&&w.current.on("_beforeBreakpoint",q);let Y=()=>{!d&&V&&w.current&&Object.keys(V).forEach(e=>{w.current.on(e,V[e])})},X=()=>{V&&w.current&&Object.keys(V).forEach(e=>{w.current.off(e,V[e])})};return(0,a.useEffect)(()=>()=>{w.current&&w.current.off("_beforeBreakpoint",q)}),(0,a.useEffect)(()=>{!g.current&&w.current&&(w.current.emitSlidesClasses(),g.current=!0)}),$(()=>{if(t&&(t.current=y.current),y.current)return w.current.destroyed&&H(),function(e,t){let{el:i,nextEl:s,prevEl:r,paginationEl:n,scrollbarEl:a,swiper:o}=e;I(t)&&s&&r&&(o.params.navigation.nextEl=s,o.originalParams.navigation.nextEl=s,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),F(t)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),B(t)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(i)}({el:y.current,nextEl:S.current,prevEl:T.current,paginationEl:E.current,scrollbarEl:P.current,swiper:w.current},M),l&&!w.current.destroyed&&l(w.current),()=>{w.current&&!w.current.destroyed&&w.current.destroy(!0,!1)}},[]),$(()=>{Y();let e=function(e,t,i,s,r){let n=[];if(!t)return n;let a=e=>{0>n.indexOf(e)&&n.push(e)};if(i&&s){let e=s.map(r),t=i.map(r);e.join("")!==t.join("")&&a("children"),s.length!==i.length&&a("children")}return L.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(i=>{if(i in e&&i in t){if(j(e[i])&&j(t[i])){let s=Object.keys(e[i]),r=Object.keys(t[i]);s.length!==r.length?a(i):(s.forEach(s=>{e[i][s]!==t[i][s]&&a(i)}),r.forEach(s=>{e[i][s]!==t[i][s]&&a(i)}))}else e[i]!==t[i]&&a(i)}}),n}(C,b.current,O,x.current,e=>e.key);return b.current=C,x.current=O,e.length&&w.current&&!w.current.destroyed&&function(e){let t,i,s,r,n,a,o,l,{swiper:u,slides:d,passedParams:h,changedParams:c,nextEl:p,prevEl:m,scrollbarEl:f,paginationEl:v}=e,g=c.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:y,pagination:w,navigation:b,scrollbar:x,virtual:S,thumbs:T}=u;c.includes("thumbs")&&h.thumbs&&h.thumbs.swiper&&!h.thumbs.swiper.destroyed&&y.thumbs&&(!y.thumbs.swiper||y.thumbs.swiper.destroyed)&&(t=!0),c.includes("controller")&&h.controller&&h.controller.control&&y.controller&&!y.controller.control&&(i=!0),c.includes("pagination")&&h.pagination&&(h.pagination.el||v)&&(y.pagination||!1===y.pagination)&&w&&!w.el&&(s=!0),c.includes("scrollbar")&&h.scrollbar&&(h.scrollbar.el||f)&&(y.scrollbar||!1===y.scrollbar)&&x&&!x.el&&(r=!0),c.includes("navigation")&&h.navigation&&(h.navigation.prevEl||m)&&(h.navigation.nextEl||p)&&(y.navigation||!1===y.navigation)&&b&&!b.prevEl&&!b.nextEl&&(n=!0);let E=e=>{u[e]&&(u[e].destroy(),"navigation"===e?(u.isElement&&(u[e].prevEl.remove(),u[e].nextEl.remove()),y[e].prevEl=void 0,y[e].nextEl=void 0,u[e].prevEl=void 0,u[e].nextEl=void 0):(u.isElement&&u[e].el.remove(),y[e].el=void 0,u[e].el=void 0))};c.includes("loop")&&u.isElement&&(y.loop&&!h.loop?a=!0:!y.loop&&h.loop?o=!0:l=!0),g.forEach(e=>{if(j(y[e])&&j(h[e]))Object.assign(y[e],h[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in h[e]&&!h[e].enabled&&E(e);else{let t=h[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&E(e):y[e]=h[e]}}),g.includes("controller")&&!i&&u.controller&&u.controller.control&&y.controller&&y.controller.control&&(u.controller.control=y.controller.control),c.includes("children")&&d&&S&&y.virtual.enabled?(S.slides=d,S.update(!0)):c.includes("virtual")&&S&&y.virtual.enabled&&(d&&(S.slides=d),S.update(!0)),c.includes("children")&&d&&y.loop&&(l=!0),t&&T.init()&&T.update(!0),i&&(u.controller.control=y.controller.control),s&&(u.isElement&&(!v||"string"==typeof v)&&((v=document.createElement("div")).classList.add("swiper-pagination"),v.part.add("pagination"),u.el.appendChild(v)),v&&(y.pagination.el=v),w.init(),w.render(),w.update()),r&&(u.isElement&&(!f||"string"==typeof f)&&((f=document.createElement("div")).classList.add("swiper-scrollbar"),f.part.add("scrollbar"),u.el.appendChild(f)),f&&(y.scrollbar.el=f),x.init(),x.updateSize(),x.setTranslate()),n&&(u.isElement&&(p&&"string"!=typeof p||((p=document.createElement("div")).classList.add("swiper-button-next"),p.innerHTML=u.hostEl.constructor.nextButtonSvg,p.part.add("button-next"),u.el.appendChild(p)),m&&"string"!=typeof m||((m=document.createElement("div")).classList.add("swiper-button-prev"),m.innerHTML=u.hostEl.constructor.prevButtonSvg,m.part.add("button-prev"),u.el.appendChild(m))),p&&(y.navigation.nextEl=p),m&&(y.navigation.prevEl=m),b.init(),b.update()),c.includes("allowSlideNext")&&(u.allowSlideNext=h.allowSlideNext),c.includes("allowSlidePrev")&&(u.allowSlidePrev=h.allowSlidePrev),c.includes("direction")&&u.changeDirection(h.direction,!1),(a||l)&&u.loopDestroy(),(o||l)&&u.loopCreate(),u.update()}({swiper:w.current,slides:O,passedParams:C,changedParams:e,nextEl:S.current,prevEl:T.current,scrollbarEl:P.current,paginationEl:E.current}),()=>{X()}}),$(()=>{_(w.current)},[p]),a.createElement(r,z({ref:y,className:N(`${h}${s?` ${s}`:""}`)},A),a.createElement(U.Provider,{value:w.current},W["container-start"],a.createElement(n,{className:(void 0===(i=M.wrapperClass)&&(i=""),i)?i.includes("swiper-wrapper")?i:`swiper-wrapper ${i}`:"swiper-wrapper"},W["wrapper-start"],M.virtual?function(e,t,i){if(!i)return null;let s=e=>{let i=e;return e<0?i=t.length+e:i>=t.length&&(i-=t.length),i},r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:o}=i,l=e.params.loop?-t.length:0,u=e.params.loop?2*t.length:t.length,d=[];for(let e=l;e=n&&e<=o&&d.push(t[s(e)]);return d.map((t,i)=>a.cloneElement(t,{swiper:e,style:r,key:t.props.virtualIndex||t.key||`slide-${i}`}))}(w.current,O,p):O.map((e,t)=>a.cloneElement(e,{swiper:w.current,swiperSlideIndex:t})),W["wrapper-end"]),I(M)&&a.createElement(a.Fragment,null,a.createElement("div",{ref:T,className:"swiper-button-prev"}),a.createElement("div",{ref:S,className:"swiper-button-next"})),B(M)&&a.createElement("div",{ref:P,className:"swiper-scrollbar"}),F(M)&&a.createElement("div",{ref:E,className:"swiper-pagination"}),W["container-end"]))});q.displayName="Swiper";let H=(0,a.forwardRef)(function(e,t){let{tag:i="div",children:s,className:r="",swiper:n,zoom:o,lazy:l,virtualIndex:u,swiperSlideIndex:d,...h}=void 0===e?{}:e,c=(0,a.useRef)(null),[p,m]=(0,a.useState)("swiper-slide"),[f,v]=(0,a.useState)(!1);function g(e,t,i){t===c.current&&m(i)}$(()=>{if(void 0!==d&&(c.current.swiperSlideIndex=d),t&&(t.current=c.current),c.current&&n){if(n.destroyed){"swiper-slide"!==p&&m("swiper-slide");return}return n.on("_slideClass",g),()=>{n&&n.off("_slideClass",g)}}}),$(()=>{n&&c.current&&!n.destroyed&&m(n.getSlideClasses(c.current))},[n]);let y={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},w=()=>"function"==typeof s?s(y):s;return a.createElement(i,z({ref:c,className:N(`${p}${r?` ${r}`:""}`),"data-swiper-slide-index":u,onLoad:()=>{v(!0)}},h),o&&a.createElement(W.Provider,{value:y},a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof o?o:void 0},w(),l&&!f&&a.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&a.createElement(W.Provider,{value:y},w(),l&&!f&&a.createElement("div",{className:"swiper-lazy-preloader"})))});H.displayName="SwiperSlide"},7887:(e,t,i)=>{"use strict";i.d(t,{X4:()=>n,ai:()=>r,hs:()=>a});var s=i(1297);let r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},n={...r,transform:e=>(0,s.q)(0,1,e)},a={...r,default:1}},8437:(e,t,i)=>{"use strict";i.d(t,{I:()=>a});var s=i(3387);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var n=i(4744);function a(e,t){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=r.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,s=new Set,r=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function d(t){o.has(t)&&(h.schedule(t),e()),u++,t(l)}let h={schedule:(e,t=!1,n=!1)=>{let a=n&&r?i:s;return t&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{s.delete(e),o.delete(e)},process:e=>{if(l=e,r){a=!0;return}r=!0,[i,s]=[s,i],i.forEach(d),t&&n.Q.value&&n.Q.value.frameloop[t].push(u),u=0,i.clear(),r=!1,a&&(a=!1,h.process(e))}};return h}(l,t?i:void 0),e),{}),{setup:d,read:h,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:v,postRender:g}=u,y=()=>{let r=s.W.useManualTiming?o.timestamp:performance.now();i=!1,s.W.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(r-o.timestamp,40),1)),o.timestamp=r,o.isProcessing=!0,d.process(o),h.process(o),c.process(o),p.process(o),m.process(o),f.process(o),v.process(o),g.process(o),o.isProcessing=!1,i&&t&&(a=!1,e(y))},w=()=>{i=!0,a=!0,o.isProcessing||e(y)};return{schedule:r.reduce((e,t)=>{let s=u[t];return e[t]=(e,t=!1,r=!1)=>(i||w(),s.schedule(e,t,r)),e},{}),cancel:e=>{for(let t=0;t{"use strict";i.d(t,{V:()=>o});var s=i(7887),r=i(4158),n=i(1557),a=i(5920);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:a=1})=>"hsla("+Math.round(e)+", "+r.KN.transform((0,n.a)(t))+", "+r.KN.transform((0,n.a)(i))+", "+(0,n.a)(s.X4.transform(a))+")"}},8606:(e,t,i)=>{"use strict";i.d(t,{j:()=>r,p:()=>a});let s=e=>t=>"string"==typeof t&&t.startsWith(e),r=s("--"),n=s("var(--"),a=e=>!!n(e)&&o.test(e.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},8619:(e,t,i)=>{"use strict";i.d(t,{d:()=>o});var s=i(98),r=i(2115),n=i(1508),a=i(2885);function o(e){let t=(0,a.M)(()=>(0,s.OQ)(e)),{isStatic:i}=(0,r.useContext)(n.Q);if(i){let[,i]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",i),[])}return t}},8829:(e,t,i)=>{"use strict";i.d(t,{G:()=>d});var s=i(6775),r=i(2885),n=i(9515),a=i(7494),o=i(8619);function l(e,t){let i=(0,o.d)(t()),s=()=>i.set(t());return s(),(0,a.E)(()=>{let t=()=>n.Gt.preRender(s,!1,!0),i=e.map(e=>e.on("change",t));return()=>{i.forEach(e=>e()),(0,n.WG)(s)}}),i}var u=i(98);function d(e,t,i,r){if("function"==typeof e)return function(e){u.bt.current=[],e();let t=l(u.bt.current,e);return u.bt.current=void 0,t}(e);let n="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),i=t?0:-1,r=e[0+i],n=e[1+i],a=e[2+i],o=e[3+i],l=(0,s.G)(n,a,o);return t?l(r):l}(t,i,r);return Array.isArray(e)?h(e,n):h([e],([e])=>n(e))}function h(e,t){let i=(0,r.M)(()=>[]);return l(e,()=>{i.length=0;let s=e.length;for(let t=0;t{"use strict";i.d(t,{B:()=>s});let s="undefined"!=typeof window},9064:(e,t,i)=>{"use strict";i.d(t,{B:()=>u});var s=i(1297),r=i(7887),n=i(1557),a=i(5920);let o=e=>(0,s.q)(0,255,e),l={...r.ai,transform:e=>Math.round(o(e))},u={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(i)+", "+(0,n.a)(r.X4.transform(s))+")"}},9497:(e,t,i)=>{"use strict";i.d(t,{Ij:()=>n,t9:()=>o});var s=i(2379),r=i(2482);function n(e){let t,i,r,n,a,o,l,u,d,h,{swiper:c,extendParams:p,on:m,emit:f,params:v}=e;c.autoplay={running:!1,paused:!1,timeLeft:0},p({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let g=v&&v.autoplay?v.autoplay.delay:3e3,y=v&&v.autoplay?v.autoplay.delay:3e3,w=new Date().getTime();function b(e){if(c&&!c.destroyed&&c.wrapperEl&&e.target===c.wrapperEl){if(c.wrapperEl.removeEventListener("transitionend",b),!h&&(!e.detail||!e.detail.bySwiperTouchMove))C()}}let x=()=>{if(c.destroyed||!c.autoplay.running)return;c.autoplay.paused?n=!0:n&&(y=r,n=!1);let e=c.autoplay.paused?r:w+y-new Date().getTime();c.autoplay.timeLeft=e,f("autoplayTimeLeft",e,e/g),i=requestAnimationFrame(()=>{x()})},S=()=>{let e;if(e=c.virtual&&c.params.virtual.enabled?c.slides.find(e=>e.classList.contains("swiper-slide-active")):c.slides[c.activeIndex])return parseInt(e.getAttribute("data-swiper-autoplay"),10)},T=e=>{if(c.destroyed||!c.autoplay.running)return;cancelAnimationFrame(i),x();let s=void 0===e?c.params.autoplay.delay:e;g=c.params.autoplay.delay,y=c.params.autoplay.delay;let n=S();!Number.isNaN(n)&&n>0&&void 0===e&&(s=n,g=n,y=n),r=s;let a=c.params.speed,o=()=>{c&&!c.destroyed&&(c.params.autoplay.reverseDirection?!c.isBeginning||c.params.loop||c.params.rewind?(c.slidePrev(a,!0,!0),f("autoplay")):c.params.autoplay.stopOnLastSlide||(c.slideTo(c.slides.length-1,a,!0,!0),f("autoplay")):!c.isEnd||c.params.loop||c.params.rewind?(c.slideNext(a,!0,!0),f("autoplay")):c.params.autoplay.stopOnLastSlide||(c.slideTo(0,a,!0,!0),f("autoplay")),c.params.cssMode&&(w=new Date().getTime(),requestAnimationFrame(()=>{T()})))};return s>0?(clearTimeout(t),t=setTimeout(()=>{o()},s)):requestAnimationFrame(()=>{o()}),s},E=()=>{w=new Date().getTime(),c.autoplay.running=!0,T(),f("autoplayStart")},P=()=>{c.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),f("autoplayStop")},M=(e,i)=>{if(c.destroyed||!c.autoplay.running)return;clearTimeout(t),e||(d=!0);let s=()=>{f("autoplayPause"),c.params.autoplay.waitForTransition?c.wrapperEl.addEventListener("transitionend",b):C()};if(c.autoplay.paused=!0,i){u&&(r=c.params.autoplay.delay),u=!1,s();return}r=(r||c.params.autoplay.delay)-(new Date().getTime()-w),c.isEnd&&r<0&&!c.params.loop||(r<0&&(r=0),s())},C=()=>{c.isEnd&&r<0&&!c.params.loop||c.destroyed||!c.autoplay.running||(w=new Date().getTime(),d?(d=!1,T(r)):T(),c.autoplay.paused=!1,f("autoplayResume"))},A=()=>{if(c.destroyed||!c.autoplay.running)return;let e=(0,s.g)();"hidden"===e.visibilityState&&(d=!0,M(!0)),"visible"===e.visibilityState&&C()},k=e=>{"mouse"===e.pointerType&&(d=!0,h=!0,c.animating||c.autoplay.paused||M(!0))},V=e=>{"mouse"===e.pointerType&&(h=!1,c.autoplay.paused&&C())},O=()=>{c.params.autoplay.pauseOnMouseEnter&&(c.el.addEventListener("pointerenter",k),c.el.addEventListener("pointerleave",V))},D=()=>{c.el&&"string"!=typeof c.el&&(c.el.removeEventListener("pointerenter",k),c.el.removeEventListener("pointerleave",V))},L=()=>{(0,s.g)().addEventListener("visibilitychange",A)},j=()=>{(0,s.g)().removeEventListener("visibilitychange",A)};m("init",()=>{c.params.autoplay.enabled&&(O(),L(),E())}),m("destroy",()=>{D(),j(),c.autoplay.running&&P()}),m("_freeModeStaticRelease",()=>{(o||d)&&C()}),m("_freeModeNoMomentumRelease",()=>{c.params.autoplay.disableOnInteraction?P():M(!0,!0)}),m("beforeTransitionStart",(e,t,i)=>{!c.destroyed&&c.autoplay.running&&(i||!c.params.autoplay.disableOnInteraction?M(!0,!0):P())}),m("sliderFirstMove",()=>{if(!c.destroyed&&c.autoplay.running){if(c.params.autoplay.disableOnInteraction){P();return}a=!0,o=!1,d=!1,l=setTimeout(()=>{d=!0,o=!0,M(!0)},200)}}),m("touchEnd",()=>{if(!c.destroyed&&c.autoplay.running&&a){if(clearTimeout(l),clearTimeout(t),c.params.autoplay.disableOnInteraction){o=!1,a=!1;return}o&&c.params.cssMode&&C(),o=!1,a=!1}}),m("slideChange",()=>{!c.destroyed&&c.autoplay.running&&(u=!0)}),Object.assign(c.autoplay,{start:E,stop:P,pause:M,resume:C})}function a(e,t,i){let s=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,n=(0,r.g)(t),a=n.querySelector(`.${s.split(" ").join(".")}`);return a||(a=(0,r.c)("div",s.split(" ")),n.append(a)),a}function o(e){let{swiper:t,extendParams:i,on:s}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),!function(e){let t;let{effect:i,swiper:s,on:r,setTranslate:n,setTransition:a,overwriteParams:o,perspective:l,recreateShadows:u,getEffectParams:d}=e;r("beforeInit",()=>{if(s.params.effect!==i)return;s.classNames.push(`${s.params.containerModifierClass}${i}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);let e=o?o():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)}),r("setTranslate",()=>{s.params.effect===i&&n()}),r("setTransition",(e,t)=>{s.params.effect===i&&a(t)}),r("transitionEnd",()=>{s.params.effect===i&&u&&d&&d().slideShadows&&(s.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),u())}),r("virtualUpdate",()=>{s.params.effect===i&&(s.slides.length||(t=!0),requestAnimationFrame(()=>{t&&s.slides&&s.slides.length&&(n(),t=!1)}))})}({effect:"coverflow",swiper:t,on:s,setTranslate:()=>{let{width:e,height:i,slides:s,slidesSizesGrid:n}=t,o=t.params.coverflowEffect,l=t.isHorizontal(),u=t.translate,d=l?-u+e/2:-u+i/2,h=l?o.rotate:-o.rotate,c=o.depth,p=(0,r.o)(t);for(let e=0,t=s.length;eMath.abs(b)&&(b=0),.001>Math.abs(w)&&(w=0),.001>Math.abs(g)&&(g=0),.001>Math.abs(f)&&(f=0),.001>Math.abs(v)&&(v=0),.001>Math.abs(x)&&(x=0);let S=`translate3d(${b}px,${w}px,${g}px) rotateX(${p(v)}deg) rotateY(${p(f)}deg) scale(${x})`;if(function(e,t){let i=(0,r.g)(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}(0,t).style.transform=S,t.style.zIndex=-Math.abs(Math.round(m))+1,o.slideShadows){let e=l?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),i=l?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=a("coverflow",t,l?"left":"top")),i||(i=a("coverflow",t,l?"right":"bottom")),e&&(e.style.opacity=m>0?m:0),i&&(i.style.opacity=-m>0?-m:0)}}},setTransition:e=>{t.slides.map(e=>(0,r.g)(e)).forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}},9515:(e,t,i)=>{"use strict";i.d(t,{Gt:()=>r,PP:()=>o,WG:()=>n,uv:()=>a});var s=i(9827);let{schedule:r,cancel:n,state:a,steps:o}=(0,i(8437).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},9556:function(e,t){var i,s;i=t,s=function(){return(s=Object.assign||function(e){for(var t,i=1,s=arguments.length;ir.endVal;r.frameVal=i?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),t1?r.options.decimal+a[1]:"",r.options.useGrouping){n="";for(var o=3,l=0,u=0,d=i.length;uwindow.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>r||s>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;if(this.countDown=this.startVal>e,Math.abs(e-this.startVal)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var t=this.countDown?1:-1;this.endVal=e+t*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var i=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,i):"INPUT"===this.el.tagName?this.el.value=i:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=i:this.el.innerHTML=i}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}()},9827:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});let s=e=>e}}]);