/*! For license information please see bundle.main.js.LICENSE.txt */ !function(){var t={637:function(t,e,i){var n,s;function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}"undefined"!=typeof navigator&&(s=window||{},void 0===(n=function(){return function(t){"use strict";var e,i="",n=-999999,s=!0,a="",o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),h=Math.pow,l=Math.sqrt,c=Math.floor,u=(Math.max,Math.min),d={};!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t>>=1;return(t+i)/e};return w.int32=function(){return 0|b.g(4)},w.quick=function(){return b.g(4)/4294967296},w.double=w,p(f(b.S),t),(m.pass||v||function(t,i,n,s){return s&&(s.S&&d(s,b),t.state=function(){return d(b,{})}),n?(e[a]=t,i):t})(w,g,"global"in m?m.global:this==e,m.state)},p(e.random(),t)}([],d);var q=function(){var t={getBezierEasing:function(t,i,n,s,r){var a=r||("bez_"+t+"_"+i+"_"+n+"_"+s).replace(/\./g,"p");if(e[a])return e[a];var o=new l([t,i,n,s]);return e[a]=o}},e={},i=.1,n="function"==typeof Float32Array;function s(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function a(t){return 3*t}function o(t,e,i){return((s(e,i)*t+r(e,i))*t+a(e))*t}function h(t,e,i){return 3*s(e,i)*t*t+2*r(e,i)*t+a(e)}function l(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&n===s?t:0===t?0:1===t?1:o(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=o(n*i,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],s=this._mSampleValues,r=0,a=1;10!==a&&s[a]<=t;++a)r+=i;var l=r+(t-s[--a])/(s[a+1]-s[a])*i,c=h(l,e,n);return.001<=c?function(t,e,i,n){for(var s=0;s<4;++s){var r=h(e,i,n);if(0===r)return e;e-=(o(e,i,n)-t)/r}return e}(t,l,e,n):0===c?l:function(t,e,i,n,s){for(var r,a,h=0;0<(r=o(a=e+(i-e)/2,n,s)-t)?i=a:e=a,1e-7a?-1:1,l=!0;l;)if(n[r]<=a&&n[r+1]>a?(o=(a-n[r])/(n[r+1]-n[r]),l=!1):r+=h,r<0||s-1<=r){if(r===s-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}var u=$("float32",8);return{getSegmentsLength:function(t){var e,n=$t.newElement(),s=t.c,r=t.v,a=t.o,o=t.i,h=t._length,l=n.lengths,c=0;for(e=0;ei[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var r,a=function(){var t=[4,4,14];function e(t){var e,i,n,s=t.length;for(e=0;e=a.t-n){r.h&&(r=a),p=0;break}if(a.t-n>t){p=m;break}m=n&&n<=e||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(e,this._caching);this.pv=s}return this._caching.lastFrame=e,this.pv}function a(t){var i;if("unidimensional"===this.propType)i=t*this.mult,1e-5=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],s=[];var r=this.px,a=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(n[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),s[0]=r.getValueAtTime(r.keyframes[0].t/i,0),s[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(n[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),s[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(n=[r.pv,a.pv],s[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),s[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else n=s=t;this.v.rotate(-Math.atan2(n[1]-s[1],n[0]-s[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},W([O],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=O.prototype.addDynamicProperty,{getTransformProperty:function(t,i,n){return new e(t,i,n)}}}();function J(){this.c=!1,this._length=0,this._maxLength=8,this.v=D(this._maxLength),this.o=D(this._maxLength),this.i=D(this._maxLength)}J.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[n]||r[n]&&!s)&&(r[n]=Pt.newElement()),r[n][0]=t,r[n][1]=e},J.prototype.setTripleAt=function(t,e,i,n,s,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(s,r,"i",a,o)},J.prototype.reverse=function(){var t=new J;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),s=1);var r,a=this._length-1,o=this._length;for(r=s;r=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],r=!0;else{for(var f,m,v=d,y=p.length-1,g=!0;g&&(f=p[v],!((m=p[v+1]).t-this.offsetTime>t));)v=m.t-this.offsetTime)c=1;else if(tn+i||(c=o.s*s<=n?0:(o.s*s-n)/i,u=o.e*s>=n+i?1:(o.e*s-n)/i,h.push([c,u]))}return h.length||h.push([0,0]),h},it.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;ee.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(d[n].v[s-1],d[n].o[s-1],d[n].i[s],d[n].v[s],i,o,v),v=!1):(l=z.getNewSegment(d[n].v[s-1],d[n].v[s],d[n].o[s-1],d[n].i[s],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,h[s-1]),this.addSegmentFromArray(l,i,o,v),v=!1,i.c=!1),f+=a.addedLength,o+=1}if(d[n].c&&h.length){if(a=h[s-1],f<=e.e){var y=h[s-1].addedLength;e.s<=f&&e.e>=f+y?(this.addSegment(d[n].v[s-1],d[n].o[s-1],d[n].i[0],d[n].v[0],i,o,v),v=!1):(l=z.getNewSegment(d[n].v[s-1],d[n].v[0],d[n].o[s-1],d[n].i[0],(e.s-f)/y,(e.e-f)/y,h[s-1]),this.addSegmentFromArray(l,i,o,v),v=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;n=f.length&&(u=0,f=m[d+=1]?m[d].points:w.v.c?m[d=u=0].points:(l-=h.partialLength,null)),f&&(p=h,v=(h=f[u]).partialLength));B=x[s].an/2-x[s].add,S.translate(-B,0,0)}else B=x[s].an/2-x[s].add,S.translate(-B,0,0),S.translate(-k[0]*x[s].an*.005,-k[1]*N*.01,0);for(M=0;Me);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},wt.prototype.buildFinalText=function(t){for(var e,i,n=[],s=0,r=t.length,a=!1;sthis.minimumFontSize&&T=i(c)&&(l=t(0,e(n-c<0?e(u,1)-(c-n):u-n,1))),h(l));if(100!==this.sm.v){var v=.01*this.sm.v;0===v&&(v=1e-8);var y=.5-.5*v;lt-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Ft.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Ft.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ft.prototype.createAudio=function(t){return new oe(t,this.globalData,this)},Ft.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},Ft.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;tt?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;tthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var i,n,s=this.animationData.layers,r=s.length,a=t.layers,o=a.length;for(n=0;nthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},pe.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},pe.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},pe.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},pe.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},pe.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pe.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&0=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},pe.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},pe.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},pe.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==r(t[0])){var i,n=t.length;for(i=0;i1?1:o,i=.5*(1-Math.cos(Math.PI*r)),n=e.startX+(e.x-e.startX)*i,s=e.startY+(e.y-e.startY)*i,e.method.call(e.scrollable,n,s),n===e.x&&s===e.y||t.requestAnimationFrame(f.bind(t,e))}function m(i,n,s){var o,l,c,u,d=a();i===e.body?(o=t,l=t.scrollX||t.pageXOffset,c=t.scrollY||t.pageYOffset,u=r.scroll):(o=i,l=i.scrollLeft,c=i.scrollTop,u=h),f({scrollable:o,method:u,startTime:d,startX:l,startY:c,x:n,y:s})}}"object"===i(e)?t.exports={polyfill:n}:n()}()}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var r=e[n]={exports:{}};return t[n].call(r.exports,r,r.exports,i),r.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t+"../"}(),function(){"use strict";i.p}(),function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e,n=function(t){var e=!0;for(var i in t){e=!1;break}return e},s=function e(i,s){var r={};for(var a in i)s.hasOwnProperty(a)?"object"===t(i[a])?r[a]=n(i[a])?s[a]:e(r[a],s[a]):r[a]=R.convert(s[a]):r[a]=i[a];return r},r={merge:s},a=r,o=function(t){return/^data-m-/.test(t)?t:"data-m-".concat(t).toLowerCase()},h=function(t,e,i){if(null!=t&&i){var n=o(i);e?t.setAttribute(n,""):t.removeAttribute(n)}},l=function(t,e){null!=t&&e&&t.setAttribute(o(e),"")},c=function(t,e){null!=t&&e&&t.removeAttribute(o(e))},u={toggle:h,add:l,remove:c},d=u,p=window.navigator,f=p.platform,m=p.userAgent,v={isTouch:function(){return"ontouchstart"in document.documentElement}},y={isIOS:function(){return/iP(hone|ad|od)/gi.test(f)},isAndroid:function(){return/android/gi.test(m)}},g={isIe:function(){return/(Trident|Edge)/gi.test(m)},isIe11:function(){return/rv:11/.test(m)},isFirefox:function(){return/firefox/gi.test(m)},isChrome:function(){return/chrome/gi.test(m)}},b=[{matches:v.isTouch,cssClass:"dj-is-touch"},{matches:y.isIOS,cssClass:"dj-is-ios"},{matches:y.isAndroid,cssClass:"dj-is-android"},{matches:g.isIe,cssClass:"dj-is-ie"},{matches:g.isIe11,cssClass:"dj-is-ie11"},{matches:g.isFirefox,cssClass:"dj-is-firefox"},{matches:g.isChrome,cssClass:"dj-is-chrome"}],w=function(){return b.filter((function(t){if(t.matches())return t.cssClass}))},k={os:y,device:v,browser:g,getCssClasses:w},A=k,E={minWidth:0,maxWidth:0},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,e=Object.assign({},E,t),i=e.minWidth,n=e.maxWidth;if(!n&&!i)return window.matchMedia("screen");var s="";return i&&(s+="(min-width: ".concat(i,"px)")),s&&n&&(s+=" and "),n&&(s+="(max-width: ".concat(n,"px)")),window.matchMedia(s)},_={create:S},C=_,x=new Map,T=function(t){return/[a-z]+(?::[a-z]){1,2}/.test(t)},P=function(t){T(t),x.set(t,new Set)},L=function(t,e){0==x.has(t)&&P(t),x.get(t).add(e)},I=function(t,e){x.has(t)&&x.get(t).delete(e)},$=function(t,e){x.has(t)&&x.get(t).forEach((function(t){return t(e)}))},D={publish:$,subscribe:L,unsubscribe:I},M=D,F={setItem:function(t,e){try{sessionStorage.setItem(t,e)}catch(e){console.warn("Failed to access sessionStorage.setItem for key "+t,e)}},getItem:function(t){try{return sessionStorage.getItem(t)}catch(e){return console.warn("Failed to access sessionStorage.getItem for key "+t,e),null}}},O=F,j=(document.querySelectorAll(".mdc-text-field"),document.querySelector("form"),function(t){return"string"!=typeof t?t:/^[\d\.]+$/.test(t)?parseFloat(t):/^(true|false)$/i.test(t)?JSON.parse(t.toLowerCase()):/^\[.+\]$|^\{.+\}$/.test(t)?JSON.parse(t):t}),N={convert:j},R=N,B=void 0===arguments?void 0:arguments,V=function(t,e){var i;return function(){i||(t(B),i=!0,setTimeout((function(){return i=!1}),e))}},q=function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var s=B,r=n&&!e;clearTimeout(e),e=setTimeout((function(){e=null,n||t(s)}),i),r&&t(s)}},W={throttle:V,debounce:q},z=W,H=function(t){null!=t&&null!=t.parentNode&&t.parentNode.removeChild(t)},U=function(t,e,i){if(0!=(t&&e&&"function"==typeof i)){var n=A.browser.isIe11()?"msMatchesSelector":"matches";t.target[n](e)&&(i(t),t.preventDefault())}},X=function(t,e){return t[A.browser.isIe11()?"msMatchesSelector":"matches"](e)},Y=function t(e,i){if(null!=e.parentNode){var n=e.parentNode;return n[A.browser.isIe11()?"msMatchesSelector":"matches"](i)?n:t(n,i)}},G=function(t){return/^[a-z\.#\[](?=\w)/i.test(t)},J={destroyElement:H,delegateEvent:U,getParentNode:Y,selectorMatches:X,isValidSelector:G},K=J,Z=document.documentElement,Q=document.body,tt=document.scrollingElement||document.documentElement,et="data-m-scroll-locked",it=function(){e=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,d.add(Z,et),Q.style.top="-".concat(e,"px")},nt=function(){d.remove(Z,et),Q.style.top="0px",Z.style.scrollBehavior="initial",tt.scrollTop=e,window.setTimeout((function(){Z.style.scrollBehavior="smooth"}),100)},st={lock:it,release:nt},rt=st,at=!1;try{var ot=Object.defineProperty({},"passive",{get:function(){at=!0}});window.addEventListener("testPassive",null,ot),window.removeEventListener("testPassive",null,ot)}catch(t){}var ht=at;function lt(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=dt(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function ct(t){return ft(t)||pt(t)||dt(t)||ut()}function ut(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dt(t,e){if(t){if("string"==typeof t)return mt(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?mt(t,e):void 0}}function pt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ft(t){if(Array.isArray(t))return mt(t)}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:0;t<0?this.activeIndex=this.slideCount-1:t>=this.slideCount?this.activeIndex=0:this.activeIndex=t}},{key:"setDimensions",value:function(){var t=this,e=getComputedStyle(this.$wrapper),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight);this.wrapperWidth=this.$wrapper.clientWidth-i,this.options.itemsPerSlide;var n=Math.floor(this.wrapperWidth/this.options.itemsPerSlide);this.$slides.forEach((function(e,i){e.style.flex="0 0 ".concat(n,"px"),e.style.margin="0",e.style.padding="0",e.style.maxWidth="100vw",e.style.display="flex",e.style.alignContent=e.style.alignItems="center",e.style.justifyContent="center",e.style.visibility="visible",t.options.itemsPerSlide>1&&(e.style.flexBasis="".concat(n-20*(t.options.itemsPerSlide-1)/t.options.itemsPerSlide,"px"),i%t.options.itemsPerSlide&&(e.style.marginLeft="20px"))}))}},{key:"startTouch",value:function(t){t.stopPropagation(),this.touchOrigin=t.targetTouches[0].pageX}},{key:"triggerTouch",value:function(t){var e=t.changedTouches[0].pageX-this.touchOrigin;Math.abs(e)>100&&this.navigateSlides(e<100),this.touchOrigin=null}},{key:"setup",value:function(){this.$wrapper&&this.setDimensions(),this.$indicators&&this.setActiveIndicator(),this.setAriaStates(),this.moveSlides(),this.isSetup||(this.$wrapper=this.createWrapper(),this.$el.classList.add(Et.track),this.$el.parentNode.insertBefore(this.$wrapper,this.$el),this.$navigationArrows=this.createNavigationArrows(),this.$navigationArrows.appendChild(this.$el),this.$wrapper.appendChild(this.$navigationArrows),this.createIndicators(),this.options.allowExpandedView&&this.$wrapper.appendChild(this.$expandedViewButton=this.createExpandedViewButton()),this.$el.style.display="flex",this.$el.style.transition="transform ease .3s",this.$el.style.flexWrap="nowrap",this.$el.style.justifyContent="flex-start",this.setDimensions(),this.setActiveIndicator(),this.addEvents(),this.isSetup=!0)}},{key:"destroy",value:function(){if(this.isSetup){var t=this.$wrapper.parentNode;t.insertBefore(this.$el,this.$wrapper),t.removeChild(this.$wrapper),this.$el.classList.remove(Et.track),this.$el.removeAttribute("style");var e,i=lt(this.$slides);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.removeAttribute("style"),n.removeAttribute("aria-hidden")}}catch(t){i.e(t)}finally{i.f()}this.destroyModuleEvents(),this.isSetup=!1}}},{key:"moveSlides",value:function(){var t=this.activeIndex*this.wrapperWidth,e=this.$el.outerWidth;t=t>e?e:t<0?0:t,this.$el.style.transform="translate3d(-".concat(t,"px, 0, 0)")}},{key:"navigateSlides",value:function(t){this.goToIndex(t?this.activeIndex+1:this.activeIndex-1)}},{key:"goToIndex",value:function(t){this.setactiveIndex(t),this.setAriaStates(),this.setActiveIndicator(),this.moveSlides();var e=this.$slides[this.activeIndex].querySelector("video");e&&e.play()}},{key:"onNavigationClick",value:function(t){var e=t.target.attributes,i=e["data-m-previous"]||e["data-m-next"]||null,n=t.target.hasAttribute("data-m-next");i&&this.navigateSlides(n)&&t.preventDefault()}},{key:"onExpandedViewButtonClick",value:function(t){this.$wrapper.hasAttribute(St.expandedViewActive)?(this.$wrapper.removeAttribute(St.expandedViewActive),this.$expandedViewButton.ariaLabel=this.$expandedViewButton.title=_t,this.fixParentModuleNavigation(!1)):(this.$wrapper.setAttribute(St.expandedViewActive,""),this.$expandedViewButton.ariaLabel=this.$expandedViewButton.title=Ct,this.fixParentModuleNavigation(!0)),this.setupOrDestroy(!0),lazySizes.autoSizer.checkElems()}},{key:"fixParentModuleNavigation",value:function(t){for(var e=this,i=this.$el.parentElement;i;){if(i.classList.contains("dj-module-navigation__track")){t?(this.moduleNavigationTransformBackup=i.style.transform,this.moduleNavigationTransitionBackup=i.style.transition,i.style.transform="",i.style.transition=""):(i.style.transform=this.moduleNavigationTransformBackup,setTimeout((function(){return i.style.transition=e.moduleNavigationTransitionBackup}),0));break}i=i.parentElement}}},{key:"addEvents",value:function(){this.$navigationArrows.addEventListener("click",this.onNavigationClick.bind(this)),void 0!==window.ontouchstart&&(this.$wrapper.addEventListener("touchstart",this.startTouch.bind(this),!!ht&&{passive:!0}),this.$wrapper.addEventListener("touchend",this.triggerTouch.bind(this))),this.$expandedViewButton&&this.$expandedViewButton.addEventListener("click",this.onExpandedViewButtonClick.bind(this))}},{key:"destroyModuleEvents",value:function(){this.$navigationArrows.removeEventListener("click",this.onNavigationClick.bind(this)),this.$wrapper.removeEventListener("touchstart",this.startTouch),this.$wrapper.removeEventListener("touchend",this.triggerTouch),this.$expandedViewButton&&this.$expandedViewButton.removeEventListener("click",this.onExpandedViewButtonClick.bind(this))}}]),t}();function Pt(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=$t(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function Lt(t){return Mt(t)||Dt(t)||$t(t)||It()}function It(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $t(t,e){if(t){if("string"==typeof t)return Ft(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ft(t,e):void 0}}function Dt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Mt(t){if(Array.isArray(t))return Ft(t)}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:0;t>=0&&t<=this.slideCount&&(this.activeIndex=t)}},{key:"setActiveState",value:function(){var t,e=Pt(this.$navigationItems);try{for(e.s();!(t=e.n()).done;){var i=t.value,n=Lt(i.parentElement.children).indexOf(i);this.activeIndex===n?i.firstChild.classList.add("".concat(Wt.module,"__active")):i.firstChild.classList.remove("".concat(Wt.module,"__active"))}}catch(t){e.e(t)}finally{e.f()}}},{key:"setDimensions",value:function(){var t=this;this.wrapperWidth=this.$wrapper.clientWidth;var e=this.wrapperWidth/this.options.itemsPerSlide;this.$slides.forEach((function(i,n){i.style.flex="0 0 ".concat(e,"px"),i.style.margin="0",i.style.padding="0",i.style.maxWidth="100vw",t.options.itemsPerSlide>1&&(i.style.flexBasis="".concat(e-20*(t.options.itemsPerSlide-1)/t.options.itemsPerSlide,"px"),n%t.options.itemsPerSlide&&(i.style.marginLeft="20px"))}))}},{key:"setup",value:function(){var t=this;this.$wrapper&&this.setDimensions(),this.isSetup||(this.$navigation=this.$el.previousElementSibling.firstElementChild,this.$navigationItems=this.$el.previousElementSibling.firstElementChild.children,this.setActiveState(),this.$wrapper=this.createWrapper(),this.$el.classList.add(Wt.track),this.$el.parentNode.insertBefore(this.$wrapper,this.$el),this.$wrapper.appendChild(this.$el),this.$el.style.display="flex",this.$el.style.transition="transform ease .3s",this.$el.style.flexWrap="nowrap",this.$el.style.justifyContent="flex-start",this.setDimensions(),this.addEvents(),this.moveSlides(),window.setTimeout((function(){return t.setAriaStates()}),0),this.isSetup=!0)}},{key:"destroy",value:function(){if(this.isSetup){var t=this.$wrapper.parentNode;t.insertBefore(this.$el,this.$wrapper),t.removeChild(this.$wrapper),this.$el.classList.remove(Wt.track),this.$el.removeAttribute("style");var e,i=Pt(this.$slides);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.removeAttribute("style"),n.removeAttribute("aria-hidden"),n.removeAttribute("hidden")}}catch(t){i.e(t)}finally{i.f()}this.destroyModuleEvents(),this.isSetup=!1}}},{key:"moveSlides",value:function(){var t=this.activeIndex*this.wrapperWidth,e=this.$el.outerWidth;t=t>e?e:t<0?0:t,this.$el.style.transform="translate3d(-".concat(t,"px, 0, 0)")}},{key:"navigateSlides",value:function(t){this.activeIndex!==t&&(this.setActiveIndex(t),this.setAriaStates(),this.setActiveState(),this.moveSlides())}},{key:"onNavigationClick",value:function(t){var e=Lt(t.target.closest("ul").children).indexOf(t.target.closest("li"));this.navigateSlides(e),t.preventDefault()}},{key:"addEvents",value:function(){this.$navigation.addEventListener("click",this.onNavigationClick.bind(this))}},{key:"destroyModuleEvents",value:function(){this.$navigation.removeeventlistener("click",this.onnavigationclick.bind(this))}}]),t}();function Ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(t,e){for(var i=0;i')),e.push('')),this.opts.title&&e.push('').concat(this.opts.title,"")),e.push(this.opts.content),t.classList.add(Qt.bubble),t.innerHTML=e.join(""),t}},{key:"showToolTip",value:function(t){if(this.isOpen)return this.hideToolTip(t);M.publish(Zt.close,t),this.isOpen=!0,C.create({maxWidth:767}).matches?this.$el.parentNode.insertBefore(this.$bubble,this.$el.nextSibling):this.$el.appendChild(this.$bubble),t.stopPropagation(),t.preventDefault()}},{key:"hideToolTip",value:function(t){this.isOpen&&(this.isOpen=!1,this.$bubble.parentNode.removeChild(this.$bubble),t&&(t.stopPropagation(),t.preventDefault()))}},{key:"onKeyEntry",value:function(t){/esc(?:ape)*/i.test(t.key)&&this.hideToolTip()}},{key:"onOuterClick",value:function(t){if(!RegExp("".concat(Kt,"__[a-z]+"),"g").test(t.target.classList.value)&&this.isOpen)return this.hideToolTip()}},{key:"addEventListeners",value:function(){M.subscribe(Zt.close,this.hideToolTip.bind(this)),window.addEventListener("orientationchange",this.hideToolTip.bind(this)),document.addEventListener("click",this.onOuterClick.bind(this)),this.$icon.addEventListener("click",this.showToolTip.bind(this)),this.$el.addEventListener("click",this.hideToolTip.bind(this)),this.$el.addEventListener("keyup",this.hideToolTip.bind(this)),this.$bubble.addEventListener("touchend",this.hideToolTip.bind(this))}}]),t}();function ee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function ze(t,e){if(t){if("string"==typeof t)return He(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?He(t,e):void 0}}function He(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=s[0]))break;i=s[1]}}catch(t){n.e(t)}finally{n.f()}return t*i}},{key:"feeAmount",value:function(t,e){return this.getFeePercent(t)*e}},{key:"feePercent",value:function(t){return 100*this.getFeePercent(t)}},{key:"getFeePercent",value:function(t){var e,i=void 0,n=We(Ke);try{for(n.s();!(e=n.n()).done;){var s=e.value;if(!(t>=s[0]))break;i=s[1]}}catch(t){n.e(t)}finally{n.f()}return i}},{key:"formatNumber",value:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}}]),t}();function ti(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=ni(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function ei(t){return ri(t)||si(t)||ni(t)||ii()}function ii(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ni(t,e){if(t){if("string"==typeof t)return ai(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ai(t,e):void 0}}function si(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ri(t){if(Array.isArray(t))return ai(t)}function ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function gi(t,e){if(t){if("string"==typeof t)return bi(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?bi(t,e):void 0}}function bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]&&arguments[1],n=t.querySelectorAll("[data-val]"),s=void 0,r=yi(n);try{for(r.s();!(e=r.n()).done;){var a=e.value;i&&(a.setAttribute("data-val-touched","true"),a.setAttribute("data-val-dirty","true")),s=Ei(a,{isFormSubmit:i})||s}}catch(t){r.e(t)}finally{r.f()}return!s},Ei=function(t,e){var i;e=e||{};for(var n,s=0,r=t.attributes,a=r.length;s1&&(t.preventDefault(),console.warn("Form submit was pressed multiple times. Ignoring subsequent presses"))}else t.preventDefault()},Pi=function(t){$i(t)},Li=function(t){$i(t)},Ii=function(t){var e=Ci(t.target);e&&(e.setAttribute("data-val-touched","true"),Ei(e))},$i=function(t){var e=Ci(t.target);e&&(e.setAttribute("data-val-dirty","true"),Ei(e))},Di=function(){function t(e){fi(this,t),this.$el=e}return vi(t,[{key:"init",value:function(){this.$el.addEventListener("submit",Ti),this.$el.addEventListener("change",Pi),this.$el.addEventListener("keyup",Li),this.$el.addEventListener("focusout",Ii)}}]),t}();function Mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fi(t,e){for(var i=0;izi&&(this.played=!1,Bi().stop(this.options.name))}else this.initialised=!0,this.initialiseLottie()}}]),t}();function Xi(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=Ji(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function Yi(t){return Zi(t)||Ki(t)||Ji(t)||Gi()}function Gi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ji(t,e){if(t){if("string"==typeof t)return Qi(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Qi(t,e):void 0}}function Ki(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Zi(t){if(Array.isArray(t))return Qi(t)}function Qi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:0;t>=0&&t<=this.slideCount&&(this.activeIndex=t)}},{key:"setDimensions",value:function(){var t=this;this.wrapperWidth=this.$wrapper.clientWidth;var e=this.wrapperWidth/this.options.itemsPerSlide;this.$slides.forEach((function(i,n){i.style.flex="0 0 ".concat(e,"px"),i.style.margin="0",i.style.padding="0",i.style.maxWidth="100vw",i.style.display="flex",i.style.alignContent="center",i.style.justifyContent="center",i.style.visibility="visible",t.options.itemsPerSlide>1&&(i.style.flexBasis="".concat(e-20*(t.options.itemsPerSlide-1)/t.options.itemsPerSlide,"px"),n%t.options.itemsPerSlide&&(i.style.marginLeft="20px"))}))}},{key:"startTouch",value:function(t){t.stopPropagation(),this.touchOrigin=t.targetTouches[0].pageX}},{key:"triggerTouch",value:function(t){var e=t.changedTouches[0].pageX-this.touchOrigin;Math.abs(e)>100&&this.navigateSlides(e<100),this.touchOrigin=null}},{key:"setup",value:function(){this.$wrapper&&this.setDimensions(),this.setAriaStates(),this.moveSlides(),this.isSetup||(this.$wrapper=this.createWrapper(),this.$el.classList.add(cn.track),this.$el.parentNode.insertBefore(this.$wrapper,this.$el),this.$navigationArrows=this.createNavigationArrows(),this.$navigationArrows.appendChild(this.$el),this.$wrapper.appendChild(this.$navigationArrows),this.setNavigationArrowHover(),this.addLottieAnimations(),this.$el.style.display="flex",this.$el.style.transition="transform ease .3s",this.$el.style.flexWrap="nowrap",this.$el.style.justifyContent="flex-start",this.setDimensions(),this.addEvents(),this.isSetup=!0)}},{key:"destroy",value:function(){if(this.isSetup){var t=this.$wrapper.parentNode;t.insertBefore(this.$el,this.$wrapper),t.removeChild(this.$wrapper),this.$el.classList.remove(cn.track),this.$el.removeAttribute("style");var e,i=Xi(this.$slides);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.removeAttribute("style"),n.removeAttribute("aria-hidden")}}catch(t){i.e(t)}finally{i.f()}this.destroyModuleEvents(),this.isSetup=!1}}},{key:"moveSlides",value:function(){var t=this.activeIndex*this.wrapperWidth,e=this.$el.outerWidth;t=t>e?e:t<0?0:t,this.$el.style.transform="translate3d(-".concat(t,"px, 0, 0)"),this.playLottieAnimation()}},{key:"navigateSlides",value:function(t){t&&this.activeIndex===this.slideCount-1||!t&&0===this.activeIndex||(this.setactiveIndex(t?this.activeIndex+1:this.activeIndex-1),this.setAriaStates(),this.moveSlides(),this.setNavigationArrowHover())}},{key:"onNavigationClick",value:function(t){var e=t.target.attributes,i=e["data-m-previous"]||e["data-m-next"]||null,n=t.target.hasAttribute("data-m-next");i&&this.navigateSlides(n)&&t.preventDefault()}},{key:"addEvents",value:function(){window.addEventListener("scroll",this.isInRange.bind(this)),this.$navigationArrows.addEventListener("click",this.onNavigationClick.bind(this)),void 0!==window.ontouchstart&&(this.$wrapper.addEventListener("touchstart",this.startTouch.bind(this),!!ht&&{passive:!0}),this.$wrapper.addEventListener("touchend",this.triggerTouch.bind(this)))}},{key:"destroyModuleEvents",value:function(){this.$navigationArrows.removeEventListener("click",this.onNavigationClick.bind(this)),this.$wrapper.removeEventListener("touchstart",this.startTouch),this.$wrapper.removeEventListener("touchend",this.triggerTouch)}},{key:"addLottieAnimations",value:function(){var t=this,e=this.$slides.length,i=this;this.$slides.forEach((function(n,s){var r=n.querySelector(".dj-product-module__animation"),a=t.isNonDesktop?r.dataset.lottieAnimationMobilePath:r.dataset.lottieAnimationPath;Bi().loadAnimation({name:r.dataset.lottieAnimationName,container:r,renderer:"svg",loop:!1,autoplay:!1,path:a}).onComplete=function(){Bi().stop(r.dataset.lottieAnimationName),s+1an&&(this.playing=!1,Bi().stop(this.$slides[this.activeIndex].querySelector(".dj-product-module__animation").dataset.lottieAnimationName))}}]),t}();function fn(t){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(t)}function mn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,i=t.url,n=e||i;if(!n)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(kn(n))return"https://vimeo.com/".concat(n);if(An(n))return n.replace("http:","https:");if(e)throw new TypeError("“".concat(e,"” is not a valid video id."));throw new TypeError("“".concat(n,"” is not a vimeo.com url."))}var Sn=void 0!==Array.prototype.indexOf,_n="undefined"!=typeof window&&void 0!==window.postMessage;if(!(gn||Sn&&_n))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var Cn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function xn(t,e){return t(e={exports:{}},e.exports),e.exports}!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,i=function(t,e,i){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:i}):t[e]=i};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id",r("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function s(t,i){if(!n(t)||!e.call(t,"_id"))throw new TypeError(i+" method called on incompatible receiver "+fn(t))}function r(t){return t+"_"+a()+"."+a()}function a(){return Math.random().toString().substring(2)}return i(t.prototype,"delete",(function(t){if(s(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),i(t.prototype,"get",(function(t){if(s(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),i(t.prototype,"has",(function(t){if(s(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),i(t.prototype,"set",(function(t,e){if(s(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var r=t[this._id];return r&&r[0]===t?(r[1]=e,this):(i(t,this._id,[t,e]),this)})),i(t,"_polyfill",!0),t}()}function n(t){return Object(t)===t}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:Cn);var Tn=xn((function(t){var e,i,n;n=function(){var t,e,i,n=Object.prototype.toString,s="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,i,n){return Object.defineProperty(t,e,{value:i,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,i){return t[e]=i,t}}function r(t,n){i.add(t,n),e||(e=s(i.drain))}function a(t){var e,i=fn(t);return null==t||"object"!=i&&"function"!=i||(e=t.then),"function"==typeof e&&e}function o(){for(var t=0;t0&&r(o,i))}catch(t){c.call(new d(i),t)}}}function c(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&r(o,e))}function u(t,e,i,n){for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return Fn.reduce((function(e,i){var n=t.getAttribute("data-vimeo-".concat(i));return(n||""===n)&&(e[i]=""===n?1:n),e}),e)}function jn(t,e){var i=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=i,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Nn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return new Promise((function(n,s){if(!An(t))throw new TypeError("“".concat(t,"” is not a vimeo.com url."));var r="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var a in e)e.hasOwnProperty(a)&&(r+="&".concat(a,"=").concat(encodeURIComponent(e[a])));var o="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;o.open("GET",r,!0),o.onload=function(){if(404!==o.status)if(403!==o.status)try{var e=JSON.parse(o.responseText);if(403===e.domain_status_code)return jn(e,i),void s(new Error("“".concat(t,"” is not embeddable.")));n(e)}catch(t){s(t)}else s(new Error("“".concat(t,"” is not embeddable.")));else s(new Error("“".concat(t,"” was not found.")))},o.onerror=function(){var t=o.status?" (".concat(o.status,")"):"";s(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},o.send()}))}function Rn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),i=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach((function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=On(t);Nn(En(e),e,t).then((function(e){return jn(e,t)})).catch(i)}catch(t){i(t)}}))}function Bn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(e){if(An(e.origin)&&e.data&&"spacechange"===e.data.event)for(var i=t.querySelectorAll("iframe"),n=0;n=8&&s<10&&(n=JSON.stringify(n)),t.element.contentWindow.postMessage(n,t.origin)}}function Wn(t,e){var i,n=[];if((e=Vn(e)).event)"error"===e.event&&In(t,e.data.method).forEach((function(i){var n=new Error(e.data.message);n.name=e.data.name,i.reject(n),$n(t,e.data.method,i)})),n=In(t,"event:".concat(e.event)),i=e.data;else if(e.method){var s=Dn(t,e.method);s&&(n.push(s),i=e.value)}n.forEach((function(e){try{if("function"==typeof e)return void e.call(t,i);e.resolve(i)}catch(t){}}))}function zn(){var t=function(){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"]],i=0,n=e.length,s={};i1&&void 0!==arguments[1]?arguments[1]:{};if(mn(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!wn(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var s=e.querySelector("iframe");s&&(e=s)}if("IFRAME"===e.nodeName&&!An(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Hn.has(e))return Hn.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var r=new Tn((function(t,s){if(i._onMessage=function(e){if(An(e.origin)&&i.element.contentWindow===e.source){"*"===i.origin&&(i.origin=e.origin);var n=Vn(e.data);if(n&&"error"===n.event&&n.data&&"ready"===n.data.method){var r=new Error(n.data.message);return r.name=n.data.name,void s(r)}var a=n&&"ready"===n.event,o=n&&"ping"===n.method;if(a||o)return i.element.setAttribute("data-ready","true"),void t();Wn(i,n)}},i._window.addEventListener("message",i._onMessage),"IFRAME"!==i.element.nodeName){var r=On(e,n);Nn(En(r),r,e).then((function(t){var n=jn(t,e);return i.element=n,i._originalElement=e,Mn(e,n),Hn.set(i.element,i),t})).catch(s)}}));if(Un.set(this,r),Hn.set(this.element,this),"IFRAME"===this.element.nodeName&&qn(this,"ping"),Xn.isEnabled){var a=function(){return Xn.exit()};this.fullscreenchangeHandler=function(){Xn.isFullscreen?Ln(i,"event:exitFullscreen",a):$n(i,"event:exitFullscreen",a),i.ready().then((function(){qn(i,"fullscreenchange",Xn.isFullscreen)}))},Xn.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return yn(t,[{key:"callMethod",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Tn((function(n,s){return e.ready().then((function(){Ln(e,t,{resolve:n,reject:s}),qn(e,t,i)})).catch(s)}))}},{key:"get",value:function(t){var e=this;return new Tn((function(i,n){return t=bn(t,"get"),e.ready().then((function(){Ln(e,t,{resolve:i,reject:n}),qn(e,t)})).catch(n)}))}},{key:"set",value:function(t,e){var i=this;return new Tn((function(n,s){if(t=bn(t,"set"),null==e)throw new TypeError("There must be a value to set.");return i.ready().then((function(){Ln(i,t,{resolve:n,reject:s}),qn(i,t,e)})).catch(s)}))}},{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===In(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch((function(){})),Ln(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.");$n(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=Un.get(this)||new Tn((function(t,e){e(new Error("Unknown player. Probably unloaded."))}));return Tn.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{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 Xn.isEnabled?Xn.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Xn.isEnabled?Xn.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Xn.isEnabled?Tn.resolve(Xn.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:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new Tn((function(e){if(Un.delete(t),Hn.delete(t.element),t._originalElement&&(Hn.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&"DIV"===t.element.nodeName&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),Xn.isEnabled&&Xn.off("fullscreenchange",t.fullscreenchangeHandler),e()}))}},{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:"setColor",value:function(t){return this.set("color",t)}},{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:"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)}}]),t}();gn||(Xn=zn(),Rn(),Bn());var Gn=Yn;function Jn(t){return ts(t)||Qn(t)||Zn(t)||Kn()}function Kn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Zn(t,e){if(t){if("string"==typeof t)return es(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?es(t,e):void 0}}function Qn(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ts(t){if(Array.isArray(t))return es(t)}function es(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);ithis.options.topOffset?this.play():this.played&&(t.bottom>os||t.top<=this.options.topOffset)&&this.pause()}},{key:"play",value:function(){var t=this;this.played=!0,this.controlButton.removeAttribute(as.PAUSED),this.player.play().then((function(t){rs.interval=setInterval((function(){rs.player.getCurrentTime().then((function(t){rs.time.textContent="".concat(rs.formatTime(t)," / ").concat(rs.durationString),rs.knobJockey(t/rs.duration*100)}))}),1e3)})).catch((function(t){t.name})),this.player.on("ended",(function(){clearInterval(t.interval)}))}},{key:"pause",value:function(){this.played=!1,this.controlButton.setAttribute(as.PAUSED,!0),this.player.pause().then((function(){clearInterval(rs.interval)})).catch((function(t){t.name}))}},{key:"playbackPosition",value:function(t){this.player.setCurrentTime(t).then((function(t){rs.interval=setInterval((function(){rs.player.getCurrentTime().then((function(t){rs.time.textContent="".concat(rs.formatTime(t)," / ").concat(rs.durationString),rs.knobJockey(t/rs.duration*100)}))}),1e3)})).catch((function(t){t.name}))}},{key:"volumeClick",value:function(t){var e=Jn(this.volumeControl.children),i=e.indexOf(t.target)/5;e.forEach((function(t){t.removeAttribute(as.LEVELAVTIVE)})),t.target.setAttribute(as.LEVELAVTIVE,""),this.setVolume(i)}},{key:"setVolume",value:function(t){this.player.setVolume(t).then((function(t){})).catch((function(t){t.name}))}},{key:"toggleFullScreen",value:function(){this.isFullScreen?(this.$module.removeAttribute(as.FULLSCREEN),this.fullScreen.setAttribute("data-title","Fullscreen"),this.fullScreen.removeAttribute("data-m-expanded")):(this.$module.setAttribute(as.FULLSCREEN,""),this.fullScreen.setAttribute("data-title","Exit fullscreen"),this.fullScreen.setAttribute("data-m-expanded","")),this.isFullScreen=!this.isFullScreen}},{key:"toggleCaptions",value:function(){this.isCaptions?this.hideCaptions():this.showCaptions(),this.isCaptions=!this.isCaptions}},{key:"showCaptions",value:function(){this.captions.setAttribute("data-title","Hide captions"),this.player.enableTextTrack("en","captions").then((function(t){})).catch((function(t){t.name}))}},{key:"hideCaptions",value:function(){this.captions.setAttribute("data-title","Show captions"),this.player.disableTextTrack().then((function(){}))}},{key:"knobDown",value:function(t){(t=t||window.event).preventDefault(),this.trackWidth=this.track.offsetWidth,this.startPosition=t.clientX,document.addEventListener("mouseup",this.knobUpHandler),document.addEventListener("mousemove",this.knobMoveHandler)}},{key:"knobUp",value:function(){document.removeEventListener("mouseup",this.knobUpHandler),document.removeEventListener("mousemove",this.knobMoveHandler)}},{key:"knobMove",value:function(t){if((t=t||window.event).preventDefault(),this.movePosition=this.startPosition-t.clientX,this.knob.offsetLeft+12-this.movePosition>=0&this.knob.offsetLeft+12-this.movePosition<=this.trackWidth){this.startPosition=t.clientX;var e=(this.knob.offsetLeft+12-this.movePosition)/this.trackWidth*100;this.knobJockey(e),this.playbackPosition(this.duration/100*e)}}},{key:"showControls",value:function(){var t=this;this.controlButtonSpan.style.display="block",this.controlPanel.style.display="block",this.controlButton.hasAttribute(as.PAUSED)||(this.hideControls=window.setTimeout((function(){t.controlButtonSpan.style.display="none",t.controlPanel.style.display="none"}),3e3))}},{key:"formatTime",value:function(t){return new Date(1e3*t).toISOString().substr(14,5)}},{key:"knobJockey",value:function(t){this.knob.style.left="".concat(t,"%"),this.trackProgress.style.width="".concat(t,"%")}}]),t}();function cs(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=us(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function us(t,e){if(t){if("string"==typeof t)return ds(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ds(t,e):void 0}}function ds(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i ").concat(this.options.planTitleLineTwo),this.$formTag.value=this.options.plan,this.$form.style.display="block",this.$scrollTarget.scrollIntoView({behavior:"smooth",block:"start"})}},{key:"addEventListeners",value:function(){this.$el.addEventListener("click",this.toggle.bind(this))}}]),t}();function gs(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=bs(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function bs(t,e){if(t){if("string"==typeof t)return ws(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ws(t,e):void 0}}function ws(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function xs(t){return Is(t)||Ls(t)||Ps(t)||Ts()}function Ts(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ps(t,e){if(t){if("string"==typeof t)return $s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?$s(t,e):void 0}}function Ls(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Is(t){if(Array.isArray(t))return $s(t)}function $s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:0;t>=0&&t<=this.slideCount&&(this.activeIndex=t)}},{key:"setDimensions",value:function(){this.wrapperWidth=this.$wrapper.clientWidth,this.itemHeight=this.$navigationArrows.clientHeight-24;var t=this.wrapperWidth-48;this.$slides.forEach((function(e,i){e.style.flex="0 0 ".concat(t,"px"),e.style.margin="0 24px",e.style.maxWidth="100vw",e.style.display="flex",e.style.alignContent="center",e.style.justifyContent="center",e.style.visibility="visible"}))}},{key:"startTouch",value:function(t){t.stopPropagation(),this.touchOrigin=t.targetTouches[0].pageX}},{key:"triggerTouch",value:function(t){var e=t.changedTouches[0].pageX-this.touchOrigin;Math.abs(e)>100&&this.navigateSlides(e<100),this.touchOrigin=null}},{key:"setup",value:function(){this.$wrapper&&this.setDimensions(),this.setAriaStates(),this.moveSlides(),this.isSetup||(this.$wrapper=this.createWrapper(),this.$el.classList.add(Rs.track),this.$el.parentNode.insertBefore(this.$wrapper,this.$el),this.$navigationArrows=this.createNavigationArrows(),this.$navigationArrows.appendChild(this.$el),this.$wrapper.appendChild(this.$navigationArrows),this.setNavigationArrowActiveState(),this.$el.style.display="flex",this.$el.style.transition="transform ease .3s",this.$el.style.flexWrap="nowrap",this.$el.style.justifyContent="flex-start",this.viewportHeight=window.innerHeight,this.setDimensions(),this.addEvents(),this.isSetup=!0)}},{key:"destroy",value:function(){if(this.isSetup){var t=this.$wrapper.parentNode;t.insertBefore(this.$el,this.$wrapper),t.removeChild(this.$wrapper),this.$el.classList.remove(Rs.track),this.$el.removeAttribute("style");var e,i=Cs(this.$slides);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.removeAttribute("style"),n.removeAttribute("aria-hidden")}}catch(t){i.e(t)}finally{i.f()}this.destroyModuleEvents(),this.isSetup=!1}}},{key:"moveSlides",value:function(){var t=this.activeIndex*this.wrapperWidth,e=this.$el.outerWidth;t=t>e?e:t<0?0:t,this.$el.style.transform="translate3d(-".concat(t,"px, 0, 0)")}},{key:"navigateSlides",value:function(t){t&&this.activeIndex===this.slideCount-1||!t&&0===this.activeIndex||(this.setactiveIndex(t?this.activeIndex+1:this.activeIndex-1),this.setAriaStates(),this.moveSlides(),this.setNavigationArrowActiveState())}},{key:"onNavigationClick",value:function(t){var e=t.target.attributes,i=e["data-m-previous"]||e["data-m-next"]||null,n=t.target.hasAttribute("data-m-next");i&&this.navigateSlides(n)&&t.preventDefault()}},{key:"isInRange",value:function(){var t=this.$navigationArrows.firstChild.getBoundingClientRect(),e=(this.viewportHeight-this.options.headerHeight)/2+this.options.headerHeight;t.top<=e&&t.bottom>=e?this.$navigationArrows.setAttribute("data-m-ready",!0):this.$navigationArrows.removeAttribute("data-m-ready")}},{key:"addEvents",value:function(){this.$navigationArrows.addEventListener("click",this.onNavigationClick.bind(this)),void 0!==window.ontouchstart&&(this.$wrapper.addEventListener("touchstart",this.startTouch.bind(this),!!ht&&{passive:!0}),this.$wrapper.addEventListener("touchend",this.triggerTouch.bind(this))),window.addEventListener("scroll",this.isInRange.bind(this))}},{key:"destroyModuleEvents",value:function(){this.$navigationArrows.removeEventListener("click",this.onNavigationClick.bind(this)),this.$wrapper.removeEventListener("touchstart",this.startTouch),this.$wrapper.removeEventListener("touchend",this.triggerTouch)}}]),t}();function qs(t){return Us(t)||Hs(t)||zs(t)||Ws()}function Ws(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zs(t,e){if(t){if("string"==typeof t)return Xs(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Xs(t,e):void 0}}function Hs(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Us(t){if(Array.isArray(t))return Xs(t)}function Xs(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&this.createStops(),this.autoSelectNavigation(),this.addEvents()}},{key:"createStops",value:function(){null==this.$endStop&this.navigationItemsTotalWidth>this.wrapperWidth&&(this.$endStop=document.createElement("span"),this.$endStop.classList.add("dj-endstop"),this.$container.appendChild(this.$endStop),this.$startStop=document.createElement("span"),this.$startStop.classList.add("dj-startstop"),this.$container.appendChild(this.$startStop))}},{key:"onNavigationClick",value:function(t){window.removeEventListener("scroll",this.autoSelectNavigationHandler);var e=t.target;if(this.$navigationItems.forEach((function(t){t.firstElementChild.removeAttribute("data-m-selected")})),e.setAttribute("data-m-selected",!0),this.selectedItem=Array.prototype.indexOf.call(this.$navigationItems,e.parentElement),this.overhang>0){var i=e.getBoundingClientRect(),n=Array.prototype.indexOf.call(this.$navigationItems,e.parentElement);-1!=n&&i.right+55>this.wrapperBoundingRight?this.moveTrack(n,"left"):-1!=n&&i.left-55this.overhang?this.overhang:this.position<0?0:this.position,this.$inner.scrollLeft=this.position}},{key:"mouseDown",value:function(t){this.mousePosition=t.pageX,document.addEventListener("mousemove",this.mouseMoveHandler)}},{key:"mouseMove",value:function(t){var e=t.pageX-this.mousePosition;this.mousePosition=t.pageX,this.position-=e,this.position=this.position>this.overhang?this.overhang:this.position<0?0:this.position,this.$inner.scrollLeft=this.position}},{key:"mouseUp",value:function(t){document.removeEventListener("mousemove",this.mouseMoveHandler)}},{key:"touchStart",value:function(t){t.stopPropagation(),this.touchOrigin=t.targetTouches[0].pageX,document.addEventListener("touchmove",this.touchMoveHandler)}},{key:"touchMove",value:function(t){var e=t.changedTouches[0].pageX-this.touchOrigin;this.touchOrigin=t.changedTouches[0].pageX,this.position-=e,this.position=this.position>this.overhang?this.overhang:this.position<0?0:this.position,this.$inner.style.scrollBehavior="auto",this.$inner.scrollLeft=this.position}},{key:"touchEnd",value:function(t){document.removeEventListener("touchmove",this.touchMoveHandler)}},{key:"scroll",value:function(t){t.preventDefault(),this.$inner.style.scrollBehavior="auto",this.$inner.scrollLeft+=t.deltaX}},{key:"autoSelectNavigation",value:function(t){var e=window.pageYOffset,i=null;if(e>this.autoSelectNavigationPositions[0]){for(var n=this.autoSelectNavigationPositions.length;n>-1;n--)if(e>this.autoSelectNavigationPositions[n]){i=n;break}}else i=null;null==i?(this.selectedItem=i,this.$navigationItems.forEach((function(t){t.firstElementChild.removeAttribute("data-m-selected")})),this.overhang>0&&(this.$inner.style.scrollBehavior="smooth",this.$inner.scrollLeft=0)):(i!=this.selectedItem||t)&&(this.selectedItem=i,this.$navigationItems.forEach((function(t){t.firstElementChild.removeAttribute("data-m-selected")})),this.$navigationItems[this.selectedItem].firstElementChild.setAttribute("data-m-selected",!0),this.overhang>0&&(this.$inner.style.scrollBehavior="smooth",this.$inner.scrollLeft=this.navigationItemsLeftPositions[this.selectedItem-1]))}},{key:"addEvents",value:function(){window.addEventListener("resize",this.setup.bind(this)),this.$el.addEventListener("click",this.onNavigationClick.bind(this)),window.addEventListener("scroll",this.autoSelectNavigationHandler),this.overhang>0&&(this.$el.addEventListener("mousedown",this.mouseDown.bind(this)),document.addEventListener("mouseup",this.mouseUp.bind(this)),void 0!==window.ontouchstart&&(this.$el.addEventListener("touchstart",this.touchStart.bind(this),!!ht&&{passive:!0}),document.addEventListener("touchend",this.touchEnd.bind(this))),this.$inner.addEventListener("wheel",this.scroll.bind(this),!!ht&&{passive:!0}))}}]),t}();function tr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function er(t,e){for(var i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function rr(t){return lr(t)||hr(t)||or(t)||ar()}function ar(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function or(t,e){if(t){if("string"==typeof t)return cr(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cr(t,e):void 0}}function hr(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function lr(t){if(Array.isArray(t))return cr(t)}function cr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);ithis.$el.scrollWidth-28)t=this.$slides.length-1;else{var e=(this.$el.scrollLeft+this.$el.clientWidth/2+this.cardWidth/2)/(this.cardWidth+28)-1,i=Math.round(e);t=Math.max(0,Math.min(i,this.slideCount-1))}return t}},{key:"triggerTouch",value:function(t){this.blockScrollEvent=!1;var e,i=t.changedTouches[0].pageX-this.touchOrigin;this.touchOrigin=null,0==this.activeIndex&&i>50?(e=this.slideCount-1,window.clearTimeout(this.endOfScrollTimeoutId)):this.activeIndex==this.slideCount-1&&i<-50?(e=0,window.clearTimeout(this.endOfScrollTimeoutId)):e=this.getCardIndexForScrollPosition(),this.activeIndex=e,this.setActiveIndicator(),this.moveSlides()}}]),t}();function yr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gr(t,e){for(var i=0;i=1)this.hasCompletedArticle=!0,this.circleSegment.setValue(360);else if(!this.hasCompletedArticle){var e=Math.max(0,Math.min(360*t,360));this.circleSegment.setValue(e)}}}]),t}();function $r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dr(t,e){for(var i=0;i0?(n=(t+n)%16|0,t=Math.floor(t/16)):(n=(e+n)%16|0,e=Math.floor(e/16)),("x"===i?n:3&n|8).toString(16)}))}function Nr(t){return qr(t)||Vr(t)||Br(t)||Rr()}function Rr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Br(t,e){if(t){if("string"==typeof t)return Wr(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Wr(t,e):void 0}}function Vr(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function qr(t){if(Array.isArray(t))return Wr(t)}function Wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);it.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:"";(e=e.split(",")).forEach((function(e){try{var i="";for(var n in e=e.replace(/\-/g,""),oa)if(n.toLowerCase().trim()==e.toLowerCase().trim()){i=oa[n];break}if(!i)return void console.warn("Couldn't find a module named \""+e+'" for the specified element: ',t);var s=ca(t.dataset,e)||{};new i(t,s).init()}catch(i){console.error("Error initialising module "+e+" for element "+t,i)}}))},da=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];oa=t,ea(document.querySelectorAll(la)).forEach((function(t){return ua(t,t.getAttribute("data-js-modules"))}))};function pa(t){for(var e=0,i=Object.keys(t);et.length)&&(e=t.length);for(var i=0,n=new Array(e);i75?Da():Ma()},Da=function(){ka.setAttribute(Ta.HAMBURGER,""),setTimeout((function(){Aa.style.opacity="1"}),2e3),Ca.addEventListener("click",Fa,!1),null!=Ea&&(Ea.addEventListener("click",Oa,!1),Ea.removeEventListener("keypress",ja,!1),Ea.removeEventListener("mouseover",Na,!1),Ea.removeEventListener("mouseleave",Va,!1),Ea.removeEventListener("touchstart",qa,!1))},Ma=function(){if(Aa.style.opacity="1",Ca.removeEventListener("click",Fa,!1),null!==Ea){Ea.removeEventListener("click",Oa,!1),Ea.addEventListener("keypress",ja,!1),Ea.addEventListener("mouseover",Na,!1),Ea.addEventListener("mouseleave",Va,!1),Ea.addEventListener("touchstart",qa,!1);var t=Ea.getBoundingClientRect().left;_a.style.left="".concat(t-100,"px")}},Fa=function(t){Aa[Pa?"removeAttribute":"setAttribute"](Ta.OPEN,""),Ca[Pa?"removeAttribute":"setAttribute"](Ta.OPEN,""),Sa.forEach((function(t){t.removeAttribute(Ta.OPEN)})),(Pa=!Pa)?rt.lock():rt.release()},Oa=function(t){var e=t.target;if(e.hasAttribute("data-m-sub-navigation")){t.preventDefault();var i=e.parentElement,n=i.hasAttribute(Ta.OPEN);Wa(i,n)}},ja=function(t){if("Enter"===t.key){var e=t.target;if(e.hasAttribute("data-m-sub-navigation")){t.preventDefault();var i=e.parentElement,n=i.hasAttribute(Ta.OPEN);n?Ba():Ra(e),Wa(i,n)}}},Na=function(t){var e=t.target;e.hasAttribute("data-m-sub-navigation")?Ra(e):e.classList.contains("dj-navigation__item-link")&&Ba()},Ra=function(t){Sa.forEach((function(t){t.removeAttribute(Ta.OPEN)})),t.parentElement.setAttribute(Ta.OPEN,"");var e=t.getBoundingClientRect().left,i=t.nextElementSibling.offsetWidth,n=t.nextElementSibling.offsetHeight;_a.style.opacity="1",_a.style.left="".concat(e-100,"px"),_a.style.width="".concat(i,"px"),_a.style.height="".concat(n,"px")},Ba=function(){Sa.forEach((function(t){t.removeAttribute(Ta.OPEN)})),_a.style.opacity="0",_a.style.width="0",_a.style.height="0"},Va=function(t){Ba()},qa=function(t){var e=t.target;if(e.hasAttribute("data-m-sub-navigation")){t.preventDefault();var i=e.parentElement,n=i.hasAttribute(Ta.OPEN);n?Ba():Ra(e),Wa(i,n)}},Wa=function(t,e){Sa.forEach((function(e){e!=t&&e.removeAttribute(Ta.OPEN)})),t[e?"removeAttribute":"setAttribute"](Ta.OPEN,"")},za={init:Ia},Ha=za,Ua=[{value:"optimize.activate",isOncePerSession:!1}],Xa=function(){var t=O.getItem("GTMEvents");t=null==t?[]:JSON.parse(t),Ua.forEach((function(e){var i=e.hasOwnProperty("isOncePerSession")&&1==e.isOncePerSession;if(i&&t.indexOf(e.value)>-1)return!1;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e.value}),i&&O.setItem("GTMEvents",JSON.stringify(["optimize.activate"]))}))},Ya={init:Xa},Ga=Ya,Ja={setItem:function(t,e){try{localStorage.setItem(t,e)}catch(e){console.warn("Failed to access localStorage.setItem for key "+t,e)}},getItem:function(t){try{return localStorage.getItem(t)}catch(e){return console.warn("Failed to access localStorage.getItem for key "+t,e),null}}},Ka=Ja;function Za(t){return io(t)||eo(t)||to(t)||Qa()}function Qa(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function to(t,e){if(t){if("string"==typeof t)return no(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?no(t,e):void 0}}function eo(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function io(t){if(Array.isArray(t))return no(t)}function no(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0)&&window.dataLayer.push({event:i})};for(var i in t)e(i)}function Ao(){So(),fo({name:ro.DECLINED,path:ho,date:po(),value:"true"})}function Eo(){return 0==RegExp(ro.RESPONDED,"g").test(document.cookie)}function So(){var t=new Date;t.setFullYear(t.getFullYear()-1),co.forEach((function(e){return fo({name:e,path:ho,date:t.toUTCString(),value:""})}))}function _o(t){var e=t.target.dataset,i=e&&e.cookieAction;i&&0!=uo.hasOwnProperty(i)&&uo[i](t)}function Co(){xa.addEventListener("click",_o)}var xo={init:mo},To=xo,Po=i(678),Lo=i.n(Po),Io=(i(785),function(){pa({Navigation:Ha,CookieWidget:To}),fa(ta),A.getCssClasses().forEach((function(t){return document.body.classList.add(t.cssClass)})),Lo().polyfill(),Ga.init()});document.addEventListener("DOMContentLoaded",Io)}()}(); //# sourceMappingURL=bundle.main.js.map