!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(b){var i=".smartmenus_mouse";if(h||b)h&&b&&(a(document).off(i),h=!1);else{var j=!0,k=null,l={mousemove:function(b){var c={x:b.pageX,y:b.pageY,timeStamp:(new Date).getTime()};if(k){var d=Math.abs(k.x-c.x),g=Math.abs(k.y-c.y);if((d>0||g>0)&&d<=4&&g<=4&&c.timeStamp-k.timeStamp<=300&&(f=!0,j)){var h=a(b.target).closest("a");h.is("a")&&a.each(e,function(){if(a.contains(this.$root[0],h[0]))return this.itemEnter({currentTarget:h[0]}),!1}),j=!1}}k=c}};l[g?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(a){c(a.originalEvent)&&(f=!1)},a(document).on(d(l,i)),h=!0}}function c(a){return!/^(4|mouse)$/.test(a.pointerType)}function d(a,b){b||(b="");var c={};for(var d in a)c[d.split(" ").join(b+" ")+b]=a[d];return c}var e=[],f=!1,g="ontouchstart"in window,h=!1,i=window.requestAnimationFrame||function(a){return setTimeout(a,1e3/60)},j=window.cancelAnimationFrame||function(a){clearTimeout(a)},k=!!a.fn.animate;return a.SmartMenus=function(b,c){this.$root=a(b),this.opts=c,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in b.style||"webkitPerspective"in b.style,this.wasCollapsible=!1,this.init()},a.extend(a.SmartMenus,{hideAll:function(){a.each(e,function(){this.menuHideAll()})},destroy:function(){for(;e.length;)e[0].destroy();b(!0)},prototype:{init:function(c){var f=this;if(!c){e.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var g=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(d({"mouseover focusin":a.proxy(this.rootOver,this),"mouseout focusout":a.proxy(this.rootOut,this),keydown:a.proxy(this.rootKeyDown,this)},g)).on(d({mouseenter:a.proxy(this.itemEnter,this),mouseleave:a.proxy(this.itemLeave,this),mousedown:a.proxy(this.itemDown,this),focus:a.proxy(this.itemFocus,this),blur:a.proxy(this.itemBlur,this),click:a.proxy(this.itemClick,this)},g),"a"),g+=this.rootId,this.opts.hideOnClick&&a(document).on(d({touchstart:a.proxy(this.docTouchStart,this),touchmove:a.proxy(this.docTouchMove,this),touchend:a.proxy(this.docTouchEnd,this),click:a.proxy(this.docClick,this)},g)),a(window).on(d({"resize orientationchange":a.proxy(this.winResize,this)},g)),this.opts.subIndicators&&(this.$subArrow=a("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),b()}if(this.$firstSub=this.$root.find("ul").each(function(){f.menuInit(a(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var h=/(index|default)\.[^#\?\/]*/i,i=/#.*/,j=window.location.href.replace(h,""),k=j.replace(i,"");this.$root.find("a:not(.mega-menu a)").each(function(){var b=this.href.replace(h,""),c=a(this);b!=j&&b!=k||(c.addClass("current"),f.opts.markCurrentTree&&c.parentsUntil("[data-smartmenus-id]","ul").each(function(){a(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(b){if(!b){var c=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(c),c+=this.rootId,a(document).off(c),a(window).off(c),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var d=this;this.$root.find("ul").each(function(){var b=a(this);b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.dataSM("shown-before")&&((d.opts.subMenusMinWidth||d.opts.subMenusMaxWidth)&&b.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(b.attr("id")||"").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var b=a(this);0==b.attr("id").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),b||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),e.splice(a.inArray(this,e),1))},disable:function(b){if(!this.disabled){if(this.menuHideAll(),!b&&!this.opts.isPopup&&this.$root.is(":visible")){var c=this.$root.offset();this.$disableOverlay=a('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(b){return this.$touchScrollingSub?void(this.$touchScrollingSub=null):void((this.visibleSubMenus.length&&!a.contains(this.$root[0],b.target)||a(b.target).closest("a").length)&&this.menuHideAll())},docTouchEnd:function(b){if(this.lastTouch){if(this.visibleSubMenus.length&&(void 0===this.lastTouch.x2||this.lastTouch.x1==this.lastTouch.x2)&&(void 0===this.lastTouch.y2||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!a.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var c=this;this.hideTimeout=setTimeout(function(){c.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(a){if(this.lastTouch){var b=a.originalEvent.touches[0];this.lastTouch.x2=b.pageX,this.lastTouch.y2=b.pageY}},docTouchStart:function(a){var b=a.originalEvent.touches[0];this.lastTouch={x1:b.pageX,y1:b.pageY,target:b.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(b){for(var c=a(b).closest("ul");c.dataSM("in-mega");)c=c.parent().closest("ul");return c[0]||null},getHeight:function(a){return this.getOffset(a,!0)},getOffset:function(a,b){var c;"none"==a.css("display")&&(c={position:a[0].style.position,visibility:a[0].style.visibility},a.css({position:"absolute",visibility:"hidden"}).show());var d=a[0].getBoundingClientRect&&a[0].getBoundingClientRect(),e=d&&(b?d.height||d.bottom-d.top:d.width||d.right-d.left);return e||0===e||(e=b?a[0].offsetHeight:a[0].offsetWidth),c&&a.hide().css(c),e},getStartZIndex:function(a){var b=parseInt(this[a?"$root":"$firstSub"].css("z-index"));return!a&&isNaN(b)&&(b=parseInt(this.$root.css("z-index"))),isNaN(b)?1:b},getTouchPoint:function(a){return a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0]||a},getViewport:function(a){var b=a?"Height":"Width",c=document.documentElement["client"+b],d=window["inner"+b];return d&&(c=Math.min(c,d)),c},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(a){return this.getOffset(a)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(a){return this.handleEvents()&&!this.isLinkInMegaMenu(a)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var b="fixed"==this.$root.css("position");return b||this.$root.parentsUntil("body").each(function(){if("fixed"==a(this).css("position"))return b=!0,!1}),b},isLinkInMegaMenu:function(b){return a(this.getClosestMenu(b[0])).hasClass("mega-menu")},isTouchMode:function(){return!f||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(b,c){var d=b.closest("ul"),e=d.dataSM("level");if(e>1&&(!this.activatedItems[e-2]||this.activatedItems[e-2][0]!=d.dataSM("parent-a")[0])){var f=this;a(d.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(d).each(function(){f.itemActivate(a(this).dataSM("parent-a"))})}if(this.isCollapsible()&&!c||this.menuHideSubMenus(this.activatedItems[e-1]&&this.activatedItems[e-1][0]==b[0]?e:e-1),this.activatedItems[e-1]=b,this.$root.triggerHandler("activate.smapi",b[0])!==!1){var g=b.dataSM("sub");g&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(g)}},itemBlur:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&this.$root.triggerHandler("blur.smapi",c[0])},itemClick:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==c.closest("ul")[0])return this.$touchScrollingSub=null,b.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",c[0])===!1)return!1;var d=c.dataSM("sub"),e=!!d&&2==d.dataSM("level");if(d){var f=a(b.target).is(".sub-arrow"),g=this.isCollapsible(),h=/toggle$/.test(this.opts.collapsibleBehavior),i=/link$/.test(this.opts.collapsibleBehavior),j=/^accordion/.test(this.opts.collapsibleBehavior);if(d.is(":visible")){if(!g&&this.opts.showOnClick&&e)return this.menuHide(d),this.clickActivated=!1,this.focusActivated=!1,!1;if(g&&(h||f))return this.itemActivate(c,j),this.menuHide(d),!1}else if((!i||!g||f)&&(!g&&this.opts.showOnClick&&e&&(this.clickActivated=!0),this.itemActivate(c,j),d.is(":visible")))return this.focusActivated=!0,!1}return!(!g&&this.opts.showOnClick&&e||c.hasClass("disabled")||this.$root.triggerHandler("select.smapi",c[0])===!1)&&void 0}},itemDown:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&c.dataSM("mousedown",!0)},itemEnter:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var d=this;this.showTimeout=setTimeout(function(){d.itemActivate(c)},this.opts.showOnClick&&1==c.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",c[0])}},itemFocus:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(!this.focusActivated||this.isTouchMode()&&c.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==c[0]||this.itemActivate(c,!0),this.$root.triggerHandler("focus.smapi",c[0]))},itemLeave:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(this.isTouchMode()||(c[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),c.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",c[0]))},menuHide:function(b){if(this.$root.triggerHandler("beforehide.smapi",b[0])!==!1&&(k&&b.stop(!0,!0),"none"!=b.css("display"))){var c=function(){b.css("z-index","")};this.isCollapsible()?k&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,b,c):b.hide(this.opts.collapsibleHideDuration,c):k&&this.opts.hideFunction?this.opts.hideFunction.call(this,b,c):b.hide(this.opts.hideDuration,c),b.dataSM("scroll")&&(this.menuScrollStop(b),b.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),b.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),b.attr({"aria-expanded":"false","aria-hidden":"true"});var d=b.dataSM("level");this.activatedItems.splice(d-1,1),this.visibleSubMenus.splice(a.inArray(b,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",b[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var a=this.opts.isPopup?1:0,b=this.visibleSubMenus.length-1;b>=a;b--)this.menuHide(this.visibleSubMenus[b]);this.opts.isPopup&&(k&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(k&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(a){for(var b=this.activatedItems.length-1;b>=a;b--){var c=this.activatedItems[b].dataSM("sub");c&&this.menuHide(c)}},menuInit:function(a){if(!a.dataSM("in-mega")){a.hasClass("mega-menu")&&a.find("ul").dataSM("in-mega",!0);for(var b=2,c=a[0];(c=c.parentNode.parentNode)!=this.$root[0];)b++;var d=a.prevAll("a").eq(-1);d.length||(d=a.prevAll().find("a").eq(-1)),d.addClass("has-submenu").dataSM("sub",a),a.dataSM("parent-a",d).dataSM("level",b).parent().dataSM("sub",a);var e=d.attr("id")||this.accessIdPrefix+ ++this.idInc,f=a.attr("id")||this.accessIdPrefix+ ++this.idInc;d.attr({id:e,"aria-haspopup":"true","aria-controls":f,"aria-expanded":"false"}),a.attr({id:f,role:"group","aria-hidden":"true","aria-labelledby":e,"aria-expanded":"false"}),this.opts.subIndicators&&d[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(b){var c,e,f=b.dataSM("parent-a"),h=f.closest("li"),i=h.parent(),j=b.dataSM("level"),k=this.getWidth(b),l=this.getHeight(b),m=f.offset(),n=m.left,o=m.top,p=this.getWidth(f),q=this.getHeight(f),r=a(window),s=r.scrollLeft(),t=r.scrollTop(),u=this.getViewportWidth(),v=this.getViewportHeight(),w=i.parent().is("[data-sm-horizontal-sub]")||2==j&&!i.hasClass("sm-vertical"),x=this.opts.rightToLeftSubMenus&&!h.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&h.is("[data-sm-reverse]"),y=2==j?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,z=2==j?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(w?(c=x?p-k-y:y,e=this.opts.bottomToTopSubMenus?-l-z:q+z):(c=x?y-k:p-y,e=this.opts.bottomToTopSubMenus?q-z-l:z),this.opts.keepInViewport){var A=n+c,B=o+e;if(x&&A<s?c=w?s-A+c:p-y:!x&&A+k>s+u&&(c=w?s+u-k-A+c:y-k),w||(l<v&&B+l>t+v?e+=t+v-l-B:(l>=v||B<t)&&(e+=t-B)),w&&(B+l>t+v+.49||B<t)||!w&&l>v+.49){var C=this;b.dataSM("scroll-arrows")||b.dataSM("scroll-arrows",a([a('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],a('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).on({mouseenter:function(){b.dataSM("scroll").up=a(this).hasClass("scroll-up"),C.menuScroll(b)},mouseleave:function(a){C.menuScrollStop(b),C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){a.preventDefault()}}).insertAfter(b));var D=".smartmenus_scroll";if(b.dataSM("scroll",{y:this.cssTransforms3d?0:e-q,step:1,itemH:q,subH:l,arrowDownH:this.getHeight(b.dataSM("scroll-arrows").eq(1))}).on(d({mouseover:function(a){C.menuScrollOver(b,a)},mouseout:function(a){C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){C.menuScrollMousewheel(b,a)}},D)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:c+(parseInt(b.css("border-left-width"))||0),width:k-(parseInt(b.css("border-left-width"))||0)-(parseInt(b.css("border-right-width"))||0),zIndex:b.css("z-index")}).eq(w&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var E={};E[g?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(a){C.menuScrollTouch(b,a)},b.css({"touch-action":"none","-ms-touch-action":"none"}).on(d(E,D))}}}b.css({top:"auto",left:"0",marginLeft:c,marginTop:e-q})},menuScroll:function(a,b,c){var d,e=a.dataSM("scroll"),g=a.dataSM("scroll-arrows"),h=e.up?e.upEnd:e.downEnd;if(!b&&e.momentum){if(e.momentum*=.92,d=e.momentum,d<.5)return void this.menuScrollStop(a)}else d=c||(b||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(e.step));var j=a.dataSM("level");if(this.activatedItems[j-1]&&this.activatedItems[j-1].dataSM("sub")&&this.activatedItems[j-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(j-1),e.y=e.up&&h<=e.y||!e.up&&h>=e.y?e.y:Math.abs(h-e.y)>d?e.y+(e.up?d:-d):h,a.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+e.y+"px, 0)",transform:"translate3d(0, "+e.y+"px, 0)"}:{marginTop:e.y}),f&&(e.up&&e.y>e.downEnd||!e.up&&e.y<e.upEnd)&&g.eq(e.up?1:0).show(),e.y==h)f&&g.eq(e.up?0:1).hide(),this.menuScrollStop(a);else if(!b){this.opts.scrollAccelerate&&e.step<this.opts.scrollStep&&(e.step+=.2);var k=this;this.scrollTimeout=i(function(){k.menuScroll(a)})}},menuScrollMousewheel:function(a,b){if(this.getClosestMenu(b.target)==a[0]){b=b.originalEvent;var c=(b.wheelDelta||-b.detail)>0;a.dataSM("scroll-arrows").eq(c?0:1).is(":visible")&&(a.dataSM("scroll").up=c,this.menuScroll(a,!0))}b.preventDefault()},menuScrollOut:function(b,c){f&&(/^scroll-(up|down)/.test((c.relatedTarget||"").className)||(b[0]==c.relatedTarget||a.contains(b[0],c.relatedTarget))&&this.getClosestMenu(c.relatedTarget)==b[0]||b.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(b,c){if(f&&!/^scroll-(up|down)/.test(c.target.className)&&this.getClosestMenu(c.target)==b[0]){this.menuScrollRefreshData(b);var d=b.dataSM("scroll"),e=a(window).scrollTop()-b.dataSM("parent-a").offset().top-d.itemH;b.dataSM("scroll-arrows").eq(0).css("margin-top",e).end().eq(1).css("margin-top",e+this.getViewportHeight()-d.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(b){var c=b.dataSM("scroll"),d=a(window).scrollTop()-b.dataSM("parent-a").offset().top-c.itemH;this.cssTransforms3d&&(d=-(parseFloat(b.css("margin-top"))-d)),a.extend(c,{upEnd:d,downEnd:d+this.getViewportHeight()-c.subH})},menuScrollStop:function(a){if(this.scrollTimeout)return j(this.scrollTimeout),this.scrollTimeout=0,a.dataSM("scroll").step=1,!0},menuScrollTouch:function(b,d){if(d=d.originalEvent,c(d)){var e=this.getTouchPoint(d);if(this.getClosestMenu(e.target)==b[0]){var f=b.dataSM("scroll");if(/(start|down)$/i.test(d.type))this.menuScrollStop(b)?(d.preventDefault(),this.$touchScrollingSub=b):this.$touchScrollingSub=null,this.menuScrollRefreshData(b),a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp});else if(/move$/i.test(d.type)){var g=void 0!==f.touchY?f.touchY:f.touchStartY;if(void 0!==g&&g!=e.pageY){this.$touchScrollingSub=b;var h=g<e.pageY;void 0!==f.up&&f.up!=h&&a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp}),a.extend(f,{up:h,touchY:e.pageY}),this.menuScroll(b,!0,Math.abs(e.pageY-g))}d.preventDefault()}else void 0!==f.touchY&&((f.momentum=15*Math.pow(Math.abs(e.pageY-f.touchStartY)/(d.timeStamp-f.touchStartTime),2))&&(this.menuScrollStop(b),this.menuScroll(b),d.preventDefault()),delete f.touchY)}}},menuShow:function(a){if((a.dataSM("beforefirstshowfired")||(a.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",a[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",a[0])!==!1&&(a.dataSM("shown-before",!0),k&&a.stop(!0,!0),!a.is(":visible"))){var b=a.dataSM("parent-a"),c=this.isCollapsible();if((this.opts.keepHighlighted||c)&&b.addClass("highlighted"),c)a.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(a.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(a.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&a.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var d=this.getWidth(a);a.css("max-width",this.opts.subMenusMaxWidth),d>this.getWidth(a)&&a.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(a)}var e=function(){a.css("overflow","")};c?k&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,a,e):a.show(this.opts.collapsibleShowDuration,e):k&&this.opts.showFunction?this.opts.showFunction.call(this,a,e):a.show(this.opts.showDuration,e),b.attr("aria-expanded","true"),a.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(a),this.$root.triggerHandler("show.smapi",a[0])}},popupHide:function(a){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},a?1:this.opts.hideTimeout)},popupShow:function(a,b){if(!this.opts.isPopup)return void alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),k&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:a,top:b});var c=this,d=function(){c.$root.css("overflow","")};k&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,d):this.$root.show(this.opts.showDuration,d),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(b){if(this.handleEvents())switch(b.keyCode){case 27:var c=this.activatedItems[0];if(c){this.menuHideAll(),c[0].focus();var d=c.dataSM("sub");d&&this.menuHide(d)}break;case 32:var e=a(b.target);if(e.is("a")&&this.handleItemEvents(e)){var d=e.dataSM("sub");d&&!d.is(":visible")&&(this.itemClick({currentTarget:b.target}),b.preventDefault())}}},rootOut:function(a){if(this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(a){this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(a){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==a.type){var b=this.isCollapsible();this.wasCollapsible&&b||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=b}}else if(this.$disableOverlay){var c=this.$root.offset();this.$disableOverlay.css({top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),a.fn.dataSM=function(a,b){return b?this.data(a+"_smartmenus",b):this.data(a+"_smartmenus")},a.fn.removeDataSM=function(a){return this.removeData(a+"_smartmenus")},a.fn.smartmenus=function(b){if("string"==typeof b){var c=arguments,d=b;return Array.prototype.shift.call(c),this.each(function(){var b=a(this).data("smartmenus");b&&b[d]&&b[d].apply(b,c)})}return this.each(function(){var c=a(this).data("sm-options")||null;c&&"object"!=typeof c&&(c=null,alert('ERROR\n\nSmartMenus jQuery init:\nThe value of the "data-sm-options" attribute must be valid JSON.')),c&&a.each(["showFunction","hideFunction","collapsibleShowFunction","collapsibleHideFunction"],function(){this in c&&delete c[this]}),new a.SmartMenus(this,a.extend({},a.fn.smartmenus.defaults,b,c))})},a.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(a,b){a.fadeOut(200,b)},collapsibleShowDuration:0,collapsibleShowFunction:function(a,b){a.slideDown(200,b)},collapsibleHideDuration:0,collapsibleHideFunction:function(a,b){a.slideUp(200,b)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},a});
!function(t){var o=function(o,s){var i,e,n,r,a=!1,c=!1,f=!1,p={},l={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1},d=function(t,o,s){var i={},e=t[0].style;s.forEach((function(t){i[t]=void 0!==e[t]?e[t]:""})),t.data("css-backup-"+o,i)},m=function(t,o){return t.data("css-backup-"+o)};const u=()=>{if(r=b(i,"width"),n=i.offset().left,e.isRTL){const t=e.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;n=Math.max(t-r-n,0)}};var h=function(){p.$spacer=i.clone().addClass(e.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(p.$spacer)},y=function(){p.$spacer.remove()},k=function(){d(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);const t={position:"fixed",width:r,marginTop:0,marginBottom:0};t[e.to]=e.offset,t["top"===e.to?"bottom":"top"]="",n&&(t["inset-inline-start"]=n+"px"),i.css(t).addClass(e.classes.stickyActive)},v=function(){i.css(m(i,"unsticky")).removeClass(e.classes.stickyActive)},b=function(t,o,s){var i=getComputedStyle(t[0]),e=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),s&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){e+=parseFloat(i[t+"-"+o])}))})),e},w=function(t){var o=p.$window.scrollTop(),s=b(t,"height"),i=innerHeight,e=t.offset().top-o,n=e-i;return{top:{fromTop:e,fromBottom:n},bottom:{fromTop:e+s,fromBottom:n+s}}},g=function(){v(),y(),a=!1,i.trigger("sticky:unstick")},$=function(){var t=w(i),o="top"===e.to;if(c){(o?t.top.fromTop>e.offset:t.bottom.fromBottom<-e.offset)&&(p.$parent.css(m(p.$parent,"childNotFollowing")),i.css(m(i,"notFollowing")),c=!1)}else{var s=w(p.$parent),a=getComputedStyle(p.$parent[0]),f=parseFloat(a[o?"borderBottomWidth":"borderTopWidth"]),l=o?s.bottom.fromTop-f:s.top.fromBottom+f;(o?l<=t.bottom.fromTop:l>=t.top.fromBottom)&&function(){d(p.$parent,"childNotFollowing",["position"]),p.$parent.css("position","relative"),d(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(n=p.$spacer.position().left,e.isRTL){const t=i.parent().outerWidth(),o=p.$spacer.position().left;r=p.$spacer.outerWidth(),n=Math.max(t-r-o,0)}t["inset-inline-start"]=n+"px",t[e.to]="",t["top"===e.to?"bottom":"top"]=0,i.css(t),c=!0}()}},T=function(){var t,o=e.offset;if(a){var s=w(p.$spacer);t="top"===e.to?s.top.fromTop-o:-s.bottom.fromBottom-o,e.parent&&$(),t>0&&g()}else{var n=w(i);(t="top"===e.to?n.top.fromTop-o:-n.bottom.fromBottom-o)<=0&&(u(),h(),k(),a=!0,i.trigger("sticky:stick"),e.parent&&$())}!function(t){f&&-t<e.effectsOffset?(i.removeClass(e.classes.stickyEffects),f=!1):!f&&-t>=e.effectsOffset&&(i.addClass(e.classes.stickyEffects),f=!0)}(t)},B=function(){T()},C=function(){a&&(v(),y(),u(),h(),k(),e.parent&&(c=!1,$()))};this.destroy=function(){a&&g(),p.$window.off("scroll",B).off("resize",C),i.removeClass(e.classes.sticky)},e=jQuery.extend(!0,l,s),i=t(o).addClass(e.classes.sticky),p.$window=t(window),e.parent&&(p.$parent=i.parent(),"parent"!==e.parent&&(p.$parent=p.$parent.closest(e.parent))),p.$window.on({scroll:B,resize:C}),T()};t.fn.sticky=function(s){var i="string"==typeof s;return this.each((function(){var e=t(this);if(i){var n=e.data("sticky");if(!n)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!n[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");n[s].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===s&&e.removeData("sticky")}else e.data("sticky",new o(this,s))})),this},window.Sticky=o}(jQuery);
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={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(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,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 r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}class n extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function l(e){void 0===e&&(e=[]);const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...l(e)):t.push(e)})),t}function o(e,t){return Array.prototype.filter.call(e,t)}function d(e,t){const s=r(),i=a();let l=[];if(!t&&e instanceof n)return e;if(!e)return new n(l);if("string"==typeof e){const s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let e="div";0===s.indexOf("<li")&&(e="ul"),0===s.indexOf("<tr")&&(e="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(e="tr"),0===s.indexOf("<tbody")&&(e="table"),0===s.indexOf("<option")&&(e="select");const t=i.createElement(e);t.innerHTML=s;for(let e=0;e<t.childNodes.length;e+=1)l.push(t.childNodes[e])}else l=function(e,t){if("string"!=typeof e)return[e];const s=[],a=t.querySelectorAll(e);for(let e=0;e<a.length;e+=1)s.push(a[e]);return s}(e.trim(),t||i)}else if(e.nodeType||e===s||e===i)l.push(e);else if(Array.isArray(e)){if(e instanceof n)return e;l=e}return new n(function(e){const t=[];for(let s=0;s<e.length;s+=1)-1===t.indexOf(e[s])&&t.push(e[s]);return t}(l))}d.fn=n.prototype;const c={addClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...a)})),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...a)})),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));return o(this,(e=>a.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const a=l(t.map((e=>e.split(" "))));this.forEach((e=>{a.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let s=0;s<this.length;s+=1)if(2===arguments.length)this[s].setAttribute(e,t);else for(const t in e)this[s][t]=e[t],this[s].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];let[a,i,r,n]=t;function l(e){const t=e.target;if(!t)return;const s=e.target.dom7EventData||[];if(s.indexOf(e)<0&&s.unshift(e),d(t).is(i))r.apply(t,s);else{const e=d(t).parents();for(let t=0;t<e.length;t+=1)d(e[t]).is(i)&&r.apply(e[t],s)}}function o(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&([a,r,n]=t,i=void 0),n||(n=!1);const c=a.split(" ");let p;for(let e=0;e<this.length;e+=1){const t=this[e];if(i)for(p=0;p<c.length;p+=1){const e=c[p];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:r,proxyListener:l}),t.addEventListener(e,l,n)}else for(p=0;p<c.length;p+=1){const e=c[p];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:r,proxyListener:o}),t.addEventListener(e,o,n)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];let[a,i,r,n]=t;"function"==typeof t[1]&&([a,r,n]=t,i=void 0),n||(n=!1);const l=a.split(" ");for(let e=0;e<l.length;e+=1){const t=l[e];for(let e=0;e<this.length;e+=1){const s=this[e];let a;if(!i&&s.dom7Listeners?a=s.dom7Listeners[t]:i&&s.dom7LiveListeners&&(a=s.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const i=a[e];r&&i.listener===r||r&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===r?(s.removeEventListener(t,i.proxyListener,n),a.splice(e,1)):r||(s.removeEventListener(t,i.proxyListener,n),a.splice(e,1))}}}return this},trigger:function(){const e=r();for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];const i=s[0].split(" "),n=s[1];for(let t=0;t<i.length;t+=1){const a=i[t];for(let t=0;t<this.length;t+=1){const i=this[t];if(e.CustomEvent){const t=new e.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0});i.dom7EventData=s.filter(((e,t)=>t>0)),i.dispatchEvent(t),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function s(a){a.target===this&&(e.call(this,a),t.off("transitionend",s))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=r();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=r(),t=a(),s=this[0],i=s.getBoundingClientRect(),n=t.body,l=s.clientTop||n.clientTop||0,o=s.clientLeft||n.clientLeft||0,d=s===e?e.scrollY:s.scrollTop,c=s===e?e.scrollX:s.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}return null},css:function(e,t){const s=r();let a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(const t in e)this[a].style[t]=e[t];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,s)=>{e.apply(t,[t,s])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=r(),s=a(),i=this[0];let l,o;if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(l=d(e),o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}if(e===s)return i===s;if(e===t)return i===t;if(e.nodeType||e instanceof n){for(l=e.nodeType?[e]:e,o=0;o<l.length;o+=1)if(l[o]===i)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return d([]);if(e<0){const s=t+e;return d(s<0?[]:[this[s]])}return d([this[e]])},append:function(){let e;const t=a();for(let s=0;s<arguments.length;s+=1){e=s<0||arguments.length<=s?void 0:arguments[s];for(let s=0;s<this.length;s+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[s].appendChild(a.firstChild)}else if(e instanceof n)for(let t=0;t<e.length;t+=1)this[s].appendChild(e[t]);else this[s].appendChild(e)}return this},prepend:function(e){const t=a();let s,i;for(s=0;s<this.length;s+=1)if("string"==typeof e){const a=t.createElement("div");for(a.innerHTML=e,i=a.childNodes.length-1;i>=0;i-=1)this[s].insertBefore(a.childNodes[i],this[s].childNodes[0])}else if(e instanceof n)for(i=0;i<e.length;i+=1)this[s].insertBefore(e[i],this[s].childNodes[0]);else this[s].insertBefore(e,this[s].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&d(this[0].nextElementSibling).is(e)?d([this[0].nextElementSibling]):d([]):this[0].nextElementSibling?d([this[0].nextElementSibling]):d([]):d([])},nextAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.nextElementSibling;){const a=s.nextElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&d(t.previousElementSibling).is(e)?d([t.previousElementSibling]):d([]):t.previousElementSibling?d([t.previousElementSibling]):d([])}return d([])},prevAll:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.previousElementSibling;){const a=s.previousElementSibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},parent:function(e){const t=[];for(let s=0;s<this.length;s+=1)null!==this[s].parentNode&&(e?d(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode));return d(t)},parents:function(e){const t=[];for(let s=0;s<this.length;s+=1){let a=this[s].parentNode;for(;a;)e?d(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return d(t)},closest:function(e){let t=this;return void 0===e?d([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].querySelectorAll(e);for(let e=0;e<a.length;e+=1)t.push(a[e])}return d(t)},children:function(e){const t=[];for(let s=0;s<this.length;s+=1){const a=this[s].children;for(let s=0;s<a.length;s+=1)e&&!d(a[s]).is(e)||t.push(a[s])}return d(t)},filter:function(e){return d(o(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function p(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function u(){return Date.now()}function h(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function g(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let s=1;s<arguments.length;s+=1){const a=s<0||arguments.length<=s?void 0:arguments[s];if(null!=a&&!f(a)){const s=Object.keys(Object(a)).filter((e=>t.indexOf(e)<0));for(let t=0,i=s.length;t<i;t+=1){const i=s[t],r=Object.getOwnPropertyDescriptor(a,i);void 0!==r&&r.enumerable&&(m(e[i])&&m(a[i])?a[i].__swiper__?e[i]=a[i]:g(e[i],a[i]):!m(e[i])&&m(a[i])?(e[i]={},a[i].__swiper__?e[i]=a[i]:g(e[i],a[i])):e[i]=a[i])}}}return e}function v(e,t,s){e.style.setProperty(t,s)}function w(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}let b,x,y;function E(){return b||(b=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const s=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,s)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),b}function C(e){return void 0===e&&(e={}),x||(x=function(e){let{userAgent:t}=void 0===e?{}:e;const s=E(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),h=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!m&&(l.os="android",l.android=!0),(p||h||u)&&(l.os="ios",l.ios=!0),l}(e)),x}function T(){return y||(y=function(){const e=r();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),y}Object.keys(c).forEach((e=>{Object.defineProperty(d.fn,e,{value:c[e],writable:!0})}));var $={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(a,r)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),a=e):(t=r[0].events,s=r[0].data,a=r[0].context||e),s.unshift(a);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};var S={updateSize:function(){const e=this;let t,s;const a=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a[0].clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a[0].clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(a.css("padding-left")||0,10)-parseInt(a.css("padding-right")||0,10),s=s-parseInt(a.css("padding-top")||0,10)-parseInt(a.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{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"}[t]}function s(e,s){return parseFloat(e.getPropertyValue(t(s))||0)}const a=e.params,{$wrapperEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&a.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=i.children(`.${e.params.slideClass}`),p=o?e.virtual.slides.length:c.length;let u=[];const h=[],m=[];let f=a.slidesOffsetBefore;"function"==typeof f&&(f=a.slidesOffsetBefore.call(e));let g=a.slidesOffsetAfter;"function"==typeof g&&(g=a.slidesOffsetAfter.call(e));const w=e.snapGrid.length,b=e.slidesGrid.length;let x=a.spaceBetween,y=-f,E=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*r),e.virtualSize=-x,n?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),a.centeredSlides&&a.cssMode&&(v(e.wrapperEl,"--swiper-centered-offset-before",""),v(e.wrapperEl,"--swiper-centered-offset-after",""));const T=a.grid&&a.grid.rows>1&&e.grid;let $;T&&e.grid.initSlides(p);const S="auto"===a.slidesPerView&&a.breakpoints&&Object.keys(a.breakpoints).filter((e=>void 0!==a.breakpoints[e].slidesPerView)).length>0;for(let i=0;i<p;i+=1){$=0;const n=c.eq(i);if(T&&e.grid.updateSlide(i,n,p,t),"none"!==n.css("display")){if("auto"===a.slidesPerView){S&&(c[i].style[t("width")]="");const r=getComputedStyle(n[0]),l=n[0].style.transform,o=n[0].style.webkitTransform;if(l&&(n[0].style.transform="none"),o&&(n[0].style.webkitTransform="none"),a.roundLengths)$=e.isHorizontal()?n.outerWidth(!0):n.outerHeight(!0);else{const e=s(r,"width"),t=s(r,"padding-left"),a=s(r,"padding-right"),i=s(r,"margin-left"),l=s(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)$=e+i+l;else{const{clientWidth:s,offsetWidth:r}=n[0];$=e+t+a+i+l+(r-s)}}l&&(n[0].style.transform=l),o&&(n[0].style.webkitTransform=o),a.roundLengths&&($=Math.floor($))}else $=(r-(a.slidesPerView-1)*x)/a.slidesPerView,a.roundLengths&&($=Math.floor($)),c[i]&&(c[i].style[t("width")]=`${$}px`);c[i]&&(c[i].swiperSlideSize=$),m.push($),a.centeredSlides?(y=y+$/2+E/2+x,0===E&&0!==i&&(y=y-r/2-x),0===i&&(y=y-r/2-x),Math.abs(y)<.001&&(y=0),a.roundLengths&&(y=Math.floor(y)),C%a.slidesPerGroup==0&&u.push(y),h.push(y)):(a.roundLengths&&(y=Math.floor(y)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&u.push(y),h.push(y),y=y+$+x),e.virtualSize+=$+x,E=$,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+g,n&&l&&("slide"===a.effect||"coverflow"===a.effect)&&i.css({width:`${e.virtualSize+a.spaceBetween}px`}),a.setWrapperSize&&i.css({[t("width")]:`${e.virtualSize+a.spaceBetween}px`}),T&&e.grid.updateWrapperSize($,u,t),!a.centeredSlides){const t=[];for(let s=0;s<u.length;s+=1){let i=u[s];a.roundLengths&&(i=Math.floor(i)),u[s]<=e.virtualSize-r&&t.push(i)}u=t,Math.floor(e.virtualSize-r)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-r)}if(0===u.length&&(u=[0]),0!==a.spaceBetween){const s=e.isHorizontal()&&n?"marginLeft":t("marginRight");c.filter(((e,t)=>!a.cssMode||t!==c.length-1)).css({[s]:`${x}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween;const t=e-r;u=u.map((e=>e<0?-f:e>t?t+g:e))}if(a.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween,e<r){const t=(r-e)/2;u.forEach(((e,s)=>{u[s]=e-t})),h.forEach(((e,s)=>{h[s]=e+t}))}}if(Object.assign(e,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){v(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),v(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),u.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset(),!(o||a.cssMode||"slide"!==a.effect&&"fade"!==a.effect)){const t=`${a.containerModifierClass}backface-hidden`,s=e.$el.hasClass(t);p<=a.maxBackfaceHiddenSlides?s||e.$el.addClass(t):s&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||d([])).each((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&t.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),a.removeClass(s.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<a.length;e+=1){const l=a[e];let o=l.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(o-=a[0].swiperSlideOffset);const d=(n+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),c=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-o)/(l.swiperSlideSize+s.spaceBetween),p=-(n-o),u=p+t.slidesSizesGrid[e];(p>=0&&p<t.size-1||u>1&&u<=t.size||p<=0&&u>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),a.eq(e).addClass(s.slideVisibleClass)),l.progress=i?-d:d,l.originalProgress=i?-c:c}t.visibleSlides=d(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n}=t;const l=r,o=n;0===a?(i=0,r=!0,n=!0):(i=(e-t.minTranslate())/a,r=i<=0,n=i>=1),Object.assign(t,{progress:i,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),n&&!o&&t.emit("reachEnd toEdge"),(l&&!r||o&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,$wrapperEl:a,activeIndex:i,realIndex:r}=e,n=e.virtual&&s.virtual.enabled;let l;t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`),l=n?e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`):t.eq(i),l.addClass(s.slideActiveClass),s.loop&&(l.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass));let o=l.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass);s.loop&&0===o.length&&(o=t.eq(0),o.addClass(s.slideNextClass));let d=l.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=t.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(o.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass):a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:n,realIndex:l,snapIndex:o}=t;let d,c=e;if(void 0===c){for(let e=0;e<a.length;e+=1)void 0!==a[e+1]?s>=a[e]&&s<a[e+1]-(a[e+1]-a[e])/2?c=e:s>=a[e]&&s<a[e+1]&&(c=e+1):s>=a[e]&&(c=e);r.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(s)>=0)d=i.indexOf(s);else{const e=Math.min(r.slidesPerGroupSkip,c);d=e+Math.floor((c-e)/r.slidesPerGroup)}if(d>=i.length&&(d=i.length-1),c===n)return void(d!==o&&(t.snapIndex=d,t.emit("snapIndexChange")));const p=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:d,realIndex:p,previousIndex:n,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==p&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,s=t.params,a=d(e).closest(`.${s.slideClass}`)[0];let i,r=!1;if(a)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===a){r=!0,i=e;break}if(!a||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=a,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(d(a).attr("data-swiper-slide-index"),10):t.clickedIndex=i,s.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var M={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:a,$wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=h(i[0],e);return s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,$wrapperEl:r,wrapperEl:n,progress:l}=s;let o,d=0,c=0;s.isHorizontal()?d=a?-e:e:c=e,i.roundLengths&&(d=Math.floor(d),c=Math.floor(c)),i.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-d:-c:i.virtualTranslate||r.transform(`translate3d(${d}px, ${c}px, 0px)`),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?d:c;const p=s.maxTranslate()-s.minTranslate();o=0===p?0:(e-s.minTranslate())/p,o!==l&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===a&&(a=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return w({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,s&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}};function P(e){let{swiper:t,runCallbacks:s,direction:a,step:i}=e;const{activeIndex:r,previousIndex:n}=t;let l=a;if(l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${i}`),s&&r!==n){if("reset"===l)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var k={slideTo:function(e,t,s,a,i){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:m}=r;if(r.animating&&l.preventInteractionOnTransition||!m&&!a&&!i)return!1;const f=Math.min(r.params.slidesPerGroupSkip,n);let g=f+Math.floor((n-f)/r.params.slidesPerGroup);g>=o.length&&(g=o.length-1);const v=-o[g];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*v),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate())return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(p||0)!==n)return!1}let b;if(n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=n>p?"next":n<p?"prev":"reset",u&&-v===r.translate||!u&&v===r.translate)return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?v:-v;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}))}else{if(!r.support.smoothScroll)return w({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const i=this;let r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,s,a)},slideNext:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{animating:i,enabled:r,params:n}=a;if(!r)return a;let l=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<n.slidesPerGroupSkip?1:l;if(n.loop){if(i&&n.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}return n.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{params:i,animating:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:d}=a;if(!d)return a;if(i.loop){if(r&&i.loopPreventsSlide)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=c(o?a.translate:-a.translate),u=n.map((e=>c(e)));let h=n[u.indexOf(p)-1];if(void 0===h&&i.cssMode){let e;n.forEach(((t,s)=>{p>=t&&(e=s)})),void 0!==e&&(h=n[e>0?e-1:e])}let m=0;if(void 0!==h&&(m=l.indexOf(h),m<0&&(m=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=m-a.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return a.slideTo(m,e,t,s)},slideReset:function(e,t,s){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),p((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var z={loopCreate:function(){const e=this,t=a(),{params:s,$wrapperEl:i}=e,r=i.children().length>0?d(i.children()[0].parentNode):i;r.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove();let n=r.children(`.${s.slideClass}`);if(s.loopFillGroupWithBlank){const e=s.slidesPerGroup-n.length%s.slidesPerGroup;if(e!==s.slidesPerGroup){for(let a=0;a<e;a+=1){const e=d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`);r.append(e)}n=r.children(`.${s.slideClass}`)}}"auto"!==s.slidesPerView||s.loopedSlides||(s.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(s.loopedSlides||s.slidesPerView,10)),e.loopedSlides+=s.loopAdditionalSlides,e.loopedSlides>n.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=n.length);const l=[],o=[];n.each(((e,t)=>{d(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/n.length)*n.length;o.push(n.eq(e)[0]),l.unshift(n.eq(n.length-e-1)[0])}for(let e=0;e<o.length;e+=1)r.append(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass));for(let e=l.length-1;e>=0;e-=1)r.prepend(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:s,loopedSlides:a,allowSlidePrev:i,allowSlideNext:r,snapGrid:n,rtlTranslate:l}=e;let o;e.allowSlidePrev=!0,e.allowSlideNext=!0;const d=-n[t]-e.getTranslate();if(t<a){o=s.length-3*a+t,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}else if(t>=s.length-a){o=-s.length+t+a,o+=a;e.slideTo(o,0,!1,!0)&&0!==d&&e.setTranslate((l?-e.translate:e.translate)-d)}e.allowSlidePrev=i,e.allowSlideNext=r,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:s}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}};function L(e){const t=this,s=a(),i=r(),n=t.touchEventsData,{params:l,touches:o,enabled:c}=t;if(!c)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=e;p.originalEvent&&(p=p.originalEvent);let h=d(p.target);if("wrapper"===l.touchEventsTarget&&!h.closest(t.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===p.type,!n.isTouchEvent&&"which"in p&&3===p.which)return;if(!n.isTouchEvent&&"button"in p&&p.button>0)return;if(n.isTouched&&n.isMoved)return;const m=!!l.noSwipingClass&&""!==l.noSwipingClass,f=e.composedPath?e.composedPath():e.path;m&&p.target&&p.target.shadowRoot&&f&&(h=d(f[0]));const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,v=!(!p.target||!p.target.shadowRoot);if(l.noSwiping&&(v?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(g,h[0]):h.closest(g)[0]))return void(t.allowClick=!0);if(l.swipeHandler&&!h.closest(l.swipeHandler)[0])return;o.currentX="touchstart"===p.type?p.targetTouches[0].pageX:p.pageX,o.currentY="touchstart"===p.type?p.targetTouches[0].pageY:p.pageY;const w=o.currentX,b=o.currentY,x=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,y=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold;if(x&&(w<=y||w>=i.innerWidth-y)){if("prevent"!==x)return;e.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=w,o.startY=b,n.touchStartTime=u(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==p.type){let e=!0;h.is(n.focusableElements)&&(e=!1,"SELECT"===h[0].nodeName&&(n.isTouched=!1)),s.activeElement&&d(s.activeElement).is(n.focusableElements)&&s.activeElement!==h[0]&&s.activeElement.blur();const a=e&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!a||h[0].isContentEditable||p.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",p)}function O(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=s;if(!o)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",c));if(i.isTouchEvent&&"touchmove"!==c.type)return;const p="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),h="touchmove"===c.type?p.pageX:c.pageX,m="touchmove"===c.type?p.pageY:c.pageY;if(c.preventedByNestedSwiper)return n.startX=h,void(n.startY=m);if(!s.allowTouchMove)return d(c.target).is(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:h,startY:m,currentX:h,currentY:m}),i.touchStartTime=u()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(h<n.startX&&s.translate<=s.maxTranslate()||h>n.startX&&s.translate>=s.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&d(c.target).is(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);if(i.allowTouchCallbacks&&s.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;n.currentX=h,n.currentY=m;const f=n.currentX-n.startX,g=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(f**2+g**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:f*f+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",c),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&s.loopFix(),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating&&s.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",c)),s.emit("sliderMove",c),i.isMoved=!0;let v=s.isHorizontal()?f:g;n.diff=v,v*=r.touchRatio,l&&(v=-v),s.swipeDirection=v>0?"prev":"next",i.currentTranslate=v+i.startTranslate;let w=!0,b=r.resistanceRatio;if(r.touchReleaseOnEdges&&(b=0),v>0&&i.currentTranslate>s.minTranslate()?(w=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+v)**b)):v<0&&i.currentTranslate<s.maxTranslate()&&(w=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-v)**b)),w&&(c.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(v)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),s.params.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function I(e){const t=this,s=t.touchEventsData,{params:a,touches:i,rtlTranslate:r,slidesGrid:n,enabled:l}=t;if(!l)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),s.allowTouchCallbacks&&t.emit("touchEnd",o),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&a.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);a.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=u(),c=d-s.touchStartTime;if(t.allowClick){const e=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(e&&e[0]||o.target),t.emit("tap click",o),c<300&&d-s.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(s.lastClickTime=u(),p((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===i.diff||s.currentTranslate===s.startTranslate)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=a.followFinger?r?t.translate:-t.translate:-s.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let m=0,f=t.slidesSizesGrid[0];for(let e=0;e<n.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==n[e+t]?h>=n[e]&&h<n[e+t]&&(m=e,f=n[e+t]-n[e]):h>=n[e]&&(m=e,f=n[n.length-1]-n[n.length-2])}let g=null,v=null;a.rewind&&(t.isBeginning?v=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const w=(h-n[m])/f,b=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(c>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+b):t.slideTo(m)),"prev"===t.swipeDirection&&(w>1-a.longSwipesRatio?t.slideTo(m+b):null!==v&&w<0&&Math.abs(w)>a.longSwipesRatio?t.slideTo(v):t.slideTo(m))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(m+b):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==g?g:m+b),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:m))}}function A(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function D(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function G(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let N=!1;function B(){}const H=(e,t)=>{const s=a(),{params:i,touchEvents:r,el:n,wrapperEl:l,device:o,support:d}=e,c=!!i.nested,p="on"===t?"addEventListener":"removeEventListener",u=t;if(d.touch){const t=!("touchstart"!==r.start||!d.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};n[p](r.start,e.onTouchStart,t),n[p](r.move,e.onTouchMove,d.passiveListener?{passive:!1,capture:c}:c),n[p](r.end,e.onTouchEnd,t),r.cancel&&n[p](r.cancel,e.onTouchEnd,t)}else n[p](r.start,e.onTouchStart,!1),s[p](r.move,e.onTouchMove,c),s[p](r.end,e.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&n[p]("click",e.onClick,!0),i.cssMode&&l[p]("scroll",e.onScroll),i.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",A,!0):e[u]("observerUpdate",A,!0)};var X={attachEvents:function(){const e=this,t=a(),{params:s,support:i}=e;e.onTouchStart=L.bind(e),e.onTouchMove=O.bind(e),e.onTouchEnd=I.bind(e),s.cssMode&&(e.onScroll=G.bind(e)),e.onClick=D.bind(e),i.touch&&!N&&(t.addEventListener("touchstart",B),N=!0),H(e,"on")},detachEvents:function(){H(this,"off")}};const Y=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var R={addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,$el:i,device:r,support:n}=e,l=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"pointer-events":!n.touch},{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...l),i.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};var W={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!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-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function q(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(a)>=0&&!0===e[a]&&(e[a]={auto:!0}),a in e&&"enabled"in i?(!0===e[a]&&(e[a]={enabled:!0}),"object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),g(t,s)):g(t,s)):g(t,s)}}const j={eventsEmitter:$,update:S,translate:M,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||s.$wrapperEl.transition(e),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),P({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),P({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:k,loop:z,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;s.style.cursor="move",s.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:X,breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:s,loopedSlides:a=0,params:i,$el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const l=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const o=(l in n?n[l]:void 0)||e.originalParams,d=Y(e,i),c=Y(e,o),p=i.enabled;d&&!c?(r.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&c&&(r.addClass(`${i.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===i.grid.fill)&&r.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const s=i[t]&&i[t].enabled,a=o[t]&&o[t].enabled;s&&!a&&e[t].disable(),!s&&a&&e[t].enable()}));const u=o.direction&&o.direction!==i.direction,h=i.loop&&(o.slidesPerView!==i.slidesPerView||u);u&&s&&e.changeDirection(),g(e.params,o);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!m?e.disable():!p&&m&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",o),h&&s&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-a+e.loopedSlides,0,!1)),e.emit("breakpoint",o)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:R,images:{loadImage:function(e,t,s,a,i,n){const l=r();let o;function c(){n&&n()}d(e).parent("picture")[0]||e.complete&&i?c():t?(o=new l.Image,o.onload=c,o.onerror=c,a&&(o.sizes=a),s&&(o.srcset=s),t&&(o.src=t)):c()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let s=0;s<e.imagesToLoad.length;s+=1){const a=e.imagesToLoad[s];e.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,t)}}}},_={};class V{constructor(){let e,t;for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];if(1===a.length&&a[0].constructor&&"Object"===Object.prototype.toString.call(a[0]).slice(8,-1)?t=a[0]:[e,t]=a,t||(t={}),t=g({},t),e&&!t.el&&(t.el=e),t.el&&d(t.el).length>1){const e=[];return d(t.el).each((s=>{const a=g({},t,{el:s});e.push(new V(a))})),e}const r=this;r.__swiper__=!0,r.support=E(),r.device=C({userAgent:t.userAgent}),r.browser=T(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],t.modules&&Array.isArray(t.modules)&&r.modules.push(...t.modules);const n={};r.modules.forEach((e=>{e({swiper:r,extendParams:q(t,n),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})}));const l=g({},W,n);return r.params=g({},l,_,t),r.originalParams=g({},r.params),r.passedParams=g({},t),r.params&&r.params.on&&Object.keys(r.params.on).forEach((e=>{r.on(e,r.params.on[e])})),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=d,Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:d(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},r.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),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:r.params.focusableElements,lastClickTime:u(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if(s.centeredSlides){let e,t=a[l].swiperSlideSize;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(a(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||a()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const s=d(e||t.params.el);if(!(e=s[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=d(e.shadowRoot.querySelector(i()));return t.children=e=>s.children(e),t}return s.children?s.children(i()):d(s).children(i())})();if(0===r.length&&t.params.createElements){const e=a().createElement("div");r=d(e),e.className=t.params.wrapperClass,s.append(e),s.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:s,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===s.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,$el:i,$wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i.removeAttr("style"),r.removeAttr("style"),n&&n.length&&n.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){g(_,e)}static get extendedDefaults(){return _}static get defaults(){return W}static installModule(e){V.prototype.__modules__||(V.prototype.__modules__=[]);const t=V.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>V.installModule(e))),V):(V.installModule(e),V)}}function F(e,t,s,i){const r=a();return e.params.createElements&&Object.keys(i).forEach((a=>{if(!s[a]&&!0===s.auto){let n=e.$el.children(`.${i[a]}`)[0];n||(n=r.createElement("div"),n.className=i[a],e.$el.append(n)),s[a]=n,t[a]=n}})),s}function U(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function K(e){const t=this,{$wrapperEl:s,params:a}=t;if(a.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.append(e[t]);else s.append(e);a.loop&&t.loopCreate(),a.observer||t.update()}function Z(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;s.loop&&t.loopDestroy();let r=i+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&a.prepend(e[t]);r=i+e.length}else a.prepend(e);s.loop&&t.loopCreate(),s.observer||t.update(),t.slideTo(r,0,!1)}function Q(e,t){const s=this,{$wrapperEl:a,params:i,activeIndex:r}=s;let n=r;i.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.slides=a.children(`.${i.slideClass}`));const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides.eq(t);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);o=n>e?n+t.length:n}else a.append(t);for(let e=0;e<d.length;e+=1)a.append(d[e]);i.loop&&s.loopCreate(),i.observer||s.update(),i.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function J(e){const t=this,{params:s,$wrapperEl:a,activeIndex:i}=t;let r=i;s.loop&&(r-=t.loopedSlides,t.loopDestroy(),t.slides=a.children(`.${s.slideClass}`));let n,l=r;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)n=e[s],t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1);l=Math.max(l,0)}else n=e,t.slides[n]&&t.slides.eq(n).remove(),n<l&&(l-=1),l=Math.max(l,0);s.loop&&t.loopCreate(),s.observer||t.update(),s.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function ee(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function te(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.each((e=>{s.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function se(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function ae(e){let{swiper:t,duration:s,transformEl:a,allSlides:i}=e;const{slides:r,activeIndex:n,$wrapperEl:l}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a?r.find(a):r:a?r.eq(n).find(a):r.eq(n),e.transitionEnd((()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t<e.length;t+=1)l.trigger(e[t])}))}}function ie(e,t,s){const a="swiper-slide-shadow"+(s?`-${s}`:""),i=e.transformEl?t.find(e.transformEl):t;let r=i.children(`.${a}`);return r.length||(r=d(`<div class="swiper-slide-shadow${s?`-${s}`:""}"></div>`),i.append(r)),r}Object.keys(j).forEach((e=>{Object.keys(j[e]).forEach((t=>{V.prototype[t]=j[e][t]}))})),V.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,t){void 0===t&&(t={});const s=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(1===e.length)return void i("observerUpdate",e[0]);const t=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(t):l.setTimeout(t,0)}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.push(s)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)o(e[t])}o(t.$el[0],{childList:t.params.observeSlideChildren}),o(t.$wrapperEl[0],{attributes:!1})}})),a("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const re=[function(e){let t,{swiper:s,extendParams:a,on:i,emit:r}=e;function n(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];const i=a.renderSlide?d(a.renderSlide.call(s,e,t)):d(`<div class="${s.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",t),a.cache&&(s.virtual.cache[t]=i),i}function l(e){const{slidesPerView:t,slidesPerGroup:a,centeredSlides:i}=s.params,{addSlidesBefore:l,addSlidesAfter:o}=s.params.virtual,{from:d,to:c,slides:p,slidesGrid:u,offset:h}=s.virtual;s.params.cssMode||s.updateActiveIndex();const m=s.activeIndex||0;let f,g,v;f=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",i?(g=Math.floor(t/2)+a+o,v=Math.floor(t/2)+a+l):(g=t+(a-1)+o,v=a+l);const w=Math.max((m||0)-v,0),b=Math.min((m||0)+g,p.length-1),x=(s.slidesGrid[w]||0)-(s.slidesGrid[0]||0);function y(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),s.lazy&&s.params.lazy.enabled&&s.lazy.load(),r("virtualUpdate")}if(Object.assign(s.virtual,{from:w,to:b,offset:x,slidesGrid:s.slidesGrid}),d===w&&c===b&&!e)return s.slidesGrid!==u&&x!==h&&s.slides.css(f,`${x}px`),s.updateProgress(),void r("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:x,from:w,to:b,slides:function(){const e=[];for(let t=w;t<=b;t+=1)e.push(p[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?y():r("virtualUpdate"));const E=[],C=[];if(e)s.$wrapperEl.find(`.${s.params.slideClass}`).remove();else for(let e=d;e<=c;e+=1)(e<w||e>b)&&s.$wrapperEl.find(`.${s.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t<p.length;t+=1)t>=w&&t<=b&&(void 0===c||e?C.push(t):(t>c&&C.push(t),t<d&&E.push(t)));C.forEach((e=>{s.$wrapperEl.append(n(p[e],e))})),E.sort(((e,t)=>t-e)).forEach((e=>{s.$wrapperEl.prepend(n(p[e],e))})),s.$wrapperEl.children(".swiper-slide").css(f,`${x}px`),y()}a({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},i("beforeInit",(()=>{s.params.virtual.enabled&&(s.virtual.slides=s.params.virtual.slides,s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,s.params.initialSlide||l())})),i("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{l()}),100)):l())})),i("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&v(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.push(e[t]);else s.virtual.slides.push(e);l(!0)},prependSlide:function(e){const t=s.activeIndex;let a=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.unshift(e[t]);a=t+e.length,i=e.length}else s.virtual.slides.unshift(e);if(s.params.virtual.cache){const e=s.virtual.cache,t={};Object.keys(e).forEach((s=>{const a=e[s],r=a.attr("data-swiper-slide-index");r&&a.attr("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}l(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.virtual.slides.splice(e[a],1),s.params.virtual.cache&&delete s.virtual.cache[e[a]],e[a]<t&&(t-=1),t=Math.max(t,0);else s.virtual.slides.splice(e,1),s.params.virtual.cache&&delete s.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);l(!0),s.slideTo(t,0)},removeAllSlides:function(){s.virtual.slides=[],s.params.virtual.cache&&(s.virtual.cache={}),l(!0),s.slideTo(0,0)},update:l})},function(e){let{swiper:t,extendParams:s,on:i,emit:n}=e;const l=a(),o=r();function c(e){if(!t.enabled)return;const{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode,r=t.params.keyboard.pageUpDown,d=r&&33===i,c=r&&34===i,p=37===i,u=39===i,h=38===i,m=40===i;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&m||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&p||t.isVertical()&&h||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||l.activeElement&&l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(d||c||p||u||h||m)){let e=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const a=t.$el,i=a[0].clientWidth,r=a[0].clientHeight,n=o.innerWidth,l=o.innerHeight,d=t.$el.offset();s&&(d.left-=t.$el[0].scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t<c.length;t+=1){const s=c[t];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||h||m)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||m)&&t.slideNext(),(d||h)&&t.slidePrev()),n("keyPress",i)}}function p(){t.keyboard.enabled||(d(l).on("keydown",c),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(d(l).off("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&p()})),i("destroy",(()=>{t.keyboard.enabled&&u()})),Object.assign(t.keyboard,{enable:p,disable:u})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let l;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let o,c=u();const h=[];function m(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function g(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&u()-c<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&u()-c<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),c=(new n.Date).getTime(),!1)))}function v(e){let s=e,a=!0;if(!t.enabled)return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(n=d(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!n[0].contains(s.target)&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let c=0;const m=t.rtlTranslate?-1:1,f=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;c=-f.pixelX*m}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;c=-f.pixelY}else c=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*m:-f.pixelY;if(0===c)return!0;r.invert&&(c=-c);let v=t.getTranslate()+c*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:u(),delta:Math.abs(c),direction:Math.sign(c)},a=o&&e.time<o.time+500&&e.delta<=o.delta&&e.direction===o.direction;if(!a){o=void 0,t.params.loop&&t.loopFix();let n=t.getTranslate()+c*r.sensitivity;const d=t.isBeginning,u=t.isEnd;if(n>=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!d&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(l),l=void 0,h.length>=15&&h.shift();const s=h.length?h[h.length-1]:void 0,a=h[0];if(h.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))h.splice(0);else if(h.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=c>0?.8:.2;o=e,h.splice(0),l=p((()=>{t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}l||(l=p((()=>{o=e,h.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),n===t.minTranslate()||n===t.maxTranslate())return!0}}else{const s={time:u(),delta:Math.abs(c),direction:Math.sign(c),raw:e};h.length>=2&&h.shift();const a=h.length?h[h.length-1]:void 0;if(h.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&g(s):g(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function w(e){let s=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(s=d(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",f),s[e]("wheel",v)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",v),!0):!t.mousewheel.enabled&&(w("on"),t.mousewheel.enabled=!0,!0)}function x(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,v),!0):!!t.mousewheel.enabled&&(w("off"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&x(),t.params.mousewheel.enabled&&b()})),a("destroy",(()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&x()})),Object.assign(t.mousewheel,{enable:b,disable:x})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;function r(e){let s;return e&&(s=d(e),t.params.uniqueNavElements&&"string"==typeof e&&s.length>1&&1===t.$el.find(e).length&&(s=t.$el.find(e))),s}function n(e,s){const a=t.params.navigation;e&&e.length>0&&(e[s?"addClass":"removeClass"](a.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=s),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](a.lockClass))}function l(){if(t.params.loop)return;const{$nextEl:e,$prevEl:s}=t.navigation;n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function p(){const e=t.params.navigation;if(t.params.navigation=F(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const s=r(e.nextEl),a=r(e.prevEl);s&&s.length>0&&s.on("click",c),a&&a.length>0&&a.on("click",o),Object.assign(t.navigation,{$nextEl:s,nextEl:s&&s[0],$prevEl:a,prevEl:a&&a[0]}),t.enabled||(s&&s.addClass(e.lockClass),a&&a.addClass(e.lockClass))}function u(){const{$nextEl:e,$prevEl:s}=t.navigation;e&&e.length&&(e.off("click",c),e.removeClass(t.params.navigation.disabledClass)),s&&s.length&&(s.off("click",o),s.removeClass(t.params.navigation.disabledClass))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},a("init",(()=>{!1===t.params.navigation.enabled?h():(p(),l())})),a("toEdge fromEdge lock unlock",(()=>{l()})),a("destroy",(()=>{u()})),a("enable disable",(()=>{const{$nextEl:e,$prevEl:s}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),s&&s[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),a("click",((e,s)=>{const{$nextEl:a,$prevEl:r}=t.navigation,n=s.target;if(t.params.navigation.hideOnClick&&!d(n).is(r)&&!d(n).is(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;a?e=a.hasClass(t.params.navigation.hiddenClass):r&&(e=r.hasClass(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),a&&a.toggleClass(t.params.navigation.hiddenClass),r&&r.toggleClass(t.params.navigation.hiddenClass)}}));const h=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),u()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),p(),l()},disable:h,update:l,init:p,destroy:u})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function c(e,s){const{bulletActiveClass:a}=t.params.pagination;e[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`)}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;const a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el;let p;const u=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(p=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),p>a-1-2*t.loopedSlides&&(p-=a-2*t.loopedSlides),p>u-1&&(p-=u),p<0&&"bullets"!==t.params.paginationType&&(p=u+p)):p=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const a=t.pagination.bullets;let i,o,u;if(s.dynamicBullets&&(n=a.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(t.isHorizontal()?"width":"height",n*(s.dynamicMainBullets+4)+"px"),s.dynamicMainBullets>1&&void 0!==t.previousIndex&&(l+=p-(t.previousIndex-t.loopedSlides||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),i=Math.max(p-l,0),o=i+(Math.min(a.length,s.dynamicMainBullets)-1),u=(o+i)/2),a.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`)).join(" ")),r.length>1)a.each((e=>{const t=d(e),a=t.index();a===p&&t.addClass(s.bulletActiveClass),s.dynamicBullets&&(a>=i&&a<=o&&t.addClass(`${s.bulletActiveClass}-main`),a===i&&c(t,"prev"),a===o&&c(t,"next"))}));else{const e=a.eq(p),r=e.index();if(e.addClass(s.bulletActiveClass),s.dynamicBullets){const e=a.eq(i),n=a.eq(o);for(let e=i;e<=o;e+=1)a.eq(e).addClass(`${s.bulletActiveClass}-main`);if(t.params.loop)if(r>=a.length){for(let e=s.dynamicMainBullets;e>=0;e-=1)a.eq(a.length-e).addClass(`${s.bulletActiveClass}-main`);a.eq(a.length-s.dynamicMainBullets-1).addClass(`${s.bulletActiveClass}-prev`)}else c(e,"prev"),c(n,"next");else c(e,"prev"),c(n,"next")}}if(s.dynamicBullets){const i=Math.min(a.length,s.dynamicMainBullets+4),r=(n*i-n)/2-u*n,l=e?"right":"left";a.css(t.isHorizontal()?l:"top",`${r}px`)}}if("fraction"===s.type&&(r.find(U(s.currentClass)).text(s.formatFractionCurrent(p+1)),r.find(U(s.totalClass)).text(s.formatFractionTotal(u))),"progressbar"===s.type){let e;e=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(p+1)/u;let i=1,n=1;"horizontal"===e?i=a:n=a,r.find(U(s.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${n})`).transition(t.params.speed)}"custom"===s.type&&s.renderCustom?(r.html(s.renderCustom(t,p+1,u)),i("paginationRender",r[0])):i("paginationUpdate",r[0]),t.params.watchOverflow&&t.enabled&&r[t.isLocked?"addClass":"removeClass"](s.lockClass)}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,a=t.pagination.$el;let r="";if("bullets"===e.type){let i=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&i>s&&(i=s);for(let s=0;s<i;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;a.html(r),t.pagination.bullets=a.find(U(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,a.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,a.html(r)),"custom"!==e.type&&i("paginationRender",t.pagination.$el[0])}function h(){t.params.pagination=F(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s=d(e.el);0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&s.length>1&&(s=t.$el.find(e.el),s.length>1&&(s=s.filter((e=>d(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&s.addClass(e.clickableClass),s.addClass(e.modifierClass+e.type),s.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.addClass(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.addClass(e.progressbarOppositeClass),e.clickable&&s.on("click",U(e.bulletClass),(function(e){e.preventDefault();let s=d(this).index()*t.params.slidesPerGroup;t.params.loop&&(s+=t.loopedSlides),t.slideTo(s)})),Object.assign(t.pagination,{$el:s,el:s[0]}),t.enabled||s.addClass(e.lockClass))}function m(){const e=t.params.pagination;if(o())return;const s=t.pagination.$el;s.removeClass(e.hiddenClass),s.removeClass(e.modifierClass+e.type),s.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&s.off("click",U(e.bulletClass))}a("init",(()=>{!1===t.params.pagination.enabled?f():(h(),u(),p())})),a("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&p()})),a("snapIndexChange",(()=>{t.params.loop||p()})),a("slidesLengthChange",(()=>{t.params.loop&&(u(),p())})),a("snapGridLengthChange",(()=>{t.params.loop||(u(),p())})),a("destroy",(()=>{m()})),a("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),a("lock unlock",(()=>{p()})),a("click",((e,s)=>{const a=s.target,{$el:r}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!d(a).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r.hasClass(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.toggleClass(t.params.pagination.hiddenClass)}}));const f=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),m()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),h(),u(),p()},disable:f,render:u,update:p,init:h,destroy:m})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const n=a();let l,o,c,u,h=!1,m=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s,progress:a}=t,{$dragEl:i,$el:r}=e,n=t.params.scrollbar;let l=o,d=(c-o)*a;s?(d=-d,d>0?(l=o-d,d=0):-d+o>c&&(l=c+d)):d<0?(l=o+d,d=0):d+o>c&&(l=c-d),t.isHorizontal()?(i.transform(`translate3d(${d}px, 0, 0)`),i[0].style.width=`${l}px`):(i.transform(`translate3d(0px, ${d}px, 0)`),i[0].style.height=`${l}px`),n.hide&&(clearTimeout(m),r[0].style.opacity=1,m=setTimeout((()=>{r[0].style.opacity=0,r.transition(400)}),1e3))}function v(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:s,$el:a}=e;s[0].style.width="",s[0].style.height="",c=t.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),o="auto"===t.params.scrollbar.dragSize?c*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s[0].style.width=`${o}px`:s[0].style.height=`${o}px`,a[0].style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function w(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function b(e){const{scrollbar:s,rtlTranslate:a}=t,{$el:i}=s;let r;r=(w(e)-i.offset()[t.isHorizontal()?"left":"top"]-(null!==l?l:o/2))/(c-o),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:n,$dragEl:o}=a;h=!0,l=e.target===o[0]||e.target===o?w(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),o.transition(100),b(e),clearTimeout(f),n.transition(0),s.hide&&n.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),r("scrollbarDragStart",e)}function y(e){const{scrollbar:s,$wrapperEl:a}=t,{$el:i,$dragEl:n}=s;h&&(e.preventDefault?e.preventDefault():e.returnValue=!1,b(e),a.transition(0),i.transition(0),n.transition(0),r("scrollbarDragMove",e))}function E(e){const s=t.params.scrollbar,{scrollbar:a,$wrapperEl:i}=t,{$el:n}=a;h&&(h=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),i.transition("")),s.hide&&(clearTimeout(f),f=p((()=>{n.css("opacity",0),n.transition(400)}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:s,touchEventsTouch:a,touchEventsDesktop:i,params:r,support:l}=t,o=s.$el;if(!o)return;const d=o[0],c=!(!l.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},p=!(!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};if(!d)return;const u="on"===e?"addEventListener":"removeEventListener";l.touch?(d[u](a.start,x,c),d[u](a.move,y,c),d[u](a.end,E,p)):(d[u](i.start,x,c),n[u](i.move,y,c),n[u](i.end,E,p))}function T(){const{scrollbar:e,$el:s}=t;t.params.scrollbar=F(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i=d(a.el);t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.find(a.el).length&&(i=s.find(a.el)),i.addClass(t.isHorizontal()?a.horizontalClass:a.verticalClass);let r=i.find(`.${t.params.scrollbar.dragClass}`);0===r.length&&(r=d(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(r)),Object.assign(e,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),i&&i[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function $(){const e=t.params.scrollbar,s=t.scrollbar.$el;s&&s.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},i("init",(()=>{!1===t.params.scrollbar.enabled?S():(T(),v(),g())})),i("update resize observerUpdate lock unlock",(()=>{v()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(s)})),i("enable disable",(()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)})),i("destroy",(()=>{$()}));const S=()=>{t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),$()};Object.assign(t.scrollbar,{enable:()=>{t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),T(),v(),g()},disable:S,updateSize:v,setTranslate:g,init:T,destroy:$})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i=(e,s)=>{const{rtl:a}=t,i=d(e),r=a?-1:1,n=i.attr("data-swiper-parallax")||"0";let l=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y");const c=i.attr("data-swiper-parallax-scale"),p=i.attr("data-swiper-parallax-opacity");if(l||o?(l=l||"0",o=o||"0"):t.isHorizontal()?(l=n,o="0"):(o=n,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*s*r+"%":l*s*r+"px",o=o.indexOf("%")>=0?parseInt(o,10)*s+"%":o*s+"px",null!=p){const e=p-(p-1)*(1-Math.abs(s));i[0].style.opacity=e}if(null==c)i.transform(`translate3d(${l}, ${o}, 0px)`);else{const e=c-(c-1)*(1-Math.abs(s));i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`)}},r=()=>{const{$el:e,slides:s,progress:a,snapGrid:r}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{i(e,a)})),s.each(((e,s)=>{let n=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(n+=Math.ceil(s/2)-a*(r.length-1)),n=Math.min(Math.max(n,-1),1),d(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{i(e,n)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&r()})),a("setTranslate",(()=>{t.params.parallax.enabled&&r()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{$el:s}=t;s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{const s=d(t);let a=parseInt(s.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),s.transition(a)}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l,o,c,p=1,u=!1;const m={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v=1;function w(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,s=e.targetTouches[0].pageY,a=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt((a-t)**2+(i-s)**2)}function b(e){const s=t.support,a=t.params.zoom;if(o=!1,c=!1,!s.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;o=!0,m.scaleStart=w(e)}m.$slideEl&&m.$slideEl.length||(m.$slideEl=d(e.target).closest(`.${t.params.slideClass}`),0===m.$slideEl.length&&(m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${a.containerClass}`),m.maxRatio=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==m.$imageWrapEl.length)?(m.$imageEl&&m.$imageEl.transition(0),u=!0):m.$imageEl=void 0}function x(e){const s=t.support,a=t.params.zoom,i=t.zoom;if(!s.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;c=!0,m.scaleMove=w(e)}m.$imageEl&&0!==m.$imageEl.length?(s.gestures?i.scale=e.scale*p:i.scale=m.scaleMove/m.scaleStart*p,i.scale>m.maxRatio&&(i.scale=m.maxRatio-1+(i.scale-m.maxRatio+1)**.5),i.scale<a.minRatio&&(i.scale=a.minRatio+1-(a.minRatio-i.scale+1)**.5),m.$imageEl.transform(`translate3d(0,0,0) scale(${i.scale})`)):"gesturechange"===e.type&&b(e)}function y(e){const s=t.device,a=t.support,i=t.params.zoom,r=t.zoom;if(!a.gestures){if(!o||!c)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!s.android)return;o=!1,c=!1}m.$imageEl&&0!==m.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,m.maxRatio),i.minRatio),m.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`),p=r.scale,u=!1,1===r.scale&&(m.$slideEl=void 0))}function E(e){const s=t.zoom;if(!m.$imageEl||0===m.$imageEl.length)return;if(t.allowClick=!1,!f.isTouched||!m.$slideEl)return;f.isMoved||(f.width=m.$imageEl[0].offsetWidth,f.height=m.$imageEl[0].offsetHeight,f.startX=h(m.$imageWrapEl[0],"x")||0,f.startY=h(m.$imageWrapEl[0],"y")||0,m.slideWidth=m.$slideEl[0].offsetWidth,m.slideHeight=m.$slideEl[0].offsetHeight,m.$imageWrapEl.transition(0));const a=f.width*s.scale,i=f.height*s.scale;if(!(a<m.slideWidth&&i<m.slideHeight)){if(f.minX=Math.min(m.slideWidth/2-a/2,0),f.maxX=-f.minX,f.minY=Math.min(m.slideHeight/2-i/2,0),f.maxY=-f.minY,f.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,f.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!f.isMoved&&!u){if(t.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return void(f.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return void(f.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),f.isMoved=!0,f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX,f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY,f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=f.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=f.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(f.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(f.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(f.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(f.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=f.touchesCurrent.x,g.prevPositionY=f.touchesCurrent.y,g.prevTime=Date.now(),m.$imageWrapEl.transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}}function C(){const e=t.zoom;m.$slideEl&&t.previousIndex!==t.activeIndex&&(m.$imageEl&&m.$imageEl.transform("translate3d(0,0,0) scale(1)"),m.$imageWrapEl&&m.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,p=1,m.$slideEl=void 0,m.$imageEl=void 0,m.$imageWrapEl=void 0)}function T(e){const s=t.zoom,a=t.params.zoom;if(m.$slideEl||(e&&e.target&&(m.$slideEl=d(e.target).closest(`.${t.params.slideClass}`)),m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${a.containerClass}`)),!m.$imageEl||0===m.$imageEl.length||!m.$imageWrapEl||0===m.$imageWrapEl.length)return;let i,r,l,o,c,u,h,g,v,w,b,x,y,E,C,T,$,S;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),m.$slideEl.addClass(`${a.zoomedSlideClass}`),void 0===f.touchesStart.x&&e?(i="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,r="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(i=f.touchesStart.x,r=f.touchesStart.y),s.scale=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,p=m.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,e?($=m.$slideEl[0].offsetWidth,S=m.$slideEl[0].offsetHeight,l=m.$slideEl.offset().left+n.scrollX,o=m.$slideEl.offset().top+n.scrollY,c=l+$/2-i,u=o+S/2-r,v=m.$imageEl[0].offsetWidth,w=m.$imageEl[0].offsetHeight,b=v*s.scale,x=w*s.scale,y=Math.min($/2-b/2,0),E=Math.min(S/2-x/2,0),C=-y,T=-E,h=c*s.scale,g=u*s.scale,h<y&&(h=y),h>C&&(h=C),g<E&&(g=E),g>T&&(g=T)):(h=0,g=0),m.$imageWrapEl.transition(300).transform(`translate3d(${h}px, ${g}px,0)`),m.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`)}function $(){const e=t.zoom,s=t.params.zoom;m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex),m.$imageEl=m.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${s.containerClass}`)),m.$imageEl&&0!==m.$imageEl.length&&m.$imageWrapEl&&0!==m.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,p=1,m.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),m.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),m.$slideEl.removeClass(`${s.zoomedSlideClass}`),m.$slideEl=void 0)}function S(e){const s=t.zoom;s.scale&&1!==s.scale?$():T(e)}function M(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function P(){return`.${t.params.slideClass}`}function k(e){const{passiveListener:s}=M(),a=P();t.$wrapperEl[e]("gesturestart",a,b,s),t.$wrapperEl[e]("gesturechange",a,x,s),t.$wrapperEl[e]("gestureend",a,y,s)}function z(){l||(l=!0,k("on"))}function L(){l&&(l=!1,k("off"))}function O(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const s=t.support,{passiveListener:a,activeListenerWithCapture:i}=M(),r=P();s.gestures?(t.$wrapperEl.on(t.touchEvents.start,z,a),t.$wrapperEl.on(t.touchEvents.end,L,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,r,b,a),t.$wrapperEl.on(t.touchEvents.move,r,x,i),t.$wrapperEl.on(t.touchEvents.end,r,y,a),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,r,y,a)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,E,i)}function I(){const e=t.zoom;if(!e.enabled)return;const s=t.support;e.enabled=!1;const{passiveListener:a,activeListenerWithCapture:i}=M(),r=P();s.gestures?(t.$wrapperEl.off(t.touchEvents.start,z,a),t.$wrapperEl.off(t.touchEvents.end,L,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,r,b,a),t.$wrapperEl.off(t.touchEvents.move,r,x,i),t.$wrapperEl.off(t.touchEvents.end,r,y,a),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,r,y,a)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,E,i)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(e){if(v!==e){const t=m.$imageEl?m.$imageEl[0]:void 0,s=m.$slideEl?m.$slideEl[0]:void 0;i("zoomChange",e,t,s)}v=e}}),a("init",(()=>{t.params.zoom.enabled&&O()})),a("destroy",(()=>{I()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;m.$imageEl&&0!==m.$imageEl.length&&(f.isTouched||(s.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0,f.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,f.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!m.$imageEl||0===m.$imageEl.length)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let s=300,a=300;const i=g.x*s,r=f.currentX+i,n=g.y*a,l=f.currentY+n;0!==g.x&&(s=Math.abs((r-f.currentX)/g.x)),0!==g.y&&(a=Math.abs((l-f.currentY)/g.y));const o=Math.max(s,a);f.currentX=r,f.currentY=l;const d=f.width*e.scale,c=f.height*e.scale;f.minX=Math.min(m.slideWidth/2-d/2,0),f.maxX=-f.minX,f.minY=Math.min(m.slideHeight/2-c/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),m.$imageWrapEl.transition(o).transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&S(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&C()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&C()})),Object.assign(t.zoom,{enable:O,disable:I,in:T,out:$,toggle:S})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;s({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let n=!1,l=!1;function o(e,s){void 0===s&&(s=!0);const a=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const r=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),n=r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||n.push(r[0]),0!==n.length&&n.each((e=>{const n=d(e);n.addClass(a.loadingClass);const l=n.attr("data-background"),c=n.attr("data-src"),p=n.attr("data-srcset"),u=n.attr("data-sizes"),h=n.parent("picture");t.loadImage(n[0],c||l,p,u,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(n.css("background-image",`url("${l}")`),n.removeAttr("data-background")):(p&&(n.attr("srcset",p),n.removeAttr("data-srcset")),u&&(n.attr("sizes",u),n.removeAttr("data-sizes")),h.length&&h.children("source").each((e=>{const t=d(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),c&&(n.attr("src",c),n.removeAttr("data-src"))),n.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(`.${a.preloaderClass}`).remove(),t.params.loop&&s){const e=r.attr("data-swiper-slide-index");if(r.hasClass(t.params.slideDuplicateClass)){o(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1)}else{o(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}}i("lazyImageReady",r[0],n[0]),t.params.autoHeight&&t.updateAutoHeight()}})),i("lazyImageLoad",r[0],n[0])}))}function c(){const{$wrapperEl:e,params:s,slides:a,activeIndex:i}=t,r=t.virtual&&s.virtual.enabled,n=s.lazy;let c=s.slidesPerView;function p(t){if(r){if(e.children(`.${s.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(a[t])return!0;return!1}function u(e){return r?d(e).attr("data-swiper-slide-index"):d(e).index()}if("auto"===c&&(c=0),l||(l=!0),t.params.watchSlidesProgress)e.children(`.${s.slideVisibleClass}`).each((e=>{o(r?d(e).attr("data-swiper-slide-index"):d(e).index())}));else if(c>1)for(let e=i;e<i+c;e+=1)p(e)&&o(e);else o(i);if(n.loadPrevNext)if(c>1||n.loadPrevNextAmount&&n.loadPrevNextAmount>1){const e=n.loadPrevNextAmount,t=Math.ceil(c),s=Math.min(i+t+Math.max(e,t),a.length),r=Math.max(i-Math.max(t,e),0);for(let e=i+t;e<s;e+=1)p(e)&&o(e);for(let e=r;e<i;e+=1)p(e)&&o(e)}else{const t=e.children(`.${s.slideNextClass}`);t.length>0&&o(u(t));const a=e.children(`.${s.slidePrevClass}`);a.length>0&&o(u(a))}}function p(){const e=r();if(!t||t.destroyed)return;const s=t.params.lazy.scrollingElement?d(t.params.lazy.scrollingElement):d(e),a=s[0]===e,i=a?e.innerWidth:s[0].offsetWidth,l=a?e.innerHeight:s[0].offsetHeight,o=t.$el.offset(),{rtlTranslate:u}=t;let h=!1;u&&(o.left-=t.$el[0].scrollLeft);const m=[[o.left,o.top],[o.left+t.width,o.top],[o.left,o.top+t.height],[o.left+t.width,o.top+t.height]];for(let e=0;e<m.length;e+=1){const t=m[e];if(t[0]>=0&&t[0]<=i&&t[1]>=0&&t[1]<=l){if(0===t[0]&&0===t[1])continue;h=!0}}const f=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};h?(c(),s.off("scroll",p,f)):n||(n=!0,s.on("scroll",p,f))}a("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),a("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?p():c())})),a("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&c()})),a("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?p():c())})),a("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!l)&&(t.params.lazy.checkInView?p():c())})),a("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?p():c())})),a("slideChange",(()=>{const{lazy:e,cssMode:s,watchSlidesProgress:a,touchReleaseOnEdges:i,resistanceRatio:r}=t.params;e.enabled&&(s||a&&(i||0===r))&&c()})),a("destroy",(()=>{t.$el&&t.$el.find(`.${t.params.lazy.loadingClass}`).removeClass(t.params.lazy.loadingClass)})),Object.assign(t.lazy,{load:c,loadInSlide:o})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline||(t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid))}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==s&&a[e]instanceof l&&o(a[e]);else a instanceof l&&s!==a&&o(a)},setTransition:function(e,s){const a=t.constructor,i=t.controller.control;let r;function n(s){s.setTransition(e,t),0!==e&&(s.transitionStart(),s.params.autoHeight&&p((()=>{s.updateAutoHeight()})),s.$wrapperEl.transitionEnd((()=>{i&&(s.params.loop&&"slide"===t.params.controller.by&&s.loopFix(),s.transitionEnd())})))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let i=null;function r(e){const t=i;0!==t.length&&(t.html(""),t.html(e))}function n(e){e.attr("tabIndex","0")}function l(e){e.attr("tabIndex","-1")}function o(e,t){e.attr("role",t)}function c(e,t){e.attr("aria-roledescription",t)}function p(e,t){e.attr("aria-label",t)}function u(e){e.attr("aria-disabled",!0)}function h(e){e.attr("aria-disabled",!1)}function m(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=d(e.target);t.navigation&&t.navigation.$nextEl&&a.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?r(s.lastSlideMessage):r(s.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&a.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?r(s.firstSlideMessage):r(s.prevSlideMessage)),t.pagination&&a.is(U(t.params.pagination.bulletClass))&&a[0].click()}function f(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return f()&&t.params.pagination.clickable}const v=(e,t,s)=>{n(e),"BUTTON"!==e[0].tagName&&(o(e,"button"),e.on("keydown",m)),p(e,s),function(e,t){e.attr("aria-controls",t)}(e,t)},w=()=>{t.a11y.clicked=!0},b=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},x=e=>{if(t.a11y.clicked)return;const s=e.target.closest(`.${t.params.slideClass}`);if(!s||!t.slides.includes(s))return;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(s),0))},y=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&c(d(t.slides),e.itemRoleDescriptionMessage),e.slideRole&&o(d(t.slides),e.slideRole);const s=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;e.slideLabelMessage&&t.slides.each(((a,i)=>{const r=d(a),n=t.params.loop?parseInt(r.attr("data-swiper-slide-index"),10):i;p(r,e.slideLabelMessage.replace(/\{\{index\}\}/,n+1).replace(/\{\{slidesLength\}\}/,s))}))},E=()=>{const e=t.params.a11y;t.$el.append(i);const s=t.$el;e.containerRoleDescriptionMessage&&c(s,e.containerRoleDescriptionMessage),e.containerMessage&&p(s,e.containerMessage);const a=t.$wrapperEl,r=e.id||a.attr("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var o;let d,u;o=r,a.attr("id",o),function(e,t){e.attr("aria-live",t)}(a,l),y(),t.navigation&&t.navigation.$nextEl&&(d=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(u=t.navigation.$prevEl),d&&d.length&&v(d,r,e.nextSlideMessage),u&&u.length&&v(u,r,e.prevSlideMessage),g()&&t.pagination.$el.on("keydown",U(t.params.pagination.bulletClass),m),t.$el.on("focus",x,!0),t.$el.on("pointerdown",w,!0),t.$el.on("pointerup",b,!0)};a("beforeInit",(()=>{i=d(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),a("afterInit",(()=>{t.params.a11y.enabled&&E()})),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&y()})),a("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:s}=t.navigation;s&&s.length>0&&(t.isBeginning?(u(s),l(s)):(h(s),n(s))),e&&e.length>0&&(t.isEnd?(u(e),l(e)):(h(e),n(e)))}()})),a("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;f()&&t.pagination.bullets.each((s=>{const a=d(s);t.params.pagination.clickable&&(n(a),t.params.pagination.renderBullet||(o(a,"button"),p(a,e.paginationBulletMessage.replace(/\{\{index\}\}/,a.index()+1)))),a.is(`.${t.params.pagination.bulletActiveClass}`)?a.attr("aria-current","true"):a.removeAttr("aria-current")}))}()})),a("destroy",(()=>{t.params.a11y.enabled&&function(){let e,s;i&&i.length>0&&i.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(s=t.navigation.$prevEl),e&&e.off("keydown",m),s&&s.off("keydown",m),g()&&t.pagination.$el.off("keydown",U(t.params.pagination.bulletClass),m),t.$el.off("focus",x,!0),t.$el.off("pointerdown",w,!0),t.$el.off("pointerup",b,!0)}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.slides.eq(s);let d=l(o.attr("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e}/${d}`}else n.pathname.includes(e)||(d=`${e}/${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides.eq(i);if(l(r.attr("data-history"))===s&&!r.hasClass(t.params.slideDuplicateClass)){const s=r.index();t.slideTo(s,e,a)}}else t.slideTo(0,e,a)},p=()=>{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),(n.key||n.value)&&(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p))}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),c=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const p=()=>{i("hashChange");const e=o.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const s=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===s)return;t.slideTo(s)}},u=()=>{if(l&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState)c.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),i("hashSet");else{const e=t.slides.eq(t.activeIndex),s=e.attr("data-hash")||e.attr("data-history");o.location.hash=s||"",i("hashSet")}};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0;for(let a=0,i=t.slides.length;a<i;a+=1){const i=t.slides.eq(a);if((i.attr("data-hash")||i.attr("data-history"))===e&&!i.hasClass(t.params.slideDuplicateClass)){const e=i.index();t.slideTo(e,s,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&d(c).on("hashchange",p)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d(c).off("hashchange",p)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&u()})),n("slideChange",(()=>{l&&t.params.cssMode&&u()}))},function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;function l(){if(!s.size)return s.autoplay.running=!1,void(s.autoplay.paused=!1);const e=s.slides.eq(s.activeIndex);let a=s.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(a=e.attr("data-swiper-autoplay")||s.params.autoplay.delay),clearTimeout(t),t=p((()=>{let e;s.params.autoplay.reverseDirection?s.params.loop?(s.loopFix(),e=s.slidePrev(s.params.speed,!0,!0),n("autoplay")):s.isBeginning?s.params.autoplay.stopOnLastSlide?d():(e=s.slideTo(s.slides.length-1,s.params.speed,!0,!0),n("autoplay")):(e=s.slidePrev(s.params.speed,!0,!0),n("autoplay")):s.params.loop?(s.loopFix(),e=s.slideNext(s.params.speed,!0,!0),n("autoplay")):s.isEnd?s.params.autoplay.stopOnLastSlide?d():(e=s.slideTo(0,s.params.speed,!0,!0),n("autoplay")):(e=s.slideNext(s.params.speed,!0,!0),n("autoplay")),(s.params.cssMode&&s.autoplay.running||!1===e)&&l()}),a)}function o(){return void 0===t&&(!s.autoplay.running&&(s.autoplay.running=!0,n("autoplayStart"),l(),!0))}function d(){return!!s.autoplay.running&&(void 0!==t&&(t&&(clearTimeout(t),t=void 0),s.autoplay.running=!1,n("autoplayStop"),!0))}function c(e){s.autoplay.running&&(s.autoplay.paused||(t&&clearTimeout(t),s.autoplay.paused=!0,0!==e&&s.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].addEventListener(e,h)})):(s.autoplay.paused=!1,l())))}function u(){const e=a();"hidden"===e.visibilityState&&s.autoplay.running&&c(),"visible"===e.visibilityState&&s.autoplay.paused&&(l(),s.autoplay.paused=!1)}function h(e){s&&!s.destroyed&&s.$wrapperEl&&e.target===s.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].removeEventListener(e,h)})),s.autoplay.paused=!1,s.autoplay.running?l():d())}function m(){s.params.autoplay.disableOnInteraction?d():(n("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach((e=>{s.$wrapperEl[0].removeEventListener(e,h)}))}function f(){s.params.autoplay.disableOnInteraction||(s.autoplay.paused=!1,n("autoplayResume"),l())}s.autoplay={running:!1,paused:!1},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),r("init",(()=>{if(s.params.autoplay.enabled){o();a().addEventListener("visibilitychange",u),s.params.autoplay.pauseOnMouseEnter&&(s.$el.on("mouseenter",m),s.$el.on("mouseleave",f))}})),r("beforeTransitionStart",((e,t,a)=>{s.autoplay.running&&(a||!s.params.autoplay.disableOnInteraction?s.autoplay.pause(t):d())})),r("sliderFirstMove",(()=>{s.autoplay.running&&(s.params.autoplay.disableOnInteraction?d():c())})),r("touchEnd",(()=>{s.params.cssMode&&s.autoplay.paused&&!s.params.autoplay.disableOnInteraction&&l()})),r("destroy",(()=>{s.$el.off("mouseenter",m),s.$el.off("mouseleave",f),s.autoplay.running&&d();a().removeEventListener("visibilitychange",u)})),Object.assign(s.autoplay,{pause:c,run:l,start:o,stop:d})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,r=!1;function n(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&d(a).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;if(i=e.params.loop?parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"),10):s,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const s=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),a=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===s?a:void 0===a?s:a-e<e-s?a:s}t.slideTo(i)}function l(){const{thumbs:e}=t.params;if(i)return!1;i=!0;const s=t.constructor;if(e.swiper instanceof s)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(m(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),r=!0}return t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",n),!0}function o(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.removeClass(r),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<i;e+=1)s.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+e}"]`).addClass(r);else for(let e=0;e<i;e+=1)s.slides.eq(t.realIndex+e).addClass(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){let i,r,o=s.activeIndex;if(s.params.loop){s.slides.eq(o).hasClass(s.params.slideDuplicateClass)&&(s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft,o=s.activeIndex);const e=s.slides.eq(o).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),a=s.slides.eq(o).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();i=void 0===e?a:void 0===a?e:a-o==o-e?s.params.slidesPerGroup>1?a:o:a-o<o-e?a:e,r=t.activeIndex>t.previousIndex?"next":"prev"}else i=t.realIndex,r=i>t.previousIndex?"next":"prev";l&&(i+="next"===r?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(i)<0&&(s.params.centeredSlides?i=i>o?i-Math.floor(a/2)+1:i+Math.floor(a/2)-1:i>o&&s.params.slidesPerGroup,s.slideTo(i,e?0:void 0))}}t.thumbs={swiper:null},a("beforeInit",(()=>{const{thumbs:e}=t.params;e&&e.swiper&&(l(),o(!0))})),a("slideChange update resize observerUpdate",(()=>{o()})),a("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),a("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&r&&e.destroy()})),Object.assign(t.thumbs,{init:l,update:o})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:u()})},onTouchEnd:function(e){let{currentPos:s}=e;const{params:r,$wrapperEl:n,rtlTranslate:l,snapGrid:o,touchEventsData:d}=t,c=u()-d.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length<o.length?t.slideTo(o.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(d.velocities.length>1){const e=d.velocities.pop(),s=d.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(i>150||u()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,d.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let c=t.translate+s;l&&(c=-c);let p,h=!1;const m=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(c<t.maxTranslate())r.freeMode.momentumBounce?(c+t.maxTranslate()<-m&&(c=t.maxTranslate()-m),p=t.maxTranslate(),h=!0,d.allowMomentumBounce=!0):c=t.maxTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(c>t.minTranslate())r.freeMode.momentumBounce?(c-t.minTranslate()>m&&(c=t.minTranslate()+m),p=t.minTranslate(),h=!0,d.allowMomentumBounce=!0):c=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<o.length;t+=1)if(o[t]>-c){e=t;break}c=Math.abs(o[e]-c)<Math.abs(o[e-1]-c)||"next"===t.swipeDirection?o[e]:o[e-1],c=-c}if(f&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-c:c)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s<a?r.speed:s<2*a?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&h?(t.updateProgress(p),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating=!0,n.transitionEnd((()=>{t&&!t.destroyed&&d.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(p),n.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,n.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||c>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,{swiper:i,extendParams:r}=e;r({grid:{rows:1,fill:"column"}}),i.grid={initSlides:e=>{const{slidesPerView:r}=i.params,{rows:n,fill:l}=i.params.grid;s=t/n,a=Math.floor(e/n),t=Math.floor(e/n)===e/n?e:Math.ceil(e/n)*n,"auto"!==r&&"row"===l&&(t=Math.max(t,r*n))},updateSlide:(e,r,n,l)=>{const{slidesPerGroup:o,spaceBetween:d}=i.params,{rows:c,fill:p}=i.params.grid;let u,h,m;if("row"===p&&o>1){const s=Math.floor(e/(o*c)),a=e-c*o*s,i=0===s?o:Math.min(Math.ceil((n-s*c*o)/c),o);m=Math.floor(a/i),h=a-m*i+s*o,u=h+m*t/c,r.css({"-webkit-order":u,order:u})}else"column"===p?(h=Math.floor(e/c),m=e-h*c,(h>a||h===a&&m===c-1)&&(m+=1,m>=c&&(m=0,h+=1))):(m=Math.floor(e/s),h=e-m*s);r.css(l("margin-top"),0!==m?d&&`${d}px`:"")},updateWrapperSize:(e,s,a)=>{const{spaceBetween:r,centeredSlides:n,roundLengths:l}=i.params,{rows:o}=i.params.grid;if(i.virtualSize=(e+r)*t,i.virtualSize=Math.ceil(i.virtualSize/o)-r,i.$wrapperEl.css({[a("width")]:`${i.virtualSize+r}px`}),n){s.splice(0,s.length);const e=[];for(let t=0;t<s.length;t+=1){let a=s[t];l&&(a=Math.floor(a)),s[t]<i.virtualSize+s[0]&&e.push(a)}s.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:K.bind(t),prependSlide:Z.bind(t),addSlide:Q.bind(t),removeSlide:J.bind(t),removeAllSlides:ee.bind(t)})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({fadeEffect:{crossFade:!1,transformEl:null}}),te({effect:"fade",swiper:t,on:a,setTranslate:()=>{const{slides:e}=t,s=t.params.fadeEffect;for(let a=0;a<e.length;a+=1){const e=t.slides.eq(a);let i=-e[0].swiperSlideOffset;t.params.virtualTranslate||(i-=t.translate);let r=0;t.isHorizontal()||(r=i,i=0);const n=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);se(s,e).css({opacity:n}).transform(`translate3d(${i}px, ${r}px, 0px)`)}},setTransition:e=>{const{transformEl:s}=t.params.fadeEffect;(s?t.slides.find(s):t.slides).transition(e),ae({swiper:t,duration:e,transformEl:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=s?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===a.length&&(a=d(`<div class="swiper-slide-shadow-${s?"left":"top"}"></div>`),e.append(a)),0===i.length&&(i=d(`<div class="swiper-slide-shadow-${s?"right":"bottom"}"></div>`),e.append(i)),a.length&&(a[0].style.opacity=Math.max(-t,0)),i.length&&(i[0].style.opacity=Math.max(t,0))};te({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{$el:e,$wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:c}=t,p=t.params.cubeEffect,u=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let m,f=0;p.shadow&&(u?(m=s.find(".swiper-cube-shadow"),0===m.length&&(m=d('<div class="swiper-cube-shadow"></div>'),s.append(m)),m.css({height:`${r}px`})):(m=e.find(".swiper-cube-shadow"),0===m.length&&(m=d('<div class="swiper-cube-shadow"></div>'),e.append(m))));for(let e=0;e<a.length;e+=1){const t=a.eq(e);let s=e;h&&(s=parseInt(t.attr("data-swiper-slide-index"),10));let r=90*s,n=Math.floor(r/360);l&&(r=-r,n=Math.floor(-r/360));const d=Math.max(Math.min(t[0].progress,1),-1);let c=0,m=0,g=0;s%4==0?(c=4*-n*o,g=0):(s-1)%4==0?(c=0,g=4*-n*o):(s-2)%4==0?(c=o+4*n*o,g=o):(s-3)%4==0&&(c=-o,g=3*o+4*o*n),l&&(c=-c),u||(m=c,c=0);const v=`rotateX(${u?0:-r}deg) rotateY(${u?r:0}deg) translate3d(${c}px, ${m}px, ${g}px)`;d<=1&&d>-1&&(f=90*s+90*d,l&&(f=90*-s-90*d)),t.transform(v),p.slideShadows&&i(t,d,u)}if(s.css({"-webkit-transform-origin":`50% 50% -${o/2}px`,"transform-origin":`50% 50% -${o/2}px`}),p.shadow)if(u)m.transform(`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`);else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=p.shadowScale,a=p.shadowScale/t,i=p.shadowOffset;m.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-90deg)`)}const g=c.isSafari||c.isWebView?-o/2:0;s.transform(`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:f}deg) rotateY(${t.isHorizontal()?-f:0}deg)`),s[0].style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{$el:s,slides:a}=t;a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&s.find(".swiper-cube-shadow").transition(e)},recreateShadows:()=>{const e=t.isHorizontal();t.slides.each((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(d(t),s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const i=(e,s,a)=>{let i=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),r=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===i.length&&(i=ie(a,e,t.isHorizontal()?"left":"top")),0===r.length&&(r=ie(a,e,t.isHorizontal()?"right":"bottom")),i.length&&(i[0].style.opacity=Math.max(-s,0)),r.length&&(r[0].style.opacity=Math.max(s,0))};te({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect;for(let r=0;r<e.length;r+=1){const n=e.eq(r);let l=n[0].progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(n[0].progress,1),-1));const o=n[0].swiperSlideOffset;let d=-180*l,c=0,p=t.params.cssMode?-o-t.translate:-o,u=0;t.isHorizontal()?s&&(d=-d):(u=p,p=0,c=-d,d=0),n[0].style.zIndex=-Math.abs(Math.round(l))+e.length,a.slideShadows&&i(n,l,a);const h=`translate3d(${p}px, ${u}px, 0px) rotateX(${c}deg) rotateY(${d}deg)`;se(a,n).transform(h)}},setTransition:e=>{const{transformEl:s}=t.params.flipEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),ae({swiper:t,duration:e,transformEl:s})},recreateShadows:()=>{const e=t.params.flipEffect;t.slides.each((s=>{const a=d(s);let r=a[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(s.progress,1),-1)),i(a,r,e)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),te({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,t=a.length;e<t;e+=1){const t=a.eq(e),s=i[e],l=(o-t[0].swiperSlideOffset-s/2)/s,p="function"==typeof r.modifier?r.modifier(l):l*r.modifier;let u=n?d*p:0,h=n?0:d*p,m=-c*Math.abs(p),f=r.stretch;"string"==typeof f&&-1!==f.indexOf("%")&&(f=parseFloat(r.stretch)/100*s);let g=n?0:f*p,v=n?f*p:0,w=1-(1-r.scale)*Math.abs(p);Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(h)<.001&&(h=0),Math.abs(w)<.001&&(w=0);const b=`translate3d(${v}px,${g}px,${m}px)  rotateX(${h}deg) rotateY(${u}deg) scale(${w})`;if(se(r,t).transform(b),t[0].style.zIndex=1-Math.abs(Math.round(p)),r.slideShadows){let e=n?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),s=n?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=ie(r,t,n?"left":"top")),0===s.length&&(s=ie(r,t,n?"right":"bottom")),e.length&&(e[0].style.opacity=p>0?p:0),s.length&&(s[0].style.opacity=-p>0?-p:0)}}},setTransition:e=>{const{transformEl:s}=t.params.coverflowEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;te({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,$wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides;if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.transform(`translateX(calc(50% - ${e}px))`)}for(let s=0;s<e.length;s+=1){const a=e.eq(s),o=a[0].progress,d=Math.min(Math.max(a[0].progress,-r.limitProgress),r.limitProgress);let c=d;l||(c=Math.min(Math.max(a[0].originalProgress,-r.limitProgress),r.limitProgress));const p=a[0].swiperSlideOffset,u=[t.params.cssMode?-p-t.translate:-p,0,0],h=[0,0,0];let m=!1;t.isHorizontal()||(u[1]=u[0],u[0]=0);let f={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(f=r.next,m=!0):d>0&&(f=r.prev,m=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))`})),h.forEach(((e,t)=>{h[t]=f.rotate[t]*Math.abs(d*n)})),a[0].style.zIndex=-Math.abs(Math.round(o))+e.length;const g=u.join(", "),v=`rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,x=`translate3d(${g}) ${v} ${w}`;if(m&&f.shadow||!m){let e=a.children(".swiper-slide-shadow");if(0===e.length&&f.shadow&&(e=ie(r,a)),e.length){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const y=se(r,a);y.transform(x).css({opacity:b}),f.origin&&y.css("transform-origin",f.origin)}},setTransition:e=>{const{transformEl:s}=t.params.creativeEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ae({swiper:t,duration:e,transformEl:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),te({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s}=t,a=t.params.cardsEffect,{startTranslate:i,isTouched:r}=t.touchEventsData,n=t.translate;for(let l=0;l<e.length;l+=1){const o=e.eq(l),d=o[0].progress,c=Math.min(Math.max(d,-4),4);let p=o[0].swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&t.$wrapperEl.transform(`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let u=t.params.cssMode?-p-t.translate:-p,h=0;const m=-100*Math.abs(c);let f=1,g=-a.perSlideRotate*c,v=a.perSlideOffset-.75*Math.abs(c);const w=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,b=(w===s||w===s-1)&&c>0&&c<1&&(r||t.params.cssMode)&&n<i,x=(w===s||w===s+1)&&c<0&&c>-1&&(r||t.params.cssMode)&&n>i;if(b||x){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*e,f+=-.5*e,v+=96*e,h=-25*e*Math.abs(c)+"%"}if(u=c<0?`calc(${u}px + (${v*Math.abs(c)}%))`:c>0?`calc(${u}px + (-${v*Math.abs(c)}%))`:`${u}px`,!t.isHorizontal()){const e=h;h=u,u=e}const y=c<0?""+(1+(1-f)*c):""+(1-(1-f)*c),E=`\n        translate3d(${u}, ${h}, ${m}px)\n        rotateZ(${a.rotate?g:0}deg)\n        scale(${y})\n      `;if(a.slideShadows){let e=o.find(".swiper-slide-shadow");0===e.length&&(e=ie(a,o)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}o[0].style.zIndex=-Math.abs(Math.round(d))+e.length;se(a,o).transform(E)}},setTransition:e=>{const{transformEl:s}=t.params.cardsEffect;(s?t.slides.find(s):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ae({swiper:t,duration:e,transformEl:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return V.use(re),V}));
window.getSelection&&document.addEventListener("copy",function(){var n=window.getSelection();if(!n.isCollapsed){for(var t=n.rangeCount,o=[],e=0;e<t;e++)o[e]=n.getRangeAt(e);var i=document.createElement("div");i.appendChild(n.getRangeAt(0).cloneContents()),i.style.position="absolute",i.style.left="-99999px",i.innerHTML=i.innerHTML.replace(/\u00AD/gi,"").replace(/\u200B/gi,""),document.body.appendChild(i),n.selectAllChildren(i),window.setTimeout(function(){i.remove(),n.removeAllRanges();for(var e=0;e<t;e++)n.addRange(o[e])},0)}});
(function(_g_){"use strict";
var __SDK__={};
(function(){var A=n=>n,_=A,s={in:n=>n*n,out:n=>n*(2-n),inOut:n=>n<.5?2*n*n:-1+(4-2*n)*n},p={in:n=>n*n*n,out:n=>--n*n*n+1,inOut:n=>n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},l={in:n=>n*n*n*n,out:n=>1- --n*n*n*n,inOut:n=>n<.5?8*n*n*n*n:1-8*--n*n*n*n},b={in:n=>n*n*n*n*n,out:n=>1+--n*n*n*n*n,inOut:n=>n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n},v=s,z=p,B=l,V=b,$=b,g={in:n=>1-Math.cos(n*Math.PI/2),out:n=>Math.sin(n*Math.PI/2),inOut:n=>-(Math.cos(Math.PI*n)-1)/2},f={in:n=>2**(10*(n-1))*n+n*n*n*n*n*n*(1-n),out:n=>1-(2**(10*-n)*(1-n)+(1-n)*(1-n)*(1-n)*(1-n)*(1-n)*(1-n)*n),inOut:n=>{if(n<.5){let e=n*2;return(2**(10*(e-1))*e+e*e*e*e*e*e*(1-e))/2}let u=(1-n)*2;return 1-(2**(10*(u-1))*u+u*u*u*u*u*u*(1-u))/2}},x={in:n=>1-Math.sqrt(1-n*n),out:n=>Math.sqrt(1- --n*n),inOut:n=>(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},L=1.70158,S=(n=L)=>{let u=e=>e?--e*e*((n+1)*e+n)+1:0;return{in:e=>1-u(1-e),out:u,inOut:e=>e<.5?(1-u(1-e*2))/2:.5+u((e-.5)*2)/2}},M=S(),D=1,N=.3,T=(n=D,u=N)=>{let e=Math.max(1,n),t=u/(2*Math.PI)*Math.asin(1/e),m=u*1.5,c=m/(2*Math.PI)*Math.asin(1/e);return{in:o=>o===0?0:o===1?1:-(e*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/u)),out:o=>o===0?0:o===1?1:e*Math.pow(2,-10*o)*Math.sin((o-t)*(2*Math.PI)/u)+1,inOut:o=>o===0?0:o===1?1:(o*=2)<1?-.5*(e*Math.pow(2,10*(o-=1))*Math.sin((o-c)*(2*Math.PI)/m)):e*Math.pow(2,-10*(o-=1))*Math.sin((o-c)*(2*Math.PI)/m)*.5+1}},E=T(),F=n=>n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,O={in:n=>1-F(1-n),out:F,inOut:n=>n<.5?O.in(n*2)*.5:O.out(n*2-1)*.5+.5},h=(n=.7,u=.7,e=!1)=>{let t=n!==1?u:0,m=(1-n)/2,c=m+n,o=e;return a=>{let i=a+(.5-a)*t;if(a<m){let r=1-a/m;return o?1-r*r:i-r*r*r*r*i}else if(a>c){let r=(a-c)/m;return o?a===1?0:1-r*r:i+(a-i)*r*r*r*r}return o?1:i}},k={in:h(.7,.7,!1),out:h(.7,.7,!1),inOut:h(.7,.7,!1)},d=(n=1,u=20,e=!1)=>{let t=[],m=1/u;for(let c=0;c<u;c++){let o=c*m,i=((c*1327+531)%1e3/1e3-.5)*n*.4,r=o+i;t.push({x:o,y:e?Math.max(0,Math.min(1,r)):r})}return t[0]={x:0,y:0},t.push({x:1,y:1}),c=>{if(c<=0)return 0;if(c>=1)return 1;let o=0,a=t.length-1;for(;o<a-1;){let w=o+a>>1;t[w].x<=c?o=w:a=w}let i=t[o],r=t[a],I=(c-i.x)/(r.x-i.x);return i.y+(r.y-i.y)*I}},R={in:d(1,20,!0),out:d(1,20,!0),inOut:d(1,20,!0)},y=n=>u=>u>=1?1:Math.floor(u*n)/n,q={in:y(12),out:y(12),inOut:y(12)},P={linear:A,none:_,power1:s.out,"power1.in":s.in,"power1.out":s.out,"power1.inout":s.inOut,power2:p.out,"power2.in":p.in,"power2.out":p.out,"power2.inout":p.inOut,power3:l.out,"power3.in":l.in,"power3.out":l.out,"power3.inout":l.inOut,power4:b.out,"power4.in":b.in,"power4.out":b.out,"power4.inout":b.inOut,quad:s.out,"quad.in":s.in,"quad.out":s.out,"quad.inout":s.inOut,cubic:p.out,"cubic.in":p.in,"cubic.out":p.out,"cubic.inout":p.inOut,quart:l.out,"quart.in":l.in,"quart.out":l.out,"quart.inout":l.inOut,quint:b.out,"quint.in":b.in,"quint.out":b.out,"quint.inout":b.inOut,strong:b.out,"strong.in":b.in,"strong.out":b.out,"strong.inout":b.inOut,sine:g.out,"sine.in":g.in,"sine.out":g.out,"sine.inout":g.inOut,expo:f.out,"expo.in":f.in,"expo.out":f.out,"expo.inout":f.inOut,circ:x.out,"circ.in":x.in,"circ.out":x.out,"circ.inout":x.inOut,back:M.out,"back.in":M.in,"back.out":M.out,"back.inout":M.inOut,elastic:E.out,"elastic.in":E.in,"elastic.out":E.out,"elastic.inout":E.inOut,bounce:O.out,"bounce.in":O.in,"bounce.out":O.out,"bounce.inout":O.inOut,slow:k.inOut,"slow.in":s.out,"slow.out":s.out,"slow.inout":s.out,slowmo:k.inOut,"slowmo.in":s.out,"slowmo.out":s.out,"slowmo.inout":s.out,rough:R.inOut,"rough.in":s.out,"rough.out":s.out,"rough.inout":s.out,steps:q.inOut,"steps.in":q.in,"steps.out":q.out,"steps.inout":q.inOut},U={back:n=>S(n),elastic:(n,u)=>T(n,u),slow:(n,u,e)=>{let t=h(n,u,e===1);return{in:t,out:t,inOut:t}},slowmo:(n,u,e)=>{let t=h(n,u,e===1);return{in:t,out:t,inOut:t}},rough:(n,u,e)=>{let t=d(n,u,e===1);return{in:t,out:t,inOut:t}},steps:n=>{let u=y(n??12);return{in:u,out:u,inOut:u}}},C=/^(\w+)(?:\.(\w+))?\(([^)]*)\)$/;function G(n){let u=n.toLowerCase();if(P[u])return P[u];let e=C.exec(u);if(e){let[,t,m,c]=e,o=U[t];if(o){let a=c.split(",").map(i=>i.trim()).filter(i=>i.length>0).map(Number);if(a.every(i=>!isNaN(i))){let i=o(...a),r=m||"out",w=i[r==="inout"?"inOut":r];if(w)return w}}}return console.warn(`[Motion] Unknown easing "${n}". Falling back to "power1.out". Valid easings: linear, power1-4.in/out/inOut, quad, cubic, quart, quint, strong, sine, expo, circ, back, elastic, bounce, slow, rough, steps. Parameterized: back.out(overshoot), elastic.out(amplitude, period), steps(n), slow(ratio, power, yoyo), rough(strength, points, clamp)`),s.out}__SDK__.back=M;__SDK__.bounce=O;__SDK__.circ=x;__SDK__.cubic=z;__SDK__.elastic=E;__SDK__.expo=f;__SDK__.getEasing=G;__SDK__.linear=A;__SDK__.none=_;__SDK__.power1=s;__SDK__.power2=p;__SDK__.power3=l;__SDK__.power4=b;__SDK__.quad=v;__SDK__.quart=B;__SDK__.quint=V;__SDK__.rough=R;__SDK__.sine=g;__SDK__.slow=k;__SDK__.steps=q;__SDK__.strong=$;
})();
(function(){var e={color:null,filter:null,drawSVG:null,clipPath:null,stagger:null,textSplitter:null,textFlapper:null,triggerManager:null,styleReset:null,fit:null};__SDK__.SDKRegistry=e;
})();
(function(){var Y={perspective:0,x:1,y:2,z:3,rotate:4,rotateX:5,rotateY:6,rotateZ:7,scale:8,scaleX:9,scaleY:10,scaleZ:11,skewX:12,skewY:13},k=["px","px","px","px","deg","deg","deg","deg","","","","","deg","deg"],S=new WeakMap,X=new WeakMap,f=[],N=1e-6;function T(s){let e=s.trim().match(/([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z%]*)/i);return e?{value:parseFloat(e[1]),unit:e[2]||""}:{value:0,unit:""}}function A(s,e){switch(e){case"rad":return s*180/Math.PI;case"turn":return s*360;case"grad":return s*.9;default:return s}}function p(s){let e=T(s);return A(e.value,e.unit||"deg")}function o(s,e,r,n){let a=Y[e];if(a===void 0)return;s.values[a]=r;let t=n&&n.length>0?n:k[a]||"";s.units[a]=t,s.used|=1<<a}function q(s,e){let r=/([a-zA-Z0-9]+)\(([^)]+)\)/g,n;for(;(n=r.exec(s))!==null;){let a=n[1],t=n[2].match(/[-+]?\d*\.?\d+(?:e[-+]?\d+)?[a-z%]*/gi)||[];switch(a){case"translate":{let i=t[0]?T(t[0]):{value:0,unit:""},c=t[1]?T(t[1]):{value:0,unit:""};o(e,"x",i.value,i.unit),o(e,"y",c.value,c.unit);break}case"translate3d":{let i=t[0]?T(t[0]):{value:0,unit:""},c=t[1]?T(t[1]):{value:0,unit:""},l=t[2]?T(t[2]):{value:0,unit:""};o(e,"x",i.value,i.unit),o(e,"y",c.value,c.unit),o(e,"z",l.value,l.unit);break}case"translateX":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"x",i.value,i.unit);break}case"translateY":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"y",i.value,i.unit);break}case"translateZ":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"z",i.value,i.unit);break}case"scale":{let i=t[0]?parseFloat(t[0]):1,c=t[1]?parseFloat(t[1]):i;o(e,"scaleX",i),o(e,"scaleY",c);break}case"scale3d":{let i=t[0]?parseFloat(t[0]):1,c=t[1]?parseFloat(t[1]):1,l=t[2]?parseFloat(t[2]):1;o(e,"scaleX",i),o(e,"scaleY",c),o(e,"scaleZ",l);break}case"scaleX":{let i=t[0]?parseFloat(t[0]):1;o(e,"scaleX",i);break}case"scaleY":{let i=t[0]?parseFloat(t[0]):1;o(e,"scaleY",i);break}case"scaleZ":{let i=t[0]?parseFloat(t[0]):1;o(e,"scaleZ",i);break}case"rotate":o(e,"rotate",t[0]?p(t[0]):0,"deg");break;case"rotateX":o(e,"rotateX",t[0]?p(t[0]):0,"deg");break;case"rotateY":o(e,"rotateY",t[0]?p(t[0]):0,"deg");break;case"rotateZ":o(e,"rotateZ",t[0]?p(t[0]):0,"deg");break;case"skew":{let i=t[0]?p(t[0]):0,c=t[1]?p(t[1]):0;o(e,"skewX",i,"deg"),o(e,"skewY",c,"deg");break}case"skewX":o(e,"skewX",t[0]?p(t[0]):0,"deg");break;case"skewY":o(e,"skewY",t[0]?p(t[0]):0,"deg");break;case"perspective":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"perspective",i.value,i.unit);break}default:break}}}function R(s,e,r,n,a,t,i,c,l,x,g,I,b,u){if(b){let h=Math.hypot(s,e),H=s*a-e*n,G=h!==0?H/h:0,j=h!==0?Math.atan2(e,s):0,P=h!==0?Math.atan2(s*n+e*a,h*h):0;o(u,"x",x,"px"),o(u,"y",g,"px"),o(u,"scaleX",h||1),o(u,"scaleY",G||1),o(u,"rotate",A(j,"rad"),"deg"),Math.abs(P)>N&&o(u,"skewX",A(P,"rad"),"deg");return}let m=Math.hypot(s,e,r)||1,E=Math.hypot(n,a,t)||1,O=Math.hypot(i,c,l)||1,_=s/m,w=e/m,v=r/m,d=n/E,U=a/E,W=t/E,D=i/O,F=c/O,V=l/O,y=Math.sqrt(_*_+d*d),K=y<N,C=0,L=0,$=0;K?(C=Math.atan2(-W,U),L=Math.atan2(-D,y),$=0):(C=Math.atan2(F,V),L=Math.atan2(-D,y),$=Math.atan2(d,_)),o(u,"x",x,"px"),o(u,"y",g,"px"),o(u,"z",I,"px"),o(u,"scaleX",m),o(u,"scaleY",E),o(u,"scaleZ",O),o(u,"rotateX",A(C,"rad"),"deg"),o(u,"rotateY",A(L,"rad"),"deg"),o(u,"rotateZ",A($,"rad"),"deg")}function B(s,e){if(!s||s==="none")return;if(typeof DOMMatrixReadOnly<"u"){let n=new DOMMatrixReadOnly(s);R(n.m11,n.m12,n.m13,n.m21,n.m22,n.m23,n.m31,n.m32,n.m33,n.m41,n.m42,n.m43,n.is2D,e);return}let r=s.match(/[-+]?\d*\.?\d+(?:e[-+]?\d+)?/gi)||[];if(s.startsWith("matrix3d")&&r.length>=16){let n=r.map(Number);R(n[0],n[1],n[2],n[4],n[5],n[6],n[8],n[9],n[10],n[12],n[13],n[14],!1,e);return}if(s.startsWith("matrix")&&r.length>=6){let n=r.map(Number);R(n[0],n[1],0,n[2],n[3],0,0,0,1,n[4],n[5],0,!0,e)}}function J(s,e){if(!(s instanceof HTMLElement)&&!(s instanceof SVGElement))return;let n=s.style.transform;if(n&&n!=="none"){q(n,e),e.cachedString=n;return}try{if(typeof window<"u"&&window.getComputedStyle){let a=window.getComputedStyle(s),t=a.transform||a.getPropertyValue("transform");t&&t!=="none"&&(B(t,e),e.cachedString=t)}}catch{}}function M(s){let e=S.get(s);if(!e){let r=new Float32Array(14);r[8]=1,r[9]=1,r[10]=1,r[11]=1,e={values:r,units:[...k],dirty:0,used:0,cachedString:"",pinDirty:!1},J(s,e),S.set(s,e)}return e}function Q(s,e,r,n){let a=M(s),t=Y[e];t!==void 0&&(a.values[t]=r,n!==void 0&&(a.units[t]=n),a.used|=1<<t,e==="scale"?(a.values[9]=r,a.values[10]=r,a.dirty|=1536):(e==="scaleX"||e==="scaleY")&&(a.values[8]=1,a.dirty|=256),e==="rotate"?(a.values[7]=0,a.dirty|=128):e==="rotateZ"&&(a.values[4]=0,a.dirty|=16),a.dirty|=1<<t)}function ee(s,e){let r=M(s),n=Y[e];if(n===void 0)return e.startsWith("scale")?1:0;if(e==="scale"){if(r.values[n]!==1)return r.values[n];let a=r.values[9],t=r.values[10];return Math.abs(a-t)<N&&a!==1?a:r.values[n]}if(e==="rotate"){if(r.values[n]!==0)return r.values[n];let a=r.values[7];return a!==0&&r.values[5]===0&&r.values[6]===0?a:r.values[n]}return r.values[n]}function ne(s,e){let r=M(s),n=Y[e];return n===void 0?"":r.units[n]||k[n]||""}function Z(s){return s===0?"0":`${Math.round(s)}px`}function z(s,e,r){return`translate3d(${Z(s)}, ${Z(e)}, ${Z(r)})`}function te(s,e,r,n){X.set(s,{x:e,y:r,z:n});let a=S.get(s);a&&(a.pinDirty=!0)}function se(s){let e=X.has(s);if(X.delete(s),e){let r=S.get(s);r&&(r.pinDirty=!0)}}function re(s){let e=S.get(s),r=X.get(s);if(!e)return r&&(r.x!==0||r.y!==0||r.z!==0)?z(r.x,r.y,r.z):"";if(e.dirty===0&&!e.pinDirty&&e.cachedString)return e.cachedString;let n=e.values,a=e.units;f.length=0;let t=e.used,i=n[0];if(i!==0){let d=a[0];f.push(`perspective(${i}${d})`)}let c=n[1],l=n[2],x=n[3],g=a[1],I=a[2],b=a[3],u=t&2,m=t&4,E=t&8;if(c!==0||l!==0||x!==0||u||m||E){let d=g===I&&(x===0&&!E||I===b);x!==0||E?d?f.push(`translate3d(${c}${g}, ${l}${I}, ${x}${b})`):((c!==0||u)&&f.push(`translateX(${c}${g})`),(l!==0||m)&&f.push(`translateY(${l}${I})`),f.push(`translateZ(${x}${b})`)):d&&(c!==0||u)&&(l!==0||m)?f.push(`translate(${c}${g}, ${l}${I})`):((c!==0||u)&&f.push(`translateX(${c}${g})`),(l!==0||m)&&f.push(`translateY(${l}${I})`))}(n[4]!==0||t&16)&&f.push(`rotate(${n[4]}deg)`),(n[5]!==0||t&32)&&f.push(`rotateX(${n[5]}deg)`),(n[6]!==0||t&64)&&f.push(`rotateY(${n[6]}deg)`),(n[7]!==0||t&128)&&f.push(`rotateZ(${n[7]}deg)`);let O=t&256,_=t&512,w=t&1024;n[8]!==1||O?f.push(`scale(${n[8]})`):(n[9]!==1||n[10]!==1||_||w)&&(f.push(`scaleX(${n[9]})`),f.push(`scaleY(${n[10]})`)),(n[11]!==1||t&2048)&&f.push(`scaleZ(${n[11]})`),(n[12]!==0||t&4096)&&f.push(`skewX(${n[12]}deg)`),(n[13]!==0||t&8192)&&f.push(`skewY(${n[13]}deg)`);let v=f.join(" ");if(r&&(r.x!==0||r.y!==0||r.z!==0)){let d=z(r.x,r.y,r.z);e.cachedString=v?`${d} ${v}`:d}else e.cachedString=v;return e.dirty=0,e.pinDirty=!1,e.cachedString}function ae(s,e=!1){S.delete(s),e&&s instanceof HTMLElement&&(s.style.transform="")}__SDK__.buildTransformString=re;__SDK__.clearPinOffset=se;__SDK__.clearTransformCache=ae;__SDK__.getTransformData=M;__SDK__.getTransformUnit=ne;__SDK__.getTransformValue=ee;__SDK__.setPinOffset=te;__SDK__.setTransformValue=Q;
})();
(function(){const{buildTransformString: a}=__SDK__;var l=new Set,s=new Map,o=!1;function m(e){l.add(e),o=!0}function c(e,r,n){let t=s.get(e);t||(t=new Map,s.set(e,t)),t.set(r,n),o=!0}function p(){if(o){for(let e of l){let r=e;if(r.style){let n=a(e);r.style.transform=n}}l.clear();for(let[e,r]of s){let n=e;if(n.style)for(let[t,i]of r)try{t.startsWith("--")?n.style.setProperty(t,i):n.style[t]=i}catch{}}s.clear(),o=!1}}__SDK__.flush=p;__SDK__.queueStyle=c;__SDK__.queueTransform=m;
})();
(function(){var m=Object.defineProperty;var f=(s,e,i)=>e in s?m(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i;var t=(s,e,i)=>f(s,typeof e!="symbol"?e+"":e,i);const{flush: u}=__SDK__;var l=!1;function d(){return l}function v(s){if(l){s();return}l=!0;try{s(),u()}finally{l=!1}}var a=class a{constructor(){t(this,"listeners",[]);t(this,"_listenersDirty",!0);t(this,"_listenersSnapshot",[]);t(this,"_isRunning",!1);t(this,"rafId",null);t(this,"lastTime",0);t(this,"elapsedTime",0);t(this,"lagThreshold",500);t(this,"maxDelta",33);t(this,"fpsFrames",0);t(this,"fpsTime",0);t(this,"currentFPS",60);t(this,"lastFrameTime",0);t(this,"tick",()=>{if(!this._isRunning)return;let e=performance.now(),i=e-this.lastTime;i>this.lagThreshold?(i=this.maxDelta,this.lastTime=e-i):this.lastTime=e;let n=i/1e3;this.elapsedTime+=n,this.lastFrameTime=i,this.updateFPS(i),l=!0,this._listenersDirty&&(this._listenersSnapshot=[...this.listeners],this._listenersDirty=!1);for(let r of this._listenersSnapshot)try{r.callback(n,this.elapsedTime)}catch(h){console.error("[Motion] Uncaught error in animation callback:",h)}try{u()}catch(r){console.error("[Motion] Uncaught error in render batch flush:",r)}l=!1,this._isRunning&&typeof requestAnimationFrame<"u"?this.rafId=requestAnimationFrame(this.tick):this.rafId=null})}static getInstance(){return a.instance||(a.instance=new a),a.instance}add(e,i=0){let n=this.listeners.findIndex(r=>r.callback===e);n!==-1?this.listeners[n].priority=i:this.listeners.push({callback:e,priority:i}),this.listeners.sort((r,h)=>h.priority-r.priority),this._listenersDirty=!0,!this._isRunning&&this.listeners.length>0&&this.start()}remove(e){let i=this.listeners.findIndex(n=>n.callback===e);i!==-1&&(this.listeners.splice(i,1),this._listenersDirty=!0),this.listeners.length===0&&this._isRunning&&this.stop()}start(){if(!this._isRunning){if(typeof requestAnimationFrame>"u"){this._isRunning=!1;return}this._isRunning=!0,this.lastTime=performance.now(),this.rafId=requestAnimationFrame(this.tick)}}stop(){this._isRunning&&(this._isRunning=!1,this.rafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.rafId),this.rafId=null))}pause(){this.stop()}resume(){this.listeners.length>0&&this.start()}updateFPS(e){this.fpsFrames++,this.fpsTime+=e,this.fpsTime>=1e3&&(this.currentFPS=Math.round(this.fpsFrames*1e3/this.fpsTime),this.fpsFrames=0,this.fpsTime=0)}getFPS(){return this.currentFPS}getLastDelta(){return this.lastFrameTime}isRunning(){return this._isRunning}isInTick(){return l}getListenerCount(){return this.listeners.length}removeAll(){this.listeners=[],this.stop()}};t(a,"instance");var o=a;__SDK__.Ticker=o;__SDK__.isInTick=d;__SDK__.runBatched=v;
})();
(function(){var l=null,f=null,m=100,i=new Map;function p(t){let n=i.get(t);return n!==void 0&&(i.delete(t),i.set(t,n)),n}function y(t,n){for(i.has(t)&&i.delete(t);i.size>=m;){let e=i.keys().next().value;if(e!==void 0)i.delete(e);else break}i.set(t,n)}function x(t){return/^\s*[Mm]/.test(t)}function h(){if(f)return f;if(typeof document>"u")throw new Error("PathParser requires a browser environment");return l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.cssText="position:absolute;width:0;height:0;overflow:hidden;visibility:hidden;",l.setAttribute("aria-hidden","true"),f=document.createElementNS("http://www.w3.org/2000/svg","path"),l.appendChild(f),document.body.appendChild(l),f}function b(t){if(t instanceof Element)return t.getAttribute("d");if(typeof t=="string"){if(x(t))return t;if(typeof document<"u"){let n=document.querySelector(t);if(n)return n.getAttribute("d")}}return null}function P(t){let n=p(t);if(n!==void 0)return n;try{let e=h();e.setAttribute("d",t);let r=e.getTotalLength();return y(t,r),r}catch{return 0}}function v(){i.clear()}function w(t,n,e=!1){try{let r=h();r.setAttribute("d",t);let o=r.getTotalLength(),u=Math.max(0,Math.min(1,n)),a=o*u,s=r.getPointAtLength(a),c=0;return e&&(c=E(r,a,o)),{x:s.x,y:s.y,angle:c}}catch{return{x:0,y:0,angle:0}}}function E(t,n,e){let r=Math.min(.1,e*.001),o=Math.max(0,n-r),u=Math.min(e,n+r),a=t.getPointAtLength(o),s=t.getPointAtLength(u),c=s.x-a.x,d=s.y-a.y;return Math.atan2(d,c)*(180/Math.PI)}function A(t,n=[50,50]){if(!t)return{x:0,y:0};let e=null;if(t instanceof Element?e=t:typeof t=="string"&&typeof document<"u"&&(e=document.querySelector(t)),!e||typeof e.getBoundingClientRect!="function")return{x:0,y:0};let r=e.getBoundingClientRect(),o=r.width*n[0]/100,u=r.height*n[1]/100;return{x:o,y:u}}function S(t,n,e){if(!t)return{x:0,y:0};let r=null;if(t instanceof Element?r=t:typeof t=="string"&&typeof document<"u"&&(r=document.querySelector(t)),!r)return{x:0,y:0};let o=w(n,0,!1);if(e&&e instanceof HTMLElement){let u=e.style.transform,a=u&&u!=="none"&&u!=="";a&&(e.style.transform="none");let s=e.getBoundingClientRect(),c=r.getBoundingClientRect();a&&(e.style.transform=u);let d=c.left+c.width/2-(s.left+s.width/2),g=c.top+c.height/2-(s.top+s.height/2);return{x:d-o.x,y:g-o.y}}return{x:-o.x,y:-o.y}}function C(t,n,e=[50,50]){let r=b(t);if(!r)return null;let o=P(r);return o===0?null:{pathData:r,length:o}}function M(){l&&l.parentNode&&l.parentNode.removeChild(l),l=null,f=null,i.clear()}__SDK__.calculateElementOffset=A;__SDK__.calculatePathAlignOffset=S;__SDK__.cleanupPathParser=M;__SDK__.clearPathLengthCache=v;__SDK__.getPathLength=P;__SDK__.getPointAtProgress=w;__SDK__.isPathData=x;__SDK__.parsePath=C;__SDK__.resolvePathData=b;
})();
(function(){const{clearTransformCache: w, getTransformValue: T}=__SDK__;const{SDKRegistry: y}=__SDK__;const{resolvePathData: O, getPathLength: V, calculateElementOffset: R, calculatePathAlignOffset: G}=__SDK__;var L=new Set(["perspective","x","y","z","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skewX","skewY"]),k=new Set(["perspective","x","y","z","width","height","top","left","right","bottom","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderRadius","fontSize","lineHeight"]),B=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),M=new Set(["opacity","scale","scaleX","scaleY","scaleZ","z-index","zIndex"]),z=new Set(["color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor","textDecorationColor","caretColor","fill","stroke"]),I=new Set(["red","green","blue","yellow","orange","purple","pink","cyan","magenta","white","black","gray","grey","transparent","crimson","gold","silver","navy","teal","maroon","olive","lime","aqua","fuchsia","coral","salmon","tomato","indigo"]);function C(t){return L.has(t)}function X(t){return z.has(t)}function _(t){return t==="filter"}function N(t){return t==="drawSVG"}function W(t){return t==="path"}function Y(t){return t==="clip-path"||t==="clipPath"}function H(t){return t.startsWith("--")}function b(t){if(typeof t!="string")return!1;let e=t.trim().toLowerCase();if(e.startsWith("#")||/^(rgb|rgba|hsl|hsla)\s*\(/.test(e))return!0;let r=y.color;return r?r.parseColor(e)!==null:I.has(e)}function P(t){if(typeof t=="number")return isNaN(t)||!isFinite(t)?(console.warn(`[Motion] Property value is ${t}. This property will not animate correctly.`),{value:0,unit:""}):{value:t,unit:""};if(typeof t=="string"){let e=t.match(/^([+\-*/])=(.+)/);if(e){let n=e[2].match(/([-+]?[\d.]+(?:e[-+]?\d+)?)([a-z%]*)/i);if(n)return{value:parseFloat(n[1]),unit:n[2]||""}}let r=t.match(/([-+]?[\d.]+(?:e[-+]?\d+)?)([a-z%]*)/i);if(r)return{value:parseFloat(r[1]),unit:r[2]||""}}return{value:0,unit:""}}function g(t){return M.has(t)?"":B.has(t)?"deg":k.has(t)?"px":""}function v(t){return t==="opacity"||t.startsWith("scale")?1:0}function D(t,e){if(!(t instanceof Element)){let r=t;return e in r?r[e]:U(e)}if(C(e))return T(t,e);try{if(typeof window<"u"&&window.getComputedStyle){let n=window.getComputedStyle(t).getPropertyValue(h(e));if(n)return P(n).value}}catch{}return v(e)}function Z(t,e,r,n){if(!n||n==="px"||typeof window>"u"||!window.getComputedStyle)return r;let o=t,s=h(e);try{let a=o.style.getPropertyValue(s);o.style.setProperty(s,`100${n}`);let u=window.getComputedStyle(t),l=parseFloat(u.getPropertyValue(s));if(a?o.style.setProperty(s,a):o.style.removeProperty(s),l&&isFinite(l)&&l!==0)return r/l*100}catch{}return r}function S(t,e,r){let n=D(t,e);return t instanceof Element&&r&&r!=="px"?Z(t,e,n,r):n}function ut(t,e){let r=t,n=h(e);if(C(e)){let o=r.style.transform;w(t),r.style.transform="";let s=T(t,e);return r.style.transform=o,w(t),{value:s,unit:g(e)}}try{if(typeof window<"u"&&window.getComputedStyle){let o=r.style.getPropertyValue(n);r.style.removeProperty(n);let a=window.getComputedStyle(t).getPropertyValue(n);if(o&&r.style.setProperty(n,o),a){let u=P(a);return{value:u.value,unit:u.unit}}}}catch{}return{value:v(e),unit:g(e)}}function U(t){return t.startsWith("scale")?1:0}function h(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function F(t){return typeof t=="string"&&t.trim().toLowerCase()==="auto"}var E=new Set(["width","height"]);function $(t,e){if(!E.has(e))return 0;let r=t,n=h(e);try{let o=r.style.getPropertyValue(n);r.style.setProperty(n,"auto");let s=e==="width"?r.offsetWidth:r.offsetHeight;return o?r.style.setProperty(n,o):r.style.removeProperty(n),s}catch{return 0}}function K(t){return typeof t=="string"?/^[+\-*/]=/.test(t):!1}function j(t){let e=t.match(/^([+\-*/])=/);return e?e[0]:null}function q(t,e,r){switch(r){case"+=":return t+e;case"-=":return t-e;case"*=":return t*e;case"/=":return e!==0?t/e:t;default:return e}}function J(t,e,r,n){let o=y.color;if(!o)return null;let s=String(r),a=s===""?o.getCurrentColor(t,e):o.parseColor(s,t),u=n!==void 0?o.parseColor(String(n),t):o.getCurrentColor(t,e);return{type:"color",property:e,isTransform:!1,startColor:u||new Float32Array([0,0,0,1]),endColor:a||new Float32Array([0,0,0,1])}}function Q(t,e,r,n){let o=y.filter;if(!o)return null;let s=String(r),a=s===""?o.getCurrentFilter(t):o.parseFilter(s),u=n!==void 0?o.parseFilter(String(n)):o.getCurrentFilter(t);u=u||[],a=a||[];let l=o.mergeFilterArrays(u,a);return{type:"filter",property:e,isTransform:!1,startFilters:l.start,endFilters:l.end}}function tt(t,e,r,n){if(b(r)||n!==void 0&&b(n)){let l=y.color;if(l){let c=String(r),d=l.parseColor(c,t),f=n!==void 0?l.parseColor(String(n),t):et(t,e);return{type:"color",property:e,isTransform:!1,startColor:f||new Float32Array([0,0,0,1]),endColor:d||new Float32Array([0,0,0,1])}}}let s,a,u;if(n!==void 0&&r!==void 0){let l=P(n),c=P(r);s=l.value,a=c.value,u=c.unit||l.unit}else if(n!==void 0){let l=P(n);s=l.value,a=x(t,e),u=l.unit}else{let l=P(r);s=x(t,e),a=l.value,u=l.unit}return{type:"scalar",property:e,isTransform:!1,startValue:s,endValue:a,unit:u}}function et(t,e){let r=y.color;if(!r)return null;try{if(typeof window<"u"&&window.getComputedStyle){let o=window.getComputedStyle(t).getPropertyValue(e).trim();if(o)return r.parseColor(o,t)}}catch{}return null}function x(t,e){try{if(typeof window<"u"&&window.getComputedStyle){let n=window.getComputedStyle(t).getPropertyValue(e).trim();if(n)return P(n).value}}catch{}return 0}function rt(t,e,r,n){let o=y.drawSVG;if(!o)return null;let s=o.getPathLength(t),a=o.parseDrawSVG(r,t)||{start:0,end:1},u=n!==void 0?o.parseDrawSVG(n,t)||{start:0,end:1}:o.getCurrentDrawSVG(t);return{type:"drawSVG",property:e,isTransform:!1,startDraw:u,endDraw:a,length:s}}function nt(t,e,r,n){let o=y.clipPath;if(!o)return null;let s;r===void 0||r===""?s=o.getCurrentClipPath(t):s=o.parseClipPath(String(r));let a;return n!==void 0?a=o.parseClipPath(String(n)):a=o.getCurrentClipPath(t),s?(a||(a=s),{type:"clipPath",property:e,isTransform:!1,startClipPath:a,endClipPath:s}):null}function ot(t,e,r,n){let o=r,s=n,a=o?.target?o:s;if(!a?.target)return null;let u=O(a.target);if(!u)return null;let l=V(u);if(l===0)return null;let c,d;o?.target&&s?.target?(c=s.start??0,d=o.end??1):o?.target?(c=o.start??0,d=o.end??1):(c=s.start??0,d=s.end??1);let f=o?.rotate??s?.rotate??!1,i=o?.alignAt??s?.alignAt??[50,50],p=R(t,i),m=o?.align??s?.align,A=G(m,u,t);return{type:"path",property:e,isTransform:!1,pathData:u,pathLength:l,startProgress:c,endProgress:d,rotate:f,alignOffset:p,pathOffset:A}}function st(t,e,r,n){let o=t instanceof Element;if(o&&H(e))return tt(t,e,r,n);if(o&&X(e)){let i=J(t,e,r,n);if(i)return i}if(o&&_(e)){let i=Q(t,e,r,n);if(i)return i}if(o&&N(e)){let i=rt(t,e,r,n);if(i)return i}if(o&&Y(e)){let i=nt(t,e,r,n);if(i)return i}if(o&&W(e)){let i=ot(t,e,r,n);if(i)return i}let s=F(r),a=n!==void 0&&F(n);if(o&&(s||a)&&E.has(e)){let i=$(t,e);return st(t,e,s?i:r,a?i:n)}let u=C(e),l=n===void 0&&K(r),c,d,f;if(n!==void 0){let i=P(n);if(r!==void 0){let p=P(r);c=i.value,d=p.value,f=p.unit||i.unit||g(e)}else c=i.value,f=i.unit||g(e),d=S(t,e,f)}else if(l){let i=j(r),p=D(t,e),m=P(r);c=p,d=q(p,m.value,i),f=m.unit||g(e)}else{let i=P(r);f=i.unit||g(e),c=S(t,e,f),d=i.value}return{type:"scalar",property:e,isTransform:u,startValue:c,endValue:d,unit:f}}__SDK__.calculateRelativeValue=q;__SDK__.camelToKebab=h;__SDK__.convertPxToUnit=Z;__SDK__.getCurrentValue=D;__SDK__.getCurrentValueInUnit=S;__SDK__.getDefaultUnit=g;__SDK__.getOriginalCSSValueWithUnit=ut;__SDK__.getRelativeOperator=j;__SDK__.isCSSVariable=H;__SDK__.isClipPathProp=Y;__SDK__.isColorProp=X;__SDK__.isDrawSVGProp=N;__SDK__.isFilterProp=_;__SDK__.isPathProp=W;__SDK__.isRelativeValue=K;__SDK__.isTransformProp=C;__SDK__.looksLikeColor=b;__SDK__.parseProperty=st;__SDK__.parseValue=P;
})();
(function(){const{setTransformValue: h, buildTransformString: S}=__SDK__;const{queueTransform: d, queueStyle: a}=__SDK__;const{isTransformProp: g, isCSSVariable: p, camelToKebab: m}=__SDK__;const{isInTick: u}=__SDK__;const{SDKRegistry: P}=__SDK__;var c=null,f=null;function M(e,t,s,n){let r=e;if(!r.style)return;let l=u();if(g(t))h(e,t,s,n),l?d(e):r.style.transform=S(e);else{let i=n?`${s}${n}`:`${s}`;if(l)a(e,t,i);else try{p(t)?r.style.setProperty(t,i):t in r.style?r.style[t]=i:r.style.setProperty(m(t),i)}catch{}}}function $(e,t,s,n,r,l){let i=e;if(!i.style)return;let o=l===1?`rgb(${Math.round(s)}, ${Math.round(n)}, ${Math.round(r)})`:`rgba(${Math.round(s)}, ${Math.round(n)}, ${Math.round(r)}, ${l})`;if(u())a(e,t,o);else try{p(t)?i.style.setProperty(t,o):t in i.style?i.style[t]=o:i.style.setProperty(m(t),o)}catch{}}function F(e,t){let s=window.getComputedStyle(e),n=m(t);return s.getPropertyValue(n)}function V(e,t,s,n){let r=e;if(r.style&&(c||(c=P.filter))){let l=c.interpolateFilters(t,s,n),i=c.filterToString(l);u()?a(e,"filter",i):r.style.filter=i}}function x(e,t,s,n,r){let l=e;if(l.style&&(f||(f=P.clipPath))){let i=f.interpolateClipPaths(s,n,r),o=f.clipPathToString(i);u()?(a(e,"clip-path",o),a(e,"-webkit-clip-path",o)):(l.style.setProperty("clip-path",o),l.style.setProperty("-webkit-clip-path",o))}}__SDK__.getCSSProperty=F;__SDK__.setCSSClipPathProperty=x;__SDK__.setCSSColorProperty=$;__SDK__.setCSSFilterProperty=V;__SDK__.setCSSProperty=M;
})();
(function(){const{setTransformValue: i, buildTransformString: P}=__SDK__;const{queueTransform: g}=__SDK__;const{isInTick: T}=__SDK__;function M(n,o,r){let{pathLUT:t,alignOffset:m,pathOffset:l,pathRotate:p}=r;if(!t||t.length===0)return;let h=o*(t.length-1),a=Math.floor(h),u=Math.min(a+1,t.length-1),f=h-a,e=t[a],s=t[u],c=e.x+(s.x-e.x)*f,x=e.y+(s.y-e.y)*f,b=(l?.x??0)+c-(m?.x??0),y=(l?.y??0)+x-(m?.y??0);if(i(n,"x",b,"px"),i(n,"y",y,"px"),p){let d=I(e.angle,s.angle,f);i(n,"rotate",d,"deg")}T()?g(n):n.style.transform=P(n)}function I(n,o,r){let t=o-n;return t>180&&(t-=360),t<-180&&(t+=360),n+t*r}__SDK__.renderPath=M;
})();
(function(){var C=Object.defineProperty;var E=(a,t,i)=>t in a?C(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i;var e=(a,t,i)=>E(a,typeof t!="symbol"?t+"":t,i);const{setCSSProperty: w, setCSSColorProperty: S, setCSSFilterProperty: b, setCSSClipPathProperty: F}=__SDK__;const{clearTransformCache: D}=__SDK__;const{SDKRegistry: A}=__SDK__;const{getPointAtProgress: L}=__SDK__;const{renderPath: _}=__SDK__;var p=null,V=100,v=500,G=.5,h=[],O=50;function U(a){for(let t=0;t<h.length;t++)if(h[t].length>=a){let i=h.splice(t,1)[0];return i.length=a,i}return new Array(a)}function x(a){h.length<O&&h.push(a)}var P=class{constructor(){e(this,"target",null);e(this,"property","");e(this,"startValue",0);e(this,"endValue",0);e(this,"change",0);e(this,"unit","");e(this,"next",null);e(this,"valueType","scalar");e(this,"startColor",null);e(this,"endColor",null);e(this,"changeColor",new Float32Array(4));e(this,"startFilters",null);e(this,"endFilters",null);e(this,"startDraw",null);e(this,"endDraw",null);e(this,"pathLength",0);e(this,"startClipPath",null);e(this,"endClipPath",null);e(this,"pathData",null);e(this,"motionPathLength",0);e(this,"startProgress",0);e(this,"endProgress",0);e(this,"pathRotate",!1);e(this,"alignOffset",null);e(this,"pathOffset",null);e(this,"pathLUT",null);e(this,"_isElement",!1)}init(t,i,s,r,n=""){return this.target=t,this.property=i,this.startValue=s,this.endValue=r,this.change=r-s,this.unit=n,this.valueType="scalar",this._isElement=t instanceof Element,this}initColor(t,i,s,r){return this.target=t,this.property=i,this.valueType="color",this.startColor=s,this.endColor=r,this.changeColor[0]=r[0]-s[0],this.changeColor[1]=r[1]-s[1],this.changeColor[2]=r[2]-s[2],this.changeColor[3]=r[3]-s[3],this._isElement=t instanceof Element,this}initFilter(t,i,s,r){return this.target=t,this.property=i,this.valueType="filter",this.startFilters=s,this.endFilters=r,this._isElement=t instanceof Element,this}initClipPath(t,i,s,r){return this.target=t,this.property=i,this.valueType="clipPath",this.startClipPath=s,this.endClipPath=r,this._isElement=t instanceof Element,this}initDrawSVG(t,i,s,r,n){return this.target=t,this.property=i,this.valueType="drawSVG",this.startDraw=s,this.endDraw=r,this.pathLength=n,this._isElement=t instanceof Element,this}initPath(t,i,s,r,n,o,m,f,c){t instanceof Element&&D(t,!0),this.target=t,this.property=i,this.valueType="path",this.pathData=s,this.motionPathLength=r,this.startProgress=n,this.endProgress=o,this.pathRotate=m,this.alignOffset=f,this.pathOffset=c,this._isElement=t instanceof Element;let g=Math.abs(o-n),y=r*g,u=Math.min(v,Math.max(V,Math.ceil(y*G)));this.pathLUT=U(u+1);for(let l=0;l<=u;l++){let d=l/u,T=n+(o-n)*d;this.pathLUT[l]=L(s,T,m)}return this}render(t){if(this.target)if(this.valueType==="color"&&this.startColor){let i=this.startColor[0]+this.changeColor[0]*t,s=this.startColor[1]+this.changeColor[1]*t,r=this.startColor[2]+this.changeColor[2]*t,n=this.startColor[3]+this.changeColor[3]*t;this._isElement&&S(this.target,this.property,i,s,r,n)}else if(this.valueType==="filter"&&this.startFilters&&this.endFilters)this._isElement&&b(this.target,this.startFilters,this.endFilters,t);else if(this.valueType==="clipPath"&&this.startClipPath&&this.endClipPath)this._isElement&&F(this.target,this.property,this.startClipPath,this.endClipPath,t);else if(this.valueType==="drawSVG"&&this.startDraw&&this.endDraw){if(this._isElement&&this.pathLength>0){let i=this.startDraw.start+(this.endDraw.start-this.startDraw.start)*t,s=this.startDraw.end+(this.endDraw.end-this.startDraw.end)*t;(p||(p=A.drawSVG))&&p.applyDrawSVG(this.target,i,s,this.pathLength)}}else if(this.valueType==="path"&&this.pathLUT&&this.pathLUT.length>0)this._isElement&&_(this.target,t,{pathLUT:this.pathLUT,alignOffset:this.alignOffset??{x:0,y:0},pathOffset:this.pathOffset??{x:0,y:0},pathRotate:this.pathRotate});else{let i=this.startValue+this.change*t;this._isElement?w(this.target,this.property,i,this.unit):this.target[this.property]=i}}reset(){this.target=null,this.property="",this.startValue=0,this.endValue=0,this.change=0,this.unit="",this.next=null,this.valueType="scalar",this.startColor=null,this.endColor=null,this.startFilters=null,this.endFilters=null,this.startDraw=null,this.endDraw=null,this.pathLength=0,this.startClipPath=null,this.endClipPath=null,this.pathData=null,this.motionPathLength=0,this.startProgress=0,this.endProgress=0,this.pathRotate=!1,this.alignOffset=null,this.pathOffset=null,this.pathLUT&&x(this.pathLUT),this.pathLUT=null,this._isElement=!1}};__SDK__.PropTween=P;
})();
(function(){var a=Object.defineProperty;var l=(t,e,r)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var o=(t,e,r)=>l(t,typeof e!="symbol"?e+"":e,r);var i=class{constructor(e,r){o(this,"pool",[]);o(this,"totalCreated",0);o(this,"factory");o(this,"maxSize");this.factory=e,this.maxSize=r}acquire(){return this.pool.length>0?this.pool.pop():(this.totalCreated++,this.factory())}release(e){e.reset(),(this.maxSize===void 0||this.pool.length<this.maxSize)&&this.pool.push(e)}getPoolSize(){return this.pool.length}getTotalCreated(){return this.totalCreated}clear(){this.pool=[]}};__SDK__.ObjectPool=i;
})();
(function(){const{PropTween: r}=__SDK__;const{ObjectPool: t}=__SDK__;var e=new t(()=>new r,500),P={acquire:()=>e.acquire(),release:o=>e.release(o),getPoolSize:()=>e.getPoolSize(),getTotalCreated:()=>e.getTotalCreated(),clear:()=>e.clear()};__SDK__.PropTweenPool=P;
})();
(function(){var g=Object.defineProperty;var y=(o,e,t)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>y(o,typeof e!="symbol"?e+"":e,t);const{PropTweenPool: m}=__SDK__;const{getEasing: F}=__SDK__;const{getCurrentValue: R, isColorProp: T, isFilterProp: S, isClipPathProp: P}=__SDK__;const{SDKRegistry: _}=__SDK__;var f=class{constructor(){i(this,"_id",0);i(this,"_targets",[]);i(this,"_duration",.5);i(this,"_delay",0);i(this,"_time",0);i(this,"_progress",0);i(this,"_timeScale",1);i(this,"_isActive",!1);i(this,"_isReversed",!1);i(this,"_propTweens",null);i(this,"_lastPropTween",null);i(this,"_easingFn",null);i(this,"_repeat",0);i(this,"_repeatDelay",0);i(this,"_yoyo",!1);i(this,"_currentRepeat",0);i(this,"_onStart");i(this,"_onUpdate");i(this,"_onComplete");i(this,"_onRepeat");i(this,"_onReverseComplete");i(this,"_startFired",!1);i(this,"_completeFired",!1);i(this,"_timelineChild",!1);i(this,"_needsStartCapture",!1);i(this,"_startCaptured",!1);i(this,"_fitSetupFn",null);i(this,"_pendingFitSetup",null);i(this,"_fitCleanupFn",null);i(this,"_unregisterCallback",null);i(this,"_activationCallback",null)}init(e,t,r,a,n,s){return this._id=e,this._targets=t,this._duration=r,this._delay=a,this._easingFn=F(n),this._time=0,this._progress=0,this._timeScale=1,this._isActive=!1,this._isReversed=!1,this._startFired=!1,this._completeFired=!1,this._currentRepeat=0,this._repeat=s?.repeat??0,this._repeatDelay=s?.repeatDelay??0,this._yoyo=s?.yoyo??!1,this._onStart=s?.onStart,this._onUpdate=s?.onUpdate,this._onComplete=s?.onComplete,this._onRepeat=s?.onRepeat,this._onReverseComplete=s?.onReverseComplete,this}update(e){if(!this._isActive)return;let t=e*this._timeScale;if(this._time+=this._isReversed?-t:t,!this._isReversed&&this._time<0){this._time=0;return}let r=Math.max(0,this._time-this._delay);this._progress=this._duration>0?Math.min(1,r/this._duration):1,!this._startFired&&this._progress>0&&(this._startFired=!0,this._onStart?.()),this.render(this._progress),this._onUpdate?.(this._progress),this._isReversed?this._time<=0&&this.handleComplete():this._progress>=1&&this.handleComplete()}render(e){let t=this.applyEasing(e),r=this._propTweens;for(;r;)r.render(t),r=r.next}renderAtTime(e){let t=Math.max(0,e),r=this._duration,a=this._delay,n=this._currentRepeat;if(r===0){let s=t>=a?1:0;this._time=t,this._progress=s,this.render(s)}else{let s=Math.max(0,t-a);if(this._repeat===0){let h=Math.min(1,s/r);this._time=Math.min(r,s),this._progress=h,this.render(h)}else{let h=this._repeatDelay,u=r+h,C=this._repeat===-1?1/0:r*(this._repeat+1)+h*this._repeat,c=this._repeat===-1?s:Math.min(s,C),p=u>0?Math.floor(c/u):0,v=c-p*u,b=v>r,l=r>0?Math.min(1,v/r):1,d=this._yoyo&&p%2===1;b?l=d?0:1:d&&(l=1-l),this._currentRepeat=this._repeat===-1?p:Math.min(p,this._repeat),this._isReversed=d,this._progress=l,this._time=r*l,this.render(l)}}if(this._isActive){if(!this._startFired){this._startFired=!0;try{this._onStart?.()}catch(s){console.error("[Motion] onStart callback error:",s)}}try{this._onUpdate?.(this._progress)}catch(s){console.error("[Motion] onUpdate callback error:",s)}if(this._currentRepeat>n)try{this._onRepeat?.(this._currentRepeat)}catch(s){console.error("[Motion] onRepeat callback error:",s)}if(!this._completeFired&&this._repeat!==-1&&t>=this.totalDuration()){this._completeFired=!0;try{this._onComplete?.()}catch(s){console.error("[Motion] onComplete callback error:",s)}}}}applyEasing(e){return this._easingFn?this._easingFn(e):e}handleComplete(){if(this._repeat===-1||this._currentRepeat<this._repeat){this._currentRepeat++,this._onRepeat?.(this._currentRepeat),this._yoyo?(this._isReversed=!this._isReversed,this._time=this._isReversed?this._duration+this._delay:0):(this._time=0,this._startFired=!1),this._time-=this._repeatDelay;return}this._isReversed?this._onReverseComplete?.():this._onComplete?.(),this._isActive=!1}play(e){return e!==void 0?(this.seek(e),this._isActive=!0,this._isReversed=!1,this._activationCallback?.(),this):this._isActive&&!this._isReversed?this:(this._isActive=!0,this._isReversed=!1,this._activationCallback?.(),this)}pause(e){if(e!==void 0){this._time=e;let t=Math.max(0,this._time-this._delay);this._progress=this._duration>0?Math.min(1,t/this._duration):1,this.render(this._progress)}return this._isActive=!1,this}reverse(e){return e!==void 0&&this.seek(e),this._isActive=!0,this._isReversed=!0,this._activationCallback?.(),this}restart(e=!0){return this._time=e?0:this._delay,this._progress=0,this._isActive=!0,this._isReversed=!1,this._startFired=!1,this._currentRepeat=0,this.render(0),this._activationCallback?.(),this}seek(e){this._time=e;let t=Math.max(0,this._time-this._delay);return this._progress=this._duration>0?Math.min(1,t/this._duration):1,this.render(this._progress),this}progress(e){return e===void 0?this._progress:(this._progress=Math.max(0,Math.min(1,e)),this._progress===0?this._time=0:this._time=this._progress*this._duration+this._delay,this.render(this._progress),this)}time(e){if(e===void 0)return this._time;this._time=e;let t=Math.max(0,this._time-this._delay);return this._progress=this._duration>0?Math.min(1,t/this._duration):1,this.render(this._progress),this}timeScale(e){return e===void 0?this._timeScale:(this._timeScale=e,this)}getTimeScale(){return this._timeScale}kill(){this._isActive=!1,this._unregisterCallback?.()}isActive(){return this._isActive}isTimelineChild(){return this._timelineChild}setTimelineChild(e){this._timelineChild=e}setLazyStartCapture(e){this._needsStartCapture=e,this._startCaptured=!1}setPendingFitSetup(e){this._fitSetupFn=e,this._pendingFitSetup=e}setFitCleanup(e){this._fitCleanupFn=e}resetForReplay(){this._fitSetupFn&&(this._fitCleanupFn?.(),this._pendingFitSetup=this._fitSetupFn,this._startCaptured=!1),this._startFired=!1,this._completeFired=!1}needsStartCapture(){return this._needsStartCapture&&!this._startCaptured}isLazyCapture(){return this._needsStartCapture}fireReverseComplete(){try{this._onReverseComplete?.()}catch(e){console.error("[Motion] onReverseComplete callback error:",e)}this._startFired=!1,this._completeFired=!1}setUnregisterCallback(e){this._unregisterCallback=e}setActivationCallback(e){this._activationCallback=e}captureStartValues(){if(!this._needsStartCapture||this._startCaptured)return;if(this._pendingFitSetup){let t=this._propTweens;for(;t;){let r=t.next;m.release(t),t=r}this._propTweens=null,this._lastPropTween=null,this._pendingFitSetup(m),this._pendingFitSetup=null,this._startCaptured=!0;return}let e=this._propTweens;for(;e;){if(e.target instanceof Element){let t=e.target,r=e.property;if(e.valueType==="color"&&T(r)){let a=_.color?.getCurrentColor(t,r);a&&e.endColor&&(e.startColor=a,e.changeColor=new Float32Array([e.endColor[0]-a[0],e.endColor[1]-a[1],e.endColor[2]-a[2],e.endColor[3]-a[3]]))}else if(e.valueType==="filter"&&S(r)){let a=_.filter?.getCurrentFilter(t);if(a&&e.endFilters){let n=_.filter.mergeFilterArrays(a,e.endFilters);e.startFilters=n.start,e.endFilters=n.end}}else if(e.valueType==="clipPath"&&P(r)){let a=_.clipPath;if(a&&e.endClipPath){let n=a.getCurrentClipPath(t);n&&a.canInterpolate(n,e.endClipPath)&&(e.startClipPath=n)}}else{let a=R(t,r);e.startValue=a,e.change=e.endValue-e.startValue}}e=e.next}this._startCaptured=!0}getId(){return this._id}getTargets(){return this._targets}getDuration(){return this._duration}getDelay(){return this._delay}clearDelay(){this._delay=0}getFirstPropTween(){return this._propTweens}addPropTween(e){this._lastPropTween?this._lastPropTween.next=e:this._propTweens=e,this._lastPropTween=e}totalDuration(){if(this._repeat===-1)return 1/0;let t=this._duration*(this._repeat+1)+this._repeatDelay*this._repeat;return this._delay+t}reset(){this._id=0,this._targets=[],this._duration=.5,this._delay=0,this._time=0,this._progress=0,this._timeScale=1,this._isActive=!1,this._isReversed=!1,this._easingFn=null,this._repeat=0,this._repeatDelay=0,this._yoyo=!1,this._currentRepeat=0,this._onStart=void 0,this._onUpdate=void 0,this._onComplete=void 0,this._onRepeat=void 0,this._onReverseComplete=void 0,this._startFired=!1,this._completeFired=!1,this._timelineChild=!1,this._needsStartCapture=!1,this._startCaptured=!1,this._fitSetupFn=null,this._pendingFitSetup=null,this._fitCleanupFn=null,this._unregisterCallback=null,this._activationCallback=null;let e=m,t=this._propTweens;for(;t;){let r=t.next;e.release(t),t=r}this._propTweens=null,this._lastPropTween=null}};__SDK__.Animation=f;
})();
(function(){function t(n){if(typeof document>"u"){n();return}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()}function o(n){if(n===null||typeof n!="object"||n instanceof Element||"nodeType"in n||"style"in n)return!1;let e=n;return"x"in e&&typeof e.x=="number"?!0:!("length"in n)}function f(n){return n instanceof Element||typeof n=="object"&&n!==null&&("nodeType"in n||"style"in n)}function u(n){if(o(n))return[n];if(typeof n=="string"){if(typeof document<"u")try{return Array.from(document.querySelectorAll(n))}catch(e){return console.warn(`[Motion] Invalid selector "${n}":`,e),[]}return[]}if(n instanceof Element)return[n];if(n&&typeof n=="object"&&"style"in n&&!Array.isArray(n))return[n];if(n instanceof NodeList)return Array.from(n);if(Array.isArray(n)){if(n.length===0)return[];if(typeof n[0]=="string"){if(typeof document>"u")return[];let e=[];for(let r of n)try{e.push(...Array.from(document.querySelectorAll(r)))}catch(i){console.warn(`[Motion] Invalid selector "${r}":`,i)}return e}return o(n[0]),n}return n&&typeof n=="object"&&"length"in n?Array.from(n):[]}__SDK__.isElement=f;__SDK__.resolveTargets=u;__SDK__.whenDOMReady=t;
})();
(function(){var w=Object.defineProperty;var P=(g,t,l)=>t in g?w(g,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):g[t]=l;var i=(g,t,l)=>P(g,typeof t!="symbol"?t+"":t,l);const{resolveTargets: F}=__SDK__;const{PropTweenPool: j}=__SDK__;const{clearTransformCache: C}=__SDK__;const{SDKRegistry: m}=__SDK__;const{isColorProp: A, isFilterProp: v, isTransformProp: U, getCurrentValueInUnit: O, isCSSVariable: V, parseValue: c, getDefaultUnit: R}=__SDK__;var k={x:0,y:0,z:0,rotate:0,rotateX:0,rotateY:0,rotateZ:0,scale:1,scaleX:1,scaleY:1,scaleZ:1,skewX:0,skewY:0,opacity:1},_=class _{constructor(t,l){i(this,"_targets");i(this,"_originalTargets");i(this,"_fromVars");i(this,"_toVars");i(this,"_setVars");i(this,"_duration",.5);i(this,"_delay",0);i(this,"_ease","power1.out");i(this,"_animation",null);i(this,"_animations",[]);i(this,"_built",!1);i(this,"_splitType");i(this,"_mask");i(this,"_repeat");i(this,"_repeatDelay");i(this,"_yoyo");i(this,"_stagger");i(this,"_axis");i(this,"_fitConfig");i(this,"_flapConfig");i(this,"_onStart");i(this,"_onUpdate");i(this,"_onComplete");i(this,"_onRepeat");i(this,"_onReverseComplete");i(this,"_skipInitialFromRender",!1);i(this,"_plainObjectInitialValues",new Map);i(this,"_expectedAnimationIds",[]);i(this,"_propsToAnimate",[]);this._targets=F(t),this._originalTargets=this._targets,l&&this._applyAnimationConfig(l)}static setCreateAnimationCallback(t){_._createAnimationCallback=t}_applyAnimationConfig(t){t.from&&(this._fromVars=t.from),t.to&&(this._toVars=t.to),t.set&&(this._setVars=t.set),t.duration!==void 0&&(typeof t.duration!="number"||!isFinite(t.duration)||t.duration<0?console.warn(`[Motion] Invalid duration: ${t.duration}. Must be a finite number >=0. Using default.`):this._duration=t.duration),t.delay!==void 0&&(typeof t.delay!="number"||isNaN(t.delay)?console.warn(`[Motion] Invalid delay: ${t.delay}. Must be a number. Using default 0.`):isFinite(t.delay)?this._delay=t.delay:console.warn(`[Motion] Invalid delay: ${t.delay}. Infinity is not a valid delay. Using default 0.`)),t.ease&&(this._ease=t.ease),t.split&&(this._splitType=t.split),t.mask&&(this._mask=t.mask),t.stagger!==void 0&&(this._stagger=t.stagger),t.axis&&(this._axis=t.axis),t.fit&&(this._fitConfig=t.fit),t.flap&&(this._flapConfig=t.flap,this._splitType?this._splitType.includes("chars")||(this._splitType="chars,"+this._splitType):this._splitType="chars",this._stagger===void 0&&(this._stagger={each:0,from:"start"})),t.repeat&&(typeof t.repeat=="number"?this._repeat=t.repeat:(this._repeat=t.repeat.times,this._repeatDelay=t.repeat.delay,this._yoyo=t.repeat.yoyo)),t.onStart&&(this._onStart=t.onStart),t.onUpdate&&(this._onUpdate=t.onUpdate),t.onComplete&&(this._onComplete=t.onComplete),t.onRepeat&&(this._onRepeat=t.onRepeat),t.onReverseComplete&&(this._onReverseComplete=t.onReverseComplete)}_capturePlainObjectValues(t){for(let l of this._targets){if(l instanceof Element)continue;let r=l,f={};for(let d of t)d in r&&typeof r[d]=="number"&&(f[d]=r[d]);Object.keys(f).length>0&&this._plainObjectInitialValues.set(l,f)}}_restorePlainObjectValues(){for(let[t,l]of this._plainObjectInitialValues){let r=t;for(let[f,d]of Object.entries(l))r[f]=d}}_ensureBuilt(){this._built||this._build()}_isInvalidated(){return this._animations.length===0?!1:this._animations.some((t,l)=>{let r=t.getId(),f=this._expectedAnimationIds[l];return r===0||r!==f})}rebuildIfPooled(){if(this._isInvalidated()){this._restorePlainObjectValues();for(let t of this._targets)t instanceof Element&&(C(t),m.styleReset?.clearAnimationStylesForProps?.(t,this._propsToAnimate));this._resetBuildState(),this._ensureBuilt()}}_build(){if(this._built||this._targets.length===0||!this._fromVars&&!this._toVars&&!this._setVars&&!this._fitConfig&&this._duration<=0)return;if(this._fitConfig){if(!m.fit){console.warn("[Motion] FitResolver not loaded. Did you import the SDK?");return}if(this._built=!0,!_._createAnimationCallback)throw new Error("AnimationBuilder: Engine not initialized. Call Engine.init() first.");let e={};this._repeat!==void 0&&(e.repeat=this._repeat),this._repeatDelay!==void 0&&(e.repeatDelay=this._repeatDelay),this._yoyo&&(e.yoyo=this._yoyo),this._onStart&&(e.onStart=this._onStart),this._onUpdate&&(e.onUpdate=this._onUpdate),this._onComplete&&(e.onComplete=this._onComplete),this._onRepeat&&(e.onRepeat=this._onRepeat),this._onReverseComplete&&(e.onReverseComplete=this._onReverseComplete),this._stagger!==void 0&&(e.stagger=this._stagger);let s=[];for(let o of this._targets){if(!(o instanceof Element))continue;let p=_._createAnimationCallback([o],{},this._duration,this._delay,this._ease,!1,void 0,e);Array.isArray(p)?s.push(...p):s.push(p)}let n=this._fitConfig;for(let o of s)for(let p of o.getTargets())p instanceof Element&&m.fit.registerPendingSetup(o,p,n,j);this._animation=s[0]??null,this._animations=s,this._expectedAnimationIds=s.map(o=>o.getId());return}this._built=!0,this._setVars&&Object.keys(this._setVars).length>0&&this._toVars&&!this._fromVars&&(this._fromVars={...this._setVars},this._setVars=void 0);let t={},l=!1,r;if(this._fromVars&&this._toVars){t={...this._toVars},r={...this._fromVars},l=!0;for(let e of Object.keys(r))if(!(e in t))if(e in k)t[e]=k[e];else if(A(e))t[e]="";else if(v(e))t[e]="";else{let s=r[e];if(s==null)continue;let o=c(s).unit||R(e),p;for(let h of this._targets)if(h instanceof Element){if(V(e))try{let u=window.getComputedStyle(h).getPropertyValue(e).trim();u&&(p=c(u).value)}catch{}else p=O(h,e,o);break}let a=p??0;t[e]=o?`${a}${o}`:`${a}`}}else this._fromVars?(t={...this._fromVars},l=!0):this._toVars&&(t={...this._toVars});if(this._splitType&&m.textSplitter?.split){let e={mask:!!this._mask,consumer:this},s=[];for(let n of this._originalTargets)if(n instanceof Element){let o=m.textSplitter?.split(n,this._splitType,e);s.push(...o)}s.length>0&&(this._targets=s)}let f,d;if(this._flapConfig&&m.textFlapper?.prepare&&_._createAnimationCallback){if(r&&Object.keys(r).length>0){let s=[];for(let n of Object.keys(r)){let o=r[n],p=t[n];if(o===void 0||p===void 0||A(n)||v(n)||V(n)||n==="drawSVG"||n==="path"||n==="clip-path"||n==="clipPath")continue;let a=c(o),h=c(p),y=a.unit||h.unit||R(n);s.push({prop:n,from:a.value,to:h.value,unit:y,isTransform:U(n)})}s.length>0&&(d=s)}let e=this._targets.filter(s=>s instanceof HTMLElement);if(e.length>0){let s=this._repeat!==void 0&&this._repeat!==0,n=m.textFlapper.prepare(e,this._flapConfig,s,d),o=this._stagger&&m.stagger?m.stagger.resolve(e,this._stagger):void 0;f=[];let p=0;for(let a=0;a<e.length;a++){let h=e[a].textContent??"";if(h===""||h===" "||h==="\xA0"||h===`
`||h==="	")continue;if(p>=n.length)break;let u=n[p],S=o?o[a]:0,b=_._createAnimationCallback([u.el],{},this._duration,S,this._ease??"power1.out",!1,void 0,{onUpdate:u.render,onComplete:u.finalize,repeat:s?Math.ceil(60/this._duration):0,_skipInitialRender:this._skipInitialFromRender||void 0}),x=Array.isArray(b)?b:[b];f.push(...x),p++}}}if(f?.length&&this._flapConfig){let e=this._flapConfig.type??"flip",s=new Set(d?.map(a=>a.prop)??[]),n=a=>{if(s.has(a))return!0;switch(e){case"fade":return a==="opacity";case"blur":return v(a);default:return!1}},o=[];for(let a of Object.keys(t))n(a)&&(o.push(a),delete t[a]);if(r)for(let a of Object.keys(r))n(a)&&!o.includes(a)&&(o.push(a),delete r[a]);let p=o.filter(a=>!s.has(a));p.length>0&&console.warn(`[Motion.page] Flap type '${e}' owns '${p.join(", ")}' \u2014 user-defined values for these properties were removed. Use a different flap type to avoid this conflict.`)}if(this._propsToAnimate=Object.keys(t),r)for(let e of Object.keys(r))this._propsToAnimate.includes(e)||this._propsToAnimate.push(e);if(this._plainObjectInitialValues.size===0&&this._capturePlainObjectValues(this._propsToAnimate),l)for(let e of this._targets)e instanceof Element&&(C(e),m.styleReset?.clearAnimationStylesForProps?.(e,this._propsToAnimate));if(m.styleReset?.registerAnimatedProps)for(let e of this._targets)e instanceof Element&&m.styleReset?.registerAnimatedProps(e,this._propsToAnimate);let I={repeat:this._repeat,repeatDelay:this._repeatDelay,yoyo:this._yoyo,stagger:this._stagger,onStart:this._onStart,onUpdate:this._onUpdate,onComplete:this._onComplete,onRepeat:this._onRepeat,onReverseComplete:this._onReverseComplete,_skipInitialRender:this._skipInitialFromRender||void 0};if(!_._createAnimationCallback)throw new Error("AnimationBuilder: Engine not initialized. Call AnimationBuilder.setCreateAnimationCallback first.");if(Object.keys(t).length>0||r&&Object.keys(r).length>0||!f?.length){let e=_._createAnimationCallback(this._targets,t,this._duration,this._delay,this._ease,l,r,I);Array.isArray(e)?(this._animations=e,this._animation=e[0]||null):(this._animation=e,this._animations=[e])}if(f&&f.length>0&&(this._animations.push(...f),this._animation||(this._animation=f[0])),this._expectedAnimationIds=this._animations.map(e=>e.getId()),this._setVars&&Object.keys(this._setVars).length>0&&_._createAnimationCallback){let e=_._createAnimationCallback(this._targets,{...this._setVars},0,0,"none",!1,void 0,{_skipInitialRender:this._skipInitialFromRender||void 0}),s=Array.isArray(e)?e:[e];this._animations=[...s,...this._animations],this._expectedAnimationIds=this._animations.map(n=>n.getId())}}getAnimation(){return this._ensureBuilt(),this._animation}getAnimations(){return this._ensureBuilt(),this._animations}getTargets(){return this._targets}getOriginalTargets(){return this._originalTargets}hasSplit(){return!!this._splitType}hasFlap(){return!!this._flapConfig}_resetBuildState(){this._built=!1,this._animations=[],this._animation=null,this._expectedAnimationIds=[]}getConfig(){return{fromVars:this._fromVars?{...this._fromVars}:void 0,toVars:this._toVars?{...this._toVars}:void 0,setVars:this._setVars?{...this._setVars}:void 0,duration:this._duration,delay:this._delay,ease:this._ease,axis:this._axis,fit:this._fitConfig?{...this._fitConfig}:void 0,flap:this._flapConfig?{...this._flapConfig}:void 0,split:this._splitType,mask:this._mask,stagger:this._stagger,repeat:this._repeat,repeatDelay:this._repeatDelay,yoyo:this._yoyo,onStart:this._onStart,onUpdate:this._onUpdate,onComplete:this._onComplete,onRepeat:this._onRepeat,onReverseComplete:this._onReverseComplete}}setAxis(t){this._axis=t}getAxis(){return this._axis}setSkipInitialFromRender(t){this._skipInitialFromRender=t}};i(_,"_createAnimationCallback",null);var T=_;__SDK__.AnimationBuilder=T;
})();
(function(){var a=class{static parse(s,e,n,f){if(s===void 0)return e;if(typeof s=="number")return s;let t=s.trim();if(t==="<")return n;if(t===">")return f;if(t.startsWith("<")){let r=parseFloat(t.substring(1));if(!isNaN(r))return n+r}if(t.startsWith(">")){let r=parseFloat(t.substring(1));if(!isNaN(r))return f+r}if(t.startsWith("+=")){let r=parseFloat(t.substring(2));return e+r}if(t.startsWith("-=")){let r=parseFloat(t.substring(2));return e-r}return console.warn(`Invalid position parameter: "${t}", using current end`),e}};__SDK__.PositionParser=a;
})();
(function(){var k=Object.defineProperty;var D=(C,e,s)=>e in C?k(C,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):C[e]=s;var c=(C,e,s)=>D(C,typeof e!="symbol"?e+"":e,s);const{AnimationBuilder: T}=__SDK__;const{PositionParser: S}=__SDK__;const{SDKRegistry: _}=__SDK__;const{isElement: b}=__SDK__;const{getOriginalCSSValueWithUnit: w, isTransformProp: A, isColorProp: F, isFilterProp: P, isPathProp: V, isDrawSVGProp: M}=__SDK__;const{clearTransformCache: x}=__SDK__;var f=class f{constructor(e,s){c(this,"_name");c(this,"_children",[]);c(this,"_duration",0);c(this,"_time",0);c(this,"_progress",0);c(this,"_timeScale",1);c(this,"_isActive",!1);c(this,"_isReversed",!1);c(this,"_killed",!1);c(this,"_atZeroState",!1);c(this,"_repeat",0);c(this,"_repeatDelay",0);c(this,"_yoyo",!1);c(this,"_currentRepeat",0);c(this,"_completeFired",!1);c(this,"_inRepeatDelay",!1);c(this,"_repeatDelayCounter",0);c(this,"_onStart");c(this,"_onUpdate");c(this,"_onComplete");c(this,"_onRepeat");c(this,"_startFired",!1);c(this,"_trigger");c(this,"_unregisterCallback");c(this,"_previousStart",0);c(this,"_previousEnd",0);c(this,"_eachInstances");c(this,"_eachDuration");c(this,"_initialValues",new Map);c(this,"_initialTransforms",new Map);c(this,"_transformElements",new Set);c(this,"_savedTransitions",new Map);c(this,"_transitionsDisabled",!1);c(this,"_splitParentOverrides",new Map);this._name=e,s?.repeat!==void 0&&(typeof s.repeat=="number"?this._repeat=s.repeat:(this._repeat=s.repeat.times,this._repeatDelay=s.repeat.delay??0,this._yoyo=s.repeat.yoyo??!1)),s?.onStart&&(this._onStart=s.onStart),s?.onUpdate&&(this._onUpdate=s.onUpdate),s?.onComplete&&(this._onComplete=s.onComplete),s?.onRepeat&&(this._onRepeat=s.onRepeat),e&&f._registerWithEngine&&f._registerWithEngine(e,this)}static setEngineRegisterCallback(e){f._registerWithEngine=e}static setEngineActivationCallback(e){f._activateEngine=e}setUnregisterCallback(e){this._unregisterCallback=e}_notifyActivated(){f._activateEngine?.()}duration(){return this._eachDuration!==void 0?this._eachDuration:this._duration}totalDuration(){return this._repeat===-1?1/0:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat}clear(){for(let e of this._children)(e.type==="animation"||e.type==="timeline")&&e.child.kill();return this._children=[],this._duration=0,this._time=0,this._progress=0,this._isActive=!1,this._isReversed=!1,this._startFired=!1,this._previousStart=0,this._previousEnd=0,this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._splitParentOverrides.clear(),this._clearTransitionData(),this._currentRepeat=0,this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0,this}_captureInitialValues(e){let s=e.getTargets(),i=e.getFirstPropTween();for(;i;){let t=i.property;for(let r of s){if(!(r instanceof Element))continue;let o=this._initialValues.get(r);if(o||(o=new Map,this._initialValues.set(r,o)),!o.has(t)){let n=r;if(A(t)||V(t)){if(this._transformElements.add(r),!this._initialTransforms.has(r)){let a=n.style.transform;this._initialTransforms.set(r,a||null)}o.set(t,{removeInline:!0})}else if(F(t)||P(t))o.set(t,{removeInline:!0});else if(M(t))o.set(t,{removeInline:!0});else{let a=t.replace(/([A-Z])/g,"-$1").toLowerCase();if(n.style.getPropertyValue(a)!==""){let p=w(r,t);o.set(t,{removeInline:!1,value:p.value,unit:p.unit})}else o.set(t,{removeInline:!0})}}}i=i.next}}_restoreInitialValues(){for(let e of this._transformElements){let s=e;x(e);let i=this._initialTransforms.get(e);i?s.style.transform=i:s.style.removeProperty("transform")}for(let[e,s]of this._initialValues){let i=e;for(let[t,r]of s){if(A(t))continue;if(M(t)){i.style.removeProperty("stroke-dasharray"),i.style.removeProperty("stroke-dashoffset");continue}let o=t.replace(/([A-Z])/g,"-$1").toLowerCase();if(r.removeInline)i.style.removeProperty(o);else{let n=`${r.value}${r.unit}`;i.style.setProperty(o,n)}}}}_disableTransitions(){if(!this._transitionsDisabled){for(let e of this._savedTransitions.keys())e.style.transition="none";this._transitionsDisabled=!0}}_restoreTransitions(){if(this._transitionsDisabled){for(let[e,s]of this._savedTransitions)e.style.transition=s;this._transitionsDisabled=!1}}_clearTransitionData(){this._restoreTransitions(),this._savedTransitions.clear(),this._transitionsDisabled=!1}_addEntry(e,s,i){let t=S.parse(i,this._duration,this._previousStart,this._previousEnd),r=new T(e,s);return this._addBuilder(r,t)}_addBuilder(e,s){e.setSkipInitialFromRender(!0);let i=e.getAnimations();if(i.length===0)return this;let t=s;for(let r of i){let o=r.getDelay(),n=s+o;r.clearDelay();let a=r.totalDuration(),h={type:"animation",child:r,builder:e,startTime:n,duration:a};this._children.push(h),r.setTimelineChild(!0),r.pause(),this._captureInitialValues(r);for(let l of r.getTargets())l instanceof HTMLElement&&!this._savedTransitions.has(l)&&this._savedTransitions.set(l,l.style.transition);let p=!!e.getConfig().fromVars;if(n>0&&!p&&r.setLazyStartCapture(!0),p&&r.renderAtTime(0),e.hasSplit()){for(let l of e.getOriginalTargets())if(l instanceof Element){let u=l;this._splitParentOverrides.has(u)||this._splitParentOverrides.set(u,u.style.opacity),u.style.opacity="1"}}let m=n+a;m>t&&(t=m)}return this._previousStart=s,this._previousEnd=t,t>this._duration&&(this._duration=t),this}call(e,s,i){let t=S.parse(i,this._duration,this._previousStart,this._previousEnd),r={type:"callback",child:e,startTime:t,duration:0,params:s};return this._children.push(r),this._previousStart=t,this._previousEnd=t,t>this._duration&&(this._duration=t),this}_getFirstAnimationTarget(){let e=this._children[0];if(e?.type==="animation"&&e.builder){let i=e.builder,t=i.hasSplit()?i.getOriginalTargets():i.getTargets();for(let r of t)if(b(r))return r}let s=this.getFirstChildAnimation();if(s){let i=s.getTargets();for(let t of i)if(b(t))return t}}_getAllAnimationTargets(){let e=[],s=new Set,i=new Set;for(let t of this._children)if(t.type==="animation"&&t.builder){if(i.has(t.builder))continue;i.add(t.builder);let r=t.builder.hasSplit()?t.builder.getOriginalTargets():t.builder.getTargets();for(let o of r)b(o)&&!s.has(o)&&(s.add(o),e.push(o))}return e}_createInstanceForElement(e,s){let t=`${this._name||"__each"}__each_${s}_${f._eachCounter++}`,r=new f(t),o=new Set;for(let n of this._children)if(n.type==="animation"&&n.builder){if(o.has(n.builder)||(o.add(n.builder),!(n.builder.hasSplit()?n.builder.getOriginalTargets():n.builder.getTargets()).filter(u=>b(u)).includes(e)))continue;let h=n.builder.getConfig(),p=h.repeat!=null?{times:h.repeat,delay:h.repeatDelay,yoyo:h.yoyo}:void 0,m=n.builder.hasSplit(),l=new T(e,{from:h.fromVars,to:h.toVars,set:h.setVars,duration:h.duration,delay:h.delay,ease:h.ease,repeat:p,...m&&h.split?{split:h.split}:{},...m&&h.mask?{mask:h.mask}:{},...m&&h.stagger!==void 0?{stagger:h.stagger}:{},...h.flap?{flap:h.flap}:{},...h.fit?{fit:h.fit}:{},onStart:h.onStart,onUpdate:h.onUpdate,onComplete:h.onComplete,onRepeat:h.onRepeat,onReverseComplete:h.onReverseComplete});h.axis&&l.setAxis(h.axis),r._addBuilder(l,n.startTime)}else n.type==="callback"&&r.call(n.child,n.params,n.startTime);return r}_createInstanceForElements(e,s){let t=`${this._name||"__each"}__each_${s}_${f._eachCounter++}`,r=new f(t),o=new Set;for(let n of this._children)if(n.type==="animation"&&n.builder){if(o.has(n.builder))continue;o.add(n.builder);let a=n.builder.getConfig(),h=(n.builder.hasSplit()?n.builder.getOriginalTargets():n.builder.getTargets()).filter(d=>b(d)),p=e.filter(d=>h.includes(d));if(p.length===0)continue;let m=a.repeat!=null?{times:a.repeat,delay:a.repeatDelay,yoyo:a.yoyo}:void 0,l=n.builder.hasSplit(),u=new T(p,{from:a.fromVars,to:a.toVars,set:a.setVars,duration:a.duration,delay:a.delay,ease:a.ease,repeat:m,...l&&a.split?{split:a.split}:{},...l&&a.mask?{mask:a.mask}:{},...l&&a.stagger!==void 0?{stagger:a.stagger}:{},...a.flap?{flap:a.flap}:{},...a.fit?{fit:a.fit}:{},onStart:a.onStart,onUpdate:a.onUpdate,onComplete:a.onComplete,onRepeat:a.onRepeat,onReverseComplete:a.onReverseComplete});a.axis&&u.setAxis(a.axis),r._addBuilder(u,n.startTime)}else n.type==="callback"&&r.call(n.child,n.params,n.startTime);return r}_findScopedTargetsForContainer(e,s,i){let t=s.filter(o=>e.contains(o));if(t.length>0)return t;let r=e.parentElement;if(r){let o=s.filter(n=>n!==e&&r.contains(n)&&!i.some(a=>a!==e&&a.contains(n)));if(o.length>0)return o}return[]}_resolveTargetElements(e){if(typeof e!="string")return[e];if(typeof document<"u")try{return Array.from(document.querySelectorAll(e))}catch(s){console.warn(`[Motion] Invalid selector "${e}":`,s)}return[]}_setupEachModeGeneric(e,s){if(e.length===0)return;this._eachInstances=[];let i=new Set(this._children.filter(t=>t.type==="animation"&&t.builder?.hasSplit()).map(t=>t.builder));if(i.size>0)for(let t of e)for(let r of i)_.textSplitter?.revert?.(t,r);this._clearTransitionData();for(let t=0;t<e.length;t++){let r=e[t],o=this._createInstanceForElement(r,t);s(o,r),this._eachInstances.push(o)}{let t=null,r=this._onUpdate,o=this._onStart,n=this._onComplete;for(let a of this._eachInstances)r&&a.onUpdate((h,p)=>{let m=h>0&&h<1;m&&(t=a),t===a&&(r(h,p),m||(t=null))}),o&&a.onStart(()=>{t=a,o()}),n&&a.onComplete(()=>{t===a&&(t=null,n())})}this._eachDuration=this._duration;for(let t of this._children)if(t.type==="animation"){let r=t.child;r.setTimelineChild(!1),r.kill()}else t.type==="timeline"&&t.child.kill();this._children=[],this._duration=0,this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._splitParentOverrides.clear(),this._isActive=!1,this._time=0,this._progress=0,this._isReversed=!1,this._startFired=!1}_setupEachMode(e,s){let i=_.triggerManager?.getInstance?.();if(!i)return;let{each:t,...r}=s;if(s.target){let n=this._resolveTargetElements(s.target);if(n.length===0)return;let a=this._getAllAnimationTargets(),h=new Set;for(let l of n){let u=a.filter(g=>l.contains(g));if(u.length>0){for(let g of u)h.add(g);continue}let d=l.parentElement;if(d){let g=a.filter(v=>v!==l&&d.contains(v)&&!n.some(y=>y!==l&&y.contains(v)));for(let v of g)h.add(v)}}if(!a.every(l=>h.has(l))){let l=new Set(this._children.filter(u=>u.type==="animation"&&u.builder?.hasSplit()).map(u=>u.builder));if(l.size>0)for(let u of a)for(let d of l)_.textSplitter?.revert?.(u,d);this._setupEachModeGeneric(a,(u,d)=>{e==="scroll"?i.registerScroll(u,{...r,target:d}):e==="hover"?i.registerHover(u,{...r,target:d}):i.registerClick(u,{...r,target:d})});return}let m=new Set(this._children.filter(l=>l.type==="animation"&&l.builder?.hasSplit()).map(l=>l.builder));if(m.size>0)for(let l of a)for(let u of m)_.textSplitter?.revert?.(l,u);this._clearTransitionData(),this._eachInstances=[];for(let l=0;l<n.length;l++){let u=n[l],d=this._findScopedTargetsForContainer(u,a,n);if(d.length===0)continue;let g=this._createInstanceForElements(d,l);e==="scroll"?i.registerScroll(g,{...r,target:u}):e==="hover"?i.registerHover(g,{...r,target:u}):i.registerClick(g,{...r,target:u}),this._eachInstances.push(g)}{let l=null,u=this._onUpdate,d=this._onStart,g=this._onComplete;for(let v of this._eachInstances)u&&v.onUpdate((y,R)=>{let E=y>0&&y<1;E&&(l=v),l===v&&(u(y,R),E||(l=null))}),d&&v.onStart(()=>{l=v,d()}),g&&v.onComplete(()=>{l===v&&(l=null,g())})}this._eachDuration=this._duration;for(let l of this._children)if(l.type==="animation"){let u=l.child;u.setTimelineChild(!1),u.kill()}else l.type==="timeline"&&l.child.kill();this._children=[],this._duration=0,this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._splitParentOverrides.clear(),this._isActive=!1,this._time=0,this._progress=0,this._isReversed=!1,this._startFired=!1;return}let o=this._getAllAnimationTargets();this._setupEachModeGeneric(o,(n,a)=>{e==="scroll"?i.registerScroll(n,{...r,target:a}):e==="hover"?i.registerHover(n,{...r,target:a}):i.registerClick(n,{...r,target:a})})}onHover(e){if(e?.each)return this._setupEachMode("hover",e),this;let s=e?.target??this._getFirstAnimationTarget();return _.triggerManager?.getInstance?.().registerHover(this,{target:s,onEnter:e?.onEnter,onLeave:e?.onLeave,leaveDelay:e?.leaveDelay}),this}onClick(e){if(e?.each)return this._setupEachMode("click",e),this;let s=e?.target??this._getFirstAnimationTarget();return _.triggerManager?.getInstance?.().registerClick(this,{target:s,secondTarget:e?.secondTarget,toggle:e?.toggle,preventDefault:e?.preventDefault}),this}onScroll(e){if(e?.each)return this._setupEachMode("scroll",e),this;let s=e?.target??this._getFirstAnimationTarget();return _.triggerManager?.getInstance?.().registerScroll(this,{...e,target:s}),this}onMouseMove(e){return e?.each&&e.target?(this._setupMouseMoveEachMode(e),this):(_.triggerManager?.getInstance?.().registerMouseMove(this,{type:e?.type??"distance",target:e?.target,smooth:e?.smooth,startProgress:e?.startProgress,leaveProgress:e?.leaveProgress}),this)}_setupMouseMoveEachMode(e){if(!e.target)return;let s=[];typeof e.target=="string"?typeof document<"u"&&(s=Array.from(document.querySelectorAll(e.target))):s=[e.target];let i=_.triggerManager?.getInstance?.();i&&this._setupEachModeGeneric(s,(t,r)=>{i.registerMouseMove(t,{type:e.type??"distance",target:r,smooth:e.smooth,startProgress:e.startProgress,leaveProgress:e.leaveProgress})})}onPageLoad(e){return _.triggerManager?.getInstance?.().registerPageLoad(this,e||{}),this}onPageExit(e){return _.triggerManager?.getInstance?.().registerPageExit(this,e||{}),this}onGesture(e){return e.each?(this._setupGestureEachMode(e),this):(_.triggerManager?.getInstance?.().registerGesture(this,e),this)}_setupGestureEachMode(e){let s=[];if(e.target?typeof e.target=="string"?typeof document<"u"&&(s=Array.from(document.querySelectorAll(e.target))):s=[e.target]:s=this._getAllAnimationTargets(),this._setupEachModeGeneric(s,()=>{}),!this._eachInstances||this._eachInstances.length===0)return;let i=_.triggerManager?.getInstance?.();if(i)for(let t=0;t<s.length;t++){let r=s[t],o=this._eachInstances[t];i.registerGesture(o,{...e,target:r,each:!1,_siblings:this._eachInstances,_index:t})}}onCursor(e){return _.triggerManager?.getInstance?.().registerCursor(this,e),this}_updateCallbackChild(e,s,i){let t=e.startTime,r=s<t&&this._time>=t,o=s>t&&this._time<=t,n=Math.abs(this._time-t)<.001;if(r||o||n&&i===0){let a=e.child,h=e.params||[];a(...h)}}_updateAnimationChild(e,s){let i=e.child,t=Math.abs(i.getTimeScale())||1,r=i.totalDuration()/t,o=this._time-e.startTime,n=o*t;o>=0&&o<=r?(i.isActive()||(i.captureStartValues(),i.play()),i.renderAtTime(n)):o<0?(i.isLazyCapture()||i.renderAtTime(0),i.isActive()&&(i.pause(),i.fireReverseComplete())):i.isActive()?(i.renderAtTime(i.totalDuration()),i.pause()):s===0&&(i.needsStartCapture()&&i.captureStartValues(),i.renderAtTime(i.totalDuration()))}_updateTimelineChild(e,s){let i=e.child,t=i.duration(),r=this._time-e.startTime;r>=0&&r<=t?(i.isActive()||i.play(),i.time(r)):i.isActive()?r<0?(i.time(0),i.pause()):(i.time(t),i.pause()):s===0&&(r<0||i.time(t))}update(e){if(this._eachInstances){for(let t of this._eachInstances)t.update(e);return}let s=this._time;if(!(!this._isActive&&e===0)){if(!this._isActive)return}let i=e*this._timeScale;if(this._inRepeatDelay&&e>0){if(this._repeatDelayCounter-=i,this._repeatDelayCounter>0)return;if(this._inRepeatDelay=!1,this._repeatDelayCounter=0,this._isReversed){this._time=this._duration;for(let t of this._children)t.type==="animation"&&t.child.resetForReplay()}else this._time=0,this._startFired=!1,this._resetChildrenForCycle()}else if(!this._inRepeatDelay&&(this._time+=this._isReversed?-i:i,e>0)){if(!this._isReversed&&this._time>=this._duration&&this._repeat!==0){if(this._repeat===-1||this._currentRepeat<this._repeat){this._time=this._duration,this._currentRepeat++;try{this._onRepeat?.(this._currentRepeat)}catch(r){console.error("[Motion] onRepeat callback error:",r)}if(this._yoyo){this._isReversed=!0;for(let r of this._children)r.type==="animation"&&r.child.resetForReplay()}else{let r=this._time-this._duration;this._time=Math.max(0,r),this._startFired=!1,this._resetChildrenForCycle()}this._repeatDelay>0&&(this._inRepeatDelay=!0,this._repeatDelayCounter=this._repeatDelay)}}else if(this._isReversed&&this._time<=0&&this._yoyo&&this._repeat!==0&&(this._repeat===-1||this._currentRepeat<this._repeat)){this._time=0,this._currentRepeat++;try{this._onRepeat?.(this._currentRepeat)}catch(r){console.error("[Motion] onRepeat callback error:",r)}this._isReversed=!1,this._startFired=!1,this._resetChildrenForCycle(),this._repeatDelay>0&&(this._inRepeatDelay=!0,this._repeatDelayCounter=this._repeatDelay)}}this._time<0?this._time=0:this._time>this._duration&&(this._time=this._duration),this._progress=this._duration>0?this._time/this._duration:0,!this._startFired&&this._isActive&&this._time>0&&(this._startFired=!0,this._disableTransitions(),this._onStart?.()),this._isActive&&this._onUpdate?.(this._progress,this._time);for(let t of this._children)t.type==="callback"?this._updateCallbackChild(t,s,e):t.type==="animation"?this._updateAnimationChild(t,e):t.type==="timeline"&&this._updateTimelineChild(t,e);if(!this._completeFired){let t=!this._isReversed&&this._time>=this._duration,r=this._isReversed&&this._time<=0,o=this._repeat!==-1&&this._currentRepeat>=this._repeat;t&&(this._repeat===0||o)?(this._completeFired=!0,this._isActive=!1,this._startFired=!1,this._restoreTransitions(),this._onComplete?.()):r&&(this._repeat===0||this._yoyo&&o)&&(this._completeFired=!0,this._isActive=!1,this._startFired=!1,this._restoreTransitions(),this._onComplete?.())}}play(e){if(this._killed)return console.warn("[Motion] Cannot play a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.play(e);return this}if(e!==void 0)this._time=e,this._progress=this._duration>0?this._time/this._duration:0,e===0&&(this._currentRepeat=0,this._inRepeatDelay=!1,this._repeatDelayCounter=0);else if(this._time>=this._duration&&!this._isReversed)return this;return this._completeFired=!1,this._isReversed=!1,this._isActive=!0,this._atZeroState=!1,this._notifyActivated(),this}pause(e){if(this._killed)return console.warn("[Motion] Cannot pause a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.pause(e);return this}e!==void 0&&(this._time=e,this._progress=this._duration>0?this._time/this._duration:0),this._isActive=!1;for(let s of this._children)if(s.type!=="callback"){let i=s.child;"pause"in i&&i.pause()}return this}reverse(e){if(this._killed)return console.warn("[Motion] Cannot reverse a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.reverse(e);return this}if(e!==void 0)this._time=e,this._progress=this._duration>0?this._time/this._duration:0;else if(this._time<=0&&this._isReversed)return this;return this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0,this._isReversed=!0,this._isActive=!0,this._atZeroState=!1,this._notifyActivated(),this}restart(){if(this._killed)return console.warn("[Motion] Cannot restart a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let e of this._eachInstances)e.restart();return this}this._time=0,this._progress=0,this._isActive=!0,this._isReversed=!1,this._startFired=!1,this._atZeroState=!1,this._currentRepeat=0,this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0;for(let e of this._children)e.type==="animation"&&e.child.resetForReplay();return this._restoreInitialValues(),this._renderPositionZeroAnimations(),this._notifyActivated(),this}_resetChildrenForCycle(){for(let e of this._children)e.type==="animation"&&e.child.resetForReplay();this._restoreInitialValues(),this._renderPositionZeroAnimations()}_renderPositionZeroAnimations(){for(let e of this._children)if(e.type==="animation"){let s=e.child;s.isLazyCapture()||s.renderAtTime(0),s.isActive()&&s.pause()}else e.type==="timeline"&&e.child.progress(0)}seek(e){if(this._killed)return console.warn("[Motion] Cannot seek a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.seek(e);return this}if(this._time=Math.max(0,Math.min(e,this._duration)),this._progress=this._duration>0?this._time/this._duration:0,this._atZeroState=!1,this._repeat!==0)for(let s of this._children)s.type==="animation"&&s.child.resetForReplay();return this.update(0),this}setAxisProgress(e,s){let i=Math.max(0,Math.min(1,s));for(let t of this._children)if(t.type==="animation"&&t.builder&&t.builder.getConfig().axis===e){let o=t.child,n=o.totalDuration();o.isActive()||(o.captureStartValues(),o.play()),o.renderAtTime(i*n)}return this}onStart(e){return this._onStart=e,this}onUpdate(e){return this._onUpdate=e,this}onComplete(e){return this._onComplete=e,this}onRepeat(e){return this._onRepeat=e,this}withRepeat(e){return typeof e=="number"?(this._repeat=e,this._repeatDelay=0,this._yoyo=!1):(this._repeat=e.times,this._repeatDelay=e.delay??0,this._yoyo=e.yoyo??!1),this}progress(e){if(e===void 0){if(this._eachInstances&&this._eachInstances.length>0){let i=0;for(let t of this._eachInstances){let r=t.progress();r>i&&(i=r)}return i}return this._progress}if(this._eachInstances){for(let i of this._eachInstances)i.progress(e);return this}let s=Math.max(0,Math.min(1,e));if(!this._transitionsDisabled&&this._savedTransitions.size>0&&this._disableTransitions(),s===0)for(let i of this._children)i.type==="animation"&&i.child.resetForReplay();return this._time=s*this._duration,this._progress=s,s===0?this._atZeroState||(this._restoreInitialValues(),this._renderPositionZeroAnimations(),this._atZeroState=!0):(this._atZeroState=!1,this.update(0)),this._onUpdate?.(this._progress,this._time),this}time(e){if(e===void 0){if(this._eachInstances&&this._eachInstances.length>0){let s=0;for(let i of this._eachInstances){let t=i.time();t>s&&(s=t)}return s}return this._time}if(this._eachInstances){for(let s of this._eachInstances)s.time(e);return this}return this._time=Math.max(0,Math.min(e,this._duration)),this._progress=this._duration>0?this._time/this._duration:0,this.update(0),this}timeScale(e){return e===void 0?this._timeScale:(this._timeScale=e,this)}kill(e=!0){if(this._killed=!0,this._isActive=!1,this._atZeroState=!1,_.triggerManager?.getInstance?.().unregister(this),this._eachInstances){for(let i of this._eachInstances)i.kill(e);this._eachInstances=void 0}if(this._clearTransitionData(),e&&(this._initialValues.size>0||this._transformElements.size>0)&&this._restoreInitialValues(),e&&this._splitParentOverrides.size>0){for(let[i,t]of this._splitParentOverrides)t?i.style.opacity=t:i.style.removeProperty("opacity");this._splitParentOverrides.clear()}let s=new Set(this._children.filter(i=>i.type==="animation"&&i.builder?.hasSplit()).map(i=>i.builder));if(s.size>0)for(let i of s)for(let t of i.getOriginalTargets())t instanceof Element&&_.textSplitter?.revert?.(t,i);for(let i of this._children)if(i.type==="animation"){let t=i.child;t.setTimelineChild(!1),t.kill()}else i.type==="timeline"&&i.child.kill(e);this._unregisterCallback&&(this._unregisterCallback(),this._unregisterCallback=void 0),this._children=[],this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._savedTransitions.clear(),this._splitParentOverrides.clear(),this._transitionsDisabled=!1,this._duration=0,this._time=0,this._progress=0,this._previousStart=0,this._previousEnd=0,this._isReversed=!1,this._startFired=!1,this._currentRepeat=0,this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0}isActive(){return this._eachInstances?this._eachInstances.some(e=>e.isActive()):this._isActive}reversed(){return this._eachInstances?this._eachInstances.some(e=>e.reversed()):this._isReversed}getName(){return this._name}getFirstChildAnimation(){let e=this._children[0];return e?.type==="animation"?e.child:null}getFirstChildBuilder(){let e=this._children[0];return e?.type==="animation"&&e.builder?e.builder:null}};c(f,"_eachCounter",0),c(f,"_registerWithEngine",null),c(f,"_activateEngine",null);var I=f;__SDK__.Timeline=I;
})();
(function(){const{Animation: t}=__SDK__;const{ObjectPool: i}=__SDK__;var o=new i(()=>new t,100),r={acquire:()=>o.acquire(),release:e=>o.release(e),getPoolSize:()=>o.getPoolSize(),getTotalCreated:()=>o.getTotalCreated(),clear:()=>o.clear()};__SDK__.AnimationPool=r;
})();
(function(){var x=Object.defineProperty;var _=(a,e,t)=>e in a?x(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var h=(a,e,t)=>_(a,typeof e!="symbol"?e+"":e,t);const{Ticker: R}=__SDK__;const{Timeline: v}=__SDK__;const{AnimationBuilder: z}=__SDK__;const{AnimationPool: X}=__SDK__;const{PropTweenPool: Y}=__SDK__;const{parseProperty: D}=__SDK__;const{setTransformValue: F, buildTransformString: E}=__SDK__;const{SDKRegistry: I}=__SDK__;const{cleanupPathParser: Z}=__SDK__;var b=class b{constructor(){h(this,"animations",[]);h(this,"animationIdToIndex",new Map);h(this,"nextAnimationId",1);h(this,"totalCreated",0);h(this,"_animationSnapshot",[]);h(this,"timelines",new Map);h(this,"_captureTarget",null);h(this,"ticker");h(this,"_tickerSubscribed",!1);h(this,"animationPool");h(this,"propTweenPool");h(this,"update",e=>{let t=this._animationSnapshot,s=this.animations.length;t.length=s;for(let i=0;i<s;i++)t[i]=this.animations[i];let r=[];for(let i=0,c=t.length;i<c;i++){let l=t[i];l.isTimelineChild()||l.isActive()&&(l.update(e),!l.isActive()&&!l.isTimelineChild()&&r.push(l.getId()))}for(let i of r)this.unregisterAnimation(i);for(let i of this.timelines.values())i.isActive()&&i.update(e);this._releaseTickerIfIdle()});this.ticker=R.getInstance(),this.animationPool=X,this.propTweenPool=Y}static getInstance(){return b.instance||(b.instance=new b,v.setEngineRegisterCallback((e,t)=>{let s=b.instance;s.hasTimeline(e)||s.registerTimeline(e,t)}),v.setEngineActivationCallback(()=>{b.instance._ensureTickerSubscription()}),z.setCreateAnimationCallback((e,t,s,r,i,c,l,p)=>b.instance.createAnimation(e,t,s,r,i,c,l,p))),b.instance}_ensureTickerSubscription(){this._tickerSubscribed||(this.ticker.add(this.update,0),this._tickerSubscribed=!0)}_hasActiveWork(){for(let e=0,t=this.animations.length;e<t;e++){let s=this.animations[e];if(!s.isTimelineChild()&&s.isActive())return!0}for(let e of this.timelines.values())if(e.isActive())return!0;return!1}_releaseTickerIfIdle(){!this._tickerSubscribed||this._hasActiveWork()||(this.ticker.remove(this.update),this._tickerSubscribed=!1)}createAnimation(e,t,s,r,i,c,l,p){let n=p?.stagger;if(n&&e.length>1)return this.createStaggeredAnimations(e,t,s,r,i,c,l,n,p);let T=this.animationPool.acquire(),P=this.registerAnimation(T);return T.init(P,e,s,r,i,p),this.setupPropertyTweens(T,e,t,c,l),s===0?T.render(1):c&&!p?._skipInitialRender&&T.render(0),T}createStaggeredAnimations(e,t,s,r,i,c,l,p,n){if(!I.stagger){let u=this.animationPool.acquire(),A=this.registerAnimation(u);return u.init(A,e,s,r,i,n),this.setupPropertyTweens(u,e,t,c,l),s===0?u.render(1):c&&!n?._skipInitialRender&&u.render(0),[u]}let T=I.stagger.resolve(e,p),P=[];for(let u=0;u<e.length;u++){let A=e[u],d=T[u],m=this.animationPool.acquire(),y=this.registerAnimation(m);m.init(y,[A],s,r+d,i,n),this.setupPropertyTweens(m,[A],t,c,l),s===0?m.render(1):c&&!n?._skipInitialRender&&m.render(0),P.push(m)}return P}setupPropertyTweens(e,t,s,r,i){let c=V(S(s)),l=i?V(S(i)):void 0,p=Object.keys(c),n=l?Object.keys(l):[],T=[...new Set([...p,...n])],P="perspective"in c,u=l&&"perspective"in l,A=P&&u;for(let d of t){if(!A&&(P||u)&&d instanceof Element){let m=P?c.perspective:l.perspective,y=typeof m=="number"?m:parseFloat(String(m))||0;y>0&&(F(d,"perspective",y,"px"),d.style.transform=E(d))}for(let m of T){if(m==="perspective"&&!A)continue;let y=c[m],o=D(d,m,y,l?l[m]:void 0),w=this.propTweenPool.acquire(),f=r&&!i;switch(o.type){case"color":{let g=f?o.endColor:o.startColor,k=f?o.startColor:o.endColor;w.initColor(d,m,g,k);break}case"filter":{let g=f?o.endFilters:o.startFilters,k=f?o.startFilters:o.endFilters;w.initFilter(d,m,g,k);break}case"clipPath":{let g=f?o.endClipPath:o.startClipPath,k=f?o.startClipPath:o.endClipPath;w.initClipPath(d,m,g,k);break}case"scalar":{let g=f?o.endValue:o.startValue,k=f?o.startValue:o.endValue;w.init(d,m,g,k,o.unit);break}case"drawSVG":{let g=f?o.endDraw:o.startDraw,k=f?o.startDraw:o.endDraw;w.initDrawSVG(d,m,g,k,o.length);break}case"path":{let g=f?o.endProgress:o.startProgress,k=f?o.startProgress:o.endProgress;w.initPath(d,m,o.pathData,o.pathLength,g,k,o.rotate,o.alignOffset,o.pathOffset);break}}e.addPropTween(w)}}}registerAnimation(e){let t=this.nextAnimationId++,s=this.animations.length;return this.animations.push(e),this.animationIdToIndex.set(t,s),this.totalCreated++,e.setUnregisterCallback(()=>this.unregisterAnimation(t)),e.setActivationCallback(()=>this._ensureTickerSubscription()),t}unregisterAnimation(e){let t=this.animationIdToIndex.get(e);if(t===void 0)return;let s=this.animations[t],r=this.animations.length-1;if(t!==r){let i=this.animations[r];this.animations[t]=i,this.animationIdToIndex.set(i.getId(),t)}this.animations.pop(),this.animationIdToIndex.delete(e),this.animationPool.release(s),this._releaseTickerIfIdle()}getAnimation(e){let t=this.animationIdToIndex.get(e);return t!==void 0?this.animations[t]:void 0}killAll(){let e=[...this.animations];for(let t=0,s=e.length;t<s;t++)e[t].kill();this.animations.length=0,this.animationIdToIndex.clear(),this._releaseTickerIfIdle()}killAnimationsForTargets(e){if(e.length===0)return;let t=new Set(e),s=[];for(let r=0,i=this.animations.length;r<i;r++){let c=this.animations[r],l=c.getTargets();for(let p of l)if(p instanceof Element&&t.has(p)){s.push(c);break}}for(let r of s)r.kill()}getActiveCount(){let e=0;for(let t=0,s=this.animations.length;t<s;t++)this.animations[t].isActive()&&e++;return e}getTotalCreated(){return this.totalCreated}getTimeline(e){this._captureTarget&&this._captureTarget.add(e);let t=this.timelines.get(e);return t||(t=new v(e),this.timelines.has(e)||(this.timelines.set(e,t),t.setUnregisterCallback(()=>this.removeTimeline(e)))),t}startCapture(e){this._captureTarget=e}stopCapture(){this._captureTarget=null}hasTimeline(e){return this.timelines.has(e)}registerTimeline(e,t){this.timelines.set(e,t),t.setUnregisterCallback(()=>this.removeTimeline(e))}getTimelineCount(){return this.timelines.size}getTimelineNames(){return Array.from(this.timelines.keys())}removeTimeline(e){this.timelines.delete(e),this._releaseTickerIfIdle()}killAllTimelines(){for(let e of this.timelines.values())e.kill();this.timelines.clear(),this._releaseTickerIfIdle()}killEverything(){this.killAllTimelines(),this.killAll(),Z()}getAnimationPool(){return this.animationPool}getPropTweenPool(){return this.propTweenPool}getPoolStats(){return{animations:this.animationPool.getPoolSize(),propTweens:this.propTweenPool.getPoolSize()}}clearPools(){this.animationPool.clear(),this.propTweenPool.clear()}getMemoryEstimate(){let e=this.animations.length,t=this.animationPool.getPoolSize(),s=this.propTweenPool.getPoolSize();return(e+t)*500+s*100}getTicker(){return this.ticker}};h(b,"instance");var C=b;function S(a){if(!("transform"in a))return a;let e=a.transform;if(typeof e!="string")return a;let t=/([a-zA-Z0-9]+)\(([^)]+)\)/g,s,r={},i=!1;for(;(s=t.exec(e))!==null;){let l=s[1],n=s[2].match(/[-+]?\d*\.?\d+(?:e[-+]?\d+)?[a-z%]*/gi)||[];switch(l){case"perspective":{"perspective"in a||(r.perspective=n[0]||"0px",i=!0);break}case"translate":{n[0]&&!("x"in a)&&(r.x=n[0],i=!0),n[1]&&!("y"in a)&&(r.y=n[1],i=!0);break}case"translate3d":{n[0]&&!("x"in a)&&(r.x=n[0],i=!0),n[1]&&!("y"in a)&&(r.y=n[1],i=!0),n[2]&&!("z"in a)&&(r.z=n[2],i=!0);break}case"translateX":{n[0]&&!("x"in a)&&(r.x=n[0],i=!0);break}case"translateY":{n[0]&&!("y"in a)&&(r.y=n[0],i=!0);break}case"translateZ":{n[0]&&!("z"in a)&&(r.z=n[0],i=!0);break}case"rotate":{n[0]&&!("rotate"in a)&&(r.rotate=n[0],i=!0);break}case"rotateX":{n[0]&&!("rotateX"in a)&&(r.rotateX=n[0],i=!0);break}case"rotateY":{n[0]&&!("rotateY"in a)&&(r.rotateY=n[0],i=!0);break}case"rotateZ":{n[0]&&!("rotateZ"in a)&&(r.rotateZ=n[0],i=!0);break}case"scale":{n[0]&&!("scale"in a)&&(r.scale=parseFloat(n[0]),i=!0);break}case"scaleX":{n[0]&&!("scaleX"in a)&&(r.scaleX=parseFloat(n[0]),i=!0);break}case"scaleY":{n[0]&&!("scaleY"in a)&&(r.scaleY=parseFloat(n[0]),i=!0);break}case"scaleZ":{n[0]&&!("scaleZ"in a)&&(r.scaleZ=parseFloat(n[0]),i=!0);break}case"skew":{n[0]&&!("skewX"in a)&&(r.skewX=n[0],i=!0),n[1]&&!("skewY"in a)&&(r.skewY=n[1],i=!0);break}case"skewX":{n[0]&&!("skewX"in a)&&(r.skewX=n[0],i=!0);break}case"skewY":{n[0]&&!("skewY"in a)&&(r.skewY=n[0],i=!0);break}default:break}}if(!i)return a;let c={...r};for(let[l,p]of Object.entries(a))l!=="transform"&&(c[l]=p);return c}function V(a){let e=!1;for(let s of Object.keys(a))if(s.includes("-")&&!s.startsWith("--")){e=!0;break}if(!e)return a;let t={};for(let[s,r]of Object.entries(a))if(s.includes("-")&&!s.startsWith("--")){let i=s.replace(/-([a-z])/g,(c,l)=>l.toUpperCase());t[i]=r}else t[s]=r;return t}__SDK__.Engine=C;
})();
(function(){var a=Object.defineProperty;var o=(r,e,t)=>e in r?a(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var i=(r,e,t)=>o(r,typeof e!="symbol"?e+"":e,t);const{Engine: s}=__SDK__;var n=class{constructor(e){i(this,"_fn");i(this,"_timelineNames",new Set);i(this,"_reverted",!1);this._fn=e,this._execute()}revert(){if(this._reverted)return;let e=s.getInstance();for(let t of this._timelineNames)e.hasTimeline(t)&&e.getTimeline(t).kill();typeof document<"u"&&(document.querySelectorAll("[data-scrolltrigger-spacer]").forEach(t=>t.remove()),document.querySelectorAll("[data-scrolltrigger-markers]").forEach(t=>t.remove())),this._timelineNames.clear(),this._reverted=!0}refresh(){this.revert(),this._reverted=!1,this._execute()}add(e){this._reverted=!1,this._execute(e)}getTimelineNames(){return Array.from(this._timelineNames)}_execute(e){let t=s.getInstance();t.startCapture(this._timelineNames);try{(e||this._fn)()}finally{t.stopCapture()}}};__SDK__.MotionContext=n;
})();
(function(){function a(n,u){if(typeof n=="string"){let e=u||(typeof document<"u"?document:null);if(!e)return[];try{return Array.from(e.querySelectorAll(n))}catch{return[]}}return typeof Element<"u"&&n instanceof Element?[n]:typeof NodeList<"u"&&n instanceof NodeList||typeof HTMLCollection<"u"&&n instanceof HTMLCollection?Array.from(n):Array.isArray(n)?n:n&&typeof n=="object"&&"length"in n?Array.from(n):[]}function f(n,u,e){return e===void 0?r=>Math.min(u,Math.max(n,r)):Math.min(u,Math.max(n,e))}function c(n,u,e){let r=n+Math.random()*(u-n);return e&&e>0?Math.round(r/e)*e:r}function l(n,u){let e=r=>{if(typeof n=="number")return n<=0?r:Math.round(r/n)*n;let m=n,t=m[0],o=Math.abs(r-t);for(let b=1;b<m.length;b++){let i=Math.abs(r-m[b]);i<o&&(o=i,t=m[b])}return t};return u===void 0?e:e(u)}function p(n,u,e){return n+(u-n)*e}function s(n,u,e,r,m){let t=o=>{let b=(o-n)/(u-n);return e+b*(r-e)};return m===void 0?t:t(m)}function x(n,u,e){let r=m=>(m-n)/(u-n);return e===void 0?r:r(e)}function d(n,u,e){let r=u-n,m=t=>((t-n)%r+r)%r+n;return e===void 0?m:m(e)}var M={toArray:a,clamp:f,random:c,snap:l,interpolate:p,mapRange:s,normalize:x,wrap:d};__SDK__.MotionUtils=M;__SDK__.clamp=f;__SDK__.interpolate=p;__SDK__.mapRange=s;__SDK__.normalize=x;__SDK__.random=c;__SDK__.snap=l;__SDK__.toArray=a;__SDK__.wrap=d;
})();
(function(){const{Timeline: c}=__SDK__;const{Engine: r}=__SDK__;const{MotionContext: f}=__SDK__;const{resolveTargets: g}=__SDK__;const{clearTransformCache: m}=__SDK__;const{SDKRegistry: l}=__SDK__;const{MotionUtils: u}=__SDK__;function t(n,e,o){let s=r.getInstance().getTimeline(n);if(e!==void 0&&s.duration()>0&&console.warn(`[Motion] Timeline "${n}" already has animations. New entries will be appended. Call Motion("${n}").kill() first to rebuild from scratch.`),Array.isArray(e)&&e.length>0&&typeof e[0]=="object"&&e[0]!==null&&"target"in e[0])for(let a of e)s._addEntry(a.target,a,a.position);else e!==void 0&&o!==void 0&&s._addEntry(e,o);return s}t.reset=function(n){r.getInstance();let e=g(n),o=[];for(let i of e)i instanceof Element&&o.push(i);o.length>0&&r.getInstance().killAnimationsForTargets(o);for(let i of e)i instanceof Element&&(l.textSplitter?.isSplit?.(i)&&l.textSplitter?.revert?.(i),m(i),l.styleReset?.clearAnimationStylesAndUnregister?.(i),l.styleReset?.clearPinStylesAndUnregister?.(i))};t.set=function(n,e){r.getInstance();let o=new c;o._addEntry(n,{to:e,duration:0}),o.kill(!1)};t.get=function(n){let e=r.getInstance();return e.hasTimeline(n)?e.getTimeline(n):void 0};t.has=function(n){return r.getInstance().hasTimeline(n)};t.getNames=function(){return r.getInstance().getTimelineNames()};t.kill=function(n){let e=r.getInstance();e.hasTimeline(n)&&e.getTimeline(n).kill()};t.killAll=function(){r.getInstance().killEverything()};t.refreshScrollTriggers=function(){l.triggerManager?.getInstance?.()?.refreshScrollTriggers()};t.cleanup=function(){typeof document>"u"||(document.querySelectorAll("[data-scrolltrigger-spacer]").forEach(n=>n.remove()),document.querySelectorAll("[data-scrolltrigger-markers]").forEach(n=>n.remove()))};t.context=function(n){return new f(n)};t.utils=u;var v=t;__SDK__.Motion=v;
})();
(function(){function n(r,e){switch(r){case"play":case"resume":e.play();break;case"pause":e.pause();break;case"reverse":e.reverse();break;case"restart":e.restart();break;case"reset":e.pause(),e.progress(0);break;case"complete":e.progress(1),e.pause();break;case"none":break;default:console.warn(`[Motion] Unknown timeline action: "${r}". Valid actions: play, pause, resume, reverse, restart, reset, complete, none`)}}__SDK__.executeTimelineAction=n;
})();
(function(){var c=Object.defineProperty;var d=(a,e,i)=>e in a?c(a,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[e]=i;var s=(a,e,i)=>d(a,typeof e!="symbol"?e+"":e,i);const{SDKRegistry: T}=__SDK__;var t=class t{constructor(){s(this,"_pageLoadTrigger",null);s(this,"_scrollTriggers",new Map);s(this,"_eventTriggers",new Map);s(this,"_mouseMoveTriggers",new Map);s(this,"_gestureTriggers",new Map);s(this,"_cursorTriggers",new Map);s(this,"_pageExitTriggers",new Map);s(this,"_resizeHandler",null);s(this,"_resizeTimer",null);s(this,"_bodyResizeObserver",null);s(this,"_lastBodyHeight",0);s(this,"_bodyResizeTimer",null)}get _allTriggerMaps(){return[this._scrollTriggers,this._eventTriggers,this._mouseMoveTriggers,this._gestureTriggers,this._cursorTriggers,this._pageExitTriggers]}static getInstance(){return t._instance||(t._instance=new t),t._instance}static registerTrigger(e,i){t._triggerRegistry.set(e,i)}static registerPageLoadTrigger(e){t._pageLoadTriggerFactory=e}_getPageLoadTrigger(){return!this._pageLoadTrigger&&t._pageLoadTriggerFactory&&(this._pageLoadTrigger=new t._pageLoadTriggerFactory),this._pageLoadTrigger}_createTrigger(e,...i){let r=t._triggerRegistry.get(e);if(!r){let g=Array.from(t._triggerRegistry.keys());return console.warn(`[Motion SDK] Trigger type '${e}' is not available in this bundle. Available triggers: ${g.join(", ")||"none"}. Animations using .on${e.charAt(0).toUpperCase()+e.slice(1)}() will be skipped.`),null}return new r(...i)}registerPageLoad(e,i){this.unregister(e);let r=this._getPageLoadTrigger();r&&r.register(e,i)}_attachResizeListener(){this._resizeHandler||typeof window>"u"||(this._resizeHandler=()=>{this._resizeTimer!==null&&clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(()=>{this._resizeTimer=null,this.refreshScrollTriggers()},t._RESIZE_DEBOUNCE_MS)},window.addEventListener("resize",this._resizeHandler,{passive:!0}))}_detachResizeListener(){!this._resizeHandler||typeof window>"u"||(window.removeEventListener("resize",this._resizeHandler),this._resizeTimer!==null&&(clearTimeout(this._resizeTimer),this._resizeTimer=null),this._resizeHandler=null)}_attachBodyResizeObserver(){this._bodyResizeObserver||typeof window>"u"||typeof document>"u"||typeof ResizeObserver>"u"||(this._lastBodyHeight=document.body.offsetHeight,this._bodyResizeObserver=new ResizeObserver(e=>{for(let i of e){let r=i.borderBoxSize?.[0]?i.borderBoxSize[0].blockSize:i.contentRect.height;Math.abs(r-this._lastBodyHeight)<1||(this._lastBodyHeight=r,this._bodyResizeTimer!==null&&clearTimeout(this._bodyResizeTimer),this._bodyResizeTimer=setTimeout(()=>{this._bodyResizeTimer=null,this.refreshScrollTriggers()},t._BODY_RESIZE_DEBOUNCE_MS))}}),this._bodyResizeObserver.observe(document.body))}_detachBodyResizeObserver(){this._bodyResizeObserver&&(this._bodyResizeObserver.disconnect(),this._bodyResizeObserver=null,this._bodyResizeTimer!==null&&(clearTimeout(this._bodyResizeTimer),this._bodyResizeTimer=null),this._lastBodyHeight=0)}registerScroll(e,i){this.unregister(e);let r=this._createTrigger("scroll",e,i);r&&(this._scrollTriggers.set(e,r),e._trigger=r,r.enable(),this._attachResizeListener(),this._attachBodyResizeObserver())}registerHover(e,i){this.unregister(e);let r=this._createTrigger("event",e,{type:"hover",target:i.target,onEnter:i.onEnter,onLeave:i.onLeave,leaveDelay:i.leaveDelay});r&&(this._eventTriggers.set(e,r),e._trigger=r,r.enable())}registerClick(e,i){this.unregister(e);let r=this._createTrigger("event",e,{type:"click",target:i.target,secondTarget:i.secondTarget,toggle:i.toggle,preventDefault:i.preventDefault});r&&(this._eventTriggers.set(e,r),e._trigger=r,r.enable())}registerMouseMove(e,i){this.unregister(e);let r=this._createTrigger("mouseMove",e,i);r&&(this._mouseMoveTriggers.set(e,r),e._trigger=r,r.enable())}registerGesture(e,i){this.unregister(e);let r=this._createTrigger("gesture",e,i);r&&(this._gestureTriggers.set(e,r),e._trigger=r,r.enable())}registerCursor(e,i){this.unregister(e);let r=this._createTrigger("cursor",e,i);r&&(this._cursorTriggers.set(e,r),e._trigger=r,r.enable())}registerPageExit(e,i){this.unregister(e);let r=this._createTrigger("pageExit",e,i);r&&(this._pageExitTriggers.set(e,r),e._trigger=r,r.enable())}unregister(e){let i=this._getPageLoadTrigger();i&&i.unregister(e);for(let r of this._allTriggerMaps){let g=r.get(e);g&&(g.disable(),r.delete(e))}e._trigger=void 0,this._scrollTriggers.size===0&&(this._detachResizeListener(),this._detachBodyResizeObserver())}refreshScrollTriggers(){let e=Array.from(this._scrollTriggers.values()),i=typeof window<"u"?window.scrollY:0;e.sort((r,g)=>{let n=r._pinManager?.getLayoutRect?.(),o=g._pinManager?.getLayoutRect?.();return!n&&!o?0:n?o?n.top+i-(o.top+i):-1:1}),e.forEach(r=>r.refresh?.()),this._eventTriggers.forEach(r=>r.refresh?.()),this._gestureTriggers.forEach(r=>r.refresh?.()),this._mouseMoveTriggers.forEach(r=>r.refresh?.())}killAll(){let e=this._getPageLoadTrigger();e&&e.clear();for(let i of this._allTriggerMaps)i.forEach(r=>r.disable()),i.clear();this._detachResizeListener(),this._detachBodyResizeObserver()}static _reset(){t._instance&&(t._instance._pageLoadTrigger&&t._instance._pageLoadTrigger._reset(),t._instance.killAll(),t._instance=void 0)}};s(t,"_instance"),s(t,"_triggerRegistry",new Map),s(t,"_pageLoadTriggerFactory",null),s(t,"_RESIZE_DEBOUNCE_MS",200),s(t,"_BODY_RESIZE_DEBOUNCE_MS",250);var l=t;T.triggerManager={getInstance:l.getInstance};__SDK__.TriggerManager=l;
})();
(function(){var d=Object.defineProperty;var u=(t,e,n)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var r=(t,e,n)=>u(t,typeof e!="symbol"?e+"":e,n);const{whenDOMReady: f}=__SDK__;var o=class{constructor(e,n){r(this,"_timeline");r(this,"_config");r(this,"_enabled",!1);this._timeline=e,this._config=n}enable(){this._enabled||(this._enabled=!0,f(()=>{this._enabled&&this._onEnable()}))}disable(){this._enabled&&(this._enabled=!1,this._onDisable())}_resolveElement(e,n){if(e==null)return n??null;if(typeof e!="string")return e;if(typeof document<"u")try{let i=document.querySelector(e);if(i!==null)return i}catch(i){console.warn(`[Motion] Invalid selector "${e}":`,i)}return n??null}_resolveElements(e){if(e==null)return[];if(typeof e!="string")return[e];if(typeof document<"u")try{let n=document.querySelectorAll(e);return Array.from(n)}catch(n){return console.warn(`[Motion] Invalid selector "${e}":`,n),[]}return[]}_cleanupListenerMap(e){e.forEach((n,i)=>{n.forEach((l,a)=>{i.removeEventListener(a,l)})}),e.clear()}};__SDK__.BaseTrigger=o;
})();
(function(){function r(n){let t=n,o=t.style.transform,i=t.style.transition;t.style.transition="none",t.style.transform="none";let e=!1,s=t.style.position,l=t.style.top,d=t.style.left,y=t.style.width;(s==="fixed"||(s===""||s===void 0)&&typeof window<"u"&&typeof window.getComputedStyle=="function"&&window.getComputedStyle(t).position==="fixed")&&(e=!0),e&&(t.style.position="",t.style.top="",t.style.left="",t.style.width="");let f=t.getBoundingClientRect();return t.style.transform=o,t.style.transition=i,e&&(t.style.position=s,t.style.top=l,t.style.left=d,t.style.width=y),f}__SDK__.getLayoutRect=r;
})();
(function(){const{runBatched: i}=__SDK__;var n=new Map;function s(e){return typeof window<"u"&&e===window?window.scrollY||window.pageYOffset||0:typeof Element<"u"&&e instanceof Element?e.scrollTop:0}function f(e,l){let t=n.get(e);if(!t){let o=()=>{let r=n.get(e);if(!r||r.callbacks.size===0)return;let c=s(e);i(()=>{for(let a of r.callbacks)a(c)})};t={callbacks:new Set,listener:o},n.set(e,t),e.addEventListener("scroll",o,{passive:!0})}t.callbacks.add(l)}function b(e,l){let t=n.get(e);t&&(t.callbacks.delete(l),t.callbacks.size===0&&(e.removeEventListener("scroll",t.listener),n.delete(e)))}function v(){for(let[e,l]of n)e.removeEventListener("scroll",l.listener);n.clear()}__SDK__._resetGlobalScrollListener=v;__SDK__.addScrollCallback=f;__SDK__.removeScrollCallback=b;
})();
(function(){const{isTransformProp: f, isFilterProp: d, isCSSVariable: a, isDrawSVGProp: m}=__SDK__;const{SDKRegistry: u}=__SDK__;function c(){let t=new WeakMap;return{register(e,n){let r=t.get(e);r||(r=new Set,t.set(e,r)),r.add(n)},registerMany(e,n){for(let r of n)this.register(e,r)},get(e){return t.get(e)},clearRegistry(e){t.delete(e)}}}var i=c(),s=new WeakMap,o=c();function g(t){return f(t)?["transform"]:d(t)?["filter"]:m(t)?["strokeDasharray","strokeDashoffset"]:[t]}function P(t,e){if(f(e)&&!s.has(t)&&(t instanceof HTMLElement||t instanceof SVGElement)){let r=t.style.transform;s.set(t,r||null)}let n=g(e);for(let r of n)i.register(t,r)}function y(t,e){for(let n of e)P(t,n)}function T(t){return i.get(t)||new Set}function E(t){i.clearRegistry(t),s.delete(t)}function S(t,e){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return;let n=new Set;for(let r of e)for(let p of g(r))n.add(p);for(let r of n)a(r)?t.style.removeProperty(r):t.style[r]=""}function l(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return;let e=i.get(t);if(!(!e||e.size===0))for(let n of e){if(n==="transform"){let r=s.get(t);if(r!==void 0){r?t.style.transform=r:t.style.removeProperty("transform");continue}}a(n)?t.style.removeProperty(n):t.style[n]=""}}function v(t){l(t),E(t)}function k(t){for(let e of t)l(e)}function V(t,e){o.register(t,e)}function G(t,e){o.registerMany(t,e)}function H(t){return o.get(t)||new Set}function R(t){o.clearRegistry(t)}function x(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return;let e=o.get(t);if(!(!e||e.size===0))for(let n of e)t.style[n]=""}function A(t){x(t),R(t)}u.styleReset={registerAnimatedProps:y,clearAnimationStylesForProps:S,clearAnimationStylesAndUnregister:v,clearPinStylesAndUnregister:A};__SDK__.clearAnimatedPropsRegistry=E;__SDK__.clearAnimationStyles=l;__SDK__.clearAnimationStylesAll=k;__SDK__.clearAnimationStylesAndUnregister=v;__SDK__.clearAnimationStylesForProps=S;__SDK__.clearPinStyles=x;__SDK__.clearPinStylesAndUnregister=A;__SDK__.clearPinnedPropsRegistry=R;__SDK__.getAnimatedProps=T;__SDK__.getPinnedProps=H;__SDK__.registerAnimatedProp=P;__SDK__.registerAnimatedProps=y;__SDK__.registerPinnedProp=V;__SDK__.registerPinnedProps=G;
})();
(function(){var L=Object.defineProperty;var F=(h,e,t)=>e in h?L(h,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):h[e]=t;var s=(h,e,t)=>F(h,typeof e!="symbol"?e+"":e,t);const{registerPinnedProps: f, clearPinnedPropsRegistry: z}=__SDK__;const{setPinOffset: u, clearPinOffset: m, buildTransformString: a}=__SDK__;var r=class r{constructor(e){s(this,"_id");s(this,"_element",null);s(this,"_originalStyles",null);s(this,"_spacer",null);s(this,"_currentState","before");s(this,"_pinStart",0);s(this,"_pinEnd",0);s(this,"_pinDistance",0);s(this,"_useFixedPin",!1);s(this,"_pinSpacing");s(this,"_elementHeight",0);s(this,"_fixedTop",0);s(this,"_fixedLeft",0);s(this,"_width",0);s(this,"_fixedBreakingAncestors",[]);s(this,"_isBodyPin",!1);s(this,"_originalHtmlHeight","");s(this,"_originalHtmlOverflow","");this._id=e}static getOrCreate(e,t){let i=r._registry.get(t);i||(i=new r(e),r._registry.set(t,i));let n=r._users.get(t);return n||(n=new Set,r._users.set(t,n)),n.add(e),i}static release(e,t){let i=r._users.get(t);if(i&&(i.delete(e),i.size===0)){let n=r._registry.get(t);r._registry.delete(t),r._users.delete(t),n?.cleanup()}}setup(e,t,i,n,g,o){if(typeof document>"u")return;this._isBodyPin=e===document.body,this._element=e,this._pinStart=t,this._pinEnd=i;let H=this._pinDistance;this._pinDistance=i-t,this._useFixedPin=g,this._pinSpacing=o;let l=this._isBodyPin?this._originalStyles!==null:this._spacer!==null;l&&this._currentState==="pinned"&&g&&this._updateFixed("before"),l&&this._spacer&&(this._spacer.style.width="");let _=l&&this._isBodyPin?document.documentElement.style.height:null;_!==null&&(document.documentElement.style.height=this._originalHtmlHeight);let d=e.getBoundingClientRect();_!==null&&(document.documentElement.style.height=_);let p=l&&this._spacer?window.getComputedStyle(this._spacer):window.getComputedStyle(e);if(this._elementHeight=d.height,l||(this._originalStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,marginTop:e.style.marginTop,marginBottom:e.style.marginBottom,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight,zIndex:e.style.zIndex}),g)if(this._fixedTop=n,this._isBodyPin)this._fixedLeft=d.left,this._width=d.width,l||(this._originalHtmlHeight=document.documentElement.style.height,this._originalHtmlOverflow=document.documentElement.style.overflow,this._detectFixedBreakingAncestors(e)),document.documentElement.style.height=`${this._elementHeight+this._pinDistance}px`;else{let y=this._resolvePinSpacing(),v=window.getComputedStyle(e),x=v.display,P=v.flexDirection,S=l&&this._spacer?.parentElement?this._spacer.parentElement:e.parentElement,E=S?/^(inline-)?flex$/.test(getComputedStyle(S).display):!1,T=/^(inline-)?flex$/.test(x),c=`
display: ${x};
${T?`flex-direction: ${P};`:""}
box-sizing: content-box;
width: ${d.width}px;
height: ${d.height}px;
margin-top: ${p.marginTop};
margin-left: ${p.marginLeft};
margin-right: ${p.marginRight};
overflow: visible;
${E?"flex-shrink: 0;":""}
`;if(y==="padding")c+=`padding-bottom: ${this._pinDistance}px;`,c+=`margin-bottom: ${p.marginBottom};`;else if(y==="margin"){let b=parseFloat(p.marginBottom)||0,k=l?b-H:b;c+=`margin-bottom: ${k+this._pinDistance}px;`}else c+=`margin-bottom: ${p.marginBottom};`;this._spacer||(this._detectFixedBreakingAncestors(e),this._spacer=document.createElement("div"),e.parentNode?.insertBefore(this._spacer,e),this._spacer.appendChild(e),e.style.marginTop="0",e.style.marginBottom="0",e.style.marginLeft="0",e.style.marginRight="0"),this._spacer.style.cssText=c,this._spacer.setAttribute("data-scrolltrigger-spacer",String(this._id));let w=this._spacer.getBoundingClientRect();this._fixedLeft=w.left,this._width=w.width}this._currentState="before"}update(e){if(!this._element)return;let t=e<this._pinStart?"before":e<this._pinEnd?"pinned":"after";this._useFixedPin?t!==this._currentState&&(this._updateFixed(t),this._currentState=t):(t!==this._currentState||t==="pinned")&&(this._updateTransform(t,e),this._currentState=t)}cleanup(){if(this._element&&r._registry.get(this._element)===this&&(r._registry.delete(this._element),r._users.delete(this._element)),this._element&&this._originalStyles){let e=this._element;m(e),e.style.position=this._originalStyles.position,e.style.top=this._originalStyles.top,e.style.left=this._originalStyles.left,e.style.width=this._originalStyles.width,e.style.marginTop=this._originalStyles.marginTop,e.style.marginBottom=this._originalStyles.marginBottom,e.style.marginLeft=this._originalStyles.marginLeft,e.style.marginRight=this._originalStyles.marginRight,e.style.zIndex=this._originalStyles.zIndex,e.style.transform="",z(e)}this._isBodyPin?typeof document<"u"&&(document.documentElement.style.height=this._originalHtmlHeight,document.documentElement.style.overflow=this._originalHtmlOverflow):this._spacer?.parentNode&&this._element&&(this._spacer.parentNode.insertBefore(this._element,this._spacer),this._spacer.parentNode.removeChild(this._spacer)),this._restoreFixedBreakingAncestors(),this._fixedBreakingAncestors=[],this._element=null,this._originalStyles=null,this._spacer=null,this._currentState="before",this._pinSpacing=void 0,this._isBodyPin=!1,this._originalHtmlHeight="",this._originalHtmlOverflow=""}getElement(){return this._element}getPinDistance(){return this._pinDistance}getState(){return this._currentState}getLayoutRect(){if(this._spacer?.parentNode){let e=this._spacer.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:this._elementHeight,bottom:e.top+this._elementHeight,right:e.left+e.width}}return null}isBodyPin(){return this._isBodyPin}suspendHtmlHeight(){if(!this._isBodyPin)return null;let e=document.documentElement.style.height;return document.documentElement.style.height=this._originalHtmlHeight,()=>{document.documentElement.style.height=e}}isFixedPin(){return this._useFixedPin}_detectFixedBreakingAncestors(e){this._fixedBreakingAncestors=[];let t=e.parentElement;for(;t&&t!==document.documentElement;){let i=window.getComputedStyle(t),n=[];i.filter&&i.filter!=="none"&&n.push({property:"filter",originalValue:""}),i.transform&&i.transform!=="none"&&n.push({property:"transform",originalValue:""}),i.perspective&&i.perspective!=="none"&&n.push({property:"perspective",originalValue:""}),i.willChange&&i.willChange!=="auto"&&i.willChange.split(",").map(o=>o.trim()).some(o=>o==="transform"||o==="filter"||o==="perspective")&&n.push({property:"willChange",originalValue:""}),i.contain&&i.contain!=="none"&&["paint","layout","strict","content"].some(o=>i.contain.includes(o))&&n.push({property:"contain",originalValue:""}),i.backdropFilter&&i.backdropFilter!=="none"&&n.push({property:"backdropFilter",originalValue:""}),(i.overflow==="clip"||i.overflowX==="clip"||i.overflowY==="clip")&&(i.overflowY==="clip"&&n.push({property:"overflowY",originalValue:""}),i.overflowX==="clip"&&n.push({property:"overflowX",originalValue:""})),n.length>0&&this._fixedBreakingAncestors.push({element:t,overrides:n}),t=t.parentElement}}_overrideFixedBreakingAncestors(){for(let{element:e,overrides:t}of this._fixedBreakingAncestors)for(let i of t)switch(i.originalValue=e.style[i.property]||"",i.property){case"filter":case"backdropFilter":case"transform":case"perspective":e.style[i.property]="none";break;case"willChange":e.style.willChange="auto";break;case"contain":e.style.contain="none";break;case"overflowY":e.style.overflowY="visible";break;case"overflowX":e.style.overflowX="hidden";break}}_restoreFixedBreakingAncestors(){for(let{element:e,overrides:t}of this._fixedBreakingAncestors)for(let{property:i,originalValue:n}of t)e.style[i]=n}_resolvePinSpacing(){return this._pinSpacing===!1?!1:this._pinSpacing==="margin"?"margin":(this._pinSpacing===void 0||this._pinSpacing===!0)&&this._isBodyPin?!1:"padding"}_updateFixed(e){let t=this._element;e==="before"?(t.style.position=this._originalStyles?.position||"",t.style.top=this._originalStyles?.top||"",t.style.left=this._originalStyles?.left||"",t.style.width=this._originalStyles?.width||"",this._isBodyPin?t.style.marginTop=this._originalStyles?.marginTop||"":(t.style.marginTop="0",t.style.marginLeft="0"),t.style.zIndex=this._originalStyles?.zIndex||"",m(t),t.style.transform=a(t),this._restoreFixedBreakingAncestors()):e==="pinned"?(this._overrideFixedBreakingAncestors(),t.style.position="fixed",t.style.top=`${this._fixedTop}px`,t.style.left=`${this._fixedLeft}px`,t.style.width=`${this._width}px`,this._isBodyPin?t.style.marginTop=this._originalStyles?.marginTop||"":(t.style.marginTop="0",t.style.marginLeft="0"),t.style.zIndex="100",m(t),t.style.transform=a(t),this._isBodyPin?f(t,["position","top","left","width","zIndex","transform","marginTop"]):f(t,["position","top","left","width","marginTop","marginLeft","zIndex","transform"])):(t.style.position=this._originalStyles?.position||"",t.style.top=this._originalStyles?.top||"",t.style.left=this._originalStyles?.left||"",t.style.width=this._originalStyles?.width||"",this._isBodyPin?(m(t),t.style.transform=a(t),t.style.marginTop=`${this._pinDistance}px`):(t.style.marginTop="0",t.style.marginLeft="0",u(t,0,this._pinDistance,0),t.style.transform=a(t)),t.style.zIndex=this._originalStyles?.zIndex||"",this._restoreFixedBreakingAncestors())}_updateTransform(e,t){let i=this._element;if(e==="before")i.style.zIndex=this._originalStyles?.zIndex||"",m(i),i.style.transform=a(i);else if(e==="pinned"){let n=Math.round(t-this._pinStart);i.style.zIndex="100",u(i,0,n,0),i.style.transform=a(i),f(i,["transform","zIndex"])}else i.style.zIndex=this._originalStyles?.zIndex||"",u(i,0,this._pinDistance,0),i.style.transform=a(i),f(i,["transform","zIndex"])}};s(r,"_registry",new Map),s(r,"_users",new Map);var B=r;__SDK__.PinManager=B;
})();
(function(){function f(t,n,o,e){if(!t)return 0;let r=t.trim().toLowerCase(),s=r.match(/^(top|center|bottom)([+-])(-?\d+(?:\.\d+)?)(px|%|vh|vw)?$/);if(s){let u=s[1],b=s[2]==="-"?-1:1,i=parseFloat(s[3]),p=s[4]||"px",c=0;switch(u){case"top":c=0;break;case"center":c=n/2;break;case"bottom":c=n;break}let d=m(i,p,n,o,e);return c+b*d}switch(r){case"top":return 0;case"center":return n/2;case"bottom":return n}let a=r.match(/^(-?\d+(?:\.\d+)?)(px|%|vh|vw)?$/);if(a){let u=parseFloat(a[1]),b=a[2]||"px";return m(u,b,n,o,e)}return 0}function m(t,n,o,e,r){switch(n){case"px":return t;case"%":return t/100*o;case"vh":return t/100*e;case"vw":return t/100*(r??(typeof window<"u"?window.innerWidth:0));default:return t}}__SDK__.parseScrollPosition=f;
})();
(function(){var v=Object.defineProperty;var T=(o,e,t)=>e in o?v(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var r=(o,e,t)=>T(o,typeof e!="symbol"?e+"":e,t);const{parseScrollPosition: _}=__SDK__;const{getLayoutRect: x}=__SDK__;var S=class{constructor(e){r(this,"_id");r(this,"_markers");r(this,"_markerContainer");r(this,"_triggerElement");r(this,"_scrollerStartOffset",0);r(this,"_scrollerEndOffset",0);r(this,"_scroller",window);r(this,"_startConfig","top top");r(this,"_endConfig","bottom top");r(this,"_cachedElStartDocTop",0);r(this,"_cachedElEndDocTop",0);r(this,"_cachedElPositionValid",!1);this._id=e}setup(e){if(typeof document>"u")return;this._scroller=e.scroller,this._triggerElement=e.triggerElement||void 0,this._startConfig=e.startConfig,this._endConfig=e.endConfig;let t=e.markerConfig,n=(typeof t=="object"?t.startColor:null)||"lime",i=(typeof t=="object"?t.endColor:null)||"red",a=(typeof t=="object"?t.fontSize:null)||"10px",c=this._scroller!==window,s=e.viewportHeight,d=this._startConfig.split(" "),C=_(d[1]||"top",s,s),b=this._endConfig.startsWith("+=")?C:_(this._endConfig.split(" ")[1]||"top",s,s);this._markerContainer=document.createElement("div"),this._markerContainer.setAttribute("data-scrolltrigger-markers",String(this._id)),this._markerContainer.style.cssText="position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 9999;";let m=(l,h,y)=>{let p=document.createElement("div");p.setAttribute("data-marker",l),p.style.cssText=`
position: absolute;
${y}: 0;
height: 1px;
width: 50px;
background: ${h};
pointer-events: none;
`;let g=document.createElement("span");return g.textContent=l,g.style.cssText=`
position: absolute;
${y}: 0;
top: 2px;
background: ${h};
color: ${h==="lime"?"#000":"#fff"};
padding: 1px 3px;
font-size: ${a};
font-family: monospace;
white-space: nowrap;
border-radius: 2px;
line-height: 1.2;
`,p.appendChild(g),p},u=m("scroller-start",n,"right"),k=m("scroller-end",i,"right"),f=m("start",n,"left"),E=m("end",i,"left");if(this._triggerElement||(f.style.display="none",E.style.display="none"),this._markerContainer.appendChild(u),this._markerContainer.appendChild(k),this._markerContainer.appendChild(f),this._markerContainer.appendChild(E),this._markers={scrollerStart:u,scrollerEnd:k,elementStart:f,elementEnd:E},c){let l=this._scroller;window.getComputedStyle(l).position==="static"&&(l.style.position="relative"),l.appendChild(this._markerContainer)}else document.body.appendChild(this._markerContainer),this._markerContainer.style.position="fixed";this._scrollerStartOffset=C,this._scrollerEndOffset=b,this._cacheElementPositions(s)}_cacheElementPositions(e){if(!this._triggerElement){this._cachedElPositionValid=!1;return}let t=x(this._triggerElement),n=_(this._startConfig.split(" ")[0]||"top",t.height,e),i=this._endConfig.startsWith("+=")?n:_(this._endConfig.split(" ")[0]||"bottom",t.height,e);if(this._scroller!==window){let c=this._scroller.getBoundingClientRect(),s=this._scroller.scrollTop,d=t.top-c.top+s;this._cachedElStartDocTop=d+n,this._cachedElEndDocTop=d+i}else{let c=window.scrollY||window.pageYOffset||0,s=t.top+c;this._cachedElStartDocTop=s+n,this._cachedElEndDocTop=s+i}this._cachedElPositionValid=!0}update(e,t,n){if(!this._markers||!this._markerContainer)return;let i=this._triggerElement;this._triggerElement=t||void 0,this._triggerElement!==i&&this._cacheElementPositions(n);let a=this._scroller!==window;a?(this._markers.scrollerStart.style.top=`${e+this._scrollerStartOffset}px`,this._markers.scrollerEnd.style.top=`${e+this._scrollerEndOffset}px`):(this._markers.scrollerStart.style.top=`${this._scrollerStartOffset}px`,this._markers.scrollerEnd.style.top=`${this._scrollerEndOffset}px`),this._triggerElement&&this._cachedElPositionValid?(this._markers.elementStart.style.display="",this._markers.elementEnd.style.display="",a?(this._markers.elementStart.style.top=`${this._cachedElStartDocTop}px`,this._markers.elementEnd.style.top=`${this._cachedElEndDocTop}px`):(this._markers.elementStart.style.top=`${this._cachedElStartDocTop-e}px`,this._markers.elementEnd.style.top=`${this._cachedElEndDocTop-e}px`)):(this._markers.elementStart.style.display="none",this._markers.elementEnd.style.display="none")}recachePositions(e){this._cacheElementPositions(e)}cleanup(){this._markerContainer&&this._markerContainer.parentNode&&this._markerContainer.parentNode.removeChild(this._markerContainer),this._markerContainer=void 0,this._markers=void 0,this._triggerElement=void 0}};__SDK__.MarkerManager=S;
})();
(function(){var A=Object.defineProperty;var H=(_,g,t)=>g in _?A(_,g,{enumerable:!0,configurable:!0,writable:!0,value:t}):_[g]=t;var n=(_,g,t)=>H(_,typeof g!="symbol"?g+"":g,t);const{Ticker: v, runBatched: S}=__SDK__;const{PinManager: b}=__SDK__;const{MarkerManager: k}=__SDK__;const{parseScrollPosition: a}=__SDK__;const{executeTimelineAction: c}=__SDK__;const{getLayoutRect: C}=__SDK__;const{TriggerManager: R}=__SDK__;const{BaseTrigger: I}=__SDK__;const{addScrollCallback: O, removeScrollCallback: x}=__SDK__;var o=class o extends I{constructor(t,i){super(t,i);n(this,"_id");n(this,"_scrollListener");n(this,"_scrubTickListener",null);n(this,"_currentProgress",0);n(this,"_targetProgress",0);n(this,"_scrubLag",0);n(this,"_scroller");n(this,"_triggerStart",0);n(this,"_triggerEnd",0);n(this,"_pinManager",null);n(this,"_markerManager",null);n(this,"_triggerState","before");n(this,"_toggleActions",["play","none","none","none"]);n(this,"_initializing",!1);this._id=o._nextId++,this._scrubLag=typeof i.scrub=="number"?i.scrub:0}static _ensureLoadListener(){o._loadListenerAdded||typeof window>"u"||(o._loadListenerAdded=!0,document.readyState!=="complete"&&window.addEventListener("load",()=>{setTimeout(()=>{for(let t of o._activeInstances)t.refresh()},100)},{once:!0}))}_resolveScroller(){if(this._config.scroller)if(typeof this._config.scroller=="string"){if(typeof document>"u"){this._scroller=window;return}try{let t=document.querySelector(this._config.scroller);this._scroller=t??window}catch(t){console.warn(`[Motion] Invalid scroller selector "${this._config.scroller}":`,t),this._scroller=window}}else this._scroller=this._config.scroller;else this._scroller=window}_resolvePinElement(){if(!this._config.pin||typeof document>"u")return null;let t=null;if(typeof this._config.pin=="string")t=document.querySelector(this._config.pin);else if(this._config.pin===!0){let i=this._getFirstAnimatedElement();i instanceof HTMLElement&&(t=i)}return t}_defaultStart(){return this._config.start||(this._config.pin?"top top":"top bottom")}_defaultEnd(){return this._config.end||"bottom top"}_getFirstAnimatedElement(){let t=this._timeline.getFirstChildBuilder();if(t){let e=t.hasSplit()?t.getOriginalTargets():t.getTargets();for(let r of e)if(r instanceof Element)return r}let i=this._timeline.getFirstChildAnimation();if(i){let e=i.getTargets();if(e.length>0&&e[0]instanceof Element)return e[0]}return null}_resolveTriggerElement(){if(this._config.target instanceof Element)return this._config.target;if(typeof this._config.target=="string"&&typeof document<"u"){let t=document.querySelector(this._config.target);if(t instanceof Element)return t}return this._getFirstAnimatedElement()}_calculateTriggerPositions(t){let i=t||this._resolveTriggerElement(),e=this._getViewportHeight(),r=this._getScrollTop();if(!i){this._triggerStart=0,this._triggerEnd=this._getScrollHeight();return}let s=this._pinManager?.getLayoutRect()??C(i),l;if(this._scroller instanceof Element){let h=this._scroller.getBoundingClientRect();l=s.top-h.top+r}else l=s.top+r;let p=this._defaultStart().split(" "),f=p[0]||"top",E=p[1]||"top",w=a(f,s.height,e),T=a(E,e,e);this._triggerStart=l+w-T;let m=this._defaultEnd();if(m.startsWith("+=")){let h=a(m.slice(2),e,e);this._triggerEnd=this._triggerStart+h}else{let h=m.split(" "),M=h[0]||"bottom",L=h[1]||"top",P=a(M,s.height,e),y=a(L,e,e);this._triggerEnd=l+P-y}this._triggerEnd<=this._triggerStart&&(this._triggerEnd=this._triggerStart+Math.max(e,100))}_onEnable(){this._resolveScroller();let t=this._resolvePinElement();this._calculateTriggerPositions(t),o._activeInstances.add(this),o._ensureLoadListener();let e=(this._config.toggleActions||"play none none none").trim().split(/\s+/);if(this._toggleActions=[e[0],e[1],e[2],e[3]],t){let s=this._defaultStart().split(" "),l=this._getViewportHeight(),u=a(s[0]||"top",t.getBoundingClientRect().height,l),f=a(s[1]||"top",l,l)-u;this._pinManager=b.getOrCreate(this._id,t),this._pinManager.setup(t,this._triggerStart,this._triggerEnd,f,this._scroller===window,this._config.pinSpacing)}if(this._config.markers&&typeof document<"u"){let r=this._pinManager?.getElement()||this._resolveTriggerElement();this._markerManager=new k(this._id),this._markerManager.setup({scroller:this._scroller,triggerElement:r,startConfig:this._defaultStart(),endConfig:this._defaultEnd(),markerConfig:this._config.markers,viewportHeight:this._getViewportHeight()})}this._scrollListener=r=>this._onScroll(r),this._scroller&&(O(this._scroller,this._scrollListener),this._initializing=!0,this._onScroll(),this._initializing=!1,(this._config.scrub===!1||this._config.scrub===void 0)&&(this._triggerState==="active"?c(this._toggleActions[0],this._timeline):this._triggerState==="after"&&(this._timeline.progress(1),this._timeline.pause())))}_onDisable(){if(this._scrollListener&&this._scroller&&(x(this._scroller,this._scrollListener),this._scrollListener=void 0),this._markerManager?.cleanup(),this._markerManager=null,this._pinManager){let t=this._pinManager.getElement();t?b.release(this._id,t):this._pinManager.cleanup(),this._pinManager=null}this._stopSmoothScrollLoop(),o._activeInstances.delete(this)}refresh(){if(!this._enabled)return;let t=this._pinManager?.getElement()||null,i=this._pinManager?.suspendHtmlHeight?.()??null;if(this._calculateTriggerPositions(t),i?.(),this._pinManager&&t){let r=this._defaultStart().split(" "),s=this._getViewportHeight(),l=this._pinManager.getLayoutRect()?.height??t.getBoundingClientRect().height,u=a(r[0]||"top",l,s),f=a(r[1]||"top",s,s)-u;this._pinManager.setup(t,this._triggerStart,this._triggerEnd,f,this._scroller===window,this._config.pinSpacing)}this._markerManager&&this._markerManager.recachePositions(this._getViewportHeight()),this._onScroll()}_getViewportHeight(){return this._scroller===window?typeof window<"u"?window.innerHeight:0:this._scroller instanceof Element?this._scroller.clientHeight:0}_getScrollTop(){return this._scroller===window?typeof window<"u"?window.scrollY||window.pageYOffset:0:this._scroller instanceof Element?this._scroller.scrollTop:0}_getScrollHeight(){return this._scroller===window?typeof document<"u"&&document.documentElement?document.documentElement.scrollHeight-window.innerHeight:0:this._scroller instanceof Element?this._scroller.scrollHeight-this._scroller.clientHeight:0}_onScroll(t=this._getScrollTop()){if(!this._enabled)return;let i=this._triggerEnd-this._triggerStart,e=i>0?(t-this._triggerStart)/i:0;if(e=Math.max(0,Math.min(1,e)),e=this._applySnap(e),this._targetProgress=e,this._pinManager?.update(t),this._markerManager){let r=this._pinManager?.getElement()||this._resolveTriggerElement();this._markerManager.update(t,r,this._getViewportHeight())}if(this._config.scrub!==!1&&this._config.scrub!==void 0)this._scrubLag===0?(this._currentProgress=this._targetProgress,S(()=>this._timeline.progress(this._currentProgress))):this._startSmoothScrollLoop();else{let r;if(e<=0?r="before":e>=1?r="after":r="active",r!==this._triggerState){let s=this._triggerState;if(this._triggerState=r,this._initializing)return;S(()=>{r==="active"&&s==="before"?c(this._toggleActions[0],this._timeline):r==="after"&&s==="active"?c(this._toggleActions[1],this._timeline):r==="active"&&s==="after"?c(this._toggleActions[2],this._timeline):r==="before"&&s==="active"?c(this._toggleActions[3],this._timeline):r==="after"&&s==="before"?(c(this._toggleActions[0],this._timeline),this._timeline.progress(1),c(this._toggleActions[1],this._timeline)):r==="before"&&s==="after"&&(c(this._toggleActions[2],this._timeline),this._timeline.progress(0),c(this._toggleActions[3],this._timeline))})}}}_applySnap(t){let i=this._config.snap;if(i==null)return t;if(typeof i=="function")return i(t);if(Array.isArray(i)){let e=i[0]??t,r=Math.abs(t-e);for(let s=1;s<i.length;s++){let l=Math.abs(t-i[s]);l<r&&(r=l,e=i[s])}return e}return typeof i=="number"&&i>0?Math.round(t/i)*i:t}_startSmoothScrollLoop(){this._scrubTickListener||(this._scrubTickListener=(t,i)=>{if(!this._enabled){this._stopSmoothScrollLoop();return}let e=this._targetProgress-this._currentProgress,r=1-Math.exp(-t*3/this._scrubLag);if(this._currentProgress+=e*r,Math.abs(this._targetProgress-this._currentProgress)<1e-4){this._currentProgress=this._targetProgress,this._timeline.progress(this._currentProgress),this._stopSmoothScrollLoop();return}this._timeline.progress(this._currentProgress)},v.getInstance().add(this._scrubTickListener,o._SCRUB_TICKER_PRIORITY))}_stopSmoothScrollLoop(){this._scrubTickListener&&(v.getInstance().remove(this._scrubTickListener),this._scrubTickListener=null)}};n(o,"_nextId",0),n(o,"_SCRUB_TICKER_PRIORITY",1),n(o,"_activeInstances",new Set),n(o,"_loadListenerAdded",!1);var d=o;R.registerTrigger("scroll",d);__SDK__.ScrollTrigger=d;
})();
_g_.Motion=__SDK__.Motion;
})(typeof window!=="undefined"?window:this);