✏️ 正在编辑: shared.scripts.js
路径:
/home/qyel0117/public_html/wp-content/themes/semplice7/assets/js/shared.scripts.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
!function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){var i;return e&&t&&((i=(i=this._events=this._events||{})[e]=i[e]||[]).includes(t)||i.push(t)),this},t.once=function(e,t){var i;return e&&t&&(this.on(e,t),((i=this._onceEvents=this._onceEvents||{})[e]=i[e]||{})[t]=!0),this},t.off=function(e,t){e=this._events&&this._events[e];return e&&e.length&&-1!=(t=e.indexOf(t))&&e.splice(t,1),this},t.emitEvent=function(e,t){let i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];var s,n=this._onceEvents&&this._onceEvents[e];for(s of i)n&&n[s]&&(this.off(e,s),delete n[s]),s.apply(this,t)}return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e}),function(e,t){"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){let o=t.jQuery,r=t.console;function h(e,t,i){if(!(this instanceof h))return new h(e,t,i);let s=e;var n;(s="string"==typeof e?document.querySelectorAll(e):s)?(this.elements=(n=s,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?[...n]:[n]),this.options={},"function"==typeof t?i=t:Object.assign(this.options,t),i&&this.on("always",i),this.getImages(),o&&(this.jqDeferred=new o.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(s||e))}(h.prototype=Object.create(e.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const n=[1,9,11],a=(h.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t,i,s=e["nodeType"];if(s&&n.includes(s)){for(t of e.querySelectorAll("img"))this.addImage(t);if("string"==typeof this.options.background)for(i of e.querySelectorAll(this.options.background))this.addElementBackgroundImages(i)}},/url\((['"])?(.*?)\1\)/gi);function i(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}return h.prototype.addElementBackgroundImages=function(t){var i=getComputedStyle(t);if(i){let e=a.exec(i.backgroundImage);for(;null!==e;){var s=e&&e[2];s&&this.addBackground(s,t),e=a.exec(i.backgroundImage)}}},h.prototype.addImage=function(e){e=new i(e);this.images.push(e)},h.prototype.addBackground=function(e,t){e=new s(e,t);this.images.push(e)},h.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let t=(e,t,i)=>{setTimeout(()=>{this.progress(e,t,i)})};this.images.forEach(function(e){e.once("progress",t),e.check()})}else this.complete()},h.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,e,t)},h.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(i.prototype=Object.create(e.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(e,t){this.isLoaded=e;e=this.img.parentNode,e="PICTURE"===e.nodeName?e:this.img;this.emitEvent("progress",[this,e,t])},i.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(s.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(h.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((o=e).fn.imagesLoaded=function(e,t){return new h(this,e,t).jqDeferred.promise(o(this))})})(),h}); !function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,l=void 0===n?function(){}:function(t){n.error(t)};function o(h,u,d){(d=d||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){d.isPlainObject(t)&&(this.options=d.extend(!0,this.options,t))}),d.fn[h]=function(t){var e,n,o,s,r,a;return"string"==typeof t?(e=i.call(arguments,1),o=e,r="$()."+h+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=d.data(e,h);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,o),s=void 0===s?i:s):l(r+" is not a valid method"):l(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:e):(a=t,this.each(function(t,e){var i=d.data(e,h);i?(i.option(a),i._init()):(i=new u(e,a),d.data(e,h,i))}),this)},s(d))}function s(t){t&&!t.bridget&&(t.bridget=o)}return s(e||t.jQuery),o}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],v=y.length;function _(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var z,E=!1;function b(t){if(E||(E=!0,(d=document.createElement("div")).style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box",(u=document.body||document.documentElement).appendChild(d),s=_(d),z=200==Math.round(g(s.width)),b.isBoxSizeOuter=z,u.removeChild(d)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=_(t);if("none"==e.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<v;n++)i[y[n]]=0;return i}for(var o={},s=(o.width=t.offsetWidth,o.height=t.offsetHeight,o.isBorderBox="border-box"==e.boxSizing),r=0;r<v;r++){var a=y[r],h=e[a],h=parseFloat(h);o[a]=isNaN(h)?0:h}var u=o.paddingLeft+o.paddingRight,d=o.paddingTop+o.paddingBottom,t=o.marginLeft+o.marginRight,l=o.marginTop+o.marginBottom,c=o.borderLeftWidth+o.borderRightWidth,f=o.borderTopWidth+o.borderBottomWidth,m=s&&z,p=g(e.width),p=(!1!==p&&(o.width=p+(m?0:u+c)),g(e.height));return!1!==p&&(o.height=p+(m?0:d+f)),o.innerWidth=o.width-(u+c),o.innerHeight=o.height-(d+f),o.outerWidth=o.width+t,o.outerHeight=o.height+l,o}}return b}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(i,s){var h={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,u=(h.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},h.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,s(t,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,n){t=h.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){s(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},h.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s],e=(clearTimeout(t),arguments),i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return h.htmlInit=function(r,a){h.docReady(function(){var t=h.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=h.makeArray(e).concat(h.makeArray(t)),o=n+"-options",s=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+n+" on "+e.className+": "+t))}i=new r(e,t);s&&s.data(e,a,i)})})},h}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",i="string"==typeof i.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],s={transform:i,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function r(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=r.prototype=Object.create(t.prototype);t.constructor=r,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[s[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],t=t[i?"top":"bottom"],o=parseFloat(n),s=parseFloat(t),r=this.layout.size;-1!=n.indexOf("%")&&(o=o/100*r.width),-1!=t.indexOf("%")&&(s=s/100*r.height),o=isNaN(o)?0:o,s=isNaN(s)?0:s,o-=e?r.paddingLeft:r.paddingRight,s-=i?r.paddingTop:r.paddingBottom,this.position.x=o,this.position.y=s},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",s=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(s),e[o]="",n?"paddingTop":"paddingBottom"),s=n?"bottom":"top",o=this.position.y+t[i];e[n?"top":"bottom"]=this.getYValue(o),e[s]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),o&&!this.isTransitioning?this.layoutPosition():((o={}).transform=this.getTranslate(t-i,e-n),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var a="opacity,"+i.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()}),h=(t.enableTransition=function(){var t;this.isTransitioning||(t=this.layout.options.transitionDuration,this.css({transitionProperty:a,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),u=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=h[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(u)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r}),function(o,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return s(o,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=s(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=s(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,o,n,s){"use strict";function i(){}var r=t.console,a=t.jQuery,h=0,u={};function d(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(u[e]=this)._create(),this._getOption("initLayout")&&this.layout()):r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}d.namespace="outlayer",d.Item=s,d.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=d.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(l,e.prototype),l.option=function(t){n.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},d.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},l._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=o(this.element)},l._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},l.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var t=t.match(/(^\d*\.?\d*)(\w*)/),e=t&&t[1],t=t&&t[2];if(!e.length)return 0;e=parseFloat(e);t=f[t]||1;return e*t}(t),this.stagger;this.stagger=0},l._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t;this._getOption("resizeContainer")&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},l._getContainerSize=i,l._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,s=t.length;function r(){++o==s&&n()}t&&s?(o=0,t.forEach(function(t){t.once(e,r)})):n()},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((n=a.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},l.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},l.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},l.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},l.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},l._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},l._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},l.handleEvent=n.handleEvent,l.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},l.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},l.onresize=function(){this.resize()},n.debounceMethod(d,"onresize",100),l.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},l.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},l.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},l.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},l.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},l.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},l.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},l.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},l.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},l.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},d.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},d.create=function(t,e){var i=c(d);return i.defaults=n.extend({},d.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},d.compatOptions),i.namespace=t,i.data=d.data,i.Item=c(s),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var f={ms:1,s:1e3};return d.Item=s,d}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),n={x:this.columnWidth*i.col,y:i.y},o=i.y+t.size.outerHeight,s=e+i.col,r=i.col;r<s;r++)this.colYs[r]=o;return n},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},e._getColGroupY=function(t,e){return e<2?this.colYs[t]:(t=this.colYs.slice(t,t+e),Math.max.apply(Math,t))},e._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,n=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),o=Math.floor(n/this.columnWidth);o-=n%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),s=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,r=i;r<=o;r++)this.colYs[r]=Math.max(s,this.colYs[r])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}); !function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){let i=t.console,a=void 0===i?function(){}:function(t){i.error(t)};return function(l,n,h){(h=h||e||t.jQuery)&&(n.prototype.option||(n.prototype.option=function(t){t&&(this.options=Object.assign(this.options||{},t))}),h.fn[l]=function(t,...e){var s;if("string"!=typeof t)return s=t,this.each(function(t,e){let i=h.data(e,l);i?(i.option(s),i._init()):(i=new n(e,s),h.data(e,l,i))}),this;{var i=this;var o=t;var r=e;let s,n=`$().${l}("${o}")`;return i.each(function(t,e){var i,e=h.data(e,l);e?(i=e[o])&&"_"!=o.charAt(0)?(i=i.apply(e,r),s=void 0===s?i:s):a(n+" is not a valid method"):a(l+" not initialized. Cannot call method "+n)}),void 0!==s?s:i}})}}),function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;return t&&e&&((i=(i=this._events=this._events||{})[t]=i[t]||[]).includes(e)||i.push(e)),this},e.once=function(t,e){var i;return t&&e&&(this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0),this},e.off=function(t,e){t=this._events&&this._events[t];return t&&t.length&&-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];var s,n=this._onceEvents&&this._onceEvents[t];for(s of i)n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){function c(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}let d=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];d.length;return function(t){if((t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){let s=getComputedStyle(t);if("none"==s.display){let e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return d.forEach(t=>{e[t]=0}),e}{let i={};i.width=t.offsetWidth,i.height=t.offsetHeight;var t=i.isBorderBox="border-box"==s.boxSizing,e=(d.forEach(t=>{var e=s[t],e=parseFloat(e);i[t]=isNaN(e)?0:e}),i.paddingLeft+i.paddingRight),n=i.paddingTop+i.paddingBottom,o=i.marginLeft+i.marginRight,r=i.marginTop+i.marginBottom,l=i.borderLeftWidth+i.borderRightWidth,h=i.borderTopWidth+i.borderBottomWidth,a=c(s.width),a=(!1!==a&&(i.width=a+(t?0:e+l)),c(s.height));return!1!==a&&(i.height=a+(t?0:n+h)),i.innerWidth=i.width-(e+l),i.innerHeight=i.height-(n+h),i.outerWidth=i.width+o,i.outerHeight=i.height+r,i}}}}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t):t.fizzyUIUtils=e(t)}(this,function(e){let i={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,s){return(t=i.makeArray(t)).filter(t=>t instanceof HTMLElement).reduce((t,e)=>{var i;return s?(e.matches(s)&&t.push(e),i=e.querySelectorAll(s),t=t.concat(...i)):t.push(e),t},[])},debounceMethod:function(t,e,i){i=i||100;let s=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[n]);let t=arguments;this[n]=setTimeout(()=>{s.apply(this,t),delete this[n]},i)}},docReady:function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},l=e.console;return i.htmlInit=function(o,r){i.docReady(function(){let s="data-"+i.toDashed(r);var t=document.querySelectorAll(`[${s}]`);let n=e.jQuery;[...t].forEach(e=>{var t=e.getAttribute(s);let i;try{i=t&&JSON.parse(t)}catch(t){return void(l&&l.error(`Error parsing ${s} on ${e.className}: `+t))}t=new o(e,i);n&&n.data(e,r,t)})})},i}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unidragger=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(s,t){function e(){}t=e.prototype=Object.create(t.prototype);t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)};let n,i;i="ontouchstart"in s?(n="touchstart",["touchmove","touchend","touchcancel"]):s.PointerEvent?(n="pointerdown",["pointermove","pointerup","pointercancel"]):(n="mousedown",["mousemove","mouseup"]),t.touchActionValue="none",t.bindHandles=function(){this._bindHandles("addEventListener",this.touchActionValue)},t.unbindHandles=function(){this._bindHandles("removeEventListener","")},t._bindHandles=function(e,i){this.handles.forEach(t=>{t[e](n,this),t[e]("click",this),s.PointerEvent&&(t.style.touchAction=i)})},t.bindActivePointerEvents=function(){i.forEach(t=>{s.addEventListener(t,this)})},t.unbindActivePointerEvents=function(){i.forEach(t=>{s.removeEventListener(t,this)})},t.withPointer=function(t,e){e.pointerId==this.pointerIdentifier&&this[t](e,e)},t.withTouch=function(t,e){let i;for(var s of e.changedTouches)s.identifier==this.pointerIdentifier&&(i=s);i&&this[t](e,i)},t.onmousedown=function(t){this.pointerDown(t,t)},t.ontouchstart=function(t){this.pointerDown(t,t.changedTouches[0])},t.onpointerdown=function(t){this.pointerDown(t,t)};const o=["TEXTAREA","INPUT","SELECT","OPTION"],r=["radio","checkbox","button","submit","image","file"];return t.pointerDown=function(t,e){var i=o.includes(t.target.nodeName),s=r.includes(t.target.type);this.isPointerDown||t.button||i&&!s||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this.bindActivePointerEvents(),this.emitEvent("pointerDown",[t,e]))},t.onmousemove=function(t){this.pointerMove(t,t)},t.onpointermove=function(t){this.withPointer("pointerMove",t)},t.ontouchmove=function(t){this.withTouch("pointerMove",t)},t.pointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY},s=(jQuery("body").hasClass("semplice-cursor")&&jQuery("#semplice-cursor").css("transform","translate3d("+t.clientX+"px, "+t.clientY+"px, 0px)"),this.emitEvent("pointerMove",[t,e,i]),!this.isDragging&&this.hasDragStarted(i));s&&this.dragStart(t,e),this.isDragging&&this.dragMove(t,e,i)},t.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},t.dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent("dragStart",[t,e])},t.dragMove=function(t,e,i){this.emitEvent("dragMove",[t,e,i])},t.onmouseup=function(t){this.pointerUp(t,t)},t.onpointerup=function(t){this.withPointer("pointerUp",t)},t.ontouchend=function(t){this.withTouch("pointerUp",t)},t.pointerUp=function(t,e){this.pointerDone(),this.emitEvent("pointerUp",[t,e]),this.isDragging?this.dragEnd(t,e):this.staticClick(t,e)},t.dragEnd=function(t,e){this.isDragging=!1,setTimeout(()=>delete this.isPreventingClicks),this.emitEvent("dragEnd",[t,e])},t.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent("pointerDone")},t.onpointercancel=function(t){this.withPointer("pointerCancel",t)},t.ontouchcancel=function(t){this.withTouch("pointerCancel",t)},t.pointerCancel=function(t,e){this.pointerDone(),this.emitEvent("pointerCancel",[t,e])},t.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},t.staticClick=function(t,e){var i="mouseup"==t.type;i&&this.isIgnoringMouseUp||(this.emitEvent("staticClick",[t,e]),i&&(this.isIgnoringMouseUp=!0,setTimeout(()=>{delete this.isIgnoringMouseUp},400)))},e}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){let o=e.jQuery,r=e.console;function l(t,e,i){if(!(this instanceof l))return new l(t,e,i);let s=t;var n;(s="string"==typeof t?document.querySelectorAll(t):s)?(this.elements=(n=s,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?[...n]:[n]),this.options={},"function"==typeof e?i=e:Object.assign(this.options,e),i&&this.on("always",i),this.getImages(),o&&(this.jqDeferred=new o.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(s||t))}(l.prototype=Object.create(t.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const n=[1,9,11],h=(l.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e,i,s=t["nodeType"];if(s&&n.includes(s)){for(e of t.querySelectorAll("img"))this.addImage(e);if("string"==typeof this.options.background)for(i of t.querySelectorAll(this.options.background))this.addElementBackgroundImages(i)}},/url\((['"])?(.*?)\1\)/gi);function i(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}return l.prototype.addElementBackgroundImages=function(e){var i=getComputedStyle(e);if(i){let t=h.exec(i.backgroundImage);for(;null!==t;){var s=t&&t[2];s&&this.addBackground(s,e),t=h.exec(i.backgroundImage)}}},l.prototype.addImage=function(t){t=new i(t);this.images.push(t)},l.prototype.addBackground=function(t,e){t=new s(t,e);this.images.push(t)},l.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let e=(t,e,i)=>{setTimeout(()=>{this.progress(t,e,i)})};this.images.forEach(function(t){t.once("progress",e),t.check()})}else this.complete()},l.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},l.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t;t=this.img.parentNode,t="PICTURE"===t.nodeName?t:this.img;this.emitEvent("progress",[this,t,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(s.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(l.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((o=t).fn.imagesLoaded=function(t,e){return new l(this,t,e).jqDeferred.promise(o(this))})})(),l}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t.getSize))}("undefined"!=typeof window?window:this,function(t){const e="flickity-cell";function i(t){this.element=t,this.element.classList.add(e),this.x=0,this.unselect()}var s=i.prototype;return s.destroy=function(){this.unselect(),this.element.classList.remove(e),this.element.style.transform="",this.element.removeAttribute("aria-hidden")},s.getSize=function(){this.size=t(this.element)},s.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},s.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},s.remove=function(){this.element.remove()},i}),function(t,e){"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}("undefined"!=typeof window?window:this,function(){function t(t,e,i){this.beginMargin=t,this.endMargin=e,this.cellAlign=i,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1===this.cells.length&&(this.x=t.x,this.firstMargin=t.size[this.beginMargin])},e.updateTarget=function(){var t=this.getLastCell(),t=t?t.size[this.endMargin]:0,t=this.outerWidth-(this.firstMargin+t);this.target=this.x+this.firstMargin+t*this.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach(t=>t.select())},e.unselect=function(){this.cells.forEach(t=>t.unselect())},e.getCellElements=function(){return this.cells.map(t=>t.element)},t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t.fizzyUIUtils))}("undefined"!=typeof window?window:this,function(e){var t={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating&&requestAnimationFrame(()=>this.animate())},positionSlider:function(){let t=this.x;this.isWrapping&&(t=e.modulo(t,this.slideableWidth)-this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,this.options.rightToLeft&&(t=-t);t=this.getPositionValue(t);this.slider.style.transform=e?`translate3d(${t},0,0)`:`translateX(${t})`},dispatchScrollEvent:function(){var t,e=this.slides[0];e&&(t=(e=-this.x-e.target)/this.slidesWidth,this.dispatchEvent("scroll",null,[t,e]))},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!==Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t,e=(this._shiftCells(this.beforeShiftCells,e,-1),this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition));this._shiftCells(this.afterShiftCells,e,1)},_shiftCells:function(t,i,s){t.forEach(t=>{var e=0<i?s:0;this._wrapShiftCell(t,e),i-=t.size.outerWidth})},_unshiftCells:function(t){t&&t.length&&t.forEach(t=>this._wrapShiftCell(t,0))},_wrapShiftCell:function(t,e){this._renderCellPosition(t,t.x+this.slideableWidth*e)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){var t;this.isDraggable&&this.isPointerDown&&(t=this.dragX-this.x-this.velocity,this.applyForce(t))},applySelectedAttraction:function(){var t;this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length||(t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction,this.applyForce(t))}};return t}),function(t,e){var i;"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate")):(i=t.Flickity,t.Flickity=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype))}("undefined"!=typeof window?window:this,function(l,t,e,h,i,a,s){const{getComputedStyle:n,console:o}=l;let r=l["jQuery"],c=0,d={};function u(t,e){var i,s=h.getQueryElement(t);if(s){if(this.element=s,this.element.flickityGUID)return(i=d[this.element.flickityGUID])&&i.option(e),i;r&&(this.$element=r(this.element)),this.options={...this.constructor.defaults},this.option(e),this._create()}else o&&o.error("Bad element for Flickity: "+(s||t))}u.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},u.create={};var p=u.prototype;Object.assign(p,t.prototype),p._create=function(){var t,e,{resize:i,watchCSS:s,rightToLeft:n}=this.options,o=this.guid=++c;for(t in this.element.flickityGUID=o,(d[o]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.beginMargin=n?"marginRight":"marginLeft",this.endMargin=n?"marginLeft":"marginRight",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),this.focusableElems=[this.element],(i||s)&&l.addEventListener("resize",this),this.options.on){var r=this.options.on[t];this.on(t,r)}for(e in u.create)u.create[e].call(this);s?this.watchCSS():this.activate()},p.option=function(t){Object.assign(this.options,t)},p.activate=function(){var t;this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),t=this._filterFindCellElements(this.element.children),this.slider.append(...t),this.viewport.append(this.slider),this.element.append(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",this.slider=t},p._filterFindCellElements=function(t){return h.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map(t=>new i(t))},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){this.maxCellHeight=(t=t||0)&&this.maxCellHeight||0;let e=0;var i;0<t&&(i=this.cells[t-1],e=i.x+i.size.outerWidth),this.cells.slice(t).forEach(t=>{t.x=e,this._renderCellPosition(t,e),e+=t.size.outerWidth,this.maxCellHeight=Math.max(t.size.outerHeight,this.maxCellHeight)}),this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=this.cells.length?this.getLastSlide().target-this.slides[0].target:0},p._renderCellPosition=function(t,e){let i=e*(this.options.rightToLeft?-1:1);this.options.percentPosition&&(i*=this.size.innerWidth/t.size.width);e=this.getPositionValue(i);t.element.style.transform=`translateX( ${e} )`},p._sizeCells=function(t){t.forEach(t=>t.getSize())},p.updateSlides=function(){if(this.slides=[],this.cells.length){let{beginMargin:s,endMargin:n}=this,o=new a(s,n,this.cellAlign),r=(this.slides.push(o),this._getCanCellFit());this.cells.forEach((t,e)=>{var i;o.cells.length&&(i=o.outerWidth-o.firstMargin+(t.size.outerWidth-t.size[n]),r(e,i)||(o.updateTarget(),o=new a(s,n,this.cellAlign),this.slides.push(o))),o.addCell(t)}),o.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options["groupCells"];if(!t)return()=>!1;if("number"==typeof t){let e=parseInt(t,10);return t=>t%e!=0}let e=1;t="string"==typeof t&&t.match(/^(\d+)%$/);t&&(e=parseInt(t[1],10)/100);let i=(this.size.innerWidth+1)*e;return(t,e)=>e<=i},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};let g={left:0,center:.5,right:1};p.setCellAlign=function(){var{cellAlign:t,rightToLeft:e}=this.options,i=g[t];this.cellAlign=void 0!==i?i:t,e&&(this.cellAlign=1-this.cellAlign)},p.setGallerySize=function(){var t;this.options.setGallerySize&&(t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight,this.viewport.style.height=t+"px")},p._updateWrapShiftCells=function(){var t,e;this.isWrapping=this.getIsWrapping(),this.isWrapping&&(this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells),e=this.cursorPosition,t=this.cells.length-1,this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1))},p.getIsWrapping=function(){var t=this.options["wrapAround"];if(!t||this.slides.length<2)return!1;if("fill"===t){var e=this.slideableWidth-this.size.innerWidth;if(!(e>this.size.innerWidth))for(var i of this.cells)if(i.size.outerWidth>e)return!1}return!0},p._getGapCells=function(t,e,i){for(var s=[];0<t;){var n=this.cells[e];if(!n)break;s.push(n),e+=i,t-=n.size.outerWidth}return s},p._containSlides=function(){if(this.options.contain&&!this.isWrapping&&this.cells.length){let s=this.slideableWidth-this.getLastCell().size[this.endMargin];if(s<this.size.innerWidth)this.slides.forEach(t=>{t.target=s*this.cellAlign});else{let e=this.cursorPosition+this.cells[0].size[this.beginMargin],i=s-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(t=>{t.target=Math.max(t.target,e),t.target=Math.min(t.target,i)})}}},p.dispatchEvent=function(e,i,s){var n=i?[i].concat(s):s;if(this.emitEvent(e,n),r&&this.$element){let t=e+=this.options.namespaceJQueryEvents?".flickity":"";i&&((n=new r.Event(i)).type=e,t=n),this.$element.trigger(t,s)}};const f=["dragStart","dragMove","dragEnd","pointerDown","pointerMove","pointerEnd","staticClick"];let m=p.emitEvent;p.emitEvent=function(t,e){"staticClick"===t&&(s=(i=this.getParentCell(e[0].target))&&i.element,i=i&&this.cells.indexOf(i),e=e.concat(s,i)),m.call(this,t,e);var i,s=f.includes(t);s&&r&&this.$element&&(t+=this.options.namespaceJQueryEvents?".flickity":"",i=e.shift(0),(s=new r.Event(i)).type=t,this.$element.trigger(s,e))},p.select=function(t,e,i){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.isWrapping||e)&&(t=h.modulo(t,this.slides.length)),this.slides[t])&&(e=this.selectedIndex,this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!==e)&&this.dispatchEvent("change",null,[t])},p._wrapSelect=function(t){var e,i,s,n,o,r;this.isWrapping&&({selectedIndex:e,slideableWidth:i,slides:{length:s}}=this,this.isDragSelect||(r=h.modulo(t,s),n=Math.abs(r-e),o=Math.abs(r+s-e),r=Math.abs(r-s-e),o<n?t+=s:r<n&&(t-=s)),t<0?this.x-=i:s<=t&&(this.x+=i))},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),(this.selectedSlide=t).select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){var e=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(e&&"string"==typeof e)if(this.queryCell(e))return void this.selectCell(e,!1,!0);let t=0;e&&this.slides[e]&&(t=e),this.select(t,!1,!0)}},p.selectCell=function(t,e,i){var t=this.queryCell(t);t&&(t=this.getCellSlideIndex(t),this.select(t,e,i))},p.getCellSlideIndex=function(e){var t=this.slides.find(t=>t.cells.includes(e));return this.slides.indexOf(t)},p.getCell=function(t){for(var e of this.cells)if(e.element===t)return e},p.getCells=function(t){return(t=h.makeArray(t)).map(t=>this.getCell(t)).filter(Boolean)},p.getCellElements=function(){return this.cells.map(t=>t.element)},p.getParentCell=function(t){var e=this.getCell(t);return e||(e=t.closest(".flickity-slider > *"),this.getCell(e))},p.getAdjacentCellElements=function(e,i){if(!e)return this.selectedSlide.getCellElements();i=void 0===i?this.selectedIndex:i;var s=this.slides.length;if(s<=1+2*e)return this.getCellElements();let n=[];for(let t=i-e;t<=i+e;t++){var o=this.isWrapping?h.modulo(t,s):t,o=this.slides[o];o&&(n=n.concat(o.getCellElements()))}return n},p.queryCell=function(t){return"number"==typeof t?this.cells[t]:("string"==typeof t&&!t.match(/^[#.]?[\d/]/)&&(t=this.element.querySelector(t)),this.getCell(t))},p.uiChange=function(){this.emitEvent("uiChange")},p.onresize=function(){this.watchCSS(),this.resize()},h.debounceMethod(u,"onresize",150),p.resize=function(){var t;!this.isActive||this.isAnimating||this.isDragging||(this.getSize(),this.isWrapping&&(this.x=h.modulo(this.x,this.slideableWidth)),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize"),t=this.selectedElements&&this.selectedElements[0],this.selectCell(t,!1,!0))},p.watchCSS=function(){this.options.watchCSS&&(n(this.element,":after").content.includes("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){let e=document["activeElement"];t=u.keyboardHandlers[t.key];this.options.accessibility&&e&&t&&this.focusableElems.some(t=>e===t)&&t.call(this)},u.keyboardHandlers={ArrowLeft:function(){this.uiChange(),this[this.options.rightToLeft?"next":"previous"]()},ArrowRight:function(){this.uiChange(),this[this.options.rightToLeft?"previous":"next"]()}},p.focus=function(){this.element.focus({preventScroll:!0})},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(t=>t.destroy()),this.viewport.remove(),this.element.append(...this.slider.children),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),l.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),r&&this.$element&&r.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete d[this.guid]},Object.assign(p,s),u.data=function(t){if(t=h.getQueryElement(t))return d[t.flickityGUID]},h.htmlInit(u,"flickity");t=l.jQueryBridget;return r&&t&&t("flickity",u,r),u.setJQuery=function(t){r=t},u.Cell=i,u.Slide=a,u}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}("undefined"!=typeof window?window:this,function(n,t,e,o){Object.assign(t.defaults,{draggable:">1",dragThreshold:3});var i=t.prototype;function r(){return{x:n.pageXOffset,y:n.pageYOffset}}return Object.assign(i,e.prototype),i.touchActionValue="",t.create.drag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("pointerDown",this.handlePointerDone),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.on("staticClick",this.handleStaticClick)},i.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},i.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},i.updateDraggable=function(){">1"===this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.element.classList.toggle("is-draggable",this.isDraggable)},i._uiChangeDrag=function(){delete this.isFreeScrolling},i.handlePointerDown=function(t){var e,i,s;this.isDraggable&&(e="touchstart"===t.type,i="touch"===t.pointerType,s=t.target.matches("input, textarea, select"),e||i||s||t.preventDefault(),s||this.focus(),document.activeElement!==this.element&&document.activeElement.blur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),n.addEventListener("scroll",this)),this.bindActivePointerEvents(t)},i.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},i.handlePointerUp=function(){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down")},i.handlePointerDone=function(){n.removeEventListener("scroll",this),delete this.pointerDownScroll},i.handleDragStart=function(){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),n.removeEventListener("scroll",this))},i.handleDragMove=function(e,t,i){if(this.isDraggable){e.preventDefault(),this.previousDragX=this.dragX;var e=this.options.rightToLeft?-1:1;this.isWrapping&&(i.x%=this.slideableWidth);let t=this.dragStartPosition+i.x*e;this.isWrapping||(i=Math.max(-this.slides[0].target,this.dragStartPosition),t=t>i?.5*(t+i):t,e=Math.min(-this.getLastSlide().target,this.dragStartPosition),t=t<e?.5*(t+e):t),this.dragX=t,this.dragMoveTime=new Date}},i.handleDragEnd=function(){if(this.isDraggable){var e,i=this.options["freeScroll"];i&&(this.isFreeScrolling=!0);let t=this.dragEndRestingSelect();i&&!this.isWrapping?(e=this.getRestingPosition(),this.isFreeScrolling=-e>this.slides[0].target&&-e<this.getLastSlide().target):i||t!==this.selectedIndex||(t+=this.dragEndBoostSelect()),delete this.previousDragX,this.isDragSelect=this.isWrapping,this.select(t),delete this.isDragSelect}},i.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),t=this._getClosestResting(t,e,-1);return(i.distance<t.distance?i:t).index},i._getClosestResting=function(t,e,i){let s=this.selectedIndex,n=1/0;for(var o=this.options.contain&&!this.isWrapping?(t,e)=>t<=e:(t,e)=>t<e;o(e,n)&&(s+=i,n=e,null!==(e=this.getSlideDistance(-t,s)));)e=Math.abs(e);return{distance:n,index:s-i}},i.getSlideDistance=function(t,e){var i=this.slides.length,s=this.options.wrapAround&&1<i,n=s?o.modulo(e,i):e,n=this.slides[n];return n?(s=s?this.slideableWidth*Math.floor(e/i):0,t-(n.target+s)):null},i.dragEndBoostSelect=function(){var t,e;return void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime?0:(t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX,0<t&&0<e?1:t<0&&e<0?-1:0)},i.onscroll=function(){var t=r(),e=this.pointerDownScroll.x-t.x,t=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(t))&&this.pointerDone()},t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./core")):e(t.Flickity)}("undefined"!=typeof window?window:this,function(t){const n="http://www.w3.org/2000/svg";function s(t,e,i){this.increment=t,this.direction=e,this.isPrevious="previous"===t,this.isLeft="left"===e,this._create(i)}s.prototype._create=function(t){var e=this.element=document.createElement("button"),i=(e.className="flickity-button flickity-prev-next-button "+this.increment,this.isPrevious?"Previous":"Next"),i=(e.setAttribute("type","button"),e.setAttribute("aria-label",i),this.disable(),this.createSVG(i,t));e.append(i)},s.prototype.createSVG=function(t,e){var i=document.createElementNS(n,"svg"),s=(i.setAttribute("class","flickity-button-icon"),i.setAttribute("viewBox","0 0 100 100"),document.createElementNS(n,"title")),t=(s.append(t),document.createElementNS(n,"path")),e=function(t){if("string"==typeof t)return t;var{x0:t,x1:e,x2:i,x3:s,y1:n,y2:o}=t;return`M ${t}, 50 L ${e}, ${n+50} L ${i}, ${o+50} L ${s}, 50 L ${i}, ${50-o} L ${e}, ${50-n} Z`}(e);return t.setAttribute("d",e),t.setAttribute("class","arrow"),this.isLeft||t.setAttribute("transform","translate(100, 100) rotate(180)"),i.append(s,t),i},s.prototype.enable=function(){this.element.removeAttribute("disabled")},s.prototype.disable=function(){this.element.setAttribute("disabled",!0)},Object.assign(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.create.prevNextButtons=function(){var t,e,i;this.options.prevNextButtons&&({rightToLeft:t,arrowShape:e}=this.options,i=t?"left":"right",this.prevButton=new s("previous",t?"right":"left",e),this.nextButton=new s("next",i,e),this.focusableElems.push(this.prevButton.element),this.focusableElems.push(this.nextButton.element),this.handlePrevButtonClick=()=>{this.uiChange(),this.previous()},this.handleNextButtonClick=()=>{this.uiChange(),this.next()},this.on("activate",this.activatePrevNextButtons),this.on("select",this.updatePrevNextButtons))};var e=t.prototype;return e.updatePrevNextButtons=function(){var t=this.slides.length?this.slides.length-1:0;this.updatePrevNextButton(this.prevButton,0),this.updatePrevNextButton(this.nextButton,t)},e.updatePrevNextButton=function(t,e){this.isWrapping&&1<this.slides.length?t.enable():(t[(e=this.selectedIndex!==e)?"enable":"disable"](),e||document.activeElement!==t.element||this.focus())},e.activatePrevNextButtons=function(){this.prevButton.element.addEventListener("click",this.handlePrevButtonClick),this.nextButton.element.addEventListener("click",this.handleNextButtonClick),this.element.append(this.prevButton.element,this.nextButton.element),this.on("deactivate",this.deactivatePrevNextButtons)},e.deactivatePrevNextButtons=function(){this.prevButton.element.remove(),this.nextButton.element.remove(),this.prevButton.element.removeEventListener("click",this.handlePrevButtonClick),this.nextButton.element.removeEventListener("click",this.handleNextButtonClick),this.off("deactivate",this.deactivatePrevNextButtons)},t.PrevNextButton=s,t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./core"),require("fizzy-ui-utils")):e(t.Flickity,t.fizzyUIUtils)}("undefined"!=typeof window?window:this,function(t,e){function i(){this.holder=document.createElement("div"),this.holder.className="flickity-page-dots",this.dots=[]}i.prototype.setDots=function(t){t-=this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},i.prototype.addDots=function(t){t=new Array(t).fill().map((t,e)=>{var i=document.createElement("button"),e=(i.setAttribute("type","button"),e+1+this.dots.length);return i.className="flickity-page-dot",i.textContent="View slide "+e,i});this.holder.append(...t),this.dots=this.dots.concat(t)},i.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(t=>t.remove())},i.prototype.updateSelected=function(t){this.selectedDot&&(this.selectedDot.classList.remove("is-selected"),this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[t],this.selectedDot.classList.add("is-selected"),this.selectedDot.setAttribute("aria-current","step"))},t.PageDots=i,Object.assign(t.defaults,{pageDots:!0}),t.create.pageDots=function(){this.options.pageDots&&(this.pageDots=new i,this.handlePageDotsClick=this.onPageDotsClick.bind(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))};var s=t.prototype;return s.activatePageDots=function(){this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots),this.pageDots.holder.addEventListener("click",this.handlePageDotsClick),this.element.append(this.pageDots.holder)},s.onPageDotsClick=function(t){t=this.pageDots.dots.indexOf(t.target);-1!==t&&(this.uiChange(),this.select(t))},s.updateSelectedPageDots=function(){this.pageDots.updateSelected(this.selectedIndex)},s.updatePageDots=function(){this.pageDots.dots.forEach(t=>{e.removeFrom(this.focusableElems,t)}),this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots)},s.deactivatePageDots=function(){this.pageDots.holder.remove(),this.pageDots.holder.removeEventListener("click",this.handlePageDotsClick)},t.PageDots=i,t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./core")):e(t.Flickity)}("undefined"!=typeof window?window:this,function(t){function e(t,e){this.autoPlay=t,this.onTick=e,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}e.prototype.play=function(){"playing"!==this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},e.prototype.tick=function(){var t;"playing"===this.state&&(t="number"==typeof this.autoPlay?this.autoPlay:3e3,this.clear(),this.timeout=setTimeout(()=>{this.onTick(),this.tick()},t))},e.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},e.prototype.clear=function(){clearTimeout(this.timeout)},e.prototype.pause=function(){"playing"===this.state&&(this.state="paused",this.clear())},e.prototype.unpause=function(){"paused"===this.state&&this.play()},e.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},e.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},Object.assign(t.defaults,{pauseAutoPlayOnHover:!0}),t.create.player=function(){this.player=new e(this.options.autoPlay,()=>{this.next(!0)}),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)};var i=t.prototype;return i.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},i.playPlayer=function(){this.player.play()},i.stopPlayer=function(){this.player.stop()},i.pausePlayer=function(){this.player.pause()},i.unpausePlayer=function(){this.player.unpause()},i.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},i.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},i.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},t.Player=e,t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./core"),require("fizzy-ui-utils")):e(t.Flickity,t.fizzyUIUtils)}("undefined"!=typeof window?window:this,function(t,s){var e=t.prototype;return e.insert=function(t,e){var i,s,n,o,t=this._makeCells(t);t&&t.length&&(i=this.cells.length,e=void 0===e?i:e,o=function(t){let e=document.createDocumentFragment();return t.forEach(t=>e.appendChild(t.element)),e}(t),(s=e===i)?this.slider.appendChild(o):(n=this.cells[e].element,this.slider.insertBefore(o,n)),0===e?this.cells=t.concat(this.cells):s?this.cells=this.cells.concat(t):(o=this.cells.splice(e,i-e),this.cells=this.cells.concat(t).concat(o)),this._sizeCells(t),this.cellChange(e),this.positionSliderAtSelected())},e.append=function(t){this.insert(t,this.cells.length)},e.prepend=function(t){this.insert(t,0)},e.remove=function(t){t=this.getCells(t);if(t&&t.length){let i=this.cells.length-1;t.forEach(t=>{t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),s.removeFrom(this.cells,t)}),this.cellChange(i),this.positionSliderAtSelected()}},e.cellSizeChange=function(t){var t=this.getCell(t);t&&(t.getSize(),t=this.cells.indexOf(t),this.cellChange(t))},e.cellChange=function(t){var e=this.selectedElement,e=(this._positionCells(t),this._updateWrapShiftCells(),this.setGallerySize(),this.getCell(e));e&&(this.selectedIndex=this.getCellSlideIndex(e)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex)},t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./core"),require("fizzy-ui-utils")):e(t.Flickity,t.fizzyUIUtils)}("undefined"!=typeof window?window:this,function(t,e){const n="data-flickity-lazyload",o=n+"-src",r=n+"-srcset";n,o,r,r;t.create.lazyLoad=function(){this.on("select",this.lazyLoad),this.handleLazyLoadComplete=this.onLazyLoadComplete.bind(this)};var i=t.prototype;function s(t){if(t.matches("img")){var e=t.getAttribute(n),i=t.getAttribute(o),s=t.getAttribute(r);if(e||i||s)return t}return[...t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset], source[data-flickity-lazyload-srcset]")]}function l(t,e){this.img=t,this.onComplete=e,this.load()}return i.lazyLoad=function(){var t=this.options["lazyLoad"];t&&this.getAdjacentCellElements("number"==typeof t?t:0).map(s).flat().forEach(t=>new l(t,this.handleLazyLoadComplete))},i.onLazyLoadComplete=function(t,e){t=this.getParentCell(t),t=t&&t.element;this.cellSizeChange(t),this.dispatchEvent("lazyLoad",e,t)},l.prototype.handleEvent=e.handleEvent,l.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute(n)||this.img.getAttribute(o),e=this.img.getAttribute(r);this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute(n),this.img.removeAttribute(o),this.img.removeAttribute(r)},l.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},l.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},l.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this),(this.img.parentNode.matches("picture")?this.img.parentNode:this.img).classList.add(e),this.onComplete(this.img,t)},t.LazyLoader=l,t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./core"),require("imagesloaded")):e(t.Flickity,t.imagesLoaded)}("undefined"!=typeof window?window:this,function(t,e){return t.create.imagesLoaded=function(){this.on("activate",this.imagesLoaded)},t.prototype.imagesLoaded=function(){this.options.imagesLoaded&&e(this.slider).on("progress",(t,e)=>{e=this.getParentCell(e.img);this.cellSizeChange(e&&e.element),this.options.freeScroll||this.positionSliderAtSelected()})},t}); !function(e,t){"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):t(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,function(e,s){var t=e.Slide,t=(t.prototype.renderFadePosition=function(){},t.prototype.setOpacity=function(t){this.cells.forEach(e=>{e.element.style.opacity=t})},e.create.fade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)},e.prototype);let i=t.updateSlides,d=(t.updateSlides=function(){i.apply(this,arguments),this.options.fade&&this.slides.forEach((e,t)=>{let i=e.target-e.x,s=e.cells[0].x;e.cells.forEach(e=>{var t=e.x-s-i;this._renderCellPosition(e,t)});t=t===this.selectedIndex?1:0;e.setOpacity(t)})},t.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},t.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex])&&this.fadeIndex!==this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0)},t.onDragEndFade=function(){this.didDragEnd=!0},t.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},t.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach(e=>{e.setOpacity("")}))},t.positionSlider),n=(t.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):d.apply(this,arguments)},t.positionSliderAtSelected),a=(t.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),n.apply(this,arguments)},t.fadeSlides=function(){if(!(this.slides.length<2)){var t=this.getFadeIndexes(),i=this.slides[t.a],s=this.slides[t.b],d=this.wrapDifference(i.target,s.target),n=this.wrapDifference(i.target,-this.x);i.setOpacity(1-(n/=d)),s.setOpacity(n);let e=t.a;this.isDragging&&(e=.5<n?t.a:t.b),void 0!==this.fadeHideIndex&&this.fadeHideIndex!==e&&this.fadeHideIndex!==t.a&&this.fadeHideIndex!==t.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=e}},t.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},t.getFadeDragWrapIndexes=function(){var e=this.slides.map(function(e,t){return this.getSlideDistance(-this.x,t)},this),t=e.map(function(e){return Math.abs(e)}),i=Math.min(...t),t=t.indexOf(i),i=e[t],e=this.slides.length;return{a:t,b:s.modulo(t+(0<=i?1:-1),e)}},t.getFadeDragLimitIndexes=function(){let t=0;for(let e=0;e<this.slides.length-1;e++){var i=this.slides[e];if(-this.x<i.target)break;t=e}return{a:t,b:t+1}},t.wrapDifference=function(e,t){let i=t-e;return i=this.options.wrapAround&&(t=i+this.slideableWidth,e=i-this.slideableWidth,Math.abs(t)<Math.abs(i)&&(i=t),Math.abs(e)<Math.abs(i))?e:i},t._updateWrapShiftCells),h=(t._updateWrapShiftCells=function(){this.options.fade?this.isWrapping=this.getIsWrapping():a.apply(this,arguments)},t.shiftWrapCells);return t.shiftWrapCells=function(){this.options.fade||h.apply(this,arguments)},e}); var OverlayScrollbarsGlobal=function(t){"use strict";const rt=(t,e)=>{const{o:r,i:n,u:o}=t;let i,l=r;const s=(t,e)=>{var r=l,e=e||(n?!n(r,t):r!==t);return(e||o)&&(l=t,i=r),[l,e,i]};return[e?t=>s(e(l,i),t):s,t=>[l,!!t,i]]},nt="undefined"!=typeof window&&"undefined"!=typeof HTMLElement&&window.document?window:{},u=Math.max,n=Math.min,j=Math.round,St=Math.abs,Ot=Math.sign,w=nt.cancelAnimationFrame,ot=nt.requestAnimationFrame,S=nt.setTimeout,O=nt.clearTimeout,e=t=>void 0!==nt[t]?nt[t]:void 0,p=e("MutationObserver"),a=e("IntersectionObserver"),W=e("ResizeObserver"),k=e("ScrollTimeline"),A=t=>void 0===t,H=t=>null===t,V=t=>"number"==typeof t,P=t=>"string"==typeof t,z=t=>"boolean"==typeof t,K=t=>"function"==typeof t,Z=t=>Array.isArray(t),l=t=>"object"==typeof t&&!Z(t)&&!H(t),o=t=>{var e=!!t&&t.length,r=V(e)&&-1<e&&e%1==0;return!(!(Z(t)||!K(t)&&r)||0<e&&l(t)&&!(e-1 in t))},s=t=>!!t&&t.constructor===Object,tt=t=>t instanceof HTMLElement,Y=t=>t instanceof Element,v=()=>performance.now(),b=(n,o,t,i,l)=>{let s=0;const a=v(),c=u(0,t),d=t=>{var e=v(),r=e-a>=c,t=t?1:1-(u(0,a+c-e)/c||0),e=(o-n)*(K(l)?l(t,t*c,0,1,c):t)+n,r=r||1==t;i&&i(e,t,r),s=r?0:ot(()=>d())};return d(),t=>{w(s),t&&d(t)}};function R(e,r){if(o(e))for(let t=0;t<e.length&&!1!==r(e[t],t,e);t++);else e&&R(Object.keys(e),t=>r(e[t],t,e));return e}const Mt=(t,e)=>0<=t.indexOf(e),B=(t,e)=>t.concat(e),et=(t,e,r)=>(r||P(e)||!o(e)?t.push(e):Array.prototype.push.apply(t,e),t),g=t=>Array.from(t||[]),r=t=>Z(t)?t:!P(t)&&o(t)?g(t):[t],y=t=>!!t&&!t.length,E=t=>g(new Set(t)),it=(t,e,r)=>{R(t,t=>!t||t.apply(void 0,e||[])),r||(t.length=0)},L="paddingTop",_="paddingRight",I="paddingLeft",N="paddingBottom",F="marginLeft",U="marginRight",D="marginBottom",Ct="overflowX",Dt="overflowY",m="width",x="height",lt="visible",st="hidden",at="scroll",i=(r,n,t,o)=>{if(r&&n){let e=!0;return R(t,t=>{(o?o(r[t]):r[t])!==(o?o(n[t]):n[t])&&(e=!1)}),e}return!1},Tt=(t,e)=>i(t,e,["w","h"]),M=(t,e)=>i(t,e,["x","y"]),f=(t,e)=>i(t,e,["t","r","b","l"]),T=()=>{},ct=(t,...e)=>t.bind(0,...e),dt=e=>{let r;const n=e?S:ot,o=e?O:w;return[t=>{o(r),r=n(()=>t(),K(e)?e():e)},()=>o(r)]},X=(e,t)=>{const{_:a,v:c,p:d,S:r}=t||{};let u,v,p,y,h=T;function n(){var e=g(arguments),r=K(a)?a():a;if(V(r)&&0<=r){const a=K(c)?c():c,n=V(a)&&0<=a,o=0<r?S:ot,i=0<r?O:w,l=b(e)||e,s=f.bind(0,l);let t;h(),d&&!y?(s(),y=!0,t=o(()=>y=void 0,r)):(t=o(s,r),n&&!u&&(u=S(x,a))),h=()=>i(t),v=p=l}else f(e)}const f=function(t){h(),O(u),y=u=v=void 0,h=T,e.apply(this,t)},b=t=>r&&v?r(v,t):t,x=()=>{h!==T&&f(b(p)||p)};return n.m=x,n},d=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ut=t=>t?Object.keys(t):[],vt=(i,t,e,r,n,o,l)=>{t=[t,e,r,n,o,l];return"object"==typeof i&&!H(i)||K(i)||(i={}),R(t,o=>{R(o,(t,e)=>{var r=o[e];if(i===r)return!0;var n=Z(r);if(r&&s(r)){const o=i[e];let t=o;n&&!Z(o)?t=[]:n||s(o)||(t={}),i[e]=vt(t,r)}else i[e]=n?r.slice():r})}),i},Rt=(t,n)=>R(vt({},t),(t,e,r)=>{void 0===t?delete r[e]:n&&t&&s(t)&&(r[e]=Rt(t,n))}),$t=t=>!ut(t).length,kt=(t,e,r)=>u(t,n(e,r)),c=t=>E((Z(t)?t:(t||"").split(" ")).filter(t=>t)),At=(t,e)=>t&&t.getAttribute(e),h=(t,e)=>t&&t.hasAttribute(e),q=(e,t,r)=>{R(c(t),t=>{e&&e.setAttribute(t,String(r||""))})},J=(e,t)=>{R(c(t),t=>e&&e.removeAttribute(t))},C=(t,e)=>{const n=c(At(t,e)),r=ct(q,t,e),o=(t,e)=>{const r=new Set(n);return R(c(t),t=>{r[e](t)}),g(r).join(" ")};return{O:t=>r(o(t,"delete")),$:t=>r(o(t,"add")),C:t=>{t=c(t);return t.reduce((t,e)=>t&&n.includes(e),0<t.length)}}},Ht=(t,e,r)=>(C(t,e).O(r),ct(Pt,t,e,r)),Pt=(t,e,r)=>(C(t,e).$(r),ct(Ht,t,e,r)),zt=(t,e,r,n)=>(n?Pt:Ht)(t,e,r),Et=(t,e,r)=>C(t,e).C(r),Lt=t=>C(t,"class"),_t=(t,e)=>{Lt(t).O(e)},It=(t,e)=>(Lt(t).$(e),ct(_t,t,e)),jt=(t,e)=>{e=e?Y(e)&&e:document;return e?g(e.querySelectorAll(t)):[]},Nt=(t,e)=>Y(t)&&t.matches(e),Ft=t=>Nt(t,"body"),Vt=t=>t?g(t.childNodes):[],Kt=t=>t&&t.parentElement,Zt=(t,e)=>Y(t)&&t.closest(e),Wt=t=>(t||document).activeElement,Yt=t=>{R(r(t),t=>{var e=Kt(t);t&&e&&e.removeChild(t)})},pt=(e,t)=>ct(Yt,e&&t&&R(r(t),t=>{t&&e.appendChild(t)})),Bt=t=>{var e=document.createElement("div");return q(e,"class",t),e},Ut=t=>{var e=Bt();return e.innerHTML=t.trim(),R(Vt(e),t=>Yt(t))},Xt=(t,e)=>t.getPropertyValue(e)||t[e]||"",qt=t=>{t=t||0;return isFinite(t)?t:0},Jt=t=>qt(parseFloat(t||"")),Gt=t=>Math.round(1e4*t)/1e4,Qt=t=>Gt(qt(t))+"px";function yt(o,t){o&&t&&R(t,(t,e)=>{try{var r=o.style,n=H(t)||z(t)?"":V(t)?Qt(t):t;0===e.indexOf("--")?r.setProperty(e,n):r[e]=n}catch(t){}})}function ht(t,e,r){var n=P(e);let o=n?"":{};if(t){const i=nt.getComputedStyle(t,r)||t.style;o=n?Xt(i,e):g(e).reduce((t,e)=>(t[e]=Xt(i,e),t),o)}return o}const te=(t,e,r)=>{var e=e?e+"-":"",r=r?"-"+r:"",n=e+"top"+r,o=e+"right"+r,i=e+"bottom"+r,e=e+"left"+r,r=ht(t,[n,o,i,e]);return{t:Jt(r[n]),r:Jt(r[o]),b:Jt(r[i]),l:Jt(r[e])}},ee=(t,e)=>"translate"+(l(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`),re={w:0,h:0},ne=(t,e)=>e?{w:e[t+"Width"],h:e[t+"Height"]}:re,G=ct(ne,"offset"),oe=ct(ne,"client"),ie=ct(ne,"scroll"),le=t=>{var e=parseFloat(ht(t,m))||0,t=parseFloat(ht(t,x))||0;return{w:e-j(e),h:t-j(t)}},se=t=>t.getBoundingClientRect(),ae=t=>!(!t||!t[x]&&!t[m]),ce=(t,e)=>{t=ae(t);return!ae(e)&&t},de=(e,t,r,n)=>{R(c(t),t=>{e&&e.removeEventListener(t,r,n)})},ft=(n,t,o,e)=>{var r;const i=null==(r=e&&e.H)||r,l=e&&e.I||!1,s=e&&e.A||!1,a={passive:i,capture:l};return ct(it,c(t).map(e=>{const r=s?t=>{de(n,e,r,l),o&&o(t)}:o;return n&&n.addEventListener(e,r,a),ct(de,n,e,r,l)}))},ue=t=>t.stopPropagation(),ve=t=>t.preventDefault(),pe=t=>ue(t)||ve(t),bt=(t,e)=>{var{x:e,y:r}=V(e)?{x:e,y:e}:e||{};V(e)&&(t.scrollLeft=e),V(r)&&(t.scrollTop=r)},xt=t=>({x:t.scrollLeft,y:t.scrollTop}),ye=({D:t,M:e})=>{var r=(t,e)=>0===t&&t<=e;return{x:r(t.x,e.x),y:r(t.y,e.y)}},he=({D:t,M:e},r)=>{var n=(t,e,r)=>kt(0,1,(t-r)/(t-e)||0);return{x:n(t.x,e.x,r.x),y:n(t.y,e.y,r.y)}},fe=t=>{t&&t.focus&&t.focus({preventScroll:!0})},be=(t,e)=>{R(r(e),t)},xe=t=>{const o=new Map,i=(t,e)=>{if(t){const r=o.get(t);be(t=>{r&&r[t?"delete":"clear"](t)},e)}else o.forEach(t=>{t.clear()}),o.clear()},l=(r,t)=>{if(P(r)){const l=o.get(r)||new Set;return o.set(r,l),be(t=>{K(t)&&l.add(t)},t),ct(i,r,t)}z(t)&&t&&i();const e=ut(r),n=[];return R(e,t=>{var e=r[t];e&&et(n,l(t,e))}),ct(it,n)};return l(t||{}),[l,i,(t,e)=>{R(g(o.get(t)),t=>{e&&!y(e)?t.apply(0,e):t()})}]},ge=t=>JSON.stringify(t,(t,e)=>{if(K(e))throw 0;return e}),we=(t,e)=>t?(""+e).split(".").reduce((t,e)=>t&&d(t,e)?t[e]:void 0,t):void 0,me={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Se=(t,o)=>{const i={};return R(B(ut(o),ut(t)),e=>{var r=t[e],n=o[e];if(l(r)&&l(n))vt(i[e]={},Se(r,n)),$t(i[e])&&delete i[e];else if(d(o,e)&&n!==r){let t=!0;if(Z(r)||Z(n))try{ge(r)===ge(n)&&(t=!1)}catch(t){}t&&(i[e]=n)}}),i},Oe=(e,r,n)=>t=>[we(e,t),n||void 0!==we(r,t)],Me="data-overlayscrollbars",Ce="os-environment",De=Ce+"-scrollbar-hidden",Te=Me+"-initialize",Re="noClipping",$e=Me+"-body",gt=Me,Q=Me+"-viewport",ke=(Ct,Dt,"arrange"),Ae="measuring",He="scrollbarHidden",Pe=Me+"-padding",ze=Me+"-content",Ee="os-size-observer",Le=(Ee,Ee+"-listener"),_e=(Le,Le+"-item"),Ie=_e+"-final",wt="os-scrollbar",je=wt+"-rtl",Ne=wt+"-horizontal",Fe=wt+"-vertical",Ve=wt+"-track",Ke=wt+"-handle",Ze=wt+"-visible",We=wt+"-cornerless",Ye=wt+"-interaction",Be=wt+"-unusable",Ue=wt+"-auto-hide",Xe=Ue+"-hidden",qe=wt+"-wheel",Je=Ve+"-interactive",Ge=Ke+"-interactive";let Qe,tr;const mt=()=>tr=tr||(()=>{const r=(t,e,r)=>{pt(document.body,t),pt(document.body,t);var n=oe(t),o=G(t),e=le(e);return r&&Yt(t),{x:o.h-n.h+e.h,y:o.w-n.w+e.w}},t=Ut(`<div class="${Ce}"><div></div><style>${`.${Ce}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Ce} div{width:200%;height:200%;margin:10px 0}.${De}{scrollbar-width:none!important}.${De}::-webkit-scrollbar,.${De}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],e=t.firstChild,n=t.lastChild,o=Qe,[i,,l]=(o&&(n.nonce=o),xe()),[s,a]=rt({o:r(t,e),i:M},ct(r,t,e,!0)),[c]=a(),d=(t=>{let e=!1;var r=It(t,De);try{e="none"===ht(t,"scrollbar-width")||"none"===ht(t,"display","::-webkit-scrollbar")}catch(t){}return r(),e})(t),u={x:0===c.x,y:0===c.y},v={elements:{host:null,padding:!d,viewport:t=>d&&Ft(t)&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=vt({},me),y=ct(vt,{},p),h=ct(vt,{},v),f={T:c,k:u,R:d,V:!!k,L:ct(i,"r"),U:h,P:t=>vt(v,t)&&h(),N:y,q:t=>vt(p,t)&&y(),j:vt({},v),B:vt({},p)};if(J(t,"style"),Yt(t),ft(nt,"resize",()=>{l("r",[])}),K(nt.matchMedia)&&!d&&(!u.x||!u.y)){const r=t=>{var e=nt.matchMedia(`(resolution: ${nt.devicePixelRatio}dppx)`);ft(e,"change",()=>{t(),r(t)},{A:!0})};r(()=>{var[t,e]=s();vt(f.T,t),l("r",[e])})}return f})(),er=(t,e)=>K(e)?e.apply(0,t):e,rr=(t,e,r,n)=>{r=A(n)?r:n;return er(t,r)||e.apply(0,t)},nr=(t,e,r,n)=>{r=A(n)?r:n,n=er(t,r);return!!n&&(tt(n)?n:e.apply(0,t))},or=new WeakMap,ir=t=>or.get(t),lr=(m,S,r,O)=>{let t=!1;const{F:e,X:n,Y:o,W:M,G:i,J:l}=O||{},s=X(()=>t&&r(!0),{_:33,v:99}),[a,c]=((o,i,t)=>{let l=!1;const s=!!t&&new WeakMap,e=r=>{s&&t&&R(t.map(t=>{var[t,e]=t||[];return[e&&t?(r||jt)(t,o):[],e]}),n=>R(n[0],e=>{var t=n[1],r=s.get(e)||[];if(o.contains(e)&&t){const o=ft(e,t,t=>{l?(o(),s.delete(e)):i(t)});s.set(e,et(r,o))}else it(r),s.delete(e)}))};return e(),[()=>{l=!0},e]})(m,s,o),C=n||[],d=B(e||[],C),u=(t,e)=>{if(!y(e)){const b=i||T,x=l||T,g=[],w=[];let h=!1,f=!1;if(R(e,t=>{const{attributeName:e,target:r,type:n,oldValue:o,addedNodes:i,removedNodes:l}=t,s="attributes"===n,a="childList"===n,c=m===r,d=s&&e,u=d&&At(r,e||""),v=P(u)?u:null,p=d&&o!==v,y=Mt(C,e)&&p;if(S&&(a||!c)){const S=s&&p,n=S&&M&&Nt(r,M),w=(n?!b(r,e,o,v):!s||S)&&!x(t,!!n,m,O);R(i,t=>et(g,t)),R(l,t=>et(g,t)),f=f||w}!S&&c&&p&&!b(r,e,o,v)&&(et(w,e),h=h||y)}),c(r=>E(g).reduce((t,e)=>(et(t,jt(r,e)),Nt(e,r)?et(t,e):t),[])),S)return!t&&f&&r(!1),[!1];if(!y(w)||h){const m=[E(w),h];return t||r.apply(0,m),m}}},v=new p(ct(u,!1));return[()=>(v.observe(m,{attributes:!0,attributeOldValue:!0,attributeFilter:d,subtree:S,childList:S,characterData:S}),t=!0,()=>{t&&(a(),v.disconnect(),t=!1)}),()=>{if(t)return s.m(),u(!0,v.takeRecords())}]},sr={},ar={},cr=(l,s,a)=>ut(l).map(t=>{var{static:e,instance:r}=l[t],[n,o,i]=a||[],r=a?r:e;if(r){const l=a?r(n,o,s):r(s);return(i||ar)[t]=l}}),dr=t=>ar[t],ur="__osSizeObserverPlugin",vr={__osSizeObserverPlugin:{static:()=>(t,e,r)=>{const n=3333333,o=Ut(`<div class="${_e}" dir="ltr"><div class="${_e}"><div class="${Ie}"></div></div><div class="${_e}"><div class="${Ie}" style="width: 200%; height: 200%"></div></div></div>`),i=o[0],l=i.lastChild,s=i.firstChild,a=null==s?void 0:s.firstChild;let c,d=G(i),u=d,v=!1;const p=()=>{bt(s,n),bt(l,n)},y=t=>{c=0,v&&(d=u,e(!0===t))},h=t=>{u=G(i),v=!t||!Tt(u,d),t?(ue(t),v&&!c&&(w(c),c=ot(y))):y(!1===t),p()},f=[pt(t,o),ft(s,"scroll",h),ft(l,"scroll",h)];return It(t,"os-size-observer-listener-scroll"),yt(a,{[m]:n,[x]:n}),ot(p),[r?ct(h,!1):p,f]}}},pr=(t,e)=>{var e=e["k"],[t,r]=t("showNativeOverlaidScrollbars");return[t&&e.x&&e.y,r]},yr=t=>0===t.indexOf(lt),hr="__osScrollbarsHidingPlugin",fr={[hr]:{static:()=>({tt:(t,f,h,e,r)=>{const{nt:b,ot:x}=t,{R:a,k:c,T:d}=e,g=!b&&!a&&(c.x||c.y),[u]=pr(r,e),w=t=>{const e=t["Z"],n=a||u?0:42,r=(t,e,r)=>[e&&!a?t?n:r:0,t&&!!n],[o,i]=r(c.x,e.x,d.x),[l,s]=r(c.y,e.y,d.y);return{st:{x:o,y:l},et:{x:i,y:s}}},v=(t,{ct:e},r)=>{if(!b){const n=vt({},{[U]:0,[D]:0,[F]:0}),{st:b,et:o}=w(t),{x:i,y:l}=o,{x:s,y:a}=b,c=f["rt"],d=e?F:U,u=e?I:_,v=c[d],p=c[D],y=c[u],h=c[N];return n[m]=`calc(100% + ${a+-1*v}px)`,n[d]=-a+v,n[D]=-s+p,r&&(n[u]=y+(l?a:0),n[N]=h+(i?s:0)),n}};return{lt:w,it:(t,e,r)=>{if(g){const n=f["rt"],{st:o,et:i}=w(t),{x:l,y:g}=i,{x:s,y:a}=o,c=h["ct"],d=n[c?_:I],u=n.paddingTop,v=e.w+r.w,p=e.h+r.h,y={w:a&&g?a+v-d+"px":"",h:s&&l?s+p-u+"px":""};yt(x,{"--os-vaw":y.w,"--os-vah":y.h})}return g},ut:t=>{if(g){const e=t||(()=>{var t=t=>{t=ht(x,t);return[t,t===at]},[e,r]=t(Ct),[t,n]=t(Dt);return{K:{x:e,y:t},Z:{x:r,y:n}}})(),r=f["rt"],n=w(e)["et"],{x:o,y:i}=n,l={},s=t=>R(t,t=>{l[t]=r[t]}),a=(o&&s([D,L,N]),i&&s([F,U,I,_]),ht(x,ut(l))),c=Ht(x,Q,ke);return yt(x,l),[()=>{yt(x,vt({},a,v(e,h,g))),c()},e]}return[T]},_t:v}}})}},br="__osClickScrollPlugin",xr={[br]:{static:()=>(n,o,i,l)=>{let s=!1,a=T;const r=222,[c,e]=dt(133),d=Math.sign(o),u=i*d,v=u/2,p=t=>1-(1-t)*(1-t),y=(t,e)=>b(t,e,r,n,p),h=(t,e)=>b(t,o-u,133*e,(t,e,r)=>{n(t),r&&(a=y(t,o))}),f=b(0,u,r,(r,t,e)=>{if(n(r),e&&(l(s),!s)){const n=o-r;Math.sign(n-v)===d&&c(()=>{var t=n-u,e=Math.sign(t)===d;a=e?h(r,Math.abs(t)/i):y(r,o)})}},p);return t=>{s=!0,t&&f(),e(),a()}}}},gr=(o,i,t)=>{const l=(t||{})["dt"],s=dr(ur),[a]=rt({o:!1,u:!0});return()=>{const t=[],e=Ut(`<div class="${Ee}"><div class="${Le}"></div></div>`)[0],r=e.firstChild,n=t=>{let e=!1,r=!1;if(t instanceof ResizeObserverEntry){const[i,,n]=a(t.contentRect),o=ae(i);r=ce(i,n),e=!r&&!o}else r=!0===t;e||i({ft:!0,dt:r})};if(W){const o=new W(t=>n(t.pop()));o.observe(r),et(t,()=>{o.disconnect()})}else{if(!s)return T;{const[o,i]=s(r,n,l);et(t,B([It(e,"os-size-observer-appear"),ft(e,"animationstart",o)],i))}}return ct(it,et(t,pt(o,e)))}},wr=(e,n)=>{let r;const o=Bt("os-trinsic-observer"),[i]=rt({o:!1}),l=(t,e)=>{var r;if(t)return[,r]=t=i(0===t.h||t.isIntersecting||0<t.intersectionRatio),r&&!e&&n(t)&&[t]},s=(t,e)=>l(e.pop(),t);return[()=>{var t=[];if(a)(r=new a(ct(s,!1),{root:e})).observe(o),et(t,()=>{r.disconnect()});else{const e=()=>{var t=G(o);l(t)};et(t,gr(o,e)()),e()}return ct(it,et(t,pt(e,o)))},()=>r&&s(!0,r.takeRecords())]},mr=(s,a,c,o)=>{let v,p,y,h,e,r;const f=`[${gt}]`,b=`[${Q}]`,x=["id","class","style","open","wrap","cols","rows"],{vt:n,ht:d,ot:g,gt:u,bt:w,nt:m,yt:S,wt:O,St:_,Ot:I}=s,i=t=>"rtl"===ht(t,"direction"),M={$t:!1,ct:i(n)},C=mt(),D=dr(hr),[l]=rt({i:Tt,o:{w:0,h:0}},()=>{var t=D&&D.tt(s,a,M,C,c).ut,e=!(S&&m)&&Et(d,gt,Re),r=!m&&O(ke),n=r&&xt(u),o=n&&I(),i=_(Ae,e),r=r&&t&&t()[0],t=ie(g),l=le(g);return r&&r(),bt(u,n),o&&o(),e&&i(),{w:t.w+l.w,h:t.h+l.h}}),T=X(o,{_:()=>v,v:()=>p,S(t,e){const[r]=t,[n]=e;return[B(ut(r),ut(n)).reduce((t,e)=>(t[e]=r[e]||n[e],t),{})]}}),R=t=>{var e=i(n);vt(t,{Ct:r!==e}),vt(M,{ct:e}),r=e},$=(t,e)=>{var[t,r]=t,r={xt:r};return vt(M,{$t:t}),e||o(r),r},k=({ft:t,dt:e})=>{var r=t&&!e||!C.R?o:T,t={ft:t||e,dt:e};R(t),r(t)},A=(t,e)=>{var[,r]=l(),n={Ht:r};return R(n),r&&!e&&(t?o:T)(n),n},H=(t,e,r)=>{var n={Et:e};return R(n),e&&!r&&T(n),n},[P,z]=w?wr(d,$):[],E=!m&&gr(d,k,{dt:!0}),[j,N]=lr(d,!1,H,{X:x,F:x}),L=m&&W&&new W(t=>{t=t[t.length-1].contentRect;k({ft:!0,dt:ce(t,e)}),e=t}),F=X(()=>{var[,t]=l();o({Ht:t})},{_:222,p:!0});return[()=>{L&&L.observe(d);const t=E&&E(),e=P&&P(),r=j(),n=C.L(t=>{t?T({zt:t}):F()});return()=>{L&&L.disconnect(),t&&t(),e&&e(),h&&h(),r(),n()}},({It:t,At:e,Dt:r})=>{const n={},[a]=t("update.ignoreMutation"),[o,i]=t("update.attributes"),[l,s]=t("update.elementEvents"),[c,d]=t("update.debounce"),u=e||r;if(s||i){y&&y(),h&&h();const[t,e]=lr(w||g,!0,A,{F:B(x,o||[]),Y:l,W:f,J:(t,e)=>{var r,n,o,i,{target:l,attributeName:s}=t;return!((e||!s||m||(e=l,s=f,r=b,n=Zt(e,s),o=e&&((t,e)=>{e=e?Y(e)&&e:document;return e&&e.querySelector(t)})(r,n),i=Zt(o,s)===n,!n)||!o||!(n===e||o===e||i&&Zt(Zt(e,r),s)!==n))&&!Zt(l,"."+wt)&&(o=t,!K(a)||!a(o)))}});h=t(),y=e}if(d)if(T.m(),Z(c)){const t=c[0],e=c[1];v=V(t)&&t,p=V(e)&&e}else p=(v=!!V(c)&&c,!1);if(u){const t=N(),e=z&&z(),r=y&&y();t&&vt(n,H(t[0],t[1],u)),e&&vt(n,$(e[0],u)),r&&vt(n,A(r[0],u))}return R(n),n},M]},Sr=(_,d,I,u)=>(t,o,e)=>{const{ht:i,ot:r,nt:n,gt:$,Kt:k,Ot:A}=d,{Tt:l,Ut:H,Pt:P}=t,[s,a]=dt(333),[z,E]=dt(444),L=t=>{K($.scrollBy)&&$.scrollBy({behavior:"smooth",left:t.x,top:t.y})};let c=!0;return ct(it,[ft(P,"pointermove pointerleave",u),ft(l,"pointerenter",()=>{o(Ye,!0)}),ft(l,"pointerleave pointercancel",()=>{o(Ye,!1)}),!n&&ft(l,"mousedown",()=>{var t=Wt();(h(t,Q)||h(t,gt)||t===document.body)&&S(ct(fe,r),25)}),ft(l,"wheel",t=>{var{deltaX:e,deltaY:r,deltaMode:n}=t;c&&0===n&&Kt(l)===i&&L({x:e,y:r}),c=!1,o(qe,!0),s(()=>{c=!0,o(qe)}),ve(t)},{H:!1,I:!0}),ft(l,"pointerdown",ct(ft,k,"click",pe,{A:!0,I:!0,H:!1}),{I:!0}),(()=>{const S="pointerup pointercancel lostpointercapture",O="client"+(e?"X":"Y"),M=e?m:x,C=e?"left":"top",D=e?"w":"h",T=e?"x":"y",R=[];return ft(H,"pointerdown",t=>{const e=Zt(t.target,"."+Ke)===P,r=e?P:H,n=_.scrollbars,o=n[e?"dragScroll":"clickScroll"],{button:i,isPrimary:l,pointerType:s}=t,a=n["pointers"];if(0===i&&l&&o&&(a||[]).includes(s)){it(R),E();const _=!e&&(t.shiftKey||"instant"===o),n=ct(se,P),i=ct(se,H),l=(t,e)=>(t||n())[C]-(e||i())[C],s=j(se($)[M])/G($)[D]||1,a=(c=xt($)[T],d=1/s,t=>{var e=I["Rt"],r=G(H)[D]-G(P)[D],t=d*t/r*e[T];bt($,{[T]:c+t})}),u=t[O],v=n(),p=i(),y=v[M],h=l(v,p)+y/2,f=u-p[C],b=e?0:f-h,x=t=>{it(m),r.releasePointerCapture(t.pointerId)},g=e||_,w=A(),m=[ft(k,S,x),ft(k,"selectstart",t=>ve(t),{H:!1}),ft(H,S,x),g&&ft(H,"pointermove",t=>a(b+(t[O]-u))),g&&(()=>{var t=xt($),e=(w(),xt($)),e={x:e.x-t.x,y:e.y-t.y};(3<St(e.x)||3<St(e.y))&&(A(),bt($,t),L(e),z(w))})];if(r.setPointerCapture(t.pointerId),_)a(b);else if(!e){const _=dr(br);if(_){const S=_(a,b,y,t=>{t?w():et(m,w)});et(m,S),et(R,ct(S,!0))}}}var c,d})})(),a,E])},Or=t=>{const e=mt(),{U:r,R:s}=e,n=r()["elements"],{padding:L,viewport:_,content:I}=n,o=tt(t),i=o?{}:t,j=i["elements"],{padding:N,viewport:F,content:V}=j||{},l=o?t:i.target,a=Ft(l),c=l.ownerDocument,d=c.documentElement,u=()=>c.defaultView||nt,K=ct(rr,[l]),v=ct(nr,[l]),p=ct(Bt,""),Z=ct(K,p,_),W=ct(v,p,I),y=Z(F),h=y===l,f=h&&a,b=!h&&W(V),Y=!h&&y===b,x=f?d:y,g=f?x:l,w=!h&&v(p,L,N),m=!Y&&b,B=[m,x,w,g].map(t=>tt(t)&&!Kt(t)&&t),S=t=>t&&Mt(B,t),U=!S(x)&&(t=x,A=G(t),H=ie(t),P=ht(t,Ct),t=ht(t,Dt),0<H.w-A.w&&!yr(P)||0<H.h-A.h&&!yr(t))?x:l,O=f?d:x,M={vt:l,ht:g,ot:x,ln:w,bt:m,gt:O,Qt:f?c:x,an:a?d:U,Kt:c,yt:a,Mt:o,nt:h,un:u,wt:t=>Et(x,Q,t),St:(t,e)=>zt(x,Q,t,e),Ot:()=>zt(O,Q,"scrolling",!0)},{vt:C,ht:D,ln:T,ot:R,bt:$}=M,k=[()=>{J(D,[gt,Te]),J(C,Te),a&&J(d,[Te,gt])}];var A,H,P;let z=Vt([$,R,T,D,C].find(t=>t&&!S(t)));const X=f?C:$||R,E=ct(it,k);return[M,()=>{const t=u(),e=Wt(),n=t=>{pt(Kt(t),Vt(t)),Yt(t)},o=t=>ft(t,"focusin focusout focus blur",pe,{I:!0,H:!1}),i="tabindex",l=At(R,i),r=o(e);return q(D,gt,h?"":"host"),q(T,Pe,""),q(R,Q,""),q($,ze,""),h||(q(R,i,l||"-1"),a&&q(d,$e,"")),pt(X,z),pt(D,T),pt(T||D,!h&&R),pt(R,$),et(k,[r,()=>{var t=Wt(),e=S(R),t=e&&t===R?C:t,r=o(t);J(T,Pe),J($,ze),J(R,Q),a&&J(d,$e),l?q(R,i,l):J(R,i),S($)&&n($),e&&n(R),S(T)&&n(T),fe(t),r()}]),s&&!h&&(Pt(R,Q,He),et(k,ct(J,R,Q))),fe(!h&&a&&e===C&&t.top===t?R:e),r(),z=0,E},E]},Mr=({bt:n})=>({Zt:t,_n:e,Dt:r})=>{t=(t||{}).xt,e=e.$t;n&&(t||r)&&yt(n,{[x]:e&&"100%"})},Cr=({ht:t,ln:d,ot:u,nt:v},p)=>{const[y,h]=rt({i:f,o:te()},ct(te,t,"padding",""));return({It:t,Zt:e,_n:r,Dt:n})=>{let[o,i]=h(n);var l=mt()["R"],{ft:e,Ht:s,Ct:a}=e||{},r=r["ct"],[c,t]=t("paddingAbsolute"),e=((e||i||n||s)&&([o,i]=y(n)),!v&&(t||a||i));if(e){const t=!c||!d&&!l,e=o.r+o.l,v=o.t+o.b,y={[U]:t&&!r?-e:0,[D]:t?-v:0,[F]:t&&r?-e:0,top:t?-o.t:0,right:t?r?-o.r:"auto":0,left:t?r?"auto":-o.l:0,[m]:t&&`calc(100% + ${e}px)`},h={[L]:t?o.t:0,[_]:t?o.r:0,[N]:t?o.b:0,[I]:t?o.l:0};yt(d||u,y),yt(u,h),vt(p,{ln:o,dn:!t,rt:d?h:vt({},y,h)})}return{fn:e}}},Dr=(C,D)=>{const T=mt(),{ht:R,ln:$,ot:k,nt:t,Qt:A,gt:H,yt:e,St:P,un:z}=C,E=T["R"],L=e&&t,_=ct(u,0),I={display:()=>!1,direction:t=>"ltr"!==t,flexDirection:t=>t.endsWith("-reverse"),writingMode:t=>"horizontal-tb"!==t},j=ut(I),r={i:Tt,o:{w:0,h:0}},n={i:M,o:{}},N=t=>{P(Ae,!L&&t)},[F,V]=rt(r,ct(le,k)),[K,Z]=rt(r,ct(ie,k)),[W,Y]=rt(r),[B]=rt(n),[U,X]=rt(r),[q]=rt(n),[J]=rt({i:(t,e)=>i(t,e,j),o:{}},()=>{return!(t=k)||!((t=t).offsetWidth||t.offsetHeight||t.getClientRects().length)?{}:ht(k,j);var t}),[G,Q]=rt({i:(t,e)=>M(t.D,e.D)&&M(t.M,e.M),o:{D:{x:0,y:0},M:{x:0,y:0}}}),tt=dr(hr),et=(t,e)=>{return(e?"overflowX":"overflowY")+((e=String(t||""))?e[0].toUpperCase()+e.slice(1):"")};return({It:t,Zt:e,_n:r,Dt:n},{fn:o})=>{var i,{Ct:e,dt:l,zt:s}=e||{},{it:a,ut:c,_t:d}=tt&&tt.tt(C,D,r,T,t)||{},[u,v]=pr(t,T),[t,p]=t("overflow"),y=yr(t.x),h=yr(t.y);V(n),Z(n),Y(n),X(n);v&&E&&P(He,!u);{Et(R,gt,Re)&&N(!0);const[C]=c?c():[],[t]=u=F(n),[e]=c=K(n),r=oe(k),D=L&&(i=z(),ne("inner",i||nt)),T={w:_(e.w+t.w),h:_(e.h+t.h)},$={w:_((D?D.w:r.w+_(r.w-e.w))+t.w),h:_((D?D.h:r.h+_(r.h-e.h))+t.h)};C&&C(),i=U($),g=W(((t,e)=>{const r=nt.devicePixelRatio%1!=0?1:0,n=_(t.w-e.w),o=_(t.h-e.h);return{w:n>r?n:0,h:o>r?o:0}})(T,$),n)}var f,[b,x]=i,[g,w]=g,[c,m]=c,[u,S]=u,[O,M]=B({x:0<g.w,y:0<g.h}),y=y&&h&&(O.x||O.y)||y&&O.x&&!O.y||h&&O.y&&!O.x,h=o||e||s||S||m||x||w||p||v||!0,m=(o=O,{K:s={x:(s=(t,e,r,n)=>{var o=t===lt?st:t.replace(lt+"-",""),t=yr(t),r=yr(r);return e||n?t&&r?lt:t?e&&n?o:e?lt:st:e?o:r&&n?lt:st:st})((S=t).x,o.x,S.y,o.y),y:s(S.y,o.y,S.x,o.x)},Z:{x:s.x===at,y:s.y===at}}),[p,v]=q(m.K),[t,S]=J(n),o=e||l||S||M||n,[s,e]=o?G((r=>{if(!j.some(t=>{var e=r[t];return e&&I[t](e)}))return{D:{x:0,y:0},M:{x:1,y:1}};N(!0);const n=xt(H),t=P("noContent",!0),e=ft(A,at,t=>{var e=xt(H);t.isTrusted&&e.x===n.x&&e.y===n.y&&ue(t)},{I:!0,A:!0});bt(H,{x:0,y:0}),t();var o=xt(H),i=ie(H),l=(bt(H,{x:i.w,y:i.h}),xt(H)),l=(bt(H,{x:l.x-o.x<1&&-i.w,y:l.y-o.y<1&&-i.h}),xt(H));return bt(H,n),ot(()=>e()),{D:o,M:l}})(t),n):Q();return h&&(v&&(f=m.K,l=(l=e=>[lt,st,at].map(t=>et(t,e)))(!0).concat(l()).join(" "),P(l),P(ut(f).map(t=>et(f[t],"x"===t)).join(" "),!0)),d)&&a&&yt(k,d(m,r,a(m,c,u))),N(!1),zt(R,gt,Re,y),zt($,Pe,Re,y),vt(D,{K:p,Vt:{x:b.w,y:b.h},Rt:{x:g.w,y:g.h},rn:O,Lt:((t,e)=>{var{D:t,M:r}=t,{w:e,h:n}=e,o=(t,e,r)=>{let n=Ot(t)*r,o=Ot(e)*r;if(n===o){const r=St(t),i=St(e);o=r>i?0:o,n=r<i?0:n}return[(n=n===o?0:n)+0,o+0]},[e,i]=o(t.x,r.x,e),[o,t]=o(t.y,r.y,n);return{D:{x:e,y:o},M:{x:i,y:t}}})(s,g)}),{en:v,nn:x,sn:w,cn:e||w,vn:o}}},$=(s,t,e)=>{const r=mt()["N"],c=tt(s),n=c?s:s.target,o=ir(n);if(t&&!o){let a=!1;const i=[],l={},d=t=>{var t=Rt(t,!0),e=dr("__osOptionsValidationPlugin");return e?e(t,!0):t},u=vt({},r(),d(t)),[v,p,y]=xe(),[h,f,b]=xe(e),g=(t,e)=>{b(t,e),y(t,e)},[x,w,m,S,O]=((t,s,a,c)=>{let d=!1;const e=Oe(s,{}),[o,u,r,i,n]=(t=>{const[e,r,n]=Or(t),o={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[U]:0,[D]:0,[F]:0,[L]:0,[_]:0,[N]:0,[I]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:st,y:st},rn:{x:!1,y:!1},Lt:{D:{x:0,y:0},M:{x:0,y:0}}},{vt:i,gt:l,nt:s,Ot:a}=e,{R:c,k:d}=mt(),u=!c&&(d.x||d.y),v=[Mr(e),Cr(e,o),Dr(e,o)];return[r,e=>{const r={},t=u&&xt(l),n=t&&a();return R(v,t=>{vt(r,t(e,r)||{})}),bt(l,t),n&&n(),s||bt(i,0),r},o,e,n]})(t),[l,v,p]=mr(i,r,e,t=>{x({},t)}),[y,h,,f]=((t,e,_,I,r)=>{let n,j,N,F,V,K=T,Z=0;const o=t=>"mouse"===t.pointerType,[i,l]=dt(),[s,a]=dt(100),[W,c]=dt(100),[d,u]=dt(()=>Z),[v,p]=((t,e,i,l)=>{const r=mt()["U"],n=r()["scrollbars"],o=n["slot"],{vt:s,ht:a,ot:c,Mt:d,gt:u,yt:v,nt:p}=e,y=(d?{}:t)["scrollbars"],h=(y||{})["slot"],f=[],b=[],x=[],g=nr([s,a,c],()=>p&&v?s:a,o,h),w=t=>{if(k){const r=new k({source:u,axis:t});return{kt:t=>{const e=t.Tt.animate({clear:["left"],"--os-scroll-percent":[0,1]},{timeline:r});return()=>e.cancel()}}}},m={x:w("x"),y:w("y")},S=(t,e,r)=>{const n=r?It:_t;R(t,t=>{n(t.Tt,e)})},O=(t,r)=>{R(t,t=>{var[t,e]=r(t);yt(t,e)})},M=(t,e,r)=>{var n=z(r),o=!n||!r;n&&!r||S(b,t,e),o&&S(x,t,e)},C=t=>{var e=t?"x":"y",r=Bt(wt+" "+(t?Ne:Fe)),n=Bt(Ve),o=Bt(Ke),i={Tt:r,Ut:n,Pt:o},e=m[e];return et(t?b:x,i),et(f,[pt(r,n),pt(n,o),ct(Yt,r),e&&e.kt(i),l(i,M,t)]),i},D=ct(C,!0),T=ct(C,!1);return D(),T(),[{Nt:()=>{var t=(()=>{var{Rt:t,Vt:e}=i,r=(t,e)=>kt(0,1,t/(t+e)||0);return{x:r(e.x,t.x),y:r(e.y,t.y)}})(),e=e=>t=>[t.Tt,{"--os-viewport-percent":Gt(e)+""}];O(b,e(t.x)),O(x,e(t.y))},qt:()=>{var t,e;k||(t=i["Lt"],t=he(t,xt(u)),e=e=>t=>[t.Tt,{"--os-scroll-percent":Gt(e)+""}],O(b,e(t.x)),O(x,e(t.y)))},jt:()=>{var t=i["Lt"],t=ye(t),e=e=>t=>[t.Tt,{"--os-scroll-direction":e?"0":"1"}];O(b,e(t.x)),O(x,e(t.y))},Bt:()=>{if(p&&!v){const{Rt:r,Lt:t}=i,n=ye(t),o=he(t,xt(u)),e=t=>{var t=t["Tt"],t=Kt(t)===c&&t,e=(t,e,r)=>{e*=t;return Qt(r?e:-e)};return[t,t&&{transform:ee({x:e(o.x,r.x,n.x),y:e(o.y,r.y,n.y)})}]};O(b,e),O(x,e)}},Ft:M,Xt:{Yt:b,Wt:D,Gt:ct(O,b)},Jt:{Yt:x,Wt:T,Gt:ct(O,x)}},()=>(pt(g,b[0].Tt),pt(g,x[0].Tt),ct(it,f))]})(t,r,I,Sr(e,r,I,t=>o(t)&&h())),{ht:y,Qt:Y,yt:B}=r,{Ft:U,Nt:X,qt:q,jt:J,Bt:G}=v,Q=(t,e)=>{if(u(),t)U(Xe);else{const t=ct(U,Xe,!0);0<Z&&!e?d(t):t()}},h=()=>{(N?n:F)||(Q(!0),s(()=>{Q(!1)}))},tt=t=>{U(Ue,t,!0),U(Ue,t,!1)},f=t=>{o(t)&&(n=N)&&Q(!0)},b=[u,a,c,l,()=>K(),ft(y,"pointerover",f,{A:!0}),ft(y,"pointerenter",f),ft(y,"pointerleave",t=>{o(t)&&(n=!1,N)&&Q(!1)}),ft(y,"pointermove",t=>{o(t)&&j&&h()}),ft(Y,"scroll",t=>{i(()=>{q(),h()}),t=t,g("scroll",[C,t]),G()})];return[()=>ct(it,et(b,p())),({It:t,Dt:e,Zt:r,tn:n})=>{const{nn:o,sn:i,en:l,cn:s}=n||{},{Ct:a,dt:c}=r||{},d=_["ct"],u=mt()["k"],{K:v,rn:p}=I,[y,h]=t("showNativeOverlaidScrollbars"),[f,b]=t("scrollbars.theme"),[x,g]=t("scrollbars.visibility"),[w,m]=t("scrollbars.autoHide"),[S,O]=t("scrollbars.autoHideSuspend"),[M]=t("scrollbars.autoHideDelay"),[C,D]=t("scrollbars.dragScroll"),[T,R]=t("scrollbars.clickScroll"),[$,k]=t("overflow"),A=c&&!e,H=p.x||p.y,P=o||i||s||a||e,z=l||g||k,L=y&&u.x&&u.y,E=(t,e,r)=>{t=t.includes(at)&&(x===lt||"auto"===x&&e===at);return U(Ze,t,r),t};if(Z=M,A&&(S&&H?(tt(!1),K(),W(()=>{K=ft(Y,"scroll",ct(tt,!0),{A:!0})})):tt(!0)),h&&U("os-theme-none",L),b&&(U(V),U(f,!0),V=f),O&&!S&&tt(!0),m&&(j="move"===w,N="leave"===w,F="never"===w,Q(F,!0)),D&&U(Ge,C),R&&U(Je,!!T),z){const t=E($.x,v.x,!0),e=E($.y,v.y,!1);U(We,!(t&&e))}P&&(q(),X(),G(),s&&J(),U(Be,!p.x,!0),U(Be,!p.y,!1),U(je,d&&!B))},{},v]})(t,s,p,r,i),b=e=>ut(e).some(t=>!!e[t]),x=(t,e)=>{var r,n,o,i,l;return!a()&&({pn:r,Dt:n,At:l,hn:o}=t,r=r||{},n=!!n||!d,i={It:Oe(s,r,n),pn:r,Dt:n},o?(h(i),!1):(o=e||v(vt({},i,{At:l})),e=u(vt({},i,{_n:p,Zt:o})),h(vt({},i,{Zt:o,tn:e})),l=b(o),i=b(e),l=l||i||!$t(r)||n,d=!0,l&&c(t,{Zt:o,tn:e}),l))};return[()=>{var{an:t,gt:e,Ot:r}=i,t=xt(t),n=[l(),o(),y()],r=r();return bt(e,t),r(),ct(it,n)},x,()=>({gn:p,bn:r}),{yn:i,wn:f},n]})(s,u,()=>a,({pn:t,Dt:e},{Zt:r,tn:n})=>{var{ft:r,Ct:o,xt:i,Ht:l,Et:s,dt:a}=r,{nn:n,sn:c,en:d,cn:u}=n;g("updated",[C,{updateHints:{sizeChanged:!!r,directionChanged:!!o,heightIntrinsicChanged:!!i,overflowEdgeChanged:!!n,overflowAmountChanged:!!c,overflowStyleChanged:!!d,scrollCoordinatesChanged:!!u,contentMutation:!!l,hostMutation:!!s,appear:!!a},changedOptions:t||{},force:!!e}])}),M=t=>{var e;e=n,or.delete(e),it(i),a=!0,g("destroyed",[C,t]),p(),f()},C={options(t,e){return t&&(e=e?r():{},e=Se(u,vt(e,d(t))),$t(e)||(vt(u,e),w({pn:e}))),vt({},u)},on:h,off:(t,e)=>{t&&e&&f(t,e)},state(){var{gn:t,bn:e}=m(),t=t["ct"],{Vt:e,Rt:r,K:n,rn:o,ln:i,dn:l,Lt:s}=e;return vt({},{overflowEdge:e,overflowAmount:r,overflowStyle:n,hasOverflow:o,scrollCoordinates:{start:s.D,end:s.M},padding:i,paddingAbsolute:l,directionRTL:t,destroyed:a})},elements(){const{vt:t,ht:e,ln:r,ot:n,bt:o,gt:i,Qt:l}=S.yn,{Xt:s,Jt:a}=S.wn,c=t=>{var{Pt:t,Ut:e,Tt:r}=t;return{scrollbar:r,track:e,handle:t}},d=t=>{const{Yt:e,Wt:r}=t,n=c(e[0]);return vt({},n,{clone:()=>{var t=c(r());return w({hn:!0}),t}})};return vt({},{target:t,host:e,padding:r||n,viewport:n,content:o||n,scrollOffsetElement:i,scrollEventElement:l,scrollbarHorizontal:d(s),scrollbarVertical:d(a)})},update:t=>w({Dt:t,At:!0}),destroy:ct(M,!1),plugin:t=>l[ut(t)[0]]};return et(i,[O]),t=n,e=C,or.set(t,e),cr(sr,$,[C,v,l]),(t=>{var{nativeScrollbarsOverlaid:e,body:r}=!c&&s.cancel||{},{k:n,R:o,U:i}=mt(),{nativeScrollbarsOverlaid:i,body:l}=i().cancel,e=null!=e?e:i,i=A(r)?l:r,l=(n.x||n.y)&&e,r=t&&(H(i)?!o:i);return!!l||!!r})(S.yn.yt)?M(!0):(et(i,x()),g("initialized",[C]),C.update()),C}return o};return $.plugin=t=>{var e=Z(t),t=e?t:[t],r=t.map(t=>cr(t,$)[0]);return R(t,r=>R(r,(t,e)=>{sr[e]=r[e]})),e?r:r[0]},$.valid=t=>{t=t&&t.elements,t=K(t)&&t();return s(t)&&!!ir(t.target)},$.env=()=>{var{T:t,k:e,R:r,V:n,j:o,B:i,U:l,P:s,N:a,q:c}=mt();return vt({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:r,scrollTimeline:n,staticDefaultInitialization:o,staticDefaultOptions:i,getDefaultInitialization:l,setDefaultInitialization:s,getDefaultOptions:a,setDefaultOptions:c})},$.nonce=t=>{Qe=t},t.ClickScrollPlugin=xr,t.OverlayScrollbars=$,t.ScrollbarsHidingPlugin=fr,t.SizeObserverPlugin=vr,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({}); !function(r){r.fn.isOnScreen=function(t,o){null!=t&&void 0!==t||(t=1),null!=o&&void 0!==o||(o=1);var i,h,e=r(window),l={top:e.scrollTop(),left:e.scrollLeft()},e=(l.right=l.left+e.width(),l.bottom=l.top+e.height(),this.outerHeight()),n=this.outerWidth();return!(!n||!e)&&((i=this.offset()).right=i.left+n,i.bottom=i.top+e,!(l.right<i.left||l.left>i.right||l.bottom<i.top||l.top>i.bottom))&&(h=Math.min(1,(i.bottom-l.top)/e),e=Math.min(1,(l.bottom-i.top)/e),t<=Math.min(1,(i.right-l.left)/n)*Math.min(1,(l.right-i.left)/n))&&o<=h*e}}(jQuery); "undefined"!=typeof document&&"undefined"!=typeof navigator&&function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).lottie=e()}(this,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){for(var i,r=t.length,s=0;s<r;s+=1)for(var a in i=t[s].prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(t){for(var e=this.audios.length,i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function i(t,e){var i,r=0,s=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)s.push(i);return s}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):i(t,e)}:i}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){}!function(){for(var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length,i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){for(var e=createSizedArray(t.length),i=t.length,r=0;r<i;r+=1)e[r]=Math.abs(t[r]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){if(_shouldRoundValues)return Math.round(t)}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return idPrefix$1+"__lottie_element_"+(t+=1)}}();function HSVtoRGB(t,e,i){var r,s,a,n=Math.floor(6*t),t=6*t-n,o=i*(1-e),h=i*(1-t*e),l=i*(1-(1-t)*e);switch(n%6){case 0:r=i,s=l,a=o;break;case 1:r=h,s=i,a=o;break;case 2:r=o,s=i,a=l;break;case 3:r=o,s=h,a=i;break;case 4:r=l,s=o,a=i;break;case 5:r=i,s=o,a=h}return[r,s,a]}function RGBtoHSV(t,e,i){var r,s=Math.max(t,e,i),a=Math.min(t,e,i),n=s-a,o=0===s?0:n/s,h=s/255;switch(s){case a:r=0;break;case t:r=e-i+n*(e<i?6:0),r/=6*n;break;case e:r=i-t+2*n,r/=6*n;break;case i:r=t-e+4*n,r/=6*n}return[r,o,h]}function addSaturationToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),HSVtoRGB(t[0],t[1],t[2])}function addBrightnessToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),HSVtoRGB(t[0],t[1],t[2])}function addHueToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),HSVtoRGB(t[0],t[1],t[2])}var rgbToHex=function(){for(var t,r=[],e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(t,e,i){return"#"+r[t=t<0?0:t]+r[e=e<0?0:e]+r[i=i<0?0:i]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=function(){var i,r,s=1,a=[],n={onmessage:function(){},postMessage:function(t){i({data:t})}},o={postMessage:function(t){n.onmessage({data:t})}};function h(){var t,e;r||(t=function(e){function t(){function p(t,e){for(var i,r,s,a=t.length,n=0;n<a;n+=1)if("ks"in(s=t[n])&&!s.completed){if(s.completed=!0,s.hasMask)for(var o=s.masksProperties,h=o.length,l=0;l<h;l+=1)if(o[l].pt.k.i)c(o[l].pt.k);else for(r=o[l].pt.k.length,i=0;i<r;i+=1)o[l].pt.k[i].s&&c(o[l].pt.k[i].s[0]),o[l].pt.k[i].e&&c(o[l].pt.k[i].e[0]);0===s.ty?(s.layers=f(s.refId,e),p(s.layers,e)):4===s.ty?m(s.shapes):5===s.ty&&0===(s=s).t.a.length&&0 in s.t.p}}function f(t,e){t=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return t?t.layers.__used?JSON.parse(JSON.stringify(t.layers)):(t.layers.__used=!0,t.layers):null}function m(t){for(var e,i,r=t.length-1;0<=r;--r)if("sh"===t[r].ty)if(t[r].ks.k.i)c(t[r].ks.k);else for(i=t[r].ks.k.length,e=0;e<i;e+=1)t[r].ks.k[e].s&&c(t[r].ks.k[e].s[0]),t[r].ks.k[e].e&&c(t[r].ks.k[e].e[0]);else"gr"===t[r].ty&&m(t[r].it)}function c(t){for(var e=t.i.length,i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function s(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],void t[2])))}r=[4,4,14];var r,a=function(t){if(s(r,t.v)&&(n(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&n(t.assets[i].layers)};function n(t){for(var e,i,r=t.length,s=0;s<r;s+=1)5===t[s].ty&&(e=t[s],i=void 0,i=e.t.d,e.t.d={k:[{s:i,t:0}]})}o=[4,7,99];var o,h,l=function(t){if(t.chars&&!s(o,t.v))for(var e=t.chars.length,i=0;i<e;i+=1){var r=t.chars[i];r.data&&r.data.shapes&&(m(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[i].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}},d=(h=[5,7,15],function(t){if(s(h,t.v)&&(u(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&u(t.assets[i].layers)});function u(t){for(var e,i=t.length,r=0;r<i;r+=1)5===t[r].ty&&("number"==typeof(e=(e=t[r]).t.p).a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r)&&(e.r={a:0,k:e.r})}y=[4,1,9];var y,g=function(t){if(s(y,t.v)&&(v(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&v(t.assets[i].layers)};function v(t){for(var e=t.length,i=0;i<e;i+=1)4===t[i].ty&&!function t(e){for(var i,r,s=e.length,a=0;a<s;a+=1)if("gr"===e[a].ty)t(e[a].it);else if("fl"===e[a].ty||"st"===e[a].ty)if(e[a].c.k&&e[a].c.k[0].i)for(r=e[a].c.k.length,i=0;i<r;i+=1)e[a].c.k[i].s&&(e[a].c.k[i].s[0]/=255,e[a].c.k[i].s[1]/=255,e[a].c.k[i].s[2]/=255,e[a].c.k[i].s[3]/=255),e[a].c.k[i].e&&(e[a].c.k[i].e[0]/=255,e[a].c.k[i].e[1]/=255,e[a].c.k[i].e[2]/=255,e[a].c.k[i].e[3]/=255);else e[a].c.k[0]/=255,e[a].c.k[1]/=255,e[a].c.k[2]/=255,e[a].c.k[3]/=255}(t[i].shapes)}b=[4,4,18];var b,x=function(t){if(s(b,t.v)&&(P(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&P(t.assets[i].layers)};function P(t){for(var e,i,r,s=t.length,a=0;a<s;a+=1){if((e=t[a]).hasMask)for(var n=e.masksProperties,o=n.length,h=0;h<o;h+=1)if(n[h].pt.k.i)n[h].pt.k.c=n[h].cl;else for(r=n[h].pt.k.length,i=0;i<r;i+=1)n[h].pt.k[i].s&&(n[h].pt.k[i].s[0].c=n[h].cl),n[h].pt.k[i].e&&(n[h].pt.k[i].e[0].c=n[h].cl);4===e.ty&&!function t(e){for(var i,r,s=e.length-1;0<=s;--s)if("sh"===e[s].ty)if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(r=e[s].ks.k.length,i=0;i<r;i+=1)e[s].ks.k[i].s&&(e[s].ks.k[i].s[0].c=e[s].closed),e[s].ks.k[i].e&&(e[s].ks.k[i].e[0].c=e[s].closed);else"gr"===e[s].ty&&t(e[s].it)}(e.shapes)}}var t={};return t.completeData=function(t){if(!t.__complete){g(t),a(t),l(t),d(t),x(t),p(t.layers,t.assets);var e=t.chars,i=t.assets;if(e)for(var r=0,s=e.length,r=0;r<s;r+=1)1===e[r].t&&(e[r].data.layers=f(e[r].data.refId,i),p(e[r].data.layers,i));t.__complete=!0}},t.checkColors=g,t.checkChars=l,t.checkPathProperties=d,t.checkShapes=x,t.completeLayers=p,t}function n(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}var i;o.dataManager||(o.dataManager=t()),o.assetLoader||(o.assetLoader={load:function(e,i,t,r){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=n(a),t(s);else try{s=n(a),t(s)}catch(t){r&&r(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}),"loadAnimation"===e.data.type?o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})}):"complete"===e.data.type?(i=e.data.animation,o.dataManager.completeData(i),o.postMessage({id:e.data.id,payload:i,status:"success"})):"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})})},(r=window.Worker&&window.Blob&&getWebWorker()?(e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),e=URL.createObjectURL(e),new Worker(e)):(i=t,n)).onmessage=function(t){var t=t.data,e=t.id,i=a[e];a[e]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function l(t,e){var i="processId_"+(s+=1);return a[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},loadData:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},completeAnimation:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"complete",animation:t,id:e})}}}(),ImagePreloader=function(){(t=createTag("canvas")).width=1,t.height=1,(e=t.getContext("2d")).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1);var t,e,s=t;function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(t,e,i){var r="";return r=t.e?t.p:e?e+(e=-1!==(e=t.p).indexOf("images/")?e.split("/")[1]:e):(r=i,(r+=t.u||"")+t.p)}function n(){this._imageLoaded=i.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=function(t){var e=0,i=setInterval(function(){(t.getBBox().width||500<e)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}.bind(this),this.createFootageData=function(t){var e={assetData:t},t=a(t,this.assetsPath,this.path);return dataManager.loadData(t,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return n.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;for(var i=t.length,r=0;r<i;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(t){var e=a(t,this.assetsPath,this.path),i=createTag("img"),r=(i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.src=e,{img:i,assetData:t});return r},createImageData:function(t){var e=a(t,this.assetsPath,this.path),i=createNS("image"),r=(isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i),{img:i,assetData:t});return r},imageLoaded:i,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},n}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),--i,--r),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(e){for(var t=[],i=0;i<e.length;i+=1){var r=e[i],r={time:r.tm,duration:r.dr};try{r.payload=JSON.parse(e[i].cm)}catch(t){try{r.payload=function(t){for(var e,i=t.split("\r\n"),r={},s=0,a=0;a<i.length;a+=1)2===(e=i[a].split(":")).length&&(r[e[0]]=e[1].trim(),s+=1);if(0===s)throw new Error;return r}(e[i].cm)}catch(t){r.payload={name:e[i].cm}}}t.push(r)}return t},ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()},animationManager=(extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg",i=(t.animType?e=t.animType:t.renderer&&(e=t.renderer),getRenderer(e));this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name||"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){var e={wrapper:t,animationData:e=e&&"object"!==_typeof$4(e)?JSON.parse(e):e},t=t.attributes,i=(e.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",e.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas",t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:""),i=("false"===i?e.loop=!1:"true"===i?e.loop=!0:""!==i&&(e.loop=parseInt(i,10)),t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value);e.autoplay="false"!==i,e.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),e.path?this.setParams(e):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));for(var e,i=this.animationData.layers,r=i.length,s=t.layers,a=s.length,n=0;n<a;n+=1)for(e=0;e<r;){if(i[e].id===s[n].id){i[e]=s[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;t&&0!==t.length&&this.autoloadSegments?(t=t.shift(),this.timeCompleted=t.time*this.frameRate,t=this.path+this.fileName+"_"+this.segmentPos+".json",this.segmentPos+=1,dataManager.loadData(t,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))):(this.trigger("data_ready"),this.timeCompleted=this.totalFrames)},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){var t;!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,(t=getExpressionsPlugin())&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay)&&this.play()},AnimationItem.prototype.resize=function(t,e){this.renderer.updateContainerSize("number"==typeof t?t:void 0,"number"==typeof e?e:void 0)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle)&&(this._idle=!1,this.trigger("_active"))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!==i||(i=Number(t),isNaN(i)?(i=this.getMarkerData(t))&&this.goToAndStop(i.time,!0):e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){var r;i&&this.name!==i||(r=Number(t),isNaN(r)?(t=this.getMarkerData(t))&&(t.duration?this.playSegments([t.time,t.time+t.duration],!0):this.goToAndStop(t.time,!0)):this.goToAndStop(r,e,i),this.play())},AnimationItem.prototype.advanceTime=function(t){var e;!0!==this.isPaused&&!1!==this.isLoaded&&(e=!1,(t=this.currentRawFrame+t*this.frameModifier)>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(e=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),e)&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0]))for(var i=t.length,r=0;r<i;r+=1)this.segments.push(t[r]);else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e,i="";return i=t.e?t.p:this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),this.assetsPath+e):(i=this.path,(i+=t.u||"")+t.p)},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){t=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(t){t=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},function(){var t={},s=[],r=0,a=0,n=0,o=!0,h=!1;function i(t){for(var e=0,i=t.target;e<a;)s[e].animation===i&&(s.splice(e,1),--e,--a,i.isPaused||f()),e+=1}function l(t,e){if(!t)return null;for(var i=0;i<a;){if(s[i].elem===t&&null!==s[i].elem)return s[i].animation;i+=1}var r=new AnimationItem;return m(r,t),r.setData(t,e),r}function p(){n+=1,d()}function f(){--n}function m(t,e){t.addEventListener("destroy",i),t.addEventListener("_active",p),t.addEventListener("_idle",f),s.push({elem:e,animation:t}),a+=1}function c(t){for(var e=t-r,i=0;i<a;i+=1)s[i].animation.advanceTime(e);r=t,n&&!h?window.requestAnimationFrame(c):o=!0}function e(t){r=t,window.requestAnimationFrame(c)}function d(){!h&&n&&o&&(window.requestAnimationFrame(e),o=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return m(e,null),e.setParams(t),e},t.setSpeed=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setSpeed(t,e)},t.setDirection=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setDirection(t,e)},t.play=function(t){for(var e=0;e<a;e+=1)s[e].animation.play(t)},t.pause=function(t){for(var e=0;e<a;e+=1)s[e].animation.pause(t)},t.stop=function(t){for(var e=0;e<a;e+=1)s[e].animation.stop(t)},t.togglePause=function(t){for(var e=0;e<a;e+=1)s[e].animation.togglePause(t)},t.searchAnimations=function(t,e,i){for(var r,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=s.length,n=0;n<a;n+=1)i&&s[n].setAttribute("data-bm-type",i),l(s[n],t);e&&0===a&&(i=i||"svg",(e=document.getElementsByTagName("body")[0]).innerText="",(r=createTag("div")).style.width="100%",r.style.height="100%",r.setAttribute("data-bm-type",i),e.appendChild(r),l(r,t))},t.resize=function(){for(var t=0;t<a;t+=1)s[t].animation.resize()},t.goToAndStop=function(t,e,i){for(var r=0;r<a;r+=1)s[r].animation.goToAndStop(t,e,i)},t.destroy=function(t){for(var e=a-1;0<=e;--e)s[e].animation.destroy(t)},t.freeze=function(){h=!0},t.unfreeze=function(){h=!1,d()},t.setVolume=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setVolume(t,e)},t.mute=function(t){for(var e=0;e<a;e+=1)s[e].animation.mute(t)},t.unmute=function(t){for(var e=0;e<a;e+=1)s[e].animation.unmute(t)},t.getRegisteredAnimations=function(){for(var t=s.length,e=[],i=0;i<t;i+=1)e.push(s[i].animation);return e},t}()),BezierFactory=function(){var t={getBezierEasing:function(t,e,i,r,s){s=s||("bez_"+t+"_"+e+"_"+i+"_"+r).replace(/\./g,"p");if(a[s])return a[s];t=new n([t,e,i,r]);return a[s]=t}},a={};var S=11,C=1/(S-1),e="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function _(t,e,i){return((r(e,i)*t+(3*i-6*e))*t+3*e)*t}function A(t,e,i){return 3*r(e,i)*t*t+2*(3*i-6*e)*t+3*e}function n(t){this._p=t,this._mSampleValues=new(e?Float32Array:Array)(S),this._precomputed=!1,this.get=this.get.bind(this)}return n.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&r===s?t:0===t?0:1===t?1:_(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<S;++i)this._mSampleValues[i]=_(i*C,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,s=0,a=1,n=S-1;a!==n&&r[a]<=t;++a)s+=C;var o=s+(t-r[--a])/(r[a+1]-r[a])*C,h=A(o,e,i);if(.001<=h){for(var l=t,p=o,f=e,m=i,c=0;c<4;++c){var d=A(p,f,m);if(0===d)return p;p-=(_(p,f,m)-l)/d}return p}if(0===h)return o;for(var u,y,g=t,v=s,b=s+C,x=e,P=i,E=0;0<(u=_(y=v+(b-v)/2,x,P)-g)?b=y:v=y,1e-7<Math.abs(u)&&++E<10;);return y}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,s=t,a=createSizedArray(s);return{newElement:function(){var t;t=r?a[--r]:e();return t},release:function(t){r===s&&(a=pooling.double(a),s*=2);i&&i(t);a[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)bezierLengthPool.release(t.lengths[i]);t.lengths.length=0});function bezFunction(){var A=Math;function y(t,e,i,r,s,a){s=t*r+e*s+i*a-s*r-a*t-i*e;return-.001<s&&s<.001}var p=function(t,e,i,r){for(var s,a,n,o,h=getDefaultCurveSegments(),l=0,p=[],f=[],m=bezierLengthPool.newElement(),c=i.length,d=0;d<h;d+=1){for(n=d/(h-1),s=o=0;s<c;s+=1)a=bmPow(1-n,3)*t[s]+3*bmPow(1-n,2)*n*i[s]+3*(1-n)*bmPow(n,2)*r[s]+bmPow(n,3)*e[s],p[s]=a,null!==f[s]&&(o+=bmPow(p[s]-f[s],2)),f[s]=p[s];o&&(l+=o=bmSqrt(o)),m.percents[d]=n,m.lengths[d]=l}return m.addedLength=l,m};function g(t){this.segmentLength=0,this.points=new Array(t)}function v(t,e){this.partialLength=t,this.point=e}function t(t,e,i,r){var s=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+r[0]+"_"+r[1]).replace(/\./g,"p");if(!b[s]){for(var a,n,o,h,l,p=getDefaultCurveSegments(),f=0,m=null,c=new g(p=2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&y(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&y(t[0],t[1],e[0],e[1],e[0]+r[0],e[1]+r[1])?2:p),d=i.length,u=0;u<p;u+=1){for(l=createSizedArray(d),o=u/(p-1),a=h=0;a<d;a+=1)n=bmPow(1-o,3)*t[a]+3*bmPow(1-o,2)*o*(t[a]+i[a])+3*(1-o)*bmPow(o,2)*(e[a]+r[a])+bmPow(o,3)*e[a],l[a]=n,null!==m&&(h+=bmPow(l[a]-m[a],2));f+=h=bmSqrt(h),c.points[u]=new v(h,l),m=l}c.segmentLength=f,b[s]=c}return b[s]}var b;b={};function T(t,e){var i=e.percents,r=e.lengths,s=i.length,a=bmFloor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===r[a])return i[a];for(var h=r[a]>n?-1:1,l=!0;l;)if(r[a]<=n&&r[a+1]>n?(o=(n-r[a])/(r[a+1]-r[a]),l=!1):a+=h,a<0||s-1<=a){if(a===s-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}var M=createTypedArray("float32",8);return{getSegmentsLength:function(t){for(var e=segmentsLengthPool.newElement(),i=t.c,r=t.v,s=t.o,a=t.i,n=t._length,o=e.lengths,h=0,l=0;l<n-1;l+=1)o[l]=p(r[l],r[l+1],s[l],a[l+1]),h+=o[l].addedLength;return i&&n&&(o[l]=p(r[l],r[0],s[l],a[0]),h+=o[l].addedLength),e.totalLength=h,e},getNewSegment:function(t,e,i,r,s,a,n){s<0?s=0:1<s&&(s=1);for(var s=T(s,n),a=T(a=1<a?1:a,n),o=t.length,h=1-a,l=(n=1-s)*n*n,p=s*n*n*3,f=s*s*n*3,m=s*s*s,c=n*n*h,d=s*n*h+n*s*h+n*n*a,u=s*s*h+n*s*a+s*n*a,y=s*s*a,g=n*h*h,v=s*h*h+n*a*h+n*h*a,b=s*a*h+n*a*a+s*h*a,x=s*a*a,P=h*h*h,E=a*h*h+h*a*h+h*h*a,S=a*a*h+h*a*a+a*h*a,C=a*a*a,_=0;_<o;_+=1)M[4*_]=A.round(1e3*(l*t[_]+p*i[_]+f*r[_]+m*e[_]))/1e3,M[4*_+1]=A.round(1e3*(c*t[_]+d*i[_]+u*r[_]+y*e[_]))/1e3,M[4*_+2]=A.round(1e3*(g*t[_]+v*i[_]+b*r[_]+x*e[_]))/1e3,M[4*_+3]=A.round(1e3*(P*t[_]+E*i[_]+S*r[_]+C*e[_]))/1e3;return M},getPointInSegment:function(t,e,i,r,s,a){return s=T(s,a),a=1-s,[A.round(1e3*(a*a*a*t[0]+(s*a*a+a*s*a+a*a*s)*i[0]+(s*s*a+a*s*s+s*a*s)*r[0]+s*s*s*e[0]))/1e3,A.round(1e3*(a*a*a*t[1]+(s*a*a+a*s*a+a*a*s)*i[1]+(s*s*a+a*s*s+s*a*s)*r[1]+s*s*s*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:y,pointOnLine3D:function(t,e,i,r,s,a,n,o,h){var l;return 0===i&&0===a&&0===h?y(t,e,r,s,n,o):(l=A.sqrt(A.pow(r-t,2)+A.pow(s-e,2)+A.pow(a-i,2)),t=A.sqrt(A.pow(n-t,2)+A.pow(o-e,2)+A.pow(h-i,2)),e=A.sqrt(A.pow(n-r,2)+A.pow(o-s,2)+A.pow(h-a,2)),-1e-4<(i=t<l?e<l?l-t-e:e-t-l:t<e?e-t-l:t-l-e)&&i<1e-4)}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){for(var i,r,s,a,n=this.offsetTime,o=("multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length)),e.lastIndex),h=o,l=this.keyframes.length-1,p=!0;p;){if(r=this.keyframes[h],s=this.keyframes[h+1],h===l-1&&t>=s.t-n){r.h&&(r=s),o=0;break}if(s.t-n>t){o=h;break}h<l-1?h+=1:(o=0,p=!1)}var f=this.keyframesMetadata[h]||{},m=s.t-n,c=r.t-n;if(r.to){f.bezierData||(f.bezierData=bez.buildBezierData(r.s,s.s||r.e,r.to,r.ti));var d=f.bezierData;if(m<=t||t<c)for(var u=m<=t?d.points.length-1:0,y=d.points[u].point.length,g=0;g<y;g+=1)i[g]=d.points[u].point[g];else{f.__fnct?a=f.__fnct:(a=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,f.__fnct=a);for(var v,b=a((t-c)/(m-c)),x=d.segmentLength*b,P=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastAddedLength:0,E=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastPoint:0,p=!0,S=d.points.length;p;){if(P+=d.points[E].partialLength,0==x||0===b||E===d.points.length-1){for(y=d.points[E].point.length,g=0;g<y;g+=1)i[g]=d.points[E].point[g];break}if(P<=x&&x<P+d.points[E+1].partialLength){for(v=(x-P)/d.points[E+1].partialLength,y=d.points[E].point.length,g=0;g<y;g+=1)i[g]=d.points[E].point[g]+(d.points[E+1].point[g]-d.points[E].point[g])*v;break}E<S-1?E+=1:p=!1}e._lastPoint=E,e._lastAddedLength=P-d.points[E].partialLength,e._lastKeyframeIndex=h}}else{var C,_,A,T,M,l=r.s.length,k=s.s||r.e;if(this.sh&&1!==r.h)m<=t?(i[0]=k[0],i[1]=k[1],i[2]=k[2]):t<=c?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):quaternionToEuler(i,slerp(createQuaternion(r.s),createQuaternion(k),(t-c)/(m-c)));else for(h=0;h<l;h+=1)1!==r.h&&(b=m<=t?1:t<c?0:(r.o.x.constructor===Array?(f.__fnct||(f.__fnct=[]),f.__fnct[h]?a=f.__fnct[h]:(C=void 0===r.o.x[h]?r.o.x[0]:r.o.x[h],_=void 0===r.o.y[h]?r.o.y[0]:r.o.y[h],A=void 0===r.i.x[h]?r.i.x[0]:r.i.x[h],T=void 0===r.i.y[h]?r.i.y[0]:r.i.y[h],a=BezierFactory.getBezierEasing(C,_,A,T).get,f.__fnct[h]=a)):f.__fnct?a=f.__fnct:(C=r.o.x,_=r.o.y,A=r.i.x,T=r.i.y,a=BezierFactory.getBezierEasing(C,_,A,T).get,r.keyframeMetadata=a),a((t-c)/(m-c)))),k=s.s||r.e,M=1===r.h?r.s[h]:r.s[h]+(k[h]-r.s[h])*b,"multidimensional"===this.propType?i[h]=M:i=M}return e.lastIndex=o,i}function slerp(t,e,i){var r,s,a=[],n=t[0],o=t[1],h=t[2],t=t[3],l=e[0],p=e[1],f=e[2],e=e[3],m=n*l+o*p+h*f+t*e;return m<0&&(m=-m,l=-l,p=-p,f=-f,e=-e),m=1e-6<1-m?(m=Math.acos(m),r=Math.sin(m),s=Math.sin((1-i)*m)/r,Math.sin(i*m)/r):(s=1-i,i),a[0]=s*n+m*l,a[1]=s*o+m*p,a[2]=s*h+m*f,a[3]=s*t+m*e,a}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],e=e[3],a=Math.atan2(2*r*e-2*i*s,1-2*r*r-2*s*s),n=Math.asin(2*i*r+2*s*e),e=Math.atan2(2*i*e-2*r*s,1-2*i*i-2*s*s);t[0]=a/degToRads,t[1]=n/degToRads,t[2]=e/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,t=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(t/2),e=Math.sin(e/2),i=Math.sin(i/2),t=Math.sin(t/2);return[e*i*a+r*s*t,e*s*a+r*i*t,r*i*a-e*s*t,r*s*a-e*i*t]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;return t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e)||(this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),i=this.interpolateValue(t,this._caching),this.pv=i),this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<mathAbs(this.v-e)&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)e=t[i]*this.mult,1e-5<mathAbs(this.v[i]-e)&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;for(var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k,i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,r){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,r){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,r){this.propType="multidimensional";for(var s,a,n,o,h=e.k.length,l=0;l<h-1;l+=1)e.k[l].to&&e.k[l].s&&e.k[l+1]&&e.k[l+1].s&&(s=e.k[l].s,a=e.k[l+1].s,n=e.k[l].to,o=e.k[l].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+n[0],s[1]+n[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+o[0],a[1]+o[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+n[0],s[1]+n[1],s[2]+n[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+o[0],a[1]+o[1],a[2]+o[2]))&&(e.k[l].to=null,e.k[l].ti=null),s[0]===a[0])&&s[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===s.length||s[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[l].to=null,e.k[l].ti=null);this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=e.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),l=0;l<p;l+=1)this.v[l]=initFrame,this.pv[l]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=addEffect}var PropertyFactory={getProp:function(t,e,i,r,s){var a;if((e=e.sid?t.globalData.slotManager.getProp(e):e).k.length)if("number"==typeof e.k[0])a=new MultiDimensionalProperty(t,e,r,s);else switch(i){case 0:a=new KeyframedValueProperty(t,e,r,s);break;case 1:a=new KeyframedMultidimensionalProperty(t,e,r,s)}else a=new ValueProperty(t,e,r,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,r,s){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[r]&&(!a[r]||s)||(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,r,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){for(var t=new ShapePath,e=(t.setPathData(this.c,this._length),this.v),i=this.o,r=this.i,s=0,a=(this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1),this._length-1),n=this._length,o=s;o<n;o+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],i[a][0],i[a][1],o,!1),--a;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){var s=poolFactory(4,function(){return new ShapePath},function(t){for(var e=t._length,i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1});return s.clone=function(t){var e,i=s.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},s}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){for(var t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){var t;t=r?a[--r]:new ShapeCollection;return t},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,r===s&&(a=pooling.double(a),s*=2);a[r]=t,r+=1}},r=0,s=4,a=createSizedArray(s);return t}(),ShapePropertyFactory=function(){var s=-999999;function t(t,e,i){var r,s,a,n,o,h,l,p=i.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)r=f[0].s[0],s=!0,p=0;else if(t>=f[f.length-1].t-this.offsetTime)r=(f[f.length-1].s?f[f.length-1].s:f[f.length-2].e)[0],s=!0;else{for(var m,c,d,u,y,g,v=p,b=f.length-1,x=!0;x&&(m=f[v],!((c=f[v+1]).t-this.offsetTime>t));)v<b-1?v+=1:x=!1;d=this.keyframesMetadata[v]||{},p=v,(s=1===m.h)||(y=t>=c.t-this.offsetTime?1:t<m.t-this.offsetTime?0:(d.__fnct?u=d.__fnct:(u=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,d.__fnct=u),u((t-(m.t-this.offsetTime))/(c.t-this.offsetTime-(m.t-this.offsetTime)))),g=(c.s||m.e)[0]),r=m.s[0]}for(o=e._length,h=r.i[0].length,i.lastIndex=p,a=0;a<o;a+=1)for(n=0;n<h;n+=1)l=s?r.i[a][n]:r.i[a][n]+(g.i[a][n]-r.i[a][n])*y,e.i[a][n]=l,l=s?r.o[a][n]:r.o[a][n]+(g.o[a][n]-r.o[a][n])*y,e.o[a][n]=l,l=s?r.v[a][n]:r.v[a][n]+(g.v[a][n]-r.v[a][n])*y,e.v[a][n]=l}function r(){this.paths=this.localShapeCollection}function e(t){!function(t,e){if(t._length===e._length&&t.c===e.c){for(var i=t._length,r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return;return 1}}(this.v,t)&&(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1,t=this.kf?this.pv:(this.data.ks||this.data.pt).k;for(var t,e=this.effectsSequence.length,i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;t=(3===i?e.pt:e.ks).k;this.v=shapePool.clone(t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=(3===i?e.pt:e.ks).k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;t=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=s,this.reset=r,this._caching={lastFrame:s,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==s&&(r<e&&t<e||i<r&&i<t)||(this._caching.lastIndex=r<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=e,a.prototype.addEffect=n,o.prototype.getValue=i,o.prototype.interpolateShape=t,o.prototype.setVValue=e,o.prototype.addEffect=n;h=roundCorner,p.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertEllToPath()},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=e-r,a.v[1][0]=s?t+i:t-i,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+r,a.v[3][0]=s?t-i:t+i,a.v[3][1]=e,a.i[0][0]=s?t-i*h:t+i*h,a.i[0][1]=e-r,a.i[1][0]=s?t+i:t-i,a.i[1][1]=e-r*h,a.i[2][0]=s?t+i*h:t-i*h,a.i[2][1]=e+r,a.i[3][0]=s?t-i:t+i,a.i[3][1]=e+r*h,a.o[0][0]=s?t+i*h:t-i*h,a.o[0][1]=e-r,a.o[1][0]=s?t+i:t-i,a.o[1][1]=e+r*h,a.o[2][0]=s?t-i*h:t+i*h,a.o[2][1]=e+r,a.o[3][0]=s?t-i:t+i,a.o[3][1]=e-r*h}},extendPrototype([DynamicPropertyContainer],p);var h,l=p;function p(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}m.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertToPath()},convertStarToPath:function(){for(var t=2*Math.floor(this.pt.v),e=2*Math.PI/t,i=!0,r=this.or.v,s=this.ir.v,a=this.os.v,n=this.is.v,o=2*Math.PI*r/(2*t),h=2*Math.PI*s/(2*t),l=-Math.PI/2,p=(l+=this.r.v,3===this.data.d?-1:1),f=this.v._length=0;f<t;f+=1){var m=i?a:n,c=i?o:h,d=(u=i?r:s)*Math.cos(l),u=u*Math.sin(l),y=0==d&&0==u?0:u/Math.sqrt(d*d+u*u),g=0==d&&0==u?0:-d/Math.sqrt(d*d+u*u);d+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(d,u,d-y*c*m*p,u-g*c*m*p,d+y*c*m*p,u+g*c*m*p,f,!0),i=!i,l+=e*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,s=this.os.v,a=2*Math.PI*r/(4*e),n=.5*-Math.PI,o=3===this.data.d?-1:1;for(n+=this.r.v,t=this.v._length=0;t<e;t+=1){var h=r*Math.cos(n),l=r*Math.sin(n),p=0==h&&0==l?0:l/Math.sqrt(h*h+l*l),f=0==h&&0==l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*s*o,l-f*a*s*o,h+p*a*s*o,l+f*a*s*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],m);var f=m;function m(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}d.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=bmMin(i,r,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+s,t+i,e-r+a,0,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-a,t+i,e+r-s,1,!0),0!==s?(this.v.setTripleAt(t+i-s,e+r,t+i-s,e+r,t+i-a,e+r,2,!0),this.v.setTripleAt(t-i+s,e+r,t-i+a,e+r,t-i+s,e+r,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-s,t-i,e+r-a,4,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+a,t-i,e-r+s,5,!0),this.v.setTripleAt(t-i+s,e-r,t-i+s,e-r,t-i+a,e-r,6,!0),this.v.setTripleAt(t+i-s,e-r,t+i-a,e-r,t+i-s,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+a,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+a,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+a,t+i,e-r+s,0,!0),0!==s?(this.v.setTripleAt(t+i-s,e-r,t+i-s,e-r,t+i-a,e-r,1,!0),this.v.setTripleAt(t-i+s,e-r,t-i+a,e-r,t-i+s,e-r,2,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+s,t-i,e-r+a,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-a,t-i,e+r-s,4,!0),this.v.setTripleAt(t-i+s,e+r,t-i+s,e+r,t-i+a,e+r,5,!0),this.v.setTripleAt(t+i-s,e+r,t+i-a,e+r,t+i-s,e+r,6,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-s,t+i,e+r-a,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+a,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-a,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-a,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertRectToPath()},reset:r},extendPrototype([DynamicPropertyContainer],d);var c=d;function d(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}var u={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=new((3===i?e.pt:e.ks).k.length?o:a)(t,e,i):5===i?r=new c(t,e):6===i?r=new l(t,e):7===i&&(r=new f(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}};return u}(),Matrix=function(){var r=Math.cos,s=Math.sin,a=Math.tan,n=Math.round;function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){var e;return 0===t?this:(e=r(t),t=s(t),this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1))}function i(t){var e;return 0===t?this:(e=r(t),t=s(t),this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1))}function o(t){var e;return 0===t?this:(e=r(t),t=s(t),this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1))}function h(t){var e;return 0===t?this:(e=r(t),t=s(t),this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1))}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(a(t),a(e))}function f(t,e){var i=r(e),e=s(e);return this._t(i,e,0,0,-e,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-e,0,0,e,i,0,0,0,0,1,0,0,0,0,1)}function m(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function c(t,e,i,r,s,a,n,o,h,l,p,f,m,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=f,this.props[12]=m,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function u(t,e,i,r,s,a,n,o,h,l,p,f,m,c,d,u){var y,g,v,b,x,P,E,S,C,_,A,T,M,k,D,F,w=this.props;return 1===t&&0===e&&0===i&&0===r&&0===s&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===f?(w[12]=w[12]*t+w[15]*m,w[13]=w[13]*a+w[15]*c,w[14]=w[14]*p+w[15]*d,w[15]*=u,this._identityCalculated=!1):(y=w[0],g=w[1],v=w[2],b=w[3],x=w[4],P=w[5],E=w[6],S=w[7],C=w[8],_=w[9],A=w[10],T=w[11],M=w[12],k=w[13],D=w[14],F=w[15],w[0]=y*t+g*s+v*h+b*m,w[1]=y*e+g*a+v*l+b*c,w[2]=y*i+g*n+v*p+b*d,w[3]=y*r+g*o+v*f+b*u,w[4]=x*t+P*s+E*h+S*m,w[5]=x*e+P*a+E*l+S*c,w[6]=x*i+P*n+E*p+S*d,w[7]=x*r+P*o+E*f+S*u,w[8]=C*t+_*s+A*h+T*m,w[9]=C*e+_*a+A*l+T*c,w[10]=C*i+_*n+A*p+T*d,w[11]=C*r+_*o+A*f+T*u,w[12]=M*t+k*s+D*h+F*m,w[13]=M*e+k*a+D*l+F*c,w[14]=M*i+k*n+D*p+F*d,w[15]=M*r+k*o+D*f+F*u,this._identityCalculated=!1),this}function y(t){t=t.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function P(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function E(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function S(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function C(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,t=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,n=new Matrix;return n.props[0]=e,n.props[1]=i,n.props[4]=r,n.props[5]=s,n.props[12]=a,n.props[13]=t,n}function A(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function T(t){for(var e=t.length,i=[],r=0;r<e;r+=1)i[r]=A(t[r]);return i}function M(t,e,i){var r,s,a,n,o,h,l=createTypedArray("float32",6);return this.isIdentity()?(l[0]=t[0],l[1]=t[1],l[2]=e[0],l[3]=e[1],l[4]=i[0],l[5]=i[1]):(r=this.props[0],s=this.props[1],a=this.props[4],n=this.props[5],o=this.props[12],h=this.props[13],l[0]=t[0]*r+t[1]*a+o,l[1]=t[0]*s+t[1]*n+h,l[2]=e[0]*r+e[1]*a+o,l[3]=e[0]*s+e[1]*n+h,l[4]=i[0]*r+i[1]*a+o,l[5]=i[0]*s+i[1]*n+h),l}function k(t,e,i){t=this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]];return t}function D(t,e){var i;return this.isIdentity()?t+","+e:(i=this.props,Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100)}function F(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i=i+n(1e4*e[t])/1e4+(15===t?")":","),t+=1;return i}function w(t){return t<1e-6&&0<t||-1e-6<t&&t<0?n(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+w(t[0])+","+w(t[1])+","+w(t[4])+","+w(t[5])+","+w(t[12])+","+w(t[13])+")"}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=m,this.setTransform=c,this.translate=d,this.transform=u,this.multiply=y,this.applyToPoint=P,this.applyToX=E,this.applyToY=S,this.applyToZ=C,this.applyToPointArray=k,this.applyToTriplePoints=M,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=I,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=T,this.inversePoint=A,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&1<t&&setDefaultCurveSegments(t);50<=getDefaultCurveSegments()?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts,index,myScript,queryString,renderer,readyStateCheckInterval=(standalone&&(scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")),setInterval(checkReady,100));try{"object"===("undefined"==typeof exports?"undefined":_typeof$3(exports))&&"undefined"!=typeof module||"function"==typeof define&&define.amd||(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var t={},r={};return t.registerModifier=function(t,e){r[t]||(r[t]=e)},t.getModifier=function(t,e,i){return new r[t](e,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){var e;this.closed||(t.sh.container.addDynamicProperty(t.sh),e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()},this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated())},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){for(var a,n,o=[],h=(e<=1?o.push({s:t,e:e}):1<=t?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1})),[]),l=o.length,p=0;p<l;p+=1)(n=o[p]).e*s<r||n.s*s>r+i||(a=n.s*s<=r?0:(n.s*s-r)/i,n=n.e*s>=r+i?1:(n.e*s-r)/i,h.push([a,n]));return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){this._mdf||t?((e=this.o.v%360/360)<0&&(e+=1),i=1<this.s.v?1+e:this.s.v<0?0+e:this.s.v+e,(r=1<this.e.v?1+e:this.e.v<0?0+e:this.e.v+e)<i&&(e=i,i=r,r=e),i=1e-4*Math.round(1e4*i),r=1e-4*Math.round(1e4*r),this.sValue=i,this.eValue=r):(i=this.sValue,r=this.eValue);var e,i,r,s,a,n,o,h,l,p=this.shapes.length,f=0;if(r===i)for(u=0;u<p;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(1===r&&0===i||0===r&&1===i){if(this._mdf)for(u=0;u<p;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{for(var m,c,d=[],u=0;u<p;u+=1)if((m=this.shapes[u]).shape._mdf||this._mdf||t||2===this.m){if(n=(s=m.shape.paths)._length,l=0,!m.shape._mdf&&m.pathsData.length)l=m.totalShapeLength;else{for(o=this.releasePathsData(m.pathsData),a=0;a<n;a+=1)h=bez.getSegmentsLength(s.shapes[a]),o.push(h),l+=h.totalLength;m.totalShapeLength=l,m.pathsData=o}f+=l,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,g=i,v=r,b=0;for(u=p-1;0<=u;--u)if((m=this.shapes[u]).shape._mdf){for((c=m.localShapeCollection).releaseShapes(),2===this.m&&1<p?(y=this.calculateShapeEdges(i,r,m.totalShapeLength,b,f),b+=m.totalShapeLength):y=[[g,v]],n=y.length,a=0;a<n;a+=1){g=y[a][0],v=y[a][1],d.length=0,v<=1?d.push({s:m.totalShapeLength*g,e:m.totalShapeLength*v}):1<=g?d.push({s:m.totalShapeLength*(g-1),e:m.totalShapeLength*(v-1)}):(d.push({s:m.totalShapeLength*g,e:m.totalShapeLength}),d.push({s:0,e:m.totalShapeLength*(v-1)}));var x,P=this.addShapes(m,d[0]);d[0].s!==d[0].e&&(1<d.length&&(P=m.shape.paths.shapes[m.shape.paths._length-1].c?(x=P.pop(),this.addPaths(P,c),this.addShapes(m,d[1],x)):(this.addPaths(P,c),this.addShapes(m,d[1]))),this.addPaths(P,c))}m.shape.paths=c}}},TrimModifier.prototype.addPaths=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,i,r,s,a,n){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),n&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,s,a,n,o,h,l,p,f=t.pathsData,m=t.shape.paths.shapes,c=t.shape.paths._length,d=0,u=[],y=!0,g=i?(n=i._length,i._length):(i=shapePool.newElement(),n=0);for(u.push(i),r=0;r<c;r+=1){for(o=f[r].lengths,i.c=m[r].c,a=m[r].c?o.length:o.length+1,s=1;s<a;s+=1)if(d+(p=o[s-1]).addedLength<e.s)d+=p.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+p.addedLength?(this.addSegment(m[r].v[s-1],m[r].o[s-1],m[r].i[s],m[r].v[s],i,n,y),y=!1):(h=bez.getNewSegment(m[r].v[s-1],m[r].v[s],m[r].o[s-1],m[r].i[s],(e.s-d)/p.addedLength,(e.e-d)/p.addedLength,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1),d+=p.addedLength,n+=1}if(m[r].c&&o.length&&(p=o[s-1],d<=e.e?(l=o[s-1].addedLength,e.s<=d&&e.e>=d+l?(this.addSegment(m[r].v[s-1],m[r].o[s-1],m[r].i[0],m[r].v[0],i,n,y),y=!1):(h=bez.getNewSegment(m[r].v[s-1],m[r].v[0],m[r].o[s-1],m[r].i[0],(e.s-d)/l,(e.e-d)/l,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1)):i.c=!1,d+=p.addedLength,n+=1),i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;r<c-1&&(i=shapePool.newElement(),y=!0,u.push(i),n=0)}return u},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){for(var i=e/100,r=[0,0],s=t._length,a=0,a=0;a<s;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=s,r[1]/=s;var n,o,h,l,p,f,m=shapePool.newElement();for(m.c=t.c,a=0;a<s;a+=1)n=t.v[a][0]+(r[0]-t.v[a][0])*i,o=t.v[a][1]+(r[1]-t.v[a][1])*i,h=t.o[a][0]+(r[0]-t.o[a][0])*-i,l=t.o[a][1]+(r[1]-t.o[a][1])*-i,p=t.i[a][0]+(r[0]-t.i[a][0])*-i,f=t.i[a][1]+(r[1]-t.i[a][1])*-i,m.setTripleAt(n,o,h,l,p,f,a);return m},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.amount.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if(o=(n=this.shapes[h]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var a=[0,0];function r(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti)for(var r=e.or.k.length,s=0;s<r;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null;this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return r.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){var e,i,r,s;this.elem.globalData.frameId!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||t)&&(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&(t=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime?i=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/t,0),this.p.getValueAtTime(this.p.keyframes[0].t/t,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/t,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/t,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/t,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],i=[],r=this.px,s=this.py,r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(e[0]=r.getValueAtTime((r.keyframes[0].t+.01)/t,0),e[1]=s.getValueAtTime((s.keyframes[0].t+.01)/t,0),i[0]=r.getValueAtTime(r.keyframes[0].t/t,0),i[1]=s.getValueAtTime(s.keyframes[0].t/t,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(e[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/t,0),e[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/t,0),i[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/t,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/t,0)):(e=[r.pv,s.pv],i[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/t,r.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/t,s.offsetTime))):e=i=a,this.v.rotate(-Math.atan2(e[1]-i[1],e[0]-i[0]))),this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId)},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],r),r.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},r.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new r(t,e,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){return 0===t||(i=e*e-4*t*i)<0?[]:(e=-e/(2*t),0==i?[e]:[e-(i=Math.sqrt(i)/(2*t)),e+i])}function polynomialCoefficients(t,e,i,r){return[3*e-t-3*i+r,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,r,s){s&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),s&&pointEqual(i,r)&&(i=lerpPoint(t,r,2/3));var s=polynomialCoefficients(t[0],e[0],i[0],r[0]),a=polynomialCoefficients(t[1],e[1],i[1],r[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,i,r]}function extrema(t,e){for(var i,r,s=t.points[0][e],a=t.points[t.points.length-1][e],n=(a<s&&(i=a,a=s,s=i),quadRoots(3*t.a[e],2*t.b[e],t.c[e])),o=0;o<n.length;o+=1)0<n[o]&&n[o]<1&&((r=t.point(n[o])[e])<s?s=r:a<r&&(a=r));return{min:s,max:a}}function intersectData(t,e,i){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,r,s,a){boxIntersect(t,e)&&(a<=i||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r?s.push([t.t,e.t]):(t=splitData(t),e=splitData(e),intersectsImpl(t[0],e[0],i+1,r,s,a),intersectsImpl(t[0],e[1],i+1,r,s,a),intersectsImpl(t[1],e[0],i+1,r,s,a),intersectsImpl(t[1],e[1],i+1,r,s,a)))}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,r){t=[t[0],t[1],1],e=[e[0],e[1],1],i=[i[0],i[1],1],r=[r[0],r[1],1],t=crossProduct(crossProduct(t,e),crossProduct(i,r));return floatZero(t[2])?null:[t[0]/t[2],t[1]/t[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,r,s,a,n){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*r*s,e=e[1]-Math.sin(i)*r*s;t.setTripleAt(l,e,l+Math.cos(o)*a,e-Math.sin(o)*a,l+Math.cos(h)*n,e-Math.sin(h)*n,t.length())}function getPerpendicularVector(t,e){e=[e[0]-t[0],e[1]-t[1]],t=.5*-Math.PI;return[Math.cos(t)*e[0]-Math.sin(t)*e[1],Math.sin(t)*e[0]+Math.cos(t)*e[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,e=(e+1)%t.length(),i=getPerpendicularVector(t.v[i],t.v[e]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(t,e,i,r,s,a,n){var o=getProjectingAngle(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],l=2===a?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,h=2===a?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;setPoint(t,e.v[i%e._length],o,n,r,h/(2*(s+1)),l/(2*(s+1)),a)}function zigZagSegment(t,e,i,r,s,a){for(var n=0;n<r;n+=1){var o=(n+1)/(r+1),h=2===s?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);setPoint(t,e.point(o),l,a,i,h/(2*(r+1)),h/(2*(r+1)),s),a=-a}return a}function linearOffset(t,e,i){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,i),polarOffset(e,r,i)]}function offsetSegment(t,e){var i=linearOffset(t.points[0],t.points[1],e),r=i[0],s=i[1],a=(i=linearOffset(t.points[1],t.points[2],e))[0],n=i[1],t=(i=linearOffset(t.points[2],t.points[3],e))[0],e=i[1],i=lineIntersection(r,s,a,n),s=(null===i&&(i=s),lineIntersection(t,e,a,n));return new PolynomialBezier(r,i,s=null===s?t:s,e)}function joinLines(t,e,i,r,s){var a,n,o=e.points[3],h=i.points[0];return 3===r||pointEqual(o,h)?o:2===r?(r=-e.tangentAngle(1),n=-i.tangentAngle(0)+Math.PI,a=lineIntersection(o,polarOffset(o,r+Math.PI/2,100),h,polarOffset(h,r+Math.PI/2,100)),a=polarOffset(o,r,2*(r=a?pointDistance(a,o):pointDistance(o,h)/2)*roundCorner),t.setXYAt(a[0],a[1],"o",t.length()-1),a=polarOffset(h,n,2*r*roundCorner),t.setTripleAt(h[0],h[1],h[0],h[1],a[0],a[1],t.length()),h):(n=lineIntersection(pointEqual(o,e.points[2])?e.points[0]:e.points[2],o,h,pointEqual(h,i.points[1])?i.points[3]:i.points[1]))&&pointDistance(n,o)<s?(t.setTripleAt(n[0],n[1],n[0],n[1],n[0],n[1],t.length()),n):o}function getIntersection(t,e){t=t.intersections(e);return t.length&&floatEqual(t[0][0],1)&&t.shift(),t.length?t[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),r=e.slice(),s=getIntersection(t[t.length-1],e[0]);return s&&(i[t.length-1]=t[t.length-1].split(s[0])[0],r[0]=e[0].split(s[1])[1]),1<t.length&&1<e.length&&(s=getIntersection(t[0],e[e.length-1]))?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return 1<t.length&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,r,s,a=t.inflectionPoints();return 0===a.length?[offsetSegment(t,e)]:1===a.length||floatEqual(a[1],1)?(r=(i=t.split(a[0]))[0],s=i[1],[offsetSegment(r,e),offsetSegment(s,e)]):(r=(i=t.split(a[0]))[0],t=(a[1]-a[0])/(1-a[0]),a=(i=i[1].split(t))[0],s=i[1],[offsetSegment(r,e),offsetSegment(a,e),offsetSegment(s,e)])}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",s=e.length,a=0;a<s;a+=1)switch(e[a].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,r,s,a){var n=a?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-s),h=r.s.v[1]+(1-r.s.v[1])*(1-s);t.translate(r.p.v[0]*n*s,r.p.v[1]*n*s,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*n*s),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/o:o,a?1/h:h),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);0<i;)this._elements.unshift(e[--i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){t=JSON.parse(JSON.stringify(t));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,s,a,n=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}for(r=a=0;r<=this._groups.length-1;r+=1)this._groups[r]._render=o=a<h,this.changeGroupRender(this._groups[r].it,o),o||(0!==(o=(o=this.elemsData[r].it)[o.length-1]).transform.op.v?(o.transform.op._mdf=!0,o.transform.op.v=0):o.transform.op._mdf=!1),a+=1;this._currentCopies=h;var p,f,t=this.o.v,m=t%1,c=0<t?Math.floor(t):Math.ceil(t),d=this.pMatrix.props,u=this.rMatrix.props,y=this.sMatrix.props,g=(this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset(),0);if(0<t){for(;g<c;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),g+=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),g+=m)}else if(t<0){for(;c<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--g;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),g-=m)}for(r=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(f=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==g){for((0!==r&&1===s||r!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),p=0;p<f;p+=1)i[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<f;p+=1)i[p]=this.matrix.props[p];g+=1,--a,r+=s}}else for(a=this._currentCopies,r=0,s=1;a;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,--a,r+=s;return n},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){for(var i,r,s,a,n,o,h,l,p,f,m=shapePool.newElement(),c=(m.c=t.c,t._length),d=0,u=0;u<c;u+=1)i=t.v[u],s=t.o[u],r=t.i[u],i[0]===s[0]&&i[1]===s[1]&&i[0]===r[0]&&i[1]===r[1]?0!==u&&u!==c-1||t.c?(a=0===u?t.v[c-1]:t.v[u-1],o=(n=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(n/2,e)/n:0,p=i[0]+(a[0]-i[0])*o,f=i[1]-(i[1]-a[1])*o,h=p-(p-i[0])*roundCorner,l=f-(f-i[1])*roundCorner,m.setTripleAt(p,f,h,l,p,f,d),d+=1,a=u===c-1?t.v[0]:t.v[u+1],o=(n=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(n/2,e)/n:0,h=i[0]+(a[0]-i[0])*o,l=i[1]+(a[1]-i[1])*o,p=h-(h-i[0])*roundCorner,f=l-(l-i[1])*roundCorner,m.setTripleAt(h,l,h,l,p,f,d)):m.setTripleAt(i[0],i[1],s[0],s[1],r[0],r[1],d):m.setTripleAt(t.v[u][0],t.v[u][1],t.o[u][0],t.o[u][1],t.i[u][0],t.i[u][1],d),d+=1;return m},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.rd.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if(o=(n=this.shapes[h]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){t=this.derivative(t);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(t){t=this.derivative(t);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t,e=this.a[1]*this.b[0]-this.a[0]*this.b[1];return floatZero(e)||(e=(t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e)*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e)<0?[]:floatZero(e=Math.sqrt(e))?0<e&&e<1?[t]:[]:[t-e,t+e].filter(function(t){return 0<t&&t<1})},PolynomialBezier.prototype.split=function(t){var e,i,r,s;return t<=0?[singlePoint(this.points[0]),this]:1<=t?[this,singlePoint(this.points[this.points.length-1])]:(e=lerpPoint(this.points[0],this.points[1],t),s=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,s,t),s=lerpPoint(s,i,t),t=lerpPoint(r,s,t),[new PolynomialBezier(this.points[0],e,r,t,!0),new PolynomialBezier(t,s,i,this.points[3],!0)])},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,r){var s=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||--s,0!==s){var n=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,r,n);for(var h=0;h<s;h+=1)n=zigZagSegment(a,o,e,i,r,-n),o=h!==s-1||t.c?PolynomialBezier.shapeSegment(t,(h+1)%s):null,zigZagCorner(a,t,h+1,e,i,r,n)}return a},ZigZagModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.amplitude.v,n=Math.max(0,Math.round(this.frequency.v)),o=this.pointsType.v;if(0!==a)for(var h,l,p=0;p<s;p+=1){if(l=(h=this.shapes[p]).localShapeCollection,h.shape._mdf||this._mdf||t)for(l.releaseShapes(),h.shape._mdf=!0,e=h.shape.paths.shapes,r=h.shape.paths._length,i=0;i<r;i+=1)l.addShape(this.processPath(e[i],a,n,o));h.shape.paths=h.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,r){for(var s,a,n=shapePool.newElement(),o=(n.c=t.c,t.length()),h=(t.c||--o,[]),l=0;l<o;l+=1)a=PolynomialBezier.shapeSegment(t,l),h.push(offsetSegmentSplit(a,e));if(!t.c)for(l=o-1;0<=l;--l)a=PolynomialBezier.shapeSegmentInverted(t,l),h.push(offsetSegmentSplit(a,e));var h=pruneIntersections(h),p=null,f=null;for(l=0;l<h.length;l+=1){var m=h[l];for(f&&(p=joinLines(n,f,m[0],i,r)),f=m[m.length-1],s=0;s<m.length;s+=1)a=m[s],p&&pointEqual(a.points[0],p)?n.setXYAt(a.points[1][0],a.points[1][1],"o",n.length()-1):n.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],n.length()),n.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],n.length()),p=a.points[3]}return h.length&&joinLines(n,f,h[0][0],i,r),n},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.amount.v,n=this.miterLimit.v,o=this.lineJoin;if(0!==a)for(var h,l,p=0;p<s;p+=1){if(l=(h=this.shapes[p]).localShapeCollection,h.shape._mdf||this._mdf||t)for(l.releaseShapes(),h.shape._mdf=!0,e=h.shape.paths.shapes,r=h.shape.paths._length,i=0;i<r;i+=1)l.addShape(this.processPath(e[i],a,o,n));h.shape.paths=h.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var a={w:0,size:0,shapes:[],data:{shapes:[]}},e=(e=[]).concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]),i=127462,r=127487,s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(t,e){var i=createTag("span"),r=(i.setAttribute("aria-hidden",!0),i.style.fontFamily=e,createTag("span")),s=(r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i),r.offsetWidth);return r.style.fontFamily=function(t){for(var e=t.split(","),i=e.length,r=[],s=0;s<i;s+=1)"sans-serif"!==e[s]&&"monospace"!==e[s]&&r.push(e[s]);return r.join(",")}(t)+", "+e,{node:r,w:s,parent:i}}function m(t,e){var i,r,s=document.body&&e?"svg":"canvas",a=getFontProperties(t);return i="svg"==s?((r=createNS("text")).style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",a.style),r.setAttribute("font-weight",a.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),r):((e=new OffscreenCanvas(500,500).getContext("2d")).font=a.style+" "+a.weight+" 100px "+t.fFamily,e),{measureText:function(t){return"svg"==s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function n(t){var e=0,i=t.charCodeAt(0);return e=55296<=i&&i<=56319&&56320<=(t=t.charCodeAt(1))&&t<=57343?1024*(i-55296)+t-56320+65536:e}function o(t){t=n(t);return i<=t&&t<=r}function t(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}t.isModifier=function(t,e){return t=t.toString(16)+e.toString(16),-1!==s.indexOf(t)},t.isZeroWidthJoiner=function(t){return 8205===t},t.isFlagEmoji=function(t){return o(t.substr(0,2))&&o(t.substr(2,2))},t.isRegionalCode=o,t.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},t.isRegionalFlag=function(t,e){var i;if(127988!==n(t.substr(e,2)))return!1;var r=0;for(e+=2;r<5;){if((i=n(t.substr(e,2)))<917601||917626<i)return!1;r+=1,e+=2}return 917631===n(t.substr(e,2))},t.isVariationSelector=function(t){return 65039===t},t.BLACK_FLAG_CODE_POINT=127988;var h={addChars:function(t){if(t){this.chars||(this.chars=[]);for(var e,i,r=t.length,s=this.chars.length,a=0;a<r;a+=1){for(e=0,i=!1;e<s;)this.chars[e].style===t[a].style&&this.chars[e].fFamily===t[a].fFamily&&this.chars[e].ch===t[a].ch&&(i=!0),e+=1;i||(this.chars.push(t[a]),s+=1)}}},addFonts:function(t,e){if(t)if(this.chars)this.isLoaded=!0,this.fonts=t.list;else if(document.body){for(var i=t.list,r=i.length,s=r,a=0;a<r;a+=1){var n,o,h,l,p=!0;if(i[a].loaded=!1,i[a].monoCase=f(i[a].fFamily,"monospace"),i[a].sansCase=f(i[a].fFamily,"sans-serif"),i[a].fPath){if("p"===i[a].fOrigin||3===i[a].origin)(p=0<(o=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[a].fFamily+'"], style[f-origin="3"][f-family="'+i[a].fFamily+'"]')).length?!1:p)&&((h=createTag("style")).setAttribute("f-forigin",i[a].fOrigin),h.setAttribute("f-origin",i[a].origin),h.setAttribute("f-family",i[a].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+i[a].fFamily+"; font-style: normal; src: url('"+i[a].fPath+"');}",e.appendChild(h));else if("g"===i[a].fOrigin||1===i[a].origin){for(o=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),n=0;n<o.length;n+=1)-1!==o[n].href.indexOf(i[a].fPath)&&(p=!1);p&&((h=createTag("link")).setAttribute("f-forigin",i[a].fOrigin),h.setAttribute("f-origin",i[a].origin),h.type="text/css",h.rel="stylesheet",h.href=i[a].fPath,document.body.appendChild(h))}else if("t"===i[a].fOrigin||2===i[a].origin){for(o=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),n=0;n<o.length;n+=1)i[a].fPath===o[n].src&&(p=!1);p&&((l=createTag("link")).setAttribute("f-forigin",i[a].fOrigin),l.setAttribute("f-origin",i[a].origin),l.setAttribute("rel","stylesheet"),l.setAttribute("href",i[a].fPath),e.appendChild(l))}}else i[a].loaded=!0,--s;i[a].helper=m(i[a],e),i[a].cache={},this.fonts.push(i[a])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0,t.list.forEach(function(t){t.helper=m(t),t.cache={}}),this.fonts=t.list;else this.isLoaded=!0},getCharData:function(t,e,i){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===t&&this.chars[r].style===e&&this.chars[r].fFamily===i)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,i)),a},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var r,s,a,e=this.getFontByName(e),n=t;return e.cache[n]||(r=e.helper," "===t?(s=r.measureText("|"+t+"|"),a=r.measureText("||"),e.cache[n]=(s-a)/100):e.cache[n]=r.measureText(t)/100),e.cache[n]*i},checkLoadedFonts:function(){for(var t,e,i=this.fonts.length,r=i,s=0;s<i;s+=1)this.fonts[s].loaded?--r:"n"===this.fonts[s].fOrigin||0===this.fonts[s].origin?this.fonts[s].loaded=!0:(t=this.fonts[s].monoCase.node,e=this.fonts[s].monoCase.w,t.offsetWidth===e&&(t=this.fonts[s].sansCase.node,e=this.fonts[s].sansCase.w,t.offsetWidth===e)||(--r,this.fonts[s].loaded=!0),this.fonts[s].loaded&&(this.fonts[s].sansCase.parent.parentNode.removeChild(this.fonts[s].sansCase.parent),this.fonts[s].monoCase.parent.parentNode.removeChild(this.fonts[s].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return t.prototype=h,t}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){for(var t=this.renderableComponents.length,e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){for(var i,r=t.ef||[],s=(this.effectElements=[],r.length),a=0;a<s;a+=1)i=new GroupEffect(r[a],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);for(var i,r=this.data.ef.length,s=this.data.ef,a=0;a<r;a+=1){switch(i=null,s[a].ty){case 0:i=new SliderEffect(s[a],e,this);break;case 1:i=new AngleEffect(s[a],e,this);break;case 2:i=new ColorEffect(s[a],e,this);break;case 3:i=new PointEffect(s[a],e,this);break;case 4:case 7:i=new CheckboxEffect(s[a],e,this);break;case 10:i=new LayerIndexEffect(s[a],e,this);break;case 11:i=new MaskIndexEffect(s[a],e,this);break;case 5:i=new EffectsManager(s[a],e,this);break;default:i=new NoValueEffect(s[a],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(this.data.hasMask)for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t,e,i,r,s=getExpressionInterfaces();s&&(r=s("layer"),t=s("effects"),e=s("shape"),i=s("text"),s=s("comp"),this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager),r=t.createEffectsInterface(this,this.layerInterface),this.layerInterface.registerEffectsInterface(r),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=e(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface))},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){for(var i=this.dynamicProperties.length,r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf)&&(this.globalData._mdf=!0,this._mdf=!0)},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();t&&(t=t("footage"),this.layerInterface=t(this))},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/this.data.sr:(t=this.tm.v,this._currentTime=t),this._volume=this.lv.v[0];t=this._volume*this._volumeMultiplier;this._previousVolume!==t&&(this._previousVolume=t,this.audio.volume(t))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||.1<Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek()))&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;0<=e;--e)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;for(var e,i=t.length,r=this.layers.length,s=0;s<i;s+=1)for(e=0;e<r;){if(this.layers[e].id===t[s].id){this.layers[e]=t[s];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==e&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==s[a].parent?this.buildElementParenting(t,s[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=0;r<i;r+=1)t[r].xt&&((e=this.createComp(t[r])).initExpressions(),this.globalData.projectInterface.registerComposition(e))},BaseRenderer.prototype.getElementById=function(t){for(var e=this.elements.length,i=0;i<e;i+=1)if(this.elements[i].data.ind===t)return this.elements[i];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else for(var r=this.elements.length,s=0;s<r;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;for(var r,s,a,n,o,h=this.globalData.defs,l=this.masksProperties?this.masksProperties.length:0,p=(this.viewData=createSizedArray(l),this.solidPath="",this.masksProperties),f=0,m=[],c=createElementID(),d="clipPath",u="clip-path",y=0;y<l;y+=1)if(("a"!==p[y].mode&&"n"!==p[y].mode||p[y].inv||100!==p[y].o.k||p[y].o.x)&&(u=d="mask"),"s"!==p[y].mode&&"i"!==p[y].mode||0!==f?s=null:((s=createNS("rect")).setAttribute("fill","#ffffff"),s.setAttribute("width",this.element.comp.data.w||0),s.setAttribute("height",this.element.comp.data.h||0),m.push(s)),r=createNS("path"),"n"===p[y].mode)this.viewData[y]={op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),elem:r,lastPath:""},h.appendChild(r);else{if(f+=1,r.setAttribute("fill","s"===p[y].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==p[y].x.k?(u=d="mask",n=PropertyFactory.getProp(this.element,p[y].x,0,null,this.element),o=createElementID(),(x=createNS("filter")).setAttribute("id",o),(a=createNS("feMorphology")).setAttribute("operator","erode"),a.setAttribute("in","SourceGraphic"),a.setAttribute("radius","0"),x.appendChild(a),h.appendChild(x),r.setAttribute("stroke","s"===p[y].mode?"#000000":"#ffffff")):n=a=null,this.storedData[y]={elem:r,x:n,expan:a,lastPath:"",lastOperator:"",filterId:o,lastRadius:0},"i"===p[y].mode){for(var g=m.length,v=createNS("g"),b=0;b<g;b+=1)v.appendChild(m[b]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",c+"_"+f),x.appendChild(r),h.appendChild(x),v.setAttribute("mask","url("+getLocationHref()+"#"+c+"_"+f+")"),m.length=0,m.push(v)}else m.push(r);p[y].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[y]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),invRect:s},this.viewData[y].prop.k||this.drawPath(p[y],this.viewData[y].prop.v,this.viewData[y])}for(this.maskElement=createNS(d),l=m.length,y=0;y<l;y+=1)this.maskElement.appendChild(m[y]);0<f&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+c+")"),h.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var r=this.localTransforms[t].matrix;i.multiply(r)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){for(var s=this.finalTransform.localOpacity,t=0;t<e;t+=1)s*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;for(var e=0,i=t.length,e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){for(var e=[],i=(e.push(this.finalTransform),!0),r=this.comp;i;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):i=!1;for(var s,a=e.length,n=0;n<a;n+=1)s=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){for(var e,i=this.element.finalTransform.mat,r=this.masksProperties.length,s=0;s<r;s+=1)(this.viewData[s].prop._mdf||t)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||t)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),"n"!==this.masksProperties[s].mode&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[s].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[s].x)&&(this.storedData[s].x._mdf||t)&&(e=this.storedData[s].expan,this.storedData[s].x.v<0?("erode"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[s].filterId+")")),e.setAttribute("radius",-this.storedData[s].x.v)):("dilate"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",2*this.storedData[s].x.v)))},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return(t+=" h"+this.globalData.compSize.w)+(" v"+this.globalData.compSize.h)+(" h-"+this.globalData.compSize.w)+(" v-"+this.globalData.compSize.h+" ")},MaskElement.prototype.drawPath=function(t,e,i){for(var r,s=" M"+e.v[0][0]+","+e.v[0][1],a=e._length,n=1;n<a;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];e.c&&1<a&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s&&(r="",i.elem&&(e.c&&(r=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",r)),i.lastPath=s)},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(t,e){var i=createNS("filter");i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%"));return i},t.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;for(this.filters=[],e=0;e<r;e+=1){o=null;var o,h=t.data.ef[e].ty;registeredEffects$1[h]&&(o=new registeredEffects$1[h].effect(a,t.effectsManager.effectElements[e],t,idPrefix+n,i),i=idPrefix+n,registeredEffects$1[h].countsAsEffect)&&(n+=1),o&&this.filters.push(o)}n&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){for(var e=this.filters.length,i=[],r=0;r<e;r+=1)this.filters[r].type===t&&i.push(this.filters[r]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,r=null;this.data.td?(this.matteMasks={},(t=createNS("g")).setAttribute("id",this.layerId),t.appendChild(this.layerElement),this.globalData.defs.appendChild(r=t)):this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.ty||this.data.hd||(t=createNS("clipPath"),(i=createNS("path")).setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z"),e=createElementID(),t.setAttribute("id",e),t.appendChild(i),this.globalData.defs.appendChild(t),this.checkMasks()?((i=createNS("g")).setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),i.appendChild(this.layerElement),this.transformedElement=i,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement):this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")")),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){var e,i,r,s,a,n,o,h,l;return this.matteMasks||(this.matteMasks={}),this.matteMasks[t]||(e=this.layerId+"_"+t,1===t||3===t?((n=createNS("mask")).setAttribute("id",e),n.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),n.appendChild(s),this.globalData.defs.appendChild(n),featureSupport.maskType||1!==t||(n.setAttribute("mask-type","luminance"),i=createElementID(),r=filtersFactory.createFilter(i),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(a=createNS("g")).appendChild(s),n.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))):2===t&&((n=createNS("mask")).setAttribute("id",e),n.setAttribute("mask-type","alpha"),o=createNS("g"),n.appendChild(o),i=createElementID(),r=filtersFactory.createFilter(i),(l=createNS("feComponentTransfer")).setAttribute("in","SourceGraphic"),r.appendChild(l),(h=createNS("feFuncA")).setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),l.appendChild(h),this.globalData.defs.appendChild(r),(l=createNS("rect")).setAttribute("width",this.comp.data.w),l.setAttribute("height",this.comp.data.h),l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("fill","#ffffff"),l.setAttribute("opacity","0"),o.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),o.appendChild(l),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),featureSupport.maskType||(n.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),o.appendChild(l),a.appendChild(this.layerElement),o.appendChild(a)),this.globalData.defs.appendChild(n)),this.matteMasks[t]=e),this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){for(var e=this.shapeModifiers.length,i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){for(var t=this.shapes.length,e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;0<=e&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);--e);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[--r].elem===t)return void(i[r].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var r=0,s=t.length;r<s;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,r){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);for(var s,a=e.length||0,n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(.01<Math.abs(t[4*i]-t[4*e+2*i]))return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){for(var e,i,r=4*this.data.p,s=0;s<r;s+=1)e=s%4==0?100:255,i=Math.round(this.prop.v[s]*e),this.c[s]!==i&&(this.c[s]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,s=4*this.data.p;s<r;s+=1)e=s%2==0?100:1,i=s%2==0?Math.round(100*this.prop.v[s]):this.prop.v[s],this.o[s-4*this.data.p]!==i&&(this.o[s-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){for(var i,r=createElementID(),s=createNS(1===e.t?"linearGradient":"radialGradient"),a=(s.setAttribute("id",r),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse"),[]),n=4*e.g.p,o=0;o<n;o+=4)i=createNS("stop"),s.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=s,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){for(var i,r,s=createNS("mask"),a=createNS("path"),n=(s.appendChild(a),createElementID()),o=createElementID(),h=(s.setAttribute("id",o),createNS(1===t.t?"linearGradient":"radialGradient")),l=(h.setAttribute("id",n),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=(t.g.k.k[0].s||t.g.k.k).length,this.stops),p=4*t.g.p;p<r;p+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),l.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj)&&a.setAttribute("stroke-miterlimit",t.ml),this.of=h,this.ms=s,this.ost=l,this.maskId=o,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";for(var s=t.o,a=t.i,n=t.v,o=" M"+r.applyToPointStringified(n[0][0],n[0][1]),h=1;h<e;h+=1)o+=" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[h][0],a[h][1])+" "+r.applyToPointStringified(n[h][0],n[h][1]);return o=i&&e?o+(" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(n[0][0],n[0][1]))+"z":o},SVGElementsRenderer=function(){var u=new Matrix,y=new Matrix;function e(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function r(t,e,i){for(var r,s,a,n,o,h,l,p,f,m=e.styles.length,c=e.lvl,d=0;d<m;d+=1){if(n=e.sh._mdf||i,e.styles[d].lvl<c){for(l=y.reset(),p=c-e.styles[d].lvl,f=e.transformers.length-1;!n&&0<p;)n=e.transformers[f].mProps._mdf||n,--p,--f;if(n)for(p=c-e.styles[d].lvl,f=e.transformers.length-1;0<p;)l.multiply(e.transformers[f].mProps.v),--p,--f}else l=u;if(s=(h=e.sh.paths)._length,n){for(a="",r=0;r<s;r+=1)(o=h.shapes[r])&&o._length&&(a+=buildShapeString(o,o._length,o.c,l));e.caches[d]=a}else a=e.caches[d];e.styles[d].d+=!0===t.hd?"":a,e.styles[d]._mdf=n||e.styles[d]._mdf}}function s(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){n(t,e,i),o(0,e,i)}function n(t,e,i){var r,s,a,n,o=e.gf,h=e.g._hasOpacity,l=e.s.v,p=e.e.v;if((e.o._mdf||i)&&(a="gf"===t.ty?"fill-opacity":"stroke-opacity",e.style.pElem.setAttribute(a,e.o.v)),(e.s._mdf||i)&&(n="x1"==(a=1===t.t?"x1":"cx")?"y1":"cy",o.setAttribute(a,l[0]),o.setAttribute(n,l[1]),h)&&!e.g._collapsable&&(e.of.setAttribute(a,l[0]),e.of.setAttribute(n,l[1])),e.g._cmdf||i)for(var f=e.cst,m=e.g.c,c=f.length,d=0;d<c;d+=1)(r=f[d]).setAttribute("offset",m[4*d]+"%"),r.setAttribute("stop-color","rgb("+m[4*d+1]+","+m[4*d+2]+","+m[4*d+3]+")");if(h&&(e.g._omdf||i)){var u=e.g.o;for(c=(f=e.g._collapsable?e.cst:e.ost).length,d=0;d<c;d+=1)r=f[d],e.g._collapsable||r.setAttribute("offset",u[2*d]+"%"),r.setAttribute("stop-opacity",u[2*d+1])}1===t.t?(e.e._mdf||i)&&(o.setAttribute("x2",p[0]),o.setAttribute("y2",p[1]),h)&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])):((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),o.setAttribute("r",s),h)&&!e.g._collapsable&&e.of.setAttribute("r",s),(e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||i)&&(s=s||Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),a=Math.atan2(p[1]-l[1],p[0]-l[0]),1<=(n=e.h.v)?n=.99:n<=-1&&(n=-.99),t=s*n,i=Math.cos(a+e.a.v)*t+l[0],p=Math.sin(a+e.a.v)*t+l[1],o.setAttribute("fx",i),o.setAttribute("fy",p),h)&&!e.g._collapsable&&(e.of.setAttribute("fx",i),e.of.setAttribute("fy",p)))}function o(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||i)&&s.dashStr&&(r.pElem.setAttribute("stroke-dasharray",s.dashStr),r.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem)&&r.msElem.setAttribute("stroke-width",e.w.v)}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return n;case"gs":return a;case"st":return o;case"sh":case"el":case"rc":case"sr":return r;case"tr":return e;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,s,a){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){for(var t,e,i,r=this.shapes.length,s=this.stylesList.length,a=[],n=!1,o=0;o<s;o+=1){for(i=this.stylesList[o],n=!1,t=a.length=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(a.push(e),n=e._isAnimated||n);1<a.length&&n&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,e=new SVGStyleData(t,e),r=e.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,e):"fl"===t.ty?i=new SVGFillStyleData(this,t,e):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,e),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,e)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(e),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);e=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){for(var e=t.styles,i=this.stylesList.length,r=0;r<i;r+=1)-1!==e.indexOf(this.stylesList[r])||this.stylesList[r].closed||e.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,r,s,a,n){for(var o,h,l,p,f,m=[].concat(a),c=t.length-1,d=[],u=[],y=c;0<=y;--y){if((f=this.searchProcessedElement(t[y]))?e[y]=i[f-1]:t[y]._render=n,"fl"===t[y].ty||"st"===t[y].ty||"gf"===t[y].ty||"gs"===t[y].ty||"no"===t[y].ty)f?e[y].style.closed=t[y].hd:e[y]=this.createStyleElement(t[y],s),t[y]._render&&e[y].style.pElem.parentNode!==r&&r.appendChild(e[y].style.pElem),d.push(e[y].style);else if("gr"===t[y].ty){if(f)for(h=e[y].it.length,o=0;o<h;o+=1)e[y].prevViewData[o]=e[y].it[o];else e[y]=this.createGroupElement(t[y]);this.searchShapes(t[y].it,e[y].it,e[y].prevViewData,e[y].gr,s+1,m,n),t[y]._render&&e[y].gr.parentNode!==r&&r.appendChild(e[y].gr)}else"tr"===t[y].ty?(f||(e[y]=this.createTransformElement(t[y],r)),l=e[y].transform,m.push(l)):"sh"===t[y].ty||"rc"===t[y].ty||"el"===t[y].ty||"sr"===t[y].ty?(f||(e[y]=this.createShapeElement(t[y],m,s)),this.setElementStyles(e[y])):"tm"===t[y].ty||"rd"===t[y].ty||"ms"===t[y].ty||"pb"===t[y].ty||"zz"===t[y].ty||"op"===t[y].ty?(f?(p=e[y]).closed=!1:((p=ShapeModifiers.getModifier(t[y].ty)).init(this,t[y]),e[y]=p,this.shapeModifiers.push(p)),u.push(p)):"rp"===t[y].ty&&(f?(p=e[y]).closed=!0:(p=ShapeModifiers.getModifier(t[y].ty),(e[y]=p).init(this,t,y,e),this.shapeModifiers.push(p),n=!1),u.push(p));this.addProcessedElement(t[y],y+1)}for(c=d.length,y=0;y<c;y+=1)d[y].closed=!0;for(c=u.length,y=0;y<c;y+=1)u[y].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){for(var t,e=this.animatedContents.length,i=0;i<e;i+=1)t=this.animatedContents[i],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,r,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var n=this._mdf.p=!1;return this.o!==t&&(this.o=t,n=this._mdf.o=!0),this.sw!==e&&(this.sw=e,n=this._mdf.sw=!0),this.sc!==i&&(this.sc=i,n=this._mdf.sc=!0),this.fc!==r&&(this.fc=r,n=this._mdf.fc=!0),this.m!==s&&(this.m=s,n=this._mdf.m=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,n=this._mdf.p=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;for(var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s,a=0;a<r;a+=1)s=i!==this.keysIndex?this.effectsSequence[a](s,s.t):this.effectsSequence[a](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&!(i===r-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],s=0,a=t.length,n=!1,o=!1,h="";s<a;)n=o,o=!1,e=t.charCodeAt(s),h=t.charAt(s),FontManager.isCombinedCharacter(e)?n=!0:55296<=e&&e<=56319?FontManager.isRegionalFlag(t,s)?h=t.substr(s,14):56320<=(i=t.charCodeAt(s+1))&&i<=57343&&(FontManager.isModifier(e,i)?(h=t.substr(s,2),n=!0):h=FontManager.isFlagEmoji(t.substr(s,4))?t.substr(s,4):t.substr(s,2)):56319<e?(i=t.charCodeAt(s+1),FontManager.isVariationSelector(e)&&(n=!0)):FontManager.isZeroWidthJoiner(e)&&(o=n=!0),n?(r[r.length-1]+=h,n=!1):r.push(h),s+=h.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,s,a=this.elem.globalData.fontManager,n=this.data,o=[],h=0,l=n.m.g,p=0,f=0,m=0,c=[],d=0,u=0,y=a.getFontByName(t.f),g=0,v=getFontProperties(y),b=(t.fWeight=v.weight,t.fStyle=v.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),S=t.finalText.length,t.finalLineHeight=t.lh,t.tr/1e3*t.finalSize);if(t.sz)for(var x=!0,R=t.sz[0],L=t.sz[1];x;){for(var P,E=0,d=0,S=(P=this.buildFinalText(t.t)).length,b=t.tr/1e3*t.finalSize,C=-1,_=0;_<S;_+=1)s=P[_].charCodeAt(0),e=!1," "===P[_]?C=_:13!==s&&3!==s||(e=!(d=0),E+=t.finalLineHeight||1.2*t.finalSize),d=R<d+(g=a.chars?(r=a.getCharData(P[_],y.fStyle,y.fFamily),e?0:r.w*t.finalSize/100):a.measureText(P[_],t.f,t.finalSize))&&" "!==P[_]?(-1===C?S+=1:_=C,E+=t.finalLineHeight||1.2*t.finalSize,P.splice(_,C===_?1:0,"\r"),C=-1,0):d+g+b;E+=y.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&L<E?(--t.finalSize,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=P,S=t.finalText.length,x=!1)}d=-b;var A,g=0,T=0;for(_=0;_<S;_+=1)if(e=!1,13===(s=(A=t.finalText[_]).charCodeAt(0))||3===s?(T=0,c.push(d),u=u<d?d:u,d=-2*b,e=!(i=""),m+=1):i=A,g=a.chars?(r=a.getCharData(A,y.fStyle,a.getFontByName(t.f).fFamily),e?0:r.w*t.finalSize/100):a.measureText(i,t.f,t.finalSize)," "===A?T+=g+b:(d+=g+b+T,T=0),o.push({l:g,an:g,add:p,n:e,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==l){if(p+=g,""===i||" "===i||_===S-1){for(""!==i&&" "!==i||(p-=g);f<=_;)o[f].an=p,o[f].ind=h,o[f].extra=g,f+=1;h+=1,p=0}}else if(3==l){if(p+=g,""===i||_===S-1){for(""===i&&(p-=g);f<=_;)o[f].an=p,o[f].ind=h,o[f].extra=g,f+=1;p=0,h+=1}}else o[h].ind=h,o[h].extra=0,h+=1;if(t.l=o,u=u<d?d:u,c.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=u,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=c;for(var M,k,D,F,w=n.a,G=w.length,I=[],V=0;V<G;V+=1){for((M=w[V]).a.sc&&(t.strokeColorAnim=!0),M.a.sw&&(t.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(t.fillColorAnim=!0),D=M.s.b,_=F=0;_<S;_+=1)(k=o[_]).anIndexes[V]=F,(1==D&&""!==k.val||2==D&&""!==k.val&&" "!==k.val||3==D&&(k.n||" "==k.val||_==S-1)||4==D&&(k.n||_==S-1))&&(1===M.s.rn&&I.push(F),F+=1);n.a[V].s.totalChars=F;var B,z=-1;if(1===M.s.rn)for(_=0;_<S;_+=1)z!=(k=o[_]).anIndexes[V]&&(z=k.anIndexes[V],B=I.splice(Math.floor(Math.random()*I.length),1)[0]),k.anIndexes[V]=B}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=y.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s),i=this.copyData(i,t);this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){t=this.data.d.k[t].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var o=Math.max,h=Math.min,l=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),"e"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e,i=0,r=0,s=1,a=1,i=(0<this.ne.v?i=this.ne.v/100:r=-this.ne.v/100,0<this.xe.v?s=1-this.xe.v/100:a=1+this.xe.v/100,BezierFactory.getBezierEasing(i,r,s,a).get),r=0,s=this.finalS,a=this.finalE,n=this.data.sh;return r=2===n?i(r=a===s?a<=t?1:0:o(0,h(.5/(a-s)+(t-s)/(a-s),1))):3===n?i(r=a===s?a<=t?0:1:1-o(0,h(.5/(a-s)+(t-s)/(a-s),1))):4===n?(a===s?r=0:(r=o(0,h(.5/(a-s)+(t-s)/(a-s),1)))<.5?r*=2:r=1-2*(r-.5),i(r)):i(r=5===n?a===s?0:(e=-(i=a-s)/2+(t=h(o(0,t+.5-s),a-s)),i=i/2,Math.sqrt(1-e*e/(i*i))):6===n?a===s?0:(t=h(o(0,t+.5-s),a-s),(1+Math.cos(Math.PI+2*Math.PI*t/(a-s)))/2):t>=l(s)?o(0,h(t-s<0?h(a,1)-(s-t):a-t,1)):r),100!==this.sm.v&&(r<(i=.5-.5*(e=0===(e=.01*this.sm.v)?1e-8:e))?r=0:1<(r=(r-i)/e)&&(r=1)),r*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/t,i=this.s.v/t+e,t=this.e.v/t+e;t<i&&(e=i,i=t,t=e),this.finalS=i,this.finalE=t}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){for(var t,e=this._textData.a.length,i=PropertyFactory.getProp,r=0;r<e;r+=1)t=this._textData.a[r],this._animatorsData[r]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,R){if(this.lettersChangedFlag=R,this._mdf||this._isFirstFrame||R||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,i,r,L,s,a,n,o,h,G,l,z,p,f=this._moreOptions.alignment.v,m=this._animatorsData,c=this._textData,d=this.mHelper,O=this._renderType,N=this.renderedLetters.length,u=t.l;if(this._hasMaskedPath){if(p=this._pathData.m,!this._pathData.n||this._pathData._mdf){for(var y,g=p.v,v={tLength:0,segments:[]},b=(g=this._pathData.r.v?g.reverse():g)._length-1,x=l=0;x<b;x+=1)y=bez.buildBezierData(g.v[x],g.v[x+1],[g.o[x][0]-g.v[x][0],g.o[x][1]-g.v[x][1]],[g.i[x+1][0]-g.v[x+1][0],g.i[x+1][1]-g.v[x+1][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength;x=b,p.v.c&&(y=bez.buildBezierData(g.v[x],g.v[0],[g.o[x][0]-g.v[x][0],g.o[x][1]-g.v[x][1]],[g.i[0][0]-g.v[0][0],g.i[0][1]-g.v[0][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength),this._pathData.pi=v}if(v=this._pathData.pi,e=this._pathData.f.v,s=1,L=!(r=a=0),h=v.segments,e<0&&p.v.c)for(v.tLength<Math.abs(e)&&(e=-Math.abs(e)%v.tLength),s=(o=h[a=h.length-1].points).length-1;e<0;)e+=o[s].partialLength,--s<0&&(s=(o=h[--a].points).length-1);n=(o=h[a].points)[s-1],G=(i=o[s]).partialLength}b=u.length;var P,H,E,S,q,j,C,_,A,T,M,W,$,Y,J,X,k=0,Z=0,K=1.2*t.finalSize*.714,U=!0,D=m.length,F=-1,Q=e,tt=a,et=s,it=-1,rt="",st=this.defaultPropsArray;if(2===t.j||1===t.j){var w=0,at=0,nt=2===t.j?-.5:-1,I=0,ot=!0;for(x=0;x<b;x+=1)if(u[x].n){for(w&&(w+=at);I<x;)u[I].animatorJustifyOffset=w,I+=1;ot=!(w=0)}else{for(B=0;B<D;B+=1)(P=m[B].a).t.propType&&(ot&&2===t.j&&(at+=P.t.v*nt),(E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars)).length?w+=P.t.v*E[0]*nt:w+=P.t.v*E*nt);ot=!1}for(w&&(w+=at);I<x;)u[I].animatorJustifyOffset=w,I+=1}for(x=0;x<b;x+=1){if(d.reset(),C=1,u[x].n)k=0,Z=Z+t.yOffset+(U?1:0),e=Q,U=!1,this._hasMaskedPath&&(n=(o=h[a=tt].points)[(s=et)-1],G=(i=o[s]).partialLength,r=0),J=W=Y=rt="",st=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==u[x].line){switch(t.j){case 1:e+=l-t.lineWidths[u[x].line];break;case 2:e+=(l-t.lineWidths[u[x].line])/2}it=u[x].line}F!==u[x].ind&&(u[F]&&(e+=u[F].extra),e+=u[x].an/2,F=u[x].ind),e+=f[0]*u[x].an*.005;for(var V=0,B=0;B<D;B+=1)(P=m[B].a).p.propType&&((E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars)).length?V+=P.p.v[0]*E[0]:V+=P.p.v[0]*E),P.a.propType&&((E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars)).length?V+=P.a.v[0]*E[0]:V+=P.a.v[0]*E);for(L=!0,this._pathData.a.v&&(e=.5*u[0].an+(l-this._pathData.f.v-.5*u[0].an-.5*u[u.length-1].an)*F/(b-1),e+=this._pathData.f.v);L;)e+V<=r+G||!o?(z=(e+V-r)/i.partialLength,q=n.point[0]+(i.point[0]-n.point[0])*z,j=n.point[1]+(i.point[1]-n.point[1])*z,d.translate(-f[0]*u[x].an*.005,-f[1]*K*.01),L=!1):o&&(r+=i.partialLength,(s+=1)>=o.length&&(s=0,o=h[a+=1]?h[a].points:p.v.c?h[a=s=0].points:(r-=i.partialLength,null)),o)&&(n=i,G=(i=o[s]).partialLength);S=u[x].an/2-u[x].add,d.translate(-S,0,0)}else S=u[x].an/2-u[x].add,d.translate(-S,0,0),d.translate(-f[0]*u[x].an*.005,-f[1]*K*.01,0);for(B=0;B<D;B+=1)(P=m[B].a).t.propType&&(E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars),0===k&&0===t.j||(this._hasMaskedPath?E.length?e+=P.t.v*E[0]:e+=P.t.v*E:E.length?k+=P.t.v*E[0]:k+=P.t.v*E));for(t.strokeWidthAnim&&(A=t.sw||0),t.strokeColorAnim&&(_=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(T=[t.fc[0],t.fc[1],t.fc[2]]),B=0;B<D;B+=1)(P=m[B].a).a.propType&&((E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars)).length?d.translate(-P.a.v[0]*E[0],-P.a.v[1]*E[1],P.a.v[2]*E[2]):d.translate(-P.a.v[0]*E,-P.a.v[1]*E,P.a.v[2]*E));for(B=0;B<D;B+=1)(P=m[B].a).s.propType&&((E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars)).length?d.scale(1+(P.s.v[0]-1)*E[0],1+(P.s.v[1]-1)*E[1],1):d.scale(1+(P.s.v[0]-1)*E,1+(P.s.v[1]-1)*E,1));for(B=0;B<D;B+=1){if(P=m[B].a,E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars),P.sk.propType&&(E.length?d.skewFromAxis(-P.sk.v*E[0],P.sa.v*E[1]):d.skewFromAxis(-P.sk.v*E,P.sa.v*E)),P.r.propType&&(E.length?d.rotateZ(-P.r.v*E[2]):d.rotateZ(-P.r.v*E)),P.ry.propType&&(E.length?d.rotateY(P.ry.v*E[1]):d.rotateY(P.ry.v*E)),P.rx.propType&&(E.length?d.rotateX(P.rx.v*E[0]):d.rotateX(P.rx.v*E)),P.o.propType&&(E.length?C+=(P.o.v*E[0]-C)*E[0]:C+=(P.o.v*E-C)*E),t.strokeWidthAnim&&P.sw.propType&&(E.length?A+=P.sw.v*E[0]:A+=P.sw.v*E),t.strokeColorAnim&&P.sc.propType)for(M=0;M<3;M+=1)E.length?_[M]+=(P.sc.v[M]-_[M])*E[0]:_[M]+=(P.sc.v[M]-_[M])*E;if(t.fillColorAnim&&t.fc){if(P.fc.propType)for(M=0;M<3;M+=1)E.length?T[M]+=(P.fc.v[M]-T[M])*E[0]:T[M]+=(P.fc.v[M]-T[M])*E;P.fh.propType&&(T=E.length?addHueToRGB(T,P.fh.v*E[0]):addHueToRGB(T,P.fh.v*E)),P.fs.propType&&(T=E.length?addSaturationToRGB(T,P.fs.v*E[0]):addSaturationToRGB(T,P.fs.v*E)),P.fb.propType&&(T=E.length?addBrightnessToRGB(T,P.fb.v*E[0]):addBrightnessToRGB(T,P.fb.v*E))}}for(B=0;B<D;B+=1)(P=m[B].a).p.propType&&(E=m[B].s.getMult(u[x].anIndexes[B],c.a[B].s.totalChars),this._hasMaskedPath?E.length?d.translate(0,P.p.v[1]*E[0],-P.p.v[2]*E[1]):d.translate(0,P.p.v[1]*E,-P.p.v[2]*E):E.length?d.translate(P.p.v[0]*E[0],P.p.v[1]*E[1],-P.p.v[2]*E[2]):d.translate(P.p.v[0]*E,P.p.v[1]*E,-P.p.v[2]*E));if(t.strokeWidthAnim&&(W=A<0?0:A),t.strokeColorAnim&&($="rgb("+Math.round(255*_[0])+","+Math.round(255*_[1])+","+Math.round(255*_[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*T[0])+","+Math.round(255*T[1])+","+Math.round(255*T[2])+")"),this._hasMaskedPath)d.translate(0,-t.ls),d.translate(0,f[1]*K*.01+Z,0),this._pathData.p.v&&(X=(i.point[1]-n.point[1])/(i.point[0]-n.point[0]),X=180*Math.atan(X)/Math.PI,i.point[0]<n.point[0]&&(X+=180),d.rotate(-X*Math.PI/180)),d.translate(q,j,0),e-=f[0]*u[x].an*.005,u[x+1]&&F!==u[x+1].ind&&(e=(e+=u[x].an/2)+.001*t.tr*t.finalSize);else{switch(d.translate(k,Z,0),t.ps&&d.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:d.translate(u[x].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[x].line]),0,0);break;case 2:d.translate(u[x].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[x].line])/2,0,0)}d.translate(0,-t.ls),d.translate(S,0,0),d.translate(f[0]*u[x].an*.005,f[1]*K*.01,0),k+=u[x].l+.001*t.tr*t.finalSize}"html"===O?rt=d.toCSS():"svg"===O?rt=d.to2dCSS():st=[d.props[0],d.props[1],d.props[2],d.props[3],d.props[4],d.props[5],d.props[6],d.props[7],d.props[8],d.props[9],d.props[10],d.props[11],d.props[12],d.props[13],d.props[14],d.props[15]],J=C}N<=x?(H=new LetterProps(J,W,$,Y,rt,st),this.renderedLetters.push(H),N+=1,this.lettersChangedFlag=!0):(H=this.renderedLetters[x],this.lettersChangedFlag=H.update(J,W,$,Y,rt,st)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){for(var i,r=e.length,s="",a=0;a<r;a+=1)"sh"===e[a].ty&&(i=e[a].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,r,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,s,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var t="",i=(e&&e.title&&(i=createNS("title"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.title,this.svgElement.appendChild(i),t+=r),e&&e.description&&(i=createNS("desc"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.description,this.svgElement.appendChild(i),t+=" "+r),t&&this.svgElement.setAttribute("aria-labelledby",t),createNS("defs")),r=(this.svgElement.appendChild(i),createNS("g"));this.svgElement.appendChild(r),this.layerElement=r,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:i,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],s="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(s),s=""):s+=t[e],e+=1;return r.push(s),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){var i;return t.shapes&&t.shapes.length&&(i=t.shapes[0]).it&&(i=i.it[i.it.length-1]).s&&(i.s.k[0]=e,i.s.k[1]=e),t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,i=this.textProperty.currentData,r=(this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize),this.globalData.fontManager.getFontByName(i.f)),s=(r.fClass?this.layerElement.setAttribute("class",r.fClass):(this.layerElement.setAttribute("font-family",r.fFamily),t=i.fWeight,e=i.fStyle,this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)),this.layerElement.setAttribute("aria-label",i.t),i.l||[]),a=!!this.globalData.fontManager.chars,n=(x=s.length,this.mHelper),o=this.data.singleShape,h=0,l=0,p=!0,f=.001*i.tr*i.finalSize;if(!o||a||i.sz){var m,c,d,u,y=this.textSpans.length;for(P=0;P<x;P+=1)this.textSpans[P]||(this.textSpans[P]={span:null,childSpan:null,glyph:null}),a&&o&&0!==P||(m=P<y?this.textSpans[P].span:createNS(a?"g":"text"),y<=P&&(m.setAttribute("stroke-linecap","butt"),m.setAttribute("stroke-linejoin","round"),m.setAttribute("stroke-miterlimit","4"),this.textSpans[P].span=m,a&&(u=createNS("g"),m.appendChild(u),this.textSpans[P].childSpan=u),this.textSpans[P].span=m,this.layerElement.appendChild(m)),m.style.display="inherit"),n.reset(),o&&(s[P].n&&(h=-f,l=l+i.yOffset+(p?1:0),p=!1),this.applyTextPropertiesToMatrix(i,n,s[P].line,h,l),h=h+(s[P].l||0)+f),a?(c=1===(u=this.globalData.fontManager.getCharData(i.finalText[P],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t?new SVGCompElement(u.data,this.globalData,this):(c=emptyShapeData,new SVGShapeElement(c=u.data&&u.data.shapes?this.buildShapeData(u.data,i.finalSize):c,this.globalData,this)),this.textSpans[P].glyph&&(d=this.textSpans[P].glyph,this.textSpans[P].childSpan.removeChild(d.layerElement),d.destroy()),(this.textSpans[P].glyph=c)._debug=!0,c.prepareFrame(0),c.renderFrame(),this.textSpans[P].childSpan.appendChild(c.layerElement),1===u.t&&this.textSpans[P].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")):(o&&m.setAttribute("transform","translate("+n.props[12]+","+n.props[13]+")"),m.textContent=s[P].val,m.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));o&&m&&m.setAttribute("d","")}else{var g=this.textContainer,v="start";switch(i.j){case 1:v="end";break;case 2:v="middle";break;default:v="start"}g.setAttribute("text-anchor",v),g.setAttribute("letter-spacing",f);for(var b=this.buildTextContents(i.finalText),x=b.length,l=i.ps?i.ps[1]+i.ascent:0,P=0;P<x;P+=1)(m=this.textSpans[P].span||createNS("tspan")).textContent=b[P],m.setAttribute("x",0),m.setAttribute("y",l),m.style.display="inherit",g.appendChild(m),this.textSpans[P]||(this.textSpans[P]={span:null,glyph:null}),this.textSpans[P].span=m,l+=i.finalLineHeight;this.layerElement.appendChild(g)}for(;P<this.textSpans.length;)this.textSpans[P].span.style.display="none",P+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){var t;return this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged&&(this._sizeChanged=!1,t=this.layerElement.getBBox(),this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}),this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf)&&(this._mdf=!0)},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;for(var t,e,i,r=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l,a=s.length,n=0;n<a;n+=1)s[n].n||(t=r[n],e=this.textSpans[n].span,(i=this.textSpans[n].glyph)&&i.renderFrame(),t._mdf.m&&e.setAttribute("transform",t.m),t._mdf.o&&e.setAttribute("opacity",t.o),t._mdf.sw&&e.setAttribute("stroke-width",t.sw),t._mdf.sc&&e.setAttribute("stroke",t.sc),t._mdf.fc&&e.setAttribute("fill",t.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs,i=(this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t,createNS("clipPath")),r=createNS("rect"),s=(r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0),createElementID());i.setAttribute("id",s),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){for(var e=0,i=this.layers.length,e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e,i,r=this.elements;r[t]||99===this.layers[t].ty||(r[t]=!0,e=this.createItem(this.layers[t]),r[t]=e,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&-1!==(i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1)&&(this.elements[i]&&!0!==this.elements[i]?(r=r[i].getMatte(this.layers[t].tt),e.setMatte(r)):(this.buildItem(i),this.addPendingElement(e))))},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){for(var i,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){this.tm._placeholder?this.renderedFrame=t/this.data.sr:((t=this.tm.v)===this.data.op&&(t=this.data.op-1),this.renderedFrame=t);var e,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=t-1;0<=e;--e)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf)&&(this._mdf=!0)}},ICompElement.prototype.renderInnerContent=function(){for(var t=this.layers.length,e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){for(var e=t.length,i="_",r=0;r<e;r+=1)i+=t[r].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var i=0,r=t.transforms.length,s=e;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(t.finalTransform.reset(),i=r-1;0<=i;--i)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=s},processSequences:function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var r="__lottie_element_luma_buffer",s=null,a=null,n=null;function e(){var t,e,i;s||(t=createNS("svg"),e=createNS("filter"),i=createNS("feColorMatrix"),e.setAttribute("id",r),i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),e.appendChild(i),t.appendChild(e),t.setAttribute("id",r+"_svg"),featureSupport.svgLumaHidden&&(t.style.display="none"),n=t,document.body.appendChild(n),s=createTag("canvas"),(a=s.getContext("2d")).filter="url(#"+r+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}return{load:e,get:function(t){return s||e(),s.width=t.width,s.height=t.height,a.filter="url(#"+r+")",s}}};function createCanvas(t,e){var i;return featureSupport.offscreenCanvas?new OffscreenCanvas(t,e):((i=createTag("canvas")).width=t,i.height=e,i)}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(t){var e,i=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<i;e+=1){r=null;var r,s=t.data.ef[e].ty;(r=registeredEffects[s]?new registeredEffects[s].effect(t.effectsManager.effectElements[e],t):r)&&this.filters.push(r)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);for(var i=this.masksProperties.length,r=!1,s=0;s<i;s+=1)"n"!==this.masksProperties[s].mode&&(r=!0),this.viewData[s]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[s],3);(this.hasMasks=r)&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},CVEffects.prototype.getEffects=function(t){for(var e=this.filters.length,i=[],r=0;r<e;r+=1)this.filters[r].type===t&&i.push(this.filters[r]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,r,s=this.element.finalTransform.mat,a=this.element.canvasContext,n=this.masksProperties.length;for(a.beginPath(),t=0;t<n;t+=1)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[t].v,e=s.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(e[0],e[1]);for(var o=r._length,h=1;h<o;h+=1)i=s.applyToTriplePoints(r.o[h-1],r.i[h],r.v[h]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=s.applyToTriplePoints(r.o[h-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];for(var s,a=4,n=("rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t),i.length),o=0;o<n;o+=1)i[o].closed||(s={transforms:r.addTransformSequence(i[o].transforms),trNodes:[]},this.styledShapes.push(s),i[o].elements.push(s))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;for(var t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();e=PropertyFactory.getProp;if(this.pe=e(this,t.pe,0,0,this),t.ks.p.s?(this.px=e(this,t.ks.p.x,1,0,this),this.py=e(this,t.ks.p.y,1,0,this),this.pz=e(this,t.ks.p.z,1,0,this)):this.p=e(this,t.ks.p,1,0,this),t.ks.a&&(this.a=e(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to)for(var r=t.ks.or.k.length,s=0;s<r;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null;this.or=e(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=e(this,t.ks.rx,0,degToRads,this),this.ry=e(this,t.ks.ry,0,degToRads,this),this.rz=e(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){var t,e;1<=this.data.tt&&(this.buffers=[],t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height),this.buffers.push(e),e=assetLoader.createCanvas(t.canvas.width,t.canvas.height),this.buffers.push(e),3<=this.data.tt)&&!document._isProxy&&assetLoader.loadLumaCanvas(),this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t,e=this.globalData;e.blendMode!==this.data.bm&&(e.blendMode=this.data.bm,t=getBlendMode(this.data.bm),e.canvasContext.globalCompositeOperation=t)},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){var t;1<=this.data.tt&&(t=this.buffers[0].getContext("2d"),this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform))},exitLayer:function(){var t,e;1<=this.data.tt&&(e=(t=this.buffers[1]).getContext("2d"),this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),3<=this.data.tt&&!document._isProxy&&((e=assetLoader.getLumaCanvas(this.canvasContext.canvas)).getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(e,0,0)),this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over")},renderFrame:function(t){this.hidden||this.data.hd||(1!==this.data.td||t)&&(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode(),t=0===this.data.ty,this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame)&&(this._isFirstFrame=!1)},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i,e={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};return"fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(e.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty?(e.lc=lineCapEnum[t.lc||2],e.lj=lineJoinEnum[t.lj||2],1==t.lj&&(e.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(e.wi=r.w.v),t.d&&(i=new DashProperty(this,t.d,"canvas",this),r.d=i,r.d.k||(e.da=r.d.dashArray,e.do=r.d.dashoffset[0]))):e.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(e),r.style=e,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){t=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,s){for(var a,n,o,h,l,p=t.length-1,f=[],m=[],c=[].concat(s),d=p;0<=d;--d){if((o=this.searchProcessedElement(t[d]))?e[d]=i[o-1]:t[d]._shouldRender=r,"fl"===t[d].ty||"st"===t[d].ty||"gf"===t[d].ty||"gs"===t[d].ty)o?e[d].style.closed=!1:e[d]=this.createStyleElement(t[d],c),f.push(e[d].style);else if("gr"===t[d].ty){if(o)for(n=e[d].it.length,a=0;a<n;a+=1)e[d].prevViewData[a]=e[d].it[a];else e[d]=this.createGroupElement(t[d]);this.searchShapes(t[d].it,e[d].it,e[d].prevViewData,r,c)}else"tr"===t[d].ty?(o||(l=this.createTransformElement(t[d]),e[d]=l),c.push(e[d]),this.addTransformToStyleList(e[d])):"sh"===t[d].ty||"rc"===t[d].ty||"el"===t[d].ty||"sr"===t[d].ty?o||(e[d]=this.createShapeElement(t[d])):"tm"===t[d].ty||"rd"===t[d].ty||"pb"===t[d].ty||"zz"===t[d].ty||"op"===t[d].ty?(o?(h=e[d]).closed=!1:((h=ShapeModifiers.getModifier(t[d].ty)).init(this,t[d]),e[d]=h,this.shapeModifiers.push(h)),m.push(h)):"rp"===t[d].ty&&(o?(h=e[d]).closed=!0:(h=ShapeModifiers.getModifier(t[d].ty),(e[d]=h).init(this,t,d,e),this.shapeModifiers.push(h),r=!1),m.push(h));this.addProcessedElement(t[d],d+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),p=m.length,d=0;d<p;d+=1)m[d].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){for(var t,e,i,r,s,a,n,o,h=this.stylesList.length,l=this.globalData.renderer,p=this.globalData.canvasContext,f=0;f<h;f+=1)if(("st"!==(n=(o=this.stylesList[f]).type)&&"gs"!==n||0!==o.wi)&&o.data._shouldRender&&0!==o.coOp&&0!==this.globalData.currentGlobalAlpha){for(l.save(),s=o.elements,"st"===n||"gs"===n?(l.ctxStrokeStyle("st"===n?o.co:o.grd),l.ctxLineWidth(o.wi),l.ctxLineCap(o.lc),l.ctxLineJoin(o.lj),l.ctxMiterLimit(o.ml||0)):l.ctxFillStyle("fl"===n?o.co:o.grd),l.ctxOpacity(o.coOp),"st"!==n&&"gs"!==n&&p.beginPath(),l.ctxTransform(o.preTransforms.finalTransform.props),e=s.length,t=0;t<e;t+=1){for("st"!==n&&"gs"!==n||(p.beginPath(),o.da&&(p.setLineDash(o.da),p.lineDashOffset=o.do)),r=(a=s[t].trNodes).length,i=0;i<r;i+=1)"m"===a[i].t?p.moveTo(a[i].p[0],a[i].p[1]):"c"===a[i].t?p.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):p.closePath();"st"!==n&&"gs"!==n||(l.ctxStroke(),o.da&&p.setLineDash(this.dashResetter))}"st"!==n&&"gs"!==n&&this.globalData.renderer.ctxFill(o.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){for(var s=t,a=e.length-1;0<=a;--a)"tr"===e[a].ty?(s=i[a].transform,this.renderShapeTransform(t,s)):"sh"===e[a].ty||"el"===e[a].ty||"rc"===e[a].ty||"sr"===e[a].ty?this.renderPath(e[a],i[a]):"fl"===e[a].ty?this.renderFill(e[a],i[a],s):"st"===e[a].ty?this.renderStroke(e[a],i[a],s):"gf"===e[a].ty||"gs"===e[a].ty?this.renderGradientFill(e[a],i[a],s):"gr"===e[a].ty?this.renderShape(s,e[a].it,i[a].it):e[a].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){for(var i,r,s=t.trNodes,a=e.paths,n=a._length,o=(s.length=0,t.transforms.finalTransform),h=0;h<n;h+=1){var l=a.shapes[h];if(l&&l.v){for(r=l._length,i=1;i<r;i+=1)1===i&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[i],l.v[i])});1===r&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&r&&(s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[0],l.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender)for(var i=e.styledShapes.length,r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){for(var s,a,n,o,h=this.globalData.canvasContext,l=e.s.v,p=e.e.v,f=(o=1===t.t?h.createLinearGradient(l[0],l[1],p[0],p[1]):(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),p=Math.atan2(p[1]-l[1],p[0]-l[0]),1<=(a=e.h.v)?a=.99:a<=-1&&(a=-.99),a=s*a,n=Math.cos(p+e.a.v)*a+l[0],p=Math.sin(p+e.a.v)*a+l[1],h.createRadialGradient(n,p,0,l[0],l[1],s)),t.g.p),m=e.g.c,c=1,d=0;d<f;d+=1)e.g._hasOpacity&&e.g._collapsable&&(c=e.g.o[2*d+1]),o.addColorStop(m[4*d]/100,"rgba("+m[4*d+1]+","+m[4*d+2]+","+m[4*d+3]+","+c+")");r.grd=o}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(r.da=s.dashArray,r.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o,h=this.textProperty.currentData,l=(this.renderedLetters=createSizedArray(h.l?h.l.length:0),!1),l=(h.fc?(l=!0,this.values.fill=this.buildColor(h.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=l,!1),p=(h.sc&&(l=!0,this.values.stroke=this.buildColor(h.sc),this.values.sWidth=h.sw),this.globalData.fontManager.getFontByName(h.f)),f=h.l,m=this.mHelper,c=(this.stroke=l,this.values.fValue=h.finalSize+"px "+this.globalData.fontManager.getFontByName(h.f).fFamily,t=h.finalText.length,this.data.singleShape),d=.001*h.tr*h.finalSize,u=0,y=0,g=!0,v=0,b=0;b<t;b+=1){e=(e=this.globalData.fontManager.getCharData(h.finalText[b],p.fStyle,this.globalData.fontManager.getFontByName(h.f).fFamily))&&e.data||{},m.reset(),c&&f[b].n&&(u=-d,y=y+h.yOffset+(g?1:0),g=!1),a=(s=e.shapes?e.shapes[0].it:[]).length,m.scale(h.finalSize/100,h.finalSize/100),c&&this.applyTextPropertiesToMatrix(h,m,f[b].line,u,y);for(var x=createSizedArray(a-1),P=0,E=0;E<a;E+=1)if("sh"===s[E].ty){for(r=s[E].ks.k.i.length,n=s[E].ks.k,o=[],i=1;i<r;i+=1)1===i&&o.push(m.applyToX(n.v[0][0],n.v[0][1],0),m.applyToY(n.v[0][0],n.v[0][1],0)),o.push(m.applyToX(n.o[i-1][0],n.o[i-1][1],0),m.applyToY(n.o[i-1][0],n.o[i-1][1],0),m.applyToX(n.i[i][0],n.i[i][1],0),m.applyToY(n.i[i][0],n.i[i][1],0),m.applyToX(n.v[i][0],n.v[i][1],0),m.applyToY(n.v[i][0],n.v[i][1],0));o.push(m.applyToX(n.o[i-1][0],n.o[i-1][1],0),m.applyToY(n.o[i-1][0],n.o[i-1][1],0),m.applyToX(n.i[0][0],n.i[0][1],0),m.applyToY(n.i[0][0],n.i[0][1],0),m.applyToX(n.v[0][0],n.v[0][1],0),m.applyToY(n.v[0][0],n.v[0][1],0)),x[P]=o,P+=1}c&&(u=u+f[b].l+d),this.textSpans[v]?this.textSpans[v].elem=x:this.textSpans[v]={elem:x},v+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);for(var t,e,i,r,s,a,n,o=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l,l=h.length,p=null,f=null,m=null,c=this.globalData.renderer,d=0;d<l;d+=1)if(!h[d].n){if((s=o[d])&&(c.save(),c.ctxTransform(s.p),c.ctxOpacity(s.o)),this.fill){for(s&&s.fc?p!==s.fc&&(c.ctxFillStyle(s.fc),p=s.fc):p!==this.values.fill&&(p=this.values.fill,c.ctxFillStyle(this.values.fill)),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),c.ctxFill()}if(this.stroke){for(s&&s.sw?m!==s.sw&&(m=s.sw,c.ctxLineWidth(s.sw)):m!==this.values.sWidth&&(m=this.values.sWidth,c.ctxLineWidth(this.values.sWidth)),s&&s.sc?f!==s.sc&&(f=s.sc,c.ctxStrokeStyle(s.sc)):f!==this.values.stroke&&(f=this.values.stroke,c.ctxStrokeStyle(this.values.stroke)),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),c.ctxStroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){var t,e,i,r,s,a,n,o,h;!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height||((t=createTag("canvas")).width=this.assetData.w,t.height=this.assetData.h,e=t.getContext("2d"),i=this.img.width,r=this.img.height,a=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio,a<(s=i/r)&&"xMidYMid slice"===h||s<a&&"xMidYMid slice"!==h?n=(o=r)*a:o=(n=i)/a,e.drawImage(this.img,(i-n)/2,(r-o)/2,n,o,0,0,this.assetData.w,this.assetData.h),this.img=t)},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,r){this.canvasContext.fillRect(t,e,i,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){var e,i;this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),(e=this.animationItem.container.style).width="100%",e.height="100%",e.transformOrigin=i="0px 0px 0px",e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)):this.canvasContext=this.renderConfig.context,this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,(this.globalData.renderer=this).globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,r,s,a,n;this.reset(),t?(r=e,this.canvasContext.canvas.width=i=t,this.canvasContext.canvas.height=r):(r=this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")?(t=(e=this.renderConfig.preserveAspectRatio.split(" "))[1]||"meet",s=(e=e[0]||"xMidYMid").substr(0,4),e=e.substr(4),(a=i/r)<(n=this.transformCanvas.w/this.transformCanvas.h)&&"meet"===t||n<a&&"slice"===t?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===s&&(n<a&&"meet"===t||a<n&&"slice"===t)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===s&&(n<a&&"meet"===t||a<n&&"slice"===t)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===e&&(a<n&&"meet"===t||n<a&&"slice"===t)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===e&&(a<n&&"meet"===t||n<a&&"slice"===t)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0):("none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0),this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");for(var t=(this.layers?this.layers.length:0)-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,e=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=e-1;0<=i;--i)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=e-1;0<=i;--i)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99===this.layers[t].ty||(e=this.createItem(this.layers[t],this,this.globalData),(i[t]=e).initExpressions())},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){for(var t=2*this._length,e=0,e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){--this.cArrPos;for(var e,i=this.stack[this.cArrPos],r=i.transform,s=this.cTr.props,a=0;a<16;a+=1)s[a]=r[a];t&&(this.nativeContext.restore(),e=this.stack[this.cArrPos+1],this.appliedFillStyle=e.fillStyle,this.appliedStrokeStyle=e.strokeStyle,this.appliedLineWidth=e.lineWidth,this.appliedLineCap=e.lineCap,this.appliedLineJoin=e.lineJoin,this.appliedMiterLimit=e.miterLimit),this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();for(var e=this.cTr.props,i=(this._length<=this.cArrPos&&this.duplicate(),this.stack[this.cArrPos]),r=0;r<16;r+=1)i.transform[r]=e[r];this.cArrPos+=1;t=this.stack[this.cArrPos];t.opacity=i.opacity,t.fillStyle=i.fillStyle,t.strokeStyle=i.strokeStyle,t.lineWidth=i.lineWidth,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);t=this.cTr,this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props),t=t.props;this.nativeContext.setTransform(t[0],t[1],t[4],t[5],t[12],t[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;this.stack[this.cArrPos].opacity!==(e*=t<0?0:t)&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();for(var e=this.layers.length-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){for(var t=this.layers.length-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t,e=this.transformedElement?this.transformedElement.style:{};this.finalTransform._matMdf&&(t=this.finalTransform.mat.toCSS(),e.transform=t,e.webkitTransform=t),this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t,e;this.baseElement.style.fontSize=0,this.data.hasMask?(this.layerElement.appendChild(this.shapesContainer),t=this.svgElement):(t=createNS("svg"),e=this.comp.data||this.globalData.compSize,t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)),this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,s,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(i=0;i<l-1;i+=1)r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[i+1]),n=this.getTransformedPoint(h,o.v[i+1]),this.checkBounds(r,s,a,n,e);o.c&&(r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(r,s,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,s){this.getBoundsOfCurve(t,e,i,r);t=this.shapeBoundingBox;s.x=bmMin(t.left,s.x),s.xMax=bmMax(t.right,s.xMax),s.y=bmMin(t.top,s.y),s.yMax=bmMax(t.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,r){for(var s,a,n,o,h=[[t[0],r[0]],[t[1],r[1]]],l=0;l<2;++l)a=6*t[l]-12*e[l]+6*i[l],s=-3*t[l]+9*e[l]-9*i[l]+3*r[l],o=3*e[l]-3*t[l],a|=0,o|=0,0==(s|=0)&&0==a||(0==s?0<(n=-o/a)&&n<1&&h[l].push(this.calculateF(n,t,e,i,r,l)):0<=(n=a*a-4*o*s)&&(0<(o=(-a+bmSqrt(n))/(2*s))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l)),0<(o=(-a-bmSqrt(n))/(2*s)))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l)));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var s=t.keyframes[r].s;i<s&&(i=s)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){var t,e;this._renderShapeFrame(),this.hidden||!this._isFirstFrame&&!this._mdf||((e=this.tempBoundingBox).x=t=999999,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,!this.currentBoxContains(e)&&(t=!1,this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),t=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),t=!0),t||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y)&&(this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.shapeCont.style,e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=e,t.webkitTransform=e))},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){var t;this.isMasked=this.checkMasks(),this.isMasked?(this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH),t=createNS("g"),this.maskedElement.appendChild(t),this.innerElem=t):(this.renderType="html",this.innerElem=this.layerElement),this.checkParenting()},HTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o=this.textProperty.currentData,h=(this.renderedLetters=createSizedArray(o.l?o.l.length:0),this.innerElem.style),l=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)",p=(h.fill=l,h.color=l,o.sc&&(h.stroke=this.buildColor(o.sc),h.strokeWidth=o.sw+"px"),this.globalData.fontManager.getFontByName(o.f)),f=(this.globalData.fontManager.chars||(h.fontSize=o.finalSize+"px",h.lineHeight=o.finalSize+"px",p.fClass?this.innerElem.className=p.fClass:(h.fontFamily=p.fFamily,l=o.fWeight,t=o.fStyle,h.fontStyle=t,h.fontWeight=l)),o.l),m=f.length,c=this.mHelper,d=0,u=0;u<m;u+=1)this.globalData.fontManager.chars?(this.textPaths[d]?e=this.textPaths[d]:((e=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),e.setAttribute("stroke-linejoin",lineJoinEnum[2]),e.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?r=(i=this.textSpans[d]).children[0]:((i=createTag("div")).style.lineHeight=0,(r=createNS("svg")).appendChild(e),styleDiv(i)))):this.isMasked?e=this.textPaths[d]||createNS("text"):this.textSpans[d]?(i=this.textSpans[d],e=this.textPaths[d]):(styleDiv(i=createTag("span")),styleDiv(e=createTag("span")),i.appendChild(e)),this.globalData.fontManager.chars?(a=(a=this.globalData.fontManager.getCharData(o.finalText[u],p.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily))?a.data:null,c.reset(),a&&a.shapes&&a.shapes.length&&(s=a.shapes[0].it,c.scale(o.finalSize/100,o.finalSize/100),s=this.createPathShape(c,s),e.setAttribute("d",s)),this.isMasked?this.innerElem.appendChild(e):(this.innerElem.appendChild(i),a&&a.shapes?(document.body.appendChild(r),s=r.getBBox(),r.setAttribute("width",s.width+2),r.setAttribute("height",s.height+2),r.setAttribute("viewBox",s.x-1+" "+(s.y-1)+" "+(s.width+2)+" "+(s.height+2)),a=r.style,n="translate("+(s.x-1)+"px,"+(s.y-1)+"px)",a.transform=n,a.webkitTransform=n,f[u].yOffset=s.y-1):(r.setAttribute("width",1),r.setAttribute("height",1)),i.appendChild(r))):(e.textContent=f[u].val,e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(e):(this.innerElem.appendChild(i),a=e.style,n="translate3d(0,"+-o.finalSize/1.2+"px,0)",a.transform=n,a.webkitTransform=n)),this.isMasked?this.textSpans[d]=e:this.textSpans[d]=i,this.textSpans[d].style.display="block",this.textPaths[d]=e,d+=1;for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style,s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)",t.transform=s,t.webkitTransform=s)}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){for(var e,i,r,s,a=0,n=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l,h=o.length,l=0;l<h;l+=1)o[l].n?a+=1:(i=this.textSpans[l],r=this.textPaths[l],e=n[a],a+=1,e._mdf.m&&(this.isMasked?i.setAttribute("transform",e.m):(i.style.webkitTransform=e.m,i.style.transform=e.m)),i.style.opacity=e.o,e.sw&&e._mdf.sw&&r.setAttribute("stroke-width",e.sw),e.sc&&e._mdf.sc&&r.setAttribute("stroke",e.sc),e.fc&&e._mdf.fc&&(r.setAttribute("fill",e.fc),r.style.color=e.fc));this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)&&(s=this.innerElem.getBBox(),this.currentBBox.w!==s.width&&(this.currentBBox.w=s.width,this.svgElement.setAttribute("width",s.width)),this.currentBBox.h!==s.height&&(this.currentBBox.h=s.height,this.svgElement.setAttribute("height",s.height)),this.currentBBox.w===s.width+2&&this.currentBBox.h===s.height+2&&this.currentBBox.x===s.x-1&&this.currentBBox.y===s.y-1||(this.currentBBox.w=s.width+2,this.currentBBox.h=s.height+2,this.currentBBox.x=s.x-1,this.currentBBox.y=s.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=s,t.webkitTransform=s))}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){for(var t,e,i,r,s,a=this.comp.threeDElements.length,n=0;n<a;n+=1)"3d"===(s=this.comp.threeDElements[n]).type&&(t=s.perspectiveElem.style,s=s.container.style,e=this.pe.v+"px",i="0px 0px 0px",r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",t.perspective=e,t.webkitPerspective=e,s.transformOrigin=i,s.mozTransformOrigin=i,s.webkitTransformOrigin=i,t.transform=r,t.webkitTransform=r)},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(h=this.hierarchy.length,l=0;l<h;l+=1)t=this.hierarchy[l].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(l=h=this.hierarchy.length-1;0<=l;--l){var e=this.hierarchy[l].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.a.v[2])}this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a&&(r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]],i=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),r=[r[0]/i,r[1]/i,r[2]/i],i=Math.sqrt(r[2]*r[2]+r[0]*r[0]),i=Math.atan2(r[1],i),r=Math.atan2(r[0],-r[2]),this.mat.rotateY(r).rotateX(-i)),this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var i,r,s=!this._prevMat.equals(this.mat);if((s||this.pe._mdf)&&this.comp.threeDElements){for(var a,n,o,h=this.comp.threeDElements.length,l=0;l<h;l+=1)"3d"===(o=this.comp.threeDElements[l]).type&&(s&&(a=this.mat.toCSS(),(n=o.container.style).transform=a,n.webkitTransform=a),this.pe._mdf)&&((n=o.perspectiveElem.style).perspective=this.pe.v+"px",n.webkitPerspective=this.pe.v+"px");this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(t,e);else if(this.threeDElements)this.addTo3dContainer(t,e);else{for(var r,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],r=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||r),a+=1;r?i.ddd&&this.supports3d||this.layerElement.insertBefore(t,r):i.ddd&&this.supports3d||this.layerElement.appendChild(t)}}},HybridRendererBase.prototype.createShape=function(t){return new(this.supports3d?HShapeElement:SVGShapeElement)(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return new(this.supports3d?HTextElement:SVGTextLottieElement)(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return new(this.supports3d?HImageElement:IImageElement)(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return new(this.supports3d?HSolidElement:ISolidElement)(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r=createTag("div"),s=(styleDiv(r),createTag("div")),a=(styleDiv(s),"3d"===e&&((a=r.style).width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px",a.webkitTransformOrigin=i="50% 50%",a.mozTransformOrigin=i,a.transformOrigin=i,(a=s.style).transform=i="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",a.webkitTransform=i),r.appendChild(s),{container:s,perspectiveElem:r,startPos:t,endPos:t,type:e});return this.threeDElements.push(a),a},HybridRendererBase.prototype.build3dContainers=function(){for(var t,e=this.layers.length,i="",r=0;r<e;r+=1)this.layers[r].ddd&&3!==this.layers[r].ty?(t="3d"!==i?this.createThreeDContainer(r,i="3d"):t).endPos=Math.max(t.endPos,r):(t="2d"!==i?this.createThreeDContainer(r,i="2d"):t).endPos=Math.max(t.endPos,r);for(r=(e=this.threeDElements.length)-1;0<=r;--r)this.resizerElem.appendChild(this.threeDElements[r].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var s,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[i].container.insertBefore(t,s):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style,i=(r.width=t.w+"px",r.height=t.h+"px",styleDiv(this.resizerElem=e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden",createNS("svg")),e=(i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i),createNS("defs"));i.appendChild(e),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=e,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,r=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,r=r/s<this.globalData.compSize.w/this.globalData.compSize.h?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,0),s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else for(var t=this.globalData.compSize.w,e=this.globalData.compSize.h,i=this.threeDElements.length,r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",s.perspective=s.webkitPerspective}},HybridRendererBase.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=createTag("div"),s=0;s<i;s+=1)t[s].xt&&((e=this.createComp(t[s],r,this.globalData.comp,null)).initExpressions(),this.globalData.projectInterface.registerComposition(e))},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)};var CompExpressionInterface=function(r){function t(t){for(var e=0,i=r.layers.length;e<i;){if(r.layers[e].nm===t||r.layers[e].ind===t)return r.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(t,"_name",{value:r.data.nm}),(t.layer=t).pixelAspect=1,t.height=r.data.h||r.globalData.compSize.h,t.width=r.data.w||r.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/r.globalData.frameRate,t.displayStartTime=0,t.numLayers=r.layers.length,t};function _typeof$2(t){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function seedRandom(n,o){var h,l=this,p=256,f=6,m="random",c=o.pow(p,f),d=o.pow(2,52),u=2*d,y=p-1;function g(t){var e,i=t.length,n=this,r=0,s=n.i=n.j=0,a=n.S=[];for(i||(t=[i++]);r<p;)a[r]=r++;for(r=0;r<p;r++)a[r]=a[s=y&s+t[r%i]+(e=a[r])],a[s]=e;n.g=function(t){for(var e,i=0,r=n.i,s=n.j,a=n.S;t--;)e=a[r=y&r+1],i=i*p+a[y&(a[r]=a[s=y&s+e])+(a[s]=e)];return n.i=r,n.j=s,i}}function v(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function b(t,e){for(var i,r=t+"",s=0;s<r.length;)e[y&s]=y&(i^=19*e[y&s])+r.charCodeAt(s++);return x(e)}function x(t){return String.fromCharCode.apply(0,t)}o["seed"+m]=function(t,e,i){function r(){for(var t=a.g(f),e=c,i=0;t<d;)t=(t+i)*p,e*=p,i=a.g(1);for(;u<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e}var s=[],t=b(function t(e,i){var r,s=[],a=_typeof$2(e);if(i&&"object"==a)for(r in e)try{s.push(t(e[r],i-1))}catch(t){}return s.length?s:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,x(n)]:null===t?function(){try{return h?x(h.randomBytes(p)):(e=new Uint8Array(p),(l.crypto||l.msCrypto).getRandomValues(e),x(e))}catch(t){var e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,x(n)]}}():t,3),s),a=new g(s);return r.int32=function(){return 0|a.g(4)},r.quick=function(){return a.g(4)/4294967296},r.double=r,b(x(a.S),n),(e.pass||i||function(t,e,i,r){return r&&(r.S&&v(r,a),t.state=function(){return v(a,{})}),i?(o[m]=t,e):t})(r,t,"global"in e?e.global:this==o,e.state)},b(o.random(),n)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){for(var i=t.length,r=[],s=0;s<i;s+=1)r[s]=-t[s];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e)||"string"===i||"string"===r)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]+e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e))return(t="string"===i?parseInt(t,10):t)-(e="string"===r?parseInt(e,10):e);if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]-e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}function mul(t,e){var i,r,s,a=_typeof$1(t),n=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,s,a=_typeof$1(t),n=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return(t="string"==typeof t?parseInt(t,10):t)%(e="string"==typeof e?parseInt(e,10):e)}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){var r;return i<e&&(r=i,i=e,e=r),Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return Math.abs(t-(e=e||0));for(var i=Math.min(t.length,(e=e||helperLengthArray).length),r=0,s=0;s<i;s+=1)r+=Math.pow(e[s]-t[s],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i=t[0],r=t[1],s=t[2],a=Math.max(i,r,s),n=Math.min(i,r,s),o=(a+n)/2;if(a===n)l=e=0;else{var h=a-n,l=.5<o?h/(2-a-n):h/(a+n);switch(a){case i:e=(r-s)/h+(r<s?6:0);break;case r:e=(s-i)/h+2;break;case s:e=(i-r)/h+4}e/=6}return[e,l,o,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,s=t[0],a=t[1],n=t[2];return 0===a?i=r=e=n:(e=hue2rgb(a=2*n-(n=n<.5?n*(1+a):n+a-n*a),n,s+1/3),i=hue2rgb(a,n,s),r=hue2rgb(a,n,s-1/3)),[e,i,r,t[3]]}function linear(t,e,i,r,s){var a;if(void 0!==r&&void 0!==s||(r=e,s=i,e=0,i=1),i<e&&(a=i,i=e,e=a),t<=e)return r;if(i<=t)return s;var n=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*n;for(var o=r.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=r[l]+(s[l]-r[l])*n;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){for(var i=e.length,r=(t=t||createTypedArray("float32",i),createTypedArray("float32",i)),s=BMMath.random(),a=0;a<i;a+=1)r[a]=t[a]+s*(e[a]-t[a]);return r}return(t=void 0===t?0:t)+BMMath.random()*(e-t)}function createPath(t,e,i,r){for(var s,a,n=t.length,o=shapePool.newElement(),h=(o.setPathData(!!r,n),[0,0]),l=0;l<n;l+=1)s=e&&e[l]?e[l]:h,a=i&&i[l]?i[l]:h,o.setTripleAt(t[l][0],t[l][1],a[0]+t[l][0],a[1]+t[l][1],s[0]+t[l][0],s[1]+t[l][1],l,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property,inPoint=(thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0,elem.data.ip/elem.comp.globalData.frameRate),outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw||0,height=elem.data.sh||0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){for(var i=this.pv.length||1,r=createTypedArray("float32",i),s=Math.floor(5*time),a=0,n=0;a<s;){for(n=0;n<i;n+=1)r[n]+=-e+2*e*BMMath.random();a+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",i);if(1<i){for(n=0;n<i;n+=1)l[n]=this.pv[n]+r[n]+(-e+2*e*BMMath.random())*h;return l}return this.pv+r[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){e=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],t=Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2]))/degToRads;return[-Math.atan2(e[1],e[2])/degToRads,t,0]}function easeOut(t,e,i,r,s){return applyEase(easeOutBez,t,e,i,r,s)}function easeIn(t,e,i,r,s){return applyEase(easeInBez,t,e,i,r,s)}function ease(t,e,i,r,s){return applyEase(easeInOutBez,t,e,i,r,s)}function applyEase(t,e,i,r,s,a){void 0===s?(s=i,a=r):e=(e-i)/(r-i),1<e?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){for(var o=s.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=(a[l]-s[l])*n+s[l];return h}return(a-s)*n+s}function nearestKey(t){var e,i,r,s=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<s-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){r=(t-data.k[e].t>data.k[e+1].t-t?(i=e+2,data.k[e+1]):(i=e+1,data.k[e])).t;break}}-1===i&&(i=e+1,r=data.k[e].t)}else r=i=0;var a={};return a.index=i,a.time=r/elem.comp.globalData.frameRate,a}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);for(var e={time:data.k[--t].t/elem.comp.globalData.frameRate,value:[]},i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e,r=i.length,s=0;s<r;s+=1)e[s]=i[s],e.value[s]=i[s];return e}function framesToTime(t,e){return t/(e=e||elem.comp.globalData.frameRate)}function timeToFrames(t,e){return(t=t||0===t?t:time)*(e=e||elem.comp.globalData.frameRate)}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),!transform&&(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform)&&(anchorPoint=transform.anchorPoint),4===elemType&&(content=content||thisLayer("ADBE Root Vectors Group")),effect=effect||thisLayer(4),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={};return t.initExpressions=function(t){var i=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){if(0===--i){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}});return function(e){for(var i=createSizedArray(e.viewData.length),r=e.viewData.length,s=0;s<r;s+=1)i[s]=new t(e.viewData[s],e.masksProperties[s]);return function(t){for(s=0;s<r;){if(e.masksProperties[s].nm===t)return i[s];s+=1}return null}}}(),ExpressionPropertyInterface=function(){var p={pv:0,v:0,mult:1},f={pv:[0,0,0],v:[0,0,0],mult:1};function m(r,s,a){Object.defineProperty(r,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),r.numKeys=s.keyframes?s.keyframes.length:0,r.key=function(t){var e,i;return r.numKeys?(e="",e="s"in s.keyframes[t-1]?s.keyframes[t-1].s:"e"in s.keyframes[t-2]?s.keyframes[t-2].e:s.keyframes[t-2].s,(i="unidimensional"===a?new Number(e):Object.assign({},e)).time=s.keyframes[t-1].t/s.elem.comp.globalData.frameRate,i.value="unidimensional"===a?e[0]:e,i):0},r.valueAtTime=s.getValueAtTime,r.speedAtTime=s.getSpeedAtTime,r.velocityAtTime=s.getVelocityAtTime,r.propertyGroup=s.propertyGroup}function c(){return p}return function(t){var e,i,r,s,a,n,o,h,l;return t?"unidimensional"===t.propType?(i=1/(e=(e=t)&&"pv"in e?e:p).mult,r=e.pv*i,(s=new Number(r)).value=r,m(s,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*i,s.value!==r&&((s=new Number(r)).value=r,s[0]=r,m(s,e,"unidimensional")),s}):(n=1/(a=(a=t)&&"pv"in a?a:f).mult,o=a.data&&a.data.l||a.pv.length,h=createTypedArray("float32",o),l=createTypedArray("float32",o),h.value=l,m(h,a,"multidimensional"),function(){a.k&&a.getValue();for(var t=0;t<o;t+=1)l[t]=a.v[t]*n,h[t]=l[t];return h}):c}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,r,s,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[i(),r(),s?s():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function s(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function a(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function n(t,e){e=this.getMatrix(e);return this.applyPoint(e,t)}function o(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function h(t,e){e=this.getMatrix(e);return this.invertPoint(e,t)}function l(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.applyToPointArray(e[0],e[1],e[2]||0)}function p(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}function f(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}function m(){return[1,1,1,1]}return function(e){function i(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return i.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return r;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return i.effect;case"ADBE Text Properties":return i.textInterface;default:return null}}i.getMatrix=s,i.invertPoint=p,i.applyPoint=l,i.toWorld=n,i.toWorldVec=a,i.fromWorld=h,i.fromWorldVec=o,i.toComp=n,i.fromComp=f,i.sampleImage=m,i.sourceRectAtTime=e.sourceRectAtTime.bind(e);var r,t=getDescriptor(r=TransformExpressionInterface((i._elem=e).finalTransform.mProp),"anchorPoint");return Object.defineProperties(i,{hasParent:{get:function(){return e.hierarchy.length}},parent:{get:function(){return e.hierarchy[0].layerInterface}},rotation:getDescriptor(r,"rotation"),scale:getDescriptor(r,"scale"),position:getDescriptor(r,"position"),opacity:getDescriptor(r,"opacity"),anchorPoint:t,anchor_point:t,transform:{get:function(){return r}},active:{get:function(){return e.isInRange}}}),i.startTime=e.data.st,i.index=e.data.ind,i.source=e.data.refId,i.height=0===e.data.ty?e.data.h:100,i.width=0===e.data.ty?e.data.w:100,i.inPoint=e.data.ip/e.comp.globalData.frameRate,i.outPoint=e.data.op/e.comp.globalData.frameRate,i._name=e.data.nm,i.registerMaskInterface=function(t){i.mask=new MaskManagerInterface(t,e)},i.registerEffectsInterface=function(t){i.effect=t},i}}(),propertyGroupFactory=function(e,i){return function(t){return(t=void 0===t?1:t)<=0?e:i(t-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){function p(t,e,i,r){var s=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):s()}}return{createEffectsInterface:function(t,e){if(t.effectsManager){var i,r=[],s=t.data.ef,a=t.effectsManager.effectElements.length;for(i=0;i<a;i+=1)r.push(function t(s,e,i,r){function a(t){for(var e=s.ef,i=0,r=e.length;i<r;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?o[i]:o[i]();i+=1}throw new Error}var n=propertyGroupFactory(a,i);var o=[];var h;var l=s.ef.length;for(h=0;h<l;h+=1)5===s.ef[h].ty?o.push(t(s.ef[h],e.effectElements[h],e.effectElements[h].propertyGroup,r)):o.push(p(e.effectElements[h],s.ef[h].ty,r,n));"ADBE Color Control"===s.mn&&Object.defineProperty(a,"color",{get:function(){return o[0]()}});Object.defineProperties(a,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:n}});a.enabled=0!==s.en;a.active=a.enabled;return a}(s[i],t.effectsManager.effectElements[i],e,t));var n=t.data.ef||[],o=function(t){for(i=0,a=n.length;i<a;){if(t===n[i].nm||t===n[i].mn||t===n[i].ix)return r[i];i+=1}return null};return Object.defineProperty(o,"numProperties",{get:function(){return n.length}}),o}return null}}}(),ShapePathInterface=function(t,e,i){var r=e.sh;function s(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?s.path:null}e=propertyGroupFactory(s,i);return r.setGroupProperty(PropertyInterface("Path",e)),Object.defineProperties(s,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),s},ShapeExpressionInterface=function(){function n(t,e,i){for(var r=[],s=t?t.length:0,a=0;a<s;a+=1)"gr"===t[a].ty?r.push(function(t,e,i){function r(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}}r.propertyGroup=propertyGroupFactory(r,i);i=function(t,e,i){function r(t){for(var e=0,i=s.length;e<i;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}return"number"==typeof t?s[t-1]:null}r.propertyGroup=propertyGroupFactory(r,i),s=n(t.it,e.it,r.propertyGroup),r.numProperties=s.length;var s,i=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.transform=i,r.propertyIndex=t.cix,r._name=t.nm,r}(t,e,r.propertyGroup),e=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.content=i,r.transform=e,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}(t[a],e[a],i)):"fl"===t[a].ty?r.push(function(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}(t[a],e[a],i)):"st"===t[a].ty?r.push(function(e,i,t){var r,t=propertyGroupFactory(o,t),s=propertyGroupFactory(void 0,t);var a=e.d?e.d.length:0,n={};for(r=0;r<a;r+=1)!function(t){Object.defineProperty(n,e.d[t].nm,{get:ExpressionPropertyInterface(i.d.dataProps[t].p)})}(r),i.d.dataProps[r].p.setGroupProperty(s);function o(t){return"Color"===t||"color"===t?o.color:"Opacity"===t||"opacity"===t?o.opacity:"Stroke Width"===t||"stroke width"===t?o.strokeWidth:null}return Object.defineProperties(o,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},strokeWidth:{get:ExpressionPropertyInterface(i.w)},dash:{get:function(){return n}},_name:{value:e.nm},mn:{value:e.mn}}),i.c.setGroupProperty(PropertyInterface("Color",t)),i.o.setGroupProperty(PropertyInterface("Opacity",t)),i.w.setGroupProperty(PropertyInterface("Stroke Width",t)),o}(t[a],e[a],i)):"tm"===t[a].ty?r.push(function(e,t,i){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var s=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",s)),t.e.setGroupProperty(PropertyInterface("End",s)),t.o.setGroupProperty(PropertyInterface("Offset",s)),r.propertyIndex=e.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"tr"!==t[a].ty&&("el"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}i=propertyGroupFactory(r,i),r.propertyIndex=e.ix,t="tm"===t.sh.ty?t.sh.prop:t.sh;return t.s.setGroupProperty(PropertyInterface("Size",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(t.s)},position:{get:ExpressionPropertyInterface(t.p)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sr"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;r.propertyIndex=e.ix,t.or.setGroupProperty(PropertyInterface("Outer Radius",i)),t.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),t.pt.setGroupProperty(PropertyInterface("Points",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(t.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),t.is.setGroupProperty(PropertyInterface("Inner Roundness",i)));return Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},rotation:{get:ExpressionPropertyInterface(t.r)},points:{get:ExpressionPropertyInterface(t.pt)},outerRadius:{get:ExpressionPropertyInterface(t.or)},outerRoundness:{get:ExpressionPropertyInterface(t.os)},innerRadius:{get:ExpressionPropertyInterface(t.ir)},innerRoundness:{get:ExpressionPropertyInterface(t.is)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sh"===t[a].ty?r.push(ShapePathInterface(t[a],e[a],i)):"rc"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,t.p.setGroupProperty(PropertyInterface("Position",i)),t.s.setGroupProperty(PropertyInterface("Size",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},roundness:{get:ExpressionPropertyInterface(t.r)},size:{get:ExpressionPropertyInterface(t.s)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rd"===t[a].ty?r.push(function(e,t,i){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(t.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rp"===t[a].ty?r.push(function(e,t,i){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.c.setGroupProperty(PropertyInterface("Copies",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(t.c)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"gf"===t[a].ty?r.push(function(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}(t[a],e[a],i)):r.push((t[a],e[a],function(){return null})));return r}function o(e,t,i){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var s=propertyGroupFactory(r,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",s)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=i,r}return function(t,e,r){var s;function i(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:s[t-1];for(var e=0,i=s.length;e<i;){if(s[e]._name===t)return s[e];e+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return r}),s=n(t,e,i.propertyGroup),i.numProperties=s.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var i;function r(t){return"ADBE Text Document"!==t?null:r.sourceText}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return i&&t===i.value||((i=new String(t)).value=t||new String(t),Object.defineProperty(i,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),i}}),r};function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var FootageInterface=function(){function i(t){function e(t){return"Outline"===t?e.outlineInterface():null}function i(t){var e;return a[t]?"object"===_typeof(a=a[s=t])?i:a:-1!==(e=t.indexOf(s))?(t=parseInt(t.substr(e+s.length),10),"object"===_typeof(a=a[t])?i:a):""}var r,s,a;return e._name="Outline",e.outlineInterface=(s="",a=(r=t).getFootageData(),function(){return s="",a=r.getFootageData(),i}),e}return function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=i(t),e}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){for(var s=0;s<e.length;s+=1)r+=Math.pow(i[s]-e[s],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(e.length)for(var r=createTypedArray("float32",e.length),s=0;s<e.length;s+=1)r[s]=(i[s]-e[s])/-.001;else r=(i-e)/-.001;return r},getValueAtTime:function(t){return(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function n(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(i?s=p-(r=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),r=p-(s=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-s)/r)%2!=0)return this.getValueAtTime((r-(h-s)%r+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(s/this.comp.globalData.frameRate,0),m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0),d=Math.floor((h-s)/r);if(this.pv.length){for(n=(o=new Array(f.length)).length,a=0;a<n;a+=1)o[a]=(m[a]-f[a])*d+c[a];return o}return(m-f)*d+c}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(h-p)/.001*(u-y)}}return this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0)}function o(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(p<=h)return this.pv;if(i?s=p+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):r=(s=l[e=!e||e>l.length-1?l.length-1:e].t)-p,"pingpong"===t){if(Math.floor((p-h)/r)%2==0)return this.getValueAtTime(((p-h)%r+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),c=this.getValueAtTime((r-(p-h)%r+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/r)+1;if(this.pv.length){for(n=(o=new Array(f.length)).length,a=0;a<n;a+=1)o[a]=c[a]-(m[a]-f[a])*d;return o}return c-(m-f)*d}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*(p-h)/.001;return o}return u+(u-y)*(p-h)/.001}}return this.getValueAtTime((r-((p-h)%r+p))/this.comp.globalData.frameRate,0)}function h(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;for(var i,r=this.comp.renderedFrame/this.comp.globalData.frameRate,s=r-t,a=1<e?(r+t-s)/(e-1):1,n=0,o=0,h=this.pv.length?createTypedArray("float32",this.pv.length):0;n<e;){if(i=this.getValueAtTime(s+n*a),this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]+=i[o];else h+=i;n+=1}if(this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]/=e;else h/=e;return h}var r=TransformPropertyFactory.getTransformProperty,l=(TransformPropertyFactory.getTransformProperty=function(t,e,i){t=r(t,e,i);return t.dynamicProperties.length?t.getValueAtTime=function(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e,i,r,s,a=this._transformCachingAtTime.v;return a.cloneFromProps(this.pre.props),this.appliedTransformations<1&&(i=this.a.getValueAtTime(t),a.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)),this.appliedTransformations<2&&(i=this.s.getValueAtTime(t),a.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)),this.sk&&this.appliedTransformations<3&&(i=this.sk.getValueAtTime(t),e=this.sa.getValueAtTime(t),a.skewFromAxis(-i*this.sk.mult,e*this.sa.mult)),this.r&&this.appliedTransformations<4?(i=this.r.getValueAtTime(t),a.rotate(-i*this.r.mult)):!this.r&&this.appliedTransformations<4&&(e=this.rz.getValueAtTime(t),i=this.ry.getValueAtTime(t),r=this.rx.getValueAtTime(t),s=this.or.getValueAtTime(t),a.rotateZ(-e*this.rz.mult).rotateY(i*this.ry.mult).rotateX(r*this.rx.mult).rotateZ(-s[2]*this.or.mult).rotateY(s[1]*this.or.mult).rotateX(s[0]*this.or.mult)),this.data.p&&this.data.p.s?(e=this.px.getValueAtTime(t),i=this.py.getValueAtTime(t),this.data.p.z?(r=this.pz.getValueAtTime(t),a.translate(e*this.px.mult,i*this.py.mult,-r*this.pz.mult)):a.translate(e*this.px.mult,i*this.py.mult,0)):(s=this.p.getValueAtTime(t),a.translate(s[0]*this.p.mult,s[1]*this.p.mult,-s[2]*this.p.mult)),a}.bind(t):t.getValueAtTime=function(){return this.v.clone(new Matrix)}.bind(t),t.setGroupProperty=expressionHelpers.setGroupProperty,t},PropertyFactory.getProp);PropertyFactory.getProp=function(t,e,i,r,s){var r=l(t,e,i,r,s),a=(r.kf?r.getValueAtTime=expressionHelpers.getValueAtTime.bind(r):r.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r.loopOut=n,r.loopIn=o,r.smooth=h,r.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(r),r.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(r),r.numKeys=1===e.a?e.k.length:0,r.propertyIndex=e.ix,0);return 0!==i&&(a=createTypedArray("float32",(1===e.a?e.k[0].s:e.k).length)),r._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:a},expressionHelpers.searchExpressions(t,e,r),r.k&&s.addDynamicProperty(r),r};var t=ShapePropertyFactory.getConstructorFunction(),e=ShapePropertyFactory.getKeyframedConstructorFunction();function i(){}i.prototype={vertices:function(t,e){this.k&&this.getValue();for(var i=this.v,r=(i=void 0!==e?this.getValueAtTime(e,0):i)._length,s=i[t],a=i.v,n=createSizedArray(r),o=0;o<r;o+=1)n[o]="i"===t||"o"===t?[s[o][0]-a[o][0],s[o][1]-a[o][1]]:[s[o][0],s[o][1]];return n},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){for(var i=this.v,e=(void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i)),this._segmentsLength),r=e.lengths,s=e.totalLength*t,a=0,n=r.length,o=0;a<n;){if(o+r[a].addedLength>s){var h=a,l=i.c&&a===n-1?0:a+1,p=(s-o)/r[a].addedLength,f=bez.getPointInSegment(i.v[h],i.v[l],i.o[h],i.i[l],p,r[a]);break}o+=r[a].addedLength,a+=1}return f=f||(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),t=this.pointOnPath(t+.001,e),e=t[0]-r[0],t=t[1]-r[1],r=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return 0===r?[0,0]:"tangent"===i?[e/r,t/r]:[-t/r,e/r]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([i],t),extendPrototype([i],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},e.prototype.initiateExpression=ExpressionManager.initiateExpression;var a=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,s){r=a(t,e,i,r,s);return r.propertyIndex=e.ix,r.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,r):4===i&&expressionHelpers.searchExpressions(t,e.ks,r),r.k&&t.addDynamicProperty(r),r}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i,e=this.calculateExpression(e);return t.t!==e?(this.copyData(i={},t),i.t=e.toString(),i.__complete=!1,i):t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,r,s=createNS("feMerge");for(s.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),s.appendChild(i),s.appendChild(i);return s}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,i,r,s){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values",linearFilterValue+" 1 0"),(this.linearFilter=e).setAttribute("result",r+"_tint_1"),t.appendChild(e),(e=createNS("feColorMatrix")).setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",r+"_tint_2"),t.appendChild(e),this.matrixFilter=e,e=this.createMergeNode(r,[s,r+"_tint_1",r+"_tint_2"]);t.appendChild(e)}function SVGFillFilter(t,e,i,r){this.filterManager=e;e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",r),t.appendChild(e),this.matrixFilter=e}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(e),e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",r),this.matrixFilter=e,r=createNS("feFuncR"),r.setAttribute("type","table"),e.appendChild(r),this.feFuncR=r,r=createNS("feFuncG"),r.setAttribute("type","table"),e.appendChild(r),this.feFuncG=r,r=createNS("feFuncB");r.setAttribute("type","table"),e.appendChild(r),this.feFuncB=r,t.appendChild(e)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var e=this.filterManager.effectElements,s=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,i,r,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a,n=(t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e,createNS("feGaussianBlur")),a=(n.setAttribute("in","SourceAlpha"),n.setAttribute("result",r+"_drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n),createNS("feOffset")),e=(a.setAttribute("dx","25"),a.setAttribute("dy","0"),a.setAttribute("in",r+"_drop_shadow_1"),a.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=a,t.appendChild(a),createNS("feFlood")),n=(e.setAttribute("flood-color","#00ff00"),e.setAttribute("flood-opacity","1"),e.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=e,t.appendChild(e),createNS("feComposite")),a=(n.setAttribute("in",r+"_drop_shadow_3"),n.setAttribute("in2",r+"_drop_shadow_2"),n.setAttribute("operator","in"),n.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(n),this.createMergeNode(r,[r+"_drop_shadow_4",s]));t.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100,this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",e[0]-t[0]+" 0 0 0 "+t[0]+" "+(e[1]-t[1])+" 0 0 0 "+t[1]+" "+(e[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0"))},SVGFillFilter.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[2].p.v,e=this.filterManager.effectElements[6].p.v,this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+e+" 0"))},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID(),o=(a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a),createNS("g"));for(o.setAttribute("mask","url("+getLocationHref()+"#"+n+")");s[0];)o.appendChild(s[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();for(var e,i,r=this.paths.length,s=0;s<r;s+=1)if(-1!==this.paths[s].m&&(a=this.elem.maskManager.viewData[this.paths[s].m],e=this.paths[s].p,(t||this.filterManager._mdf||a.prop._mdf)&&e.setAttribute("d",a.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){for(var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),n=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=e.getTotalLength(),h="0 0 0 "+o*a+" ",l=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(o*(n-a)/l),f=0;f<p;f+=1)h+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";h+="0 "+10*o+" 0 0"}else h="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;e.setAttribute("stroke-dasharray",h)}(t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),1!==this.filterManager.effectElements[10].p.v&&2!==this.filterManager.effectElements[10].p.v||(t||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*i[0])+","+bmFloor(255*i[1])+","+bmFloor(255*i[2])+")"))},SVGTritoneFilter.prototype.renderFrame=function(t){var e,i,r,s;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=(s=this.filterManager.effectElements[2].p.v)[0]+" "+e[0]+" "+t[0],r=s[1]+" "+e[1]+" "+t[1],s=s[2]+" "+e[2]+" "+t[2],this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",s))},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){t=createNS(t);return t.setAttribute("type","table"),e.appendChild(t),t},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,s){for(var a,n=0,o=Math.min(t,e),h=Math.max(t,e),l=Array.call(null,{length:256}),p=0,f=s-r,m=e-t;n<=256;)a=(a=n/256)<=o?m<0?s:r:h<=a?m<0?r:s:r+f*Math.pow((a-t)/m,1/i),l[p]=a,p+=1,n+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(i=this.filterManager.effectElements,this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA)&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),(t||this.filterManager.effectElements[0].p._mdf)&&(i=this.filterManager.effectElements[0].p.v,this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))),(t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=i*Math.cos(t),i=i*Math.sin(t),this.feOffset.setAttribute("dx",e),this.feOffset.setAttribute("dy",i))};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;e=createNS("feGaussianBlur");e.setAttribute("result",r),t.appendChild(e),this.feGaussianBlur=e}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var r,s=i.children,a=0,n=s.length;a<n&&s[a]!==t.layerElement;)a+=1;a<=n-2&&(r=s[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),r?i.insertBefore(o,r):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){var i,r,s,a;this.findSymbol(e)||(i=createElementID(),(r=createNS("mask")).setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e),(a=t.globalData.defs).appendChild(r),(s=createNS("symbol")).setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),a.appendChild(s),(a=createNS("use")).setAttribute("href","#"+i),r.appendChild(a),e.data.hd=!1,e.show()),t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=.3*this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,this.feGaussianBlur.setAttribute("stdDeviation",(3==e?0:t)+" "+(2==e?0:t)),e=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate",this.feGaussianBlur.setAttribute("edgeMode",e))},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){var e,i,r,s,a,n,o;this._opMdf=!1,this._mdf=!1,(t||this.effectsManager._mdf)&&(e=(t=this.effectsManager.effectElements)[0].p.v,i=t[1].p.v,s=1===t[2].p.v,r=t[3].p.v,s=s?r:t[4].p.v,a=t[5].p.v,n=t[6].p.v,o=t[7].p.v,this.matrix.reset(),this.matrix.translate(-e[0],-e[1],e[2]),this.matrix.scale(.01*s,.01*r,1),this.matrix.rotate(-o*degToRads),this.matrix.skewFromAxis(-a*degToRads,(n+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v)&&(this.opacity=t[8].p.v,this._opMdf=!0)},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function $(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N(t){return"string"==typeof t}function f(t){return"function"==typeof t}function J(t){return"number"==typeof t}function s(t){return void 0===t}function C(t){return"object"==typeof t}function E(t){return!1!==t}function o(){return"undefined"!=typeof window}function K(t){return f(t)||N(t)}function i(t){return(Zt=Ut(t,a))&&d}function tt(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function et(t,e){return!e&&console.warn(t)}function m(t,e){return t&&(a[t]=e)&&Zt&&(Zt[t]=e)||a}function g(){return 0}function rt(t){var e,r,i=t[0];if(C(i)||f(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=Xe.length;r--&&!Xe[r].targetTest(i););e=Xe[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new er(t[r],e)))||t.splice(r,1);return t}function it(t){return t._gsap||rt(R(t))[0]._gsap}function v(t,e,r){return(r=t[e])&&f(r)?t[e]():s(r)&&t.getAttribute&&t.getAttribute(e)||r}function p(t,e){return(t=t.split(",")).forEach(e)||t}function F(t){return Math.round(1e5*t)/1e5||0}function A(t){return Math.round(1e7*t)/1e7||0}function nt(t,e){var r=e.charAt(0),e=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+e:"-"===r?t-e:"*"===r?t*e:t/e}function st(){var t,e,r=Le.length,i=Le.slice(0);for(Ie={},t=Le.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function w(t){return!!(t._initted||t._startAt||t.add)}function y(t,e,r,i){Le.length&&!L&&st(),t.render(e,r,i||!!(L&&e<0&&w(t))),Le.length&&!L&&st()}function T(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Pe).length<2?e:N(t)?t.trim():t}function x(t){return t}function z(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function b(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=C(e[r])?b(t[r]||(t[r]={}),e[r]):e[r]);return t}function at(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function ot(t){var i,e=t.parent||I,r=t.keyframes?(i=P(t.keyframes),function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}):z;if(E(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function O(t,e,r,i,n){void 0===r&&(r="_first");var s,a=t[i=void 0===i?"_last":i];if(n)for(s=e[n];a&&a[n]>s;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t}function M(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function ut(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0}function k(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function ht(t,e,r,i){t._startAt&&(L?t._startAt.revert(Ee):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function lt(t){return t._repeat?qt(t._tTime,t=t.duration()+t._rDelay)*t:0}function ft(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function ct(t){t._end=A(t._start+(t._tDur/Math.abs(t._ts||t._rts||Y)||0))}function pt(t,e){var r=t._dp;r&&r.smoothChildTiming&&t._ts&&(t._start=A(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ct(t),r._dirty||k(r,t))}function _t(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=ft(t.rawTime(),e),!e._dur||Vt(0,e.totalDuration(),r)-e._tTime>Y)&&e.render(r,!0),k(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-Y}}function D(t,e,r,i){return e.parent&&ut(e),e._start=A((J(r)?r:r||t!==I?h(t,r,e):t._time)+e._delay),e._end=A(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),O(t,e,"_first","_last",t._sort?"_start":0),jt(e)||(t._recent=e),i||_t(t,e),t._ts<0&&pt(t,t._tTime),t}function dt(t,e){(a.ScrollTrigger||tt("scrollTrigger",e))&&a.ScrollTrigger.create(e,t)}function mt(t,e,r,i,n){return or(t,e,n),!t._initted||!r&&t._pt&&!L&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Jt!==_.frame&&(Le.push(t),t._lazy=[n,i])}function gt(t,e,r,i){var n=t._repeat,e=A(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=e/t._dur),t._dur=e,t._tDur=n?n<0?1e10:A(e*(n+1)+t._rDelay*n):e,0<s&&!i&&pt(t,t._tTime=t._tDur*s),t.parent&&ct(t),r||k(t.parent,t),t}function vt(t){return t instanceof V?k(t):gt(t,t._dur)}function yt(t,e,r){var i,n,s=J(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=E(n.vars.inherit)&&n.parent;o.immediateRender=E(i.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Q(e[0],o,e[1+a])}function Tt(t,e){return t||0===t?e(t):e}function U(t,e){return N(t)&&(e=Re.exec(t))?e[1]:""}function wt(t,e){return t&&C(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&C(t[0]))&&!t.nodeType&&t!==l}function xt(r){return r=R(r)[0]||et("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return R(t,e.querySelectorAll?e:e===r?et("Invalid scope")||Ht.createElement("div"):r)}}function bt(t){return t.sort(function(){return.5-Math.random()})}function Ot(t){var p,_,d,m,g,v,y,T,w;return f(t)?t:(p=C(t)?t:{each:t},_=Je(p.ease),d=p.from||0,m=parseFloat(p.base)||0,g={},t=0<d&&d<1,v=isNaN(d)||t,y=p.axis,N(w=T=d)?T=w={center:.5,edges:.5,end:1}[d]||0:!t&&v&&(T=d[0],w=d[1]),function(t,e,r){var i,n,s,a,o,u,h,l,f=(r||p).length,c=g[f];if(!c){if(!(l="auto"===p.grid?0:(p.grid||[1,B])[1])){for(u=-B;u<(u=r[l++].getBoundingClientRect().left)&&l<f;);l<f&&l--}for(c=g[f]=[],i=v?Math.min(l,f)*T-.5:d%l,n=l===B?0:v?f*w/l-.5:d/l|0,h=B,o=u=0;o<f;o++)a=o%l-i,s=n-(o/l|0),c[o]=a=y?Math.abs("y"===y?s:a):ye(a*a+s*s),u<a&&(u=a),a<h&&(h=a);"random"===d&&bt(c),c.max=u-h,c.min=h,c.v=f=(parseFloat(p.amount)||parseFloat(p.each)*(f<l?f-1:y?"y"===y?f/l:l:Math.max(l,f/l))||0)*("edges"===d?-1:1),c.b=f<0?m-f:m,c.u=U(p.amount||p.each)||0,_=_&&f<0?$e(_):_}return f=(c[t]-c.min)/c.max||0,A(c.b+(_?_(f):f)*c.v)+c.u})}function Mt(r){var i=Math.pow(10,((r+"").split(".")[1]||"").length);return function(t){var e=A(Math.round(parseFloat(t)/r)*r*i);return(e-e%1)/i+(J(t)?0:U(t))}}function kt(u,t){var h,l,e=P(u);return!e&&C(u)&&(h=e=u.radius||B,u.values?(u=R(u.values),(l=!J(u[0]))&&(h*=h)):u=Mt(u.increment)),Tt(t,e?f(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),s=B,a=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<s&&(s=e,a=o);return a=!h||s<=h?u[a]:t,l||a===t||J(t)?a:a+U(t)}:Mt(u))}function Ct(t,e,r,i){return Tt(P(t)?!e:!0===r?!!(r=0):!i,function(){return P(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function At(e,r,t){return Tt(t,function(t){return e[~~r(t)]})}function Dt(t){return t.replace(be,function(t){var e=t.indexOf("[")+1,t=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(Oe);return Ct(e?t:+t[0],e?0:+t[1],+t[2]||1e-5)})}function Pt(t,e,r){var i,n,s,a=t.labels,o=B;for(i in a)(n=a[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(s=i,o=n);return s}function Rt(t){return ut(t),t.scrollTrigger&&t.scrollTrigger.kill(!!L),t.progress()<1&&X(t,"onInterrupt"),t}function St(t){if(t)if(t=!t.name&&t.default||t,o()||t.headless){var e=t.name,r=f(t),r=e&&!r&&t.init?function(){this._props=[]}:t,i={init:g,render:Or,add:cr,kill:kr,modifier:Mr,rawVars:0},n={targetTest:0,get:0,getSetter:Tr,aliases:{},register:0};if(Ge(),t!==r){if(j[e])return;z(r,z(at(t,i),n)),Ut(r.prototype,Ut(i,at(t,n))),j[r.prop=e]=r,t.targetTest&&(Xe.push(r),Fe[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}m(e,r),t.register&&t.register(d,r,W)}else je.push(t)}function Et(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*c+.5|0}function zt(t,e,r){var i,n,s,a,o,u,h,l=t?J(t)?[t>>16,t>>8&c,t&c]:0:Ve.black;if(!l){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ve[t])l=Ve[t];else if("#"===t.charAt(0)){if(9===(t=t.length<6?"#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(s=t.charAt(3))+s+(5===t.length?t.charAt(4)+t.charAt(4):""):t).length)return[(l=parseInt(t.substr(1,6),16))>>16,l>>8&c,l&c,parseInt(t.substr(7),16)/255];l=[(t=parseInt(t.substr(1),16))>>16,t>>8&c,t&c]}else if("hsl"===t.substr(0,3))if(l=h=t.match(Me),e){if(~t.indexOf("="))return l=t.match(ke),r&&l.length<4&&(l[3]=1),l}else a=+l[0]%360/360,o=l[1]/100,i=2*(u=l[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<l.length&&(l[3]*=1),l[0]=Et(a+1/3,i,n),l[1]=Et(a,i,n),l[2]=Et(a-1/3,i,n);else l=t.match(Me)||Ve.transparent;l=l.map(Number)}return e&&!h&&(i=l[0]/c,n=l[1]/c,s=l[2]/c,u=((t=Math.max(i,n,s))+(e=Math.min(i,n,s)))/2,t===e?a=o=0:(h=t-e,o=.5<u?h/(2-t-e):h/(t+e),a=t===i?(n-s)/h+(n<s?6:0):t===n?(s-i)/h+2:(i-n)/h+4,a*=60),l[0]=~~(a+.5),l[1]=~~(100*o+.5),l[2]=~~(100*u+.5)),r&&l.length<4&&(l[3]=1),l}function Ft(t){var e=[],r=[],i=-1;return t.split(Qe).forEach(function(t){t=t.match(Ce)||[];e.push.apply(e,t),r.push(i+=t.length+1)}),e.c=r,e}function Lt(t,e,r){var i,n,s,a,o="",u=(t+o).match(Qe),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=zt(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Ft(t),(i=r.c).join(o)!==s.c.join(o)))for(a=(n=t.replace(Qe,"1").split(Ce)).length-1;l<a;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!n)for(a=(n=t.split(Qe)).length-1;l<a;l++)o+=n[l]+u[l];return o+n[a]}function It(t){var e=t.join(" ");if(Qe.lastIndex=0,Qe.test(e))return e=We.test(e),t[1]=Lt(t[1],e),t[0]=Lt(t[0],e,Ft(t[1])),!0}function Bt(t,e,r,i){var n,s={easeIn:e,easeOut:r=void 0===r?function(t){return 1-e(1-t)}:r,easeInOut:i=void 0===i?function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2}:i};p(t,function(t){for(var e in S[t]=a[t]=s,S[n=t.toLowerCase()]=r,s)S[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=S[t+"."+e]=s[e]})}function Yt(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Xt(r,t,e){function i(t){return 1===t?1:n*Math.pow(2,-10*t)*we((t-s)*a)+1}var n=1<=t?t:1,s=(a=(e||(r?.3:.45))/(t<1?t:1))/me*(Math.asin(1/n)||0),e="out"===r?i:"in"===r?function(t){return 1-i(1-t)}:Yt(i),a=me/a;return e.config=function(t,e){return Xt(r,t,e)},e}function Nt(e,r){function i(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Yt(i);return t.config=function(t){return Nt(e,t)},t}function Ut(t,e){for(var r in e)t[r]=e[r];return t}function qt(t,e){return e=Math.floor(t=A(t/e)),t&&e===t?e-1:e}function jt(t){return"isFromStart"===(t=t.data)||"isStart"===t}function h(t,e,r){var i,n,s,a=t.labels,o=t._recent||Ue,u=t.duration()>=B?o.endTime(!1):t._dur;return N(e)&&(isNaN(e)||e in a)?(n=e.charAt(0),s="%"===e.substr(-1),i=e.indexOf("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?o._start:o.endTime(0<=o._repeat))+(parseFloat(e.substr(1))||0)*(s?(i<0?o:r).totalDuration()/100:1)):i<0?(e in a||(a[e]=u),a[e]):(n=parseFloat(e.charAt(i-1)+e.substr(i+1)),s&&r&&(n=n/100*(P(r)?r[0]:r).totalDuration()),1<i?h(t,e.substr(0,i-1),r)+n:u+n)):null==e?u:+e}function Vt(t,e,r){return r<t?t:e<r?e:r}function Qt(e,t,r,i,n){var s=t-e,a=i-r;return Tt(n,function(t){return r+((t-e)/s*a||0)})}var Wt,L,u,I,l,Gt,Ht,Zt,$t,Jt,Kt,te,ee,re,ie,ne,se,ae,oe,ue,he,le,fe,ce,pe,_e,q={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},de={duration:.5,overwrite:!1,delay:0},B=1e8,Y=1/B,me=2*Math.PI,ge=me/4,ve=0,ye=Math.sqrt,Te=Math.cos,we=Math.sin,xe="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},P=Array.isArray,be=/random\([^)]+\)/g,Oe=/,\s*/g,Me=/(?:-?\.?\d|\.)+/gi,ke=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ce=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ae=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,De=/[+-]=-?[.\d]+/,Pe=/[^,'"\[\]\s]+/gi,Re=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,a={},Se={suppressEvents:!0,isStart:!0,kill:!1},Ee={suppressEvents:!0,kill:!1},ze={suppressEvents:!0},Fe={},Le=[],Ie={},j={},Be={},Ye=30,Xe=[],Ne="",Ue={_start:0,endTime:g,totalDuration:g},qe=[].slice,R=function(t,e,r){return u&&!e&&u.selector?u.selector(t):!N(t)||r||!Gt&&Ge()?P(t)?(i=r,void 0===n&&(n=[]),t.forEach(function(t){return N(t)&&!i||wt(t,1)?n.push.apply(n,R(t)):n.push(t)})||n):wt(t)?qe.call(t,0):t?[t]:[]:qe.call((e||Ht).querySelectorAll(t),0);var i,n},X=function(t,e,r){var i=t.vars,n=i[e],s=u,a=t._ctx;if(n)return e=i[e+"Params"],i=i.callbackScope||t,r&&Le.length&&st(),a&&(u=a),t=e?n.apply(i,e):n.call(i),u=s,t},je=[],c=255,Ve={aqua:[0,c,c],lime:[0,c,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,c],navy:[0,0,128],white:[c,c,c],olive:[128,128,0],yellow:[c,c,0],orange:[c,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[c,0,0],pink:[c,192,203],cyan:[0,c,c],transparent:[c,c,c,0]},Qe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ve)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),We=/hsl[a]?\(/,_=(ae=Date.now,oe=500,ue=33,he=ae(),le=he,ce=fe=1e3/240,ie={time:0,frame:0,tick:function(){Ke(!0)},deltaRatio:function(t){return ne/(1e3/(t||60))},wake:function(){$t&&(!Gt&&o()&&(l=Gt=window,Ht=l.document||{},a.gsap=d,(l.gsapVersions||(l.gsapVersions=[])).push(d.version),i(Zt||l.GreenSockGlobals||!l.gsap&&l||{}),je.forEach(St)),re="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,te&&ie.sleep(),ee=re||function(t){return setTimeout(t,ce-1e3*ie.time+1|0)},Kt=1,Ke(2))},sleep:function(){(re?cancelAnimationFrame:clearTimeout)(te),Kt=0,ee=g},lagSmoothing:function(t,e){oe=t||1/0,ue=Math.min(e||33,oe)},fps:function(t){fe=1e3/(t||240),ce=1e3*ie.time+fe},add:function(n,t,e){var s=t?function(t,e,r,i){n(t,e,r,i),ie.remove(s)}:n;return ie.remove(n),pe[e?"unshift":"push"](s),Ge(),s},remove:function(t,e){~(e=pe.indexOf(t))&&pe.splice(e,1)&&e<=se&&se--},_listeners:pe=[]}),Ge=function(){return!Kt&&_.wake()},S={},He=/^[\d.\-M][\d.\-,\s]/,Ze=/["']/g,$e=function(e){return function(t){return 1-e(1-t)}},Je=function(t,e){return t&&(f(t)?t:S[t]||(s=((t=t)+"").split("("),(a=S[s[0]])&&1<s.length&&a.config?a.config.apply(null,~t.indexOf("{")?[function(t){for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[a]=isNaN(i)?i.replace(Ze,"").trim():+i,a=r.substr(e+1).trim();return n}(s[1])]:(r=(s=t).indexOf("(")+1,i=s.indexOf(")"),n=s.indexOf("(",r),s.substring(r,~n&&n<i?s.indexOf(")",i+1):i).split(",").map(T))):S._CE&&He.test(t)?S._CE("",t):a))||e;var r,i,n,s,a};function Ke(t){var e,r,i,n=ae()-le,s=!0===t;if((oe<n||n<0)&&(he+=n-ue),(0<(n=(r=(le+=n)-he)-ce)||s)&&(i=++ie.frame,ne=r-1e3*ie.time,ie.time=r/=1e3,ce+=n+(fe<=n?4:fe-n),e=1),s||(te=ee(Ke)),e)for(se=0;se<pe.length;se++)pe[se](r,ne,i,t)}function tr(t){return t<1/2.75?_e*t*t:t<.7272727272727273?_e*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?_e*(t-=2.25/2.75)*t+.9375:_e*Math.pow(t-2.625/2.75,2)+.984375}p("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Bt(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),S.Linear.easeNone=S.none=S.Linear.easeIn,Bt("Elastic",Xt("in"),Xt("out"),Xt()),_e=7.5625,Bt("Bounce",function(t){return 1-tr(1-t)},tr),Bt("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Bt("Circ",function(t){return-(ye(1-t*t)-1)}),Bt("Sine",function(t){return 1===t?1:1-Te(t*ge)}),Bt("Back",Nt("in"),Nt("out"),Nt()),S.SteppedEase=S.steps=a.SteppedEase={config:function(t,e){var r=1/(t=void 0===t?1:t),i=t+(e?0:1),n=e?1:0;return function(t){return((i*Vt(0,.99999999,t)|0)+n)*r}}},de.ease=S["quad.out"],p("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Ne+=t+","+t+"Params,"});var er=function(t,e){this.id=ve++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:v,this.set=e?e.getSetter:Tr},rr=((e=ir.prototype).delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,gt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ge(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(pt(this,t),r._dp&&!r.parent&&_t(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&D(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Y||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),y(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+lt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):0<=this.rawTime()&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+lt(this),e):this.duration()?Math.min(1,this._time/this._dur):0<this.rawTime()?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?qt(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return this._rts===-Y?0:this._rts;if(this._rts===t)return this;for(var r=this.parent&&this._ts?ft(this.parent._time,this):this._tTime,t=(this._rts=+t||0,this._ts=this._ps||t===-Y?0:this._rts,this.totalTime(Vt(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),ct(this),this),i=t.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return t},e.paused=function(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ge(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Y&&(this._tTime-=Y)))),this):this._ps},e.startTime=function(t){return arguments.length?(this._start=A(t),!(t=this.parent||this._dp)||!t._sort&&this.parent||D(t,this,this._start-this._delay),this):this._start},e.endTime=function(t){return this._start+(E(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ft(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){var e=L;return L=t=void 0===t?ze:t,w(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),L=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,vt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){var e;return arguments.length?(e=this._time,this._rDelay=t,vt(this),e?this.time(e):this):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(h(this,t),E(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,E(e)),this._dur||(this._zTime=-Y),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-Y:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Y,this},e.isActive=function(){var t=this.parent||this._dp,e=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(t=t.rawTime(!0))>=e&&t<this.endTime(!0)-Y))},e.eventCallback=function(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(i){var n=this,s=n._prom;return new Promise(function(e){function t(){var t=n.then;n.then=null,s&&s(),f(r)&&(r=r(n))&&(r.then||r===n)&&(n.then=t),e(r),n.then=t}var r=f(i)?i:x;n._initted&&1===n.totalProgress()&&0<=n._ts||!n._tTime&&n._ts<0?t():n._prom=t})},e.kill=function(){Rt(this)},ir);function ir(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,gt(this,+t.duration,1,1),this.data=t.data,u&&(this._ctx=u).data.push(this),Kt||_.wake()}z(rr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Y,_prom:0,_ps:!1,_rts:1});r(sr,nr=rr),(e=sr.prototype).to=function(t,e,r){return yt(0,arguments,this),this},e.from=function(t,e,r){return yt(1,arguments,this),this},e.fromTo=function(t,e,r,i){return yt(2,arguments,this),this},e.set=function(t,e,r){return e.duration=0,e.parent=this,ot(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Q(t,e,h(this,r),1),this},e.call=function(t,e,r){return D(this,Q.delayedCall(0,t,e),r)},e.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new Q(t,r,h(this,n)),this},e.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,ot(r).immediateRender=E(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},e.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,ot(i).immediateRender=E(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},e.render=function(t,e,r){var i,n,s,a,o,u,h,l,f,c,p=this._time,_=this._dirty?this.totalDuration():this._tDur,d=this._dur,m=t<=0?0:A(t),g=this._zTime<0!=t<0&&(this._initted||!d);if((m=this!==I&&_<m&&0<=t?_:m)!==this._tTime||r||g){if(p!==this._time&&d&&(m+=this._time-p,t+=this._time-p),i=m,l=this._start,o=!(h=this._ts),g&&(d||(p=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(g=this._yoyo,a=d+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,r);if(i=A(m%a),m===_?(s=this._repeat,i=d):((s=~~(f=A(m/a)))&&s===f&&(i=d,s--),d<i&&(i=d)),f=qt(this._tTime,a),g&&1&s&&(i=d-i,c=1),s!==(f=!p&&this._tTime&&f!==s&&this._tTime-f*a-this._dur<=0?s:f)&&!this._lock){var v=g&&1&f,g=v===(g&&1&s),p=(v=s<f?!v:v)?0:m%d?d:m;if(this._lock=1,this.render(p||(c?0:A(s*a)),e,!d)._lock=0,this._tTime=m,!e&&this.parent&&X(this,"onRepeat"),this.vars.repeatRefresh&&!c&&(this.invalidate()._lock=1,f=s),p&&p!==this._time||o!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(d=this._dur,_=this._tDur,g&&(this._lock=2,this.render(p=v?d:-1e-4,!0),this.vars.repeatRefresh)&&!c&&this.invalidate(),this._lock=0,!this._ts&&!o)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=function(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,A(p),A(i)))&&(m-=i-(i=u._start)),this._tTime=m,this._time=i,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,p=0),!p&&m&&d&&!e&&!f&&(X(this,"onStart"),this._tTime!==m))return this;if(p<=i&&0<=t)for(y=this._first;y;){if(n=y._next,(y._act||i>=y._start)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0<y._ts?(i-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(i-y._start)*y._ts,e,r),i!==this._time||!this._ts&&!o){u=0,n&&(m+=this._zTime=-Y);break}}y=n}else for(var y=this._last,T=t<0?t:i;y;){if(n=y._prev,(y._act||T<=y._end)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0<y._ts?(T-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(T-y._start)*y._ts,e,r||L&&w(y)),i!==this._time||!this._ts&&!o){u=0,n&&(m+=this._zTime=T?-Y:Y);break}}y=n}if(u&&!e&&(this.pause(),u.render(p<=i?0:-Y)._zTime=p<=i?1:-1,this._ts))return this._start=l,ct(this),this.render(t,e,r);this._onUpdate&&!e&&X(this,"onUpdate",!0),!(m===_&&this._tTime>=this.totalDuration()||!m&&p)||l!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||(!t&&d||!(m===_&&0<this._ts||!m&&this._ts<0)||ut(this,1),e)||t<0&&!p||!m&&!p&&_||(X(this,m===_&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom)||m<_&&0<this.timeScale()||this._prom()}return this},e.add=function(t,e){var r=this;if(J(e)||(e=h(this,e,t)),!(t instanceof rr)){if(P(t))return t.forEach(function(t){return r.add(t,e)}),this;if(N(t))return this.addLabel(t,e);if(!f(t))return this;t=Q.delayedCall(0,t)}return this!==t?D(this,t,e):this},e.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-B);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof Q?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},e.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function(t){return N(t)?this.removeLabel(t):f(t)?this.killTweensOf(t):(t.parent===this&&M(this,t),t===this._recent&&(this._recent=this._last),k(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=A(_.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),nr.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function(t,e){return this.labels[t]=h(this,e),this},e.removeLabel=function(t){return delete this.labels[t],this},e.addPause=function(t,e,r){e=Q.delayedCall(0,e||g,r);return e.data="isPause",this._hasPause=1,D(this,e,h(this,t))},e.removePause=function(t){var e=this._first;for(t=h(this,t);e;)e._start===t&&"isPause"===e.data&&ut(e),e=e._next},e.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)hr!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function(t,e){for(var r,i=[],n=R(t),s=this._first,a=J(e);s;)s instanceof Q?function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}(s._targets,n)&&(a?(!hr||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},e.tweenTo=function(t,e){e=e||{};var r,i=this,n=h(i,t),s=e.startAt,a=e.onStart,o=e.onStartParams,t=e.immediateRender,u=Q.to(i,z({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||Y,onStart:function(){var t;i.pause(),r||(t=e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale()),u._dur!==t&>(u,t,0,1).render(u._time,!0,!0),r=1),a&&a.apply(u,o||[])}},e));return t?u.render(0):u},e.tweenFromTo=function(t,e,r){return this.tweenTo(e,z({startAt:{time:h(this,t)}},r))},e.recent=function(){return this._recent},e.nextLabel=function(t){return void 0===t&&(t=this._time),Pt(this,h(this,t))},e.previousLabel=function(t){return void 0===t&&(t=this._time),Pt(this,h(this,t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Y)},e.shiftChildren=function(t,e,r){void 0===r&&(r=0);var i,n=this._first,s=this.labels;for(t=A(t);n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return k(this)},e.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return nr.prototype.invalidate.call(this,t)},e.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),k(this)},e.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=B;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),o<(r=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,D(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=A(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=e;gt(s,s===I&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},sr.updateRoot=function(t){if(I._ts&&(y(I,ft(t,I)),Jt=_.frame),_.frame>=Ye){Ye+=q.autoSleep||120;var e=I._first;if((!e||!e._ts)&&q.autoSleep&&_._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||_.sleep()}}};var nr,V=sr;function sr(t,e){var r;return(r=nr.call(this,t=void 0===t?{}:t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=E(t.sortChildren),I&&D(t.parent||I,$(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&dt($(r),t.scrollTrigger),r}function ar(t,e,r,i,n,s){var a,o,u,h;if(j[t]&&!1!==(a=new j[t]).init(n,a.rawVars?e[t]:function(t,e,r,i,n){if(!C(t=f(t)?ur(t,n,e,r,i):t)||t.style&&t.nodeType||P(t)||xe(t))return N(t)?ur(t,n,e,r,i):t;var s,a={};for(s in t)a[s]=ur(t[s],n,e,r,i);return a}(e[t],i,n,s,r),r,i,s)&&(r._pt=o=new W(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==Ur))for(u=r._ptLookup[r._targets.indexOf(n)],h=a._props.length;h--;)u[a._props[h]]=o;return a}z(V.prototype,{_lock:0,_hasPause:0,_forcing:0});function or(t,e,r){var i,n,s,a,o,u,h,l,f,c,p,_,d,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,T=m.lazy,w=m.onUpdate,x=m.runBackwards,b=m.yoyoEase,O=m.keyframes,M=m.autoRevert,k=t._dur,C=t._startAt,A=t._targets,D=t.parent,P=D&&"nested"===D.data?D.vars.targets:A,R="auto"===t._overwrite&&!Wt,S=t.timeline,b=m.easeReverse||b;if(t._ease=Je(g=!S||O&&g?g:"none",de.ease),t._rEase=b&&(Je(b)||t._ease),t._from=!S&&!!m.runBackwards,t._from&&(t.ratio=1),!S||O&&!m.stagger){if(_=(l=A[0]?it(A[0]).harness:0)&&m[l.prop],i=at(m,Fe),C&&(C._zTime<0&&C.progress(1),e<0&&x&&y&&!M?C.render(-1,!0):C.revert(x&&k?Ee:Se),C._lazy=0),v){if(ut(t._startAt=Q.set(A,z({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:!C&&E(T),startAt:null,delay:0,onUpdate:w&&function(){return X(t,"onUpdate")},stagger:0},v))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L||!y&&!M)&&t._startAt.revert(Ee),y&&k&&e<=0&&r<=0)return void(e&&(t._zTime=e))}else if(x&&k&&!C)if(s=z({overwrite:!1,data:"isFromStart",lazy:(y=e?!1:y)&&!C&&E(T),immediateRender:y,stagger:0,parent:D},i),_&&(s[l.prop]=_),ut(t._startAt=Q.set(A,s)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(L?t._startAt.revert(Ee):t._startAt.render(-1,!0)),t._zTime=e,y){if(!e)return}else or(t._startAt,Y,Y);for(t._pt=t._ptCache=0,T=k&&E(T)||T&&!k,n=0;n<A.length;n++){if(h=(o=A[n])._gsap||rt(A)[n]._gsap,t._ptLookup[n]=c={},Ie[h.id]&&Le.length&&st(),p=P===A?n:P.indexOf(o),l&&!1!==(f=new l).init(o,_||i,t,p,P)&&(t._pt=a=new W(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){c[t]=a}),f.priority)&&(u=1),!l||_)for(s in i)j[s]&&(f=ar(s,i,t,p,o,P))?f.priority&&(u=1):c[s]=a=cr.call(t,o,s,"get",i[s],p,P,0,m.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),R&&t._pt&&(hr=t,I.killTweensOf(o,c,t.globalTime(e)),d=!t.parent,hr=0),t._pt&&T&&(Ie[h.id]=1)}u&&Cr(t),t._onInit&&t._onInit(t)}t._onUpdate=w,t._initted=(!t._op||t._pt)&&!d,O&&e<=0&&S.render(B,!0,!0)}function ur(t,e,r,i,n){return f(t)?t.call(e,r,i,n):N(t)&&~t.indexOf("random(")?Dt(t):t}var hr,lr,fr,cr=function(t,e,r,i,n,s,a,o,u,h){f(i)&&(i=i(n||0,t,s));var l,n=t[e],s="get"!==r?r:f(n)?u?t[e.indexOf("set")||!f(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():n,r=f(n)?u?yr:vr:gr;if(!N(i)||"="!==(i=~i.indexOf("random(")?Dt(i):i).charAt(1)||!(l=nt(s,i)+(U(s)||0))&&0!==l||(i=l),!h||s!==i||lr)return isNaN(s*i)||""===i?(n||e in t||tt(e,i),function(t,e,r,i,n,s,a){var o,u,h,l,f,c=new W(this._pt,t,e,0,1,br,null,n),p=0,_=0;for(c.b=r,c.e=i,r+="",(n=~(i+="").indexOf("random("))&&(i=Dt(i)),s&&(s(s=[r,i],t,e),r=s[0],i=s[1]),o=r.match(Ae)||[];l=Ae.exec(i);)h=l[0],l=i.substring(p,l.index),u?u=(u+1)%5:"rgba("===l.substr(-5)&&(u=1),h!==o[_++]&&(f=parseFloat(o[_-1])||0,c._pt={_next:c._pt,p:l||1===_?l:",",s:f,c:"="===h.charAt(1)?nt(f,h)-f:parseFloat(h)-f,m:u&&u<4?Math.round:0},p=Ae.lastIndex);return c.c=p<i.length?i.substring(p,i.length):"",c.fp=a,(De.test(i)||n)&&(c.e=0),this._pt=c}.call(this,t,e,s,i,r,o||q.stringFilter,u)):(l=new W(this._pt,t,e,+s||0,i-(s||0),"boolean"==typeof n?xr:wr,0,r),u&&(l.fp=u),a&&l.modifier(a,this,t),this._pt=l)},pr=Ne+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",_r={},Q=(p(pr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return _r[t]=1}),r(n,fr=rr),(e=n.prototype).render=function(t,e,r){var i,n,s,a=this._time,o=this._tDur,u=this._dur,h=t<0,l=o-Y<t&&!h?o:t<Y?0:t;if(u){if(l!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=h||this._lazy){if(_=l,p=this.timeline,this._repeat){if(c=u+this._rDelay,this._repeat<-1&&h)return this.totalTime(100*c+t,e,r);if(_=A(l%c),l===o?(g=this._repeat,_=u):(g=~~(y=A(l/c)))&&g===y?(_=u,g--):u<_&&(_=u),(n=this._yoyo&&1&g)&&(_=u-_),y=qt(this._tTime,c),_===a&&!r&&this._initted&&g===y)return this._tTime=l,this;g!==y&&this.vars.repeatRefresh&&!n&&!this._lock&&_!==c&&this._initted&&(this._lock=r=1,this.render(A(c*g),!0).invalidate()._lock=0)}if(!this._initted){if(mt(this,h?t:_,r,e,l))return this._tTime=0,this;if(!(a===this._time||r&&this.vars.repeatRefresh&&g!==y))return this;if(u!==this._dur)return this.render(t,e,r)}if(this._rEase?((c=_<a)!==this._inv&&(f=c?a:u-a,this._inv=c,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=a,this._invRecip=f?(c?-1:1)/f:0,this._invScale=c?-this.ratio:1-this.ratio,this._invEase=c?this._rEase:this._ease),this.ratio=s=this._invRatio+this._invScale*this._invEase((_-this._invTime)*this._invRecip)):this.ratio=s=this._ease(_/u),this._from&&(this.ratio=s=1-s),this._tTime=l,this._time=_,!this._act&&this._ts&&(this._act=1,this._lazy=0),!a&&l&&!e&&!y&&(X(this,"onStart"),this._tTime!==l))return this;for(i=this._pt;i;)i.r(s,i.d),i=i._next;p&&p.render(t<0?t:p._dur*p._ease(_/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(h&&ht(this,t,0,r),X(this,"onUpdate")),this._repeat&&g!==y&&this.vars.onRepeat&&!e&&this.parent&&X(this,"onRepeat"),l!==this._tDur&&l||this._tTime!==l||(h&&!this._onUpdate&&ht(this,t,0,!0),!t&&u||!(l===this._tDur&&0<this._ts||!l&&this._ts<0)||ut(this,1),e)||h&&!a||!(l||a||n)||(X(this,l===o?"onComplete":"onReverseComplete",!0),!this._prom)||l<o&&0<this.timeScale()||this._prom()}}else{var f=this;var c=t;var p=e;var _=r;var d,m,g=f.ratio,v=c<0||!c&&(!f._start&&function t(e){e=e.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||t(e))}(f)&&(f._initted||!jt(f))||(f._ts<0||f._dp._ts<0)&&!jt(f))?0:1,y=f._rDelay,u=0;if(y&&f._repeat&&(u=Vt(0,f._tDur,c),m=qt(u,y),f._yoyo&&1&m&&(v=1-v),m!==qt(f._tTime,y))&&(g=1-v,f.vars.repeatRefresh)&&f._initted&&f.invalidate(),v!==g||L||_||f._zTime===Y||!c&&f._zTime){if(f._initted||!mt(f,c,_,p,u)){for(m=f._zTime,f._zTime=c||(p?Y:0),p=p||c&&!m,f.ratio=v,f._from&&(v=1-v),f._time=0,f._tTime=u,d=f._pt;d;)d.r(v,d.d),d=d._next;c<0&&ht(f,c,0,!0),f._onUpdate&&!p&&X(f,"onUpdate"),u&&f._repeat&&!p&&f.parent&&X(f,"onRepeat"),(c>=f._tDur||c<0)&&f.ratio===v&&(v&&ut(f,1),p||L||(X(f,v?"onComplete":"onReverseComplete",!0),f._prom&&f._prom()))}}else f._zTime||(f._zTime=c)}return this},e.targets=function(){return this._targets},e.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),fr.prototype.invalidate.call(this,t)},e.resetTo=function(t,e,r,i,n){Kt||_.wake(),this._ts||this.play();var s,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||or(this,a),s=this._ease(a/this._dur),function(t,e,r,i,n,s,a,o){var u,h,l,f,c=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!c)for(c=t._ptCache[e]=[],l=t._ptLookup,f=t._targets.length;f--;){if((u=l[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return lr=1,t.vars[e]="+=0",or(t,a),lr=0,!o||et(e+" not eligible for reset. Try splitting into individual properties");c.push(u)}for(f=c.length;f--;)(u=(h=c[f])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+s*u.c:i,u.c=r-u.s,h.e&&(h.e=F(r)+U(h.e)),h.b&&(h.b=u.s+U(h.b))}(this,t,e,r,i,s,a,n)?this.resetTo(t,e,r,i,1):(pt(this,0),this.parent||O(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(t,e){if(void 0===e&&(e="all"),t||e&&"all"!==e)if(this.timeline)c=this.timeline.totalDuration(),this.timeline.killTweensOf(t,e,hr&&!0!==hr.vars.overwrite)._first||Rt(this),this.parent&&c!==this.timeline.totalDuration()&>(this,this._dur*this.timeline._tDur/c,0,1);else{var r,i,n,s,a,o,u,h=this._targets,l=t?R(t):h,f=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(h,l))return"all"===e&&(this._pt=0),Rt(this);for(r=this._op=this._op||[],"all"!==e&&(N(e)&&(a={},p(e,function(t){return a[t]=1}),e=a),e=function(t,e){var r,i,n,s,t=t[0]?it(t[0]).harness:0,a=t&&t.aliases;if(!a)return e;for(i in r=Ut({},e),a)if(i in r)for(n=(s=a[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(h,e)),u=h.length;u--;)if(~l.indexOf(h[u]))for(a in i=f[u],"all"===e?(r[u]=e,s=i,n={}):(n=r[u]=r[u]||{},s=e),s)(o=i&&i[a])&&("kill"in o.d&&!0!==o.d.kill(a)||M(this,o,"_pt"),delete i[a]),"all"!==n&&(n[a]=1);this._initted&&!this._pt&&c&&Rt(this)}else this._lazy=this._pt=0,this.parent?Rt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!L);return this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return yt(1,arguments)},n.delayedCall=function(t,e,r,i){return new n(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},n.fromTo=function(t,e,r){return yt(2,arguments)},n.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new n(t,e)},n.killTweensOf=function(t,e,r){return I.killTweensOf(t,e,r)},n);function n(t,e,r,i){var n;"number"==typeof e&&(r.duration=e,e=r,r=null);var s,a,o,u,h,l,f,c,i=(n=fr.call(this,i?e:ot(e))||this).vars,p=i.duration,_=i.delay,d=i.immediateRender,m=i.stagger,g=i.overwrite,v=i.keyframes,y=i.defaults,i=i.scrollTrigger,T=e.parent||I,w=(P(t)||xe(t)?J(t[0]):"length"in e)?[t]:R(t);if(n._targets=w.length?rt(w):et("GSAP target "+t+" not found. https://gsap.com",!q.nullTargetWarn)||[],n._ptLookup=[],n._overwrite=g,v||m||K(p)||K(_)){var x=(e=n.vars).easeReverse||e.yoyoEase;if((s=n.timeline=new V({data:"nested",defaults:y||{},targets:T&&"nested"===T.data?T.vars.targets:w})).kill(),s.parent=s._dp=$(n),s._start=0,m||K(p)||K(_)){if(u=w.length,f=m&&Ot(m),C(m))for(h in m)~pr.indexOf(h)&&((c=c||{})[h]=m[h]);for(a=0;a<u;a++)(o=at(e,_r)).stagger=0,x&&(o.easeReverse=x),c&&Ut(o,c),l=w[a],o.duration=+ur(p,$(n),a,l,w),o.delay=(+ur(_,$(n),a,l,w)||0)-n._delay,!m&&1===u&&o.delay&&(n._delay=_=o.delay,n._start+=_,o.delay=0),s.to(l,o,f?f(a,l,w):0),s._ease=S.none;s.duration()?p=_=0:n.timeline=0}else if(v){ot(z(s.vars.defaults,{ease:"none"})),s._ease=Je(v.ease||e.ease||"none");var b,O,M,k=0;if(P(v))v.forEach(function(t){return s.to(w,t,">")}),s.duration();else{for(h in o={},v)"ease"!==h&&"easeEach"!==h&&function(t,r,e,i){var n,s,a=r.ease||i||"power1.inOut";if(P(r))s=e[t]||(e[t]=[]),r.forEach(function(t,e){return s.push({t:e/(r.length-1)*100,v:t,e:a})});else for(n in r)s=e[n]||(e[n]=[]),"ease"!==n&&s.push({t:parseFloat(t),v:r[n],e:a})}(h,v[h],o,v.easeEach);for(h in o)for(b=o[h].sort(function(t,e){return t.t-e.t}),a=k=0;a<b.length;a++)(M={ease:(O=b[a]).e,duration:(O.t-(a?b[a-1].t:0))/100*p})[h]=O.v,s.to(w,M,k),k+=M.duration;s.duration()<p&&s.to({},{duration:p-s.duration()})}}p||n.duration(p=s.duration())}else n.timeline=0;return!0!==g||Wt||(hr=$(n),I.killTweensOf(w),hr=0),D(T,$(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),(d||!p&&!v&&n._start===A(T._time)&&E(d)&&function t(e){return!e||e._ts&&t(e.parent)}($(n))&&"nested"!==T.data)&&(n._tTime=-Y,n.render(Math.max(0,-_)||0)),i&&dt($(n),i),n}function dr(t,e,r){return t.setAttribute(e,r)}function mr(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}z(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),p("staggerTo,staggerFrom,staggerFromTo",function(r){Q[r]=function(){var t=new V,e=qe.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});var gr=function(t,e,r){return t[e]=r},vr=function(t,e,r){return t[e](r)},yr=function(t,e,r,i){return t[e](i.fp,r)},Tr=function(t,e){return f(t[e])?vr:s(t[e])&&t.setAttribute?dr:gr},wr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},xr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},br=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},Or=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Mr=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},kr=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?M(this,i,"_pt"):i.dep||(e=1),i=r;return!e},Cr=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},W=(Ar.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=mr,this.m=t,this.mt=r,this.tween=e},Ar);function Ar(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||wr,this.d=a||this,this.set=o||gr,this.pr=u||0,(this._next=t)&&(t._prev=this)}function Dr(t){(Sr[t]||Er).map(function(t){return t()})}function Pr(){var t=Date.now(),o=[];2<t-zr&&(Dr("matchMediaInit"),Rr.forEach(function(t){var e,r,i,n,s=t.queries,a=t.conditions;for(r in s)(e=l.matchMedia(s[r]).matches)&&(i=1),e!==a[r]&&(a[r]=e,n=1);n&&(t.revert(),i)&&o.push(t)}),Dr("matchMediaRevert"),o.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),zr=t,Dr("matchMedia"))}p(Ne+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(t){return Fe[t]=1}),a.TweenMax=a.TweenLite=Q,a.TimelineLite=a.TimelineMax=V,I=new V({sortChildren:!1,defaults:de,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),q.stringFilter=It;var Rr=[],Sr={},Er=[],zr=0,Fr=0,Lr=((e=Ir.prototype).add=function(t,i,n){function e(){var t,e=u,r=s.selector;return e&&e!==s&&e.data.push(s),n&&(s.selector=xt(n)),u=s,f(t=i.apply(s,arguments))&&s._r.push(t),u=e,s.selector=r,s.isReverted=!1,t}f(t)&&(n=i,i=t,t=f);var s=this;return s.last=e,t===f?e(s,function(t){return s.add(null,t)}):t?s[t]=e:e},e.ignore=function(t){var e=u;u=null,t(this),u=e},e.getTweens=function(){var e=[];return this.data.forEach(function(t){return t instanceof Ir?e.push.apply(e,t.getTweens()):t instanceof Q&&!(t.parent&&"nested"===t.parent.data)&&e.push(t)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(e,t){var r=this;if(e){for(var i,n=r.getTweens(),s=r.data.length;s--;)"isFlip"===(i=r.data[s]).data&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(t){return n.splice(n.indexOf(t),1)}));for(n.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(t){return t.t.revert(e)}),s=r.data.length;s--;)(i=r.data[s])instanceof V?"nested"!==i.data&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):i instanceof Q||!i.revert||i.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}else this.data.forEach(function(t){return t.kill&&t.kill()});if(this.clear(),t)for(var a=Rr.length;a--;)Rr[a].id===this.id&&Rr.splice(a,1)},e.revert=function(t){this.kill(t||{})},Ir);function Ir(t,e){this.selector=e&&xt(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Fr++,t&&this.add(t)}(e=Yr.prototype).add=function(t,e,r){C(t)||(t={matches:t});var i,n,s,a=new Lr(0,r||this.scope),o=a.conditions={};for(n in u&&!a.selector&&(a.selector=u.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t)"all"===n?s=1:(i=l.matchMedia(t[n]))&&(Rr.indexOf(a)<0&&Rr.push(a),(o[n]=i.matches)&&(s=1),i.addListener?i.addListener(Pr):i.addEventListener("change",Pr));return s&&e(a,function(t){return a.add(null,t)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})};var Br=Yr;function Yr(t){this.contexts=[],this.scope=t,u&&u.data.push(this)}var Xr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(St)},timeline:function(t){return new V(t)},getTweensOf:function(t,e){return I.getTweensOf(t,e)},getProperty:function(i,t,e,r){var n=it((i=N(i)?R(i)[0]:i)||{}).get,s=e?x:T;return"native"===e&&(e=""),i&&(t?s((j[t]&&j[t].get||n)(i,t,e,r)):function(t,e,r){return s((j[t]&&j[t].get||n)(i,t,e,r))})},quickSetter:function(r,e,i){var n,s;if(1<(r=R(r)).length)return n=r.map(function(t){return d.quickSetter(t,e,i)}),s=n.length,function(t){for(var e=s;e--;)n[e](t)};r=r[0]||{};var a=j[e],o=it(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=a?function(t){var e=new a;Ur._pt=0,e.init(r,i?t+i:t,Ur,0,[r]),e.render(1,e),Ur._pt&&Or(1,Ur)}:o.set(r,u);return a?h:function(t){return h(r,u,i?t+i:t,o,1)}},quickTo:function(t,i,e){function r(t,e,r){return n.resetTo(i,t,e,r)}var n=d.to(t,z(((t={})[i]="+=0.1",t.paused=!0,t.stagger=0,t),e||{}));return r.tween=n,r},isTweening:function(t){return 0<I.getTweensOf(t,!0).length},defaults:function(t){return t&&t.ease&&(t.ease=Je(t.ease,de.ease)),b(de,t||{})},config:function(t){return b(q,t||{})},registerEffect:function(t){var i=t.name,n=t.effect,e=t.plugins,s=t.defaults,t=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!j[t]&&!a[t]&&et(i+" effect requires "+t+" plugin.")}),Be[i]=function(t,e,r){return n(R(t),z(e||{},s),r)},t&&(V.prototype[i]=function(t,e,r){return this.add(Be[i](t,C(e)?e:(r=e)&&{},this),r)})},registerEase:function(t,e){S[t]=Je(e)},parseEase:function(t,e){return arguments.length?Je(t,e):S},getById:function(t){return I.getById(t)},exportRoot:function(t,e){var r,i,n=new V(t=void 0===t?{}:t);for(n.smoothChildTiming=E(t.smoothChildTiming),I.remove(n),n._dp=0,n._time=n._tTime=I._time,r=I._first;r;)i=r._next,!e&&!r._dur&&r instanceof Q&&r.vars.onComplete===r._targets[0]||D(n,r,r._start-r._delay),r=i;return D(I,n,0),n},context:function(t,e){return t?new Lr(t,e):u},matchMedia:function(t){return new Br(t)},matchMediaRefresh:function(){return Rr.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||Pr()},addEventListener:function(t,e){t=Sr[t]||(Sr[t]=[]);~t.indexOf(e)||t.push(e)},removeEventListener:function(t,e){t=Sr[t],e=t&&t.indexOf(e);0<=e&&t.splice(e,1)},utils:{wrap:function t(e,r,i){var n=r-e;return P(e)?At(e,t(0,e.length),r):Tt(i,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return P(e)?At(e,t(0,e.length-1),r):Tt(i,function(t){return e+(n<(t=(s+(t-e)%s)%s||0)?s-t:t)})},distribute:Ot,random:Ct,snap:kt,normalize:function(t,e,r){return Qt(t,e,0,1,r)},getUnit:U,clamp:function(e,r,t){return Tt(t,function(t){return Vt(e,r,t)})},splitColor:zt,toArray:R,selector:xt,mapRange:Qt,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(e,r){return function(t){return e(parseFloat(t))+(r||U(t))}},interpolate:function t(e,r,i,n){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,h,l,f=N(e),c={};if(!0===i&&(n=1,i=null),f)e={p:e},r={p:r};else if(P(e)&&!P(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},i=r}else n||(e=Ut(P(e)?[]:{},e));if(!u){for(a in r)cr.call(c,e,a,"get",r[a]);s=function(t){return Or(t,c)||(f?e.p:e)}}}return Tt(i,s)},shuffle:bt},install:i,effects:Be,ticker:_,updateRoot:V.updateRoot,plugins:j,globalTimeline:I,core:{PropTween:W,globals:m,Tween:Q,Timeline:V,Animation:rr,getCache:it,_removeLinkedListItem:M,reverting:function(){return L},context:function(t){return t&&u&&(u.data.push(t),t._ctx=u),u},suppressOverwrites:function(t){return Wt=t}}};function Nr(t,l){return{name:t,headless:1,rawVars:1,init:function(t,h,e){e._onInit=function(t){var e,r;if(N(h)&&(e={},p(h,function(t){return e[t]=1}),h=e),l){for(r in e={},h)e[r]=l(h[r]);h=e}var i,n,s,a=t,o=h,u=a._targets;for(i in o)for(n=u.length;n--;)(s=(s=a._ptLookup[n][i])&&s.d)&&(s._pt&&(s=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}(s,i)),s)&&s.modifier&&s.modifier(o[i],a,u[n],i)}}}}p("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Xr[t]=Q[t]}),_.add(V.updateRoot);var Ur=Xr.to({},{duration:0}),d=Xr.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],i,n,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)L?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Nr("roundProps",Mt),Nr("modifiers"),Nr("snap",kt))||Xr;function qr(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function jr(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Vr(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Qr(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Wr(t,e){t=e.s+e.c*t;e.set(e.t,e.p,~~(t+(t<0?-.5:.5))+e.u,e)}function Gr(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Hr(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Zr(t,e,r){return t.style[e]=r}function $r(t,e,r){return t.style.setProperty(e,r)}function Jr(t,e,r){return t._gsap[e]=r}function Kr(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function ti(t,e,r,i,n){t=t._gsap;t.scaleX=t.scaleY=r,t.renderTransform(n,t)}function ei(t,e,r,i,n){t=t._gsap;t[e]=r,t.renderTransform(n,t)}function ri(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in Wi&&n){if(this.tfm=this.tfm||{},"transform"===t)return tn.transform.split(",").forEach(function(t){return ri.call(r,t,e)});if(~(t=tn[t]||t).indexOf(",")?t.split(",").forEach(function(t){return r.tfm[t]=an(i,t)}):this.tfm[t]=s.x?s[t]:an(i,t),t===Z&&(this.tfm.zOrigin=s.zOrigin),0<=this.props.indexOf(H))return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Z,e,"")),t=H}(n||e)&&this.props.push(t,e,n[t])}function ii(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function ni(){for(var t,e=this.props,r=this.target,i=r.style,n=r._gsap,s=0;s<e.length;s+=3)e[s+1]?2===e[s+1]?r[e[s]](e[s+2]):r[e[s]]=e[s+2]:e[s+2]?i[e[s]]=e[s+2]:i.removeProperty("--"===e[s].substr(0,2)?e[s]:e[s].replace($i,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)n[t]=this.tfm[t];n.svg&&(n.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(s=Ai())&&s.isStart||i[H]||(ii(i),n.zOrigin&&i[Z]&&(i[Z]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}}function si(t,e){var r={target:t,props:[],revert:ni,save:ri};return t._gsap||d.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r}function ai(t,e){e=bi.createElementNS?bi.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):bi.createElement(t);return e&&e.style?e:bi.createElement(t)}function G(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace($i,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&G(t,rn(e)||e,1)||""}function oi(){"undefined"!=typeof window&&window.document&&(Oi=(bi=window.document).documentElement,ki=ai("div")||{style:{}},ai("div"),H=rn(H),Z=H+"Origin",ki.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Di=!!rn("perspective"),Ai=d.core.reverting,Mi=1)}function ui(t){var e,r=t.ownerSVGElement,r=ai("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",r.appendChild(i),Oi.appendChild(r);try{e=i.getBBox()}catch(t){}return r.removeChild(i),Oi.removeChild(r),e}function hi(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function li(e){var r,i;try{r=e.getBBox()}catch(t){r=ui(e),i=1}return!(r=r&&(r.width||r.height)||i?r:ui(e))||r.width||r.x||r.y?r:{x:+hi(e,["x","cx","x1"])||0,y:+hi(e,["y","cy","y1"])||0,width:0,height:0}}function fi(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!li(t))}function ci(t,e){var r;e&&(t=t.style,e in Wi&&e!==Z&&(e=H),t.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty("--"===r?e:e.replace($i,"-$1").toLowerCase())):t.removeAttribute(e))}function pi(t,e,r,i,n,s){e=new W(t._pt,e,r,0,1,s?Hr:Gr);(t._pt=e).b=i,e.e=n,t._props.push(r)}function _i(t,e,r,i){var n,s,a=parseFloat(r)||0,o=(r+"").trim().substr((a+"").length)||"px",u=ki.style,h=Ji.test(e),l="svg"===t.tagName.toLowerCase(),f=(l?"client":"offset")+(h?"Width":"Height"),c="px"===i,p="%"===i;return i===o||!a||nn[i]||nn[o]?a:("px"===o||c||(a=_i(t,e,r,"px")),r=t.getCTM&&fi(t),!p&&"%"!==o||!Wi[e]&&!~e.indexOf("adius")?(u[h?"width":"height"]=100+(c?o:i),l="rem"!==i&&~e.indexOf("adius")||"em"===i&&t.appendChild&&!l?t:t.parentNode,(s=(l=(l=r?(t.ownerSVGElement||{}).parentNode:l)&&l!==bi&&l.appendChild?l:bi.body)._gsap)&&p&&s.width&&h&&s.time===_.time&&!s.uncache?F(a/s.width*100):(!p||"height"!==e&&"width"!==e?(!p&&"%"!==o||sn[G(l,"display")]||(u.position=G(t,"position")),l===t&&(u.position="static"),l.appendChild(ki),n=ki[f],l.removeChild(ki),u.position="absolute"):(o=t.style[e],t.style[e]=100+i,n=t[f],o?t.style[e]=o:ci(t,e)),h&&p&&((s=it(l)).time=_.time,s.width=l[f]),F(c?n*a/100:n&&a?100/n*a:0))):(n=r?t.getBBox()[h?"width":"height"]:t[f],F(p?a/n*100:a/100*n)))}function di(t,e,r,i){var n;r&&"none"!==r||((n=(s=rn(e,t,1))&&G(t,s,1))&&n!==r?(e=s,r=n):"borderColor"===e&&(r=G(t,"borderTopColor")));var s,a,o,u,h,l,f,c,p,_=new W(this._pt,t.style,e,0,1,br),d=0,m=0;if(_.b=r,_.e=i,r+="","auto"===(i="var(--"===(i+="").substring(0,6)?G(t,i.substring(4,i.indexOf(")"))):i)&&(h=t.style[e],t.style[e]=i,i=G(t,e)||i,h?t.style[e]=h:ci(t,e)),It(s=[r,i]),i=s[1],a=(r=s[0]).match(Ce)||[],(i.match(Ce)||[]).length){for(;f=Ce.exec(i);)c=f[0],f=i.substring(d,f.index),u?u=(u+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(u=1),c!==(h=a[m++]||"")&&(o=parseFloat(h)||0,p=h.substr((o+"").length),"="===c.charAt(1)&&(c=nt(o,c)+p),l=parseFloat(c),c=c.substr((l+"").length),d=Ce.lastIndex-c.length,c||(c=c||q.units[e]||p,d===i.length&&(i+=c,_.e+=c)),p!==c&&(o=_i(t,e,h,c)||0),_._pt={_next:_._pt,p:f||1===m?f:",",s:o,c:l-o,m:u&&u<4||"zIndex"===e?Math.round:0});_.c=d<i.length?i.substring(d,i.length):""}else _.r="display"===e&&"none"===i?Hr:Gr;return De.test(i)&&(_.e=0),this._pt=_}function mi(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,s=e.t,a=s.style,o=e.u,e=s._gsap;if("all"===o||!0===o)a.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],Wi[r]&&(i=1,r="transformOrigin"===r?Z:H),ci(s,r);i&&(ci(s,H),e)&&(e.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",fn(s,1),e.uncache=1,ii(a))}}function gi(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function vi(t){t=G(t,H);return gi(t)?hn:t.substr(7).match(ke).map(F)}function yi(t,e){var r,i,n,s=t._gsap||it(t),a=t.style,o=vi(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(o=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?hn:o:(o!==hn||t.offsetParent||t===Oi||s.svg||(i=a.display,a.display="block",(s=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(n=1,r=t.nextElementSibling,Oi.appendChild(t)),o=vi(t),i?a.display=i:ci(t,"display"),n&&(r?s.insertBefore(t,r):s?s.appendChild(t):Oi.removeChild(t))),e&&6<o.length?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)}function Ti(t,e,r,i,n,s){var a,o=t._gsap,n=n||yi(t,!0),u=o.xOrigin||0,h=o.yOrigin||0,l=o.xOffset||0,f=o.yOffset||0,c=n[0],p=n[1],_=n[2],d=n[3],m=n[4],g=n[5],v=e.split(" "),y=parseFloat(v[0])||0,T=parseFloat(v[1])||0;r?n!==hn&&(n=c*d-p*_)&&(a=y*(-p/n)+T*(c/n)-(c*g-p*m)/n,y=y*(d/n)+T*(-_/n)+(_*g-d*m)/n,T=a):(y=(n=li(t)).x+(~v[0].indexOf("%")?y/100*n.width:y),T=n.y+(~(v[1]||v[0]).indexOf("%")?T/100*n.height:T)),i||!1!==i&&o.smooth?(o.xOffset=l+((m=y-u)*c+(g=T-h)*_)-m,o.yOffset=f+(m*p+g*d)-g):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=T,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[Z]="0px 0px",s&&(pi(s,o,"xOrigin",u,y),pi(s,o,"yOrigin",h,T),pi(s,o,"xOffset",l,o.xOffset),pi(s,o,"yOffset",f,o.yOffset)),t.setAttribute("data-svg-origin",y+" "+T)}function wi(t,e,r){var i=U(e);return F(parseFloat(e)+parseFloat(_i(t,"x",r+"px",i)))+i}function xi(t,e){for(var r in e)t[r]=e[r];return t}Q.version=V.version=d.version="3.15.0",$t=1,o()&&Ge();var bi,Oi,Mi,ki,Ci,Ai,Di,e=S.Power0,Pi=S.Power1,Ri=S.Power2,Si=S.Power3,Ei=S.Power4,zi=S.Linear,Fi=S.Quad,Li=S.Cubic,Ii=S.Quart,Bi=S.Quint,Yi=S.Strong,Xi=S.Elastic,Ni=S.Back,Ui=S.SteppedEase,qi=S.Bounce,ji=S.Sine,Vi=S.Expo,Qi=S.Circ,Wi={},Gi=180/Math.PI,Hi=Math.PI/180,Zi=Math.atan2,$i=/([A-Z])/g,Ji=/(left|right|width|margin|padding|x)/i,Ki=/[\s,\(]\S/,tn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},H="transform",Z=H+"Origin",en="O,Moz,ms,Ms,Webkit".split(","),rn=function(t,e,r){var i=(e||ki).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(en[n]+t in i););return n<0?null:(3===n?"ms":0<=n?en[n]:"")+t},nn={deg:1,rad:1,turn:1},sn={grid:1,flex:1},an=function(t,e,r,i){var n;return Mi||oi(),e in tn&&"transform"!==e&&~(e=tn[e]).indexOf(",")&&(e=e.split(",")[0]),Wi[e]&&"transform"!==e?(n=fn(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:cn(G(t,Z))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=un[e]&&un[e](t,e,r)||G(t,e)||v(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?_i(t,e,n,r)+r:n},on={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},un={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data)return(e=t._pt=new W(t._pt,e,r,0,0,mi)).u=i,e.pr=-10,e.tween=n,t._props.push(r),1}},hn=[1,0,0,1,0,0],ln={},fn=function(t,e){var r,i,n,s,a,o,u,h,l,f,c,p,_,d,m,g,v,y,T,w,x,b,O,M,k,C,A,D,P,R,S,E,z=t._gsap||new er(t);return"x"in z&&!e&&!z.uncache||(C=t.style,A=z.scaleX<0,D="deg",P=getComputedStyle(t),R=G(t,Z)||"0",S=r=i=s=a=o=u=h=0,E=n=1,z.svg=!(!t.getCTM||!fi(t)),P.translate&&("none"===P.translate&&"none"===P.scale&&"none"===P.rotate||(C[H]=("none"!==P.translate?"translate3d("+(P.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==P.rotate?"rotate("+P.rotate+") ":"")+("none"!==P.scale?"scale("+P.scale.split(" ").join(",")+") ":"")+("none"!==P[H]?P[H]:"")),C.scale=C.rotate=C.translate="none"),P=yi(t,z.svg),z.svg&&(v=z.uncache?(y=t.getBBox(),R=z.xOrigin-y.x+"px "+(z.yOrigin-y.y)+"px",""):!e&&t.getAttribute("data-svg-origin"),Ti(t,v||R,!!v||z.originIsAbsolute,!1!==z.smooth,P)),k=z.xOrigin||0,O=z.yOrigin||0,P!==hn&&(c=P[0],p=P[1],_=P[2],d=P[3],S=m=P[4],r=g=P[5],6===P.length?(E=Math.sqrt(c*c+p*p),n=Math.sqrt(d*d+_*_),s=c||p?Zi(p,c)*Gi:0,(u=_||d?Zi(_,d)*Gi+s:0)&&(n*=Math.abs(Math.cos(u*Hi))),z.svg&&(S-=k-(k*c+O*_),r-=O-(k*p+O*d))):(k=P[6],O=P[7],w=P[8],x=P[9],b=P[10],M=P[11],S=P[12],r=P[13],i=P[14],a=(P=Zi(k,b))*Gi,P&&(v=m*(l=Math.cos(-P))+w*(f=Math.sin(-P)),y=g*l+x*f,T=k*l+b*f,w=m*-f+w*l,x=g*-f+x*l,b=k*-f+b*l,M=O*-f+M*l,m=v,g=y,k=T),o=(P=Zi(-_,b))*Gi,P&&(l=Math.cos(-P),M=d*(f=Math.sin(-P))+M*l,c=v=c*l-w*f,p=y=p*l-x*f,_=T=_*l-b*f),s=(P=Zi(p,c))*Gi,P&&(v=c*(l=Math.cos(P))+p*(f=Math.sin(P)),y=m*l+g*f,p=p*l-c*f,g=g*l-m*f,c=v,m=y),a&&359.9<Math.abs(a)+Math.abs(s)&&(a=s=0,o=180-o),E=F(Math.sqrt(c*c+p*p+_*_)),n=F(Math.sqrt(g*g+k*k)),P=Zi(m,g),u=2e-4<Math.abs(P)?P*Gi:0,h=M?1/(M<0?-M:M):0),z.svg)&&(v=t.getAttribute("transform"),z.forceCSS=t.setAttribute("transform","")||!gi(G(t,H)),v)&&t.setAttribute("transform",v),90<Math.abs(u)&&Math.abs(u)<270&&(A?(E*=-1,u+=s<=0?180:-180,s+=s<=0?180:-180):(n*=-1,u+=u<=0?180:-180)),e=e||z.uncache,z.x=S-((z.xPercent=S&&(!e&&z.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-S)?-50:0)))?t.offsetWidth*z.xPercent/100:0)+"px",z.y=r-((z.yPercent=r&&(!e&&z.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*z.yPercent/100:0)+"px",z.z=i+"px",z.scaleX=F(E),z.scaleY=F(n),z.rotation=F(s)+D,z.rotationX=F(a)+D,z.rotationY=F(o)+D,z.skewX=u+D,z.skewY=0+D,z.transformPerspective=h+"px",(z.zOrigin=parseFloat(R.split(" ")[2])||!e&&z.zOrigin||0)&&(C[Z]=cn(R)),z.xOffset=z.yOffset=0,z.force3D=q.force3D,z.renderTransform=z.svg?vn:Di?gn:pn,z.uncache=0),z},cn=function(t){return(t=t.split(" "))[0]+" "+t[1]},pn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,gn(t,e)},_n="0deg",dn="0px",mn=") ",gn=function(t,e){var r,i,e=e||this,n=e.xPercent,s=e.yPercent,a=e.x,o=e.y,u=e.z,h=e.rotation,l=e.rotationY,f=e.rotationX,c=e.skewX,p=e.skewY,_=e.scaleX,d=e.scaleY,m=e.transformPerspective,g=e.force3D,v=e.target,e=e.zOrigin,y="",t="auto"===g&&t&&1!==t||!0===g;!e||f===_n&&l===_n||(g=parseFloat(l)*Hi,i=Math.sin(g),r=Math.cos(g),g=parseFloat(f)*Hi,a=wi(v,a,i*(i=Math.cos(g))*-e),o=wi(v,o,-Math.sin(g)*-e),u=wi(v,u,r*i*-e+e)),m!==dn&&(y+="perspective("+m+mn),(n||s)&&(y+="translate("+n+"%, "+s+"%) "),!t&&a===dn&&o===dn&&u===dn||(y+=u!==dn||t?"translate3d("+a+", "+o+", "+u+") ":"translate("+a+", "+o+mn),h!==_n&&(y+="rotate("+h+mn),l!==_n&&(y+="rotateY("+l+mn),f!==_n&&(y+="rotateX("+f+mn),c===_n&&p===_n||(y+="skew("+c+", "+p+mn),1===_&&1===d||(y+="scale("+_+", "+d+mn),v.style[H]=y||"translate(0, 0)"},vn=function(t,e){var r,i,n,s,a,e=e||this,o=e.xPercent,u=e.yPercent,h=e.x,l=e.y,f=e.rotation,c=e.skewX,p=e.skewY,_=e.scaleX,d=e.scaleY,m=e.target,g=e.xOrigin,v=e.yOrigin,y=e.xOffset,T=e.yOffset,e=e.forceCSS,w=parseFloat(h),x=parseFloat(l),f=parseFloat(f),c=parseFloat(c);(p=parseFloat(p))&&(c+=p=parseFloat(p),f+=p),f||c?(f*=Hi,c*=Hi,r=Math.cos(f)*_,i=Math.sin(f)*_,n=Math.sin(f-c)*-d,s=Math.cos(f-c)*d,c&&(p*=Hi,a=Math.tan(c-p),n*=a=Math.sqrt(1+a*a),s*=a,p)&&(a=Math.tan(p),r*=a=Math.sqrt(1+a*a),i*=a),r=F(r),i=F(i),n=F(n),s=F(s)):(r=_,s=d,i=n=0),(w&&!~(h+"").indexOf("px")||x&&!~(l+"").indexOf("px"))&&(w=_i(m,"x",h,"px"),x=_i(m,"y",l,"px")),(g||v||y||T)&&(w=F(w+g-(g*r+v*n)+y),x=F(x+v-(g*i+v*s)+T)),(o||u)&&(w=F(w+o/100*(a=m.getBBox()).width),x=F(x+u/100*a.height)),m.setAttribute("transform",a="matrix("+r+","+i+","+n+","+s+","+w+","+x+")"),e&&(m.style[H]=a)};p("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});un[1<r?"border"+e:e]=function(e,t,r,i,n){var s,a;if(arguments.length<4)return s=o.map(function(t){return an(e,t,r)}),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(i+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),e.init(t,a,n)}});var yn,Tn={name:"css",register:oi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s,a,o,u,h,l,f,c,p,L,_,d,I,m,B,g,v,Y,y,T,w,x,X=this._props,b=t.style,O=r.vars.startAt;for(h in Mi||oi(),this.styles=this.styles||si(t),m=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(a=e[h],!j[h]||!ar(h,e,r,i,t,n)))if(T=typeof a,u=un[h],"function"===T&&(T=typeof(a=a.call(r,i,t,n))),"string"===T&&~a.indexOf("random(")&&(a=Dt(a)),u)u(this,t,h,a,r)&&(I=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Qe.lastIndex=0,Qe.test(s)||(l=U(s),(f=U(a))?l!==f&&(s=_i(t,h,s,f)+f):l&&(a+=l)),this.add(b,"setProperty",s,a,i,n,0,0,h),X.push(h),m.push(h,0,b[h]);else if("undefined"!==T){if(O&&h in O&&(U((s=N(s="function"==typeof O[h]?O[h].call(r,i,t,n):O[h])&&~s.indexOf("random(")?Dt(s):s)+"")||"auto"===s||(s+=q.units[h]||U(an(t,h))||""),"="!==(s+"").charAt(1))||(s=an(t,h)),u=parseFloat(s),(c="string"===T&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),p=(h=h in tn&&("autoAlpha"===h&&(1===u&&"hidden"===an(t,"visibility")&&o&&(u=0),m.push("visibility",0,b.visibility),pi(this,b,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h)&&"transform"!==h&&~(h=tn[h]).indexOf(",")?h.split(",")[0]:h)in Wi)if(this.styles.save(h),B=a,"string"===T&&"var(--"===a.substring(0,6)&&("calc("===(a=G(t,a.substring(4,a.indexOf(")")))).substring(0,5)&&(T=t.style.perspective,t.style.perspective=a,a=G(t,"perspective"),T?t.style.perspective=T:ci(t,"perspective")),o=parseFloat(a)),L||((_=t._gsap).renderTransform&&!e.parseTransform||fn(t,e.parseTransform),d=!1!==e.smoothOrigin&&_.smooth,(L=this._pt=new W(this._pt,b,H,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===h)this._pt=new W(this._pt,_,"scaleY",_.scaleY,(c?nt(_.scaleY,c+o):o)-_.scaleY||0,qr),this._pt.u=0,X.push("scaleY",h),h+="X";else{if("transformOrigin"===h){m.push(Z,0,b[Z]),x=w=T=void 0,T=(y=a).split(" "),w=T[0],x=T[1]||"50%","top"!==w&&"bottom"!==w&&"left"!==x&&"right"!==x||(y=w,w=x,x=y),T[0]=on[w]||w,T[1]=on[x]||x,a=T.join(" "),_.svg?Ti(t,a,0,d,0,this):((f=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&pi(this,_,"zOrigin",_.zOrigin,f),pi(this,b,h,cn(s),cn(a)));continue}if("svgOrigin"===h){Ti(t,a,1,d,0,this);continue}if(h in ln){y=this,w=_,x=h,T=u,g=c?nt(u,c+a):a,Y=v=S=F=void 0,F=360,S=N(g),v=parseFloat(g)*(S&&~g.indexOf("rad")?Gi:1)-T,Y=T+v+"deg",S&&("short"===(S=g.split("_")[1])&&(v%=F)!=v%180&&(v+=v<0?F:-F),"cw"===S&&v<0?v=(v+36e9)%F-~~(v/F)*F:"ccw"===S&&0<v&&(v=(v-36e9)%F-~~(v/F)*F)),y._pt=g=new W(y._pt,w,x,T,v,jr),g.e=Y,g.u="deg",y._props.push(x);continue}if("smoothOrigin"===h){pi(this,_,"smooth",_.smooth,a);continue}if("force3D"===h){_[h]=a;continue}if("transform"===h){F=z=P=A=D=C=k=M=E=S=R=void 0;var M,k,C,A,D,P,R=this,S=a,E=t,z=xi({},E._gsap),F=E.style;for(k in z.svg?(C=E.getAttribute("transform"),E.setAttribute("transform",""),F[H]=S,M=fn(E,1),ci(E,H),E.setAttribute("transform",C)):(C=getComputedStyle(E)[H],F[H]=S,M=fn(E,1),F[H]=C),Wi)(C=z[k])!==(D=M[k])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(k)<0&&(A=U(C)!==(P=U(D))?_i(E,k,C,P):parseFloat(C),D=parseFloat(D),R._pt=new W(R._pt,M,k,A,D-A,qr),R._pt.u=P||0,R._props.push(k));xi(M,z);continue}}else h in b||(h=rn(h)||h);if(p||(o||0===o)&&(u||0===u)&&!Ki.test(a)&&h in b)o=o||0,(l=(s+"").substr((u+"").length))!==(f=U(a)||(h in q.units?q.units[h]:l))&&(u=_i(t,h,s,f)),this._pt=new W(this._pt,p?_:b,h,u,(c?nt(u,c+o):o)-u,p||"px"!==f&&"zIndex"!==h||!1===e.autoRound?qr:Wr),this._pt.u=f||0,p&&B!==a?(this._pt.b=s,this._pt.e=B,this._pt.r=Qr):l!==f&&"%"!==f&&(this._pt.b=s,this._pt.r=Vr);else if(h in b)di.call(this,t,h,s,c?c+a:a);else if(h in t)this.add(t,h,s||t[h],c?c+a:a,i,n);else if("parseTransform"!==h){tt(h,a);continue}p||(h in b?m.push(h,0,b[h]):"function"==typeof t[h]?m.push(h,2,t[h]()):m.push(h,1,s||t[h])),X.push(h)}I&&Cr(this)},render:function(t,e){if(e.tween._time||!Ai())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:an,aliases:tn,getSetter:function(t,e,r){var i=tn[e];return(e=i&&i.indexOf(",")<0?i:e)in Wi&&e!==Z&&(t._gsap.x||an(t,"x"))?r&&Ci===r?"scale"===e?Kr:Jr:(Ci=r||{})&&("scale"===e?ti:ei):t.style&&!s(t.style[e])?Zr:~e.indexOf("-")?$r:Tr(t,e)},core:{_removeProperty:ci,_getMatrix:yi}},wn=(d.utils.checkPrefix=rn,d.core.getStyleSaver=si,yn=p("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(wn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Wi[t]=1}),p(wn,function(t){q.units[t]="deg",ln[t]=1}),tn[yn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+wn,p("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){t=t.split(":");tn[t[1]]=yn[t[0]]}),p("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){q.units[t]="px"}),d.registerPlugin(Tn),d.registerPlugin(Tn)||d),xn=wn.core.Tween;t.Back=Ni,t.Bounce=qi,t.CSSPlugin=Tn,t.Circ=Qi,t.Cubic=Li,t.Elastic=Xi,t.Expo=Vi,t.Linear=zi,t.Power0=e,t.Power1=Pi,t.Power2=Ri,t.Power3=Si,t.Power4=Ei,t.Quad=Fi,t.Quart=Ii,t.Quint=Bi,t.Sine=ji,t.SteppedEase=Ui,t.Strong=Yi,t.TimelineLite=V,t.TimelineMax=V,t.TweenLite=Q,t.TweenMax=xn,t.default=wn,t.gsap=wn,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default}); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(){return Me||"undefined"!=typeof window&&(Me=window.gsap)&&Me.registerPlugin&&Me}function st(e,t){return~Ne.indexOf(e)&&Ne[Ne.indexOf(e)+1][t]}function Ae(e){return!!~i.indexOf(e)}function Te(e,t,n,r,o){e.addEventListener(t,n,{passive:!1!==r,capture:!!o})}function Se(e,t,n,r){e.removeEventListener(t,n,!!r)}function Re(){return xt&&xt.isPressed||Ie.cache++}function a(n,r){function o(e){var t;return e||0===e?(u&&(Pe.history.scrollRestoration="manual"),t=xt&&xt.isPressed,e=o.v=Math.round(e)||(xt&&xt.iOS?1:0),n(e),o.cacheID=Ie.cache,t&&f("ss",e)):(r||Ie.cache!==o.cacheID||f("ref"))&&(o.cacheID=Ie.cache,o.v=n()),o.v+o.offset}return o.offset=0,n&&o}function Ye(e,t){return(t&&t._ctx&&t._ctx.selector||Me.utils.toArray)(e)[0]||("string"==typeof e&&!1!==Me.config().nullTargetWarn?console.warn("Element not found:",e):null)}function lt(t,e){var n=e.s,e=e.sc,r=(Ae(t)&&(t=ht.scrollingElement||gt),Ie.indexOf(t)),o=e===Xe.sc?1:2,i=(~r||(r=Ie.push(t)-1),Ie[r+o]||Te(t,"scroll",Re),Ie[r+o]),r=i||(Ie[r+o]=a(st(t,n),!0)||(Ae(t)?e:a(function(e){return arguments.length?t[n]=e:t[n]})));return r.target=t,i||(r.smooth="smooth"===Me.getProperty(t,"scrollBehavior")),r}function De(e,t,o){function i(e,t){var n=Et();t||r<n-l?(s=a,a=e,c=l,l=n):o?a+=e:a=s+(e-s)/(n-c)*(l-c)}var a=e,s=e,l=Et(),c=l,r=t||50,u=Math.max(500,3*r);return{update:i,reset:function(){s=a=o?0:a,c=l=0},getVelocity:function(e){var t=c,n=s,r=Et();return!e&&0!==e||e===a||i(e),l===c||u<r-c?0:(a+(o?n:-n))/((o?r:l)-t)*1e3}}}function ct(e,t){return t&&!e._gsapAllow&&!1!==e.cancelable&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function ut(e){var t=Math.max.apply(Math,e),e=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(e)?t:e}function ft(){var e,n,t;(bt=Me.core.globals().ScrollTrigger)&&bt.core&&(e=bt.core,n=e.bridge||{},t=e._scrollers,e=e._proxies,t.push.apply(t,Ie),e.push.apply(e,Ne),Ie=t,Ne=e,f=function(e,t){return n[e](t)})}function dt(e){return Me=e||o(),!pt&&Me&&"undefined"!=typeof document&&document.body&&(Pe=window,gt=(ht=document).documentElement,vt=ht.body,i=[Pe,ht,gt,vt],Me.utils.clamp,wt=Me.core.context||function(){},yt="onpointerenter"in vt?"pointer":"mouse",mt=P.isTouch=Pe.matchMedia&&Pe.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Pe||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Oe=P.eventTypes=("ontouchstart"in gt?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in gt?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return u=0},500),pt=1),bt||ft(),pt}var Me,pt,Pe,ht,gt,vt,mt,yt,bt,i,xt,Oe,wt,s,l,c,u=1,_t=[],Ie=[],Ne=[],Et=Date.now,f=function(e,t){return t},d="scrollLeft",p="scrollTop",Be={s:d,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:a(function(e){return arguments.length?Pe.scrollTo(e,Xe.sc()):Pe.pageXOffset||ht[d]||gt[d]||vt[d]||0})},Xe={s:p,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Be,sc:a(function(e){return arguments.length?Pe.scrollTo(Be.sc(),e):Pe.pageYOffset||ht[p]||gt[p]||vt[p]||0})},P=(Be.op=Xe,Ie.cache=0,h.prototype.init=function(e){pt||dt(Me)||console.warn("Please gsap.registerPlugin(Observer)"),bt||ft();var o=e.tolerance,i=e.dragMinimum,t=e.type,a=e.target,N=e.lineHeight,r=e.debounce,s=e.preventDefault,l=e.onStop,B=e.onStopDelay,n=e.ignore,X=e.wheelSpeed,z=e.event,F=e.onDragStart,L=e.onDragEnd,H=e.onDrag,W=e.onPress,q=e.onRelease,U=e.onRight,V=e.onLeft,G=e.onUp,j=e.onDown,K=e.onChangeX,Z=e.onChangeY,$=e.onChange,J=e.onToggleX,Q=e.onToggleY,ee=e.onHover,te=e.onHoverEnd,c=e.onMove,ne=e.ignoreCheck,u=e.isNormalizer,re=e.onGestureStart,oe=e.onGestureEnd,ie=e.onWheel,ae=e.onEnable,se=e.onDisable,le=e.onClick,f=e.scrollSpeed,d=e.capture,ce=e.allowClicks,ue=e.lockAxis,fe=e.onLockAxis;function de(){return Ce=Et()}function p(e,t){return(_.event=e)&&n&&function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1}(e.target,n)||t&&Ee&&"touch"!==e.pointerType||ne&&ne(e,t)}function h(){var e=_.deltaX=ut(R),t=_.deltaY=ut(D),n=Math.abs(e)>=o,r=Math.abs(t)>=o;$&&(n||r)&&$(_,e,t,R,D),n&&(U&&0<_.deltaX&&U(_),V&&_.deltaX<0&&V(_),K&&K(_),J&&_.deltaX<0!=E<0&&J(_),E=_.deltaX,R[0]=R[1]=R[2]=0),r&&(j&&0<_.deltaY&&j(_),G&&_.deltaY<0&&G(_),Z&&Z(_),Q&&_.deltaY<0!=C<0&&Q(_),C=_.deltaY,D[0]=D[1]=D[2]=0),(y||m)&&(c&&c(_),m&&(F&&1===m&&F(_),H&&H(_),m=0),y=!1),x&&(x=!1,fe)&&fe(_),b&&(ie(_),b=!1),v=0}function pe(e,t,n){R[n]+=e,D[n]+=t,_._vx.update(e),_._vy.update(t),r?v=v||requestAnimationFrame(h):h()}function he(e,t){ue&&!w&&(_.axis=w=Math.abs(e)>Math.abs(t)?"x":"y",x=!0),"y"!==w&&(R[2]+=e,_._vx.update(e,!0)),"x"!==w&&(D[2]+=t,_._vy.update(t,!0)),r?v=v||requestAnimationFrame(h):h()}function g(e){var t,n,r,o;!p(e,1)&&(t=(e=ct(e,s)).clientX,e=e.clientY,n=t-_.x,r=e-_.y,o=_.isDragging,_.x=t,_.y=e,o||(n||r)&&(Math.abs(_.startX-t)>=i||Math.abs(_.startY-e)>=i))&&(m=m||(o?2:1),o||(_.isDragging=!0),he(n,r))}function ge(e){return e.touches&&1<e.touches.length&&(_.isGesturing=!0,re(e,_.isDragging))}function ve(){return _.isGesturing=!1,oe(_)}function me(e){var t;p(e)||(e=T(),t=S(),pe((e-M)*f,(t-P)*f,1),M=e,P=t,l&&I.restart(!0))}function ye(e){var t;p(e)||(e=ct(e,s),ie&&(b=!0),t=(1===e.deltaMode?N:2===e.deltaMode?Pe.innerHeight:1)*X,pe(e.deltaX*t,e.deltaY*t,0),l&&!u&&I.restart(!0))}function be(e){var t,n,r;!p(e)&&(t=e.clientX,e=e.clientY,n=t-_.x,r=e-_.y,_.x=t,_.y=e,y=!0,l&&I.restart(!0),n||r)&&he(n,r)}function xe(e){_.event=e,ee(_)}function we(e){_.event=e,te(_)}function _e(e){return p(e)||ct(e,s)&&le(_)}this.target=a=Ye(a)||gt,this.vars=e;var v,m,y,b,x,w,n=n&&Me.utils.toArray(n),o=o||1e-9,i=i||0,X=X||1,f=f||1,t=t||"wheel,touch,pointer",r=!1!==r,N=N||parseFloat(Pe.getComputedStyle(vt).lineHeight)||22,_=this,E=0,C=0,k=e.passive||!s&&!1!==e.passive,T=lt(a,Be),S=lt(a,Xe),M=T(),P=S(),Ee=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Oe[0],O=Ae(a),A=a.ownerDocument||ht,R=[0,0,0],D=[0,0,0],Ce=0,ke=_.onPress=function(e){p(e,1)||e&&e.button||(_.axis=w=null,I.pause(),_.isPressed=!0,e=ct(e),E=C=0,_.startX=_.x=e.clientX,_.startY=_.y=e.clientY,_._vx.reset(),_._vy.reset(),Te(u?a:A,Oe[1],g,k,!0),_.deltaX=_.deltaY=0,W&&W(_))},Y=_.onRelease=function(t){var e,n,r,o;p(t,1)||(Se(u?a:A,Oe[1],g,!0),e=!isNaN(_.y-_.startY),r=(n=_.isDragging)&&(3<Math.abs(_.x-_.startX)||3<Math.abs(_.y-_.startY)),o=ct(t),!r&&e&&(_._vx.reset(),_._vy.reset(),s)&&ce&&Me.delayedCall(.08,function(){var e;300<Et()-Ce&&!t.defaultPrevented&&(t.target.click?t.target.click():A.createEvent&&((e=A.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,Pe,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)))}),_.isDragging=_.isGesturing=_.isPressed=!1,l&&n&&!u&&I.restart(!0),m&&h(),L&&n&&L(_),q&&q(_,r))},I=_._dc=Me.delayedCall(B||.25,function(){_._vx.reset(),_._vy.reset(),I.pause(),l&&l(_)}).pause();_.deltaX=_.deltaY=0,_._vx=De(0,50,!0),_._vy=De(0,50,!0),_.scrollX=T,_.scrollY=S,_.isDragging=_.isGesturing=_.isPressed=!1,wt(this),_.enable=function(e){return _.isEnabled||(Te(O?A:a,"scroll",Re),0<=t.indexOf("scroll")&&Te(O?A:a,"scroll",me,k,d),0<=t.indexOf("wheel")&&Te(a,"wheel",ye,k,d),(0<=t.indexOf("touch")&&mt||0<=t.indexOf("pointer"))&&(Te(a,Oe[0],ke,k,d),Te(A,Oe[2],Y),Te(A,Oe[3],Y),ce&&Te(a,"click",de,!0,!0),le&&Te(a,"click",_e),re&&Te(A,"gesturestart",ge),oe&&Te(A,"gestureend",ve),ee&&Te(a,yt+"enter",xe),te&&Te(a,yt+"leave",we),c)&&Te(a,yt+"move",be),_.isEnabled=!0,_.isDragging=_.isGesturing=_.isPressed=y=m=!1,_._vx.reset(),_._vy.reset(),M=T(),P=S(),e&&e.type&&ke(e),ae&&ae(_)),_},_.disable=function(){_.isEnabled&&(_t.filter(function(e){return e!==_&&Ae(e.target)}).length||Se(O?A:a,"scroll",Re),_.isPressed&&(_._vx.reset(),_._vy.reset(),Se(u?a:A,Oe[1],g,!0)),Se(O?A:a,"scroll",me,d),Se(a,"wheel",ye,d),Se(a,Oe[0],ke,d),Se(A,Oe[2],Y),Se(A,Oe[3],Y),Se(a,"click",de,!0),Se(a,"click",_e),Se(A,"gesturestart",ge),Se(A,"gestureend",ve),Se(a,yt+"enter",xe),Se(a,yt+"leave",we),Se(a,yt+"move",be),_.isEnabled=_.isPressed=_.isDragging=!1,se)&&se(_)},_.kill=_.revert=function(){_.disable();var e=_t.indexOf(_);0<=e&&_t.splice(e,1),xt===_&&(xt=0)},_t.push(_),u&&Ae(a)&&(xt=_),_.enable(z)},s=h,(l=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&t(s.prototype,l),c&&t(s,c),h);function h(e){this.init(e)}function Ct(e,t,n){var r=tt(e)&&("clamp("===e.substr(0,6)||-1<e.indexOf("max"));return(n["_"+t+"Clamp"]=r)?e.substr(6,e.length-7):e}function kt(e,t){return!t||tt(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"}function g(){return tn=1}function v(){return tn=0}function ze(e){return e}function Tt(e){return Math.round(1e5*e)/1e5||0}function m(){return"undefined"!=typeof window}function y(){return Ue||m()&&(Ue=window.gsap)&&Ue.registerPlugin&&Ue}function St(e){return!!~I.indexOf(e)}function Mt(e){return("Height"===e?Z:Ve["inner"+e])||je["client"+e]||Ke["client"+e]}function Pt(e){return st(e,"getBoundingClientRect")||(St(e)?function(){return Cn.width=Ve.innerWidth,Cn.height=Z,Cn}:function(){return Kt(e)})}function Fe(e,t){t.s;var n,r=t.d2,o=t.d,t=t.a;return Math.max(0,(n="scroll"+r)&&(t=st(e,n))?t()-Pt(e)()[o]:St(e)?(je[n]||Ke[n])-Mt(r):e[n]-e["offset"+r])}function b(e,t){for(var n=0;n<L.length;n+=3)t&&!~t.indexOf(L[n+1])||e(L[n],L[n+1],L[n+2])}function Le(e){return"function"==typeof e}function Ot(e){return"number"==typeof e}function At(e){return"object"==typeof e}function Rt(e,t,n){e&&e.progress(t?0:1)&&n&&e.pause()}function Dt(e,t,n){var r;e.enabled&&(r=e._ctx?e._ctx.add(function(){return t(e,n)}):t(e,n))&&r.totalTime&&(e.callbackAnimation=r)}function He(e){return Ve.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)}function Yt(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}function It(e,t){t=t.d2;return e["offset"+t]||e["client"+t]||0}function Nt(e){var t,n=[],r=e.labels,o=e.duration();for(t in r)n.push(r[t]/o);return n}function Bt(o){var i=Ue.utils.snap(o),a=Array.isArray(o)&&o.slice(0).sort(function(e,t){return e-t});return a?function(e,t,n){var r;if(void 0===n&&(n=.001),!t)return i(e);if(0<t){for(e-=n,r=0;r<a.length;r++)if(a[r]>=e)return a[r];return a[r-1]}for(r=a.length,e+=n;r--;)if(a[r]<=e)return a[r];return a[0]}:function(e,t,n){void 0===n&&(n=.001);var r=i(e);return!t||Math.abs(r-e)<n||r-e<0==t<0?r:i(t<0?e-o:e+o)}}function x(t,n,e,r){e.split(",").forEach(function(e){return t(n,e,r)})}function We(e,t,n,r,o){return e.addEventListener(t,n,{passive:!r,capture:!!o})}function qe(e,t,n,r){return e.removeEventListener(t,n,!!r)}function w(e,t,n){(n=n&&n.wheelHandler)&&(e(t,"wheel",n),e(t,"touchmove",n))}function Xt(e,t){var n,r;return tt(e)&&(r=~(n=e.indexOf("="))?(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0,~n&&(e.indexOf("%")>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in ne?ne[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)),e}function zt(e,t,n,r,o,i,a,s){var l=o.startColor,c=o.endColor,u=o.fontSize,f=o.indent,o=o.fontWeight,d=Ge.createElement("div"),p=St(n)||"fixed"===st(n,"pinType"),h=-1!==e.indexOf("scroller"),n=p?Ke:"IFRAME"===n.tagName?n.contentDocument.body:n,g=-1!==e.indexOf("start"),l=g?l:c,c="border-color:"+l+";font-size:"+u+";color:"+l+";font-weight:"+o+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return c+="position:"+((h||s)&&p?"fixed;":"absolute;"),!h&&!s&&p||(c+=(r===Xe?ee:te)+":"+(i+parseFloat(f))+"px;"),a&&(c+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=g,d.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),d.style.cssText=c,d.innerText=t||0===t?e+"-"+t:e,n.children[0]?n.insertBefore(d,n.children[0]):n.appendChild(d),d._offset=d["offset"+r.op.d2],D(d,0,r,g),d}function _(){return 34<Qe()-et&&(J=J||requestAnimationFrame(se))}function Ft(){n&&n.isPressed&&!(n.startX>Ke.clientWidth)||(Ie.cache++,n?J=J||requestAnimationFrame(se):se(),et||ie("scrollStart"),et=Qe())}function E(){U=Ve.innerWidth,q=Ve.innerHeight}function Lt(e){Ie.cache++,!0!==e&&(Ze||H||Ge.fullscreenElement||Ge.webkitFullscreenElement||W&&U===Ve.innerWidth&&!(Math.abs(Ve.innerHeight-q)>.25*Ve.innerHeight))||N.restart(!0)}function Ht(){return qe(O,"scrollEnd",Ht)||Zt(!0)}function C(e){for(var t=0;t<r.length;t+=5)(!e||r[t+4]&&r[t+4].query===e)&&(r[t].style.cssText=r[t+1],r[t].getBBox&&r[t].setAttribute("transform",r[t+2]||""),r[t+3].uncache=1)}function k(){Ie.forEach(function(e){return Le(e)&&++e.cacheID&&(e.rec=e())})}function T(e,t){var n;for($e=0;$e<it.length;$e++)!(n=it[$e])||t&&n._ctx!==t||(e?n.kill(1):n.revert(!0,!0));$=!0,t&&C(t),t||ie("revert")}function S(e,t){Ie.cache++,!t&&Je||Ie.forEach(function(e){return Le(e)&&e.cacheID++&&(e.rec=0)}),tt(e)&&(Ve.history.scrollRestoration=j=e)}function M(){Ke.appendChild(K),Z=!n&&K.offsetHeight||Ve.innerHeight,Ke.removeChild(K)}function A(t){Jt(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})}function Wt(e,t,n,r){if(!e._gsap.swappedIn){for(var o,i=le.length,a=t.style,s=e.style;i--;)a[o=le[i]]=n[o];a.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(a.display="inline-block"),s[te]=s[ee]="auto",a.flexBasis=n.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[dn]=It(e,Be)+ot,a[pn]=It(e,Xe)+ot,a[nt]=s[rt]=s.top=s.left="0",$t(r),s[dn]=s.maxWidth=n[dn],s[pn]=s.maxHeight=n[pn],s[nt]=n[nt],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}}function qt(e){for(var t=ce.length,n=e.style,r=[],o=0;o<t;o++)r.push(ce[o],n[ce[o]]);return r.t=e,r}function Ut(e,t,n,r,o,i,a,s,l,c,u,f,d,p){Le(e)&&(e=e(s)),tt(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?Xt("0"+e.substr(3),n):0));var h,g,v,m,y=d?d.time():0;return d&&d.seek(0),Ot(e=isNaN(e)?e:+e)?(d&&(e=Ue.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,f,e)),a&&D(a,n,r,!0)):(Le(t)&&(t=t(s)),g=(e||"0").split(" "),v=Ye(t,s)||Ke,(t=Kt(v)||{})&&(t.left||t.top)||"none"!==He(v).display||(h=v.style.display,v.style.display="block",t=Kt(v),h?v.style.display=h:v.style.removeProperty("display")),h=Xt(g[0],t[r.d]),g=Xt(g[1]||"0",n),e=t[r.p]-l[r.p]-c+h+o-g,a&&D(a,g,r,n-g<20||a._isStart&&20<g),n-=n-g),p&&(s[p]=e||-.001,e<0)&&(e=0),i&&(t=i._isStart,m="scroll"+r.d2,D(i,c=e+n,r,t&&20<c||!t&&(u?Math.max(Ke[m],je[m]):i.parentNode[m])<=c+1),u)&&(l=Kt(a),u)&&(i.style[r.op.p]=l[r.op.p]-r.op.m-i._offset+ot),d&&v&&(m=Kt(v),d.seek(f),h=Kt(v),d._caScrollDist=m[r.p]-h[r.p],e=e/d._caScrollDist*f),d&&d.seek(y),d?e:Math.round(e)}function Vt(e,t,n,r){if(e.parentNode!==t){var o,i,a=e.style;if(t===Ke){for(o in e._stOrig=a.cssText,i=He(e))+o||fe.test(o)||!i[o]||"string"!=typeof a[o]||"0"===o||(a[o]=i[o]);a.top=n,a.left=r}else a.cssText=e._stOrig;Ue.core.getCache(e).uncache=1,t.appendChild(e)}}function R(n,e,r){var o=e,i=o;return function(e){var t=Math.round(n());return t!==o&&t!==i&&3<Math.abs(t-o)&&3<Math.abs(t-i)&&(e=t,r)&&r(),i=o,o=Math.round(e)}}function Gt(e,t,n){var r={};r[t.p]="+="+n,Ue.set(e,r)}function jt(l,e){function c(e,t,n,r,o){var i=c.tween,a=t.onComplete,s=(n=n||u(),R(u,n,function(){i.kill(),c.tween=0}));return o=r&&o||0,r=r||e-n,i&&i.kill(),t[f]=e,t.inherit=!1,(t.modifiers={})[f]=function(){return s(n+r*i.ratio+o*i.ratio*i.ratio)},t.onUpdate=function(){Ie.cache++,c.tween&&se()},t.onComplete=function(){c.tween=0,a&&a.call(i)},i=c.tween=Ue.to(l,t)}var u=lt(l,e),f="_scroll"+e.p2;return(l[f]=u).wheelHandler=function(){return c.tween&&c.tween.kill()&&(c.tween=0)},We(l,"wheel",u.wheelHandler),O.isTouch&&We(l,"touchmove",u.wheelHandler),c}P.version="3.15.0",P.create=function(e){return new P(e)},P.register=dt,P.getAll=function(){return _t.slice()},P.getById=function(t){return _t.filter(function(e){return e.vars.id===t})[0]},o()&&Me.registerPlugin(P);function Kt(e,t){return t=t&&"matrix(1, 0, 0, 1, 0, 0)"!==He(e)[X]&&Ue.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),e=(e.getBoundingClientRect?e:e.scrollingElement).getBoundingClientRect(),t&&t.progress(0).kill(),e}function D(e,t,n,r){var o={display:"block"},i=n[r?"os2":"p2"],a=n[r?"p2":"os2"];e._isFlipped=r,o[n.a+"Percent"]=r?-100:0,o[n.a]=r?"1px":0,o["border"+i+yn]=1,o["border"+a+yn]=0,o[n.p]=t+"px",Ue.set(e,o)}function Zt(e,t){je=Ge.documentElement,Ke=Ge.body,I=[Ve,Ge,je,Ke],!et||e||$?(M(),Je=O.isRefreshing=!0,$||k(),e=ie("refreshInit"),nn&&O.sort(),t||T(),Ie.forEach(function(e){Le(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),it.slice(0).forEach(function(e){return e.refresh()}),$=!1,it.forEach(function(e){var t,n;e._subPinOffset&&e.pin&&(t=e.vars.horizontal?"offsetWidth":"offsetHeight",n=e.pin[t],e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh())}),on=1,A(!0),it.forEach(function(e){var t=Fe(e.scroller,e._dir),n="max"===e.vars.end||e._endClamp&&e.end>t,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),A(!1),on=0,e.forEach(function(e){return e&&e.render&&e.render(-1)}),Ie.forEach(function(e){Le(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec)&&e(e.rec)}),S(j,1),N.pause(),_n++,se(Je=2),it.forEach(function(e){return Le(e.vars.onRefresh)&&e.vars.onRefresh(e)}),Je=O.isRefreshing=!1,ie("refresh")):We(O,"scrollEnd",Ht)}function $t(e){if(e){var t,n,r=e.t.style,o=e.length,i=0;for((e.t._gsap||Ue.core.getCache(e.t)).uncache=1;i<o;i+=2)n=e[i+1],t=e[i],n?r[t]=n:r[t]&&r.removeProperty(t.replace(ue,"-$1").toLowerCase())}}var Ue,Y,Ve,Ge,je,Ke,I,N,Jt,Qt,en,B,Ze,tn,X,$e,z,F,L,nn,rn,H,n,W,q,U,V,G,j,K,Z,$,on,an,J,Je,sn,ln,cn=1,Qe=Date.now,Q=Qe(),et=0,un=0,tt=function(e){return"string"==typeof e},fn=Math.abs,ee="right",te="bottom",dn="width",pn="height",hn="Right",gn="Left",vn="Top",mn="Bottom",nt="padding",rt="margin",yn="Width",ot="px",bn={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},xn={toggleActions:"play",anticipatePin:0},ne={top:0,left:0,center:.5,bottom:1,right:1},it=[],wn={},re={},oe=[],ie=function(e){return re[e]&&re[e].map(function(e){return e()})||oe},r=[],_n=0,ae=0,En=1,se=function(e){if(2===e||!Je&&!$){O.isUpdating=!0,ln&&ln.update(0);var t=it.length,e=Qe(),n=50<=e-Q,r=t&&it[0].scroll();if(En=r<ae?-1:1,Je||(ae=r),n&&(et&&!tn&&200<e-et&&(et=0,ie("scrollEnd")),en=Q,Q=e),En<0){for($e=t;0<$e--;)it[$e]&&it[$e].update(0,n);En=1}else for($e=0;$e<t;$e++)it[$e]&&it[$e].update(0,n);O.isUpdating=!1}J=0},le=["left","top",te,ee,rt+mn,rt+hn,rt+vn,rt+gn,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ce=le.concat([dn,pn,"boxSizing","max"+yn,"maxHeight","position",rt,nt,nt+vn,nt+hn,nt+mn,nt+gn]),ue=/([A-Z])/g,Cn={left:0,top:0},fe=/(webkit|moz|length|cssText|inset)/i,O=(at.prototype.init=function(_,E){var C,r,v,k,K,T,S,Z,M,$,J,Q,P,ee,m,te,ne,y,O,b,re,x,w,oe,A,i,d,R,D,ie,ae,p,h,o,se,le,ce,Y,I,N,ue,fe,a,de,pe,g,he,B,ge,ve,X,z,F,L,H,me,ye,be,xe,W,we,_e,Ee,Ce,ke,q,U,V,G,e,j,Te,s,l,c,u,f,t,Se,Me,Pe,Oe,n,Ae,Re,De;this.progress=this.start=0,this.vars&&this.kill(!0,!0),un?(p=(_=Yt(tt(_)||Ot(_)||_.nodeType?{trigger:_}:_,xn)).onUpdate,h=_.toggleClass,o=_.id,se=_.onToggle,le=_.onRefresh,ce=_.scrub,Y=_.trigger,I=_.pin,N=_.pinSpacing,ue=_.invalidateOnRefresh,fe=_.anticipatePin,a=_.onScrubComplete,de=_.onSnapComplete,pe=_.once,g=_.snap,he=_.pinReparent,t=_.pinSpacer,B=_.containerAnimation,ge=_.fastScrollEnd,ve=_.preventOverlaps,X=_.horizontal||_.containerAnimation&&!1!==_.horizontal?Be:Xe,z=!ce&&0!==ce,F=Ye(_.scroller||Ve),e=Ue.core.getCache(F),L=St(F),H="fixed"===("pinType"in _?_.pinType:st(F,"pinType")||L&&"fixed"),me=[_.onEnter,_.onLeave,_.onEnterBack,_.onLeaveBack],ye=z&&_.toggleActions.split(" "),be=("markers"in _?_:xn).markers,xe=!L&&parseFloat(He(F)["border"+X.p2+yn])||0,W=this,we=_.onRefreshInit&&function(){return _.onRefreshInit(W)},Pe=F,Oe=L,Ae=(n=X).d,Re=n.d2,De=n.a,_e=(De=st(Pe,"getBoundingClientRect"))?function(){return De()[Ae]}:function(){return(Oe?Mt(Re):Pe["client"+Re])||0},n=F,Ee=!L||~Ne.indexOf(n)?Pt(n):function(){return Cn},q=ke=Ce=0,U=lt(F,X),W._startClamp=W._endClamp=!1,W._dir=X,fe*=45,W.scroller=F,W.scroll=B?B.time.bind(B):U,k=U(),W.vars=_,E=E||_.animation,"refreshPriority"in _&&(nn=1,-9999===_.refreshPriority)&&(ln=W),e.tweenScroll=e.tweenScroll||{top:jt(F,Xe),left:jt(F,Be)},W.tweenTo=C=e.tweenScroll[X.p],W.scrubDuration=function(e){(i=Ot(e)&&e)?A?A.duration(e):A=Ue.to(E,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:i,paused:!0,onComplete:function(){return a&&a(W)}}):(A&&A.progress(1).kill(),A=0)},E&&(E.vars.lazy=!1,E._initted&&!W.isReverted||!1!==E.vars.immediateRender&&!1!==_.immediateRender&&E.duration()&&E.render(0,!0,!0),W.animation=E.pause(),(E.scrollTrigger=W).scrubDuration(ce),w=0,o=o||E.vars.id),g&&(At(g)&&!g.push||(g={snapTo:g}),"scrollBehavior"in Ke.style&&Ue.set(L?[Ke,je]:F,{scrollBehavior:"auto"}),Ie.forEach(function(e){return Le(e)&&e.target===(L?Ge.scrollingElement||je:F)&&(e.smooth=!1)}),v=Le(g.snapTo)?g.snapTo:"labels"===g.snapTo?(Me=E,function(e){return Ue.utils.snap(Nt(Me),e)}):"labelsDirectional"===g.snapTo?(Se=E,function(e,t){return Bt(Nt(Se))(e,t.direction)}):!1!==g.directional?function(e,t){return Bt(g.snapTo)(e,Qe()-ke<500?0:t.direction)}:Ue.utils.snap(g.snapTo),d=At(d=g.duration||{min:.1,max:2})?Qt(d.min,d.max):Qt(d,d),R=Ue.delayedCall(g.delay||i/2||.1,function(){var e,t,n,r,o,i,a,s,l,c=U(),u=Qe()-ke<500,f=C.tween;!(u||Math.abs(W.getVelocity())<10)||f||tn||Ce===c?W.isActive&&Ce!==c&&R.restart(!0):(n=(c-T)/M,r=E&&!z?E.totalProgress():n,u=!u&&(r-oe)/(Qe()-en)*1e3||0,o=Ue.utils.clamp(-n,1-n,fn(u/2)*u/.185),i=n+(!1===g.inertia?0:o),a=g.onStart,s=g.onInterrupt,l=g.onComplete,Ot(e=v(i,W))||(e=i),t=Math.max(0,Math.round(T+e*M)),c<=S&&T<=c&&t!==c&&(f&&!f._initted&&f.data<=fn(t-c)||(!1===g.inertia&&(o=e-n),C(t,{duration:d(fn(.185*Math.max(fn(i-r),fn(e-r))/u/.05||0)),ease:g.ease||"power3",data:fn(t-c),onInterrupt:function(){return R.restart(!0)&&s&&Dt(W,s)},onComplete:function(){W.update(),Ce=U(),E&&!z&&(A?A.resetTo("totalProgress",e,E._tTime/E._tDur):E.progress(e)),w=oe=E&&!z?E.totalProgress():W.progress,de&&de(W),l&&Dt(W,l)}},c,o*M,t-c-o*M),a&&Dt(W,a,C.tween))))}).pause()),o&&(wn[o]=W),n=(n=(Y=W.trigger=Ye(Y||!0!==I&&I))&&Y._gsap&&Y._gsap.stRevert)&&n(W),I=!0===I?Y:Ye(I),tt(h)&&(h={targets:Y,className:h}),I&&(!1!==N&&N!==rt&&(N=!(!N&&I.parentNode&&I.parentNode.style&&"flex"===He(I.parentNode).display)&&nt),W.pin=I,(r=Ue.core.getCache(I)).spacer?$=r.pinState:(t&&((t=Ye(t))&&!t.nodeType&&(t=t.current||t.nativeElement),r.spacerIsNative=!!t,t)&&(r.spacerState=qt(t)),r.spacer=P=t||Ge.createElement("div"),P.classList.add("pin-spacer"),o&&P.classList.add("pin-spacer-"+o),r.pinState=$=qt(I)),!1!==_.force3D&&Ue.set(I,{force3D:!0}),W.spacer=P=r.spacer,e=He(I),y=e[N+X.os2],ee=Ue.getProperty(I),m=Ue.quickSetter(I,X.a,ot),Wt(I,P,e),Q=qt(I)),be&&(t=At(be)?Yt(be,bn):bn,V=zt("scroller-start",o,F,X,t,0),G=zt("scroller-end",o,F,X,t,0,V),e=V["offset"+X.op.d2],f=Ye(st(F,"content")||F),j=this.markerStart=zt("start",o,f,X,t,e,0,B),Te=this.markerEnd=zt("end",o,f,X,t,e,0,B),B&&(ae=Ue.quickSetter([j,Te],X.a,ot)),H||Ne.length&&!0===st(F,"fixedMarkers")||(t=He(f=L?Ke:F).position,f.style.position="absolute"===t||"fixed"===t?t:"relative",Ue.set([V,G],{force3D:!0}),b=Ue.quickSetter(V,X.a,ot),x=Ue.quickSetter(G,X.a,ot))),B&&(s=B.vars.onUpdate,l=B.vars.onUpdateParams,B.eventCallback("onUpdate",function(){W.update(0,0,1),s&&s.apply(B,l||[])})),W.previous=function(){return it[it.indexOf(W)-1]},W.next=function(){return it[it.indexOf(W)+1]},W.revert=function(e,t){if(!t)return W.kill(!0);var n,r,o=!1!==e||!W.enabled,t=Ze;o!==W.isReverted&&(o&&(D=Math.max(U(),W.scroll.rec||0),q=W.progress,ie=E&&E.progress()),j&&[j,Te,V,G].forEach(function(e){return e.style.display=o?"none":"block"}),o&&(Ze=W).update(o),!I||he&&W.isActive||(o?(e=I,n=P,$t(r=$),(r=e._gsap).spacerIsNative?$t(r.spacerState):e._gsap.swappedIn&&(r=n.parentNode)&&(r.insertBefore(e,n),r.removeChild(n)),e._gsap.swappedIn=!1):Wt(I,P,He(I),O)),o||W.update(o),Ze=t,W.isReverted=o)},W.refresh=function(e,t,n,r){if(!Ze&&W.enabled||t)if(I&&e&&et)We(at,"scrollEnd",Ht);else{!Je&&we&&we(W),Ze=W,C.tween&&!n&&(C.tween.kill(),C.tween=0),A&&A.pause(),ue&&E&&(E.revert({kill:!1}).invalidate(),E.getChildren?E.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):E.vars.immediateRender&&E.render(0,!0,!0)),W.isReverted||W.revert(!0,!0),W._subPinOffset=!1;var o,i,a,s,l,c,u,f,t=_e(),e=Ee(),d=B?B.duration():Fe(F,X),p=M<=.01||!M,h=0,g=r||0,v=(At(n)?n:_).end,m=_.endTrigger||Y,y=At(n)?n.start:_.start||(0!==_.start&&Y?I?"0 0":"0 100%":0),b=W.pinnedContainer=_.pinnedContainer&&Ye(_.pinnedContainer,W),x=Y&&Math.max(0,it.indexOf(W))||0,w=x;for(be&&At(n)&&(u=Ue.getProperty(V,X.p),f=Ue.getProperty(G,X.p));0<w--;)(a=it[w]).end||a.refresh(0,1)||(Ze=W),!(s=a.pin)||s!==Y&&s!==I&&s!==b||a.isReverted||((l=l||[]).unshift(a),a.revert(!0,!0)),a!==it[w]&&(x--,w--);for(y=Ct(y=Le(y)?y(W):y,"start",W),T=Ut(y,Y,t,X,U(),j,V,W,e,xe,H,d,B,W._startClamp&&"_startClamp")||(I?-.001:0),Le(v)&&(v=v(W)),tt(v)&&!v.indexOf("+=")&&(~v.indexOf(" ")?v=(tt(y)?y.split(" ")[0]:"")+v:(h=Xt(v.substr(2),t),v=tt(y)?y:(B?Ue.utils.mapRange(0,B.duration(),B.scrollTrigger.start,B.scrollTrigger.end,T):T)+h,m=Y)),v=Ct(v,"end",W),S=Math.max(T,Ut(v||(m?"100% 0":d),m,t,X,U()+h,Te,G,W,e,xe,H,d,B,W._endClamp&&"_endClamp"))||-.001,h=0,w=x;w--;)(s=(a=it[w]||{}).pin)&&a.start-a._pinPush<=T&&!B&&0<a.end&&(o=a.end-(W._startClamp?Math.max(0,a.start):a.start),(s===Y&&a.start-a._pinPush<T||s===b)&&isNaN(y)&&(h+=o*(1-a.progress)),s===I)&&(g+=o);if(T+=h,S+=h,W._startClamp&&(W._startClamp+=h),W._endClamp&&!Je&&(W._endClamp=S||-.001,S=Math.min(S,Fe(F,X))),M=S-T||(T-=.01)&&.001,p&&(q=Ue.utils.clamp(0,1,Ue.utils.normalize(T,S,D))),W._pinPush=g,j&&h&&((o={})[X.a]="+="+h,b&&(o[X.p]="-="+U()),Ue.set([j,Te],o)),!I||on&&W.end>=Fe(F,X)){if(Y&&U()&&!B)for(i=Y.parentNode;i&&i!==Ke;)i._pinOffset&&(T-=i._pinOffset,S-=i._pinOffset),i=i.parentNode}else o=He(I),n=X===Xe,v=U(),te=parseFloat(ee(X.a))+g,!d&&1<S&&(c={style:c=(L?Ge.scrollingElement||je:F).style,value:c["overflow"+X.a.toUpperCase()]},L)&&"scroll"!==He(Ke)["overflow"+X.a.toUpperCase()]&&(c.style["overflow"+X.a.toUpperCase()]="scroll"),Wt(I,P,o),Q=qt(I),i=Kt(I,!0),m=H&<(F,n?Be:Xe)(),N?((O=[N+X.os2,M+g+ot]).t=P,(w=N===nt?It(I,X)+M+g:0)&&(O.push(X.d,w+ot),"auto"!==P.style.flexBasis)&&(P.style.flexBasis=w+ot),$t(O),b&&it.forEach(function(e){e.pin===b&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),H&&U(D)):(w=It(I,X))&&"auto"!==P.style.flexBasis&&(P.style.flexBasis=w+ot),H&&((t={top:i.top+(n?v-T:m)+ot,left:i.left+(n?m:v-T)+ot,boxSizing:"border-box",position:"fixed"})[dn]=t.maxWidth=Math.ceil(i.width)+ot,t[pn]=t.maxHeight=Math.ceil(i.height)+ot,t[rt]=t[rt+vn]=t[rt+hn]=t[rt+mn]=t[rt+gn]="0",t[nt]=o[nt],t[nt+vn]=o[nt+vn],t[nt+hn]=o[nt+hn],t[nt+mn]=o[nt+mn],t[nt+gn]=o[nt+gn],J=function(e,t,n){for(var r,o=[],i=e.length,a=n?8:0;a<i;a+=2)r=e[a],o.push(r,r in t?t[r]:e[a+1]);return o.t=e.t,o}($,t,he),Je)&&U(0),E?(e=E._initted,rn(1),E.render(E.duration(),!0,!0),ne=ee(X.a)-te+M+g,re=1<Math.abs(M-ne),H&&re&&J.splice(J.length-2,2),E.render(0,!0,!0),e||E.invalidate(!0),E.parent||E.totalTime(E.totalTime()),rn(0)):ne=M,c&&(c.value?c.style["overflow"+X.a.toUpperCase()]=c.value:c.style.removeProperty("overflow-"+X.a));l&&l.forEach(function(e){return e.revert(!1,!0)}),W.start=T,W.end=S,k=K=Je?D:U(),B||Je||(k<D&&U(D),W.scroll.rec=0),W.revert(!1,!0),ke=Qe(),R&&(Ce=-1,R.restart(!0)),Ze=0,E&&z&&(E._initted||ie)&&E.progress()!==ie&&E.progress(ie||0,!0).render(E.time(),!0,!0),(p||q!==W.progress||B||ue||E&&!E._initted)&&(E&&!z&&(E._initted||q||!1!==E.vars.immediateRender)&&E.totalProgress(B&&T<-.001&&!q?Ue.utils.normalize(T,S,0):q,!0),W.progress=p||(k-T)/M===q?0:q),I&&N&&(P._pinOffset=Math.round(W.progress*ne)),A&&A.invalidate(),isNaN(u)||(u-=Ue.getProperty(V,X.p),f-=Ue.getProperty(G,X.p),Gt(V,X,u),Gt(j,X,u-(r||0)),Gt(G,X,f),Gt(Te,X,f-(r||0))),p&&!Je&&W.update(),!le||Je||Z||(Z=!0,le(W),Z=!1)}},W.getVelocity=function(){return(U()-K)/(Qe()-en)*1e3||0},W.endAnimation=function(){Rt(W.callbackAnimation),E&&(A?A.progress(1):E.paused()?z||Rt(E,W.direction<0,1):Rt(E,E.reversed()))},W.labelToScroll=function(e){return E&&E.labels&&(T||W.refresh()||T)+E.labels[e]/E.duration()*M||0},W.getTrailing=function(t){var e=it.indexOf(W),e=0<W.direction?it.slice(0,e).reverse():it.slice(e+1);return(tt(t)?e.filter(function(e){return e.vars.preventOverlaps===t}):e).filter(function(e){return 0<W.direction?e.end<=T:e.start>=S})},W.update=function(e,t,n){var r,o,i,a,s,l,c,u,f;(!B||n||e)&&(n=!0===Je?D:W.scroll(),s=(s=e?0:(n-T)/M)<0?0:1<s?1:s||0,c=W.progress,t&&(K=k,k=B?U():n,g)&&(oe=w,w=E&&!z?E.totalProgress():s),fe&&I&&!Ze&&!cn&&et&&(!s&&T<n+(n-K)/(Qe()-en)*fe?s=1e-4:1===s&&S>n+(n-K)/(Qe()-en)*fe&&(s=.9999)),s!==c&&W.enabled&&(u=(t=(r=W.isActive=!!s&&s<1)!=(!!c&&c<1))||!!s!=!!c,W.direction=c<s?1:-1,W.progress=s,u&&!Ze&&(o=s&&!c?0:1===s?1:1===c?2:3,z)&&(i=!t&&"none"!==ye[o+1]&&ye[o+1]||ye[o],a=E&&("complete"===i||"reset"===i||i in E)),ve&&(t||a)&&(a||ce||!E)&&(Le(ve)?ve(W):W.getTrailing(ve).forEach(function(e){return e.endAnimation()})),z||(!A||Ze||cn?E&&E.totalProgress(s,!(!Ze||!ke&&!e)):(A._dp._time-A._start!==A._time&&A.render(A._dp._time-A._start),A.resetTo?A.resetTo("totalProgress",s,E._tTime/E._tDur):(A.vars.totalProgress=s,A.invalidate().restart()))),I&&(e&&N&&(P.style[N+X.os2]=y),H?u&&(c=!e&&c<s&&n<S+1&&n+1>=Fe(F,X),he&&(e||!r&&!c?Vt(I,P):(f=Kt(I,!0),l=n-T,Vt(I,Ke,f.top+(X===Xe?l:0)+ot,f.left+(X===Xe?0:l)+ot))),$t(r||c?J:Q),re&&s<1&&r||m(te+(1!==s||c?0:ne))):m(Tt(te+ne*s))),!g||C.tween||Ze||cn||R.restart(!0),h&&(t||pe&&s&&(s<1||!an))&&Jt(h.targets).forEach(function(e){return e.classList[r||pe?"add":"remove"](h.className)}),!p||z||e||p(W),u&&!Ze?(z&&(a&&("complete"===i?E.pause().totalProgress(1):"reset"===i?E.restart(!0).pause():"restart"===i?E.restart(!0):E[i]()),p)&&p(W),!t&&an||(se&&t&&Dt(W,se),me[o]&&Dt(W,me[o]),pe&&(1===s?W.kill(!1,1):me[o]=0),t)||me[o=1===s?1:3]&&Dt(W,me[o]),ge&&!r&&Math.abs(W.getVelocity())>(Ot(ge)?ge:2500)&&(Rt(W.callbackAnimation),A?A.progress(1):Rt(E,"reverse"===i?1:!s,1))):z&&p&&!Ze&&p(W)),x&&(f=B?n/B.duration()*(B._caScrollDist||0):n,b(f+(V._isFlipped?1:0)),x(f)),ae)&&ae(-n/B.duration()*(B._caScrollDist||0))},W.enable=function(e,t){W.enabled||(W.enabled=!0,We(F,"resize",Lt),L||We(F,"scroll",Ft),we&&We(at,"refreshInit",we),!1!==e&&(W.progress=q=0,k=K=Ce=U()),!1!==t&&W.refresh())},W.getTween=function(e){return e&&C?C.tween:A},W.setPositions=function(e,t,n,r){var o,i,a;B&&(o=B.scrollTrigger,i=B.duration(),a=o.end-o.start,e=o.start+a*e/i,t=o.start+a*t/i),W.refresh(!1,!1,{start:kt(e,n&&!!W._startClamp),end:kt(t,n&&!!W._endClamp)},r),W.update()},W.adjustPinSpacing=function(e){var t;O&&e&&(t=O.indexOf(X.d)+1,O[t]=parseFloat(O[t])+e+ot,O[1]=parseFloat(O[1])+e+ot,$t(O))},W.disable=function(e,t){if(!1!==e&&W.revert(!0,!0),W.enabled&&(W.enabled=W.isActive=!1,t||A&&A.pause(),D=0,r&&(r.uncache=1),we&&qe(at,"refreshInit",we),R&&(R.pause(),C.tween)&&C.tween.kill()&&(C.tween=0),!L)){for(var n=it.length;n--;)if(it[n].scroller===F&&it[n]!==W)return;qe(F,"resize",Lt),L||qe(F,"scroll",Ft)}},W.kill=function(e,t){W.disable(e,t),A&&!t&&A.kill(),o&&delete wn[o];var n=it.indexOf(W);0<=n&&it.splice(n,1),n===$e&&0<En&&$e--,n=0,it.forEach(function(e){return e.scroller===W.scroller&&(n=1)}),n||Je||(W.scroll.rec=0),E&&(E.scrollTrigger=null,e&&E.revert({kill:!1}),t||E.kill()),j&&[j,Te,V,G].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ln===W&&(ln=0),I&&(r&&(r.uncache=1),n=0,it.forEach(function(e){return e.pin===I&&n++}),n||(r.spacer=0)),_.onKill&&_.onKill(W)},it.push(W),W.enable(!1,!1),n&&n(W),E&&E.add&&!M?(c=W.update,W.update=function(){W.update=c,Ie.cache++,T||S||W.refresh()},Ue.delayedCall(.01,W.update),M=.01,T=S=0):W.refresh(),I&&sn!==_n&&(u=sn=_n,requestAnimationFrame(function(){return u===_n&&Zt(!0)}))):this.update=this.refresh=this.kill=ze},at.register=function(e){return Y||(Ue=e||y(),m()&&window.document&&at.enable(),Y=un),Y},at.defaults=function(e){if(e)for(var t in e)xn[t]=e[t];return xn},at.disable=function(t,n){un=0,it.forEach(function(e){return e[n?"kill":"disable"](t)}),qe(Ve,"wheel",Ft),qe(Ge,"scroll",Ft),clearInterval(B),qe(Ge,"touchcancel",ze),qe(Ke,"touchstart",ze),x(qe,Ge,"pointerdown,touchstart,mousedown",g),x(qe,Ge,"pointerup,touchend,mouseup",v),N.kill(),b(qe);for(var e=0;e<Ie.length;e+=3)w(qe,Ie[e],Ie[e+1]),w(qe,Ie[e],Ie[e+2])},at.enable=function(){if(Ve=window,Ge=document,je=Ge.documentElement,Ke=Ge.body,Ue)if(Jt=Ue.utils.toArray,Qt=Ue.utils.clamp,G=Ue.core.context||ze,rn=Ue.core.suppressOverwrites||ze,j=Ve.history.scrollRestoration||"auto",ae=Ve.pageYOffset||0,Ue.core.globals("ScrollTrigger",at),Ke){un=1,(K=document.createElement("div")).style.height="100vh",K.style.position="absolute",M(),function e(){return un&&requestAnimationFrame(e)}(),P.register(Ue),at.isTouch=P.isTouch,V=P.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),W=1===P.isTouch,We(Ve,"wheel",Ft),I=[Ve,Ge,je,Ke],Ue.matchMedia?(at.matchMedia=function(e){var t,n=Ue.matchMedia();for(t in e)n.add(t,e[t]);return n},Ue.addEventListener("matchMediaInit",function(){k(),T()}),Ue.addEventListener("matchMediaRevert",function(){return C()}),Ue.addEventListener("matchMedia",function(){Zt(0,1),ie("matchMedia")}),Ue.matchMedia().add("(orientation: portrait)",function(){return E(),E})):console.warn("Requires GSAP 3.11.0 or later"),E(),We(Ge,"scroll",Ft);var e,t=Ke.hasAttribute("style"),n=Ke.style,r=n.borderTopStyle,o=Ue.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",o=Kt(Ke),Xe.m=Math.round(o.top+Xe.sc())||0,Be.m=Math.round(o.left+Be.sc())||0,r?n.borderTopStyle=r:n.removeProperty("border-top-style"),t||(Ke.setAttribute("style",""),Ke.removeAttribute("style")),B=setInterval(_,250),Ue.delayedCall(.5,function(){return cn=0}),We(Ge,"touchcancel",ze),We(Ke,"touchstart",ze),x(We,Ge,"pointerdown,touchstart,mousedown",g),x(We,Ge,"pointerup,touchend,mouseup",v),X=Ue.utils.checkPrefix("transform"),ce.push(X),Y=Qe(),N=Ue.delayedCall(.2,Zt).pause(),L=[Ge,"visibilitychange",function(){var e=Ve.innerWidth,t=Ve.innerHeight;Ge.hidden?(z=e,F=t):z===e&&F===t||Lt()},Ge,"DOMContentLoaded",Zt,Ve,"load",Zt,Ve,"resize",Lt],b(We),it.forEach(function(e){return e.enable(0,1)}),e=0;e<Ie.length;e+=3)w(qe,Ie[e],Ie[e+1]),w(qe,Ie[e],Ie[e+2])}else Ge&&Ge.addEventListener("DOMContentLoaded",function e(){at.enable(),Ge.removeEventListener("DOMContentLoaded",e)})},at.config=function(e){"limitCallbacks"in e&&(an=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(B)||(B=t)&&setInterval(_,t),"ignoreMobileResize"in e&&(W=1===at.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(b(qe),b(We,e.autoRefreshEvents||"none"),H=-1===(e.autoRefreshEvents+"").indexOf("resize"))},at.scrollerProxy=function(e,t){var e=Ye(e),n=Ie.indexOf(e),r=St(e);~n&&Ie.splice(n,r?6:2),t&&(r?Ne.unshift(Ve,t,Ke,t,je,t):Ne.unshift(e,t))},at.clearMatchMedia=function(t){it.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},at.isInViewport=function(e,t,n){e=(tt(e)?Ye(e):e).getBoundingClientRect(),t=e[n?dn:pn]*t||0;return n?0<e.right-t&&e.left+t<Ve.innerWidth:0<e.bottom-t&&e.top+t<Ve.innerHeight},at.positionInViewport=function(e,t,n){var e=(e=tt(e)?Ye(e):e).getBoundingClientRect(),r=e[n?dn:pn],r=null==t?r/2:t in ne?ne[t]*r:~t.indexOf("%")?parseFloat(t)*r/100:parseFloat(t)||0;return n?(e.left+r)/Ve.innerWidth:(e.top+r)/Ve.innerHeight},at.killAll=function(e){it.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e&&(e=re.killAll||[],re={},e.forEach(function(e){return e()}))},at);function at(e,t){Y||at.register(Ue)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),G(this),this.init(e,t)}function de(e,t,n,r){return r<t?e(r):t<0&&e(0),r<n?(r-t)/(n-t):n<0?t/(t-n):1}function pe(e,t){!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=!0===t?"auto":t?"pan-"+t+(P.isTouch?" pinch-zoom":""):"none",e===je&&pe(Ke,t)}function he(e){var t,n=e.event,r=e.target,e=e.axis,o=(n.changedTouches?n.changedTouches[0]:n).target,i=o._gsap||Ue.core.getCache(o),a=Qe();if(!i._isScrollT||2e3<a-i._isScrollT){for(;o&&o!==Ke&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!ye[(t=He(o)).overflowY]&&!ye[t.overflowX]);)o=o.parentNode;i._isScroll=o&&o!==r&&!St(o)&&(ye[(t=He(o)).overflowY]||ye[t.overflowX]),i._isScrollT=a}!i._isScroll&&"x"!==e||(n.stopPropagation(),n._gsapAllow=!0)}function ge(e,t,n,r){return P.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r=r&&he,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&We(Ge,P.eventTypes[0],xe,!1,!0)},onDisable:function(){return qe(Ge,P.eventTypes[0],xe,!0)}})}function ve(e){function n(){return c=!1}function i(){s=Fe(m,Xe),M=Qt(V?1:0,s),h&&(S=Qt(0,Fe(m,Be))),l=_n}function a(){b._gsap.y=Tt(parseFloat(b._gsap.y)+x.offset)+"px",b.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(b._gsap.y)+", 0, 1)",x.offset=x.cacheID=0}function o(){i(),u.isActive()&&u.vars.scrollY>s&&(x()>s?u.progress(1)&&x(s):u.resetTo("scrollY",s))}(e=At(e)?e:{}).preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r,s,l,c,u,f,d,p,h=e.normalizeScrollX,t=e.momentum,g=e.allowNestedScroll,v=e.onRelease,m=Ye(e.target)||je,y=Ue.core.globals().ScrollSmoother,y=y&&y.get(),b=V&&(e.content&&Ye(e.content)||y&&!1!==e.content&&!y.smooth()&&y.content()),x=lt(m,Xe),w=lt(m,Be),_=1,E=(P.isTouch&&Ve.visualViewport?Ve.visualViewport.scale*Ve.visualViewport.width:Ve.outerWidth)/Ve.innerWidth,C=0,k=Le(t)?function(){return t(r)}:function(){return t||2.8},T=ge(m,e.type,!0,g),S=ze,M=ze;return b&&Ue.set(b,{y:"+=0"}),e.ignoreCheck=function(e){return V&&"touchmove"===e.type&&(c?(requestAnimationFrame(n),t=Tt(r.deltaY/2),t=M(x.v-t),b&&t!==x.v+x.offset&&(x.offset=t-x.v,t=Tt((parseFloat(b&&b._gsap.y)||0)-x.offset),b.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+t+", 0, 1)",b._gsap.y=t+"px",x.cacheID=Ie.cache,se()),!0):(x.offset&&a(),void(c=!0)))||1.05<_&&"touchstart"!==e.type||r.isGesturing||e.touches&&1<e.touches.length;var t},e.onPress=function(){c=!1;var e=_;_=Tt((Ve.visualViewport&&Ve.visualViewport.scale||1)/E),u.pause(),e!==_&&pe(m,1.01<_||!h&&"x"),f=w(),d=x(),i(),l=_n},e.onRelease=e.onGestureStart=function(e,t){var n,r;x.offset&&a(),t?(Ie.cache++,t=k(),h&&(r=(n=w())+.05*t*-e.velocityX/.227,t*=de(w,n,r,Fe(m,Be)),u.vars.scrollX=S(r)),r=(n=x())+.05*t*-e.velocityY/.227,t*=de(x,n,r,Fe(m,Xe)),u.vars.scrollY=M(r),u.invalidate().duration(t).play(.01),(V&&u.vars.scrollY>=s||s-1<=n)&&Ue.to({},{onUpdate:o,duration:t})):p.restart(!0),v&&v(e)},e.onWheel=function(){u._ts&&u.pause(),1e3<Qe()-C&&(l=0,C=Qe())},e.onChange=function(e,t,n,r,o){_n!==l&&i(),t&&h&&w(S(r[2]===t?f+(e.startX-e.x):w()+t-r[1])),n&&(x.offset&&a(),e=(r=o[2]===n)?d+e.startY-e.y:x()+n-o[1],o=M(e),r&&e!==o&&(d+=o-e),x(o)),(n||t)&&se()},e.onEnable=function(){pe(m,!h&&"x"),O.addEventListener("refresh",o),We(Ve,"resize",o),x.smooth&&(x.target.style.scrollBehavior="auto",x.smooth=w.smooth=!1),T.enable()},e.onDisable=function(){pe(m,!0),qe(Ve,"resize",o),O.removeEventListener("refresh",o),T.kill()},e.lockAxis=!1!==e.lockAxis,((r=new P(e)).iOS=V)&&!x()&&x(1),V&&Ue.ticker.add(ze),p=r._dc,u=Ue.to(r,{ease:"power4",paused:!0,inherit:!1,scrollX:h?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:R(x,x(),function(){return u.pause()})},onUpdate:se,onComplete:p.vars.onComplete}),r}O.version="3.15.0",O.saveStyles=function(e){return e?Jt(e).forEach(function(e){var t;e&&e.style&&(0<=(t=r.indexOf(e))&&r.splice(t,5),r.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Ue.core.getCache(e),G()))}):r},O.revert=function(e,t){return T(!e,t)},O.create=function(e,t){return new O(e,t)},O.refresh=function(e){return e?Lt(!0):(Y||O.register())&&Zt(!0)},O.update=function(e){return++Ie.cache&&se(!0===e?2:0)},O.clearScrollMemory=S,O.maxScroll=function(e,t){return Fe(e,t?Be:Xe)},O.getScrollFunc=function(e,t){return lt(Ye(e),t?Be:Xe)},O.getById=function(e){return wn[e]},O.getAll=function(){return it.filter(function(e){return"ScrollSmoother"!==e.vars.id})},O.isScrolling=function(){return!!et},O.snapDirectional=Bt,O.addEventListener=function(e,t){e=re[e]||(re[e]=[]);~e.indexOf(t)||e.push(t)},O.removeEventListener=function(e,t){e=re[e],t=e&&e.indexOf(t);0<=t&&e.splice(t,1)},O.batch=function(e,t){var n,r=[],o={},i=t.interval||.016,a=t.batchMax||1e9;for(n in t)o[n]="on"===n.substr(0,2)&&Le(t[n])&&"onRefreshInit"!==n?function(e){var t=[],n=[],r=Ue.delayedCall(i,function(){e(t,n),t=[],n=[]}).pause();return function(e){t.length||r.restart(!0),t.push(e.trigger),n.push(e),a<=t.length&&r.progress(1)}}(t[n]):t[n];return Le(a)&&(a=a(),We(O,"refresh",function(){return a=t.batchMax()})),Jt(e).forEach(function(e){var t={};for(n in o)t[n]=o[n];t.trigger=e,r.push(O.create(t))}),r};var me,ye={auto:1,scroll:1},be=/(input|label|select|textarea)/i,xe=function(e){var t=be.test(e.target.tagName);(t||me)&&(e._gsapAllow=!0,me=t)};O.sort=function(e){var t;return Le(e)?it.sort(e):(t=Ve.pageYOffset||0,O.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Ve.innerHeight}),it.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))}))},O.observe=function(e){return new P(e)},O.normalizeScroll=function(e){var t;return void 0===e?n:!0===e&&n?n.enable():!1!==e?(t=e instanceof P?e:ve(e),n&&n.target===t.target&&n.kill(),St(t.target)&&(n=t),t):(n&&n.kill(),void(n=e))},O.core={_getVelocityProp:De,_inputObserver:ge,_scrollers:Ie,_proxies:Ne,bridge:{ss:function(){et||ie("scrollStart"),et=Qe()},ref:function(){return Ze}}},y()&&Ue.registerPlugin(O),e.ScrollTrigger=O,e.default=O,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}); !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function o(){return E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E}function x(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function n(e){if(E=e||o()){a=E.registerEase;var n,t=E.parseEase();for(n in t)t[n].config||(t[n],0);for(n in a("slow",s),a("expoScale",u),a("rough",c),p)"version"!==n&&E.core.globals(n,p[n])}}function t(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=x(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function r(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&E.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function h(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function i(e){for(var n,t,o,r,i,a,f,s=(e="object"!=typeof e?{points:+e||20}:e).taper||"none",u=[],c=0,p=0|(+e.points||20),d=p,l=x(e.randomize,!0),g=x(e.clamp),v=E?E.parseEase(e.template):0,w=.4*(+e.strength||1);-1<--d;)n=l?Math.random():1/p*d,t=v?v(n):n,o="none"===s?w:"out"===s?(r=1-n)*r*w:"in"===s?n*n*w:n<.5?(r=2*n)*r*.5*w:(r=2*(1-n))*r*.5*w,l?t+=Math.random()*o-.5*o:d%2?t+=.5*o:t-=.5*o,g&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new h(1,1,null),d=p;d--;)a=new h((i=u[d]).x,i.y,a);return f=new h(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var E,a,f,s=t(.7),u=((s.ease=s).config=t,r(1,2)),c=(u.config=r,i()),p=((c.ease=c).config=i,{SlowMo:s,RoughEase:c,ExpoScaleEase:u});for(f in p)p[f].register=n,p[f].version="3.15.0";o()&&E.registerPlugin(s),e.EasePack=p,e.ExpoScaleEase=u,e.RoughEase=c,e.SlowMo=s,e.default=p,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function y(e){return Math.round(1e5*e)/1e5||0}function b(e){e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001}var C=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,E=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,_=Math.PI/180,j=Math.sin,q=Math.cos,G=Math.abs,I=Math.sqrt;function N(e){function t(e,t,n,s){l=(n-e)/3,c=(s-t)/3,o.push(e+l,t+c,n-l,s-c,n,s)}var n,s,i,r,a,o,h,f,l,c,u,g,d,x=(e+"").replace(E,function(e){e=+e;return e<1e-4&&-1e-4<e?0:e}).match(C)||[],p=[],y=0,M=0,v=x.length,m=0,w="ERROR: malformed path: "+e;if(e&&isNaN(x[0])&&!isNaN(x[1])){for(n=0;n<v;n++)if(g=r,isNaN(x[n])?a=(r=x[n].toUpperCase())!==x[n]:n--,d=+x[n+1],i=+x[n+2],a&&(d+=y,i+=M),n||(h=d,f=i),"M"===r)o&&(o.length<8?--p.length:m+=o.length,b(o)),y=h=d,M=f=i,o=[d,i],p.push(o),n+=2,r="L";else if("C"===r)a||(y=M=0),(o=o||[0,0]).push(d,i,y+ +x[n+3],M+ +x[n+4],y+=+x[n+5],M+=+x[n+6]),n+=6;else if("S"===r)l=y,c=M,"C"!==g&&"S"!==g||(l+=y-o[o.length-4],c+=M-o[o.length-3]),a||(y=M=0),o.push(l,c,d,i,y+=+x[n+3],M+=+x[n+4]),n+=4;else if("Q"===r)l=y+2/3*(d-y),c=M+2/3*(i-M),a||(y=M=0),y+=+x[n+3],M+=+x[n+4],o.push(l,c,y+2/3*(d-y),M+2/3*(i-M),y,M),n+=4;else if("T"===r)l=y-o[o.length-4],c=M-o[o.length-3],o.push(y+l,M+c,d+2/3*(y+1.5*l-d),i+2/3*(M+1.5*c-i),y=d,M=i),n+=2;else if("H"===r)t(y,M,y=d,M),n+=1;else if("V"===r)t(y,M,y,M=d+(a?M-y:0)),n+=1;else if("L"===r||"Z"===r)"Z"===r&&(d=h,i=f,o.closed=!0),("L"===r||.5<G(y-d)||.5<G(M-i))&&(t(y,M,d,i),"L"===r)&&(n+=2),y=d,M=i;else if("A"===r){if(g=x[n+4],d=x[n+5],l=x[n+6],c=x[n+7],s=7,1<g.length&&(g.length<3?(c=l,l=d,s--):(c=d,l=g.substr(2),s-=2),d=g.charAt(1),g=g.charAt(0)),u=function(e,t,n,s,i,r,a,o,h){if(e!==o||t!==h){n=G(n),s=G(s);var f=i%360*_,l=q(f),f=j(f),c=Math.PI,u=2*c,g=(e-o)/2,d=(t-h)/2,x=l*g+f*d,p=-f*g+l*d,g=x*x,d=p*p,y=g/(n*n)+d/(s*s),y=(1<y&&(n=I(y)*n,s=I(y)*s),n*n),M=s*s,y=(y*M-y*d-M*g)/(y*d+M*g),d=(r===a?-1:1)*I(y=y<0?0:y),M=n*p/s*d,g=-s*x/n*d,v=l*M-f*g+(e+o)/2,m=f*M+l*g+(t+h)/2,w=(x-M)/n,b=(p-g)/s,r=(-x-M)/n,y=(-p-g)/s,d=w*w+b*b,C=(b<0?-1:1)*Math.acos(w/I(d)),e=(w*y-b*r<0?-1:1)*Math.acos((w*r+b*y)/I(d*(r*r+y*y)));isNaN(e)&&(e=c),!a&&0<e?e-=u:a&&e<0&&(e+=u),C%=u,e%=u;for(var E=Math.ceil(G(e)/(u/4)),N=[],P=e/E,A=4/3*j(P/2)/(1+q(P/2)),S=l*n,D=f*n,L=f*-s,V=l*s,O=0;O<E;O++)x=q(i=C+O*P),p=j(i),w=q(i+=P),b=j(i),N.push(x-A*p,p+A*x,w+A*b,b-A*w,w,b);for(O=0;O<N.length;O+=2)N[O]=(x=N[O])*S+(p=N[O+1])*L+v,N[O+1]=x*D+p*V+m;return N[O-2]=o,N[O-1]=h,N}}(y,M,+x[n+1],+x[n+2],+x[n+3],+g,+d,(a?y:0)+ +l,(a?M:0)+ +c),n+=s,u)for(s=0;s<u.length;s++)o.push(u[s]);y=o[o.length-2],M=o[o.length-1]}else console.log(w);(n=o.length)<6?(p.pop(),n=0):b(o),p.totalPoints=m+n}else console.log(w);return p}function t(){return P||"undefined"!=typeof window&&(P=window.gsap)&&P.registerPlugin&&P}function s(){(P=t())?(P.registerEase("_CE",r.create),i=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function M(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}var P,i,n,A=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,S=/[cLlsSaAhHvVtTqQ]/g,r=((n=v.prototype).setData=function(e,t){t=t||{};var n,s,i,r,a,o,h,f,l,c=(e=e||"0,0,1,1").match(A),u=1,g=[],d=[],x=t.precision||1,p=x<=1;if(this.data=e,(S.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=N(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";if(0!=+c[0]||1!=+c[n-2]){var y=c;e=t.height,(t=t.originY)||0===t||(t=Math.max(+y[y.length-1],+y[1]));for(var M=-1*y[0],v=-t,m=y.length,w=1/(+y[m-2]+M),b=(b=-e||(Math.abs(y[m-1]-y[1])<.01*(y[m-2]-y[0])?function(e){for(var t=e.length,n=1e20,s=1;s<t;s+=6)+e[s]<n&&(n=+e[s]);return n}(y)+v:+y[m-1]+v))?1/b:-w,C=0;C<m;C+=2)y[C]=(+y[C]+M)*w,y[C+1]=(+y[C+1]+v)*b}for(this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},i={x:+c[r+4],y:+c[r+5]},g.push(s,i),function e(t,n,s,i,r,a,o,h,f,l,c){var u=(t+s)/2,g=(n+i)/2,d=(s+r)/2,x=(i+a)/2,p=(r+o)/2,y=(a+h)/2,M=(u+d)/2,v=(g+x)/2,d=(d+p)/2,x=(x+y)/2,m=(M+d)/2,w=(v+x)/2,b=o-t,C=h-n,s=Math.abs((s-o)*C-(i-h)*b),i=Math.abs((r-o)*C-(a-h)*b);l||(l=[{x:t,y:n},{x:o,y:h}],c=1),l.splice(c||l.length-1,0,{x:m,y:w}),f*(b*b+C*C)<(s+i)*(s+i)&&(r=l.length,e(t,n,u,g,M,v,m,w,f,l,c),e(m,w,d,x,p,y,o,h,f,l,c+1+(l.length-r)))}(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],i.x,i.y,1/(2e5*x),g,g.length-1);for(n=g.length,r=0;r<n;r++)((h=g[r]).x>(f=g[r-1]||h).x||f.y!==h.y&&f.x===h.x||h===f)&&h.x<=1?(f.cx=h.x-f.x,f.cy=h.y-f.y,f.n=h,f.nx=h.x,p&&1<r&&2<Math.abs(f.cy/f.cx-g[r-2].cy/g[r-2].cx)&&(p=0),f.cx<u&&(f.cx?u=f.cx:(f.cx=.001,r===n-1&&(f.x-=.001,u=Math.min(u,.001),p=0)))):(g.splice(r--,1),n--);if(a=1/(n=1/u+1|0),h=g[o=0],p){for(r=0;r<n;r++)s=(h=h.nx<(l=r*a)?g[++o]:h).y+(l-h.x)/h.cx*h.cy,d[r]={x:l,cx:a,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=(o=g[g.length-1]).y-s,d[n-1].cx=o.x-d[d.length-1].x}else{for(r=0;r<n;r++)h.nx<r*a&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return(t=t.nx<e?t.n:t).y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&P&&P.registerEase(this.id,this.ease),this},n.getSVGData=function(e){return v.getSVGData(this,e)},v.create=function(e,t,n){return new v(e,t,n).ease},v.register=function(e){P=e,s()},v.get=function(e){return P.parseEase(e)},v.getSVGData=function(e,t){var n,s,i,r,a,o,h,f,l,c,u=(t=t||{}).width||100,g=t.height||100,d=t.x||0,x=(t.y||0)+g,p=P.utils.toArray(t.path)[0];if(t.invert&&(g=-g,x=0),(e=(e="string"==typeof e?P.parseEase(e):e).custom?e.custom:e)instanceof v)n=function(e){for(var t,n,s,i="",r=(e="number"==typeof e[0]?[e]:e).length,a=0;a<r;a++){for(i+="M"+y((s=e[a])[0])+","+y(s[1])+" C",t=s.length,n=2;n<t;n++)i+=y(s[n++])+","+y(s[n++])+" "+y(s[n++])+","+y(s[n++])+" "+y(s[n++])+","+y(s[n])+" ";s.closed&&(i+="z")}return i}(function(e,t,n,s,i,r,a){for(var o,h,f,l,c,u=e.length;-1<--u;)for(h=(o=e[u]).length,f=0;f<h;f+=2)l=o[f],c=o[f+1],o[f]=l*t+c*s+r,o[f+1]=l*n+c*i+a;return e._dirty=1,e}([e.segment.slice(0)],u,0,0,-g,d,x));else{for(n=[d,x],r=1/(h=Math.max(5,200*(t.precision||1))),f=5/(h+=2),l=M(d+r*u),s=((c=M(x+e(r)*-g))-x)/(l-d),i=2;i<h;i++)a=M(d+i*r*u),o=M(x+e(i*r)*-g),(Math.abs((o-c)/(a-l)-s)>f||i===h-1)&&(n.push(l,c),s=(o-c)/(a-l)),l=a,c=o;n="M"+n.join(",")}return p&&p.setAttribute("d",n),n},v);function v(e,t,n){i||s(),this.id=e,this.setData(t,n)}r.version="3.15.0",r.headless=!0,t()&&P.registerPlugin(r),e.CustomEase=r,e.default=r,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function t(){return"undefined"!=typeof window}function o(){return a||t()&&(a=window.gsap)&&a.registerPlugin&&a}function s(e){return"string"==typeof e}function p(e){return"function"==typeof e}function d(e,t){var t="x"===t?"Width":"Height",o="scroll"+t,n="client"+t;return e===g||e===r||e===i?Math.max(r[o],i[o])-(g["inner"+t]||r[n]||i[n]):e[o]-e["offset"+t]}function f(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===g&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=r[o]?r:i),function(){return e[o]}}function l(e,t){var o,n;return(e=x(e)[0])&&e.getBoundingClientRect?(e=e.getBoundingClientRect(),n=(o=!t||t===g||t===i)?{top:r.clientTop-(g.pageYOffset||r.scrollTop||i.scrollTop||0),left:r.clientLeft-(g.pageXOffset||r.scrollLeft||i.scrollLeft||0)}:t.getBoundingClientRect(),e={x:e.left-n.left,y:e.top-n.top},!o&&t&&(e.x+=f(t,"x")(),e.y+=f(t,"y")()),e):console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0}}function c(e,t,o,n,r){return isNaN(e)||"object"==typeof e?s(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+n-r:"max"===e?d(t,o)-r:Math.min(d(t,o),l(e,t)[o]-r):parseFloat(e)-r}function u(){a=o(),t()&&a&&"undefined"!=typeof document&&document.body&&(g=window,i=document.body,r=document.documentElement,x=a.utils.toArray,a.config({autoKillThreshold:7}),T=a.config(),y=1)}var a,y,g,r,i,x,T,h,n={version:"3.15.0",name:"scrollTo",rawVars:1,register:function(e){a=e,u()},init:function(e,t,o,n,r){y||u();var l=this,i=a.getProperty(e,"scrollSnapType");l.isWin=e===g,l.target=e,l.tween=o,t=function(e,t,o,n){if("object"!=typeof(e=p(e)?e(t,o,n):e))return s(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var r,l={};for(r in e)l[r]="onAutoKill"!==r&&p(e[r])?e[r](t,o,n):e[r];return l}(t,n,e,r),l.vars=t,l.autoKill=!!("autoKill"in t?t:T).autoKill,l.getX=f(e,"x"),l.getY=f(e,"y"),l.x=l.xPrev=l.getX(),l.y=l.yPrev=l.getY(),h=h||a.core.globals().ScrollTrigger,"smooth"===a.getProperty(e,"scrollBehavior")&&a.set(e,{scrollBehavior:"auto"}),i&&"none"!==i&&(l.snap=1,l.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=t.x?(l.add(l,"x",l.x,c(t.x,e,"x",l.x,t.offsetX||0),n,r),l._props.push("scrollTo_x")):l.skipX=1,null!=t.y?(l.add(l,"y",l.y,c(t.y,e,"y",l.y,t.offsetY||0),n,r),l._props.push("scrollTo_y")):l.skipY=1},render:function(e,t){for(var o,n,r,l=t._pt,i=t.target,s=t.tween,p=t.autoKill,f=t.xPrev,c=t.yPrev,u=t.isWin,a=t.snap,y=t.snapInline;l;)l.r(e,l.d),l=l._next;o=u||!t.skipX?t.getX():f,c=(n=u||!t.skipY?t.getY():c)-c,f=o-f,r=T.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),p&&(!t.skipX&&(r<f||f<-r)&&o<d(i,"x")&&(t.skipX=1),!t.skipY&&(r<c||c<-r)&&n<d(i,"y")&&(t.skipY=1),t.skipX)&&t.skipY&&(s.kill(),t.vars.onAutoKill)&&t.vars.onAutoKill.apply(s,t.vars.onAutoKillParams||[]),u?g.scrollTo(t.skipX?o:t.x,t.skipY?n:t.y):(t.skipY||(i.scrollTop=t.y),t.skipX||(i.scrollLeft=t.x)),!a||1!==e&&0!==e||(n=i.scrollTop,o=i.scrollLeft,y?i.style.scrollSnapType=y:i.style.removeProperty("scroll-snap-type"),i.scrollTop=n+1,i.scrollLeft=o+1,i.scrollTop=n,i.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y,h&&h.update()},kill:function(e){var t="scrollTo"===e,o=this._props.indexOf(e);return!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1),-1<o&&this._props.splice(o,1),!this._props.length}};n.max=d,n.getOffset=l,n.buildGetter=f,n.config=function(e){for(var t in T||(u(),T=a.config()),e)T[t]=e[t]},o()&&a.registerPlugin(n),e.ScrollToPlugin=n,e.default=n,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,function(e){"use strict";let t,a,l="function"==typeof Symbol?Symbol():"_split",s,M="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,C=e=>e?"string"==typeof e?C(document.querySelectorAll(e)):"length"in e?Array.from(e).reduce((e,t)=>("string"==typeof t?e.push(...C(t)):e.push(t),e),[]):[e]:[],d=e=>C(e).filter(e=>e&&1===e.nodeType),H=[],o=function(){},i={add:e=>e()},D=/\s+/g,h=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),S={left:0,top:0,width:0,height:0},p=({element:e,html:t,ariaL:i,ariaH:n})=>{e.innerHTML=t,i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label"),n?e.setAttribute("aria-hidden",n):e.removeAttribute("aria-hidden")},P=(s,o)=>{if(o){let e=new Set(s.join("").match(o)||H),t=s.length,i,n,r,l;if(e.size)for(;-1<--t;){n=s[t];for(r of e)if(r.startsWith(n)&&r.length>n.length){for(i=0,l=n;r.startsWith(l+=s[t+ ++i])&&l.length<r.length;);if(i&&l.length===r.length){s[t]=r,s.splice(t+1,i);break}}}}return s},q=e=>"inline"===window.getComputedStyle(e).display&&(e.style.display="inline-block"),G=(e,t,i)=>t.insertBefore("string"==typeof e?document.createTextNode(e):e,i),T=(n,e,r)=>{let l=e[n+"sClass"]||"",{tag:s="div",aria:o="auto",propIndex:a=!1}=e,d="line"===n?"block":"inline-block",h=-1<l.indexOf("++"),t=e=>{var t=document.createElement(s),i=r.length+1;return l&&(t.className=l+(h?" "+l+i:"")),a&&t.style.setProperty("--"+n,i+""),"none"!==o&&t.setAttribute("aria-hidden","true"),"span"!==s&&(t.style.position="relative",t.style.display=d),t.textContent=e,r.push(t),t};return h&&(l=l.replace("++","")),t.collection=r,t},J=(e,t,i,n,r,l,s,o,a,d)=>{var h;let p=Array.from(e.childNodes),u=0,{wordDelimiter:c,reduceWhiteSpace:f=!0,prepareText:g}=t,m=e.getBoundingClientRect(),w=m,I=!f&&"pre"===window.getComputedStyle(e).whiteSpace.substring(0,3),v=0,y=i.collection,b,x,E,C,S,T,N,L,A,_,R,k,W,z,B,O,j,F;for(b=" "!==(x="object"==typeof c?(E=c.delimiter||c,c.replaceWith||""):""===c?"":c||" ");u<p.length;u++)if(3===(C=p[u]).nodeType){for(B=C.textContent||"",f?B=B.replace(D," "):I&&(B=B.replace(/\n/g,x+` `)),g&&(B=g(B,e)),C.textContent=B,S=x||E?B.split(E||x):B.match(o)||H,j=S[S.length-1],L=b?" "===j.slice(-1):!j,j||S.pop(),w=m,(N=b?" "===S[0].charAt(0):!S[0])&&G(" ",e,C),S[0]||S.shift(),P(S,a),l&&d||(C.textContent=""),A=1;A<=S.length;A++)if(O=S[A-1],!f&&I&&O.charAt(0)===` `&&(null!=(h=C.previousSibling)&&h.remove(),G(document.createElement("br"),e,C),O=O.slice(1)),f||""!==O)if(" "===O)e.insertBefore(document.createTextNode(" "),C);else{if(b&&" "===O.charAt(0)&&G(" ",e,C),v&&1===A&&!N&&-1<y.indexOf(v.parentNode)?(T=y[y.length-1]).appendChild(document.createTextNode(n?"":O)):(T=i(n?"":O),G(T,e,C),v&&1===A&&!N&&T.insertBefore(v,T.firstChild)),n)for(R=M?P([...M.segment(O)].map(e=>e.segment),a):O.match(o)||H,F=0;F<R.length;F++)T.appendChild(" "===R[F]?document.createTextNode(" "):n(R[F]));if(l&&d){if(B=C.textContent=B.substring(O.length+1,B.length),(_=T.getBoundingClientRect()).top>w.top&&_.left<=w.left){for(k=e.cloneNode(),W=e.childNodes[0];W&&W!==T;)W=(z=W).nextSibling,k.appendChild(z);e.parentNode.insertBefore(k,e),r&&q(k)}w=_}(A<S.length||L)&&G(A>=S.length?" ":b&&" "===O.slice(-1)?" "+x:x,e,C)}else G(x,e,C);e.removeChild(C),v=0}else 1===C.nodeType&&(v=s&&-1<s.indexOf(C)?(-1<y.indexOf(C.previousSibling)&&y[y.length-1].appendChild(C),C):(J(C,t,i,n,r,l,s,o,a,!0),0),r)&&q(C)};var n=class r{constructor(e,i){this.isSplit=!1,s||u.register(window.gsap),this.elements=d(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=i,this.elements.forEach(t=>{var e;!1!==i.overwrite&&null!=(e=t[l])&&e._data.orig.filter(({element:e})=>e===t).forEach(p),t[l]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let n=[],t,r=()=>{let e=n.length,t;for(;e--;){var i=(t=n[e]).element.offsetWidth;if(i!==t.width)return t.width=i,void this._split()}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(t),t=setTimeout(r,200)})},o(this),this.split(i)}split(E){return(this._ctx||i).add(()=>{this.isSplit&&this.revert(),this.vars=E=E||this.vars||{};let{type:e="chars,words,lines",aria:p="auto",deepSlice:u=!0,smartWrap:c,onSplit:t,autoSplit:i=!1,specialChars:n,mask:r}=this.vars,f=-1<e.indexOf("lines"),g=-1<e.indexOf("chars"),m=-1<e.indexOf("words"),w=g&&!m&&!f,v=n&&("push"in n?new RegExp("(?:"+n.join("|")+")","gu"):n),y=v?new RegExp(v.source+"|"+h.source,"gu"):h,b=!!E.ignore&&d(E.ignore),{orig:x,animTime:l,obs:s}=this._data,o;(g||m||f)&&(this.elements.forEach((a,e)=>{x[e]={element:a,html:a.innerHTML,ariaL:a.getAttribute("aria-label"),ariaH:a.getAttribute("aria-hidden")},"auto"===p?a.setAttribute("aria-label",(a.textContent||"").trim()):"hidden"===p&&a.setAttribute("aria-hidden","true");let t=[],i=[],d=[],n=g?T("char",E,t):null,r=T("word",E,i),h,l,s,o;if(J(a,E,r,n,w,u&&(f||w),b,y,v,!1),f){let e=C(a.childNodes),t=((n,r,e,t)=>{let l=T("line",e,t),s=window.getComputedStyle(n).textAlign||"left";return(e,t)=>{var i=l("");for(i.style.textAlign=s,n.insertBefore(i,r[e]);e<t;e++)i.appendChild(r[e]);i.normalize()}})(a,e,E,d),i,n=[],r=0,l=e.map(e=>1===e.nodeType?e.getBoundingClientRect():S),s=S,o;for(h=0;h<e.length;h++)1===(i=e[h]).nodeType&&(s="BR"===i.nodeName?(h&&"BR"===e[h-1].nodeName||(n.push(i),t(r,h+1)),r=h+1,((e,t)=>{for(;++t<e.length&&e[t]===S;);return e[t]||S})(l,h)):(o=l[h],h&&o.top>s.top&&o.left<s.left+s.width-1&&(t(r,h),r=h),o));r<h&&t(r,h),n.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})}if(!m){for(h=0;h<i.length;h++)if(l=i[h],g||!l.nextSibling||3!==l.nextSibling.nodeType)if(c&&!f){for((s=document.createElement("span")).style.whiteSpace="nowrap";l.firstChild;)s.appendChild(l.firstChild);l.replaceWith(s)}else l.replaceWith(...l.childNodes);else(o=l.nextSibling)&&3===o.nodeType&&(o.textContent=(l.textContent||"")+(o.textContent||""),l.remove());i.length=0,a.normalize()}this.lines.push(...d),this.words.push(...i),this.chars.push(...t)}),r)&&this[r]&&this.masks.push(...this[r].map(e=>{var t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.trim().split(" ").map(e=>e+"-mask").join(" ")),t.style.overflow="clip",t})),this.isSplit=!0,a&&f&&i&&a.addEventListener("loadingdone",this._split),(o=t&&t(this))&&o.totalTime&&(this._data.anim=l?o.totalTime(l):o),f&&i&&this.elements.forEach((e,t)=>{x[t].width=e.offsetWidth,s&&s.observe(e)})}),this}kill(){var e=this._data["obs"];e&&e.disconnect(),null!=a&&a.removeEventListener("loadingdone",this._split)}revert(){var e,t;return this.isSplit&&({orig:e,anim:t}=this._data,this.kill(),e.forEach(p),this.chars.length=this.words.length=this.lines.length=e.length=this.masks.length=0,this.isSplit=!1,t&&(this._data.animTime=t.totalTime(),t.revert()),null!=(t=(e=this.vars).onRevert))&&t.call(e,this),this}static create(e,t){return new r(e,t)}static register(e){(t=t||e||window.gsap)&&(C=t.utils.toArray,o=t.core.context||o),!s&&0<window.innerWidth&&(a=document.fonts,s=!0)}};n.version="3.15.0";let u=n;e.SplitText=u,e.default=u,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}); var Swiper=function(){"use strict";function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(t,a){void 0===t&&(t={}),void 0===a&&(a={}),Object.keys(a).forEach(e=>{void 0===t[e]?t[e]=a[e]:s(a[e])&&s(t[e])&&0<Object.keys(a[e]).length&&i(t[e],a[e])})}const t={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 I(){var e="undefined"!=typeof document?document:{};return i(e,t),e}const v={document:t,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 A(){var e="undefined"!=typeof window?window:{};return i(e,v),e}function T(e){return(e=void 0===e?"":e).trim().split(" ").filter(e=>!!e.trim())}function M(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function g(){return Date.now()}function k(e,t){void 0===t&&(t="x");var a=A();let s,i,r;e=function(e){var t=A();let a;return a=(a=!(a=t.getComputedStyle?t.getComputedStyle(e,null):a)&&e.currentStyle?e.currentStyle:a)||e.style}(e);return a.WebKitCSSMatrix?(6<(i=e.transform||e.webkitTransform).split(",").length&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix("none"===i?"":i)):(r=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),"x"===t&&(i=a.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),(i="y"===t?a.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5]):i)||0}function d(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function w(e){const a=Object(arguments.length<=0?void 0:e),t=["__proto__","constructor","prototype"];for(let e=1;e<arguments.length;e+=1){var s=e<0||arguments.length<=e?void 0:arguments[e];if(null!=s&&(l=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?l instanceof HTMLElement:l&&(1===l.nodeType||11===l.nodeType)))){const l=Object.keys(Object(s)).filter(e=>t.indexOf(e)<0);for(let e=0,t=l.length;e<t;e+=1){var i=l[e],r=Object.getOwnPropertyDescriptor(s,i);void 0!==r&&r.enumerable&&(d(a[i])&&d(s[i])?s[i].__swiper__?a[i]=s[i]:w(a[i],s[i]):d(a[i])||!d(s[i])||(a[i]={},s[i].__swiper__)?a[i]=s[i]:w(a[i],s[i]))}}}var l;return a}function L(e,t,a){e.style.setProperty(t,a)}function b(e){let{swiper:a,targetPosition:s,side:i}=e;const r=A(),l=-a.translate;let n,o=null;const d=a.params.speed,p=(a.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(a.cssModeFrameID),s>l?"next":"prev"),c=(e,t)=>"next"===p&&t<=e||"prev"===p&&e<=t,u=()=>{n=(new Date).getTime(),null===o&&(o=n);var e=Math.max(Math.min((n-o)/d,1),0),e=.5-Math.cos(e*Math.PI)/2;let t=l+e*(s-l);c(t,s)&&(t=s),a.wrapperEl.scrollTo({[i]:t}),c(t,s)?(a.wrapperEl.style.overflow="hidden",a.wrapperEl.style.scrollSnapType="",setTimeout(()=>{a.wrapperEl.style.overflow="",a.wrapperEl.scrollTo({[i]:t})}),r.cancelAnimationFrame(a.cssModeFrameID)):a.cssModeFrameID=r.requestAnimationFrame(u)};u()}function r(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function O(e,t){void 0===t&&(t="");var a=[...e.children];return e instanceof HTMLSlotElement&&a.push(...e.assignedElements()),t?a.filter(e=>e.matches(t)):a}function P(e){try{console.warn(e)}catch(e){}}function z(e,t){void 0===t&&(t=[]);e=document.createElement(e);return e.classList.add(...Array.isArray(t)?t:T(t)),e}function D(e){var t=A(),a=I(),s=e.getBoundingClientRect(),a=a.body,i=e.clientTop||a.clientTop||0,a=e.clientLeft||a.clientLeft||0,r=e===t?t.scrollY:e.scrollTop,t=e===t?t.scrollX:e.scrollLeft;return{top:s.top+r-i,left:s.left+t-a}}function C(e,t){return A().getComputedStyle(e,null).getPropertyValue(t)}function G(e){let t,a=e;if(a){for(t=0;null!==(a=a.previousSibling);)1===a.nodeType&&(t+=1);return t}}function H(e,t){var a=[];let s=e.parentElement;for(;s;)t&&!s.matches(t)||a.push(s),s=s.parentElement;return a}function f(a,s){s&&a.addEventListener("transitionend",function e(t){t.target===a&&(s.call(a,t),a.removeEventListener("transitionend",e))})}function B(e,t,a){var s=A();return a?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function N(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function E(t){return e=>0<Math.abs(e)&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90==0?e+.001:e}let y,e,$;function R(){return y=y||(e=A(),{smoothScroll:(t=I()).documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)});var e,t}function q(c){return void 0===c&&(c={}),e=e||function(){var e=(void 0===c?{}:c)["userAgent"],t=R(),a=A(),s=a.navigator.platform,e=e||a.navigator.userAgent,i={ios:!1,android:!1},r=a.screen.width,a=a.screen.height,l=e.match(/(Android);?[\s\/]+([\d.]+)?/);let n=e.match(/(iPad).*OS\s([\d_]+)/);var o=e.match(/(iPod)(.*OS\s([\d_]+))?/),d=!n&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===s,s="MacIntel"===s;return!n&&s&&t.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(r+"x"+a)&&(n=(n=e.match(/(Version)\/([\d.]+)/))||[0,1,"13_0_0"]),l&&!p&&(i.os="android",i.android=!0),(n||d||o)&&(i.os="ios",i.ios=!0),i}()}const V=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)},c=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)},l=(t,e)=>{if(t&&!t.destroyed&&t.params){const a=e.closest(t.isElement?"swiper-slide":"."+t.params.slideClass);if(a){let e=a.querySelector("."+t.params.lazyPreloaderClass);!e&&t.isElement&&(a.shadowRoot?e=a.shadowRoot.querySelector("."+t.params.lazyPreloaderClass):requestAnimationFrame(()=>{a.shadowRoot&&(e=a.shadowRoot.querySelector("."+t.params.lazyPreloaderClass))&&e.remove()})),e&&e.remove()}}},o=(e,t)=>{e.slides[t]&&(e=e.slides[t].querySelector('[loading="lazy"]'))&&e.removeAttribute("loading")},u=s=>{if(s&&!s.destroyed&&s.params){let a=s.params.lazyPreloadPrevNext;const i=s.slides.length;if(i&&a&&!(a<0)){a=Math.min(a,i);const r="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():Math.ceil(s.params.slidesPerView),l=s.activeIndex;if(s.params.grid&&1<s.params.grid.rows){const i=l,n=[i-a];n.push(...Array.from({length:a}).map((e,t)=>i+r+t)),void s.slides.forEach((e,t)=>{n.includes(e.column)&&o(s,t)})}else{const n=l+r-1;if(s.params.rewind||s.params.loop)for(let t=l-a;t<=n+a;t+=1){const e=(t%i+i)%i;(e<l||e>n)&&o(s,e)}else for(let e=Math.max(l-a,0);e<=Math.min(n+a,i-1);e+=1)e!==l&&(e>n||e<l)&&o(s,e)}}}};function F(e){var{swiper:e,runCallbacks:t,direction:a,step:s}=e,{activeIndex:i,previousIndex:r}=e;let l=a;if(l=l||(r<i?"next":i<r?"prev":"reset"),e.emit("transition"+s),t&&i!==r){if("reset"===l)return e.emit("slideResetTransition"+s);e.emit("slideChangeTransition"+s),"next"===l?e.emit("slideNextTransition"+s):e.emit("slidePrevTransition"+s)}}function _(e,t,a){var s=A(),e=e["params"],i=e.edgeSwipeDetection,e=e.edgeSwipeThreshold;return!i||!(a<=e||a>=s.innerWidth-e)||"prevent"===i&&(t.preventDefault(),!0)}function W(){const e=this,{params:t,el:a}=e;var s,i,r,l,n;a&&0===a.offsetWidth||(t.breakpoints&&e.setBreakpoint(),{allowSlideNext:s,allowSlidePrev:i,snapGrid:r}=e,l=e.virtual&&e.params.virtual.enabled,e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),n=l&&t.loop,!("auto"===t.slidesPerView||1<t.slidesPerView)||!e.isEnd||e.isBeginning||e.params.centeredSlides||n?e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=s,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow())}const j=(e,t)=>{var a=I(),{params:s,el:i,wrapperEl:r,device:l}=e,n=!!s.nested,o="on"===t?"addEventListener":"removeEventListener";i&&"string"!=typeof i&&(a[o]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:n}),i[o]("touchstart",e.onTouchStart,{passive:!1}),i[o]("pointerdown",e.onTouchStart,{passive:!1}),a[o]("touchmove",e.onTouchMove,{passive:!1,capture:n}),a[o]("pointermove",e.onTouchMove,{passive:!1,capture:n}),a[o]("touchend",e.onTouchEnd,{passive:!0}),a[o]("pointerup",e.onTouchEnd,{passive:!0}),a[o]("pointercancel",e.onTouchEnd,{passive:!0}),a[o]("touchcancel",e.onTouchEnd,{passive:!0}),a[o]("pointerout",e.onTouchEnd,{passive:!0}),a[o]("pointerleave",e.onTouchEnd,{passive:!0}),a[o]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&i[o]("click",e.onClick,!0),s.cssMode&&r[o]("scroll",e.onScroll),s.updateOnWindowResize?e[t](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",W,!0):e[t]("observerUpdate",W,!0),i[o]("load",e.onLoad,{capture:!0}))},U=(e,t)=>e.grid&&t.grid&&1<t.grid.rows;var K={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};const a={eventsEmitter:{on(e,t,a){const s=this;if(s.eventsListeners&&!s.destroyed&&"function"==typeof t){const i=a?"unshift":"push";e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][i](t)})}return s},once(s,i,e){const r=this;return!r.eventsListeners||r.destroyed||"function"!=typeof i?r:(l.__emitterProxy=i,r.on(s,l,e));function l(){r.off(s,l),l.__emitterProxy&&delete l.__emitterProxy;for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];i.apply(r,t)}},onAny(e,t){var a=this;return a.eventsListeners&&!a.destroyed&&"function"==typeof e&&(t=t?"unshift":"push",a.eventsAnyListeners.indexOf(e)<0)&&a.eventsAnyListeners[t](e),a},offAny(e){var t=this;return t.eventsListeners&&!t.destroyed&&t.eventsAnyListeners&&0<=(e=t.eventsAnyListeners.indexOf(e))&&t.eventsAnyListeners.splice(e,1),t},off(e,s){const i=this;return!i.eventsListeners||i.destroyed||i.eventsListeners&&e.split(" ").forEach(a=>{void 0===s?i.eventsListeners[a]=[]:i.eventsListeners[a]&&i.eventsListeners[a].forEach((e,t)=>{(e===s||e.__emitterProxy&&e.__emitterProxy===s)&&i.eventsListeners[a].splice(t,1)})}),i},emit(){const i=this;if(i.eventsListeners&&!i.destroyed&&i.eventsListeners){let e,a,s;for(var t=arguments.length,r=new Array(t),l=0;l<t;l++)r[l]=arguments[l];s="string"==typeof r[0]||Array.isArray(r[0])?(e=r[0],a=r.slice(1,r.length),i):(e=r[0].events,a=r[0].data,r[0].context||i),a.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(t=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(e=>{e.apply(s,[t,...a])}),i.eventsListeners&&i.eventsListeners[t]&&i.eventsListeners[t].forEach(e=>{e.apply(s,a)})})}return i}},update:{updateSize:function(){var e=this;let t,a;var s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,a=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===a&&e.isVertical()||(t=t-parseInt(C(s,"padding-left")||0,10)-parseInt(C(s,"padding-right")||0,10),a=a-parseInt(C(s,"padding-top")||0,10)-parseInt(C(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(a)&&(a=0),Object.assign(e,{width:t,height:a,size:e.isHorizontal()?t:a}))},updateSlides:function(){const s=this;function i(e,t){return parseFloat(e.getPropertyValue(s.getDirectionLabel(t))||0)}const r=s.params,{wrapperEl:l,slidesEl:t,size:n,rtlTranslate:o,wrongRTL:d}=s,p=s.virtual&&r.virtual.enabled,e=(p?s.virtual:s).slides.length,c=O(t,`.${s.params.slideClass}, swiper-slide`),u=(p?s.virtual.slides:c).length;let m=[];const h=[],f=[];let v=r.slidesOffsetBefore,g=("function"==typeof v&&(v=r.slidesOffsetBefore.call(s)),r.slidesOffsetAfter);"function"==typeof g&&(g=r.slidesOffsetAfter.call(s));var w=s.snapGrid.length,b=s.slidesGrid.length;let y=r.spaceBetween,E=-v,x=0,S=0;if(void 0!==n){"string"==typeof y&&0<=y.indexOf("%")?y=parseFloat(y.replace("%",""))/100*n:"string"==typeof y&&(y=parseFloat(y)),s.virtualSize=-y,c.forEach(e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(L(l,"--swiper-centered-offset-before",""),L(l,"--swiper-centered-offset-after",""));var T=r.grid&&1<r.grid.rows&&s.grid;let a;T?s.grid.initSlides(c):s.grid&&s.grid.unsetSlides();var M="auto"===r.slidesPerView&&r.breakpoints&&0<Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length;for(let t=0;t<u;t+=1){let e;if(a=0,c[t]&&(e=c[t]),T&&s.grid.updateSlide(t,e,c),!c[t]||"none"!==C(e,"display")){if("auto"===r.slidesPerView){M&&(c[t].style[s.getDirectionLabel("width")]="");const n=getComputedStyle(e),o=e.style.transform,d=e.style.webkitTransform;if(o&&(e.style.transform="none"),d&&(e.style.webkitTransform="none"),r.roundLengths)a=s.isHorizontal()?B(e,"width",!0):B(e,"height",!0);else{const s=i(n,"width"),r=i(n,"padding-left"),l=i(n,"padding-right"),o=i(n,"margin-left"),d=i(n,"margin-right"),p=n.getPropertyValue("box-sizing");if(p&&"border-box"===p)a=s+o+d;else{const{clientWidth:i,offsetWidth:n}=e;a=s+r+l+o+d+(n-i)}}o&&(e.style.transform=o),d&&(e.style.webkitTransform=d),r.roundLengths&&(a=Math.floor(a))}else a=(n-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(a=Math.floor(a)),c[t]&&(c[t].style[s.getDirectionLabel("width")]=a+"px");c[t]&&(c[t].swiperSlideSize=a),f.push(a),r.centeredSlides?(E=E+a/2+x/2+y,0===x&&0!==t&&(E=E-n/2-y),0===t&&(E=E-n/2-y),Math.abs(E)<.001&&(E=0),r.roundLengths&&(E=Math.floor(E)),S%r.slidesPerGroup==0&&m.push(E),h.push(E)):(r.roundLengths&&(E=Math.floor(E)),(S-Math.min(s.params.slidesPerGroupSkip,S))%s.params.slidesPerGroup==0&&m.push(E),h.push(E),E=E+a+y),s.virtualSize+=a+y,x=a,S+=1}}if(s.virtualSize=Math.max(s.virtualSize,n)+g,o&&d&&("slide"===r.effect||"coverflow"===r.effect)&&(l.style.width=s.virtualSize+y+"px"),r.setWrapperSize&&(l.style[s.getDirectionLabel("width")]=s.virtualSize+y+"px"),T&&s.grid.updateWrapperSize(a,m),!r.centeredSlides){const i=[];for(let t=0;t<m.length;t+=1){let e=m[t];r.roundLengths&&(e=Math.floor(e)),m[t]<=s.virtualSize-n&&i.push(e)}m=i,1<Math.floor(s.virtualSize-n)-Math.floor(m[m.length-1])&&m.push(s.virtualSize-n)}if(p&&r.loop){const i=f[0]+y;if(1<r.slidesPerGroup){const l=Math.ceil((s.virtual.slidesBefore+s.virtual.slidesAfter)/r.slidesPerGroup),t=i*r.slidesPerGroup;for(let e=0;e<l;e+=1)m.push(m[m.length-1]+t)}for(let e=0;e<s.virtual.slidesBefore+s.virtual.slidesAfter;e+=1)1===r.slidesPerGroup&&m.push(m[m.length-1]+i),h.push(h[h.length-1]+i),s.virtualSize+=i}if(0===m.length&&(m=[0]),0!==y){const i=s.isHorizontal()&&o?"marginLeft":s.getDirectionLabel("marginRight");c.filter((e,t)=>!(r.cssMode&&!r.loop)||t!==c.length-1).forEach(e=>{e.style[i]=y+"px"})}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;f.forEach(e=>{t+=e+(y||0)});const i=(t-=y)>n?t-n:0;m=m.map(e=>e<=0?-v:e>i?i+g:e)}if(r.centerInsufficientSlides){let t=0;f.forEach(e=>{t+=e+(y||0)}),t-=y;const i=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(t+i<n){const r=(n-t-i)/2;m.forEach((e,t)=>{m[t]=e-r}),h.forEach((e,t)=>{h[t]=e+r})}}if(Object.assign(s,{slides:c,snapGrid:m,slidesGrid:h,slidesSizesGrid:f}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){L(l,"--swiper-centered-offset-before",-m[0]+"px"),L(l,"--swiper-centered-offset-after",s.size/2-f[f.length-1]/2+"px");const i=-s.snapGrid[0],r=-s.slidesGrid[0];s.snapGrid=s.snapGrid.map(e=>e+i),s.slidesGrid=s.slidesGrid.map(e=>e+r)}if(u!==e&&s.emit("slidesLengthChange"),m.length!==w&&(s.params.watchOverflow&&s.checkOverflow(),s.emit("snapGridLengthChange")),h.length!==b&&s.emit("slidesGridLengthChange"),r.watchSlidesProgress&&s.updateSlidesOffset(),s.emit("slidesUpdated"),!(p||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){const i=r.containerModifierClass+"backface-hidden",l=s.el.classList.contains(i);u<=r.maxBackfaceHiddenSlides?l||s.el.classList.add(i):l&&s.el.classList.remove(i)}}},updateAutoHeight:function(e){const t=this,a=[],s=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);var l=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&1<t.params.slidesPerView)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{a.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!s)break;a.push(l(e))}else a.push(l(t.activeIndex));for(i=0;i<a.length;i+=1)if(void 0!==a[i]){const e=a[i].offsetHeight;r=e>r?e:r}!r&&0!==r||(t.wrapperEl.style.height=r+"px")},updateSlidesOffset:function(){var t=this,a=t.slides,s=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let e=0;e<a.length;e+=1)a[e].swiperSlideOffset=(t.isHorizontal()?a[e].offsetLeft:a[e].offsetTop)-s-t.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var i=this,r=i.params,{slides:l,rtlTranslate:n,snapGrid:o}=i;if(0!==l.length){void 0===l[0].swiperSlideOffset&&i.updateSlidesOffset();let a=n?e:-e,s=(i.visibleSlidesIndexes=[],i.visibleSlides=[],r.spaceBetween);"string"==typeof s&&0<=s.indexOf("%")?s=parseFloat(s.replace("%",""))/100*i.size:"string"==typeof s&&(s=parseFloat(s));for(let t=0;t<l.length;t+=1){var d=l[t];let e=d.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(e-=l[0].swiperSlideOffset);var p=(a+(r.centeredSlides?i.minTranslate():0)-e)/(d.swiperSlideSize+s),c=(a-o[0]+(r.centeredSlides?i.minTranslate():0)-e)/(d.swiperSlideSize+s),u=-(a-e),m=u+i.slidesSizesGrid[t],h=0<=u&&u<=i.size-i.slidesSizesGrid[t],u=0<=u&&u<i.size-1||1<m&&m<=i.size||u<=0&&m>=i.size;u&&(i.visibleSlides.push(d),i.visibleSlidesIndexes.push(t)),V(d,u,r.slideVisibleClass),V(d,h,r.slideFullyVisibleClass),d.progress=n?-p:p,d.originalProgress=n?-c:c}}},updateProgress:function(e){var t=this;if(void 0===e){const a=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*a||0}const a=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:l,progressLoop:n}=t;const o=r,d=l;if(0===s)i=0,r=!0,l=!0;else{i=(e-t.minTranslate())/s;const a=Math.abs(e-t.minTranslate())<1,n=Math.abs(e-t.maxTranslate())<1;r=a||i<=0,l=n||1<=i,a&&(i=0),n&&(i=1)}if(a.loop){const a=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[a],r=t.slidesGrid[s],l=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);1<(n=o>=i?(o-i)/l:(o+l-r)/l)&&--n}Object.assign(t,{progress:i,progressLoop:n,isBeginning:r,isEnd:l}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),l&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!l)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const t=this,{slides:e,params:a,slidesEl:s,activeIndex:i}=t,r=t.virtual&&a.virtual.enabled,l=t.grid&&a.grid&&1<a.grid.rows,n=e=>O(s,`.${a.slideClass}${e}, swiper-slide`+e)[0];let o,d,p;if(r)if(a.loop){let e=i-t.virtual.slidesBefore;(e=e<0?t.virtual.slides.length+e:e)>=t.virtual.slides.length&&(e-=t.virtual.slides.length),o=n(`[data-swiper-slide-index="${e}"]`)}else o=n(`[data-swiper-slide-index="${i}"]`);else l?(o=e.filter(e=>e.column===i)[0],p=e.filter(e=>e.column===i+1)[0],d=e.filter(e=>e.column===i-1)[0]):o=e[i];o&&!l&&(p=function(e,t){for(var a=[];e.nextElementSibling;){var s=e.nextElementSibling;t&&!s.matches(t)||a.push(s),e=s}return a}(o,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!p&&(p=e[0]),d=function(e,t){for(var a=[];e.previousElementSibling;){var s=e.previousElementSibling;t&&!s.matches(t)||a.push(s),e=s}return a}(o,`.${a.slideClass}, swiper-slide`)[0],a.loop)&&0===!d&&(d=e[e.length-1]),e.forEach(e=>{c(e,e===o,a.slideActiveClass),c(e,e===p,a.slideNextClass),c(e,e===d,a.slidePrevClass)}),t.emitSlidesClasses()},updateActiveIndex:function(a){const s=this,e=s.rtlTranslate?s.translate:-s.translate,{snapGrid:t,params:i,activeIndex:r,realIndex:l,snapIndex:n}=s;let o,d=a;a=e=>{let t=e-s.virtual.slidesBefore;return(t=t<0?s.virtual.slides.length+t:t)>=s.virtual.slides.length&&(t-=s.virtual.slides.length),t};if(void 0===d&&(d=function(e){var{slidesGrid:t,params:a}=e,s=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?i=e:s>=t[e]&&s<t[e+1]&&(i=e+1):s>=t[e]&&(i=e);return i=a.normalizeSlideIndex&&(i<0||void 0===i)?0:i}(s)),0<=t.indexOf(e))o=t.indexOf(e);else{const a=Math.min(i.slidesPerGroupSkip,d);o=a+Math.floor((d-a)/i.slidesPerGroup)}if(o>=t.length&&(o=t.length-1),d!==r||s.params.loop)if(d===r&&s.params.loop&&s.virtual&&s.params.virtual.enabled)s.realIndex=a(d);else{var p=s.grid&&i.grid&&1<i.grid.rows;let t;if(s.virtual&&i.virtual.enabled&&i.loop)t=a(d);else if(p){const a=s.slides.filter(e=>e.column===d)[0];let e=parseInt(a.getAttribute("data-swiper-slide-index"),10);Number.isNaN(e)&&(e=Math.max(s.slides.indexOf(a),0)),t=Math.floor(e/i.grid.rows)}else if(s.slides[d]){const a=s.slides[d].getAttribute("data-swiper-slide-index");t=a?parseInt(a,10):d}else t=d;Object.assign(s,{previousSnapIndex:n,snapIndex:o,previousRealIndex:l,realIndex:t,previousIndex:r,activeIndex:d}),s.initialized&&u(s),s.emit("activeIndexChange"),s.emit("snapIndexChange"),(s.initialized||s.params.runCallbacksOnInit)&&(l!==t&&s.emit("realIndexChange"),s.emit("slideChange"))}else o!==n&&(s.snapIndex=o,s.emit("snapIndexChange"))},updateClickedSlide:function(e,t){const a=this,s=a.params;let i=e.closest(`.${s.slideClass}, swiper-slide`);!i&&a.isElement&&t&&1<t.length&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(i=e)});let r,l=!1;if(i)for(let e=0;e<a.slides.length;e+=1)if(a.slides[e]===i){l=!0,r=e;break}i&&l?(a.clickedSlide=i,a.virtual&&a.params.virtual.enabled?a.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):a.clickedIndex=r,s.slideToClickedSlide&&void 0!==a.clickedIndex&&a.clickedIndex!==a.activeIndex&&a.slideToClickedSlide()):(a.clickedSlide=void 0,a.clickedIndex=void 0)}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var{params:t,rtlTranslate:a,translate:s,wrapperEl:i}=this;if(t.virtualTranslate)return a?-s:s;if(t.cssMode)return s;let r=k(i,e);return r+=this.cssOverflowAdjustment(),(r=a?-r:r)||0},setTranslate:function(e,t){var a=this,{rtlTranslate:s,params:i,wrapperEl:r,progress:l}=a;let n=0,o=0;a.isHorizontal()?n=s?-e:e:o=e,i.roundLengths&&(n=Math.floor(n),o=Math.floor(o)),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?n:o,i.cssMode?r[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-n:-o:i.virtualTranslate||(a.isHorizontal()?n-=a.cssOverflowAdjustment():o-=a.cssOverflowAdjustment(),r.style.transform=`translate3d(${n}px, ${o}px, 0px)`);s=a.maxTranslate()-a.minTranslate();(0==s?0:(e-a.minTranslate())/s)!==l&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,a,s,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===a&&(a=!0),void 0===s&&(s=!0);const r=this,{params:l,wrapperEl:n}=r;if(r.animating&&l.preventInteractionOnTransition)return!1;var o=r.minTranslate(),d=r.maxTranslate(),o=s&&o<e?o:s&&e<d?d:e;if(r.updateProgress(o),l.cssMode){const e=r.isHorizontal();if(0===t)n[e?"scrollLeft":"scrollTop"]=-o;else{if(!r.support.smoothScroll)return b({swiper:r,targetPosition:-o,side:e?"left":"top"}),!0;n.scrollTo({[e?"left":"top"]:-o,behavior:"smooth"})}}else 0===t?(r.setTransition(0),r.setTranslate(o),a&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(o),a&&(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.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,a)&&r.emit("transitionEnd")}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd)));return!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=e+"ms",this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var a=this["params"];a.cssMode||(a.autoHeight&&this.updateAutoHeight(),F({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);var a=this["params"];this.animating=!1,a.cssMode||(this.setTransition(0),F({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,a,s,i){void 0===a&&(a=!0),"string"==typeof(e=void 0===e?0:e)&&(e=parseInt(e,10));const r=this;let l=e;l<0&&(l=0);const{params:n,snapGrid:o,slidesGrid:d,previousIndex:p,activeIndex:c,rtlTranslate:u,wrapperEl:m,enabled:h}=r;if(!h&&!s&&!i||r.destroyed||r.animating&&n.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);e=Math.min(r.params.slidesPerGroupSkip,l);let f=e+Math.floor((l-e)/r.params.slidesPerGroup);var v=-o[f=f>=o.length?o.length-1:f];if(n.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*v),a=Math.floor(100*d[e]),s=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=a&&t<s-(s-a)/2?l=e:t>=a&&t<s&&(l=e+1):t>=a&&(l=e)}if(r.initialized&&l!==c){if(!r.allowSlideNext&&(u?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(c||0)!==l)return!1}let g;l!==(p||0)&&a&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),g=l>c?"next":l<c?"prev":"reset";var w=r.virtual&&r.params.virtual.enabled;if((!w||!i)&&(u&&-v===r.translate||!u&&v===r.translate))return r.updateActiveIndex(l),n.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==n.effect&&r.setTranslate(v),"reset"!=g&&(r.transitionStart(a,g),r.transitionEnd(a,g)),!1;if(n.cssMode){const e=r.isHorizontal(),a=u?v:-v;if(0===t)w&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),w&&!r._cssModeVirtualInitialSet&&0<r.params.initialSlide?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=a})):m[e?"scrollLeft":"scrollTop"]=a,w&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return b({swiper:r,targetPosition:a,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:a,behavior:"smooth"})}}else r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(l),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(a,g),0===t?r.transitionEnd(a,g):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(a,g))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd));return!0},slideToLoop:function(i,r,l,n){void 0===l&&(l=!0),"string"==typeof(i=void 0===i?0:i)&&(i=parseInt(i,10));const o=this;if(!o.destroyed){void 0===r&&(r=o.params.speed);var d=o.grid&&o.params.grid&&1<o.params.grid.rows;let s=i;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)s+=o.virtual.slidesBefore;else{let e;if(d){const r=s*o.params.grid.rows;e=o.slides.filter(e=>+e.getAttribute("data-swiper-slide-index")==r)[0].column}else e=o.getSlideIndexByData(s);const r=d?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,l=o.params["centeredSlides"];let t=o.params.slidesPerView,a=("auto"===t?t=o.slidesPerViewDynamic():(t=Math.ceil(parseFloat(o.params.slidesPerView,10)),l&&t%2==0&&(t+=1)),r-e<t);if(l&&(a=a||e<Math.ceil(t/2)),a=n&&l&&"auto"!==o.params.slidesPerView&&!d?!1:a){const n=l?e<o.activeIndex?"prev":"next":e-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"==n?e+1:e-r+1,slideRealIndex:"next"==n?o.realIndex:void 0})}if(d){const i=s*o.params.grid.rows;s=o.slides.filter(e=>+e.getAttribute("data-swiper-slide-index")==i)[0].column}else s=o.getSlideIndexByData(s)}return requestAnimationFrame(()=>{o.slideTo(s,r,l,n)}),o}},slideNext:function(e,t,a){void 0===t&&(t=!0);const s=this,{enabled:i,params:r,animating:l}=s;if(!i||s.destroyed)return s;void 0===e&&(e=s.params.speed);let n=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(n=Math.max(s.slidesPerViewDynamic("current",!0),1));const o=s.activeIndex<r.slidesPerGroupSkip?1:n,d=s.virtual&&r.virtual.enabled;if(r.loop){if(l&&!d&&r.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+o,e,t,a)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,e,t,a):s.slideTo(s.activeIndex+o,e,t,a)},slidePrev:function(e,t,a){void 0===t&&(t=!0);const s=this,{params:i,snapGrid:r,slidesGrid:l,rtlTranslate:n,enabled:o,animating:d}=s;if(!o||s.destroyed)return s;void 0===e&&(e=s.params.speed);var p=s.virtual&&i.virtual.enabled;if(i.loop){if(d&&!p&&i.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=c(n?s.translate:-s.translate),m=r.map(e=>c(e));let h=r[m.indexOf(u)-1];if(void 0===h&&i.cssMode){let a;r.forEach((e,t)=>{u>=e&&(a=t)}),void 0!==a&&(h=r[0<a?a-1:a])}let f=0;if(void 0!==h&&((f=l.indexOf(h))<0&&(f=s.activeIndex-1),"auto"===i.slidesPerView)&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(f=f-s.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0)),i.rewind&&s.isBeginning){const i=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(i,e,t,a)}return i.loop&&0===s.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{s.slideTo(f,e,t,a)}),!0):s.slideTo(f,e,t,a)},slideReset:function(e,t,a){void 0===t&&(t=!0);if(!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,a)},slideToClosest:function(t,a,s,i){void 0===a&&(a=!0),void 0===i&&(i=.5);var r=this;if(!r.destroyed){void 0===t&&(t=r.params.speed);let e=r.activeIndex;var l=Math.min(r.params.slidesPerGroupSkip,e),l=l+Math.floor((e-l)/r.params.slidesPerGroup),n=r.rtlTranslate?r.translate:-r.translate;if(n>=r.snapGrid[l]){const t=r.snapGrid[l];n-t>(r.snapGrid[l+1]-t)*i&&(e+=r.params.slidesPerGroup)}else{const t=r.snapGrid[l-1];n-t<=(r.snapGrid[l]-t)*i&&(e-=r.params.slidesPerGroup)}return e=Math.max(e,0),e=Math.min(e,r.slidesGrid.length-1),r.slideTo(e,t,a,s)}},slideToClickedSlide:function(){const a=this;if(!a.destroyed){var{params:s,slidesEl:i}=a,r="auto"===s.slidesPerView?a.slidesPerViewDynamic():s.slidesPerView;let e,t=a.clickedIndex;var l=a.isElement?"swiper-slide":"."+s.slideClass;s.loop?a.animating||(e=parseInt(a.clickedSlide.getAttribute("data-swiper-slide-index"),10),s.centeredSlides?t<a.loopedSlides-r/2||t>a.slides.length-a.loopedSlides+r/2?(a.loopFix(),t=a.getSlideIndex(O(i,l+`[data-swiper-slide-index="${e}"]`)[0]),M(()=>{a.slideTo(t)})):a.slideTo(t):t>a.slides.length-r?(a.loopFix(),t=a.getSlideIndex(O(i,l+`[data-swiper-slide-index="${e}"]`)[0]),M(()=>{a.slideTo(t)})):a.slideTo(t)):a.slideTo(t)}}},loop:{loopCreate:function(e){const a=this,{params:s,slidesEl:t}=a;var i,r,l,n,o;!s.loop||a.virtual&&a.params.virtual.enabled||(i=()=>{O(t,`.${s.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},n=a.grid&&s.grid&&1<s.grid.rows,r=s.slidesPerGroup*(n?s.grid.rows:1),l=a.slides.length%r!=0,n=n&&a.slides.length%s.grid.rows!=0,o=t=>{for(let e=0;e<t;e+=1){const t=a.isElement?z("swiper-slide",[s.slideBlankClass]):z("div",[s.slideClass,s.slideBlankClass]);a.slidesEl.append(t)}},l?s.loopAddBlankSlides?(o(r-a.slides.length%r),a.recalcSlides(),a.updateSlides()):P("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):n&&(s.loopAddBlankSlides?(o(s.grid.rows-a.slides.length%s.grid.rows),a.recalcSlides(),a.updateSlides()):P("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),i(),a.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next"}))},loopFix:function(r){let{slideRealIndex:l,slideTo:n=!0,direction:o,setTranslate:d,activeSlideIndex:p,byController:c,byMousewheel:u}=void 0===r?{}:r;const m=this;if(m.params.loop){m.emit("beforeLoopFix");const{slides:b,allowSlidePrev:y,allowSlideNext:E,slidesEl:x,params:S}=m,T=S["centeredSlides"];if(m.allowSlidePrev=!0,m.allowSlideNext=!0,m.virtual&&S.virtual.enabled)n&&(S.centeredSlides||0!==m.snapIndex?S.centeredSlides&&m.snapIndex<S.slidesPerView?m.slideTo(m.virtual.slides.length+m.snapIndex,0,!1,!0):m.snapIndex===m.snapGrid.length-1&&m.slideTo(m.virtual.slidesBefore,0,!1,!0):m.slideTo(m.virtual.slides.length,0,!1,!0)),m.allowSlidePrev=y,m.allowSlideNext=E;else{let e=S.slidesPerView;"auto"===e?e=m.slidesPerViewDynamic():(e=Math.ceil(parseFloat(S.slidesPerView,10)),T&&e%2==0&&(e+=1));r=S.slidesPerGroupAuto?e:S.slidesPerGroup;let t=r;t%r!=0&&(t+=r-t%r),t+=S.loopAdditionalSlides,m.loopedSlides=t;var h=m.grid&&S.grid&&1<S.grid.rows;b.length<e+t?P("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):h&&"row"===S.grid.fill&&P("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const M=[],C=[];let a=m.activeIndex;void 0===p?p=m.getSlideIndex(b.filter(e=>e.classList.contains(S.slideActiveClass))[0]):a=p;var f="next"===o||!o,v="prev"===o||!o;let s=0,i=0;var g=h?Math.ceil(b.length/S.grid.rows):b.length,w=(h?b[p].column:p)+(T&&void 0===d?-e/2+.5:0);if(w<t){s=Math.max(t-w,r);for(let e=0;e<t-w;e+=1){const l=e-Math.floor(e/g)*g;if(h){const r=g-l-1;for(let e=b.length-1;0<=e;--e)b[e].column===r&&M.push(e)}else M.push(g-l-1)}}else if(w+e>g-t){i=Math.max(w-(g-2*t),r);for(let e=0;e<i;e+=1){const l=e-Math.floor(e/g)*g;h?b.forEach((e,t)=>{e.column===l&&C.push(t)}):C.push(l)}}if(m.__preventObserver__=!0,requestAnimationFrame(()=>{m.__preventObserver__=!1}),v&&M.forEach(e=>{b[e].swiperLoopMoveDOM=!0,x.prepend(b[e]),b[e].swiperLoopMoveDOM=!1}),f&&C.forEach(e=>{b[e].swiperLoopMoveDOM=!0,x.append(b[e]),b[e].swiperLoopMoveDOM=!1}),m.recalcSlides(),"auto"===S.slidesPerView?m.updateSlides():h&&(0<M.length&&v||0<C.length&&f)&&m.slides.forEach((e,t)=>{m.grid.updateSlide(t,e,m.slides)}),S.watchSlidesProgress&&m.updateSlidesOffset(),n)if(0<M.length&&v){if(void 0===l){const r=m.slidesGrid[a],l=m.slidesGrid[a+s]-r;u?m.setTranslate(m.translate-l):(m.slideTo(a+Math.ceil(s),0,!1,!0),d&&(m.touchEventsData.startTranslate=m.touchEventsData.startTranslate-l,m.touchEventsData.currentTranslate=m.touchEventsData.currentTranslate-l))}else if(d){const r=h?M.length/S.grid.rows:M.length;m.slideTo(m.activeIndex+r,0,!1,!0),m.touchEventsData.currentTranslate=m.translate}}else if(0<C.length&&f)if(void 0===l){const r=m.slidesGrid[a],l=m.slidesGrid[a-i]-r;u?m.setTranslate(m.translate-l):(m.slideTo(a-i,0,!1,!0),d&&(m.touchEventsData.startTranslate=m.touchEventsData.startTranslate-l,m.touchEventsData.currentTranslate=m.touchEventsData.currentTranslate-l))}else{const r=h?C.length/S.grid.rows:C.length;m.slideTo(m.activeIndex-r,0,!1,!0)}if(m.allowSlidePrev=y,m.allowSlideNext=E,m.controller&&m.controller.control&&!c){const r={slideRealIndex:l,direction:o,setTranslate:d,activeSlideIndex:p,byController:!0};Array.isArray(m.controller.control)?m.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...r,slideTo:e.params.slidesPerView===S.slidesPerView&&n})}):m.controller.control instanceof m.constructor&&m.controller.control.params.loop&&m.controller.control.loopFix({...r,slideTo:m.controller.control.params.slidesPerView===S.slidesPerView&&n})}}m.emit("loopFix")}},loopDestroy:function(){const e=this,{params:t,slidesEl:a}=e;if(!(!t.loop||e.virtual&&e.params.virtual.enabled)){e.recalcSlides();const s=[];e.slides.forEach(e=>{var t=void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),s.forEach(e=>{a.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}}},grabCursor:{setGrabCursor:function(e){const t=this;var a;!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(a="container"===t.params.touchEventsTarget?t.el:t.wrapperEl,t.isElement&&(t.__preventObserver__=!0),a.style.cursor="move",a.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){var e=this,t=e["params"];e.onTouchStart=function(a){var s=this,i=I();let r=a;if(r.originalEvent&&(r=r.originalEvent),a=s.touchEventsData,"pointerdown"===r.type){if(null!==a.pointerId&&a.pointerId!==r.pointerId)return;a.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(a.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)_(s,r,r.targetTouches[0].pageX);else{var{params:l,touches:n,enabled:o}=s;if(o&&(l.simulateTouch||"mouse"!==r.pointerType)&&(!s.animating||!l.preventInteractionOnTransition)){!s.animating&&l.cssMode&&l.loop&&s.loopFix();let t=r.target;if("wrapper"!==l.touchEventsTarget||(o=t,e=s.wrapperEl,!(d=e.contains(o))&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(o):d))if(!("which"in r&&3===r.which||"button"in r&&0<r.button||a.isTouched&&a.isMoved)){var e=!!l.noSwipingClass&&""!==l.noSwipingClass,o=r.composedPath?r.composedPath():r.path,d=(e&&r.target&&r.target.shadowRoot&&o&&(t=o[0]),l.noSwipingSelector||"."+l.noSwipingClass),o=!(!r.target||!r.target.shadowRoot);if(l.noSwiping&&(o?function(s,e){return function e(t){var a;return t&&t!==I()&&t!==A()&&((a=(t=t.assignedSlot?t.assignedSlot:t).closest(s))||t.getRootNode)?a||e(t.getRootNode().host):null}(e=void 0===t?this:e)}(d,t):t.closest(d)))s.allowClick=!0;else if(!l.swipeHandler||t.closest(l.swipeHandler)){n.currentX=r.pageX,n.currentY=r.pageY;var o=n.currentX,p=n.currentY;if(_(s,r,o)){Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=o,n.startY=p,a.touchStartTime=g(),s.allowClick=!0,s.updateSize(),s.swipeDirection=void 0,0<l.threshold&&(a.allowThresholdMove=!1);let e=!0;t.matches(a.focusableElements)&&(e=!1,"SELECT"===t.nodeName)&&(a.isTouched=!1),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==t&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!t.matches(a.focusableElements))&&i.activeElement.blur();o=e&&s.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!o||t.isContentEditable||r.preventDefault(),l.freeMode&&l.freeMode.enabled&&s.freeMode&&s.animating&&!l.cssMode&&s.freeMode.onTouchStart(),s.emit("touchStart",r)}}}}}}.bind(e),e.onTouchMove=function(t){const a=I(),i=this,r=i.touchEventsData,{params:l,touches:n,rtlTranslate:o,enabled:e}=i;if(e&&(l.simulateTouch||"mouse"!==t.pointerType)){let e,s=t;if("pointermove"===(s=s.originalEvent?s.originalEvent:s).type){if(null!==r.touchId)return;if(s.pointerId!==r.pointerId)return}if("touchmove"===s.type){if(!(e=[...s.changedTouches].filter(e=>e.identifier===r.touchId)[0])||e.identifier!==r.touchId)return}else e=s;if(r.isTouched){var t=e.pageX,d=e.pageY;if(s.preventedByNestedSwiper)n.startX=t,n.startY=d;else if(i.allowTouchMove){if(l.touchReleaseOnEdges&&!l.loop)if(i.isVertical()){if(d<n.startY&&i.translate<=i.maxTranslate()||d>n.startY&&i.translate>=i.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(t<n.startX&&i.translate<=i.maxTranslate()||t>n.startX&&i.translate>=i.minTranslate())return;if(a.activeElement&&a.activeElement.matches(r.focusableElements)&&a.activeElement!==s.target&&"mouse"!==s.pointerType&&a.activeElement.blur(),a.activeElement&&s.target===a.activeElement&&s.target.matches(r.focusableElements))r.isMoved=!0,i.allowClick=!1;else{r.allowTouchCallbacks&&i.emit("touchMove",s),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=t,n.currentY=d;var p=n.currentX-n.startX,c=n.currentY-n.startY;if(!(i.params.threshold&&Math.sqrt(p**2+c**2)<i.params.threshold))if(void 0===r.isScrolling&&(i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?r.isScrolling=!1:25<=p*p+c*c&&(u=180*Math.atan2(Math.abs(c),Math.abs(p))/Math.PI,r.isScrolling=i.isHorizontal()?u>l.touchAngle:90-u>l.touchAngle)),r.isScrolling&&i.emit("touchMoveOpposite",s),void 0!==r.startMoving||n.currentX===n.startX&&n.currentY===n.startY||(r.startMoving=!0),r.isScrolling||"touchmove"===s.type&&r.preventTouchMoveFromPointerMove)r.isTouched=!1;else if(r.startMoving){i.allowClick=!1,!l.cssMode&&s.cancelable&&s.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&s.stopPropagation();let a=i.isHorizontal()?p:c,e=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;l.oneWayMovement&&(a=Math.abs(a)*(o?1:-1),e=Math.abs(e)*(o?1:-1)),n.diff=a,a*=l.touchRatio,o&&(a=-a,e=-e);var u=i.touchesDirection,p=(i.swipeDirection=0<a?"prev":"next",i.touchesDirection=0<e?"prev":"next",i.params.loop&&!l.cssMode),c="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!r.isMoved){if(p&&c&&i.loopFix({direction:i.swipeDirection}),r.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(t)}r.allowMomentumBounce=!1,!l.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",s)}if((new Date).getTime(),r.isMoved&&r.allowThresholdMove&&u!==i.touchesDirection&&p&&c&&1<=Math.abs(a))Object.assign(n,{startX:t,startY:d,currentX:t,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;else{i.emit("sliderMove",s),r.isMoved=!0,r.currentTranslate=a+r.startTranslate;let e=!0,t=l.resistanceRatio;if(l.touchReleaseOnEdges&&(t=0),0<a?(p&&c&&r.allowThresholdMove&&r.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==l.slidesPerView&&2<=i.slides.length-l.slidesPerView?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>i.minTranslate()&&(e=!1,l.resistance)&&(r.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+r.startTranslate+a)**t)):a<0&&(p&&c&&r.allowThresholdMove&&r.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==l.slidesPerView&&2<=i.slides.length-l.slidesPerView?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===l.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),r.currentTranslate<i.maxTranslate())&&(e=!1,l.resistance)&&(r.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-r.startTranslate-a)**t),e&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),i.allowSlidePrev||i.allowSlideNext||(r.currentTranslate=r.startTranslate),0<l.threshold){if(!(Math.abs(a)>l.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,r.currentTranslate=r.startTranslate,void(n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}l.followFinger&&!l.cssMode&&((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(r.currentTranslate),i.setTranslate(r.currentTranslate))}}}}else s.target.matches(r.focusableElements)||(i.allowClick=!1),r.isTouched&&(Object.assign(n,{startX:t,startY:d,currentX:t,currentY:d}),r.touchStartTime=g())}else r.startMoving&&r.isScrolling&&i.emit("touchMoveOpposite",s)}}.bind(e),e.onTouchEnd=function(i){const r=this,t=r.touchEventsData;let e,l=i;if("touchend"===(l=l.originalEvent?l.originalEvent:l).type||"touchcancel"===l.type){if(!(e=[...l.changedTouches].filter(e=>e.identifier===t.touchId)[0])||e.identifier!==t.touchId)return}else{if(null!==t.touchId)return;if(l.pointerId!==t.pointerId)return;e=l}if(!["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)||["pointercancel","contextmenu"].includes(l.type)&&(r.browser.isSafari||r.browser.isWebView)){t.pointerId=null,t.touchId=null;var{params:n,touches:i,rtlTranslate:a,slidesGrid:o,enabled:d}=r;if(d&&(n.simulateTouch||"mouse"!==l.pointerType))if(t.allowTouchCallbacks&&r.emit("touchEnd",l),t.allowTouchCallbacks=!1,t.isTouched){n.grabCursor&&t.isMoved&&t.isTouched&&(!0===r.allowSlideNext||!0===r.allowSlidePrev)&&r.setGrabCursor(!1);var p,d=g(),c=d-t.touchStartTime;if(r.allowClick){const i=l.path||l.composedPath&&l.composedPath();r.updateClickedSlide(i&&i[0]||l.target,i),r.emit("tap click",l),c<300&&d-t.lastClickTime<300&&r.emit("doubleTap doubleClick",l)}if(t.lastClickTime=g(),M(()=>{r.destroyed||(r.allowClick=!0)}),t.isTouched&&t.isMoved&&r.swipeDirection&&(0!==i.diff||t.loopSwapReset)&&(t.currentTranslate!==t.startTranslate||t.loopSwapReset)){if(t.isTouched=!1,t.isMoved=!1,t.startMoving=!1,p=n.followFinger?a?r.translate:-r.translate:-t.currentTranslate,!n.cssMode)if(n.freeMode&&n.freeMode.enabled)r.freeMode.onTouchEnd({currentPos:p});else{var u=p>=-r.maxTranslate()&&!r.params.loop;let t=0,a=r.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<n.slidesPerGroupSkip?1:n.slidesPerGroup){const r=e<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==o[e+r]?(u||p>=o[e]&&p<o[e+r])&&(t=e,a=o[e+r]-o[e]):(u||p>=o[e])&&(t=e,a=o[o.length-1]-o[o.length-2])}let e=null,s=null;n.rewind&&(r.isBeginning?s=n.virtual&&n.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:r.isEnd&&(e=0));d=(p-o[t])/a,i=t<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;c>n.longSwipesMs?n.longSwipes?("next"===r.swipeDirection&&(d>=n.longSwipesRatio?r.slideTo(n.rewind&&r.isEnd?e:t+i):r.slideTo(t)),"prev"===r.swipeDirection&&(d>1-n.longSwipesRatio?r.slideTo(t+i):null!==s&&d<0&&Math.abs(d)>n.longSwipesRatio?r.slideTo(s):r.slideTo(t))):r.slideTo(r.activeIndex):n.shortSwipes?!r.navigation||l.target!==r.navigation.nextEl&&l.target!==r.navigation.prevEl?("next"===r.swipeDirection&&r.slideTo(null!==e?e:t+i),"prev"===r.swipeDirection&&r.slideTo(null!==s?s:t)):l.target===r.navigation.nextEl?r.slideTo(t+i):r.slideTo(t):r.slideTo(r.activeIndex)}}else t.isTouched=!1,t.isMoved=!1,t.startMoving=!1}else t.isMoved&&n.grabCursor&&r.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1}}.bind(e),e.onDocumentTouchStart=function(){this.documentTouchHandlerProceeded||(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}.bind(e),t.cssMode&&(e.onScroll=function(){var e=this,{wrapperEl:t,rtlTranslate:a,enabled:s}=e;s&&(e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses(),(0==(s=e.maxTranslate()-e.minTranslate())?0:(e.translate-e.minTranslate())/s)!==e.progress&&e.updateProgress(a?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1))}.bind(e)),e.onClick=function(e){var t=this;t.enabled&&!t.allowClick&&(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation)&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())}.bind(e),e.onLoad=function(e){var t=this;l(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}.bind(e),j(e,"on")},detachEvents:function(){j(this,"off")}},breakpoints:{setBreakpoint:function(){const s=this,{realIndex:e,initialized:t,params:i,el:a}=s,r=i.breakpoints;if(r&&0!==Object.keys(r).length){var l=s.getBreakpoint(r,s.params.breakpointsBase,s.el);if(l&&s.currentBreakpoint!==l){const c=(l in r?r[l]:void 0)||s.originalParams,u=U(s,i),m=U(s,c),h=s.params.grabCursor,f=c.grabCursor,v=i.enabled;u&&!m?(a.classList.remove(i.containerModifierClass+"grid",i.containerModifierClass+"grid-column"),s.emitContainerClasses()):!u&&m&&(a.classList.add(i.containerModifierClass+"grid"),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&a.classList.add(i.containerModifierClass+"grid-column"),s.emitContainerClasses()),h&&!f?s.unsetGrabCursor():!h&&f&&s.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(e=>{var t,a;void 0!==c[e]&&(t=i[e]&&i[e].enabled,a=c[e]&&c[e].enabled,t&&!a&&s[e].disable(),!t)&&a&&s[e].enable()});var n=c.direction&&c.direction!==i.direction,o=i.loop&&(c.slidesPerView!==i.slidesPerView||n),d=i.loop,n=(n&&t&&s.changeDirection(),w(s.params,c),s.params.enabled),p=s.params.loop;Object.assign(s,{allowTouchMove:s.params.allowTouchMove,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev}),v&&!n?s.disable():!v&&n&&s.enable(),s.currentBreakpoint=l,s.emit("_beforeBreakpoint",c),t&&(o?(s.loopDestroy(),s.loopCreate(e),s.updateSlides()):!d&&p?(s.loopCreate(e),s.updateSlides()):d&&!p&&s.loopDestroy()),s.emit("breakpoint",c)}}},getBreakpoint:function(e,a,s){if(void 0===a&&(a="window"),e&&("container"!==a||s)){let t=!1;const i=A(),r="window"===a?i.innerHeight:s.clientHeight,l=Object.keys(e).map(e=>{var t;return"string"==typeof e&&0===e.indexOf("@")?(t=parseFloat(e.substr(1)),{value:r*t,point:e}):{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:A,value:r}=l[e];"window"===a?i.matchMedia(`(min-width: ${r}px)`).matches&&(t=A):r<=s.clientWidth&&(t=A)}return t||"max"}}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:a}=e,s=a["slidesOffsetBefore"];if(s){const t=e.slides.length-1,a=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>a}else e.isLocked=1===e.snapGrid.length;!0===a.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===a.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var{classNames:e,params:t,rtl:a,el:s,device:i}=this,a=function(e,a){const s=[];return e.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(e=>{t[e]&&s.push(a+e)}):"string"==typeof t&&s.push(a+t)}),s}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:a},{grid:t.grid&&1<t.grid.rows},{"grid-column":t.grid&&1<t.grid.rows&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){var{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},p={};class m{constructor(){let t,a;for(var e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?a=s[0]:[t,a]=s,a=w({},a=a||{}),t&&!a.el&&(a.el=t);var r=I();if(a.el&&"string"==typeof a.el&&1<r.querySelectorAll(a.el).length){const t=[];return r.querySelectorAll(a.el).forEach(e=>{e=w({},a,{el:e});t.push(new m(e))}),t}const l=this,n=(l.__swiper__=!0,l.support=R(),l.device=q({userAgent:a.userAgent}),l.browser=$=$||function(){const t=A(),e=q();let a=!1;function s(){var e=t.navigator.userAgent.toLowerCase();return 0<=e.indexOf("safari")&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(s()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,s]=e.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));a=t<16||16===t&&s<2}}var i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=s();return{isSafari:a||r,needPerspectiveFix:a,need3dFix:r||i&&e.ios,isWebView:i}}(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],a.modules&&Array.isArray(a.modules)&&l.modules.push(...a.modules),{});l.modules.forEach(e=>{var s,i;e({params:a,swiper:l,extendParams:(s=a,i=n,function(e){void 0===e&&(e={});var t=Object.keys(e)[0],a=e[t];"object"==typeof a&&null!==a&&(!0===s[t]&&(s[t]={enabled:!0}),"navigation"===t&&s[t]&&s[t].enabled&&!s[t].prevEl&&!s[t].nextEl&&(s[t].auto=!0),0<=["pagination","scrollbar"].indexOf(t)&&s[t]&&s[t].enabled&&!s[t].el&&(s[t].auto=!0),t in s)&&"enabled"in a&&("object"!=typeof s[t]||"enabled"in s[t]||(s[t].enabled=!0),s[t]||(s[t]={enabled:!1})),w(i,e)}),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});r=w({},K,n);return l.params=w({},r,p,a),l.originalParams=w({},l.params),l.passedParams=w({},a),l.params&&l.params.on&&Object.keys(l.params.on).forEach(e=>{l.on(e,l.params.on[e])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){var{slidesEl:t,params:a}=this,t=G(O(t,`.${a.slideClass}, swiper-slide`)[0]);return G(e)-t}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(e=>+e.getAttribute("data-swiper-slide-index")===t)[0])}recalcSlides(){var{slidesEl:e,params:t}=this;this.slides=O(e,`.${t.slideClass}, swiper-slide`)}enable(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){var a=this,s=(e=Math.min(Math.max(e,0),1),a.minTranslate()),e=(a.maxTranslate()-s)*e+s;a.translateTo(e,void 0===t?0:t),a.updateActiveIndex(),a.updateSlidesClasses()}emitContainerClasses(){const t=this;var e;t.params._emitClasses&&t.el&&(e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)),t.emit("_containerClasses",e.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 a=this;if(a.params._emitClasses&&a.el){const s=[];a.slides.forEach(e=>{var t=a.getSlideClasses(e);s.push({slideEl:e,classNames:t}),a.emit("_slideClass",e,t)}),a.emit("_slideClasses",s)}}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);var{params:a,slides:s,slidesGrid:i,slidesSizesGrid:r,size:l,activeIndex:n}=this;let o=1;if("number"==typeof a.slidesPerView)return a.slidesPerView;if(a.centeredSlides){let t,a=s[n]?Math.ceil(s[n].swiperSlideSize):0;for(let e=n+1;e<s.length;e+=1)s[e]&&!t&&(a+=Math.ceil(s[e].swiperSlideSize),o+=1,a>l)&&(t=!0);for(let e=n-1;0<=e;--e)s[e]&&!t&&(a+=s[e].swiperSlideSize,o+=1,a>l)&&(t=!0)}else if("current"===e)for(let e=n+1;e<s.length;e+=1)(t?i[e]+r[e]-i[n]<l:i[e]-i[n]<l)&&(o+=1);else for(let e=n-1;0<=e;--e)i[n]-i[e]<l&&(o+=1);return o}update(){const t=this;if(t&&!t.destroyed){const{snapGrid:s,params:i}=t;let e;if(i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&l(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)a(),i.autoHeight&&t.updateAutoHeight();else{if(("auto"===i.slidesPerView||1<i.slidesPerView)&&t.isEnd&&!i.centeredSlides){const s=(t.virtual&&i.virtual.enabled?t.virtual:t).slides;e=t.slideTo(s.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||a()}function a(){var e=t.rtlTranslate?-1*t.translate:t.translate,e=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}i.watchOverflow&&s!==t.snapGrid&&t.checkOverflow(),t.emit("update")}}changeDirection(t,e){void 0===e&&(e=!0);var a=this,s=a.params.direction;return(t=t||("horizontal"===s?"vertical":"horizontal"))===s||"horizontal"!==t&&"vertical"!==t||(a.el.classList.remove(""+a.params.containerModifierClass+s),a.el.classList.add(""+a.params.containerModifierClass+t),a.emitContainerClasses(),a.params.direction=t,a.slides.forEach(e=>{"vertical"===t?e.style.width="":e.style.height=""}),a.emit("changeDirection"),e&&a.update()),a}changeLanguageDirection(e){var 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.classList.add(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.el.classList.remove(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(a){const s=this;if(!s.mounted){let e=a||s.params.el;if(!(e="string"==typeof e?document.querySelector(e):e))return!1;e.swiper=s,e.parentNode&&e.parentNode.host&&e.parentNode.host.nodeName===s.params.swiperElementNodeName.toUpperCase()&&(s.isElement=!0);const i=()=>"."+(s.params.wrapperClass||"").trim().split(" ").join(".");let t=e&&e.shadowRoot&&e.shadowRoot.querySelector?e.shadowRoot.querySelector(i()):O(e,i())[0];!t&&s.params.createElements&&(t=z("div",s.params.wrapperClass),e.append(t),O(e,"."+s.params.slideClass).forEach(e=>{t.append(e)})),Object.assign(s,{el:e,wrapperEl:t,slidesEl:s.isElement&&!e.parentNode.host.slideSlots?e.parentNode.host:t,hostEl:s.isElement?e.parentNode.host:e,mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===C(e,"direction"),rtlTranslate:"horizontal"===s.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===C(e,"direction")),wrongRTL:"-webkit-box"===C(t,"display")})}return!0}init(e){const t=this;return t.initialized||!1!==t.mount(e)&&(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),e=[...t.el.querySelectorAll('[loading="lazy"]')],t.isElement&&e.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),e.forEach(e=>{e.complete?l(t,e):e.addEventListener("load",e=>{l(t,e.target)})}),u(t),t.initialized=!0,u(t),t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const a=this,{params:s,el:i,wrapperEl:r,slides:l}=a;if(void 0!==a.params&&!a.destroyed){if(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),s.loop&&a.loopDestroy(),t&&(a.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),r&&r.removeAttribute("style"),l)&&l.length&&l.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(e=>{a.off(e)}),!1!==e){a.el&&"string"!=typeof a.el&&(a.el.swiper=null);{const n=a;Object.keys(n).forEach(e=>{try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}})}}a.destroyed=!0}return null}static extendDefaults(e){w(p,e)}static get extendedDefaults(){return p}static get defaults(){return K}static installModule(e){m.prototype.__modules__||(m.prototype.__modules__=[]);var t=m.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>m.installModule(e)):m.installModule(e),m}}function X(a,s,i,r){return a.params.createElements&&Object.keys(r).forEach(t=>{if(!i[t]&&!0===i.auto){let e=O(a.el,"."+r[t])[0];e||((e=z("div",r[t])).className=r[t],a.el.append(e)),i[t]=e,s[t]=e}}),i}function Y(e){return"."+(e=void 0===e?"":e).trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}function n(e){const{effect:a,swiper:s,on:t,setTranslate:i,setTransition:r,overwriteParams:l,perspective:n,recreateShadows:o,getEffectParams:d}=e;let p;t("beforeInit",()=>{var e;s.params.effect===a&&(s.classNames.push(""+s.params.containerModifierClass+a),n&&n()&&s.classNames.push(s.params.containerModifierClass+"3d"),e=l?l():{},Object.assign(s.params,e),Object.assign(s.originalParams,e))}),t("setTranslate",()=>{s.params.effect===a&&i()}),t("setTransition",(e,t)=>{s.params.effect===a&&r(t)}),t("transitionEnd",()=>{s.params.effect===a&&o&&d&&d().slideShadows&&(s.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),o())}),t("virtualUpdate",()=>{s.params.effect===a&&(s.slides.length||(p=!0),requestAnimationFrame(()=>{p&&s.slides&&s.slides.length&&(i(),p=!1)}))})}function x(e,t){var a=r(t);return a!==t&&(a.style.backfaceVisibility="hidden",a.style["-webkit-backface-visibility"]="hidden"),a}function h(e){let{swiper:a,duration:t,transformElements:s,allSlides:i}=e;const r=a["activeIndex"];if(a.params.virtualTranslate&&0!==t){let t=!1;(i?s:s.filter(e=>{var t,e=e.classList.contains("swiper-slide-transform")?(t=e).parentElement||a.slides.filter(e=>e.shadowRoot&&e.shadowRoot===t.parentNode)[0]:e;return a.getSlideIndex(e)===r})).forEach(e=>{f(e,()=>{var e;t||a&&!a.destroyed&&(t=!0,a.animating=!1,e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0}),a.wrapperEl.dispatchEvent(e))})})}}function S(e,t,a){a="swiper-slide-shadow"+(a?"-"+a:"")+(e?" swiper-slide-shadow-"+e:""),e=r(t);let s=e.querySelector("."+a.split(" ").join("."));return s||(s=z("div",a.split(" ")),e.append(s)),s}return Object.keys(a).forEach(t=>{Object.keys(a[t]).forEach(e=>{m.prototype[e]=a[t][e]})}),m.use([function(e){let{swiper:r,on:t,emit:a}=e;const s=A();let i=null,l=null;const n=()=>{r&&!r.destroyed&&r.initialized&&(a("beforeResize"),a("resize"))},o=()=>{r&&!r.destroyed&&r.initialized&&a("orientationchange")};t("init",()=>{r.params.resizeObserver&&void 0!==s.ResizeObserver?r&&!r.destroyed&&r.initialized&&(i=new ResizeObserver(a=>{l=s.requestAnimationFrame(()=>{var{width:e,height:t}=r;let s=e,i=t;a.forEach(e=>{var{contentBoxSize:e,contentRect:t,target:a}=e;a&&a!==r.el||(s=t?t.width:(e[0]||e).inlineSize,i=t?t.height:(e[0]||e).blockSize)}),s===e&&i===t||n()})})).observe(r.el):(s.addEventListener("resize",n),s.addEventListener("orientationchange",o))}),t("destroy",()=>{l&&s.cancelAnimationFrame(l),i&&i.unobserve&&r.el&&(i.unobserve(r.el),i=null),s.removeEventListener("resize",n),s.removeEventListener("orientationchange",o)})},function(e){let{swiper:s,extendParams:t,on:a,emit:i}=e;function r(e,t){void 0===t&&(t={});var a=new(n.MutationObserver||n.WebkitMutationObserver)(e=>{var t;s.__preventObserver__||(1===e.length?i("observerUpdate",e[0]):(t=function(){i("observerUpdate",e[0])},n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,0)))});a.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:s.isElement||(void 0===t.childList||t).childList,characterData:void 0===t.characterData||t.characterData}),l.push(a)}const l=[],n=A();t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",()=>{if(s.params.observer){if(s.params.observeParents){var t=H(s.hostEl);for(let e=0;e<t.length;e+=1)r(t[e])}r(s.hostEl,{childList:s.params.observeSlideChildren}),r(s.wrapperEl,{attributes:!1})}}),a("destroy",()=>{l.forEach(e=>{e.disconnect()}),l.splice(0,l.length)})}]),m.use([function(e){let t,{swiper:M,extendParams:a,on:s,emit:C}=e;a({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});e=I();M.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const i=e.createElement("div");function P(e,t){var a=M.params.virtual;if(a.cache&&M.virtual.cache[t])return M.virtual.cache[t];let s;return a.renderSlide?"string"==typeof(s=a.renderSlide.call(M,e,t))&&(i.innerHTML=s,s=i.children[0]):s=M.isElement?z("swiper-slide"):z("div",M.params.slideClass),s.setAttribute("data-swiper-slide-index",t),a.renderSlide||(s.innerHTML=e),a.cache&&(M.virtual.cache[t]=s),s}function l(l,n){var{slidesPerView:o,slidesPerGroup:d,centeredSlides:p,loop:c,initialSlide:u}=M.params;if(!(n&&!c&&0<u)){const{addSlidesBefore:w,addSlidesAfter:b}=M.params.virtual,{from:y,to:E,slides:x,slidesGrid:S,offset:T}=M.virtual;M.params.cssMode||M.updateActiveIndex();n=M.activeIndex||0;let t,e,a,s=(t=M.rtlTranslate?"right":M.isHorizontal()?"left":"top",n-(a=p?(e=Math.floor(o/2)+d+b,Math.floor(o/2)+d+w):(e=o+(d-1)+b,(c?o:d)+w))),i=n+e,r=(c||(s=Math.max(s,0),i=Math.min(i,x.length-1)),(M.slidesGrid[s]||0)-(M.slidesGrid[0]||0));if(c&&n>=a?(s-=a,p||(r+=M.slidesGrid[0])):c&&n<a&&(s=-a,p)&&(r+=M.slidesGrid[0]),Object.assign(M.virtual,{from:s,to:i,offset:r,slidesGrid:M.slidesGrid,slidesBefore:a,slidesAfter:e}),y!==s||E!==i||l)if(M.params.virtual.renderExternal)M.params.virtual.renderExternal.call(M,{offset:r,from:s,to:i,slides:function(){var t=[];for(let e=s;e<=i;e+=1)t.push(x[e]);return t}()}),M.params.virtual.renderExternalUpdate?g():C("virtualUpdate");else{var m=[],h=[],f=e=>{let t=e;return e<0?t=x.length+e:t>=x.length&&(t-=x.length),t};if(l)M.slides.filter(e=>e.matches(`.${M.params.slideClass}, swiper-slide`)).forEach(e=>{e.remove()});else for(let e=y;e<=E;e+=1)if(e<s||e>i){const n=f(e);M.slides.filter(e=>e.matches(`.${M.params.slideClass}[data-swiper-slide-index="${n}"], swiper-slide[data-swiper-slide-index="${n}"]`)).forEach(e=>{e.remove()})}var u=c?-x.length:0,v=c?2*x.length:x.length;for(let e=u;e<v;e+=1)if(e>=s&&e<=i){const M=f(e);void 0===E||l?h.push(M):(e>E&&h.push(M),e<y&&m.push(M))}if(h.forEach(e=>{M.slidesEl.append(P(x[e],e))}),c)for(let e=m.length-1;0<=e;--e){const n=m[e];M.slidesEl.prepend(P(x[n],n))}else m.sort((e,t)=>t-e),m.forEach(e=>{M.slidesEl.prepend(P(x[e],e))});O(M.slidesEl,".swiper-slide, swiper-slide").forEach(e=>{e.style[t]=r-Math.abs(M.cssOverflowAdjustment())+"px"}),g()}else M.slidesGrid!==S&&r!==T&&M.slides.forEach(e=>{e.style[t]=r-Math.abs(M.cssOverflowAdjustment())+"px"}),M.updateProgress(),C("virtualUpdate");function g(){M.updateSlides(),M.updateProgress(),M.updateSlidesClasses(),C("virtualUpdate")}}}s("beforeInit",()=>{if(M.params.virtual.enabled){let e;var t;void 0===M.passedParams.virtual.slides&&(t=[...M.slidesEl.children].filter(e=>e.matches(`.${M.params.slideClass}, swiper-slide`)))&&t.length&&(M.virtual.slides=[...t],e=!0,t.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t),(M.virtual.cache[t]=e).remove()})),e||(M.virtual.slides=M.params.virtual.slides),M.classNames.push(M.params.containerModifierClass+"virtual"),M.params.watchSlidesProgress=!0,l(!(M.originalParams.watchSlidesProgress=!0),!0)}}),s("setTranslate",()=>{M.params.virtual.enabled&&(M.params.cssMode&&!M._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{l()},100)):l())}),s("init update resize",()=>{M.params.virtual.enabled&&M.params.cssMode&&L(M.wrapperEl,"--swiper-virtual-size",M.virtualSize+"px")}),Object.assign(M.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&M.virtual.slides.push(t[e]);else M.virtual.slides.push(t);l(!0)},prependSlide:function(s){const i=M.activeIndex;let e=i+1,r=1;if(Array.isArray(s)){for(let e=0;e<s.length;e+=1)s[e]&&M.virtual.slides.unshift(s[e]);e=i+s.length,r=s.length}else M.virtual.slides.unshift(s);if(M.params.virtual.cache){const s=M.virtual.cache,i={};Object.keys(s).forEach(e=>{var t=s[e],a=t.getAttribute("data-swiper-slide-index");a&&t.setAttribute("data-swiper-slide-index",parseInt(a,10)+r),i[parseInt(e,10)+r]=t}),M.virtual.cache=i}l(!0),M.slideTo(e,0)},removeSlide:function(a){if(null!=a){let t=M.activeIndex;if(Array.isArray(a))for(let e=a.length-1;0<=e;--e)M.params.virtual.cache&&(delete M.virtual.cache[a[e]],Object.keys(M.virtual.cache).forEach(e=>{a<e&&(M.virtual.cache[e-1]=M.virtual.cache[e],M.virtual.cache[e-1].setAttribute("data-swiper-slide-index",e-1),delete M.virtual.cache[e])})),M.virtual.slides.splice(a[e],1),a[e]<t&&--t,t=Math.max(t,0);else M.params.virtual.cache&&(delete M.virtual.cache[a],Object.keys(M.virtual.cache).forEach(e=>{a<e&&(M.virtual.cache[e-1]=M.virtual.cache[e],M.virtual.cache[e-1].setAttribute("data-swiper-slide-index",e-1),delete M.virtual.cache[e])})),M.virtual.slides.splice(a,1),a<t&&--t,t=Math.max(t,0);l(!0),M.slideTo(t,0)}},removeAllSlides:function(){M.virtual.slides=[],M.params.virtual.cache&&(M.virtual.cache={}),l(!0),M.slideTo(0,0)},update:l})},function(e){let{swiper:c,extendParams:t,on:a,emit:u}=e;const m=I(),h=A();function s(t){if(c.enabled){const a=c["rtlTranslate"];let e=t;const s=(e=e.originalEvent?e.originalEvent:e).keyCode||e.charCode,i=c.params.keyboard.pageUpDown,r=i&&33===s,l=i&&34===s,n=37===s,o=39===s,d=38===s,p=40===s;if(!c.allowSlideNext&&(c.isHorizontal()&&o||c.isVertical()&&p||l))return!1;if(!c.allowSlidePrev&&(c.isHorizontal()&&n||c.isVertical()&&d||r))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||m.activeElement&&m.activeElement.nodeName&&("input"===m.activeElement.nodeName.toLowerCase()||"textarea"===m.activeElement.nodeName.toLowerCase()))){if(c.params.keyboard.onlyInViewport&&(r||l||n||o||d||p)){let t=!1;if(0<H(c.el,`.${c.params.slideClass}, swiper-slide`).length&&0===H(c.el,"."+c.params.slideActiveClass).length)return;const e=c.el,s=e.clientWidth,i=e.clientHeight,u=h.innerWidth,m=h.innerHeight,r=D(e),l=(a&&(r.left-=e.scrollLeft),[[r.left,r.top],[r.left+s,r.top],[r.left,r.top+i],[r.left+s,r.top+i]]);for(let e=0;e<l.length;e+=1){const a=l[e];0<=a[0]&&a[0]<=u&&0<=a[1]&&a[1]<=m&&(0===a[0]&&0===a[1]||(t=!0))}if(!t)return}c.isHorizontal()?((r||l||n||o)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),((l||o)&&!a||(r||n)&&a)&&c.slideNext(),((r||n)&&!a||(l||o)&&a)&&c.slidePrev()):((r||l||d||p)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(l||p)&&c.slideNext(),(r||d)&&c.slidePrev()),u("keyPress",s)}}}function i(){c.keyboard.enabled||(m.addEventListener("keydown",s),c.keyboard.enabled=!0)}function r(){c.keyboard.enabled&&(m.removeEventListener("keydown",s),c.keyboard.enabled=!1)}c.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),a("init",()=>{c.params.keyboard.enabled&&i()}),a("destroy",()=>{c.keyboard.enabled&&r()}),Object.assign(c.keyboard,{enable:i,disable:r})},function(e){let{swiper:p,extendParams:t,on:a,emit:c}=e;const s=A();let u;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),p.mousewheel={enabled:!1};let m,i=g();const h=[];function r(){p.enabled&&(p.mouseEntered=!0)}function l(){p.enabled&&(p.mouseEntered=!1)}function f(e){p.params.mousewheel.thresholdDelta&&e.delta<p.params.mousewheel.thresholdDelta||p.params.mousewheel.thresholdTime&&g()-i<p.params.mousewheel.thresholdTime||6<=e.delta&&g()-i<60||(e.direction<0?p.isEnd&&!p.params.loop||p.animating||(p.slideNext(),c("scroll",e.raw)):p.isBeginning&&!p.params.loop||p.animating||(p.slidePrev(),c("scroll",e.raw)),i=(new s.Date).getTime())}function n(s){let i=s,r=!0;if(p.enabled&&!s.target.closest("."+p.params.mousewheel.noMousewheelClass)){var l=p.params.mousewheel;p.params.cssMode&&i.preventDefault();let e=p.el;const d=(e="container"!==p.params.mousewheel.eventsTarget?document.querySelector(p.params.mousewheel.eventsTarget):e)&&e.contains(i.target);if(!p.mouseEntered&&!d&&!l.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let t=0;var n=p.rtlTranslate?-1:1,o=function(e){let t=0,a=0,s=0,i=0;return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=a,a=0),s=10*t,i=10*a,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=i,i=0),(s||i)&&e.deltaMode&&(1===e.deltaMode?(s*=40,i*=40):(s*=800,i*=800)),s&&!t&&(t=s<1?-1:1),i&&!a&&(a=i<1?-1:1),{spinX:t,spinY:a,pixelX:s,pixelY:i}}(i);if(l.forceToAxis)if(p.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;t=-o.pixelX*n}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;t=-o.pixelY}else t=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*n:-o.pixelY;if(0===t)return!0;l.invert&&(t=-t);let a=p.getTranslate()+t*l.sensitivity;if((a=a>=p.minTranslate()?p.minTranslate():a)<=p.maxTranslate()&&(a=p.maxTranslate()),(r=!!p.params.loop||!(a===p.minTranslate()||a===p.maxTranslate()))&&p.params.nested&&i.stopPropagation(),p.params.freeMode&&p.params.freeMode.enabled){const s={time:g(),delta:Math.abs(t),direction:Math.sign(t)},r=m&&s.time<m.time+500&&s.delta<=m.delta&&s.direction===m.direction;if(!r){m=void 0;let e=p.getTranslate()+t*l.sensitivity;const g=p.isBeginning,d=p.isEnd;if((e=e>=p.minTranslate()?p.minTranslate():e)<=p.maxTranslate()&&(e=p.maxTranslate()),p.setTransition(0),p.setTranslate(e),p.updateProgress(),p.updateActiveIndex(),p.updateSlidesClasses(),(!g&&p.isBeginning||!d&&p.isEnd)&&p.updateSlidesClasses(),p.params.loop&&p.loopFix({direction:s.direction<0?"next":"prev",byMousewheel:!0}),p.params.freeMode.sticky){clearTimeout(u),u=void 0,15<=h.length&&h.shift();const i=h.length?h[h.length-1]:void 0,r=h[0];if(h.push(s),i&&(s.delta>i.delta||s.direction!==i.direction))h.splice(0);else if(15<=h.length&&s.time-r.time<500&&1<=r.delta-s.delta&&s.delta<=6){const i=0<t?.8:.2;m=s,h.splice(0),u=M(()=>{!p.destroyed&&p.params&&p.slideToClosest(p.params.speed,!0,void 0,i)},0)}u=u||M(()=>{!p.destroyed&&p.params&&(m=s,h.splice(0),p.slideToClosest(p.params.speed,!0,void 0,.5))},500)}if(r||c("scroll",i),p.params.autoplay&&p.params.autoplayDisableOnInteraction&&p.autoplay.stop(),l.releaseOnEdges&&(e===p.minTranslate()||e===p.maxTranslate()))return!0}}else{const i={time:g(),delta:Math.abs(t),direction:Math.sign(t),raw:s},r=(2<=h.length&&h.shift(),h.length?h[h.length-1]:void 0);if(h.push(i),(!r||i.direction!==r.direction||i.delta>r.delta||i.time>r.time+150)&&f(i),function(e){var t=p.params.mousewheel;if(e.direction<0){if(p.isEnd&&!p.params.loop&&t.releaseOnEdges)return 1}else if(p.isBeginning&&!p.params.loop&&t.releaseOnEdges)return 1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}}function o(e){let t=p.el;(t="container"!==p.params.mousewheel.eventsTarget?document.querySelector(p.params.mousewheel.eventsTarget):t)[e]("mouseenter",r),t[e]("mouseleave",l),t[e]("wheel",n)}function d(){return p.params.cssMode?(p.wrapperEl.removeEventListener("wheel",n),!0):!p.mousewheel.enabled&&(o("addEventListener"),p.mousewheel.enabled=!0)}function v(){return p.params.cssMode?(p.wrapperEl.addEventListener(event,n),!0):!!p.mousewheel.enabled&&(o("removeEventListener"),!(p.mousewheel.enabled=!1))}a("init",()=>{!p.params.mousewheel.enabled&&p.params.cssMode&&v(),p.params.mousewheel.enabled&&d()}),a("destroy",()=>{p.params.cssMode&&d(),p.mousewheel.enabled&&v()}),Object.assign(p.mousewheel,{enable:d,disable:v})},function(e){let{swiper:l,extendParams:t,on:a,emit:n}=e;function i(e){let t;return!(e&&"string"==typeof e&&l.isElement&&(t=l.el.querySelector(e)||l.hostEl.querySelector(e)))&&(e&&("string"==typeof e&&(t=[...document.querySelectorAll(e)]),l.params.uniqueNavElements&&"string"==typeof e&&t&&1<t.length&&1===l.el.querySelectorAll(e).length?t=l.el.querySelector(e):t&&1===t.length&&(t=t[0])),e)&&!t?e:t}function s(e,t){const a=l.params.navigation;(e=N(e)).forEach(e=>{e&&(e.classList[t?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=t),l.params.watchOverflow)&&l.enabled&&e.classList[l.isLocked?"add":"remove"](a.lockClass)})}function r(){var{nextEl:e,prevEl:t}=l.navigation;l.params.loop?(s(t,!1),s(e,!1)):(s(t,l.isBeginning&&!l.params.rewind),s(e,l.isEnd&&!l.params.rewind))}function o(e){e.preventDefault(),l.isBeginning&&!l.params.loop&&!l.params.rewind||(l.slidePrev(),n("navigationPrev"))}function d(e){e.preventDefault(),l.isEnd&&!l.params.loop&&!l.params.rewind||(l.slideNext(),n("navigationNext"))}function p(){const a=l.params.navigation;if(l.params.navigation=X(l,l.originalParams.navigation,l.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),a.nextEl||a.prevEl){var e=i(a.nextEl),t=i(a.prevEl);Object.assign(l.navigation,{nextEl:e,prevEl:t}),e=N(e),t=N(t);const s=(e,t)=>{e&&e.addEventListener("click","next"===t?d:o),!l.enabled&&e&&e.classList.add(...a.lockClass.split(" "))};e.forEach(e=>s(e,"next")),t.forEach(e=>s(e,"prev"))}}function c(){var{nextEl:e,prevEl:t}=l.navigation,e=N(e),t=N(t);const a=(e,t)=>{e.removeEventListener("click","next"===t?d:o),e.classList.remove(...l.params.navigation.disabledClass.split(" "))};e.forEach(e=>a(e,"next")),t.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),l.navigation={nextEl:null,prevEl:null},a("init",()=>{(!1===l.params.navigation.enabled?u:(p(),r))()}),a("toEdge fromEdge lock unlock",()=>{r()}),a("destroy",()=>{c()}),a("enable disable",()=>{var{nextEl:e,prevEl:t}=l.navigation,e=N(e),t=N(t);l.enabled?r():[...e,...t].filter(e=>!!e).forEach(e=>e.classList.add(l.params.navigation.lockClass))}),a("click",(e,t)=>{let{nextEl:a,prevEl:s}=l.navigation;a=N(a),s=N(s);var i=t.target;let r=s.includes(i)||a.includes(i);if(l.isElement&&!r){const e=t.path||t.composedPath&&t.composedPath();e&&(r=e.find(e=>a.includes(e)||s.includes(e)))}if(l.params.navigation.hideOnClick&&!r&&(!(l.pagination&&l.params.pagination&&l.params.pagination.clickable)||l.pagination.el!==i&&!l.pagination.el.contains(i))){let e;a.length?e=a[0].classList.contains(l.params.navigation.hiddenClass):s.length&&(e=s[0].classList.contains(l.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),[...a,...s].filter(e=>!!e).forEach(e=>e.classList.toggle(l.params.navigation.hiddenClass))}});const u=()=>{l.el.classList.add(...l.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(l.navigation,{enable:()=>{l.el.classList.remove(...l.params.navigation.navigationDisabledClass.split(" ")),p(),r()},disable:u,update:r,init:p,destroy:c})},function(e){let{swiper:d,extendParams:t,on:a,emit:p}=e;e="swiper-pagination";let c,u=(t({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:e+"-bullet",bulletActiveClass:e+"-bullet-active",modifierClass:e+"-",currentClass:e+"-current",totalClass:e+"-total",hiddenClass:e+"-hidden",progressbarFillClass:e+"-progressbar-fill",progressbarOppositeClass:e+"-progressbar-opposite",clickableClass:e+"-clickable",lockClass:e+"-lock",horizontalClass:e+"-horizontal",verticalClass:e+"-vertical",paginationDisabledClass:e+"-disabled"}}),d.pagination={el:null,bullets:[]},0);function i(){return!d.params.pagination.el||!d.pagination.el||Array.isArray(d.pagination.el)&&0===d.pagination.el.length}function m(e,t){var a=d.params.pagination["bulletActiveClass"];(e=e&&e[("prev"===t?"previous":"next")+"ElementSibling"])&&(e.classList.add(a+"-"+t),e=e[("prev"===t?"previous":"next")+"ElementSibling"])&&e.classList.add(a+`-${t}-`+t)}function s(e){var t=e.target.closest(Y(d.params.pagination.bulletClass));if(t){e.preventDefault();var a,s,i,t=G(t)*d.params.slidesPerGroup;if(d.params.loop){if(d.realIndex!==t){a=d.realIndex,s=t;const e=(s%=i=d.slides.length)==1+(a%=i)?"next":s==a-1?"previous":void 0;"next"===e?d.slideNext():"previous"===e?d.slidePrev():d.slideToLoop(t)}}else d.slideTo(t)}}function r(){const l=d.rtl,n=d.params.pagination;if(!i()){let r,e,t=d.pagination.el;t=N(t);const a=(d.virtual&&d.params.virtual.enabled?d.virtual:d).slides.length,o=d.params.loop?Math.ceil(a/d.params.slidesPerGroup):d.snapGrid.length;if(d.params.loop?(e=d.previousRealIndex||0,r=1<d.params.slidesPerGroup?Math.floor(d.realIndex/d.params.slidesPerGroup):d.realIndex):void 0!==d.snapIndex?(r=d.snapIndex,e=d.previousSnapIndex):(e=d.previousIndex||0,r=d.activeIndex||0),"bullets"===n.type&&d.pagination.bullets&&0<d.pagination.bullets.length){const p=d.pagination.bullets;let a,s,i;if(n.dynamicBullets&&(c=B(p[0],d.isHorizontal()?"width":"height",!0),t.forEach(e=>{e.style[d.isHorizontal()?"width":"height"]=c*(n.dynamicMainBullets+4)+"px"}),1<n.dynamicMainBullets&&void 0!==e&&((u+=r-(e||0))>n.dynamicMainBullets-1?u=n.dynamicMainBullets-1:u<0&&(u=0)),a=Math.max(r-u,0),s=a+(Math.min(p.length,n.dynamicMainBullets)-1),i=(s+a)/2),p.forEach(e=>{var t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>""+n.bulletActiveClass+e)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),1<t.length)p.forEach(e=>{var t=G(e);t===r?e.classList.add(...n.bulletActiveClass.split(" ")):d.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(t>=a&&t<=s&&e.classList.add(...(n.bulletActiveClass+"-main").split(" ")),t===a&&m(e,"prev"),t===s)&&m(e,"next")});else{const l=p[r];if(l&&l.classList.add(...n.bulletActiveClass.split(" ")),d.isElement&&p.forEach((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")}),n.dynamicBullets){const l=p[a],d=p[s];for(let e=a;e<=s;e+=1)p[e]&&p[e].classList.add(...(n.bulletActiveClass+"-main").split(" "));m(l,"prev"),m(d,"next")}}if(n.dynamicBullets){const e=Math.min(p.length,n.dynamicMainBullets+4),t=(c*e-c)/2-i*c,u=l?"right":"left";p.forEach(e=>{e.style[d.isHorizontal()?u:"top"]=t+"px"})}}t.forEach((e,s)=>{if("fraction"===n.type&&(e.querySelectorAll(Y(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(r+1)}),e.querySelectorAll(Y(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(o)})),"progressbar"===n.type){var i=n.progressbarOpposite?d.isHorizontal()?"vertical":"horizontal":d.isHorizontal()?"horizontal":"vertical";const s=(r+1)/o;let t=1,a=1;"horizontal"==i?t=s:a=s,e.querySelectorAll(Y(n.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${t}) scaleY(${a})`,e.style.transitionDuration=d.params.speed+"ms"})}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(d,r+1,o),0===s&&p("paginationRender",e)):(0===s&&p("paginationRender",e),p("paginationUpdate",e)),d.params.watchOverflow&&d.enabled&&e.classList[d.isLocked?"add":"remove"](n.lockClass)})}}function l(){const s=d.params.pagination;if(!i()){var e=d.virtual&&d.params.virtual.enabled?d.virtual.slides.length:d.grid&&1<d.params.grid.rows?d.slides.length/Math.ceil(d.params.grid.rows):d.slides.length,t=N(t=d.pagination.el);let a="";if("bullets"===s.type){let t=d.params.loop?Math.ceil(e/d.params.slidesPerGroup):d.snapGrid.length;d.params.freeMode&&d.params.freeMode.enabled&&t>e&&(t=e);for(let e=0;e<t;e+=1)s.renderBullet?a+=s.renderBullet.call(d,e,s.bulletClass):a+=`<${s.bulletElement} ${d.isElement?'part="bullet"':""} class="${s.bulletClass}"></${s.bulletElement}>`}"fraction"===s.type&&(a=s.renderFraction?s.renderFraction.call(d,s.currentClass,s.totalClass):`<span class="${s.currentClass}"></span> / <span class="${s.totalClass}"></span>`),"progressbar"===s.type&&(a=s.renderProgressbar?s.renderProgressbar.call(d,s.progressbarFillClass):`<span class="${s.progressbarFillClass}"></span>`),d.pagination.bullets=[],t.forEach(e=>{"custom"!==s.type&&(e.innerHTML=a||""),"bullets"===s.type&&d.pagination.bullets.push(...e.querySelectorAll(Y(s.bulletClass)))}),"custom"!==s.type&&p("paginationRender",t[0])}}function n(){d.params.pagination=X(d,d.originalParams.pagination,d.params.pagination,{el:"swiper-pagination"});const t=d.params.pagination;if(t.el){let e;(e=(e=(e="string"==typeof t.el&&d.isElement?d.el.querySelector(t.el):e)||"string"!=typeof t.el?e:[...document.querySelectorAll(t.el)])||t.el)&&0!==e.length&&(d.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&1<e.length&&1<(e=[...d.el.querySelectorAll(t.el)]).length&&(e=e.filter(e=>H(e,".swiper")[0]===d.el)[0]),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(d.pagination,{el:e}),(e=N(e)).forEach(e=>{"bullets"===t.type&&t.clickable&&e.classList.add(...(t.clickableClass||"").split(" ")),e.classList.add(t.modifierClass+t.type),e.classList.add(d.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add(""+t.modifierClass+t.type+"-dynamic"),u=0,t.dynamicMainBullets<1)&&(t.dynamicMainBullets=1),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",s),d.enabled||e.classList.add(t.lockClass)}))}}function o(){const t=d.params.pagination;var e;i()||((e=d.pagination.el)&&(e=N(e)).forEach(e=>{e.classList.remove(t.hiddenClass),e.classList.remove(t.modifierClass+t.type),e.classList.remove(d.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(e.classList.remove(...(t.clickableClass||"").split(" ")),e.removeEventListener("click",s))}),d.pagination.bullets&&d.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" "))))}a("changeDirection",()=>{if(d.pagination&&d.pagination.el){const t=d.params.pagination;var e=d.pagination["el"];(e=N(e)).forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass),e.classList.add(d.isHorizontal()?t.horizontalClass:t.verticalClass)})}}),a("init",()=>{(!1===d.params.pagination.enabled?h:(n(),l(),r))()}),a("activeIndexChange",()=>{void 0===d.snapIndex&&r()}),a("snapIndexChange",()=>{r()}),a("snapGridLengthChange",()=>{l(),r()}),a("destroy",()=>{o()}),a("enable disable",()=>{var e=d.pagination["el"];e&&(e=N(e)).forEach(e=>e.classList[d.enabled?"remove":"add"](d.params.pagination.lockClass))}),a("lock unlock",()=>{r()}),a("click",(e,t)=>{var t=t.target,a=N(d.pagination.el);if(d.params.pagination.el&&d.params.pagination.hideOnClick&&a&&0<a.length&&!t.classList.contains(d.params.pagination.bulletClass)&&(!d.navigation||!(d.navigation.nextEl&&t===d.navigation.nextEl||d.navigation.prevEl&&t===d.navigation.prevEl))){const e=a[0].classList.contains(d.params.pagination.hiddenClass);p(!0===e?"paginationShow":"paginationHide"),a.forEach(e=>e.classList.toggle(d.params.pagination.hiddenClass))}});const h=()=>{d.el.classList.add(d.params.pagination.paginationDisabledClass);var e=d.pagination["el"];e&&(e=N(e)).forEach(e=>e.classList.add(d.params.pagination.paginationDisabledClass)),o()};Object.assign(d.pagination,{enable:()=>{d.el.classList.remove(d.params.pagination.paginationDisabledClass);var e=d.pagination["el"];e&&(e=N(e)).forEach(e=>e.classList.remove(d.params.pagination.paginationDisabledClass)),n(),l(),r()},disable:h,render:l,update:r,init:n,destroy:o})},function(e){let{swiper:o,extendParams:t,on:a,emit:r}=e;const l=I();let n,d,p,s,c=!1,u=null,m=null;function i(){if(o.params.scrollbar.el&&o.scrollbar.el){const{scrollbar:a,rtlTranslate:s}=o,{dragEl:i,el:r}=a,l=o.params.scrollbar,n=o.params.loop?o.progressLoop:o.progress;let e=d,t=(p-d)*n;s?0<(t=-t)?(e=d-t,t=0):-t+d>p&&(e=p+t):t<0?(e=d+t,t=0):t+d>p&&(e=p-t),o.isHorizontal()?(i.style.transform=`translate3d(${t}px, 0, 0)`,i.style.width=e+"px"):(i.style.transform=`translate3d(0px, ${t}px, 0)`,i.style.height=e+"px"),l.hide&&(clearTimeout(u),r.style.opacity=1,u=setTimeout(()=>{r.style.opacity=0,r.style.transitionDuration="400ms"},1e3))}}function h(){var e,t,a;o.params.scrollbar.el&&o.scrollbar.el&&(e=o["scrollbar"],{dragEl:t,el:a}=e,t.style.width="",t.style.height="",p=o.isHorizontal()?a.offsetWidth:a.offsetHeight,s=o.size/(o.virtualSize+o.params.slidesOffsetBefore-(o.params.centeredSlides?o.snapGrid[0]:0)),d="auto"===o.params.scrollbar.dragSize?p*s:parseInt(o.params.scrollbar.dragSize,10),o.isHorizontal()?t.style.width=d+"px":t.style.height=d+"px",a.style.display=1<=s?"none":"",o.params.scrollbar.hide&&(a.style.opacity=0),o.params.watchOverflow)&&o.enabled&&e.el.classList[o.isLocked?"add":"remove"](o.params.scrollbar.lockClass)}function f(e){return o.isHorizontal()?e.clientX:e.clientY}function v(e){var{scrollbar:t,rtlTranslate:a}=o,t=t["el"];let s;s=(f(e)-D(t)[o.isHorizontal()?"left":"top"]-(null!==n?n:d/2))/(p-d),s=Math.max(Math.min(s,1),0),a&&(s=1-s);e=o.minTranslate()+(o.maxTranslate()-o.minTranslate())*s;o.updateProgress(e),o.setTranslate(e),o.updateActiveIndex(),o.updateSlidesClasses()}function g(e){var t=o.params.scrollbar,{scrollbar:a,wrapperEl:s}=o,{el:a,dragEl:i}=a;c=!0,n=e.target===i?f(e)-e.target.getBoundingClientRect()[o.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.style.transitionDuration="100ms",i.style.transitionDuration="100ms",v(e),clearTimeout(m),a.style.transitionDuration="0ms",t.hide&&(a.style.opacity=1),o.params.cssMode&&(o.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function w(e){var{scrollbar:t,wrapperEl:a}=o,{el:t,dragEl:s}=t;c&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,v(e),a.style.transitionDuration="0ms",t.style.transitionDuration="0ms",s.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function b(e){const t=o.params.scrollbar,{scrollbar:a,wrapperEl:s}=o,i=a["el"];c&&(c=!1,o.params.cssMode&&(o.wrapperEl.style["scroll-snap-type"]="",s.style.transitionDuration=""),t.hide&&(clearTimeout(m),m=M(()=>{i.style.opacity=0,i.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",e),t.snapOnRelease)&&o.slideToClosest()}function y(e){var t,{scrollbar:a,params:s}=o,a=a.el;a&&(t=!!s.passiveListeners&&{passive:!1,capture:!1},s=!!s.passiveListeners&&{passive:!0,capture:!1},a=a)&&(a[a="on"===e?"addEventListener":"removeEventListener"]("pointerdown",g,t),l[a]("pointermove",w,t),l[a]("pointerup",b,s))}function E(){var{scrollbar:a,el:s}=o,i=(o.params.scrollbar=X(o,o.originalParams.scrollbar,o.params.scrollbar,{el:"swiper-scrollbar"}),o.params.scrollbar);if(i.el){let e,t;if((e="string"==typeof i.el&&o.isElement?o.el.querySelector(i.el):e)||"string"!=typeof i.el)e=e||i.el;else if(!(e=l.querySelectorAll(i.el)).length)return;(e=0<(e=o.params.uniqueNavElements&&"string"==typeof i.el&&1<e.length&&1===s.querySelectorAll(i.el).length?s.querySelector(i.el):e).length?e[0]:e).classList.add(o.isHorizontal()?i.horizontalClass:i.verticalClass),e&&((t=e.querySelector(Y(o.params.scrollbar.dragClass)))||(t=z("div",o.params.scrollbar.dragClass),e.append(t))),Object.assign(a,{el:e,dragEl:t}),i.draggable&&o.params.scrollbar.el&&o.scrollbar.el&&y("on"),e&&e.classList[o.enabled?"remove":"add"](...T(o.params.scrollbar.lockClass))}}function x(){var e=o.params.scrollbar,t=o.scrollbar.el;t&&t.classList.remove(...T(o.isHorizontal()?e.horizontalClass:e.verticalClass)),o.params.scrollbar.el&&o.scrollbar.el&&y("off")}t({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"}}),o.scrollbar={el:null,dragEl:null},a("changeDirection",()=>{if(o.scrollbar&&o.scrollbar.el){const t=o.params.scrollbar;var e=o.scrollbar["el"];(e=N(e)).forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass),e.classList.add(o.isHorizontal()?t.horizontalClass:t.verticalClass)})}}),a("init",()=>{(!1===o.params.scrollbar.enabled?S:(E(),h(),i))()}),a("update resize observerUpdate lock unlock changeDirection",()=>{h()}),a("setTranslate",()=>{i()}),a("setTransition",(e,t)=>{t=t,o.params.scrollbar.el&&o.scrollbar.el&&(o.scrollbar.dragEl.style.transitionDuration=t+"ms")}),a("enable disable",()=>{var e=o.scrollbar["el"];e&&e.classList[o.enabled?"remove":"add"](...T(o.params.scrollbar.lockClass))}),a("destroy",()=>{x()});const S=()=>{o.el.classList.add(...T(o.params.scrollbar.scrollbarDisabledClass)),o.scrollbar.el&&o.scrollbar.el.classList.add(...T(o.params.scrollbar.scrollbarDisabledClass)),x()};Object.assign(o.scrollbar,{enable:()=>{o.el.classList.remove(...T(o.params.scrollbar.scrollbarDisabledClass)),o.scrollbar.el&&o.scrollbar.el.classList.remove(...T(o.params.scrollbar.scrollbarDisabledClass)),E(),h(),i()},disable:S,updateSize:h,setTranslate:i,init:E,destroy:x})},function(e){let{swiper:p,extendParams:t,on:a}=e;t({parallax:{enabled:!1}});const r="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",l=(e,t)=>{var a=p["rtl"],a=a?-1:1,s=e.getAttribute("data-swiper-parallax")||"0";let i=e.getAttribute("data-swiper-parallax-x"),r=e.getAttribute("data-swiper-parallax-y");var l=e.getAttribute("data-swiper-parallax-scale"),n=e.getAttribute("data-swiper-parallax-opacity"),o=e.getAttribute("data-swiper-parallax-rotate");if(i||r?(i=i||"0",r=r||"0"):p.isHorizontal()?(i=s,r="0"):(r=s,i="0"),i=0<=i.indexOf("%")?parseInt(i,10)*t*a+"%":i*t*a+"px",r=0<=r.indexOf("%")?parseInt(r,10)*t+"%":r*t+"px",null!=n){const p=n-(n-1)*(1-Math.abs(t));e.style.opacity=p}let d=`translate3d(${i}, ${r}, 0px)`;null!=l&&(d+=` scale(${l-(l-1)*(1-Math.abs(t))})`),o&&null!=o&&(d+=` rotate(${o*t*-1}deg)`),e.style.transform=d},s=()=>{const{el:e,slides:t,progress:s,snapGrid:i}=p,a=O(e,r);p.isElement&&a.push(...O(p.hostEl,r)),a.forEach(e=>{l(e,s)}),t.forEach((e,t)=>{let a=e.progress;1<p.params.slidesPerGroup&&"auto"!==p.params.slidesPerView&&(a+=Math.ceil(t/2)-s*(i.length-1)),a=Math.min(Math.max(a,-1),1),e.querySelectorAll(r+", [data-swiper-parallax-rotate]").forEach(e=>{l(e,a)})})};a("beforeInit",()=>{p.params.parallax.enabled&&(p.params.watchSlidesProgress=!0,p.originalParams.watchSlidesProgress=!0)}),a("init",()=>{p.params.parallax.enabled&&s()}),a("setTranslate",()=>{p.params.parallax.enabled&&s()}),a("setTransition",(e,t)=>{var a,s;p.params.parallax.enabled&&({el:t,hostEl:s}=(void 0===(a=t)&&(a=p.params.speed),p),t=[...t.querySelectorAll(r)],p.isElement&&t.push(...s.querySelectorAll(r)),t.forEach(e=>{let t=parseInt(e.getAttribute("data-swiper-parallax-duration"),10)||a;0===a&&(t=0),e.style.transitionDuration=t+"ms"}))})},function(e){let{swiper:x,extendParams:t,on:a,emit:s}=e;const S=A();t({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),x.zoom={enabled:!1};let i,r,T=1,l=!1;const n=[],M={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},C={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:{}},o={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let d,p=1;function c(){var e,t,a,s;return n.length<2?1:(e=n[0].pageX,t=n[0].pageY,a=n[1].pageX,s=n[1].pageY,Math.sqrt((a-e)**2+(s-t)**2))}function P(){const e=x.params.zoom,t=M.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&M.imageEl&&M.imageEl.naturalWidth){const e=M.imageEl.naturalWidth/M.imageEl.offsetWidth;return Math.min(e,t)}return t}function u(t){var e=x.isElement?"swiper-slide":"."+x.params.slideClass;return t.target.matches(e)||0<x.slides.filter(e=>e.contains(t.target)).length}function m(t){if("mouse"===t.pointerType&&n.splice(0,n.length),u(t)){var a=x.params.zoom;if(i=!1,r=!1,n.push(t),!(n.length<2)){if(i=!0,M.scaleStart=c(),!M.slideEl){M.slideEl=t.target.closest(`.${x.params.slideClass}, swiper-slide`),M.slideEl||(M.slideEl=x.slides[x.activeIndex]);let e=M.slideEl.querySelector("."+a.containerClass);if(e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],M.imageEl=e,M.imageWrapEl=e?H(M.imageEl,"."+a.containerClass)[0]:void 0,!M.imageWrapEl)return void(M.imageEl=void 0);M.maxRatio=P()}if(M.imageEl){const[t,x]=n.length<2?{x:null,y:null}:(a=M.imageEl.getBoundingClientRect(),[(n[0].pageX+(n[1].pageX-n[0].pageX)/2-a.x-S.scrollX)/T,(n[0].pageY+(n[1].pageY-n[0].pageY)/2-a.y-S.scrollY)/T]);M.originX=t,M.originY=x,M.imageEl.style.transitionDuration="0ms"}l=!0}}}function h(t){var e,a,s;u(t)&&(e=x.params.zoom,a=x.zoom,0<=(s=n.findIndex(e=>e.pointerId===t.pointerId))&&(n[s]=t),n.length<2||(r=!0,M.scaleMove=c(),M.imageEl&&(a.scale=M.scaleMove/M.scaleStart*T,a.scale>M.maxRatio&&(a.scale=M.maxRatio-1+(a.scale-M.maxRatio+1)**.5),a.scale<e.minRatio&&(a.scale=e.minRatio+1-(e.minRatio-a.scale+1)**.5),M.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`)))}function f(t){var e,a,s;!u(t)||"mouse"===t.pointerType&&"pointerout"===t.type||(e=x.params.zoom,a=x.zoom,0<=(s=n.findIndex(e=>e.pointerId===t.pointerId))&&n.splice(s,1),i&&r&&(i=!1,r=!1,M.imageEl)&&(a.scale=Math.max(Math.min(a.scale,M.maxRatio),e.minRatio),M.imageEl.style.transitionDuration=x.params.speed+"ms",M.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`,T=a.scale,l=!1,1<a.scale&&M.slideEl?M.slideEl.classList.add(""+e.zoomedSlideClass):a.scale<=1&&M.slideEl&&M.slideEl.classList.remove(""+e.zoomedSlideClass),1===a.scale)&&(M.originX=0,M.originY=0,M.slideEl=void 0))}function v(){x.touchEventsData.preventTouchMoveFromPointerMove=!1}function g(e){if(u(e)&&(t=e,a="."+x.params.zoom.containerClass,t.target.matches(a)||0<[...x.hostEl.querySelectorAll(a)].filter(e=>e.contains(t.target)).length)){var t,a=x.zoom;if(M.imageEl&&C.isTouched&&M.slideEl){C.isMoved||(C.width=M.imageEl.offsetWidth||M.imageEl.clientWidth,C.height=M.imageEl.offsetHeight||M.imageEl.clientHeight,C.startX=k(M.imageWrapEl,"x")||0,C.startY=k(M.imageWrapEl,"y")||0,M.slideWidth=M.slideEl.offsetWidth,M.slideHeight=M.slideEl.offsetHeight,M.imageWrapEl.style.transitionDuration="0ms");var s=C.width*a.scale,i=C.height*a.scale;if(C.minX=Math.min(M.slideWidth/2-s/2,0),C.maxX=-C.minX,C.minY=Math.min(M.slideHeight/2-i/2,0),C.maxY=-C.minY,C.touchesCurrent.x=(0<n.length?n[0]:e).pageX,C.touchesCurrent.y=(0<n.length?n[0]:e).pageY,5<Math.max(Math.abs(C.touchesCurrent.x-C.touchesStart.x),Math.abs(C.touchesCurrent.y-C.touchesStart.y))&&(x.allowClick=!1),!C.isMoved&&!l){if(x.isHorizontal()&&(Math.floor(C.minX)===Math.floor(C.startX)&&C.touchesCurrent.x<C.touchesStart.x||Math.floor(C.maxX)===Math.floor(C.startX)&&C.touchesCurrent.x>C.touchesStart.x))return C.isTouched=!1,void v();if(!x.isHorizontal()&&(Math.floor(C.minY)===Math.floor(C.startY)&&C.touchesCurrent.y<C.touchesStart.y||Math.floor(C.maxY)===Math.floor(C.startY)&&C.touchesCurrent.y>C.touchesStart.y))return C.isTouched=!1,void v()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(d),x.touchEventsData.preventTouchMoveFromPointerMove=!0,d=setTimeout(()=>{x.destroyed||v()}),C.isMoved=!0;var s=(a.scale-T)/(M.maxRatio-x.params.zoom.minRatio),{originX:i,originY:e}=M;C.currentX=C.touchesCurrent.x-C.touchesStart.x+C.startX+s*(C.width-2*i),C.currentY=C.touchesCurrent.y-C.touchesStart.y+C.startY+s*(C.height-2*e),C.currentX<C.minX&&(C.currentX=C.minX+1-(C.minX-C.currentX+1)**.8),C.currentX>C.maxX&&(C.currentX=C.maxX-1+(C.currentX-C.maxX+1)**.8),C.currentY<C.minY&&(C.currentY=C.minY+1-(C.minY-C.currentY+1)**.8),C.currentY>C.maxY&&(C.currentY=C.maxY-1+(C.currentY-C.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=C.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=C.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(C.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(C.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(C.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(C.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=C.touchesCurrent.x,o.prevPositionY=C.touchesCurrent.y,o.prevTime=Date.now(),M.imageWrapEl.style.transform=`translate3d(${C.currentX}px, ${C.currentY}px,0)`}}}function w(){var e=x.zoom;M.slideEl&&x.activeIndex!==x.slides.indexOf(M.slideEl)&&(M.imageEl&&(M.imageEl.style.transform="translate3d(0,0,0) scale(1)"),M.imageWrapEl&&(M.imageWrapEl.style.transform="translate3d(0,0,0)"),M.slideEl.classList.remove(""+x.params.zoom.zoomedSlideClass),e.scale=1,T=1,M.slideEl=void 0,M.imageEl=void 0,M.imageWrapEl=void 0,M.originX=0,M.originY=0)}function b(w){var b=x.zoom,y=x.params.zoom;if(!M.slideEl){w&&w.target&&(M.slideEl=w.target.closest(`.${x.params.slideClass}, swiper-slide`)),M.slideEl||(x.params.virtual&&x.params.virtual.enabled&&x.virtual?M.slideEl=O(x.slidesEl,"."+x.params.slideActiveClass)[0]:M.slideEl=x.slides[x.activeIndex]);let e=M.slideEl.querySelector("."+y.containerClass);e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],M.imageEl=e,M.imageWrapEl=e?H(M.imageEl,"."+y.containerClass)[0]:void 0}if(M.imageEl&&M.imageWrapEl){let e,t,a,s,i,r,l,n,o,d,p,c,u,m,h,f,v,g;x.params.cssMode&&(x.wrapperEl.style.overflow="hidden",x.wrapperEl.style.touchAction="none"),M.slideEl.classList.add(""+y.zoomedSlideClass),t=void 0===C.touchesStart.x&&w?(e=w.pageX,w.pageY):(e=C.touchesStart.x,C.touchesStart.y);var y="number"==typeof w?w:null,E=(1===T&&y&&(e=void 0,t=void 0,C.touchesStart.x=void 0,C.touchesStart.y=void 0),P());b.scale=y||E,T=y||E,!w||1===T&&y?(l=0,n=0):(v=M.slideEl.offsetWidth,g=M.slideEl.offsetHeight,a=D(M.slideEl).left+S.scrollX,s=D(M.slideEl).top+S.scrollY,i=a+v/2-e,r=s+g/2-t,o=M.imageEl.offsetWidth||M.imageEl.clientWidth,d=M.imageEl.offsetHeight||M.imageEl.clientHeight,p=o*b.scale,c=d*b.scale,h=-(u=Math.min(v/2-p/2,0)),f=-(m=Math.min(g/2-c/2,0)),l=i*b.scale,n=r*b.scale,(l=l<u?u:l)>h&&(l=h),(n=n<m?m:n)>f&&(n=f)),y&&1===b.scale&&(M.originX=0,M.originY=0),M.imageWrapEl.style.transitionDuration="300ms",M.imageWrapEl.style.transform=`translate3d(${l}px, ${n}px,0)`,M.imageEl.style.transitionDuration="300ms",M.imageEl.style.transform=`translate3d(0,0,0) scale(${b.scale})`}}function y(){var e=x.zoom,t=x.params.zoom;if(!M.slideEl){x.params.virtual&&x.params.virtual.enabled&&x.virtual?M.slideEl=O(x.slidesEl,"."+x.params.slideActiveClass)[0]:M.slideEl=x.slides[x.activeIndex];let e=M.slideEl.querySelector("."+t.containerClass);e=e&&e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0],M.imageEl=e,M.imageWrapEl=e?H(M.imageEl,"."+t.containerClass)[0]:void 0}M.imageEl&&M.imageWrapEl&&(x.params.cssMode&&(x.wrapperEl.style.overflow="",x.wrapperEl.style.touchAction=""),e.scale=1,T=1,C.touchesStart.x=void 0,C.touchesStart.y=void 0,M.imageWrapEl.style.transitionDuration="300ms",M.imageWrapEl.style.transform="translate3d(0,0,0)",M.imageEl.style.transitionDuration="300ms",M.imageEl.style.transform="translate3d(0,0,0) scale(1)",M.slideEl.classList.remove(""+t.zoomedSlideClass),M.slideEl=void 0,M.originX=0,M.originY=0)}function E(e){var t=x.zoom;t.scale&&1!==t.scale?y():b(e)}function L(){return{passiveListener:!!x.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!x.params.passiveListeners||{passive:!1,capture:!0}}}function I(){var e=x.zoom;if(!e.enabled){e.enabled=!0;const{passiveListener:t,activeListenerWithCapture:a}=L();x.wrapperEl.addEventListener("pointerdown",m,t),x.wrapperEl.addEventListener("pointermove",h,a),["pointerup","pointercancel","pointerout"].forEach(e=>{x.wrapperEl.addEventListener(e,f,t)}),x.wrapperEl.addEventListener("pointermove",g,a)}}function z(){var e=x.zoom;if(e.enabled){e.enabled=!1;const{passiveListener:t,activeListenerWithCapture:a}=L();x.wrapperEl.removeEventListener("pointerdown",m,t),x.wrapperEl.removeEventListener("pointermove",h,a),["pointerup","pointercancel","pointerout"].forEach(e=>{x.wrapperEl.removeEventListener(e,f,t)}),x.wrapperEl.removeEventListener("pointermove",g,a)}}Object.defineProperty(x.zoom,"scale",{get:()=>p,set(e){var t,a;p!==e&&(t=M.imageEl,a=M.slideEl,s("zoomChange",e,t,a)),p=e}}),a("init",()=>{x.params.zoom.enabled&&I()}),a("destroy",()=>{z()}),a("touchStart",(e,t)=>{var a;x.zoom.enabled&&(t=t,a=x.device,M.imageEl)&&!C.isTouched&&(a.android&&t.cancelable&&t.preventDefault(),C.isTouched=!0,a=0<n.length?n[0]:t,C.touchesStart.x=a.pageX,C.touchesStart.y=a.pageY)}),a("touchEnd",(e,t)=>{if(x.zoom.enabled){var a=x.zoom;if(M.imageEl){if(!C.isTouched||!C.isMoved)return void(C.isTouched=!1,C.isMoved=!1);C.isTouched=!1,C.isMoved=!1;let e=300,t=300;var s=o.x*e,s=C.currentX+s,i=o.y*t,i=C.currentY+i,r=(0!==o.x&&(e=Math.abs((s-C.currentX)/o.x)),0!==o.y&&(t=Math.abs((i-C.currentY)/o.y)),Math.max(e,t)),s=(C.currentX=s,C.currentY=i,C.width*a.scale),i=C.height*a.scale;C.minX=Math.min(M.slideWidth/2-s/2,0),C.maxX=-C.minX,C.minY=Math.min(M.slideHeight/2-i/2,0),C.maxY=-C.minY,C.currentX=Math.max(Math.min(C.currentX,C.maxX),C.minX),C.currentY=Math.max(Math.min(C.currentY,C.maxY),C.minY),M.imageWrapEl.style.transitionDuration=r+"ms",M.imageWrapEl.style.transform=`translate3d(${C.currentX}px, ${C.currentY}px,0)`}}}),a("doubleTap",(e,t)=>{!x.animating&&x.params.zoom.enabled&&x.zoom.enabled&&x.params.zoom.toggle&&E(t)}),a("transitionEnd",()=>{x.zoom.enabled&&x.params.zoom.enabled&&w()}),a("slideChange",()=>{x.zoom.enabled&&x.params.zoom.enabled&&x.params.cssMode&&w()}),Object.assign(x.zoom,{enable:I,disable:z,in:b,out:y,toggle:E})},function(e){let{swiper:n,extendParams:t,on:a}=e;function o(e,t){const a=function(){let a,s,i;return(e,t)=>{for(s=-1,a=e.length;1<a-s;)e[i=a+s>>1]<=t?s=i:a=i;return a}}();let s,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=a(this.x,e),s=i-1,(e-this.x[s])*(this.y[i]-this.y[s])/(this.x[i]-this.x[s])+this.y[s]):0},this}function s(){n.controller.control&&n.controller.spline&&(n.controller.spline=void 0,delete n.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),n.controller={control:void 0},a("beforeInit",()=>{"undefined"!=typeof window&&("string"==typeof n.params.controller.control||n.params.controller.control instanceof HTMLElement)?("string"==typeof n.params.controller.control?[...document.querySelectorAll(n.params.controller.control)]:[n.params.controller.control]).forEach(t=>{if(n.controller.control||(n.controller.control=[]),t&&t.swiper)n.controller.control.push(t.swiper);else if(t){const a=n.params.eventsPrefix+"init",s=e=>{n.controller.control.push(e.detail[0]),n.update(),t.removeEventListener(a,s)};t.addEventListener(a,s)}}):n.controller.control=n.params.controller.control}),a("update",()=>{s()}),a("resize",()=>{s()}),a("observerUpdate",()=>{s()}),a("setTranslate",(e,t,a)=>{n.controller.control&&!n.controller.control.destroyed&&n.controller.setTranslate(t,a)}),a("setTransition",(e,t,a)=>{n.controller.control&&!n.controller.control.destroyed&&n.controller.setTransition(t,a)}),Object.assign(n.controller,{setTranslate:function(e,t){var a=n.controller.control;let s,i;var r=n.constructor;function l(e){var t,a;e.destroyed||(t=n.rtlTranslate?-n.translate:n.translate,"slide"===n.params.controller.by&&(a=e,n.controller.spline=n.params.loop?new o(n.slidesGrid,a.slidesGrid):new o(n.snapGrid,a.snapGrid),i=-n.controller.spline.interpolate(-t)),i&&"container"!==n.params.controller.by||(s=(e.maxTranslate()-e.minTranslate())/(n.maxTranslate()-n.minTranslate()),!Number.isNaN(s)&&Number.isFinite(s)||(s=1),i=(t-n.minTranslate())*s+e.minTranslate()),n.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,n),e.updateActiveIndex(),e.updateSlidesClasses())}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==t&&a[e]instanceof r&&l(a[e]);else a instanceof r&&t!==a&&l(a)},setTransition:function(t,e){const a=n.constructor,s=n.controller.control;let i;function r(e){e.destroyed||(e.setTransition(t,n),0!==t&&(e.transitionStart(),e.params.autoHeight&&M(()=>{e.updateAutoHeight()}),f(e.wrapperEl,()=>{s&&e.transitionEnd()})))}if(Array.isArray(s))for(i=0;i<s.length;i+=1)s[i]!==e&&s[i]instanceof a&&r(s[i]);else s instanceof a&&e!==s&&r(s)}})},function(e){let{swiper:n,extendParams:t,on:a}=e;t({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,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),n.a11y={clicked:!1};let i,r,o=null,l=(new Date).getTime();function s(e){var t=o;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function d(e){(e=N(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function p(e){(e=N(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function c(e,t){(e=N(e)).forEach(e=>{e.setAttribute("role",t)})}function u(e,t){(e=N(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function m(e,t){(e=N(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function h(e){(e=N(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function f(e){(e=N(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function v(e){if(13===e.keyCode||32===e.keyCode){var t=n.params.a11y,a=e.target;if(!n.pagination||!n.pagination.el||a!==n.pagination.el&&!n.pagination.el.contains(e.target)||e.target.matches(Y(n.params.pagination.bulletClass))){if(n.navigation&&n.navigation.prevEl&&n.navigation.nextEl){const e=N(n.navigation.prevEl);N(n.navigation.nextEl).includes(a)&&(n.isEnd&&!n.params.loop||n.slideNext(),n.isEnd?s(t.lastSlideMessage):s(t.nextSlideMessage)),e.includes(a)&&(n.isBeginning&&!n.params.loop||n.slidePrev(),n.isBeginning?s(t.firstSlideMessage):s(t.prevSlideMessage))}n.pagination&&a.matches(Y(n.params.pagination.bulletClass))&&a.click()}}}function g(){return n.pagination&&n.pagination.bullets&&n.pagination.bullets.length}function w(){return g()&&n.params.pagination.clickable}const b=(e,t,a)=>{var s;d(e),"BUTTON"!==e.tagName&&(c(e,"button"),e.addEventListener("keydown",v)),m(e,a),s=t,N(e).forEach(e=>{e.setAttribute("aria-controls",s)})},y=e=>{r&&r!==e.target&&!r.contains(e.target)&&(i=!0),n.a11y.clicked=!0},E=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.destroyed||(n.a11y.clicked=!1)})})},x=e=>{l=(new Date).getTime()},S=e=>{if(!n.a11y.clicked&&n.params.a11y.scrollOnFocus&&!((new Date).getTime()-l<100)){const s=e.target.closest(`.${n.params.slideClass}, swiper-slide`);var t,a;s&&n.slides.includes(s)&&(r=s,t=n.slides.indexOf(s)===n.activeIndex,a=n.params.watchSlidesProgress&&n.visibleSlides&&n.visibleSlides.includes(s),t||a||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(n.isHorizontal()?n.el.scrollLeft=0:n.el.scrollTop=0,requestAnimationFrame(()=>{i||(n.params.loop?n.slideToLoop(parseInt(s.getAttribute("data-swiper-slide-index")),0):n.slideTo(n.slides.indexOf(s),0),i=!1)})))}},T=()=>{const a=n.params.a11y,s=(a.itemRoleDescriptionMessage&&u(n.slides,a.itemRoleDescriptionMessage),a.slideRole&&c(n.slides,a.slideRole),n.slides.length);a.slideLabelMessage&&n.slides.forEach((e,t)=>{t=n.params.loop?parseInt(e.getAttribute("data-swiper-slide-index"),10):t;m(e,a.slideLabelMessage.replace(/\{\{index\}\}/,t+1).replace(/\{\{slidesLength\}\}/,s))})};a("beforeInit",()=>{(o=z("span",n.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),a("afterInit",()=>{if(n.params.a11y.enabled){const i=n.params.a11y;n.el.append(o);var e=n.el;i.containerRoleDescriptionMessage&&u(e,i.containerRoleDescriptionMessage),i.containerMessage&&m(e,i.containerMessage),i.containerRole&&c(e,i.containerRole);const r=n.wrapperEl,l=i.id||r.getAttribute("id")||"swiper-wrapper-"+"x".repeat(e=void 0===(e=16)?16:e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16));var t,e=n.params.autoplay&&n.params.autoplay.enabled?"off":"polite",a=l,{nextEl:e,prevEl:s}=(N(r).forEach(e=>{e.setAttribute("id",a)}),r,t=e,N(r).forEach(e=>{e.setAttribute("aria-live",t)}),T(),n.navigation||{}),e=N(e),s=N(s);e&&e.forEach(e=>b(e,l,i.nextSlideMessage)),s&&s.forEach(e=>b(e,l,i.prevSlideMessage)),w()&&N(n.pagination.el).forEach(e=>{e.addEventListener("keydown",v)}),I().addEventListener("visibilitychange",x),n.el.addEventListener("focus",S,!0),n.el.addEventListener("focus",S,!0),n.el.addEventListener("pointerdown",y,!0),n.el.addEventListener("pointerup",E,!0)}}),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{n.params.a11y.enabled&&T()}),a("fromEdge toEdge afterInit lock unlock",()=>{var e,t;n.params.a11y.enabled&&!n.params.loop&&!n.params.rewind&&n.navigation&&({nextEl:e,prevEl:t}=n.navigation,t&&(n.isBeginning?(h(t),p):(f(t),d))(t),e)&&(n.isEnd?(h(e),p):(f(e),d))(e)}),a("paginationUpdate",()=>{if(n.params.a11y.enabled){const t=n.params.a11y;g()&&n.pagination.bullets.forEach(e=>{n.params.pagination.clickable&&(d(e),n.params.pagination.renderBullet||(c(e,"button"),m(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,G(e)+1)))),e.matches(Y(n.params.pagination.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}}),a("destroy",()=>{var e,t;n.params.a11y.enabled&&(o&&o.remove(),{nextEl:e,prevEl:t}=n.navigation||{},e=N(e),t=N(t),e&&e.forEach(e=>e.removeEventListener("keydown",v)),t&&t.forEach(e=>e.removeEventListener("keydown",v)),w()&&N(n.pagination.el).forEach(e=>{e.removeEventListener("keydown",v)}),I().removeEventListener("visibilitychange",x),n.el)&&"string"!=typeof n.el&&(n.el.removeEventListener("focus",S,!0),n.el.removeEventListener("pointerdown",y,!0),n.el.removeEventListener("pointerup",E,!0))})},function(e){let{swiper:l,extendParams:t,on:a}=e,r=(t({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}}),!1),s={};const n=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),i=e=>{var t=A(),e=(e?new URL(e):t.location).pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},o=(a,e)=>{var s=A();if(r&&l.params.history.enabled){var i=l.params.url?new URL(l.params.url):s.location,e=l.virtual&&l.params.virtual.enabled?l.slidesEl.querySelector(`[data-swiper-slide-index="${e}"]`):l.slides[e];let t=n(e.getAttribute("data-history"));if(0<l.params.history.root.length){let e=l.params.history.root;"/"===e[e.length-1]&&(e=e.slice(0,e.length-1)),t=e+"/"+(a?a+"/":"")+t}else i.pathname.includes(a)||(t=(a?a+"/":"")+t);l.params.history.keepQuery&&(t+=i.search);e=s.history.state;e&&e.value===t||(l.params.history.replaceState?s.history.replaceState({value:t},null,t):s.history.pushState({value:t},null,t))}},d=(a,s,i)=>{if(s)for(let e=0,t=l.slides.length;e<t;e+=1){var r=l.slides[e];if(n(r.getAttribute("data-history"))===s){const s=l.getSlideIndex(r);l.slideTo(s,a,i)}}else l.slideTo(0,a,i)},p=()=>{s=i(l.params.url),d(l.params.speed,s.value,!1)};a("init",()=>{var e;l.params.history.enabled&&(e=A(),l.params.history)&&(e.history&&e.history.pushState?(r=!0,((s=i(l.params.url)).key||s.value)&&d(0,s.value,l.params.runCallbacksOnInit),l.params.history.replaceState||e.addEventListener("popstate",p)):(l.params.history.enabled=!1,l.params.hashNavigation.enabled=!0))}),a("destroy",()=>{var e;l.params.history.enabled&&(e=A(),l.params.history.replaceState||e.removeEventListener("popstate",p))}),a("transitionEnd _freeModeNoMomentumRelease",()=>{r&&o(l.params.history.key,l.activeIndex)}),a("slideChange",()=>{r&&l.params.cssMode&&o(l.params.history.key,l.activeIndex)})},function(e){let{swiper:a,extendParams:t,emit:s,on:i}=e,r=!1;const l=I(),n=A(),o=(t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,t){if(a.virtual&&a.params.virtual.enabled){const e=a.slides.filter(e=>e.getAttribute("data-hash")===t)[0];return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return a.getSlideIndex(O(a.slidesEl,`.${a.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0])}}}),()=>{s("hashChange");const e=l.location.hash.replace("#",""),t=a.virtual&&a.params.virtual.enabled?a.slidesEl.querySelector(`[data-swiper-slide-index="${a.activeIndex}"]`):a.slides[a.activeIndex];if(e!==(t?t.getAttribute("data-hash"):"")){const t=a.params.hashNavigation.getSlideIndex(a,e);void 0===t||Number.isNaN(t)||a.slideTo(t)}}),d=()=>{var e;r&&a.params.hashNavigation.enabled&&(e=(e=a.virtual&&a.params.virtual.enabled?a.slidesEl.querySelector(`[data-swiper-slide-index="${a.activeIndex}"]`):a.slides[a.activeIndex])?e.getAttribute("data-hash")||e.getAttribute("data-history"):"",a.params.hashNavigation.replaceState&&n.history&&n.history.replaceState?n.history.replaceState(null,null,"#"+e||""):l.location.hash=e||"",s("hashSet"))};i("init",()=>{var e;!a.params.hashNavigation.enabled||!a.params.hashNavigation.enabled||a.params.history&&a.params.history.enabled||(r=!0,(e=l.location.hash.replace("#",""))&&(e=a.params.hashNavigation.getSlideIndex(a,e),a.slideTo(e||0,0,a.params.runCallbacksOnInit,!0)),a.params.hashNavigation.watchState&&n.addEventListener("hashchange",o))}),i("destroy",()=>{a.params.hashNavigation.enabled&&a.params.hashNavigation.watchState&&n.removeEventListener("hashchange",o)}),i("transitionEnd _freeModeNoMomentumRelease",()=>{r&&d()}),i("slideChange",()=>{r&&a.params.cssMode&&d()})},function(e){let r,l,{swiper:n,extendParams:t,on:a,emit:o,params:s}=e;n.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,i,p,c,u,m,h,f,v=s&&s.autoplay?s.autoplay.delay:3e3,g=s&&s.autoplay?s.autoplay.delay:3e3,w=(new Date).getTime();function b(e){n&&!n.destroyed&&n.wrapperEl&&e.target===n.wrapperEl&&(n.wrapperEl.removeEventListener("transitionend",b),f||e.detail&&e.detail.bySwiperTouchMove||M())}const y=()=>{var e;!n.destroyed&&n.autoplay.running&&(n.autoplay.paused?i=!0:i&&(g=d,i=!1),e=n.autoplay.paused?d:w+g-(new Date).getTime(),n.autoplay.timeLeft=e,o("autoplayTimeLeft",e,e/v),l=requestAnimationFrame(()=>{y()}))},E=t=>{if(!n.destroyed&&n.autoplay.running){cancelAnimationFrame(l),y();let e=void 0===t?n.params.autoplay.delay:t;v=n.params.autoplay.delay,g=n.params.autoplay.delay;var a=(()=>{var e=n.virtual&&n.params.virtual.enabled?n.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:n.slides[n.activeIndex];if(e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(a)&&0<a&&void 0===t&&(e=a,v=a,g=a),d=e;const s=n.params.speed,i=()=>{n&&!n.destroyed&&(n.params.autoplay.reverseDirection?!n.isBeginning||n.params.loop||n.params.rewind?(n.slidePrev(s,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(n.slides.length-1,s,!0,!0),o("autoplay")):!n.isEnd||n.params.loop||n.params.rewind?(n.slideNext(s,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(0,s,!0,!0),o("autoplay")),n.params.cssMode)&&(w=(new Date).getTime(),requestAnimationFrame(()=>{E()}))};return 0<e?(clearTimeout(r),r=setTimeout(()=>{i()},e)):requestAnimationFrame(()=>{i()}),e}},x=()=>{w=(new Date).getTime(),n.autoplay.running=!0,E(),o("autoplayStart")},S=()=>{n.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(l),o("autoplayStop")},T=(e,t)=>{!n.destroyed&&n.autoplay.running&&(clearTimeout(r),e||(h=!0),e=()=>{o("autoplayPause"),n.params.autoplay.waitForTransition?n.wrapperEl.addEventListener("transitionend",b):M()},n.autoplay.paused=!0,t?(m&&(d=n.params.autoplay.delay),m=!1,e()):(t=d||n.params.autoplay.delay,d=t-((new Date).getTime()-w),n.isEnd&&d<0&&!n.params.loop||(d<0&&(d=0),e())))},M=()=>{n.isEnd&&d<0&&!n.params.loop||n.destroyed||!n.autoplay.running||(w=(new Date).getTime(),h?(h=!1,E(d)):E(),n.autoplay.paused=!1,o("autoplayResume"))},C=()=>{var e;!n.destroyed&&n.autoplay.running&&("hidden"===(e=I()).visibilityState&&(h=!0,T(!0)),"visible"===e.visibilityState)&&M()},P=e=>{"mouse"===e.pointerType&&(h=!0,f=!0,n.animating||n.autoplay.paused||T(!0))},L=e=>{"mouse"===e.pointerType&&(f=!1,n.autoplay.paused)&&M()};a("init",()=>{n.params.autoplay.enabled&&(n.params.autoplay.pauseOnMouseEnter&&(n.el.addEventListener("pointerenter",P),n.el.addEventListener("pointerleave",L)),I().addEventListener("visibilitychange",C),x())}),a("destroy",()=>{n.el&&"string"!=typeof n.el&&(n.el.removeEventListener("pointerenter",P),n.el.removeEventListener("pointerleave",L)),I().removeEventListener("visibilitychange",C),n.autoplay.running&&S()}),a("_freeModeStaticRelease",()=>{(c||h)&&M()}),a("_freeModeNoMomentumRelease",()=>{n.params.autoplay.disableOnInteraction?S():T(!0,!0)}),a("beforeTransitionStart",(e,t,a)=>{!n.destroyed&&n.autoplay.running&&(a||!n.params.autoplay.disableOnInteraction?T(!0,!0):S())}),a("sliderFirstMove",()=>{!n.destroyed&&n.autoplay.running&&(n.params.autoplay.disableOnInteraction?S():(p=!0,c=!1,h=!1,u=setTimeout(()=>{h=!0,c=!0,T(!0)},200)))}),a("touchEnd",()=>{!n.destroyed&&n.autoplay.running&&p&&(clearTimeout(u),clearTimeout(r),p=(c=(n.params.autoplay.disableOnInteraction||c&&n.params.cssMode&&M(),!1),!1))}),a("slideChange",()=>{!n.destroyed&&n.autoplay.running&&(m=!0)}),Object.assign(n.autoplay,{start:x,stop:S,pause:T,resume:M})},function(e){let{swiper:o,extendParams:t,on:a}=e,s=(t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}}),!1),i=!1;function r(){var e,t,a=o.thumbs.swiper;!a||a.destroyed||(e=a.clickedIndex,(t=a.clickedSlide)&&t.classList.contains(o.params.thumbs.slideThumbActiveClass))||null!=e&&(t=a.params.loop?parseInt(a.clickedSlide.getAttribute("data-swiper-slide-index"),10):e,o.params.loop?o.slideToLoop(t):o.slideTo(t))}function l(){var e=o.params["thumbs"];if(s)return!1;s=!0;var t=o.constructor;return e.swiper instanceof t?(o.thumbs.swiper=e.swiper,Object.assign(o.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(o.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),o.thumbs.swiper.update()):d(e.swiper)&&(e=Object.assign({},e.swiper),Object.assign(e,{watchSlidesProgress:!0,slideToClickedSlide:!1}),o.thumbs.swiper=new t(e),i=!0),o.thumbs.swiper.el.classList.add(o.params.thumbs.thumbsContainerClass),o.thumbs.swiper.on("tap",r),!0}function n(s){var i=o.thumbs.swiper;if(i&&!i.destroyed){var r="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let t=1;const a=o.params.thumbs.slideThumbActiveClass;if(1<o.params.slidesPerView&&!o.params.centeredSlides&&(t=o.params.slidesPerView),o.params.thumbs.multipleActiveThumbs||(t=1),t=Math.floor(t),i.slides.forEach(e=>e.classList.remove(a)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e<t;e+=1)O(i.slidesEl,`[data-swiper-slide-index="${o.realIndex+e}"]`).forEach(e=>{e.classList.add(a)});else for(let e=0;e<t;e+=1)i.slides[o.realIndex+e]&&i.slides[o.realIndex+e].classList.add(a);var l=o.params.thumbs.autoScrollOffset,n=l&&!i.params.loop;if(o.realIndex!==i.realIndex||n){const e=i.activeIndex;let t,a;if(i.params.loop){const s=i.slides.filter(e=>e.getAttribute("data-swiper-slide-index")===""+o.realIndex)[0];t=i.slides.indexOf(s),a=o.activeIndex>o.previousIndex?"next":"prev"}else t=o.realIndex,a=t>o.previousIndex?"next":"prev";n&&(t+="next"===a?l:-1*l),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(t)<0&&(i.params.centeredSlides?t=t>e?t-Math.floor(r/2)+1:t+Math.floor(r/2)-1:t>e&&i.params.slidesPerGroup,i.slideTo(t,s?0:void 0))}}}o.thumbs={swiper:null},a("beforeInit",()=>{const s=o.params["thumbs"];if(s&&s.swiper)if("string"==typeof s.swiper||s.swiper instanceof HTMLElement){const i=I(),e=()=>{o.destroyed||(()=>{const t="string"==typeof s.swiper?i.querySelector(s.swiper):s.swiper;if(t&&t.swiper)s.swiper=t.swiper,l(),n(!0);else if(t){const i=o.params.eventsPrefix+"init",a=e=>{s.swiper=e.detail[0],t.removeEventListener(i,a),l(),n(!0),s.swiper.update(),o.update()};t.addEventListener(i,a)}return t})()||requestAnimationFrame(e)};requestAnimationFrame(e)}else l(),n(!0)}),a("slideChange update resize observerUpdate",()=>{n()}),a("setTransition",(e,t)=>{var a=o.thumbs.swiper;a&&!a.destroyed&&a.setTransition(t)}),a("beforeDestroy",()=>{var e=o.thumbs.swiper;e&&!e.destroyed&&i&&e.destroy()}),Object.assign(o.thumbs,{init:l,update:n})},function(e){let{swiper:u,extendParams:t,emit:m,once:h}=e;t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(u,{freeMode:{onTouchStart:function(){var e;u.params.cssMode||(e=u.getTranslate(),u.setTranslate(e),u.setTransition(0),u.touchEventsData.velocities.length=0,u.freeMode.onTouchEnd({currentPos:u.rtl?u.translate:-u.translate}))},onTouchMove:function(){var e,t;u.params.cssMode||({touchEventsData:e,touches:t}=u,0===e.velocities.length&&e.velocities.push({position:t[u.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:t[u.isHorizontal()?"currentX":"currentY"],time:g()}))},onTouchEnd:function(r){let l=r["currentPos"];if(!u.params.cssMode){const{params:n,wrapperEl:o,rtlTranslate:d,snapGrid:p,touchEventsData:c}=u,e=g()-c.touchStartTime;if(l<-u.minTranslate())u.slideTo(u.activeIndex);else if(l>-u.maxTranslate())u.slides.length<p.length?u.slideTo(p.length-1):u.slideTo(u.slides.length-1);else{if(n.freeMode.momentum){if(1<c.velocities.length){const r=c.velocities.pop(),l=c.velocities.pop(),m=r.position-l.position,h=r.time-l.time;u.velocity=m/h,u.velocity/=2,Math.abs(u.velocity)<n.freeMode.minimumVelocity&&(u.velocity=0),(150<h||300<g()-r.time)&&(u.velocity=0)}else u.velocity=0;u.velocity*=n.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*n.freeMode.momentumRatio;const l=u.velocity*e;let a=u.translate+l;d&&(a=-a);let t,s=!1;r=20*Math.abs(u.velocity)*n.freeMode.momentumBounceRatio;let i;if(a<u.maxTranslate())n.freeMode.momentumBounce?(a+u.maxTranslate()<-r&&(a=u.maxTranslate()-r),t=u.maxTranslate(),s=!0,c.allowMomentumBounce=!0):a=u.maxTranslate(),n.loop&&n.centeredSlides&&(i=!0);else if(a>u.minTranslate())n.freeMode.momentumBounce?(a-u.minTranslate()>r&&(a=u.minTranslate()+r),t=u.minTranslate(),s=!0,c.allowMomentumBounce=!0):a=u.minTranslate(),n.loop&&n.centeredSlides&&(i=!0);else if(n.freeMode.sticky){let t;for(let e=0;e<p.length;e+=1)if(p[e]>-a){t=e;break}a=-(a=Math.abs(p[t]-a)<Math.abs(p[t-1]-a)||"next"===u.swipeDirection?p[t]:p[t-1])}if(i&&h("transitionEnd",()=>{u.loopFix()}),0!==u.velocity){if(e=d?Math.abs((-a-u.translate)/u.velocity):Math.abs((a-u.translate)/u.velocity),n.freeMode.sticky){const l=Math.abs((d?-a:a)-u.translate),m=u.slidesSizesGrid[u.activeIndex];e=l<m?n.speed:l<2*m?1.5*n.speed:2.5*n.speed}}else if(n.freeMode.sticky)return void u.slideToClosest();n.freeMode.momentumBounce&&s?(u.updateProgress(t),u.setTransition(e),u.setTranslate(a),u.transitionStart(!0,u.swipeDirection),u.animating=!0,f(o,()=>{u&&!u.destroyed&&c.allowMomentumBounce&&(m("momentumBounce"),u.setTransition(n.speed),setTimeout(()=>{u.setTranslate(t),f(o,()=>{u&&!u.destroyed&&u.transitionEnd()})},0))})):u.velocity?(m("_freeModeNoMomentumRelease"),u.updateProgress(a),u.setTransition(e),u.setTranslate(a),u.transitionStart(!0,u.swipeDirection),u.animating||(u.animating=!0,f(o,()=>{u&&!u.destroyed&&u.transitionEnd()}))):u.updateProgress(a),u.updateActiveIndex(),u.updateSlidesClasses()}else{if(n.freeMode.sticky)return void u.slideToClosest();n.freeMode&&m("_freeModeNoMomentumRelease")}(!n.freeMode.momentum||e>=n.longSwipesMs)&&(m("_freeModeStaticRelease"),u.updateProgress(),u.updateActiveIndex(),u.updateSlidesClasses())}}}}})},function(e){let p,c,u,s,{swiper:m,extendParams:t,on:a}=e;t({grid:{rows:1,fill:"column"}});const h=()=>{let e=m.params.spaceBetween;return"string"==typeof e&&0<=e.indexOf("%")?e=parseFloat(e.replace("%",""))/100*m.size:"string"==typeof e&&(e=parseFloat(e)),e};a("init",()=>{s=m.params.grid&&1<m.params.grid.rows}),a("update",()=>{var{params:e,el:t}=m,a=e.grid&&1<e.grid.rows;s&&!a?(t.classList.remove(e.containerModifierClass+"grid",e.containerModifierClass+"grid-column"),u=1,m.emitContainerClasses()):!s&&a&&(t.classList.add(e.containerModifierClass+"grid"),"column"===e.grid.fill&&t.classList.add(e.containerModifierClass+"grid-column"),m.emitContainerClasses()),s=a}),m.grid={initSlides:e=>{var t=m.params["slidesPerView"],{rows:a,fill:s}=m.params.grid,e=(m.virtual&&m.params.virtual.enabled?m.virtual.slides:e).length;u=Math.floor(e/a),p=Math.floor(e/a)===e/a?e:Math.ceil(e/a)*a,"auto"!==t&&"row"===s&&(p=Math.max(p,t*a)),c=p/a},unsetSlides:()=>{m.slides&&m.slides.forEach(e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[m.getDirectionLabel("margin-top")]="")})},updateSlide:(e,t,a)=>{var s=m.params["slidesPerGroup"],i=h(),{rows:r,fill:l}=m.params.grid,a=(m.virtual&&m.params.virtual.enabled?m.virtual.slides:a).length;let n,o,d;if("row"===l&&1<s){const c=Math.floor(e/(s*r)),u=e-r*s*c,m=0===c?s:Math.min(Math.ceil((a-c*r*s)/r),s);d=Math.floor(u/m),n=(o=u-d*m+c*s)+d*p/r,t.style.order=n}else"column"===l?(o=Math.floor(e/r),d=e-o*r,(o>u||o===u&&d===r-1)&&(d+=1)>=r&&(d=0,o+=1)):(d=Math.floor(e/c),o=e-d*c);t.row=d,t.column=o,t.style.height=`calc((100% - ${(r-1)*i}px) / ${r})`,t.style[m.getDirectionLabel("margin-top")]=0!==d?i&&i+"px":"",t.swiperSlideGridSet=!0},updateWrapperSize:(a,s)=>{var{centeredSlides:e,roundLengths:i}=m.params,t=h(),r=m.params.grid["rows"];if(m.virtualSize=(a+t)*p,m.virtualSize=Math.ceil(m.virtualSize/r)-t,m.params.cssMode||(m.wrapperEl.style[m.getDirectionLabel("width")]=m.virtualSize+t+"px"),e){const a=[];for(let t=0;t<s.length;t+=1){let e=s[t];i&&(e=Math.floor(e)),s[t]<m.virtualSize+s[0]&&a.push(e)}s.splice(0,s.length),s.push(...a)}}}},function(e){e=e.swiper;Object.assign(e,{appendSlide:function(t){const e=this,{params:a,slidesEl:s}=e;a.loop&&e.loopDestroy();var i=e=>{var t;"string"==typeof e?((t=document.createElement("div")).innerHTML=e,s.append(t.children[0]),t.innerHTML=""):s.append(e)};if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&i(t[e]);else i(t);e.recalcSlides(),a.loop&&e.loopCreate(),a.observer&&!e.isElement||e.update()}.bind(e),prependSlide:function(t){const e=this,{params:a,activeIndex:s,slidesEl:i}=e;a.loop&&e.loopDestroy();let r=s+1;var l=e=>{var t;"string"==typeof e?((t=document.createElement("div")).innerHTML=e,i.prepend(t.children[0]),t.innerHTML=""):i.prepend(e)};if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&l(t[e]);r=s+t.length}else l(t);e.recalcSlides(),a.loop&&e.loopCreate(),a.observer&&!e.isElement||e.update(),e.slideTo(r,0,!1)}.bind(e),addSlide:function(t,a){var s=this,{params:i,activeIndex:r,slidesEl:l}=s;let n=r;if(i.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.recalcSlides()),r=s.slides.length,t<=0)s.prependSlide(a);else if(r<=t)s.appendSlide(a);else{let e=n>t?n+1:n;var o=[];for(let e=r-1;e>=t;--e){const t=s.slides[e];t.remove(),o.unshift(t)}if("object"==typeof a&&"length"in a){for(let e=0;e<a.length;e+=1)a[e]&&l.append(a[e]);e=n>t?n+a.length:n}else l.append(a);for(let e=0;e<o.length;e+=1)l.append(o[e]);s.recalcSlides(),i.loop&&s.loopCreate(),i.observer&&!s.isElement||s.update(),i.loop?s.slideTo(e+s.loopedSlides,0,!1):s.slideTo(e,0,!1)}}.bind(e),removeSlide:function(t){var a=this,{params:e,activeIndex:s}=a;let i=s;e.loop&&(i-=a.loopedSlides,a.loopDestroy());let r,l=i;if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)r=t[e],a.slides[r]&&a.slides[r].remove(),r<l&&--l;else r=t,a.slides[r]&&a.slides[r].remove(),r<l&&--l;l=Math.max(l,0),a.recalcSlides(),e.loop&&a.loopCreate(),e.observer&&!a.isElement||a.update(),e.loop?a.slideTo(l+a.loopedSlides,0,!1):a.slideTo(l,0,!1)}.bind(e),removeAllSlides:function(){var t=[];for(let e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}.bind(e)})},function(e){let{swiper:l,extendParams:t,on:a}=e;t({fadeEffect:{crossFade:!1}}),n({effect:"fade",swiper:l,on:a,setTranslate:()=>{const s=l["slides"];l.params.fadeEffect;for(let a=0;a<s.length;a+=1){const s=l.slides[a];let e=-s.swiperSlideOffset,t=(l.params.virtualTranslate||(e-=l.translate),0);l.isHorizontal()||(t=e,e=0);var i=l.params.fadeEffect.crossFade?Math.max(1-Math.abs(s.progress),0):1+Math.min(Math.max(s.progress,-1),0),r=x(0,s);r.style.opacity=i,r.style.transform=`translate3d(${e}px, ${t}px, 0px)`}},setTransition:t=>{var e=l.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms"}),h({swiper:l,duration:t,transformElements:e,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!l.params.cssMode})})},function(e){let{swiper:g,extendParams:t,on:a}=e;t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const w=(e,t,a)=>{let s=a?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=a?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=z("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(a?"left":"top")).split(" ")),e.append(s)),i||(i=z("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(a?"right":"bottom")).split(" ")),e.append(i)),s&&(s.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};n({effect:"cube",swiper:g,on:a,setTranslate:()=>{const{el:e,wrapperEl:t,slides:n,width:a,height:s,rtlTranslate:o,size:d,browser:p}=g,c=E(g),u=g.params.cubeEffect,m=g.isHorizontal(),h=g.virtual&&g.params.virtual.enabled;let i,f=0;u.shadow&&(m?((i=g.wrapperEl.querySelector(".swiper-cube-shadow"))||(i=z("div","swiper-cube-shadow"),g.wrapperEl.append(i)),i.style.height=a+"px"):(i=e.querySelector(".swiper-cube-shadow"))||(i=z("div","swiper-cube-shadow"),e.append(i)));for(let l=0;l<n.length;l+=1){const g=n[l];let e=l,t=90*(e=h?parseInt(g.getAttribute("data-swiper-slide-index"),10):e),a=Math.floor(t/360);o&&(t=-t,a=Math.floor(-t/360));const p=Math.max(Math.min(g.progress,1),-1);let s=0,i=0,r=0;e%4==0?(s=4*-a*d,r=0):(e-1)%4==0?(s=0,r=4*-a*d):(e-2)%4==0?(s=d+4*a*d,r=d):(e-3)%4==0&&(s=-d,r=3*d+4*d*a),o&&(s=-s),m||(i=s,s=0);var v=`rotateX(${c(m?0:-t)}deg) rotateY(${c(m?t:0)}deg) translate3d(${s}px, ${i}px, ${r}px)`;p<=1&&-1<p&&(f=90*e+90*p,o)&&(f=90*-e-90*p),g.style.transform=v,u.slideShadows&&w(g,p,m)}if(t.style.transformOrigin=`50% 50% -${d/2}px`,t.style["-webkit-transform-origin"]=`50% 50% -${d/2}px`,u.shadow)if(m)i.style.transform=`translate3d(0px, ${a/2+u.shadowOffset}px, ${-a/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),g=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),t=u.shadowScale,n=u.shadowScale/g,w=u.shadowOffset;i.style.transform=`scale3d(${t}, 1, ${n}) translate3d(0px, ${s/2+w}px, ${-s/2/n}px) rotateX(-89.99deg)`}var r=(p.isSafari||p.isWebView)&&p.needPerspectiveFix?-d/2:0;t.style.transform=`translate3d(0px,0,${r}px) rotateX(${c(g.isHorizontal()?0:f)}deg) rotateY(${c(g.isHorizontal()?-f:0)}deg)`,t.style.setProperty("--swiper-cube-translate-z",r+"px")},setTransition:t=>{var{el:e,slides:a}=g;if(a.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})}),g.params.cubeEffect.shadow&&!g.isHorizontal()){const g=e.querySelector(".swiper-cube-shadow");g&&(g.style.transitionDuration=t+"ms")}},recreateShadows:()=>{const a=g.isHorizontal();g.slides.forEach(e=>{var t=Math.max(Math.min(e.progress,1),-1);w(e,t,a)})},getEffectParams:()=>g.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:u,extendParams:t,on:a}=e;t({flipEffect:{slideShadows:!0,limitRotation:!0}});const m=(e,t)=>{let a=u.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),s=u.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a=a||S("flip",e,u.isHorizontal()?"left":"top"),s=s||S("flip",e,u.isHorizontal()?"right":"bottom"),a&&(a.style.opacity=Math.max(-t,0)),s&&(s.style.opacity=Math.max(t,0))};n({effect:"flip",swiper:u,on:a,setTranslate:()=>{var{slides:l,rtlTranslate:n}=u,o=u.params.flipEffect,d=E(u);for(let r=0;r<l.length;r+=1){var p=l[r];let e=p.progress;u.params.flipEffect.limitRotation&&(e=Math.max(Math.min(p.progress,1),-1));var c=p.swiperSlideOffset;let t=-180*e,a=0,s=u.params.cssMode?-c-u.translate:-c,i=0;u.isHorizontal()?n&&(t=-t):(i=s,s=0,a=-t,t=0),p.style.zIndex=-Math.abs(Math.round(e))+l.length,o.slideShadows&&m(p,e);c=`translate3d(${s}px, ${i}px, 0px) rotateX(${d(a)}deg) rotateY(${d(t)}deg)`;x(0,p).style.transform=c}},setTransition:t=>{var e=u.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})}),h({swiper:u,duration:t,transformElements:e})},recreateShadows:()=>{u.params.flipEffect,u.slides.forEach(e=>{let t=e.progress;u.params.flipEffect.limitRotation&&(t=Math.max(Math.min(e.progress,1),-1)),m(e,t)})},getEffectParams:()=>u.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!u.params.cssMode})})},function(e){let{swiper:y,extendParams:t,on:a}=e;t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),n({effect:"coverflow",swiper:y,on:a,setTranslate:()=>{const{width:e,height:o,slides:d,slidesSizesGrid:p}=y,c=y.params.coverflowEffect,u=y.isHorizontal(),m=y.translate,h=u?e/2-m:o/2-m,f=u?c.rotate:-c.rotate,v=c.depth,g=E(y);for(let n=0,e=d.length;n<e;n+=1){const y=d[n],o=p[n],m=(h-y.swiperSlideOffset-o/2)/o,b="function"==typeof c.modifier?c.modifier(m):m*c.modifier;let e=u?f*b:0,t=u?0:f*b,a=-v*Math.abs(b),s=c.stretch,i=("string"==typeof s&&-1!==s.indexOf("%")&&(s=parseFloat(c.stretch)/100*o),u?0:s*b),r=u?s*b:0,l=1-(1-c.scale)*Math.abs(b);Math.abs(r)<.001&&(r=0),Math.abs(i)<.001&&(i=0),Math.abs(a)<.001&&(a=0),Math.abs(e)<.001&&(e=0),Math.abs(t)<.001&&(t=0),Math.abs(l)<.001&&(l=0);var w=`translate3d(${r}px,${i}px,${a}px) rotateX(${g(t)}deg) rotateY(${g(e)}deg) scale(${l})`;if(x(0,y).style.transform=w,y.style.zIndex=1-Math.abs(Math.round(b)),c.slideShadows){let e=u?y.querySelector(".swiper-slide-shadow-left"):y.querySelector(".swiper-slide-shadow-top"),t=u?y.querySelector(".swiper-slide-shadow-right"):y.querySelector(".swiper-slide-shadow-bottom");e=e||S("coverflow",y,u?"left":"top"),t=t||S("coverflow",y,u?"right":"bottom"),e&&(e.style.opacity=0<b?b:0),t&&(t.style.opacity=0<-b?-b:0)}}},setTransition:t=>{y.slides.map(e=>r(e)).forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=t+"ms"})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:b,extendParams:t,on:a}=e;t({creativeEffect:{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}}});n({effect:"creative",swiper:b,on:a,setTranslate:()=>{const{slides:i,wrapperEl:e,slidesSizesGrid:r}=b,l=b.params.creativeEffect,n=l["progressMultiplier"],o=b.params.centeredSlides,d=E(b);if(o){const i=r[0]/2-b.params.slidesOffsetBefore||0;e.style.transform=`translateX(calc(50% - ${i}px))`}for(let a=0;a<i.length;a+=1){const r=i[a],h=r.progress,f=Math.min(Math.max(r.progress,-l.limitProgress),l.limitProgress);let e=f;o||(e=Math.min(Math.max(r.originalProgress,-l.limitProgress),l.limitProgress));const v=r.swiperSlideOffset,g=[b.params.cssMode?-v-b.translate:-v,0,0],w=[0,0,0];let t=!1,s=(b.isHorizontal()||(g[1]=g[0],g[0]=0),{translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1});f<0?(s=l.next,t=!0):0<f&&(s=l.prev,t=!0),g.forEach((e,t)=>{g[t]=`calc(${e}px + (${e=s.translate[t],"string"==typeof e?e:e+"px"} * ${Math.abs(f*n)}))`}),w.forEach((e,t)=>{var a=s.rotate[t]*Math.abs(f*n);w[t]=a}),r.style.zIndex=-Math.abs(Math.round(h))+i.length;var p=g.join(", "),c=`rotateX(${d(w[0])}deg) rotateY(${d(w[1])}deg) rotateZ(${d(w[2])}deg)`,u=e<0?`scale(${1+(1-s.scale)*e*n})`:`scale(${1-(1-s.scale)*e*n})`,m=e<0?1+(1-s.opacity)*e*n:1-(1-s.opacity)*e*n,p=`translate3d(${p}) ${c} `+u;if(t&&s.shadow||!t){let e=r.querySelector(".swiper-slide-shadow");if(e=!e&&s.shadow?S("creative",r):e){const b=l.shadowPerProgress?f*(1/l.limitProgress):f;e.style.opacity=Math.min(Math.max(Math.abs(b),0),1)}}c=x(0,r);c.style.transform=p,c.style.opacity=m,s.origin&&(c.style.transformOrigin=s.origin)}},setTransition:t=>{var e=b.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=t+"ms"})}),h({swiper:b,duration:t,transformElements:e,allSlides:!0})},perspective:()=>b.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!b.params.cssMode})})},function(e){let{swiper:y,extendParams:t,on:a}=e;t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),n({effect:"cards",swiper:y,on:a,setTranslate:()=>{const{slides:n,activeIndex:o,rtlTranslate:d}=y,p=y.params.cardsEffect,{startTranslate:c,isTouched:u}=y.touchEventsData,m=d?-y.translate:y.translate;for(let l=0;l<n.length;l+=1){var h=n[l],f=h.progress,v=Math.min(Math.max(f,-4),4);let e=h.swiperSlideOffset,t=(y.params.centeredSlides&&!y.params.cssMode&&(y.wrapperEl.style.transform=`translateX(${y.minTranslate()}px)`),y.params.centeredSlides&&y.params.cssMode&&(e-=n[0].swiperSlideOffset),y.params.cssMode?-e-y.translate:-e),a=0;var g=-100*Math.abs(v);let s=1,i=-p.perSlideRotate*v,r=p.perSlideOffset-.75*Math.abs(v);var w=y.virtual&&y.params.virtual.enabled?y.virtual.from+l:l,b=(w===o||w===o-1)&&0<v&&v<1&&(u||y.params.cssMode)&&m<c,w=(w===o||w===o+1)&&v<0&&-1<v&&(u||y.params.cssMode)&&c<m;if(b||w){const n=(1-Math.abs((Math.abs(v)-.5)/.5))**.5;i+=-28*v*n,s+=-.5*n,r+=96*n,a=-25*n*Math.abs(v)+"%"}if(t=v<0?`calc(${t}px ${d?"-":"+"} (${r*Math.abs(v)}%))`:0<v?`calc(${t}px ${d?"-":"+"} (-${r*Math.abs(v)}%))`:t+"px",!y.isHorizontal()){const n=a;a=t,t=n}b=v<0?""+(1+(1-s)*v):""+(1-(1-s)*v),w=` translate3d(${t}, ${a}, ${g}px) rotateZ(${p.rotate?d?-i:i:0}deg) scale(${b}) `;if(p.slideShadows){let e=h.querySelector(".swiper-slide-shadow");(e=e||S("cards",h))&&(e.style.opacity=Math.min(Math.max((Math.abs(v)-.5)/.5,0),1))}h.style.zIndex=-Math.abs(Math.round(f))+n.length,x(0,h).style.transform=w}},setTransition:t=>{var e=y.slides.map(e=>r(e));e.forEach(e=>{e.style.transitionDuration=t+"ms",e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=t+"ms"})}),h({swiper:y,duration:t,transformElements:e})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!y.params.cssMode})})}]),m}(); "use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s){"function"==typeof define&&define.amd?define(["jquery"],s):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),s(i),i}:s(jQuery)}(function(g){return g.fn.tilt=function(i){function s(t){this.ticking=!1,g(this).css({"will-change":"transform"}),o.call(this),g(this).trigger("tilt.mouseEnter")}function e(t){this.mousePositions=l(t),r.call(this)}function n(){o.call(this),this.reset=!0,r.call(this),g(this).trigger("tilt.mouseLeave")}function a(){this.glareElement.css({width:""+2*g(this).outerWidth(),height:""+2*g(this).outerWidth()})}var r=function(){this.ticking||(requestAnimationFrame(t.bind(this)),this.ticking=!0)},o=function(){var t=this;void 0!==this.timeout&&clearTimeout(this.timeout),g(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareElement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=setTimeout(function(){g(t).css({transition:""}),t.settings.glare&&t.glareElement.css({transition:""})},this.settings.speed)},l=function(t){return{x:(t=void 0===t?{pageX:g(this).offset().left+g(this).outerWidth()/2,pageY:g(this).offset().top+g(this).outerHeight()/2}:t).pageX,y:t.pageY}},h=function(){var t=g(this).outerWidth(),i=g(this).outerHeight(),s=g(this).offset().left,e=g(this).offset().top,n=(this.mousePositions.x-s)/t,a=(this.mousePositions.y-e)/i;return{tiltX:(this.settings.maxTilt/2-n*this.settings.maxTilt).toFixed(2),tiltY:(a*this.settings.maxTilt-this.settings.maxTilt/2).toFixed(2),percentageX:100*n,percentageY:100*a,angle:Math.atan2(this.mousePositions.x-(s+t/2),-(this.mousePositions.y-(e+i/2)))*(180/Math.PI)}},t=function(){this.transforms=h.call(this),this.reset?(this.reset=!1,g(this).css("transform","perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg)"),this.settings.glare&&(this.glareElement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareElement.css("opacity","0"))):(g(this).css("transform","perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.disableAxis?0:this.transforms.tiltY)+"deg) rotateY("+("y"===this.settings.disableAxis?0:this.transforms.tiltX)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareElement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareElement.css("opacity",""+this.transforms.percentageY*this.settings.maxGlare/100)),g(this).trigger("change",[this.transforms]),this.ticking=!1)};return g.fn.tilt.destroy=function(){g(this).each(function(){g(this).find(".js-tilt-glare").remove(),g(this).css({"will-change":"",transform:""}),g(this).off("mousemove mouseenter mouseleave")})},g.fn.tilt.getValues=function(){var t=[];return g(this).each(function(){this.mousePositions=l.call(this),t.push(h.call(this))}),t},g.fn.tilt.reset=function(){g(this).each(function(){var t=this;this.mousePositions=l.call(this),this.settings=g(this).data("settings"),n.call(this),setTimeout(function(){t.reset=!1},this.settings.transition)})},this.each(function(){var t=this;this.settings=g.extend({maxTilt:g(this).is("[data-tilt-max]")?g(this).data("tilt-max"):20,perspective:g(this).is("[data-tilt-perspective]")?g(this).data("tilt-perspective"):300,easing:g(this).is("[data-tilt-easing]")?g(this).data("tilt-easing"):"cubic-bezier(.03,.98,.52,.99)",scale:g(this).is("[data-tilt-scale]")?g(this).data("tilt-scale"):"1",speed:g(this).is("[data-tilt-speed]")?g(this).data("tilt-speed"):"400",transition:!g(this).is("[data-tilt-transition]")||g(this).data("tilt-transition"),disableAxis:g(this).is("[data-tilt-disable-axis]")?g(this).data("tilt-disable-axis"):null,axis:g(this).is("[data-tilt-axis]")?g(this).data("tilt-axis"):null,reset:!g(this).is("[data-tilt-reset]")||g(this).data("tilt-reset"),glare:!!g(this).is("[data-tilt-glare]")&&g(this).data("tilt-glare"),maxGlare:g(this).is("[data-tilt-maxglare]")?g(this).data("tilt-maxglare"):1},i),null!==this.settings.axis&&(console.warn("Tilt.js: the axis setting has been renamed to disableAxis. See https://github.com/gijsroge/tilt.js/pull/26 for more information"),this.settings.disableAxis=this.settings.axis),this.init=function(){g(t).data("settings",t.settings),t.settings.glare&&function(){var t=this.settings.glarePrerender;t||g(this).append('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>'),this.glareElementWrapper=g(this).find(".js-tilt-glare"),this.glareElement=g(this).find(".js-tilt-glare-inner"),t||(this.glareElementWrapper.css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}).css({overflow:"hidden","pointer-events":"none"}),this.glareElement.css({position:"absolute",top:"50%",left:"50%","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:""+2*g(this).outerWidth(),height:""+2*g(this).outerWidth(),transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))}.call(t),function(){g(this).on("mousemove",e),g(this).on("mouseenter",s),this.settings.reset&&g(this).on("mouseleave",n),this.settings.glare&&g(window).on("resize",a.bind(this))}.call(t)},this.init()})},g("[data-tilt]").tilt(),!0}); !function(e){"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=e:e()}(function(){var o=Object.assign||window.jQuery&&jQuery.extend,d=8,a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return window.setTimeout(function(){e()},25)};function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e);var i,n={textarea:!0,input:!0,select:!0,button:!0},c={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},u={move:"touchmove",cancel:"touchend",end:"touchend"},r=/\s+/,m={bubbles:!0,cancelable:!0},t="function"==typeof Symbol?Symbol("events"):{};function v(e){return e[t]||(e[t]={})}function s(e,t,n,o){t=t.split(r);var i,a=v(e),c=t.length;function u(e){n(e,o)}for(;c--;)(a[i=t[c]]||(a[i]=[])).push([n,u]),e.addEventListener(i,u)}function f(e,t,n){t=t.split(r);var o,i,a,c=v(e),u=t.length;if(c)for(;u--;)if(i=c[o=t[u]])for(a=i.length;a--;)i[a][0]===n&&(e.removeEventListener(o,i[a][1]),i.splice(a,1))}function l(e,t,n){t=new CustomEvent(t,m);n&&o(t,n),e.dispatchEvent(t)}function p(e){var n=e,o=!1,i=!1;function t(e){o?(n(),a(t),o=!(i=!0)):i=!1}this.kick=function(e){o=!0,i||t()},this.end=function(e){var t=n;e&&(i?(n=o?function(){t(),e()}:e,o=!0):e())}}function g(){}function h(e){e.preventDefault()}function X(e,t){var n,o;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,o=e.length;++n<o;)if(e[n].identifier===t)return e[n]}function Y(e,t){e=X(e.changedTouches,t.identifier);if(e&&(e.pageX!==t.pageX||e.pageY!==t.pageY))return e}function y(e,t){E(e,t,e,b)}function w(e,t){b()}function b(){f(document,c.move,y),f(document,c.cancel,w)}function T(e){f(document,u.move,e.touchmove),f(document,u.cancel,e.touchend)}function E(e,t,n,o){var i,a,c,u=n.pageX-t.pageX,r=n.pageY-t.pageY;u*u+r*r<d*d||(t=t,a=n,o=o,e=(i=e).targetTouches,c=i.timeStamp-t.timeStamp,a={altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,startX:t.pageX,startY:t.pageY,distX:u,distY:r,deltaX:u,deltaY:r,pageX:n.pageX,pageY:n.pageY,velocityX:u/c,velocityY:r/c,identifier:t.identifier,targetTouches:e,finger:e?e.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=g,i.preventDefault()}},l(t.target,"movestart",a),o(t))}function S(e,t){var n=t.timer;t.touch=e,t.timeStamp=e.timeStamp,n.kick()}function k(e,t){var n=t.target,o=t.event,t=t.timer;f(document,c.move,S),f(document,c.end,k),j(n,o,t,function(){setTimeout(function(){f(n,"click",h)},0)})}function K(e,t){var n=t.target,o=t.event,i=t.timer;X(e.changedTouches,o.identifier)&&(e=t,f(document,u.move,e.activeTouchmove),f(document,u.end,e.activeTouchend),j(n,o,i))}function j(e,t,n,o){n.end(function(){return l(e,"moveend",t),o&&o()})}function C(e){e.enableMove()}function Q(e){e.enableMove()}function q(e){e.enableMove()}function A(e){var o=e.handler;e.handler=function(e){for(var t,n=i.length;n--;)e[t=i[n]]=e.originalEvent[t];o.apply(this,arguments)}}s(document,"mousedown",function(e){var t;1!==(t=e).which||t.ctrlKey||t.altKey||n[e.target.tagName.toLowerCase()]||(s(document,c.move,y,e),s(document,c.cancel,w,e))}),s(document,"touchstart",function(e){n[e.target.tagName.toLowerCase()]||(e={target:(e=e.changedTouches[0]).target,pageX:e.pageX,pageY:e.pageY,identifier:e.identifier,touchmove:function(e,t){var n;(n=Y(e=e,t=t))&&E(e,t,n,T)},touchend:function(e,t){t=t,X(e.changedTouches,t.identifier)&&T(t)}},s(document,u.move,e.touchmove,e),s(document,u.cancel,e.touchend,e))}),s(document,"movestart",function(e){var t,n;e.defaultPrevented||e.moveEnabled&&(t={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},n={target:e.target,event:t,timer:new p(function(e){(function(e,t,n){n-=e.timeStamp,e.distX=t.pageX-e.startX,e.distY=t.pageY-e.startY,e.deltaX=t.pageX-e.pageX,e.deltaY=t.pageY-e.pageY,e.velocityX=.3*e.velocityX+.7*e.deltaX/n,e.velocityY=.3*e.velocityY+.7*e.deltaY/n,e.pageX=t.pageX,e.pageY=t.pageY})(t,n.touch,n.timeStamp),l(n.target,"move",t)}),touch:void 0,timeStamp:e.timeStamp},void 0===e.identifier?(s(e.target,"click",h),s(document,c.move,S,n),s(document,c.end,k,n)):(n.activeTouchmove=function(e,t){var n,o,i;e=e,n=(t=t).event,o=t.timer,(i=Y(e,n))&&(e.preventDefault(),n.targetTouches=e.targetTouches,t.touch=i,t.timeStamp=e.timeStamp,o.kick())},n.activeTouchend=function(e,t){K(e,t)},s(document,u.move,n.activeTouchmove,n),s(document,u.end,n.activeTouchend,n)))}),window.jQuery&&(i="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" "),jQuery.event.special.movestart={setup:function(){return s(this,"movestart",C),!1},teardown:function(){return f(this,"movestart",C),!1},add:A},jQuery.event.special.move={setup:function(){return s(this,"movestart",Q),!1},teardown:function(){return f(this,"movestart",Q),!1},add:A},jQuery.event.special.moveend={setup:function(){return s(this,"movestart",q),!1},teardown:function(){return f(this,"movestart",q),!1},add:A})}); !function(Y){Y.fn.twentytwenty=function(X){X=Y.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},X);return this.each(function(){function t(t){((t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==o||(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===o)&&t.preventDefault(),i.addClass("active"),u=i.offset().left,_=i.offset().top,m=d.width(),g=d.height()}function e(t){i.hasClass("active")&&(a=p(t.pageX,t.pageY),y(a))}function n(){i.removeClass("active")}var a=X.default_offset_pct,i=Y(this),o=X.orientation,r="vertical"===o?"down":"left",s="vertical"===o?"up":"right",w='<svg width="16" height="26" viewBox="0 0 16 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 2L13 13L2 24" stroke-width="3" stroke-miterlimit="10"/></svg>',d=(i.wrap("<div class='twentytwenty-wrapper twentytwenty-"+o+"'></div>"),X.no_overlay||(i.append("<div class='twentytwenty-overlay'></div>"),(b=i.find(".twentytwenty-overlay")).append("<div class='twentytwenty-arrow twentytwenty-before-label' data-content='"+X.before_label+"'>"+w+"</div>"),b.append("<div class='twentytwenty-arrow twentytwenty-after-label' data-content='"+X.after_label+"'>"+w+"</div>")),i.find("img:first")),c=i.find("img:last"),l=(i.append("<div class='twentytwenty-handle ba-handle'></div>"),i.find(".twentytwenty-handle")),f=(l.append("<span class='twentytwenty-arrow twentytwenty-"+r+"-arrow ba-arrow' data-ba-arrow-direction='"+r+"'>"+w+"</span>"),l.append("<div class='ba-bar'></div>"),l.append("<span class='twentytwenty-arrow twentytwenty-"+s+"-arrow ba-arrow' data-ba-arrow-direction='"+s+"'>"+w+"</span>"),i.addClass("twentytwenty-container"),d.addClass("twentytwenty-before"),c.addClass("twentytwenty-after"),function(t){var e=d.width(),n=d.height();return{w:e+"px",h:n+"px",cw:t*e+"px",ch:t*n+"px"}}),v=function(t){"vertical"===o?(d.css("clip","rect(0,"+t.w+","+t.ch+",0)"),c.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(d.css("clip","rect(0,"+t.cw+","+t.h+",0)"),c.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),i.css("height",t.h)},y=function(t){t=f(t);l.css("vertical"===o?"top":"left","vertical"===o?t.ch:t.cw),v(t)},h=function(t,e,n){return Math.max(e,Math.min(n,t))},p=function(t,e){return h("vertical"===o?(e-_)/g:(t-u)/m,0,1)},u=(Y(window).on("resize.twentytwenty",function(t){y(a)}),0),_=0,m=0,g=0,b=X.move_with_handle_only?l:i;b.on("movestart",t),b.on("move",e),b.on("moveend",n),X.move_slider_on_hover&&(i.on("mouseenter",t),i.on("mousemove",e),i.on("mouseleave",n)),l.on("touchmove",function(t){t.preventDefault()}),i.find("img").on("mousedown",function(t){t.preventDefault()}),X.click_to_move&&i.on("click",function(t){u=i.offset().left,_=i.offset().top,m=d.width(),g=d.height(),a=p(t.pageX,t.pageY),y(a)}),Y(window).trigger("resize.twentytwenty")})}}(jQuery);
💾 保存文件
← 返回文件管理器