((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.anime=e()})(this,function(){var b={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},_={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},A=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],h={CSS:{},springs:{}};function S(t,e,n){return Math.min(Math.max(t,e),n)}function l(t,e){return-1<t.indexOf(e)}function o(t,e){return t.apply(null,e)}var x={arr:function(t){return Array.isArray(t)},obj:function(t){return l(Object.prototype.toString.call(t),"Object")},pth:function(t){return x.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||x.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return x.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return x.hex(t)||x.rgb(t)||x.hsl(t)},key:function(t){return!b.hasOwnProperty(t)&&!_.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function f(t){return(t=/\(([^)]+)\)/.exec(t))?t[1].split(",").map(function(t){return parseFloat(t)}):[]}function s(i,n){var t=f(i),e=S(x.und(t[0])?1:t[0],.1,100),r=S(x.und(t[1])?100:t[1],.1,100),o=S(x.und(t[2])?10:t[2],.1,100),t=S(x.und(t[3])?0:t[3],.1,100),s=Math.sqrt(r/e),a=o/(2*Math.sqrt(r*e)),u=a<1?s*Math.sqrt(1-a*a):0,l=a<1?(a*s-t)/u:-t+s;function c(t){var e=n?n*t/1e3:t,e=a<1?Math.exp(-e*a*s)*(+Math.cos(u*e)+l*Math.sin(u*e)):(1+l*e)*Math.exp(-e*s);return 0===t||1===t?t:1-e}return n?c:function(){var t=h.springs[i];if(t)return t;for(var e=0,n=0;;)if(1===c(e+=1/6)){if(16<=++n)break}else n=0;return h.springs[i]=e*(1/6)*1e3}}function R(e){return void 0===e&&(e=10),function(t){return Math.ceil(S(t,1e-6,1)*e)*(1/e)}}function W(w,e,b,n){if(0<=w&&w<=1&&0<=b&&b<=1){var _=new Float32Array(11);if(w!==e||b!==n)for(var t=0;t<11;++t)_[t]=E(.1*t,w,b);return function(t){return w===e&&b===n||0===t||1===t?t:E((t=>{for(var e=0,n=1;10!==n&&_[n]<=t;++n)e+=.1;var i=e+(t-_[--n])/(_[n+1]-_[n])*.1,r=T(i,w,b);if(.001<=r){for(var o=t,s=i,a=w,u=b,l=0;l<4;++l){var c=T(s,a,u);if(0===c)return s;s-=(E(s,a,u)-o)/c}return s}if(0===r)return i;for(var h,f,d=t,p=e,m=e+.1,g=w,v=b,y=0;0<(h=E(f=p+(m-p)/2,g,v)-d)?m=f:p=f,1e-7<Math.abs(h)&&++y<10;);return f})(t),e,n)}}}function i(t,e){return 1-3*e+3*t}function E(t,e,n){return((i(e,n)*t+(3*n-6*e))*t+3*e)*t}function T(t,e,n){return 3*i(e,n)*t*t+2*(3*n-6*e)*t+3*e}e={linear:function(){return function(t){return t}}},n={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Expo:function(){return function(t){return t?Math.pow(2,10*t-10):0}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===e&&(e=.5);var n=S(t=void 0===t?1:t,1,10),i=S(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-i/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint"].forEach(function(t,e){n[t]=function(){return function(t){return Math.pow(t,e+2)}}}),Object.keys(n).forEach(function(t){var i=n[t];e["easeIn"+t]=i,e["easeOut"+t]=function(e,n){return function(t){return 1-i(e,n)(1-t)}},e["easeInOut"+t]=function(e,n){return function(t){return t<.5?i(e,n)(2*t)/2:1-i(e,n)(-2*t+2)/2}},e["easeOutIn"+t]=function(e,n){return function(t){return t<.5?(1-i(e,n)(1-2*t))/2:(i(e,n)(2*t-1)+1)/2}}});var e,n,a=e;function k(t,e){if(x.fnc(t))return t;var n=t.split("(")[0],i=a[n],r=f(t);switch(n){case"spring":return s(t,e);case"cubicBezier":return o(W,r);case"steps":return o(R,r);default:return o(i,r)}}function r(t){try{return document.querySelectorAll(t)}catch(t){}}function O(t,e){for(var n,i=t.length,r=2<=arguments.length?e:void 0,o=[],s=0;s<i;s++)s in t&&(n=t[s],e.call(r,n,s,t))&&o.push(n);return o}function M(t){return t.reduce(function(t,e){return t.concat(x.arr(e)?M(e):e)},[])}function u(t){return x.arr(t)?t:(t=x.str(t)&&r(t)||t)instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t]}function c(t,e){return t.some(function(t){return t===e})}function d(t){var e,n={};for(e in t)n[e]=t[e];return n}function P(t,e){var n,i=d(t);for(n in t)i[n]=(e.hasOwnProperty(n)?e:t)[n];return i}function C(t,e){var n,i=d(t);for(n in e)i[n]=(x.und(t[n])?e:t)[n];return i}function L(t){if(t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[1]}function p(t,e){return x.fnc(t)?t(e.target,e.id,e.total):t}function m(t,e){return t.getAttribute(e)}function g(t,e,n){var i,r,o;return c([n,"deg","rad","turn"],L(e))?e:(i=h.CSS[e+n],x.und(i)?(r=document.createElement(t.tagName),(t=t.parentNode&&t.parentNode!==document?t.parentNode:document.body).appendChild(r),r.style.position="absolute",r.style.width=100+n,o=100/r.offsetWidth,t.removeChild(r),t=o*parseFloat(e),h.CSS[e+n]=t):i)}function D(t,e,n){var i;if(e in t.style)return i=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e=t.style[e]||getComputedStyle(t).getPropertyValue(i)||"0",n?g(t,e,n):e}function I(t,e){return x.dom(t)&&!x.inp(t)&&(!x.nil(m(t,e))||x.svg(t)&&t[e])?"attribute":x.dom(t)&&c(A,e)?"transform":x.dom(t)&&"transform"!==e&&D(t,e)?"css":null!=t[e]?"object":void 0}function q(t){if(x.dom(t)){for(var e,n=t.style.transform||"",i=/(\w+)\(([^)]*)\)/g,r=new Map;e=i.exec(n);)r.set(e[1],e[2]);return r}}function v(t,e,n,i){switch(I(t,e)){case"transform":return r=t,s=i,a=n,u=l(o=e,"scale")?1:0+(l(u=o,"translate")||"perspective"===u?"px":l(u,"rotate")||l(u,"skew")?"deg":void 0),u=q(r).get(o)||u,s&&(s.transforms.list.set(o,u),s.transforms.last=o),a?g(r,u,a):u;case"css":return D(t,e,n);case"attribute":return m(t,e);default:return t[e]||0}var r,o,s,a,u}function y(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var i=L(t)||0,r=parseFloat(e),o=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return r+o+i;case"-":return r-o+i;case"*":return r*o+i}}function H(t,e){var n,i,r,o,s,a,u;return x.col(t)?(n=t,x.rgb(n)?(a=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i=n))?"rgba("+a[1]+",1)":i:x.hex(n)?(a=(a=n).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i}),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),"rgba("+parseInt(a[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+",1)"):x.hsl(n)?(i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(i=n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(i),n=parseInt(i[1],10)/360,a=parseInt(i[2],10)/100,u=parseInt(i[3],10)/100,i=i[4]||1,0==a?r=o=s=u:(r=l(a=2*u-(u=u<.5?u*(1+a):u+a-u*a),u,n+1/3),o=l(a,u,n),s=l(a,u,n-1/3)),"rgba("+255*r+","+255*o+","+255*s+","+i+")"):void 0):/\s/g.test(t)?t:(a=(a=L(t))?t.substr(0,t.length-a.length):t,e?a+e:a);function l(t,e,n){return n<0&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}}function w(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function B(t){for(var e,n=t.points,i=0,r=0;r<n.numberOfItems;r++){var o=n.getItem(r);0<r&&(i+=w(e,o)),e=o}return i}function V(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*m(t,"r");case"rect":return 2*m(e=t,"width")+2*m(e,"height");case"line":return w({x:m(e=t,"x1"),y:m(e,"y1")},{x:m(e,"x2"),y:m(e,"y2")});case"polyline":return B(t);case"polygon":return e=t.points,B(t)+w(e.getItem(e.numberOfItems-1),e.getItem(0))}var e}function Y(e,t){var n=(e=(t=t||{}).el||(()=>{for(var t=e.parentNode;x.svg(t)&&x.svg(t.parentNode);)t=t.parentNode;return t})()).getBoundingClientRect(),i=m(e,"viewBox"),r=n.width,n=n.height,t=t.viewBox||(i?i.split(" "):[0,0,r,n]);return{el:e,viewBox:t,x:+t[0],y:+t[1],w:r,h:n,vW:t[2],vH:t[3]}}function Q(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=H(x.pth(t)?t.totalLength:t,e)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:x.str(t)||e?i.split(n):[]}}function j(t){return O(t?M(x.arr(t)?t.map(u):u(t)):[],function(t,e,n){return n.indexOf(t)===e})}function U(t){var n=j(t);return n.map(function(t,e){return{target:t,id:e,total:n.length,transforms:{list:q(t)}}})}function X(t){for(var e=O(M(t.map(function(t){return Object.keys(t)})),function(t){return x.key(t)}).reduce(function(t,e){return t.indexOf(e)<0&&t.push(e),t},[]),n={},r=0;r<e.length;r++)(()=>{var i=e[r];n[i]=t.map(function(t){var e,n={};for(e in t)x.key(e)?e==i&&(n.value=t[e]):n[e]=t[e];return n})})();return n}function $(t,e){var n,i=[],r=e.keyframes;for(n in e=r?C(X(r),e):e)x.key(n)&&i.push({name:n,tweens:((t,n)=>{var e,i=d(n),r=(/^spring/.test(i.easing)&&(i.duration=s(i.easing)),x.arr(t)&&(2!==(e=t.length)||x.obj(t[0])?x.fnc(n.duration)||(i.duration=n.duration/e):t={value:t}),x.arr(t)?t:[t]);return r.map(function(t,e){return t=x.obj(t)&&!x.pth(t)?t:{value:t},x.und(t.delay)&&(t.delay=e?0:n.delay),x.und(t.endDelay)&&(t.endDelay=e===r.length-1?n.endDelay:0),t}).map(function(t){return C(t,i)})})(e[n],t)});return i}function G(a,u){var l;return a.tweens.map(function(t){var e=(t=((t,e)=>{var n,i={};for(n in t){var r=p(t[n],e);x.arr(r)&&1===(r=r.map(function(t){return p(t,e)})).length&&(r=r[0]),i[n]=r}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i})(t,u)).value,n=x.arr(e)?e[1]:e,i=L(n),r=v(u.target,a.name,i,u),o=l?l.to.original:r,s=x.arr(e)?e[0]:o,r=L(s)||L(r),i=i||r;return x.und(n)&&(n=o),t.from=Q(s,i),t.to=Q(y(n,s),i),t.start=l?l.end:0,t.end=t.start+t.delay+t.duration+t.endDelay,t.easing=k(t.easing,t.duration),t.isPath=x.pth(e),t.isPathTargetInsideSVG=t.isPath&&x.svg(u.target),t.isColor=x.col(t.from.original),t.isColor&&(t.round=1),l=t})}var J={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,i,r){var o;i.list.set(e,n),e!==i.last&&!r||(o="",i.list.forEach(function(t,e){o+=e+"("+t+") "}),t.style.transform=o)}};function Z(t,s){U(t).forEach(function(t){for(var e in s){var n=p(s[e],t),i=t.target,r=v(i,e,o=L(n),t),n=y(H(n,o||L(r)),r),o=I(i,e);J[o](i,e,n,t.transforms,!0)}})}function K(t,e){function n(t){return t.timelineOffset||0}var i=t.length,r={};return r.duration=i?Math.max.apply(Math,t.map(function(t){return n(t)+t.duration})):e.duration,r.delay=i?Math.min.apply(Math,t.map(function(t){return n(t)+t.delay})):e.delay,r.endDelay=i?r.duration-Math.max.apply(Math,t.map(function(t){return n(t)+t.duration-t.endDelay})):e.endDelay,r}var z,tt=0,F=[],et=("undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){N.suspendWhenDocumentHidden&&(t()?z=cancelAnimationFrame(z):(F.forEach(function(t){return t._onDocumentVisibility()}),et()))}),function(){!(z||t()&&N.suspendWhenDocumentHidden)&&0<F.length&&(z=requestAnimationFrame(nt))});function nt(t){for(var e=F.length,n=0;n<e;){var i=F[n];i.paused?(F.splice(n,1),e--):(i.tick(t),n++)}z=0<n?requestAnimationFrame(nt):void 0}function t(){return document&&document.hidden}function N(t){var u,e,l=0,c=0,h=0,f=0,d=null;function p(t){var e=window.Promise&&new Promise(function(t){return d=t});t.finished=e}n=P(b,t=void 0===t?{}:t),i=$(r=P(_,t),t),t=U(t.targets),r=K((e=i,i=O(M(t.map(function(o){return e.map(function(t){var e,n,i=o,r=I(i.target,t.name);if(r)return n=(e=G(t,i))[e.length-1],{type:r,property:t.name,animatable:i,tweens:e,duration:n.end,delay:e[0].delay,endDelay:n.endDelay}})})),function(t){return!x.und(t)})),r),o=tt,tt++;var n,i,r,o,E=C(n,{id:o,children:[],animatables:t,animations:i,duration:r.duration,delay:r.delay,endDelay:r.endDelay});function m(){var t=E.direction;"alternate"!==t&&(E.direction="normal"!==t?"normal":"reverse"),E.reversed=!E.reversed,u.forEach(function(t){return t.reversed=E.reversed})}function g(t){return E.reversed?E.duration-t:t}function s(){l=0,c=g(E.currentTime)*(1/N.speed)}function v(t,e){e&&e.seek(t-e.timelineOffset)}function y(e){for(var t=0,n=E.animations,i=n.length;t<i;){for(var r=n[t],o=r.animatable,s=r.tweens,a=s[u=s.length-1],u=(u&&(a=O(s,function(t){return e<t.end})[0]||a),S(e-a.start-a.delay,0,a.duration)/a.duration),l=isNaN(u)?1:a.easing(u),c=a.to.strings,h=a.round,f=[],d=a.to.numbers.length,p=void 0,m=0;m<d;m++){var g=void 0,v=a.to.numbers[m],y=a.from.numbers[m]||0,g=a.isPath?((e,n,t)=>{function i(t){return e.el.getPointAtLength(1<=n+(t=void 0===t?0:t)?n+t:0)}var r=Y(e.el,e.svg),o=i(),s=i(-1),a=i(1),u=t?1:r.w/r.vW,l=t?1:r.h/r.vH;switch(e.property){case"x":return(o.x-r.x)*u;case"y":return(o.y-r.y)*l;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}})(a.value,l*v,a.isPathTargetInsideSVG):y+l*(v-y);!h||a.isColor&&2<m||(g=Math.round(g*h)/h),f.push(g)}var w=c.length;if(w)for(var p=c[0],b=0;b<w;b++){c[b];var _=c[b+1],x=f[b];isNaN(x)||(p+=_?x+_:x+" ")}else p=f[0];J[r.type](o.target,r.property,p,o.transforms),r.currentValue=p,t++}}function w(t){E[t]&&!E.passThrough&&E[t](E)}function a(t){var e=E.duration,n=E.delay,i=e-E.endDelay,r=g(t);if(E.progress=S(r/e*100,0,100),E.reversePlayback=r<E.currentTime,u){var o=r;if(E.reversePlayback)for(var s=f;s--;)v(o,u[s]);else for(var a=0;a<f;a++)v(o,u[a])}!E.began&&0<E.currentTime&&(E.began=!0,w("begin")),!E.loopBegan&&0<E.currentTime&&(E.loopBegan=!0,w("loopBegin")),r<=n&&0!==E.currentTime&&y(0),(i<=r&&E.currentTime!==e||!e)&&y(e),n<r&&r<i?(E.changeBegan||(E.changeBegan=!0,E.changeCompleted=!1,w("changeBegin")),w("change"),y(r)):E.changeBegan&&(E.changeCompleted=!0,E.changeBegan=!1,w("changeComplete")),E.currentTime=S(r,0,e),E.began&&w("update"),e<=t&&(c=0,E.remaining&&!0!==E.remaining&&E.remaining--,E.remaining?(l=h,w("loopComplete"),E.loopBegan=!1,"alternate"===E.direction&&m()):(E.paused=!0,E.completed||(E.completed=!0,w("loopComplete"),w("complete"),!E.passThrough&&"Promise"in window&&(d(),p(E)))))}return p(E),E.reset=function(){var t=E.direction;E.passThrough=!1,E.currentTime=0,E.progress=0,E.paused=!0,E.began=!1,E.loopBegan=!1,E.changeBegan=!1,E.completed=!1,E.changeCompleted=!1,E.reversePlayback=!1,E.reversed="reverse"===t,E.remaining=E.loop,u=E.children;for(var e=f=u.length;e--;)E.children[e].reset();(E.reversed&&!0!==E.loop||"alternate"===t&&1===E.loop)&&E.remaining++,y(E.reversed?E.duration:0)},E._onDocumentVisibility=s,E.set=function(t,e){return Z(t,e),E},E.tick=function(t){a(((h=t)+(c-(l=l||h)))*N.speed)},E.seek=function(t){a(g(t))},E.pause=function(){E.paused=!0,s()},E.play=function(){E.paused&&(E.completed&&E.reset(),E.paused=!1,F.push(E),s(),et())},E.reverse=function(){m(),E.completed=!E.reversed,s()},E.restart=function(){E.reset(),E.play()},E.remove=function(t){rt(j(t),E)},E.reset(),E.autoplay&&E.play(),E}function it(t,e){for(var n=e.length;n--;)c(t,e[n].animatable.target)&&e.splice(n,1)}function rt(t,e){var n=e.animations,i=e.children;it(t,n);for(var r=i.length;r--;){var o=i[r],s=o.animations;it(t,s),s.length||o.children.length||i.splice(r,1)}n.length||i.length||e.pause()}return N.version="3.2.2",N.speed=1,N.suspendWhenDocumentHidden=!0,N.running=F,N.remove=function(t){for(var e=j(t),n=F.length;n--;)rt(e,F[n])},N.get=v,N.set=Z,N.convertPx=g,N.path=function(t,e){var n=x.str(t)?r(t)[0]:t,i=e||100;return function(t){return{property:t,el:n,svg:Y(n),totalLength:V(n)*(i/100)}}},N.setDashoffset=function(t){var e=V(t);return t.setAttribute("stroke-dasharray",e),e},N.stagger=function(t,e){var a=(e=void 0===e?{}:e).direction||"normal",u=e.easing?k(e.easing):null,l=e.grid,c=e.axis,h=e.from||0,f="first"===h,d="center"===h,p="last"===h,m=x.arr(t),g=m?parseFloat(t[0]):parseFloat(t),v=m?parseFloat(t[1]):0,y=L(m?t[1]:t)||0,w=e.start||0+(m?g:0),b=[],_=0;return function(t,e,n){if(f&&(h=0),d&&(h=(n-1)/2),p&&(h=n-1),!b.length){for(var i,r,o,s=0;s<n;s++)l?(i=d?(l[0]-1)/2:h%l[0],r=d?(l[1]-1)/2:Math.floor(h/l[0]),i-=s%l[0],r-=Math.floor(s/l[0]),o=Math.sqrt(i*i+r*r),"x"===c&&(o=-i),b.push(o="y"===c?-r:o)):b.push(Math.abs(h-s)),_=Math.max.apply(Math,b);u&&(b=b.map(function(t){return u(t/_)*_})),"reverse"===a&&(b=b.map(function(t){return c?t<0?-1*t:-t:Math.abs(_-t)}))}return w+(m?(v-g)/_:g)*(Math.round(100*b[e])/100)+y}},N.timeline=function(s){var a=N(s=void 0===s?{}:s);return a.duration=0,a.add=function(t,e){var n=F.indexOf(a),i=a.children;function r(t){t.passThrough=!0}-1<n&&F.splice(n,1);for(var o=0;o<i.length;o++)r(i[o]);return(n=C(t,P(_,s))).targets=n.targets||s.targets,t=a.duration,n.autoplay=!1,n.direction=a.direction,n.timelineOffset=x.und(e)?t:y(e,t),r(a),a.seek(n.timelineOffset),r(e=N(n)),i.push(e),t=K(i,s),a.delay=t.delay,a.endDelay=t.endDelay,a.duration=t.duration,a.seek(0),a.reset(),a.autoplay&&a.play(),a},a},N.easing=k,N.penner=a,N.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},N}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,i,r){return jQuery.easing[jQuery.easing.def](t,e,n,i,r)},easeInQuad:function(t,e,n,i,r){return i*(e/=r)*e+n},easeOutQuad:function(t,e,n,i,r){return-i*(e/=r)*(e-2)+n},easeInOutQuad:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,r){return i*(e/=r)*e*e+n},easeOutCubic:function(t,e,n,i,r){return i*((e=e/r-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,r){return i*(e/=r)*e*e*e+n},easeOutQuart:function(t,e,n,i,r){return-i*((e=e/r-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,r){return i*(e/=r)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,r){return i*((e=e/r-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,r){return-i*Math.cos(e/r*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,r){return i*Math.sin(e/r*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,r){return-i/2*(Math.cos(Math.PI*e/r)-1)+n},easeInExpo:function(t,e,n,i,r){return 0==e?n:i*Math.pow(2,10*(e/r-1))+n},easeOutExpo:function(t,e,n,i,r){return e==r?n+i:i*(1-Math.pow(2,-10*e/r))+n},easeInOutExpo:function(t,e,n,i,r){return 0==e?n:e==r?n+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,i,r){return-i*(Math.sqrt(1-(e/=r)*e)-1)+n},easeOutCirc:function(t,e,n,i,r){return i*Math.sqrt(1-(e=e/r-1)*e)+n},easeInOutCirc:function(t,e,n,i,r){return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,r){var o=1.70158,s=0,a=i;return 0==e?n:1==(e/=r)?n+i:(s=s||.3*r,o=a<Math.abs(i)?(a=i,s/4):s/(2*Math.PI)*Math.asin(i/a),-(a*Math.pow(2,10*--e)*Math.sin(2*Math.PI*(e*r-o)/s))+n)},easeOutElastic:function(t,e,n,i,r){var o=1.70158,s=0,a=i;return 0==e?n:1==(e/=r)?n+i:(s=s||.3*r,o=a<Math.abs(i)?(a=i,s/4):s/(2*Math.PI)*Math.asin(i/a),a*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e*r-o)/s)+i+n)},easeInOutElastic:function(t,e,n,i,r){var o=1.70158,s=0,a=i;return 0==e?n:2==(e/=r/2)?n+i:(s=s||r*(.3*1.5),o=a<Math.abs(i)?(a=i,s/4):s/(2*Math.PI)*Math.asin(i/a),e<1?a*Math.pow(2,10*--e)*Math.sin(2*Math.PI*(e*r-o)/s)*-.5+n:a*Math.pow(2,-10*--e)*Math.sin(2*Math.PI*(e*r-o)/s)*.5+i+n)},easeInBack:function(t,e,n,i,r,o){return i*(e/=r)*e*(((o=null==o?1.70158:o)+1)*e-o)+n},easeOutBack:function(t,e,n,i,r,o){return i*((e=e/r-1)*e*(((o=null==o?1.70158:o)+1)*e+o)+1)+n},easeInOutBack:function(t,e,n,i,r,o){return null==o&&(o=1.70158),(e/=r/2)<1?i/2*(e*e*((1+(o*=1.525))*e-o))+n:i/2*((e-=2)*e*((1+(o*=1.525))*e+o)+2)+n},easeInBounce:function(t,e,n,i,r){return i-jQuery.easing.easeOutBounce(t,r-e,0,i,r)+n},easeOutBounce:function(t,e,n,i,r){return(e/=r)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,i,r){return e<r/2?.5*jQuery.easing.easeInBounce(t,2*e,0,i,r)+n:.5*jQuery.easing.easeOutBounce(t,2*e-r,0,i,r)+.5*i+n}}),((t,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Fuse",[],e):"object"==typeof exports?exports.Fuse=e():t.Fuse=e()})(this,function(){return n=[function(t,e,n){t.exports=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){var i=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},r=n(5),o=n(7),l=n(4),n=(i(c,[{key:"search",value:function(t){var e,n;return this.options.isCaseSensitive||(t=t.toLowerCase()),this.pattern===t?{isMatch:!0,score:0,matchedIndices:[[0,t.length-1]]}:(e=(n=this.options).maxPatternLength,this.pattern.length>e?r(t,this.pattern,n.tokenSeparator):(n=(e=this.options).location,o(t,this.pattern,this.patternAlphabet,{location:n,distance:e.distance,threshold:e.threshold,findAllMatches:e.findAllMatches,minMatchCharLength:e.minMatchCharLength})))}}]),c);function c(t,e){var n=e.location,n=void 0===n?0:n,i=e.distance,i=void 0===i?100:i,r=e.threshold,r=void 0===r?.6:r,o=e.maxPatternLength,o=void 0===o?32:o,s=e.isCaseSensitive,s=void 0!==s&&s,a=e.tokenSeparator,a=void 0===a?/ +/g:a,u=e.findAllMatches,u=void 0!==u&&u,e=e.minMatchCharLength,e=void 0===e?1:e;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.options={location:n,distance:i,threshold:r,maxPatternLength:o,isCaseSensitive:s,tokenSeparator:a,findAllMatches:u,minMatchCharLength:e},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=o&&(this.patternAlphabet=l(this.pattern))}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}t.exports=n},function(t,e,n){function l(t,e,n){if(e){var i=e.indexOf("."),r=e,o=null,s=(-1!==i&&(r=e.slice(0,i),o=e.slice(i+1)),t[r]);if(null!=s)if(o||"string"!=typeof s&&"number"!=typeof s)if(c(s))for(var a=0,u=s.length;a<u;a+=1)l(s[a],o,n);else o&&l(s,o,n);else n.push(s.toString())}else n.push(t);return n}var c=n(0);t.exports=function(t,e){return l(t,e,[])}},function(t,e,n){t.exports=function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=[],i=-1,r=0,o=t.length;r<o;r+=1){var s=t[r];s&&-1===i?i=r:s||-1===i||(e<=(s=r-1)-i+1&&n.push([i,s]),i=-1)}return t[r-1]&&e<=r-i&&n.push([i,r-1]),n}},function(t,e,n){t.exports=function(t){for(var e={},n=t.length,i=0;i<n;i+=1)e[t.charAt(i)]=0;for(var r=0;r<n;r+=1)e[t.charAt(r)]|=1<<n-r-1;return e}},function(t,e,n){t.exports=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:/ +/g,e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(n,"|")),i=t.match(e),n=!!i,r=[];if(n)for(var o=0,s=i.length;o<s;o+=1){var a=i[o];r.push([t.indexOf(a),a.length-1])}return{score:n?.5:1,isMatch:n,matchedIndices:r}}},function(t,e,n){t.exports=function(t,e){var n=e.errors,i=e.currentLocation,r=e.expectedLocation,e=e.distance,e=void 0===e?100:e,n=(void 0===n?0:n)/t.length,t=Math.abs((void 0===r?0:r)-(void 0===i?0:i));return e?n+t/e:t?1:n}},function(t,e,n){var P=n(6),C=n(3);t.exports=function(t,e,n,i){for(var r=i.location,o=i.distance,s=void 0===o?100:o,o=i.threshold,a=i.findAllMatches,u=void 0!==a&&a,a=i.minMatchCharLength,i=void 0===a?1:a,l=void 0===r?0:r,c=t.length,h=void 0===o?.6:o,f=t.indexOf(e,l),d=e.length,p=[],m=0;m<c;m+=1)p[m]=0;-1!==f&&(a=P(e,{errors:0,currentLocation:f,expectedLocation:l,distance:s}),h=Math.min(a,h),-1!==(f=t.lastIndexOf(e,l+d)))&&(r=P(e,{errors:0,currentLocation:f,expectedLocation:l,distance:s}),h=Math.min(r,h));for(var f=-1,g=[],v=1,y=d+c,w=1<<d-1,b=0;b<d;b+=1){for(var _=0,x=y;_<x;)P(e,{errors:b,currentLocation:l+x,expectedLocation:l,distance:s})<=h?_=x:y=x,x=Math.floor((y-_)/2+_);var y=x,E=Math.max(1,l-x+1),S=u?c:Math.min(l+x,c)+d,T=Array(S+2);T[S+1]=(1<<b)-1;for(var k=S;E<=k;--k){var O=k-1,M=n[t.charAt(O)];if(M&&(p[O]=1),T[k]=(T[k+1]<<1|1)&M,0!==b&&(T[k]|=(g[k+1]|g[k])<<1|1|g[k+1]),T[k]&w&&(v=P(e,{errors:b,currentLocation:O,expectedLocation:l,distance:s}))<=h){if(h=v,(f=O)<=l)break;E=Math.max(1,2*l-f)}}if(P(e,{errors:b+1,currentLocation:l,expectedLocation:l,distance:s})>h)break;g=T}return{isMatch:0<=f,score:0===v?.001:v,matchedIndices:C(p,i)}}},function(t,e,n){var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},o=n(1),w=n(2),M=n(0),n=(i(b,[{key:"setCollection",value:function(t){return this.list=t}},{key:"search",value:function(t){this._log('---------\nSearch pattern: "'+t+'"');var t=this._prepareSearchers(t),e=t.tokenSearchers,e=this._search(e,t.fullSearcher),t=e.weights,e=e.results;return this._computeScore(t,e),this.options.shouldSort&&this._sort(e),this._format(e)}},{key:"_prepareSearchers",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=[];if(this.options.tokenize)for(var n=t.split(this.options.tokenSeparator),i=0,r=n.length;i<r;i+=1)e.push(new o(n[i],this.options));return{tokenSearchers:e,fullSearcher:new o(t,this.options)}}},{key:"_search",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n=this.list,i={},r=[];if("string"==typeof n[0]){for(var o=0,s=n.length;o<s;o+=1)this._analyze({key:"",value:n[o],record:o,index:o},{resultMap:i,results:r,tokenSearchers:t,fullSearcher:e});return{weights:null,results:r}}for(var a={},u=0,l=n.length;u<l;u+=1)for(var c=n[u],h=0,f=this.options.keys.length;h<f;h+=1){var d=this.options.keys[h];if("string"!=typeof d){if(a[d.name]={weight:1-d.weight||1},d.weight<=0||1<d.weight)throw new Error("Key weight has to be > 0 and <=1");d=d.name}else a[d]={weight:1};this._analyze({key:d,value:this.options.getFn(c,d),record:c,index:u},{resultMap:i,results:r,tokenSearchers:t,fullSearcher:e})}return{weights:a,results:r}}},{key:"_analyze",value:function(t,e){var n=t.key,i=t.arrayIndex,i=void 0===i?-1:i,r=t.value,o=t.record,s=t.index,t=e.tokenSearchers,a=void 0===t?[]:t,t=e.fullSearcher,u=void 0===t?[]:t,t=e.resultMap,l=void 0===t?{}:t,t=e.results,c=void 0===t?[]:t;if(null!=r){var h=!1,f=-1,d=0;if("string"==typeof r){this._log("\nKey: "+(""===n?"-":n));e=u.search(r);if(this._log('Full text: "'+r+'", score: '+e.score),this.options.tokenize){for(var p=r.split(this.options.tokenSeparator),m=[],g=0;g<a.length;g+=1){var v=a[g];this._log('\nPattern: "'+v.pattern+'"');for(var y=!1,w=0;w<p.length;w+=1){var b=p[w],_=v.search(b),x={};_.isMatch?(x[b]=_.score,y=h=!0,m.push(_.score)):(x[b]=1,this.options.matchAllTokens||m.push(1)),this._log('Token: "'+b+'", score: '+x[b])}y&&(d+=1)}for(var f=m[0],E=m.length,S=1;S<E;S+=1)f+=m[S];this._log("Token score average:",f/=E)}var t=e.score,T=(this._log("Score average:",t=-1<f?(t+f)/2:t),!this.options.tokenize||!this.options.matchAllTokens||d>=a.length);this._log("\nCheck Matches: "+T),(h||e.isMatch)&&T&&((T=l[s])?T.output.push({key:n,arrayIndex:i,value:r,score:t,matchedIndices:e.matchedIndices}):(l[s]={item:o,output:[{key:n,arrayIndex:i,value:r,score:t,matchedIndices:e.matchedIndices}]},c.push(l[s])))}else if(M(r))for(var k=0,O=r.length;k<O;k+=1)this._analyze({key:n,arrayIndex:k,value:r[k],record:o,index:s},{resultMap:l,results:c,tokenSearchers:a,fullSearcher:u})}}},{key:"_computeScore",value:function(t,e){this._log("\n\nComputing score:\n");for(var n=0,i=e.length;n<i;n+=1){for(var r=e[n].output,o=r.length,s=1,a=1,u=0;u<o;u+=1){var l=t?t[r[u].key].weight:1,c=(1===l?r[u].score:r[u].score||.001)*l;1!==l?a=Math.min(a,c):s*=r[u].nScore=c}e[n].score=1===a?s:a,this._log(e[n])}}},{key:"_sort",value:function(t){this._log("\n\nSorting...."),t.sort(this.options.sortFn)}},{key:"_format",value:function(t){var e=[],n=(this.options.verbose&&this._log("\n\nOutput:\n\n",JSON.stringify(t)),[]);this.options.includeMatches&&n.push(function(t,e){var n=t.output;e.matches=[];for(var i=0,r=n.length;i<r;i+=1){var o,s=n[i];0!==s.matchedIndices.length&&(o={indices:s.matchedIndices,value:s.value},s.key&&(o.key=s.key),s.hasOwnProperty("arrayIndex")&&-1<s.arrayIndex&&(o.arrayIndex=s.arrayIndex),e.matches.push(o))}}),this.options.includeScore&&n.push(function(t,e){e.score=t.score});for(var i=0,r=t.length;i<r;i+=1){var o=t[i];if(this.options.id&&(o.item=this.options.getFn(o.item,this.options.id)[0]),n.length){for(var s={item:o.item},a=0,u=n.length;a<u;a+=1)n[a](o,s);e.push(s)}else e.push(o.item)}return e}},{key:"_log",value:function(){var t;this.options.verbose&&(t=console).log.apply(t,arguments)}}]),b);function b(t,e){var n=e.location,n=void 0===n?0:n,i=e.distance,i=void 0===i?100:i,r=e.threshold,r=void 0===r?.6:r,o=e.maxPatternLength,o=void 0===o?32:o,s=e.caseSensitive,s=void 0!==s&&s,a=e.tokenSeparator,a=void 0===a?/ +/g:a,u=e.findAllMatches,u=void 0!==u&&u,l=e.minMatchCharLength,l=void 0===l?1:l,c=e.id,c=void 0===c?null:c,h=e.keys,h=void 0===h?[]:h,f=e.shouldSort,f=void 0===f||f,d=e.getFn,d=void 0===d?w:d,p=e.sortFn,p=void 0===p?function(t,e){return t.score-e.score}:p,m=e.tokenize,m=void 0!==m&&m,g=e.matchAllTokens,g=void 0!==g&&g,v=e.includeMatches,v=void 0!==v&&v,y=e.includeScore,y=void 0!==y&&y,e=e.verbose,e=void 0!==e&&e;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.options={location:n,distance:i,threshold:r,maxPatternLength:o,isCaseSensitive:s,tokenSeparator:a,findAllMatches:u,minMatchCharLength:l,id:c,keys:h,includeMatches:v,includeScore:y,shouldSort:f,getFn:d,sortFn:p,verbose:e,tokenize:m,matchAllTokens:g},this.setCollection(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}t.exports=n}],r={},i.m=n,i.c=r,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=8);function i(t){var e;return(r[t]||(e=r[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,i),e.l=!0,e)).exports}var n,r});var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__spreadValues=(t,e)=>{for(var n in e=e||{})__hasOwnProp.call(e,n)&&__defNormalProp(t,n,e[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(e))__propIsEnum.call(e,n)&&__defNormalProp(t,n,e[n]);return t},__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n),version="1.3.15";function clamp(t,e,n){return Math.max(t,Math.min(e,n))}function lerp(t,e,n){return(1-n)*t+n*e}function damp(t,e,n,i){return lerp(t,e,1-Math.exp(-n*i))}function modulo(t,e){return(t%e+e)%e}var Animate=class{constructor(){__publicField(this,"isRunning",!1),__publicField(this,"value",0),__publicField(this,"from",0),__publicField(this,"to",0),__publicField(this,"currentTime",0),__publicField(this,"lerp"),__publicField(this,"duration"),__publicField(this,"easing"),__publicField(this,"onUpdate")}advance(e){var n;if(this.isRunning){let t=!1;this.duration&&this.easing?(this.currentTime+=e,n=clamp(0,this.currentTime/this.duration,1),n=(t=1<=n)?1:this.easing(n),this.value=this.from+(this.to-this.from)*n):this.lerp&&(this.value=damp(this.value,this.to,60*this.lerp,e),Math.round(this.value)!==this.to)||(this.value=this.to,t=!0),t&&this.stop(),null!=(n=this.onUpdate)&&n.call(this,this.value,t)}}stop(){this.isRunning=!1}fromTo(t,e,{lerp:n,duration:i,easing:r,onStart:o,onUpdate:s}){this.from=this.value=t,this.to=e,this.lerp=n,this.duration=i,this.easing=r,this.currentTime=0,this.isRunning=!0,null!=o&&o(),this.onUpdate=s}};function debounce(n,i){let r;return function(...t){let e=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,n.apply(e,t)},i)}}var Dimensions=class{constructor(t,e,{autoResize:n=!0,debounce:i=250}={}){__publicField(this,"width",0),__publicField(this,"height",0),__publicField(this,"scrollHeight",0),__publicField(this,"scrollWidth",0),__publicField(this,"debouncedResize"),__publicField(this,"wrapperResizeObserver"),__publicField(this,"contentResizeObserver"),__publicField(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()}),__publicField(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)}),__publicField(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)}),this.wrapper=t,this.content=e,n&&(this.debouncedResize=debounce(this.resize,i),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var t;null!=(t=this.wrapperResizeObserver)&&t.disconnect(),null!=(t=this.contentResizeObserver)&&t.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Emitter=class{constructor(){__publicField(this,"events",{})}emit(t,...n){var i,r=this.events[t]||[];for(let t=0,e=r.length;t<e;t++)null!=(i=r[t])&&i.call(r,...n)}on(e,n){var t;return null!=(t=this.events[e])&&t.push(n)||(this.events[e]=[n]),()=>{var t;this.events[e]=null==(t=this.events[e])?void 0:t.filter(t=>n!==t)}}off(t,e){this.events[t]=null==(t=this.events[t])?void 0:t.filter(t=>e!==t)}destroy(){this.events={}}},LINE_HEIGHT=100/6,listenerOptions={passive:!1},VirtualScroll=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){__publicField(this,"touchStart",{x:0,y:0}),__publicField(this,"lastDelta",{x:0,y:0}),__publicField(this,"window",{width:0,height:0}),__publicField(this,"emitter",new Emitter),__publicField(this,"onTouchStart",t=>{var{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})}),__publicField(this,"onTouchMove",t=>{var{clientX:e,clientY:n}=t.targetTouches?t.targetTouches[0]:t,i=-(e-this.touchStart.x)*this.options.touchMultiplier,r=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=n,this.lastDelta={x:i,y:r},this.emitter.emit("scroll",{deltaX:i,deltaY:r,event:t})}),__publicField(this,"onTouchEnd",t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})}),__publicField(this,"onWheel",t=>{var{deltaX:e,deltaY:n,deltaMode:i}=t,r=1===i?LINE_HEIGHT:2===i?this.window.width:1,i=1===i?LINE_HEIGHT:2===i?this.window.height:1,e=e*r*this.options.wheelMultiplier,n=n*i*this.options.wheelMultiplier;this.emitter.emit("scroll",{deltaX:e,deltaY:n,event:t})}),__publicField(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}}),this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,listenerOptions),this.element.addEventListener("touchstart",this.onTouchStart,listenerOptions),this.element.addEventListener("touchmove",this.onTouchMove,listenerOptions),this.element.addEventListener("touchend",this.onTouchEnd,listenerOptions)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,listenerOptions),this.element.removeEventListener("touchstart",this.onTouchStart,listenerOptions),this.element.removeEventListener("touchmove",this.onTouchMove,listenerOptions),this.element.removeEventListener("touchend",this.onTouchEnd,listenerOptions)}},defaultEasing=t=>Math.min(1,1.001-Math.pow(2,-10*t)),Lenis=class{constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:n=t,smoothWheel:i=!0,syncTouch:r=!1,syncTouchLerp:o=.075,touchInertiaExponent:s=1.7,duration:a,easing:u,lerp:l=.1,infinite:c=!1,orientation:h="vertical",gestureOrientation:f="horizontal"===h?"both":"vertical",touchMultiplier:d=1,wheelMultiplier:p=1,autoResize:m=!0,prevent:g,virtualScroll:v,overscroll:y=!0,autoRaf:w=!1,anchors:b=!1,autoToggle:_=!1,allowNestedScroll:x=!1,__experimental__naiveDimensions:E=!1}={}){__publicField(this,"_isScrolling",!1),__publicField(this,"_isStopped",!1),__publicField(this,"_isLocked",!1),__publicField(this,"_preventNextNativeScrollEvent",!1),__publicField(this,"_resetVelocityTimeout",null),__publicField(this,"__rafID",null),__publicField(this,"isTouching"),__publicField(this,"time",0),__publicField(this,"userData",{}),__publicField(this,"lastVelocity",0),__publicField(this,"velocity",0),__publicField(this,"direction",0),__publicField(this,"options"),__publicField(this,"targetScroll"),__publicField(this,"animatedScroll"),__publicField(this,"animate",new Animate),__publicField(this,"emitter",new Emitter),__publicField(this,"dimensions"),__publicField(this,"virtualScroll"),__publicField(this,"onScrollEnd",t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()}),__publicField(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))}),__publicField(this,"onTransitionEnd",t=>{t.propertyName.includes("overflow")&&(t=this.isHorizontal?"overflow-x":"overflow-y",t=getComputedStyle(this.rootElement)[t],["hidden","clip"].includes(t)?this.internalStop():this.internalStart())}),__publicField(this,"onClick",t=>{var e,t=t.composedPath().find(t=>t instanceof HTMLAnchorElement&&(null==(t=t.getAttribute("href"))?void 0:t.includes("#")));t&&(t=t.getAttribute("href"))&&(e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,t="#"+t.split("#")[1],this.scrollTo(t,e))}),__publicField(this,"onPointerDown",t=>{1===t.button&&this.reset()}),__publicField(this,"onVirtualScroll",a=>{if("function"!=typeof this.options.virtualScroll||!1!==this.options.virtualScroll(a)){let{deltaX:o,deltaY:s,event:e}=a;if(this.emitter.emit("virtual-scroll",{deltaX:o,deltaY:s,event:e}),!e.ctrlKey&&!e.lenisStopPropagation){let i=e.type.includes("touch"),r=e.type.includes("wheel");this.isTouching="touchstart"===e.type||"touchmove"===e.type;a=0===o&&0===s;if(this.options.syncTouch&&i&&"touchstart"===e.type&&a&&!this.isStopped&&!this.isLocked)this.reset();else{var u="vertical"===this.options.gestureOrientation&&0===s||"horizontal"===this.options.gestureOrientation&&0===o;if(!a&&!u){let t=e.composedPath(),n=(t=t.slice(0,t.indexOf(this.rootElement)),this.options.prevent);if(!t.find(t=>{var e;return t instanceof HTMLElement&&("function"==typeof n&&(null==n?void 0:n(t))||(null==(e=t.hasAttribute)?void 0:e.call(t,"data-lenis-prevent"))||i&&(null==(e=t.hasAttribute)?void 0:e.call(t,"data-lenis-prevent-touch"))||r&&(null==(e=t.hasAttribute)?void 0:e.call(t,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(t,{deltaX:o,deltaY:s}))}))if(this.isStopped||this.isLocked)e.cancelable&&e.preventDefault();else if(this.options.syncTouch&&i||this.options.smoothWheel&&r){let t=s;"both"===this.options.gestureOrientation?t=Math.abs(s)>Math.abs(o)?s:o:"horizontal"===this.options.gestureOrientation&&(t=o),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&0<this.limit&&(0<this.animatedScroll&&this.animatedScroll<this.limit||0===this.animatedScroll&&0<s||this.animatedScroll===this.limit&&s<0))&&(e.lenisStopPropagation=!0),e.cancelable&&e.preventDefault();a=i&&this.options.syncTouch,u=i&&"touchend"===e.type;u&&(t=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+t,__spreadValues({programmatic:!1},a?{lerp:u?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))}else this.isScrolling="native",this.animate.stop(),e.lenisStopPropagation=!0}}}}}),__publicField(this,"onNativeScroll",()=>{var t;null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent?this._preventNextNativeScrollEvent=!1:!1!==this.isScrolling&&"native"!==this.isScrolling||(t=this.animatedScroll,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400)))}),__publicField(this,"raf",t=>{var e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}),window.lenisVersion=version,t&&t!==document.documentElement||(t=window),"number"==typeof a&&"function"!=typeof u?u=defaultEasing:"function"==typeof u&&"number"!=typeof a&&(a=1),this.options={wrapper:t,content:e,eventsTarget:n,smoothWheel:i,syncTouch:r,syncTouchLerp:o,touchInertiaExponent:s,duration:a,easing:u,lerp:l,infinite:c,gestureOrientation:f,orientation:h,touchMultiplier:d,wheelMultiplier:p,autoResize:m,prevent:g,virtualScroll:v,overscroll:y,autoRaf:w,anchors:b,autoToggle:_,allowNestedScroll:x,__experimental__naiveDimensions:E},this.dimensions=new Dimensions(t,e,{autoResize:m}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new VirtualScroll(n,{touchMultiplier:d,wheelMultiplier:p}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.options.autoToggle?this.rootElement.style.removeProperty("overflow"):this.internalStart())}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){this.isStopped||(this.options.autoToggle?this.rootElement.style.setProperty("overflow","clip"):this.internalStop())}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(e,{offset:n=0,immediate:t=!1,lock:i=!1,duration:r=this.options.duration,easing:o=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:u,force:l=!1,programmatic:c=!0,userData:h}={}){if(!this.isStopped&&!this.isLocked||l){if("string"==typeof e&&["top","left","start","#"].includes(e))e=0;else if("string"==typeof e&&["bottom","right","end"].includes(e))e=this.limit;else{let t;"string"==typeof e?(t=document.querySelector(e))||"#top"===e&&(e=0):e instanceof HTMLElement&&null!=e&&e.nodeType&&(t=e),t&&(this.options.wrapper!==window&&(l=this.rootElement.getBoundingClientRect(),n-=this.isHorizontal?l.left:l.top),l=t.getBoundingClientRect(),e=(this.isHorizontal?l.left:l.top)+this.animatedScroll)}"number"==typeof e&&(e+=n,e=Math.round(e),this.options.infinite?c&&(this.targetScroll=this.animatedScroll=this.scroll,(l=e-this.animatedScroll)>this.limit/2?e-=this.limit:l<-this.limit/2&&(e+=this.limit)):e=clamp(0,e,this.limit),e===this.targetScroll?(null!=a&&a(this),null!=u&&u(this)):(this.userData=null!=h?h:{},t?(this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),null!=u&&u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()})):(c||(this.targetScroll=e),"number"==typeof r&&"function"!=typeof o?o=defaultEasing:"function"==typeof o&&"number"!=typeof r&&(r=1),this.animate.fromTo(this.animatedScroll,e,{duration:r,easing:o,lerp:s,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling="smooth",null!=a&&a(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),c&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),null!=u&&u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}}))))}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:n}){var i=Date.now(),r=null!=(r=t._lenis)?r:t._lenis={};let o,s,a,u,l,c,h,f;var d=this.options.gestureOrientation;if(2e3<i-(null!=(i=r.time)?i:0)){r.time=Date.now();var i=window.getComputedStyle(t),p=(r.computedStyle=i).overflowX,i=i.overflowY;if(o=["auto","overlay","scroll"].includes(p),s=["auto","overlay","scroll"].includes(i),r.hasOverflowX=o,r.hasOverflowY=s,!o&&!s)return!1;if("vertical"===d&&!s)return!1;if("horizontal"===d&&!o)return!1;l=t.scrollWidth,c=t.scrollHeight,h=t.clientWidth,f=t.clientHeight,a=l>h,u=c>f,r.isScrollableX=a,r.isScrollableY=u,r.scrollWidth=l,r.scrollHeight=c,r.clientWidth=h,r.clientHeight=f}else a=r.isScrollableX,u=r.isScrollableY,o=r.hasOverflowX,s=r.hasOverflowY,l=r.scrollWidth,c=r.scrollHeight,h=r.clientWidth,f=r.clientHeight;if(!o&&!s||!a&&!u)return!1;if(!("vertical"!==d||s&&u))return!1;if(!("horizontal"!==d||o&&a))return!1;let m;if("horizontal"===d?m="x":("vertical"===d||(0!==e&&o&&a&&(m="x"),0!==n&&s&&u))&&(m="y"),!m)return!1;let g,v,y,w,b;if("x"===m)g=t.scrollLeft,v=l-h,y=e,w=o,b=a;else{if("y"!==m)return!1;g=t.scrollTop,v=c-f,y=n,w=s,b=u}return(0<y?g<v:0<g)&&w&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){var t,e=this.options.wrapper;return this.isHorizontal?null!=(t=e.scrollX)?t:e.scrollLeft:null!=(t=e.scrollY)?t:e.scrollTop}get scroll(){return this.options.infinite?modulo(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=(this.rootElement.className+" "+this.className).trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};globalThis.Lenis=Lenis,globalThis.Lenis.prototype=Lenis.prototype,((e,n)=>{"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("jquery")):e.jQueryBridget=n(e,e.jQuery)})(window,function(t,e){function n(u,l,c){(c=c||e||t.jQuery)&&(l.prototype.option||(l.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[u]=function(t){var e,i,r,o,s,a;return"string"==typeof t?(e=h.call(arguments,1),r=e,s="$()."+u+'("'+(i=t)+'")',(e=this).each(function(t,e){var n,e=c.data(e,u);e?(n=e[i])&&"_"!=i.charAt(0)?(n=n.apply(e,r),o=void 0===o?n:o):f(s+" is not a valid method"):f(u+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==o?o:e):(a=t,this.each(function(t,e){var n=c.data(e,u);n?(n.option(a),n._init()):(n=new l(e,a),c.data(e,u,n))}),this)},i(c))}function i(t){t&&!t.bridget&&(t.bridget=n)}var h=Array.prototype.slice,r=t.console,f=void 0===r?function(){}:function(t){r.error(t)};return i(e||t.jQuery),n}),((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 n;if(t&&e)return-1==(n=(n=this._events=this._events||{})[t]=n[t]||[]).indexOf(e)&&n.push(e),this},e.once=function(t,e){var n;if(t&&e)return this.on(t,e),((n=this._onceEvents=this._onceEvents||{})[t]=n[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 n=this._events&&this._events[t];if(n&&n.length){var i=0,r=n[i];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];r;){var s=o&&o[r];s&&(this.off(t,r),delete o[r]),r.apply(this,e),r=n[i+=s?0:1]}return this}},t}),((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(){function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function v(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function y(t){if(x||(x=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(l=document.body||document.documentElement).appendChild(c),o=v(c),y.isBoxSizeOuter=w=200==g(o.width),l.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=v(t);if("none"==e.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<_;i++)n[b[i]]=0;return n}var r={};r.width=t.offsetWidth,r.height=t.offsetHeight;for(var o=r.isBorderBox="border-box"==e.boxSizing,s=0;s<_;s++){var a=b[s],u=e[a],u=parseFloat(u);r[a]=isNaN(u)?0:u}var l=r.paddingLeft+r.paddingRight,c=r.paddingTop+r.paddingBottom,t=r.marginLeft+r.marginRight,h=r.marginTop+r.marginBottom,f=r.borderLeftWidth+r.borderRightWidth,d=r.borderTopWidth+r.borderBottomWidth,p=o&&w,m=g(e.width),m=(!1!==m&&(r.width=m+(p?0:l+f)),g(e.height));return!1!==m&&(r.height=m+(p?0:c+d)),r.innerWidth=r.width-(l+f),r.innerHeight=r.height-(c+d),r.outerWidth=r.width+t,r.outerHeight=r.height+h,r}var c,l,o}var w,e="undefined"==typeof console?function(){}:function(t){},b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=b.length,x=!1;return y}),((t,e)=>{"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(){var n=(()=>{var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n]+"MatchesSelector";if(t[i])return i}})();return function(t,e){return t[n](e)}}),((e,n)=>{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("desandro-matches-selector")):e.fizzyUIUtils=n(e,e.matchesSelector)})(window,function(n,o){var u={extend:function(t,e){for(var n in e)t[n]=e[n];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e},removeFrom:function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},getParent:function(t,e){for(;t!=document.body;)if(t=t.parentNode,o(t,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,i){t=u.makeArray(t);var r=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(i){o(t,i)&&r.push(t);for(var e=t.querySelectorAll(i),n=0;n<e.length;n++)r.push(e[n])}else r.push(t)}),r},debounceMethod:function(t,e,i){var r=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o],e=(t&&clearTimeout(t),arguments),n=this;this[o]=setTimeout(function(){r.apply(n,e),delete n[o]},i||100)}},docReady:function(t){var e=document.readyState;"complete"==e||"interactive"==e?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,n){return e+"-"+n}).toLowerCase()}},l=n.console;return u.htmlInit=function(s,a){u.docReady(function(){var t=u.toDashed(a),i="data-"+t,e=document.querySelectorAll("["+i+"]"),t=document.querySelectorAll(".js-"+t),e=u.makeArray(e).concat(u.makeArray(t)),r=i+"-options",o=n.jQuery;e.forEach(function(e){var t,n=e.getAttribute(i)||e.getAttribute(r);try{t=n&&JSON.parse(n)}catch(t){return void(l&&l.error("Error parsing "+i+" on "+e.className+": "+t))}n=new s(e,t);o&&o.data(e,a,n)})})},u}),((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){function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var i=document.documentElement.style,r="string"==typeof i.transition?"transition":"WebkitTransition",i="string"==typeof i.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],s={transform:i,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},t=n.prototype=Object.create(t.prototype),a=(t.constructor=n,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,n=this.element.style;for(e in t)n[s[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=t[e?"left":"right"],t=t[n?"top":"bottom"],r=this.layout.size,i=-1!=i.indexOf("%")?parseFloat(i)/100*r.width:parseInt(i,10),t=-1!=t.indexOf("%")?parseFloat(t)/100*r.height:parseInt(t,10),i=isNaN(i)?0:i,t=isNaN(t)?0:t;i-=e?r.paddingLeft:r.paddingRight,t-=n?r.paddingTop:r.paddingBottom,this.position.x=i,this.position.y=t},t.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),r=n?"right":"left",o=this.position.x+t[n?"paddingLeft":"paddingRight"],n=(e[n?"left":"right"]=this.getXValue(o),e[r]="",i?"paddingTop":"paddingBottom"),o=i?"bottom":"top",r=this.position.y+t[n];e[i?"top":"bottom"]=this.getYValue(r),e[o]="",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 n=this.position.x,i=this.position.y,r=parseInt(t,10),o=parseInt(e,10),r=r===this.position.x&&o===this.position.y;this.setPosition(t,e),r&&!this.isTransitioning?this.layoutPosition():((o={}).transform=this.getTranslate(t-n,e-i),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=parseInt(t,10),this.position.y=parseInt(e,10)},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,n=this._transn;for(e in t.onTransitionEnd)n.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)n.ingProperties[e]=!0,t.isCleaning&&(n.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)},"opacity,"+i.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})),u=(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"}),l=(t.ontransitionend=function(t){var e,n;t.target===this.element&&(e=this._transn,n=u[t.propertyName]||t.propertyName,delete e.ingProperties[n],(t=>{for(var e in t)return;return 1})(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd&&(e.onEnd[n].call(this),delete e.onEnd[n]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,n={};for(e in t)n[e]="";this.css(n)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(l)},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(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void 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:""})},n}),((r,o)=>{"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,n,i){return o(r,t,e,n,i)}):"object"==typeof module&&module.exports?module.exports=o(r,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):r.Outlayer=o(r,r.EvEmitter,r.getSize,r.fizzyUIUtils,r.Outlayer.Item)})(window,function(t,e,r,i,o){function s(t,e){var n=i.getQueryElement(t);n?(this.element=n,l&&(this.$element=l(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e),e=++c,this.element.outlayerGUID=e,(h[e]=this)._create(),this._getOption("initLayout")&&this.layout()):u&&u.error("Bad element for "+this.constructor.namespace+": "+(n||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function n(){}var u=t.console,l=t.jQuery,c=0,h={},f=(s.namespace="outlayer",s.Item=o,s.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)"}},s.prototype),d=(i.extend(f,e.prototype),f.option=function(t){i.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,i=[],r=0;r<e.length;r++){var o=new n(e[r],this);i.push(o)}return i},f._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.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},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=r(this.element)},f._getMeasurement=function(t,e){var n,i=this.options[t];i?("string"==typeof i?n=this.element.querySelector(i):i instanceof HTMLElement&&(n=i),this[t]=n?r(n)[e]:i):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,n){var i;this._emitCompleteOnItems("layout",t),t&&t.length&&(i=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=n||t.isLayoutInstant,i.push(e)},this),this._processLayoutQueue(i))},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t,e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger="number"==typeof(e=e)?e:(t=(e=e.match(/(^\d*\.?\d*)(\w*)/))&&e[1],e=e&&e[2],t.length?(t=parseFloat(t))*(d[e]||1):0),this.stagger)},f._positionItem=function(t,e,n,i,r){i?t.goTo(e,n):(t.stagger(r*this.stagger),t.moveTo(e,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t;this._getOption("resizeContainer")&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},f._getContainerSize=n,f._setContainerMeasure=function(t,e){var n;void 0!==t&&((n=this.size).isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},f._emitCompleteOnItems=function(e,t){function n(){o.dispatchEvent(e+"Complete",null,[t])}function i(){++r==s&&n()}var r,o=this,s=t.length;t&&s?(r=0,t.forEach(function(t){t.once(e,i)})):n()},f.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;this.emitEvent(t,i),l&&(this.$element=this.$element||l(this.element),e?((i=l.Event(e)).type=t,this.$element.trigger(i,n)):this.$element.trigger(t,n))},f.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},f.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},f.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){i.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),i.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._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)}},f._manageStamp=n,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,t=r(t);return{left:e.left-n.left-t.marginLeft,top:e.top-n.top-t.marginTop,right:n.right-e.right-t.marginRight,bottom:n.bottom-e.bottom-t.marginBottom}},f.handleEvent=i.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},i.debounceMethod(s,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=r(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.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))},f.reveal=function(t){var n;this._emitCompleteOnItems("reveal",t),t&&t.length&&(n=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*n),t.reveal()}))},f.hide=function(t){var n;this._emitCompleteOnItems("hide",t),t&&t.length&&(n=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*n),t.hide()}))},f.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},f.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},f.getItems=function(t){t=i.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},f.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),i.removeFrom(this.items,t)},this)},f.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 h[t],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=(t=i.getQueryElement(t))&&t.outlayerGUID;return t&&h[t]},s.create=function(t,e){var n=a(s);return n.defaults=i.extend({},s.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},s.compatOptions),n.namespace=t,n.data=s.data,n.Item=a(o),i.htmlInit(n,t),l&&l.bridget&&l.bridget(t,n),n},{ms:1,s:1e3});return s.Item=o,s}),((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){t=t.create("masonry");return t.compatOptions.fitWidth="isFitWidth",t.prototype._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},t.prototype.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,n=e/t,e=t-e%t,n=Math[e&&e<1?"round":"floor"](n);this.cols=Math.max(n,1)},t.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t.prototype._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),e=this._getColGroup(e),n=Math.min.apply(Math,e),i=e.indexOf(n),r={x:this.columnWidth*i,y:n},o=n+t.size.outerHeight,s=this.cols+1-e.length,a=0;a<s;a++)this.colYs[i+a]=o;return r},t.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],n=this.cols+1-t,i=0;i<n;i++){var r=this.colYs.slice(i,i+t);e[i]=Math.max.apply(Math,r)}return e},t.prototype._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),n=this._getOption("originLeft")?t.left:t.right,i=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),r=Math.floor(i/this.columnWidth);r-=i%this.columnWidth?0:1;for(var r=Math.min(this.cols-1,r),o=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,s=n;s<=r;s++)this.colYs[s]=Math.max(o,this.colYs[s])},t.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}),((s,c,T)=>{function k(t,e){return typeof t===e}function O(t){return"function"!=typeof c.createElement?c.createElement(t):x?c.createElementNS.call(c,"http://www.w3.org/2000/svg",t):c.createElement.apply(c,arguments)}function M(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")}function r(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function o(t,e,n,i){var r,o,s,a,u="modernizr",l=O("div");(a=c.body)||((a=O(x?"svg":"body")).fake=!0);if(parseInt(n,10))for(;n--;)(o=O("div")).id=i?i[n]:u+(n+1),l.appendChild(o);return(r=O("style")).type="text/css",r.id="s"+u,(a.fake?a:l).appendChild(r),a.appendChild(l),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(c.createTextNode(t)),l.id=u,a.fake&&(a.style.background="",a.style.overflow="hidden",s=_.style.overflow,_.style.overflow="hidden",_.appendChild(a)),r=e(l,t),a.fake?(a.parentNode.removeChild(a),_.style.overflow=s,_.offsetHeight):l.parentNode.removeChild(l),!!r}function P(t,e){var n=t.length;if("CSS"in s&&"supports"in s.CSS){for(;n--;)if(s.CSS.supports(r(t[n]),e))return!0;return!1}if("CSSSupportsRule"in s){for(var i=[];n--;)i.push("("+r(t[n])+":"+e+")");return o("@supports ("+(i=i.join(" or "))+"){ #modernizr { position: absolute; }}",function(t){return"absolute"==(t=t,e=null,n="position","getComputedStyle"in s?(i=getComputedStyle.call(s,t,e),r=s.console,null!==i?n&&(i=i.getPropertyValue(n)):r&&r[r.error?"error":"log"].call(r,"getComputedStyle returning null, its possible modernizr test results are inaccurate")):i=!e&&t.currentStyle&&t.currentStyle[n],i);var e,n,i,r})}return T}function i(t,e,n,i,r){var o,s,a=t.charAt(0).toUpperCase()+t.slice(1),u=(t+" "+L.join(a+" ")+a).split(" ");if(k(e,"string")||void 0===e){var l=u,c=e,h=i,f=r;function d(){p&&(delete I.style,delete I.modElem)}if(f=void 0!==f&&f,void 0!==h){u=P(l,h);if(void 0!==u)return u}for(var p,m,g,v,y,w=["modernizr","tspan","samp"];!I.style&&w.length;)p=!0,I.modElem=O(w.shift()),I.style=I.modElem.style;for(g=l.length,m=0;m<g;m++)if(v=l[m],y=I.style[v],~(""+v).indexOf("-")&&(v=M(v)),I.style[v]!==T){if(f||void 0===h)return d(),"pfx"!=c||v;try{I.style[v]=h}catch(t){}if(I.style[v]!=y)return d(),"pfx"!=c||v}d()}else{var b=(t+" "+C.join(a+" ")+a).split(" "),_=e,x=n;for(s in b)if(b[s]in _)if(!1===x)return b[s];else{o=_[b[s]];if(k(o,"function")){var E=o;var S=x||_;return function(){return E.apply(S,arguments)};return}else return o}}return!1}function t(t,e,n){return i(t,T,T,e,n)}function a(t){var e,n=z.length,i=s.CSSRule;if(void 0===i)return T;if(t){if((e=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+t;for(var r=0;r<n;r++){var o=z[r];if(o.toUpperCase()+"_"+e in i)return"@-"+o.toLowerCase()+"-"+t}}return!1}var e,n,u,l,h,f,d,p,m,g,v=[],y=[],w={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){y.push({name:t,fn:e,options:n})},addAsyncTest:function(t){y.push({name:null,fn:t})}},b=function(){},_=(b.prototype=w,b=new b,c.documentElement),x="svg"===_.nodeName.toLowerCase(),E="Moz O ms Webkit",C=w._config.usePrefixes?E.toLowerCase().split(" "):[],L=(w._domPrefixes=C,w._config.usePrefixes?E.split(" "):[]),S=(w._cssomPrefixes=L,{elem:O("modernizr")}),I=(b._q.push(function(){delete S.elem}),{style:S.elem.style}),j=(b._q.unshift(function(){delete I.style}),w.testAllProps=i,w.testAllProps=t,b.addTest("flexbox",t("flexBasis","1px",!0)),w.testStyles=o),z=w._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""],E=(w._prefixes=z,b.addTest("touchevents",function(){var e,t;return"ontouchstart"in s||s.DocumentTouch&&c instanceof DocumentTouch?e=!0:(t=["@media (",z.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),j(t,function(t){e=9===t.offsetTop})),e}),w.atRule=a,w.prefixed=function(t,e,n){return 0===t.indexOf("@")?a(t):(-1!=t.indexOf("-")&&(t=M(t)),e?i(t,e,n):i(t,"pfx"))});for(d in b.addTest("objectfit",!!E("objectFit"),{aliases:["object-fit"]}),y)if(y.hasOwnProperty(d)){if(e=[],(n=y[d]).name&&(e.push(n.name.toLowerCase()),n.options)&&n.options.aliases&&n.options.aliases.length)for(u=0;u<n.options.aliases.length;u++)e.push(n.options.aliases[u].toLowerCase());for(l=k(n.fn,"function")?n.fn():n.fn,h=0;h<e.length;h++)1===(f=e[h].split(".")).length?b[f[0]]=l:(!b[f[0]]||b[f[0]]instanceof Boolean||(b[f[0]]=new Boolean(b[f[0]])),b[f[0]][f[1]]=l),v.push((l?"":"no-")+f.join("-"))}E=v,m=_.className,g=b._config.classPrefix||"",x&&(m=m.baseVal),b._config.enableJSClass&&(p=new RegExp("(^|\\s)"+g+"no-js(\\s|$)"),m=m.replace(p,"$1"+g+"js$2")),b._config.enableClasses&&(m+=" "+g+E.join(" "+g),x?_.className.baseVal=m:_.className=m),delete w.addTest,delete w.addAsyncTest;for(var F=0;F<b._q.length;F++)b._q[F]();s.Modernizr=b})(window,document),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Splitting=e()})(this,function(){var o=document,l=o.createTextNode.bind(o);function c(t,e,n){t.style.setProperty(e,n)}function h(t,e){return t.appendChild(e)}function f(t,e,n,i){var r=o.createElement("span");return e&&(r.className=e),n&&(i||r.setAttribute("data-"+e,n),r.textContent=n),t&&h(t,r)||r}function d(t,e){return t.getAttribute("data-"+e)}function p(t,e){return t&&0!=t.length?t.nodeName?[t]:[].slice.call(t[0].nodeName?t:(e||o).querySelectorAll(t)):[]}function s(t){for(var e=[];t--;)e[t]=[];return e}function m(t,e){t&&t.some(e)}function r(e){return function(t){return e[t]}}var a={};function t(t,e,n,i){return{by:t,depends:e,key:n,split:i}}function n(t){return function e(n,t,i){var r=i.indexOf(n);if(-1==r){i.unshift(n);var o=a[n];if(!o)throw new Error("plugin not loaded: "+n);m(o.depends,function(t){e(t,n,i)})}else o=i.indexOf(t),i.splice(r,1),i.splice(o,0,n);return i}(t,0,[]).map(r(a))}function e(t){a[t.by]=t}function g(t,n,i,r,o){t.normalize();var e,s=[],a=document.createDocumentFragment(),u=(r&&(e=t.previousSibling)&&1===e.nodeType&&s.push(e),[]);return p(t.childNodes).some(function(t){var e;t.tagName&&!t.hasChildNodes()?u.push(t):t.childNodes&&t.childNodes.length?(u.push(t),s.push.apply(s,g(t,n,i,r,o))):(e=(t=t.wholeText||"").trim()).length?(" "===t[0]&&u.push(l(" ")),m(""===i&&"function"==typeof Intl.Segmenter?Array.from((new Intl.Segmenter).segment(e)).map(function(t){return t.segment}):e.split(i),function(t,e){e&&o&&u.push(f(a,"whitespace"," ",o));e=f(a,n,t);s.push(e),u.push(e)})," "===t[t.length-1]&&u.push(l(" "))):0<t.length&&u.push(f(a,"whitespace"," ",!0))}),m(u,function(t){h(a,t)}),t.innerHTML="",h(t,a),s}var u="words",i=t(u,0,"word",function(t){return g(t,"word",/\s+/,0,1)}),v=t("chars",[u],"char",function(t,n,e){var i=[];return m(e[u],function(t,e){i.push.apply(i,g(t,"char","",n.whitespace&&e))}),i});function y(e){var l=(e=e||{}).key;return p(e.target||"[data-splitting]").map(function(s){var t,a,u=s["🍌"];return!e.force&&u||(u=s["🍌"]={el:s},t=n(t=(t=e.by||d(s,"splitting"))&&"true"!=t?t:"chars"),a=((t,e)=>{for(var n in e)t[n]=e[n];return t})({},e),m(t,function(t){var e,n,i,r,o;t.split&&(e=t.by,i=(l?"-"+l:"")+t.key,t=t.split(s,a,u),i&&(n=s,o=(i="--"+(i=i))+"-index",m(r=t,function(t,e){Array.isArray(t)?m(t,function(t){c(t,o,e)}):c(t,o,e)}),c(n,i+"-total",r.length)),u[e]=t,s.classList.add(e))}),s.classList.add("splitting")),u})}function w(t,e,n){var e=p(e.matching||t.children,t),i={};return m(e,function(t){var e=Math.round(t[n]);(i[e]||(i[e]=[])).push(t)}),Object.keys(i).map(Number).sort(b).map(r(i))}function b(t,e){return t-e}y.html=function(t){var e=(t=t||{}).target=f();return e.innerHTML=t.content,y(t),e.outerHTML};var _=t("lines",[u],"line",function(t,e,n){return w(t,{matching:n[u]},"offsetTop")}),x=t("items",0,"item",function(t,e){return p(e.matching||t.children,t)}),E=t("rows",0,"row",function(t,e){return w(t,e,"offsetTop")}),S=t("cols",0,"col",function(t,e){return w(t,e,"offsetLeft")}),T=t("grid",["rows","cols"]),k="layout",O=t(k,0,0,function(t,e){for(var n,i=e.rows=+(e.rows||d(t,"rows")||1),r=e.columns=+(e.columns||d(t,"columns")||1),o=(e.image=e.image||d(t,"image")||t.currentSrc||t.src,e.image&&(n=p("img",t)[0],e.image=n&&(n.currentSrc||n.src)),e.image&&c(t,"background-image","url("+e.image+")"),i*r),s=[],a=f(0,"cell-grid");o--;){var u=f(a,"cell");f(u,"cell-inner"),s.push(u)}return h(t,a),s}),M=t("cellRows",[k],"row",function(t,e,n){var i=e.rows,r=s(i);return m(n[k],function(t,e,n){r[Math.floor(e/(n.length/i))].push(t)}),r}),P=t("cellColumns",[k],"col",function(t,e,n){var i=e.columns,r=s(i);return m(n[k],function(t,e){r[e%i].push(t)}),r}),C=t("cells",["cellRows","cellColumns"],"cell",function(t,e,n){return n[k]});return(y.add=e)(i),e(v),e(_),e(x),e(E),e(S),e(T),e(O),e(M),e(P),e(C),y}),String.prototype.startsWith||(()=>{function t(t){if(null==this)throw TypeError();var e=String(this);if(t&&"[object RegExp]"==a.call(t))throw TypeError();var n=e.length,i=String(t),r=i.length,t=1<arguments.length?arguments[1]:void 0,t=t?Number(t):0,o=(t!=t&&(t=0),Math.min(Math.max(t,0),n));if(n<r+o)return!1;for(var s=-1;++s<r;)if(e.charCodeAt(o+s)!=i.charCodeAt(s))return!1;return!0}var e=(()=>{try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n})(),a={}.toString;e?e(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t})(),((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).Vimeo=t.Vimeo||{},t.Vimeo.Player=e())})(this,function(){function i(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(){S=function(){return s};var s={},t=Object.prototype,u=t.hasOwnProperty,l=Object.defineProperty||function(t,e,n){t[e]=n.value},e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function a(t,e,n,i){var r,o,s,a,e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),i=new _(i||[]);return l(e,"_invoke",{value:(r=t,o=n,s=i,a="suspendedStart",function(t,e){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===t)throw e;return E()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){n=function t(e,n){var i=n.method,r=e.iterator[i];return void 0===r?(n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h):"throw"===(i=c(r,e.iterator,n.arg)).type?(n.method="throw",n.arg=i.arg,n.delegate=null,h):(r=i.arg)?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}(n,s);if(n){if(n===h)continue;return n}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===a)throw a="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a="executing";n=c(r,o,s);if("normal"===n.type){if(a=s.done?"completed":"suspendedYield",n.arg===h)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(a="completed",s.method="throw",s.arg=n.arg)}})}),e}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}s.wrap=a;var h={};function f(){}function d(){}function p(){}var e={},m=(o(e,i,function(){return this}),Object.getPrototypeOf),m=m&&m(m(x([]))),g=(m&&m!==t&&u.call(m,i)&&(e=m),p.prototype=f.prototype=Object.create(e));function v(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function y(s,a){var e;l(this,"_invoke",{value:function(n,i){function t(){return new a(function(t,e){!function e(t,n,i,r){var o,t=c(s[t],s,n);return"throw"!==t.type?(n=(o=t.arg).value)&&"object"==typeof n&&u.call(n,"__await")?a.resolve(n.__await).then(function(t){e("next",t,i,r)},function(t){e("throw",t,i,r)}):a.resolve(n).then(function(t){o.value=t,i(o)},function(t){return e("throw",t,i,r)}):void r(t.arg)}(n,i,t,e)})}return e=e?e.then(t,t):t()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(e){if(e){var n,t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(u.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return l(g,"constructor",{value:d.prototype=p,configurable:!0}),l(p,"constructor",{value:d,configurable:!0}),d.displayName=o(p,r,"GeneratorFunction"),s.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,r,"GeneratorFunction")),t.prototype=Object.create(g),t},s.awrap=function(t){return{__await:t}},v(y.prototype),o(y.prototype,n,function(){return this}),s.AsyncIterator=y,s.async=function(t,e,n,i,r){void 0===r&&(r=Promise);var o=new y(a(t,e,n,i),r);return s.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},v(g),o(g,r,"Generator"),o(g,i,function(){return this}),o(g,"toString",function(){return"[object Generator]"}),s.keys=function(t){var e,n=Object(t),i=[];for(e in n)i.push(e);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},s.values=x,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var i=this;function t(t,e){return o.type="throw",o.arg=n,i.next=t,e&&(i.method="next",i.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e],o=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var s=u.call(r,"catchLoc"),a=u.call(r,"finallyLoc");if(s&&a){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&u.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}var o=(r=r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc?null:r)?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,i,r=this.tryEntries[e];if(r.tryLoc===t)return"throw"===(i=r.completion).type&&(n=i.arg,b(r)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},s}function l(t,e,n,i,r,o,s){try{var a=t[o](s),u=a.value}catch(t){return n(t)}a.done?e(u):Promise.resolve(u).then(i,r)}function f(a){return function(){var t=this,s=arguments;return new Promise(function(e,n){var i=a.apply(t,s);function r(t){l(i,e,n,r,o,"next",t)}function o(t){l(i,e,n,r,o,"throw",t)}r(void 0)})}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,q(i.key),i)}}function N(t,e,n){e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1})}function h(t,e,n){(e=q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function A(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function R(t,e,n){return(R=A()?Reflect.construct.bind():function(t,e,n){var i=[null],e=(i.push.apply(i,e),new(Function.bind.apply(t,i)));return n&&d(e,n.prototype),e}).apply(null,arguments)}function W(t){var n="function"==typeof Map?new Map:void 0;return function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return R(t,arguments,o(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),d(e,t)}(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D(i){var r=A();return function(){var t=o(i),e=this,n=r?(n=o(this).constructor,Reflect.construct(t,arguments,n)):t.apply(this,arguments);if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}}function q(t){t=(t=>{if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0===e)return String(t);if("object"!=typeof(e=e.call(t,"string")))return e;throw new TypeError("@@toPrimitive must return a primitive value.")})(t);return"symbol"==typeof t?t:String(t)}var H="undefined"!=typeof global&&"[object global]"==={}.toString.call(global);function B(t,e){return 0===t.indexOf(e.toLowerCase())?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function m(t){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(t)}function V(t){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(t)}function Y(t){var e,t=0<arguments.length&&void 0!==t?t:{},n=t.id,t=n||t.url;if(!t)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(e=t,!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e)return"https://vimeo.com/".concat(t);if(m(t))return t.replace("http:","https:");if(n)throw new TypeError("“".concat(n,"” is not a valid video id."));throw new TypeError("“".concat(t,"” is not a vimeo.com url."))}function Q(e,t,n,i,r){var o=3<arguments.length&&void 0!==i?i:"addEventListener",s=4<arguments.length&&void 0!==r?r:"removeEventListener",a="string"==typeof t?[t]:t;return a.forEach(function(t){e[o](t,n)}),{cancel:function(){return a.forEach(function(t){return e[s](t,n)})}}}var t=void 0!==Array.prototype.indexOf,e="undefined"!=typeof window&&void 0!==window.postMessage;if(!(H||t&&e))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var U,X,s,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(s(this,"_id","_WeakMap_"+$()+"."+$()),0<arguments.length)throw new TypeError("WeakMap iterable is not supported")}function a(t,e){if(!g(t)||!U.call(t,"_id"))throw new TypeError(e+" method called on incompatible receiver "+typeof t)}function $(){return Math.random().toString().substring(2)}function g(t){return Object(t)===t}(e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t).WeakMap||(U=Object.prototype.hasOwnProperty,X=Object.defineProperty&&(()=>{try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(t){}})(),e.WeakMap=((s=function(t,e,n){X?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:n}):t[e]=n})(n.prototype,"delete",function(t){var e;return a(this,"delete"),!!g(t)&&!(!(e=t[this._id])||e[0]!==t||(delete t[this._id],0))}),s(n.prototype,"get",function(t){var e;return a(this,"get"),g(t)&&(e=t[this._id])&&e[0]===t?e[1]:void 0}),s(n.prototype,"has",function(t){var e;return a(this,"has"),!!g(t)&&!(!(e=t[this._id])||e[0]!==t)}),s(n.prototype,"set",function(t,e){var n;if(a(this,"set"),g(t))return(n=t[this._id])&&n[0]===t?n[1]=e:s(t,this._id,[t,e]),this;throw new TypeError("Invalid value used as weak map key")}),s(n,"_polyfill",!0),n));v=e={exports:{}},(t=t)[y="Promise"]=t[y]||function(){var t,n,i,r,o,s,a=Object.prototype.toString,u="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,n,i){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==i})}}catch(a){t=function(t,e,n){return t[e]=n,t}}function l(t,e){this.fn=t,this.self=e,this.next=void 0}function c(t,e){i.add(t,e),n=n||u(i.drain)}function h(t){var e,n=typeof t;return"function"==typeof(e=null==t||"object"!=n&&"function"!=n?e:t.then)&&e}function f(){for(var t,e,n=0;n<this.chain.length;n++){i=void 0;r=void 0;o=void 0;t=void 0;e=void 0;var i=this;var r=1===this.state?this.chain[n].success:this.chain[n].failure;var o=this.chain[n];try{!1===r?o.reject(i.msg):(t=!0===r?i.msg:r.call(void 0,i.msg))===o.promise?o.reject(TypeError("Promise-chain cycle")):(e=h(t))?e.call(t,o.resolve,o.reject):o.resolve(t)}catch(i){o.reject(i)}}this.chain.length=0}function d(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=h(t))?c(function(){var e=new g(i);try{n.call(t,function(){d.apply(e,arguments)},function(){p.apply(e,arguments)})}catch(t){p.call(e,t)}}):(i.msg=t,i.state=1,0<i.chain.length&&c(f,i))}catch(t){p.call(new g(i),t)}}}function p(t){var e=this;e.triggered||(e.triggered=!0,(e=e.def?e.def:e).msg=t,e.state=2,0<e.chain.length&&c(f,e))}function m(t,n,i,r){for(var e=0;e<n.length;e++)(e=>{t.resolve(n[e]).then(function(t){i(e,t)},r)})(e)}function g(t){this.def=t,this.triggered=!1}function e(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function v(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var i=new e(this);this.then=function(t,e){var n={success:"function"!=typeof t||t,failure:"function"==typeof e&&e};return n.promise=new this.constructor(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");n.resolve=t,n.reject=e}),i.chain.push(n),0!==i.state&&c(f,i),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,function(t){d.call(i,t)},function(t){p.call(i,t)})}catch(t){p.call(i,t)}}var y=t({},"constructor",v,!(i={add:function(t,e){s=new l(t,e),o?o.next=s:r=s,o=s},drain:function(){var t=r;for(r=o=n=void 0;t;)t.fn.call(t.self),t=t.next}}));return t(v.prototype=y,"__NPO__",0,!1),t(v,"resolve",function(n){return n&&"object"==typeof n&&1===n.__NPO__?n:new this(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");t(n)})}),t(v,"reject",function(n){return new this(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");e(n)})}),t(v,"all",function(e){var s=this;return"[object Array]"!=a.call(e)?s.reject(TypeError("Not an array")):0===e.length?s.resolve([]):new s(function(n,t){if("function"!=typeof n||"function"!=typeof t)throw TypeError("Not a function");var i=e.length,r=Array(i),o=0;m(s,e,function(t,e){r[t]=e,++o===i&&n(r)},t)})}),t(v,"race",function(e){var i=this;return"[object Array]"!=a.call(e)?i.reject(TypeError("Not an array")):new i(function(n,t){if("function"!=typeof n||"function"!=typeof t)throw TypeError("Not a function");m(i,e,function(t,e){n(e)},t)})}),v}(),v.exports&&(v.exports=t[y]);var v,y,w=e.exports,b=new WeakMap;function _(t,e,n){var i=b.get(t.element)||{};e in i||(i[e]=[]),i[e].push(n),b.set(t.element,i)}function x(t,e){return(b.get(t.element)||{})[e]||[]}function E(t,e,n){var i=b.get(t.element)||{};return!i[e]||(n?(-1!==(n=i[e].indexOf(n))&&i[e].splice(n,1),b.set(t.element,i),i[e]&&0===i[e].length):(i[e]=[],b.set(t.element,i),1))}function T(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return{}}return t}function k(t,e,n){t.element.contentWindow&&t.element.contentWindow.postMessage&&(e={method:e},void 0!==n&&(e.value=n),8<=(n=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1")))&&n<10&&(e=JSON.stringify(e)),t.element.contentWindow.postMessage(e,t.origin))}var G=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function J(i,t){return G.reduce(function(t,e){var n=i.getAttribute("data-vimeo-".concat(e));return!n&&""!==n||(t[e]=""===n?1:n),t},1<arguments.length&&void 0!==t?t:{})}function O(t,e){var n,t=t.html;if(e)return null===e.getAttribute("data-vimeo-initialized")&&((n=document.createElement("div")).innerHTML=t,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true")),e.querySelector("iframe");throw new TypeError("An element must be provided")}function Z(s,t,e){var a=1<arguments.length&&void 0!==t?t:{},u=2<arguments.length?e:void 0;return new Promise(function(e,n){if(!m(s))throw new TypeError("“".concat(s,"” is not a vimeo.com url."));var t,i=(()=>{for(var t=(s||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),e=(t&&t[1]||"").replace("player.",""),n=0,i=[".videoji.hk",".vimeo.work",".videoji.cn"];n<i.length;n++)if(e.endsWith(i[n]))return e;return"vimeo.com"})(),r="https://".concat(i,"/api/oembed.json?url=").concat(encodeURIComponent(s));for(t in a)a.hasOwnProperty(t)&&(r+="&".concat(t,"=").concat(encodeURIComponent(a[t])));var o=new("XDomainRequest"in window?XDomainRequest:XMLHttpRequest);o.open("GET",r,!0),o.onload=function(){if(404!==o.status)if(403!==o.status)try{var t=JSON.parse(o.responseText);403===t.domain_status_code?(O(t,u),n(new Error("“".concat(s,"” is not embeddable.")))):e(t)}catch(t){n(t)}else n(new Error("“".concat(s,"” is not embeddable.")));else n(new Error("“".concat(s,"” was not found.")))},o.onerror=function(){var t=o.status?" (".concat(o.status,")"):"";n(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},o.send()})}var M,P,C,K,tt={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},et=(()=>{var t=a,e=W(EventTarget);if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var i,n,r,s=D(a);function a(t,e){var r,n,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=3<arguments.length?arguments[3]:void 0;return c(this,a),h(p(r=s.call(this)),"logger",void 0),h(p(r),"speedAdjustment",0),h(p(r),"adjustSpeed",(n=f(S().mark(function t(e,n){var i;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.speedAdjustment===n)return t.abrupt("return");t.next=2;break;case 2:return t.next=4,e.getPlaybackRate();case 4:return t.t0=t.sent,t.t1=r.speedAdjustment,t.t2=t.t0-t.t1,t.t3=n,i=t.t2+t.t3,r.log("New playbackRate:  ".concat(i)),t.next=12,e.setPlaybackRate(i);case 12:r.speedAdjustment=n;case 13:case"end":return t.stop()}},t)})),function(t,e){return n.apply(this,arguments)})),r.logger=o,r.init(e,t,u(u({},tt),i)),r}return N(a,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(r=f(S().mark(function t(e,n,i){var r,o,s,a=this;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.waitForTOReadyState(e,"open");case 2:if("viewer"===i.role)return t.next=5,this.updatePlayer(e,n,i);t.next=10;break;case 5:r=Q(e,"change",function(){return a.updatePlayer(e,n,i)}),o=this.maintainPlaybackPosition(e,n,i),this.addEventListener("disconnect",function(){o.cancel(),r.cancel()}),t.next=14;break;case 10:return t.next=12,this.updateTimingObject(e,n);case 12:s=Q(n,["seeked","play","pause","ratechange"],function(){return a.updateTimingObject(e,n)},"on","off"),this.addEventListener("disconnect",function(){return s.cancel()});case 14:case"end":return t.stop()}},t,this)})),function(t,e,n){return r.apply(this,arguments)})},{key:"updateTimingObject",value:(n=f(S().mark(function t(e,n){return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,n.getCurrentTime();case 3:return t.t1=t.sent,t.next=6,n.getPaused();case 6:t.sent?(t.t2=0,t.next=13):t.next=10;break;case 10:return t.next=12,n.getPlaybackRate();case 12:t.t2=t.sent;case 13:t.t3=t.t2,t.t4={position:t.t1,velocity:t.t3},t.t0.update.call(t.t0,t.t4);case 16:case"end":return t.stop()}},t)})),function(t,e){return n.apply(this,arguments)})},{key:"updatePlayer",value:(i=f(S().mark(function t(e,n,i){var r,o;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.query(),r=o.position,o=o.velocity,"number"==typeof r&&n.setCurrentTime(r),"number"!=typeof o)t.next=25;else{if(0===o)return t.next=6,n.getPaused();t.next=11}break;case 6:if(t.t0=t.sent,!1!==t.t0){t.next=9;break}n.pause();case 9:t.next=25;break;case 11:if(0<o)return t.next=14,n.getPaused();t.next=25;break;case 14:if(t.t1=t.sent,!0===t.t1)return t.next=18,n.play().catch((()=>{var e=f(S().mark(function t(e){return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("NotAllowedError"===e.name&&i.autoPlayMuted)return t.next=3,n.setMuted(!0);t.next=5;break;case 3:return t.next=5,n.play().catch(function(t){});case 5:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}})());t.next=19;break;case 18:this.updatePlayer(e,n,i);case 19:return t.next=21,n.getPlaybackRate();case 21:if(t.t2=t.sent,t.t3=o,t.t2===t.t3){t.next=25;break}n.setPlaybackRate(o);case 25:case"end":return t.stop()}},t,this)})),function(t,e,n){return i.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(o,s,t){var e,a=this,u=t.allowedDrift,l=t.maxAllowedDrift,c=t.maxRateAdjustment,h=t.maxTimeToCatchUp,t=1e3*Math.min(h,Math.max(t.minCheckInterval,l)),n=(e=f(S().mark(function t(){var e,n,i,r;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=0===o.query().velocity,t.t0){t.next=6;break}return t.next=4,s.getPaused();case 4:t.t1=t.sent,t.t0=!0===t.t1;case 6:if(t.t0)return t.abrupt("return");t.next=8;break;case 8:return t.t2=o.query().position,t.next=11,s.getCurrentTime();case 11:if(t.t3=t.sent,e=t.t2-t.t3,n=Math.abs(e),a.log("Drift: ".concat(e)),l<n)return t.next=18,a.adjustSpeed(s,0);t.next=22;break;case 18:s.setCurrentTime(o.query().position),a.log("Resync by currentTime"),t.next=29;break;case 22:if(u<n)return r=(r=n/h)<(i=c)?(i-r)/2:i,t.next=28,a.adjustSpeed(s,r*Math.sign(e));t.next=29;break;case 28:a.log("Resync by playbackRate");case 29:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)}),i=setInterval(function(){return n()},t);return{cancel:function(){return clearInterval(i)}}}},{key:"log",value:function(t){var e;null!=(e=this.logger)&&e.call(this,"TimingSrcConnector: ".concat(t))}},{key:"waitForTOReadyState",value:function(n,i){return new Promise(function(e){!function t(){n.readyState===i?e():n.addEventListener("readystatechange",t,{once:!0})}()})}}]),a})(),L=new WeakMap,I=new WeakMap,j={},z=(N(F,[{key:"callMethod",value:function(n){for(var i=this,t=arguments.length,r=new Array(1<t?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if(null==n)throw new TypeError("You must pass a method name.");return new w(function(t,e){return i.ready().then(function(){_(i,n,{resolve:t,reject:e}),k(i,n,r)}).catch(e)})}},{key:"get",value:function(n){var i=this;return new w(function(t,e){return n=B(n,"get"),i.ready().then(function(){_(i,n,{resolve:t,reject:e}),k(i,n)}).catch(e)})}},{key:"set",value:function(n,i){var r=this;return new w(function(t,e){if(n=B(n,"set"),null==i)throw new TypeError("There must be a value to set.");return r.ready().then(function(){_(r,n,{resolve:t,reject:e}),k(r,n,i)}).catch(e)})}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===x(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch(function(){}),_(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");E(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch(function(t){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=I.get(this)||new w(function(t,e){e(new Error("Unknown player. Probably unloaded."))});return w.resolve(t)}},{key:"addCuePoint",value:function(t,e){return this.callMethod("addCuePoint",{time:t,data:1<arguments.length&&void 0!==e?e:{}})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(t)return this.callMethod("enableTextTrack",{language:t,kind:e});throw new TypeError("You must pass a language.")}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return j.isEnabled?j.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return j.isEnabled?j.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return j.isEnabled?w.resolve(j.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var n=this;return new w(function(t){var e;I.delete(n),L.delete(n.element),n._originalElement&&(L.delete(n._originalElement),n._originalElement.removeAttribute("data-vimeo-initialized")),n.element&&"IFRAME"===n.element.nodeName&&n.element.parentNode&&(n.element.parentNode.parentNode&&n._originalElement&&n._originalElement!==n.element.parentNode?n.element.parentNode.parentNode.removeChild(n.element.parentNode):n.element.parentNode.removeChild(n.element)),n.element&&"DIV"===n.element.nodeName&&n.element.parentNode&&(n.element.removeAttribute("data-vimeo-initialized"),e=n.element.querySelector("iframe"))&&e.parentNode&&(e.parentNode.parentNode&&n._originalElement&&n._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e)),n._window.removeEventListener("message",n._onMessage),j.isEnabled&&j.off("fullscreenchange",n.fullscreenchangeHandler),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return w.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){var e;return Array.isArray(t)?(e=new w(function(t){return t(null)}),t=[t[0]?this.set("colorOne",t[0]):e,t[1]?this.set("colorTwo",t[1]):e,t[2]?this.set("colorThree",t[2]):e,t[3]?this.set("colorFour",t[3]):e],w.all(t)):new w(function(t,e){return e(new TypeError("Argument must be an array."))})}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(K=f(S().mark(function t(e,n){var i,r=this;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return t.next=4,this.ready();case 4:return i=new et(this,e,n),k(this,"notifyTimingObjectConnect"),i.addEventListener("disconnect",function(){return k(r,"notifyTimingObjectDisconnect")}),t.abrupt("return",i);case 8:case"end":return t.stop()}},t,this)})),function(t,e){return K.apply(this,arguments)})}]),F);function F(r){var l=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(c(this,F),window.jQuery&&r instanceof jQuery&&(1<r.length&&window.console&&console.warn,r=r[0]),n=r="undefined"!=typeof document&&"string"==typeof r?document.getElementById(r):r,!Boolean(n&&1===n.nodeType&&"nodeName"in n&&n.ownerDocument&&n.ownerDocument.defaultView))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"===(r="IFRAME"!==r.nodeName&&(n=r.querySelector("iframe"))?n:r).nodeName&&!m(r.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(L.has(r))return L.get(r);this._window=r.ownerDocument.defaultView,this.element=r,this.origin="*";var t,n=new w(function(a,u){var t;l._onMessage=function(t){var n,i,e,r,o,s;m(t.origin)&&l.element.contentWindow===t.source&&("*"===l.origin&&(l.origin=t.origin),(t=T(t.data))&&"error"===t.event&&t.data&&"ready"===t.data.method?((s=new Error(t.data.message)).name=t.data.name,u(s)):(s=t&&"ready"===t.event,r=t&&"ping"===t.method,s||r?(l.element.setAttribute("data-ready","true"),a()):(n=l,s=[],(i=T(i=t)).event?("error"===i.event&&x(n,i.data.method).forEach(function(t){var e=new Error(i.data.message);e.name=i.data.name,t.reject(e),E(n,i.data.method,t)}),s=x(n,"event:".concat(i.event)),e=i.data):i.method&&(r=n,t=i.method,t=!((o=x(r,t)).length<1)&&(E(r,t,r=o.shift()),r))&&(s.push(t),e=i.value),s.forEach(function(t){try{"function"==typeof t?t.call(n,e):t.resolve(e)}catch(t){}}))))},l._window.addEventListener("message",l._onMessage),"IFRAME"!==l.element.nodeName&&Z(Y(t=J(r,e)),t,r).then(function(t){var e,n,i=O(t,r);return l.element=i,e=l._originalElement=r,i=i,n=b.get(e),b.set(i,n),b.delete(e),L.set(l.element,l),t}).catch(u)});return I.set(this,n),L.set(this.element,this),"IFRAME"===this.element.nodeName&&k(this,"ping"),j.isEnabled&&(t=function(){return j.exit()},this.fullscreenchangeHandler=function(){(j.isFullscreen?_:E)(l,"event:exitFullscreen",t),l.ready().then(function(){k(l,"fullscreenchange",j.isFullscreen)})},j.on("fullscreenchange",this.fullscreenchangeHandler)),this}return H||(M=(()=>{for(var t,e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=e.length,r={};n<i;n++)if((t=e[n])&&t[1]in document){for(n=0;n<t.length;n++)r[e[0][n]]=t[n];return r}return!1})(),P={fullscreenchange:M.fullscreenchange,fullscreenerror:M.fullscreenerror},C={request:function(r){return new Promise(function(t,e){function n(){C.off("fullscreenchange",n),t()}C.on("fullscreenchange",n);var i=(r=r||document.documentElement)[M.requestFullscreen]();i instanceof Promise&&i.then(n).catch(e)})},exit:function(){return new Promise(function(e,t){var n,i;C.isFullscreen?(C.on("fullscreenchange",n=function t(){C.off("fullscreenchange",t),e()}),(i=document[M.exitFullscreen]())instanceof Promise&&i.then(n).catch(t)):e()})},on:function(t,e){t=P[t];t&&document.addEventListener(t,e)},off:function(t,e){t=P[t];t&&document.removeEventListener(t,e)}},Object.defineProperties(C,{isFullscreen:{get:function(){return Boolean(document[M.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[M.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[M.fullscreenEnabled])}}}),j=C,function(){function n(t){"console"in window&&console.error}var t=document;[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")).forEach(function(e){try{var t;null===e.getAttribute("data-vimeo-defer")&&Z(Y(t=J(e)),t,e).then(function(t){return O(t,e)}).catch(n)}catch(t){n()}})}(),function(){var i=document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(m(t.origin)&&t.data&&"spacechange"===t.data.event)for(var e=i.querySelectorAll("iframe"),n=0;n<e.length;n++)if(e[n].contentWindow===t.source){e[n].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}))}(),function(){var s=document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(m(t.origin)){var e=T(t.data);if(e&&"ready"===e.event)for(var n=s.querySelectorAll("iframe"),i=0;i<n.length;i++){var r=n[i],o=r.contentWindow===t.source;V(r.src)&&o&&new z(r).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function(){var s,e=document;window.VimeoCheckedUrlTimeParam||(window.VimeoCheckedUrlTimeParam=!0,s=function(t){"console"in window&&console.error},window.addEventListener("message",function(i){if(m(i.origin)){var t=T(i.data);if(t&&"ready"===t.event)for(var r=e.querySelectorAll("iframe"),o=0;o<r.length;o++)(()=>{var e,t=r[o],n=t.contentWindow===i.source;V(t.src)&&n&&(e=new z(t)).getVideoId().then(function(t){var t=new RegExp("[?&]vimeo_t_".concat(t,"=([^&#]*)")).exec(window.location.href);t&&t[1]&&(t=decodeURI(t[1]),e.setCurrentTime(t))}).catch(s)})()}}))}()),z}),(()=>{function N(t,e,n){return t.call.apply(t.bind,arguments)}function A(e,n,t){var i;if(e)return 2<arguments.length?(i=Array.prototype.slice.call(arguments,2),function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,i),e.apply(n,t)}):function(){return e.apply(n,arguments)};throw Error()}function d(t,e,n){return(d=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?N:A).apply(null,arguments)}var a=Date.now||function(){return+new Date};function R(t,e){this.a=t,this.m=e||t,this.c=this.m.document}var W=!!window.FontFace;function u(t,e,n,i){if(e=t.c.createElement(e),n)for(var r in n)n.hasOwnProperty(r)&&("style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return i&&e.appendChild(t.c.createTextNode(i)),e}function l(t,e,n){(t=(t=t.c.getElementsByTagName(e)[0])||document.documentElement).insertBefore(n,t.lastChild)}function n(t){t.parentNode&&t.parentNode.removeChild(t)}function p(t,e,n){e=e||[],n=n||[];for(var i=t.className.split(/\s+/),r=0;r<e.length;r+=1){for(var o=!1,s=0;s<i.length;s+=1)if(e[r]===i[s]){o=!0;break}o||i.push(e[r])}for(e=[],r=0;r<i.length;r+=1){for(o=!1,s=0;s<n.length;s+=1)if(i[r]===n[s]){o=!0;break}o||e.push(i[r])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function o(t,e){for(var n=t.className.split(/\s+/),i=0,r=n.length;i<r;i++)if(n[i]==e)return!0;return!1}function S(t){var e;return"string"==typeof t.f?t.f:"https:"==(e="about:"==(e=t.m.location.protocol)?t.a.location.protocol:e)?"https:":"http:"}function T(t,e,n){function i(){s&&r&&(s(o),s=null)}e=u(t,"link",{rel:"stylesheet",href:e,media:"all"});var r=!1,o=null,s=n||null;W?(e.onload=function(){r=!0,i()},e.onerror=function(){r=!0,o=Error("Stylesheet failed to load"),i()}):setTimeout(function(){r=!0,i()},0),l(t,"head",e)}function i(t,e,n,i){var r,o,s=t.c.getElementsByTagName("head")[0];return s?(r=u(t,"script",{src:e}),o=!1,r.onload=r.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,n&&n(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&s.removeChild(r))},s.appendChild(r),setTimeout(function(){o||(o=!0,n&&n(Error("Script load timeout")))},i||5e3),r):null}function k(){this.a=0,this.c=null}function O(t){return t.a++,function(){t.a--,r(t)}}function M(t,e){t.c=e,r(t)}function r(t){0==t.a&&t.c&&(t.c(),t.c=null)}function s(t){this.a=t||"-"}function P(t,e){this.c=t,this.f=4,this.a="n";t=(e||"n4").match(/^([nio])([1-9])$/i);t&&(this.a=t[1],this.f=parseInt(t[2],10))}function c(t){var e=[];t=t.split(/,\s*/);for(var n=0;n<t.length;n++){var i=t[n].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?e.push("'"+i+"'"):e.push(i)}return e.join(",")}function m(t){return t.a+t.f}function h(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function D(t,e){this.c=t,this.f=t.m.document.documentElement,this.h=e,this.a=new s("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function g(t){var e,n,i;t.g&&(e=o(t.f,t.a.c("wf","active")),n=[],i=[t.a.c("wf","loading")],e||n.push(t.a.c("wf","inactive")),p(t.f,n,i)),v(t,"inactive")}function v(t,e,n){t.j&&t.h[e]&&(n?t.h[e](n.c,m(n)):t.h[e]())}function q(){this.c={}}function f(t,e){this.c=t,this.f=e,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function y(t){l(t.c,"body",t.a)}function w(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+c(t.c)+";font-style:"+h(t)+";font-weight:"+t.f+"00;"}function b(t,e,n,i,r,o){this.g=t,this.j=e,this.a=i,this.c=n,this.f=r||3e3,this.h=o||void 0}function _(t,e,n,i,r,o,s){this.v=t,this.B=e,this.c=n,this.a=i,this.s=s||"BESbswy",this.f={},this.w=r||3e3,this.u=o||null,this.o=this.j=this.h=this.g=null,this.g=new f(this.c,this.s),this.h=new f(this.c,this.s),this.j=new f(this.c,this.s),this.o=new f(this.c,this.s),t=w(t=new P(this.a.c+",serif",m(this.a))),this.g.a.style.cssText=t,t=w(t=new P(this.a.c+",sans-serif",m(this.a))),this.h.a.style.cssText=t,t=w(t=new P("serif",m(this.a))),this.j.a.style.cssText=t,t=w(t=new P("sans-serif",m(this.a))),this.o.a.style.cssText=t,y(this.g),y(this.h),y(this.j),y(this.o)}s.prototype.c=function(t){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},b.prototype.start=function(){var r=this.c.m.document,o=this,s=a(),t=new Promise(function(n,i){!function e(){var t;a()-s>=o.f?i():r.fonts.load(h(t=o.a)+" "+t.f+"00 300px "+c(t.c),o.h).then(function(t){1<=t.length?n():setTimeout(e,25)},function(){i()})}()}),e=new Promise(function(t,e){setTimeout(e,o.f)});Promise.race([e,t]).then(function(){o.g(o.a)},function(){o.j(o.a)})};var x={D:"serif",C:"sans-serif"},e=null;function E(){var t;return null===e&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),e=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)),e}function C(t,e,n){for(var i in x)if(x.hasOwnProperty(i)&&e===t.f[x[i]]&&n===t.f[x[i]])return!0;return!1}function L(t){var e=t.g.a.offsetWidth,n=t.h.a.offsetWidth;e===t.f.serif&&n===t.f["sans-serif"]||E()&&C(t,e,n)?a()-t.A>=t.w?E()&&C(t,e,n)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):setTimeout(d(function(){L(this)},t),50):I(t,t.v)}function I(t,e){setTimeout(d(function(){n(this.g.a),n(this.h.a),n(this.j.a),n(this.o.a),e(this.a)},t),0)}function j(t,e,n){this.c=t,this.a=e,this.f=0,this.o=this.j=!1,this.s=n}_.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=a(),L(this)};var z=null;function H(t){0==--t.f&&t.j&&(t.o?((t=t.a).g&&p(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),v(t,"active")):g(t.a))}function B(t){this.j=t,this.a=new q,this.h=0,this.f=this.g=!0}function V(t,e){this.c=t,this.a=e}function Y(t,e){this.c=t,this.a=e}function Q(t,e,n){this.c=t||e+"//fonts.googleapis.com/css",this.a=[],this.f=[],this.g=n||""}function U(t){this.f=t,this.a=[],this.c={}}j.prototype.g=function(t){var e=this.a;e.g&&p(e.f,[e.a.c("wf",t.c,m(t).toString(),"active")],[e.a.c("wf",t.c,m(t).toString(),"loading"),e.a.c("wf",t.c,m(t).toString(),"inactive")]),v(e,"fontactive",t),this.o=!0,H(this)},j.prototype.h=function(t){var e,n,i,r=this.a;r.g&&(e=o(r.f,r.a.c("wf",t.c,m(t).toString(),"active")),n=[],i=[r.a.c("wf",t.c,m(t).toString(),"loading")],e||n.push(r.a.c("wf",t.c,m(t).toString(),"inactive")),p(r.f,n,i)),v(r,"fontinactive",t),H(this)},B.prototype.load=function(t){this.c=new R(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes;var i=this,e=new D(this.c,t),n=t,r=[],t=n.timeout,r=((t=>{t.g&&p(t.f,[t.a.c("wf","loading")]),v(t,"loading")})(e),((t,e,n)=>{var i,r,o=[];for(i in e)e.hasOwnProperty(i)&&(r=t.c[i])&&o.push(r(e[i],n));return o})(i.a,n,i.c)),o=new j(i.c,e,t);for(i.h=r.length,e=0,n=r.length;e<n;e++)r[e].load(function(t,e,n){var u,l,c,h,f;u=o,l=t,c=e,h=n,f=0==--(t=i).h,(t.f||t.g)&&setTimeout(function(){var t=h||null,e=c||{};if(0===l.length&&f)g(u.a);else{u.f+=l.length,f&&(u.j=f);for(var n=[],i=0;i<l.length;i++){var r=l[i],o=e[r.c],s=u.a,a=r;s.g&&p(s.f,[s.a.c("wf",a.c,m(a).toString(),"loading")]),v(s,"fontloading",a),s=(z=(s=null)===z?!!window.FontFace&&(!(a=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(a[1],10)):z)?new b(d(u.g,u),d(u.h,u),u.c,r,u.s,o):new _(d(u.g,u),d(u.h,u),u.c,r,u.s,t,o),n.push(s)}for(i=0;i<n.length;i++)n[i].start()}},0)})},V.prototype.load=function(s){var a,t,e,u=this.a.projectId,n=this.a.version;u?(a=this.c.m,i(this.c,(e=u,n=n,S((t=this).c)+"//"+(t=(t.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,""))+"/"+e+".js"+(n?"?v="+n:"")),function(t){t?s([]):function t(){if(a["__mti_fntLst"+u]){var e,n=a["__mti_fntLst"+u](),i=[];if(n)for(var r=0;r<n.length;r++){var o=n[r].fontfamily;null!=n[r].fontStyle&&null!=n[r].fontWeight?(e=n[r].fontStyle+n[r].fontWeight,i.push(new P(o,e))):i.push(new P(o))}s(i)}else setTimeout(function(){t()},50)}()}).id="__MonotypeAPIScript__"+u):s([])},Y.prototype.load=function(t){for(var e=this.a.urls||[],n=this.a.families||[],i=this.a.testStrings||{},r=new k,o=0,s=e.length;o<s;o++)T(this.c,e[o],O(r));var a=[];for(o=0,s=n.length;o<s;o++)if((e=n[o].split(":"))[1])for(var u=e[1].split(","),l=0;l<u.length;l+=1)a.push(new P(e[0],u[l]));else a.push(new P(e[0]));M(r,function(){t(a,i)})};var X={latin:"BESbswy",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},$={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},G={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Z(t,e){this.c=t,this.a=e}var K={Arimo:!0,Cousine:!0,Tinos:!0};function tt(t,e){this.c=t,this.a=e}function et(t,e){this.c=t,this.f=e,this.a=[]}Z.prototype.load=function(t){for(var e=new k,n=this.c,i=new Q(this.a.api,S(n),this.a.text),r=this.a.families,o=i,s=r,a=s.length,u=0;u<a;u++){var l=s[u].split(":"),c=(3==l.length&&o.f.push(l.pop()),"");2==l.length&&""!=l[1]&&(c=":"),o.a.push(l.join(c))}for(var h=new U(r),f=h,d=f.f.length,p=0;p<d;p++){var m=f.f[p].split(":"),g=m[0].replace(/\+/g," "),v=["n4"];if(2<=m.length){var y,w,b=m[1],_=[];if(b)for(var x=(b=b.split(",")).length,E=0;E<x;E++)(w=!(w=b[E]).match(/^[\w-]+$/)||null==(y=J.exec(w.toLowerCase()))?"":[w=null==(w=y[2])||""==w?"n":G[w],y=null==(y=y[1])||""==y?"4":$[y]||(isNaN(y)?"4":y.substr(0,1))].join(""))&&_.push(w);0<_.length&&(v=_),3==m.length&&(_=[],0<(m=(m=m[2])?m.split(","):_).length)&&(m=X[m[0]])&&(f.c[g]=m)}for(f.c[g]||(m=X[g])&&(f.c[g]=m),m=0;m<v.length;m+=1)f.a.push(new P(g,v[m]))}T(n,(t=>{if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],i=0;i<e;i++)n.push(t.a[i].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e})(i),O(e)),M(e,function(){t(h.a,h.c,K)})},tt.prototype.load=function(s){var t=this.a.id,a=this.c.m;t?i(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)s([]);else if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){t=a.Typekit.config.fn;for(var e=[],n=0;n<t.length;n+=2)for(var i=t[n],r=t[n+1],o=0;o<r.length;o++)e.push(new P(i,r[o]));try{a.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}s(e)}},2e3):s([])},et.prototype.load=function(u){var t=this.f.id,e=this.c.m,l=this;t?(e.__webfontfontdeckmodule__||(e.__webfontfontdeckmodule__={}),e.__webfontfontdeckmodule__[t]=function(t,e){for(var n,i,r,o=0,s=e.fonts.length;o<s;++o){var a=e.fonts[o];l.a.push(new P(a.name,(r=i=n=void 0,n=4,i="n",r=null,(a="font-weight:"+a.weight+";font-style:"+a.style)&&((r=a.match(/(normal|oblique|italic)/i))&&r[1]&&(i=r[1].substr(0,1).toLowerCase()),r=a.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?n=7:/[1-9]00/.test(r[1])&&(n=parseInt(r[1].substr(0,1),10))),i+n)))}u(l.a)},i(this.c,S(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+((e=this.c).m.location.hostname||e.a.location.hostname)+"/"+t+".js",function(t){t&&u([])})):u([])};var t=new B(window),F=(t.a.c.custom=function(t,e){return new Y(e,t)},t.a.c.fontdeck=function(t,e){return new et(e,t)},t.a.c.monotype=function(t,e){return new V(e,t)},t.a.c.typekit=function(t,e){return new tt(e,t)},t.a.c.google=function(t,e){return new Z(e,t)},{load:d(t.load,t)});"function"==typeof define&&define.amd?define(function(){return F}):"undefined"!=typeof module&&module.exports?module.exports=F:(window.WebFont=F,window.WebFontConfig&&t.load(window.WebFontConfig))})(),((s,t)=>{var a,u,e,n,i,l,r,o,c,h,f,d,p,m,g,v,y,w,b,_,x;"function"==typeof s.createEvent&&(r=function(t){var e=t.toLowerCase();return navigator.msPointerEnabled?"MS"+t:!!window.PointerEvent&&e},i=function(t){return"on"+t in window&&t},a={useJquery:!t.IGNORE_JQUERY&&"undefined"!=typeof jQuery,swipeThreshold:t.SWIPE_THRESHOLD||100,tapThreshold:t.TAP_THRESHOLD||150,dbltapThreshold:t.DBL_TAP_THRESHOLD||200,longtapThreshold:t.LONG_TAP_THRESHOLD||1e3,tapPrecision:t.TAP_PRECISION/2||30,justTouchEvents:t.JUST_ON_TOUCH_DEVICES},u=!1,e=i("touchstart")||r("PointerDown"),n=i("touchend")||r("PointerUp"),i=i("touchmove")||r("PointerMove"),l=function(t){return!t.pointerId||void 0===p||t.pointerId===p},o=function(t){var e=Boolean(t.targetTouches&&t.targetTouches.length);switch(!0){case Boolean(t.target.touches):return t.target.touches[0];case e&&void 0!==t.targetTouches[0].pageX:return t.targetTouches[0];case e&&Boolean(t.targetTouches[0].touches):return t.targetTouches[0].touches[0];default:return t}},c=function(t){return 1<(t.targetTouches||t.target.touches||[]).length},h=function(){return(new Date).getTime()},f=function(t,e,n,i){var r=s.createEvent("Event");if(r.originalEvent=n,(i=i||{}).x=m,i.y=g,a.useJquery&&(r=jQuery.Event(e,{originalEvent:n}),jQuery(t).trigger(r,i)),r.initEvent){for(var o in i)r[o]=i[o];r.initEvent(e,!0,!0),t.dispatchEvent(r)}for(;t;)t["on"+e]&&t["on"+e](r),t=t.parentNode},d=0,(r=function(t,e,n){for(var i=e.split(" "),r=i.length;r--;)t.addEventListener(i[r],n,!1)})(s,e+(a.justTouchEvents?"":" mousedown"),function(t){var e;!l(t)||c(t)||(p=t.pointerId,"mousedown"!==t.type&&(u=!0),"mousedown"===t.type&&u)||(e=o(t),v=m=e.pageX,y=g=e.pageY,x=setTimeout(function(){f(t.target,"longtap",t),b=t.target},a.longtapThreshold),w=h(),d++)}),r(s,n+(a.justTouchEvents?"":" mouseup"),function(t){if(l(t)&&!c(t))if(p=void 0,"mouseup"===t.type&&u)u=!1;else{var e=[],n=h(),i=y-g,r=v-m;if(clearTimeout(_),clearTimeout(x),r<=-a.swipeThreshold&&e.push("swiperight"),r>=a.swipeThreshold&&e.push("swipeleft"),i<=-a.swipeThreshold&&e.push("swipedown"),i>=a.swipeThreshold&&e.push("swipeup"),e.length){for(var o=0;o<e.length;o++)f(t.target,e[o],t,{distance:{x:Math.abs(r),y:Math.abs(i)}});d=0}else v>=m-a.tapPrecision&&v<=m+a.tapPrecision&&y>=g-a.tapPrecision&&y<=g+a.tapPrecision&&0<=w+a.tapThreshold-n&&(f(t.target,2<=d&&b===t.target?"dbltap":"tap",t),b=t.target),_=setTimeout(function(){d=0},a.dbltapThreshold)}}),r(s,i+(a.justTouchEvents?"":" mousemove"),function(t){!l(t)||"mousemove"===t.type&&u||(t=o(t),m=t.pageX,g=t.pageY)}),t.tocca=function(t){for(var e in t)a[e]=t[e];return a})})(document,window);